@qlik/api 2.2.0 → 2.3.0

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 (231) 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-Cle0_tmz.js → auth-BowS4SUR.js} +1 -5
  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-DipDBQQ5.js} +258 -54
  35. package/chunks/{invoke-fetch-PcVIxLW4.js → invoke-fetch-B7lGscuQ.js} +3 -3
  36. package/chunks/{invoke-fetch-CucBpA1C.js → invoke-fetch-DhdyFZ0F.js} +1 -5
  37. package/chunks/{public-runtime-modules-Dwjzb3l8.js → public-runtime-modules-QhLPeQr5.js} +7 -7
  38. package/chunks/{qix-DI5o5XF4.d.ts → qix-CrqXv44x.d.ts} +6 -2
  39. package/chunks/{qix-DjxuPCX0.js → qix-RCUslia8.js} +11 -10
  40. package/chunks/{qix-chunk-entrypoint-tmTo-kpa.js → qix-chunk-entrypoint-WAS4NVTf.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 +6 -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-D11iO7ZV.js +0 -65
  163. package/chunks/automation-connections-k2G_n9rj.d.ts +0 -366
  164. package/chunks/automation-connectors-J5OE-1P0.d.ts +0 -84
  165. package/chunks/automations-BGy83EBO.d.ts +0 -797
  166. package/chunks/automl-deployments-CWEpX2pk.d.ts +0 -101
  167. package/chunks/automl-predictions-BNIjRhBm.d.ts +0 -238
  168. package/chunks/banners-CgBRnZGv.d.ts +0 -184
  169. package/chunks/brands-DCgk6Gqx.d.ts +0 -671
  170. package/chunks/collections-BpYjcpIY.d.ts +0 -582
  171. package/chunks/conditions-CJJG7Uph.d.ts +0 -662
  172. package/chunks/consumption-DerFk437.d.ts +0 -182
  173. package/chunks/core-DQXNZdnf.d.ts +0 -12
  174. package/chunks/csp-origins-3NJlh_n9.d.ts +0 -273
  175. package/chunks/csrf-token-DoaoOQzH.d.ts +0 -63
  176. package/chunks/data-alerts-CILSEFbQ.d.ts +0 -1004
  177. package/chunks/data-assets-CJDcssoX.d.ts +0 -207
  178. package/chunks/data-connections-VSB13K6g.d.ts +0 -678
  179. package/chunks/data-credentials-ChEp_hyU.d.ts +0 -292
  180. package/chunks/data-files-CVzn9M6V.d.ts +0 -860
  181. package/chunks/data-qualities-DBrot957.d.ts +0 -176
  182. package/chunks/data-sets-CFzxgWnO.d.ts +0 -424
  183. package/chunks/data-sources-IsAaof_C.d.ts +0 -346
  184. package/chunks/data-stores-DFOPdgfz.d.ts +0 -537
  185. package/chunks/dcaas-qyv7YlrN.d.ts +0 -192
  186. package/chunks/di-projects-DVQTxASr.d.ts +0 -777
  187. package/chunks/direct-access-agents-B77OhzZi.d.ts +0 -580
  188. package/chunks/encryption-BjA6xbCO.d.ts +0 -372
  189. package/chunks/extensions-OO0WtInj.d.ts +0 -294
  190. package/chunks/glossaries-CIX7-KT_.d.ts +0 -1213
  191. package/chunks/groups-C86-UG7S.d.ts +0 -511
  192. package/chunks/identity-providers-h0dKNxGZ.d.ts +0 -711
  193. package/chunks/interceptors-Csx2tEi5.d.ts +0 -52
  194. package/chunks/interceptors-DTYm37AU.js +0 -104
  195. package/chunks/ip-policies-CKRIlbP7.d.ts +0 -327
  196. package/chunks/ip-policies-DXlf172B.js +0 -108
  197. package/chunks/items-C-jzqvFW.d.ts +0 -536
  198. package/chunks/knowledgebases-CyQtVcZN.d.ts +0 -977
  199. package/chunks/licenses-xzjnkitW.d.ts +0 -663
  200. package/chunks/lineage-graphs-CViCCzKy.d.ts +0 -697
  201. package/chunks/ml-Abt2MUva.d.ts +0 -2809
  202. package/chunks/notes-BZxuyDgt.d.ts +0 -111
  203. package/chunks/notifications-Bd_gp4jU.d.ts +0 -99
  204. package/chunks/oauth-clients-B5QPr4IM.d.ts +0 -563
  205. package/chunks/oauth-tokens-1b7V8182.d.ts +0 -127
  206. package/chunks/qix-CYQsLyGQ.js +0 -40
  207. package/chunks/questions-BVp0tvNs.d.ts +0 -364
  208. package/chunks/quotas-CfAebRJd.d.ts +0 -113
  209. package/chunks/reload-tasks-DfwUTetn.d.ts +0 -249
  210. package/chunks/reloads-CwmagnFx.d.ts +0 -260
  211. package/chunks/report-templates-DjQYj5dn.d.ts +0 -287
  212. package/chunks/reports-DzNC6Uq3.d.ts +0 -861
  213. package/chunks/roles-BYFIY6E7.d.ts +0 -312
  214. package/chunks/sharing-tasks-BMGIQ-FO.d.ts +0 -1164
  215. package/chunks/spaces-BK823t-b.d.ts +0 -780
  216. package/chunks/tasks-COKDfShO.d.ts +0 -564
  217. package/chunks/temp-contents-zDomB-g6.d.ts +0 -168
  218. package/chunks/tenants-Bhn86519.d.ts +0 -361
  219. package/chunks/themes-v9NbhiBo.d.ts +0 -269
  220. package/chunks/transports-CqEiFxD3.d.ts +0 -362
  221. package/chunks/ui-config-Crs0mVMp.d.ts +0 -274
  222. package/chunks/users-BSOBU_fg.d.ts +0 -675
  223. package/chunks/web-integrations-MisPAHod.d.ts +0 -295
  224. package/chunks/web-notifications-DVy6FHYh.d.ts +0 -274
  225. package/chunks/webhooks-Dr4EiXqy.d.ts +0 -505
  226. /package/chunks/{auth-types-E99tzdN0.d.ts → auth-types-YrlH_R9f.d.ts} +0 -0
  227. /package/chunks/{auth-types-JehqruDP.js → auth-types-h43TVDpB.js} +0 -0
  228. /package/chunks/{global-types-CrOvI33z.js → global-types-CEVAJebk.js} +0 -0
  229. /package/chunks/{invoke-fetch-CbU2Dgqr.d.ts → invoke-fetch-C1Z0RJYU.d.ts} +0 -0
  230. /package/chunks/{utils-BnC4lrlq.js → utils-vv-xFm06.js} +0 -0
  231. /package/chunks/{websocket-errors-DSbO6kDZ.js → websocket-errors-CRTDTtBL.js} +0 -0
package/data-alerts.d.ts CHANGED
@@ -1,4 +1,1005 @@
1
- import "./chunks/auth-types-E99tzdN0.js";
2
- import "./chunks/invoke-fetch-CbU2Dgqr.js";
3
- import { $ as GetDataAlertHttpError, A as CreateDataAlertHttpError, At as dataAlertsExport, B as Evaluation, Bt as getDataAlerts, C as AlertingTaskRecipientError, Ct as TriggerDataAlertsHttpError, D as AlertingTaskTriggerStats, Dt as ValidateDataAlertsHttpResponse, E as AlertingTaskResponse, Et as ValidateDataAlertsHttpError, F as DeleteDataAlertHttpError, Ft as getDataAlertExecution, G as GetDataAlertExecutionEvaluationsHttpError, Gt as validateDataAlerts, H as ExecutionStats, Ht as patchDataAlert, I as DeleteDataAlertHttpResponse, It as getDataAlertExecutionEvaluations, J as GetDataAlertExecutionHttpResponse, K as GetDataAlertExecutionEvaluationsHttpResponse, L as Error, Lt as getDataAlertExecutions, M as DataAlertsAPI, Mt as deleteDataAlertExecution, N as DeleteDataAlertExecutionHttpError, Nt as getDataAlert, O as AlertingTaskValidation, Ot as clearCache, P as DeleteDataAlertExecutionHttpResponse, Pt as getDataAlertCondition, Q as GetDataAlertExecutionsStatsHttpResponse, R as ErrorMeta, Rt as getDataAlertExecutionsStats, S as AlertingTaskPatchRequestCompliantList, St as ThrottlingResource, T as AlertingTaskRecipientPatchInner, Tt as UserIDRecipient, U as GetDataAlertConditionHttpError, Ut as setDataAlertsSettings, V as EvaluationGetResponse, Vt as getDataAlertsSettings, W as GetDataAlertConditionHttpResponse, Wt as triggerDataAlerts, X as GetDataAlertExecutionsHttpResponse, Y as GetDataAlertExecutionsHttpError, Z as GetDataAlertExecutionsStatsHttpError, _ as AlertingTaskError, _t as SetDataAlertsSettingsHttpError, a as AlertingExecutionErrors, at as GetDataAlertsSettingsHttpError, b as AlertingTaskListResponse, bt as TaskGroupRecipientError, c as AlertingExecutionResponse, ct as Links, d as AlertingRecipientStatsError, dt as PatchDataAlertHttpError, et as GetDataAlertHttpResponse, f as AlertingRecipientStatsErrors, ft as PatchDataAlertHttpResponse, g as AlertingTaskCreateRequest, gt as Self, h as AlertingSettingsUpload, ht as ScheduleOptions, i as AlertingExecutionError, it as GetDataAlertsHttpResponse, j as CreateDataAlertHttpResponse, jt as deleteDataAlert, k as AlertingTaskValidationResponse, kt as createDataAlert, l as AlertingExecutionResult, lt as ListLinks, m as AlertingSettings, mt as RecipientsChange, n as AlertingActionsTriggerCreateResponse, nt as GetDataAlertRecipientStatsHttpResponse, o as AlertingExecutionListResponse, ot as GetDataAlertsSettingsHttpResponse, p as AlertingRecipientStatsResponse, pt as Recipients, q as GetDataAlertExecutionHttpError, r as AlertingConditionResponse, rt as GetDataAlertsHttpError, s as AlertingExecutionPersist, st as GroupIDRecipient, t as AlertingActionsTriggerCreateRequest, tt as GetDataAlertRecipientStatsHttpError, u as AlertingRecipientStats, ut as Page, v as AlertingTaskExecutionStats, vt as SetDataAlertsSettingsHttpResponse, w as AlertingTaskRecipientPatch, wt as TriggerDataAlertsHttpResponse, x as AlertingTaskPatchRequestCompliant, xt as TaskRecipientError, y as AlertingTaskGroupRecipientError, yt as StandardListResponseProps, z as Errors, zt as getDataAlertRecipientStats } from "./chunks/data-alerts-CILSEFbQ.js";
1
+ import { y as ApiCallOptions } from "./chunks/auth-types-YrlH_R9f.js";
2
+ import "./chunks/invoke-fetch-C1Z0RJYU.js";
3
+
4
+ //#region src/public/rest/data-alerts.d.ts
5
+ type AlertingActionsTriggerCreateRequest = {
6
+ alertingTaskID: string;
7
+ };
8
+ type AlertingActionsTriggerCreateResponse = {
9
+ /** the workflow id created for the manual triggering of alert */
10
+ workflowID?: string;
11
+ };
12
+ type AlertingConditionResponse = {
13
+ /** Should reference ConditionResponse type in condition-manager api docs */
14
+ conditionResponse?: unknown;
15
+ hideSelections?: boolean;
16
+ };
17
+ type AlertingExecutionError = {
18
+ /** Error code specific to sharing service. */
19
+ readonly code?: string;
20
+ /** Error cause. */
21
+ readonly detail?: string;
22
+ /** Error title. */
23
+ readonly title?: string;
24
+ };
25
+ type AlertingExecutionErrors = AlertingExecutionError[];
26
+ type AlertingExecutionListResponse = StandardListResponseProps & {
27
+ /** Gets a list of alerting-executions. */
28
+ executions?: AlertingExecutionResponse[];
29
+ links?: ListLinks;
30
+ };
31
+ type AlertingExecutionPersist = {
32
+ accessMode?: "SOURCE_ACCESS" | "TARGET_ACCESS";
33
+ /** ID for the alerting task that this execution references */
34
+ alertId?: string;
35
+ /** Id of the bookmark associated with an alert */
36
+ bookmarkId?: string;
37
+ /** Id of the condition the alert is associated with */
38
+ conditionId?: string;
39
+ conditionStatus?: "FINISHED" | "FAILED";
40
+ /** Dimensions applied in the condition */
41
+ dimensions?: string[];
42
+ errors?: AlertingExecutionErrors;
43
+ /** Id of the evaluation for the condition */
44
+ evaluationId?: string;
45
+ executionEvaluationStatus?: "CONDITION_MET" | "CONDITION_NOT_MET" | "FAILED";
46
+ executionType?: "INDIVIDUAL" | "SHARED";
47
+ /** Gets the execution identifier. */
48
+ id?: string;
49
+ /** Measures applied in the condition */
50
+ measures?: string[];
51
+ /** The owner that this execution belongs to */
52
+ ownerId?: string;
53
+ result?: AlertingExecutionResult;
54
+ /** The tenant that this execution belongs to */
55
+ tenantId?: string;
56
+ /** Timestamp of execution start */
57
+ triggerTime?: string;
58
+ /** ID for the workflow, coming from eventing service */
59
+ workflowId?: string;
60
+ };
61
+ type AlertingExecutionResponse = AlertingExecutionPersist & {
62
+ evaluation?: Evaluation;
63
+ links?: Links;
64
+ };
65
+ type AlertingExecutionResult = {
66
+ alertTriggerStatus?: string;
67
+ throttlerTokensLeft?: number;
68
+ };
69
+ type AlertingRecipientStats = {
70
+ conditionStatus?: "OK" | "FAILED";
71
+ /** Whether the recipient is enabled. */
72
+ enabled: boolean;
73
+ errors?: AlertingRecipientStatsErrors;
74
+ /** A list of associated groups. If a user is added individually the "addedIndividually" pseudo group is included */
75
+ groups?: string[];
76
+ /** last time a trigger was detected, but not sure if executed */
77
+ lastScan?: string;
78
+ /** last time an execution had been created */
79
+ lastTrigger?: string;
80
+ /** Whether the recipient is subscribed. */
81
+ subscribed?: boolean;
82
+ type?: "userid";
83
+ value?: string;
84
+ };
85
+ type AlertingRecipientStatsError = {
86
+ /** Error code specific to sharing service. */
87
+ readonly code?: string;
88
+ /** Error cause. */
89
+ readonly detail?: string;
90
+ /** Error title. */
91
+ readonly title?: string;
92
+ };
93
+ type AlertingRecipientStatsErrors = AlertingRecipientStatsError[];
94
+ type AlertingRecipientStatsResponse = {
95
+ recipientStats?: AlertingRecipientStats[];
96
+ };
97
+ type AlertingSettings = {
98
+ /** This indicates that there is an ongoing operation to either disable or enable the data alerting feature. none means that no such operation is ongoing. enabling/disabling means that system is currently enabling/disabling the feature */
99
+ readonly "data-alerting-feature-operation-status"?: "none" | "enabling" | "disabling";
100
+ /** UTC timestamp of the most recent change of data-alerting-feature-operation-status. If there has not been any such change, this is the timestamp of the initial creation of the record. */
101
+ readonly "data-alerting-feature-operation-status-change"?: string;
102
+ /** Whether the license for the tenant has the data alerting feature enabled. */
103
+ "data-alerting-license-status"?: "enabled" | "disabled";
104
+ /** Represents the number of data alerts consumed by the user either as an owner or recipient */
105
+ readonly dataAlertsConsumed?: number;
106
+ /** Represents the number of data alerts limit to be consumed by the user either as an owner or recipient */
107
+ readonly dataAlertsLimits?: number;
108
+ /** true if data-alerting feature is enabled for this tenant. Enabling this feature also requires that the license has this feature enabled. */
109
+ "enable-data-alerting": boolean;
110
+ /** The maximum number of recipients that can be present in an alerting task in TARGET_ACCESS mode. New recipients cannot be added when this limit is exceeded */
111
+ readonly "max-recipients-in-target-access"?: number;
112
+ /** These persisted alerting settings are only available for this tenant. Extracted from request JWT. */
113
+ readonly tenantId?: string;
114
+ };
115
+ type AlertingSettingsUpload = {
116
+ /** true if data-alerting feature is enabled. A status change could potentially result in a considerable amount of API operations to enable/disable triggers. Enabling this feature also requires that the license has this feature enabled. */
117
+ "enable-data-alerting": boolean;
118
+ };
119
+ /**
120
+ * a alerting task (a definition on an alert)
121
+ */
122
+ type AlertingTaskCreateRequest = {
123
+ /** appId associated to this alert definition */
124
+ appId: string;
125
+ /** bookmarkId associated to this alert definition */
126
+ bookmarkId?: string;
127
+ /** the id of the condition that determines if this data alert should be triggered */
128
+ conditionId: string;
129
+ /** description associated to alerting task */
130
+ description?: string;
131
+ /** if the alerting task is enabled */
132
+ enabled?: boolean;
133
+ /** name associated to alerting task */
134
+ name: string;
135
+ /** List of recipients. An internal recipient is represented by either their user id or group id. */
136
+ recipients: Recipients;
137
+ scheduleOptions?: ScheduleOptions;
138
+ /** sheetId associated to this alert definition */
139
+ sheetId?: string;
140
+ /** The rules and setup for throttling */
141
+ throttling?: ThrottlingResource;
142
+ /** Type of job that triggered the task */
143
+ triggerType: "RELOAD" | "SCHEDULED";
144
+ };
145
+ type AlertingTaskError = {
146
+ /** Timestamp for the creation of the error */
147
+ added?: string;
148
+ /** Identifier for type of error occurring on alerting task */
149
+ value?: "OWNER_DISABLED" | "OWNER_ACCESS" | "OWNER_LICENSE" | "APP_DELETED" | "NO_RECIPIENTS" | "PARTIAL_ACCESS" | "EVAL_ERROR" | "ORPHAN" | "CONVERSION_DENIED" | "EXPIRED" | "PARTIAL_SENT" | "QUOTA_REACHED" | "OWNER_HAS_NO_VALID_USER_ENTITLEMENT";
150
+ };
151
+ /**
152
+ * @deprecated
153
+ */
154
+ type AlertingTaskExecutionStats = StandardListResponseProps & {
155
+ executionsStats?: ExecutionStats[];
156
+ links?: ListLinks;
157
+ };
158
+ type AlertingTaskGroupRecipientError = {
159
+ /** Timestamp for the creation of the error */
160
+ added?: string;
161
+ /** Identifier for type of error occurring on alerting task */
162
+ value?: "GROUP_IS_DISABLED" | "MAX_ALERTS_LIMIT_REACHED" | "GROUP_WITH_NO_APP_ACCESS" | "GROUP_IS_DELETED";
163
+ };
164
+ type AlertingTaskListResponse = StandardListResponseProps & {
165
+ links?: ListLinks;
166
+ /** Gets a list of alerting tasks. */
167
+ tasks?: AlertingTaskResponse[];
168
+ };
169
+ type AlertingTaskPatchRequestCompliant = {
170
+ /** The operation to be performed */
171
+ op: "replace";
172
+ /** A JSON Patch document as defined in https://datatracker.ietf.org/doc/html/rfc6902 */
173
+ path: "/ownerName" | "/ownerId" | "/conditionId" | "/enabledAction" | "/bookmarkId" | "/name" | "/description" | "/throttling" | "/triggerType" | "/scheduleOptions";
174
+ /** The value to be used for this operation. */
175
+ value?: unknown;
176
+ };
177
+ type AlertingTaskPatchRequestCompliantList = AlertingTaskPatchRequestCompliant[];
178
+ type AlertingTaskRecipientError = {
179
+ /** Timestamp for the creation of the error */
180
+ added?: string;
181
+ /** Identifier for type of error occurring on alerting task */
182
+ value?: "USER_IS_DELETED" | "USER_DISABLED_IN_QCS" | "NO_ACCESS_TO_APP" | "UNSUBSCRIBED_FROM_ALERT" | "CONDITION_EVAL_ERROR" | "USER_DISABLED_IN_ALERT_BY_OWNER" | "MAX_ALERTS_LIMIT_REACHED";
183
+ };
184
+ /**
185
+ * A custom custom JSON Patch document, as an array of objects with operation, recipient type and value. Original defined in https://datatracker.ietf.org/doc/html/rfc6902.
186
+ * @example
187
+ * [
188
+ * {
189
+ * op: "add",
190
+ * recipientType: "userid",
191
+ * value: {
192
+ * "enabled": true,
193
+ * "value": "recipient-1"
194
+ * }
195
+ * },
196
+ * {
197
+ * op: "remove",
198
+ * recipientType: "userid"
199
+ * },
200
+ * {
201
+ * op: "enable",
202
+ * recipientType: "userid"
203
+ * },
204
+ * {
205
+ * op: "disable",
206
+ * recipientType: "userid"
207
+ * },
208
+ * {
209
+ * op: "replace",
210
+ * recipientType: "userid",
211
+ * value: [
212
+ * {
213
+ * "enabled": true,
214
+ * "value": "recipient-1"
215
+ * },
216
+ * {
217
+ * "enabled": false,
218
+ * "value": "recipient-2"
219
+ * }
220
+ * ]
221
+ * }
222
+ * ]
223
+ */
224
+ type AlertingTaskRecipientPatch = AlertingTaskRecipientPatchInner[];
225
+ type AlertingTaskRecipientPatchInner = {
226
+ /** The operation to be performed. */
227
+ op: "remove" | "add" | "replace" | "enable" | "disable" | "subscribe" | "unsubscribe";
228
+ /** Defines the path for the given resource field to patch. */
229
+ recipientType: "userid" | "groupid";
230
+ /** The value to be used for this operation. */
231
+ value: unknown;
232
+ };
233
+ type AlertingTaskResponse = {
234
+ /** last time a trigger was detected, but not sure if executed */
235
+ absoluteLastScan?: string;
236
+ /** last time an execution had been created */
237
+ absoluteLastTrigger?: string;
238
+ accessMode?: "SOURCE_ACCESS" | "TARGET_ACCESS";
239
+ alertingTaskErrors?: AlertingTaskError[];
240
+ /** appId associated to this alert definition */
241
+ appId?: string;
242
+ /** bookmarkId associated to this alert definition */
243
+ bookmarkId?: string;
244
+ /** the id of the condition that determines if this data alert should be triggered */
245
+ conditionId?: string;
246
+ /** Should reference ConditionResponse type in condition-manager api docs */
247
+ conditionResponse?: unknown;
248
+ /** Timestamp for the creation of the task (rfc3339 format) */
249
+ dateCreated?: string;
250
+ /** description associated to alerting task */
251
+ description?: string;
252
+ /** true if the alerting task is enabled */
253
+ enabled?: boolean;
254
+ /** error labels from the latest workflow that happened within the task */
255
+ errorStatus?: "OK" | "FATAL-ERROR" | "PARTIAL-TRIGGER";
256
+ /** the number of actual evaluations with engine this task has consumed in the current month */
257
+ evaluationCount?: number;
258
+ /** true if the alert has history condition enabled */
259
+ hasHistoryCondition?: boolean;
260
+ /** Whether the selection needs to be hidden. */
261
+ hideSelections?: boolean;
262
+ /** data alerting identifier (this is the alertID) */
263
+ id?: string;
264
+ /** the date when the evaluation count was updated */
265
+ lastEvaluationCountUpdate?: string;
266
+ lastExecutionStatus?: "OK" | "FAILED";
267
+ /** last time a trigger was detected, but not sure if executed for requesting user */
268
+ lastScan?: string;
269
+ /** last time an execution had been created for requesting user */
270
+ lastTrigger?: string;
271
+ /** Timestamp of the most recent update. */
272
+ lastUpdated?: string;
273
+ links?: Links;
274
+ /** name associated to alerting task */
275
+ name?: string;
276
+ /** the owner of this alert */
277
+ ownerId?: string;
278
+ /** the owner name of this alert */
279
+ ownerName?: string;
280
+ /** List of recipients. An internal recipient is represented by either their user id or group id. */
281
+ recipients?: Recipients;
282
+ recipientsChangeHistory?: RecipientsChange[];
283
+ scheduleOptions?: ScheduleOptions;
284
+ /** sheetId associated to this alert definition */
285
+ sheetId?: string;
286
+ /** particular status of the alerting task */
287
+ status?: "creating" | "deleting";
288
+ /** list of subscriptions related to this alerting task */
289
+ subscriptionIds?: string[];
290
+ /** the tenant of this alert */
291
+ tenantId?: string;
292
+ /** The rules and setup for throttling */
293
+ throttling?: ThrottlingResource;
294
+ triggerStats: AlertingTaskTriggerStats;
295
+ /** Type of job that triggered the task */
296
+ triggerType?: "RELOAD" | "SCHEDULED" | "MANUAL";
297
+ };
298
+ type AlertingTaskTriggerStats = {
299
+ /** The number of triggers out of the last 100 scans for the current condition. */
300
+ last100Scans: number;
301
+ /** The number of triggers out of the last 10 scans for the current condition. */
302
+ last10Scans: number;
303
+ /** The number of scans for the current condition. */
304
+ totalScans: number;
305
+ };
306
+ type AlertingTaskValidation = {
307
+ /** Description of the error */
308
+ description?: string;
309
+ /** @deprecated
310
+ * Identifier for a validation error occurring on alerting task */
311
+ error?: "NO_ACCESS" | "USER_IS_DISABLED" | "INVALID_CONDITION" | "GROUP_IS_DISABLED" | "GROUP_SIZE_EXCEEDED";
312
+ /** Identifies for user id or condition id */
313
+ id?: string;
314
+ /** Identifier for type of a validation error occurring on alerting task */
315
+ type?: "RECIPIENT" | "CONDITION" | "RECIPIENT_GROUP";
316
+ validationErrors?: ("NO_ACCESS" | "USER_IS_DISABLED" | "INVALID_CONDITION" | "MAX_ALERTS_LIMIT_REACHED" | "MAX_ALERT_RECIPIENTS_LIMIT_REACHED" | "GROUP_IS_DISABLED" | "GROUP_SIZE_EXCEEDED")[];
317
+ };
318
+ type AlertingTaskValidationResponse = {
319
+ status?: "FAILURE" | "SUCCESS";
320
+ validations?: AlertingTaskValidation[];
321
+ };
322
+ type Error = {
323
+ /** Error code specific to sharing service. */
324
+ readonly code?: string;
325
+ /** Error cause. */
326
+ readonly detail?: string;
327
+ meta?: ErrorMeta;
328
+ /** Error title. */
329
+ readonly title?: string;
330
+ };
331
+ type ErrorMeta = {
332
+ /** HTTP error code. */
333
+ readonly httpCode?: number;
334
+ };
335
+ /**
336
+ * @example
337
+ * {
338
+ * errors: [
339
+ * {
340
+ * code: "HTTP-123",
341
+ * title: "short error message"
342
+ * }
343
+ * ],
344
+ * traceId: "7975401f3954aa47"
345
+ * }
346
+ */
347
+ type Errors = {
348
+ errors?: Error[];
349
+ traceId?: string;
350
+ };
351
+ type Evaluation = {
352
+ /** Representation of the event that caused the condition to be evaluated if one was included on when the evaluation was triggered */
353
+ causalEvent?: unknown;
354
+ /** The unique id of the associated condition */
355
+ readonly conditionId?: string;
356
+ /** Extra context information to carry through to the result if one was included on when the evaluation was triggered */
357
+ contextId?: string;
358
+ /** The unique id for the resource given from Data Condition Evaluator */
359
+ readonly dataConditionEvaluatorId?: string;
360
+ /** The time the evaluation ended */
361
+ readonly endTime?: string;
362
+ /** The unique id for the resource */
363
+ readonly id?: string;
364
+ /** userId of user being impersonated to evaluate the condition */
365
+ readonly ownerId?: string;
366
+ /** The final result of the evalution */
367
+ readonly result?: "success" | "failure" | "error";
368
+ /** Condition type specific result, one of dataResult or compoundResult */
369
+ resultData?: unknown;
370
+ /** The time the evaluation started */
371
+ readonly startTime?: string;
372
+ /** The status of the evaluation execution */
373
+ readonly status?: "RUNNING" | "FAILED" | "FINISHED";
374
+ /** The tenant id */
375
+ readonly tenantId?: string;
376
+ };
377
+ type EvaluationGetResponse = {
378
+ condition?: unknown;
379
+ evaluation?: Evaluation;
380
+ hideSelections?: boolean;
381
+ };
382
+ type ExecutionStats = {
383
+ endTime?: string;
384
+ periodKey?: string;
385
+ startTime?: string;
386
+ totalExecutions?: string;
387
+ triggeredExecutions?: string;
388
+ };
389
+ /**
390
+ * an internal recipient based on its group id.
391
+ */
392
+ type GroupIDRecipient = {
393
+ alertingTaskGroupRecipientErrors?: AlertingTaskGroupRecipientError[];
394
+ /** Whether this recipient can receive alerts. */
395
+ enabled?: boolean;
396
+ taskGroupRecipientErrors?: TaskGroupRecipientError[];
397
+ /** Group ID of recipient. */
398
+ value?: string;
399
+ };
400
+ type Links = {
401
+ /** Object with Href to a particular element or set of elements */
402
+ self?: Self;
403
+ };
404
+ type ListLinks = {
405
+ next?: Page;
406
+ prev?: Page;
407
+ /** Object with Href to a particular element or set of elements */
408
+ self?: Self;
409
+ };
410
+ type Page = {
411
+ /** URL to particular set of elements */
412
+ href?: string;
413
+ /** Page unique token */
414
+ token?: string;
415
+ /** Page type, can be next or prev */
416
+ type?: "prev" | "next";
417
+ };
418
+ /**
419
+ * List of recipients. An internal recipient is represented by either their user id or group id.
420
+ */
421
+ type Recipients = {
422
+ DLGroups?: unknown[];
423
+ DLListId?: string;
424
+ DLUsers?: unknown[];
425
+ groupIds?: GroupIDRecipient[];
426
+ userIds: UserIDRecipient[];
427
+ };
428
+ /**
429
+ * Change in a recipient for an alerting task
430
+ */
431
+ type RecipientsChange = {
432
+ /** time of recipient state change */
433
+ dateTime?: string;
434
+ /** A custom custom JSON Patch document, as an array of objects with operation, recipient type and value. Original defined in https://datatracker.ietf.org/doc/html/rfc6902. */
435
+ patchAction?: AlertingTaskRecipientPatch;
436
+ };
437
+ type ScheduleOptions = {
438
+ /** The chronos job identifier. It is set once the related chronos job is created. */
439
+ readonly chronosJobID?: string;
440
+ /** EndDateTime is a local date time with respect to the above timezone parameter. If the timezone parameter is missing, then the timezone used is the one retrieved from user infos. Therefore ISO8601 time offsets are not allowed (e.g. "2026-01-02T16:04:05Z" or "2026-01-02T16:04:05+01"), if passed an error will be returned. EndDateTime is an optional parameter, when not set or when it's an empty string, the recurrence is intended to be never ending. */
441
+ endDateTime?: string;
442
+ /** lastExecutionTime is the time of the chronos job last execution in RFC3339 format (a time with a fixed UTC offset). Could be empty if job has not run yet. */
443
+ readonly lastExecutionTime?: string;
444
+ /** nextExecutionTime is the time of the chronos job next execution in RFC3339 format (a time with a fixed UTC offset). Could be empty if the job is completed. */
445
+ readonly nextExecutionTime?: string;
446
+ /** List of RRULEs for SCHEDULED triggers, as specified in RFC5545. Note that DTSTART and DTEND, UNTIL lines are not allowed in this field; start and end times are specified in the start and end fields. RDATE and EXDATE lines are not currently supported. EXRULE is not supported since it is deprecated by RFC5545. It is mandatory if the trigger type is SCHEDULED. At least 1 rule must be set and maximum 5 rules are allowed. */
447
+ recurrence?: string[];
448
+ /** StartDateTime is a local date time with respect to the above timezone parameter. If the timezone parameter is missing, then the timezone used is the one retrieved from user infos. Therefore ISO8601 time offsets are not allowed (e.g. "2026-01-02T16:04:05Z" or "2026-01-02T16:04:05+01"), if passed an error will be returned. StartDateTime should not be older than 1 year from current date. StartDateTime is an optional parameter, when not set or when it's an empty string, its value is set to the current local date time. */
449
+ startDateTime?: string;
450
+ /** The timezone for time calculations in SCHEDULED triggers, optional. */
451
+ timezone?: string;
452
+ };
453
+ /**
454
+ * Object with Href to a particular element or set of elements
455
+ */
456
+ type Self = {
457
+ href?: string;
458
+ };
459
+ /**
460
+ * properties that should be added to every list response
461
+ */
462
+ type StandardListResponseProps = {
463
+ /** count of entries on the currently shown page */
464
+ currentPageCount: number;
465
+ /** total count of entries in the collection as a whole */
466
+ totalCount: number;
467
+ };
468
+ type TaskGroupRecipientError = {
469
+ /** Timestamp for the creation of the error */
470
+ timestamp?: string;
471
+ /** Identifier for type of error occurring on sharing task specific for group recipient */
472
+ value?: "GROUP_IS_DISABLED" | "MAX_ALERTS_LIMIT_REACHED" | "GROUP_WITH_NO_APP_ACCESS" | "GROUP_IS_DELETED" | "GROUP_NOT_FOUND_DL" | "GROUP_DISABLED_IN_DL";
473
+ };
474
+ type TaskRecipientError = {
475
+ /** Timestamp for the creation of the error */
476
+ timestamp?: string;
477
+ /** Identifier for type of error occurring on sharing task specific for recipient */
478
+ value?: "USER_IS_DELETED" | "USER_DISABLED_IN_QCS" | "NO_ACCESS_TO_APP" | "UNSUBSCRIBED_FROM_SHARING" | "USER_DISABLED_IN_SHARING_BY_OWNER" | "CHART_NOT_FOUND" | "APP_NOT_FOUND" | "SHEET_NOT_FOUND" | "ENGINE_POD_NOT_AVAILABLE" | "CHART_TYPE_NOT_ALLOWED" | "GENERIC_EXECUTION_FAILURE" | "USER_NOT_FOUND_DL" | "USER_DISABLED_IN_DL" | "FILTER_NOT_FOUND" | "BOOKMARK_NOT_FOUND";
479
+ };
480
+ /**
481
+ * The rules and setup for throttling
482
+ */
483
+ type ThrottlingResource = {
484
+ /** the maximum number of tokens that the bucket can contain */
485
+ capacity?: number;
486
+ /** the initial amount of tokens in the bucket upon creation. cannot exceed capacity. */
487
+ initialTokenCount?: number;
488
+ /** A string that supports a subset of RFC5545 recurrence rule directives. */
489
+ recurrenceRule?: string;
490
+ /** a date and time reference specified in RFC3339 format */
491
+ referenceTimestamp?: string;
492
+ /** the amount of tokens to insert into the bucket on the specified interval. (tokens exceeding capacity are discarded) */
493
+ replenishRate?: number;
494
+ /** the timezone for time calculations in this throttlingresource, for current time and time reference. */
495
+ timezone?: string;
496
+ };
497
+ /**
498
+ * an internal recipient based on its user id.
499
+ */
500
+ type UserIDRecipient = {
501
+ alertingTaskRecipientErrors?: AlertingTaskRecipientError[];
502
+ /** Whether this recipient can receive alerts. */
503
+ enabled?: boolean;
504
+ /** A list of associated groups. If a user is added individually the "addedIndividually" pseudo group is included */
505
+ groups?: string[];
506
+ /** Whether this recipient is subscribed to alerts of a task */
507
+ subscribed?: boolean;
508
+ taskRecipientErrors?: TaskRecipientError[];
509
+ /** User ID of recipient (internal user). */
510
+ value?: string;
511
+ };
512
+ /**
513
+ * Retrieves all data alert tasks accessible to the user. Users assigned the `TenantAdmin` or `AnalyticsAdmin` role can view all tasks.
514
+ *
515
+ * @param query an object with query parameters
516
+ * @throws GetDataAlertsHttpError
517
+ */
518
+ declare function getDataAlerts(query: {
519
+ /** The app ID you would like to filter by */
520
+ appID?: string;
521
+ /** The conditionId you would like to filter by */
522
+ conditionId?: string;
523
+ /** Limit the returned result set */
524
+ limit?: number;
525
+ /** The cursor to the next page of data. Only one of next or previous may be specified. */
526
+ next?: string;
527
+ /** Offset for finding a list of entities - used for pagination */
528
+ offset?: number;
529
+ /** The id of the owner you would like to filter by */
530
+ ownerId?: string;
531
+ /** The name of the owner you would like to filter by */
532
+ ownerName?: string;
533
+ /** The cursor to the previous page of data. Only one of next or previous may be specified. */
534
+ prev?: string;
535
+ /** The role you would like to filter by */
536
+ role?: ("owner" | "recipient" | "notowner")[];
537
+ /** Sort the returned result set by the specified field */
538
+ sort?: ("-datecreated" | "datecreated" | "+datecreated" | "-ownername" | "ownername" | "+ownername" | "lasttrigger" | "-lasttrigger" | "+lasttrigger" | "lastscan" | "-lastscan" | "+lastscan" | "name" | "-name" | "+name" | "enabled" | "-enabled" | "+enabled" | "status" | "-status" | "+status" | "nextexecutiontime" | "-nextexecutiontime" | "+nextexecutiontime")[];
539
+ /** The status you would like to filter by */
540
+ status?: ("INVALID_RECIPIENT" | "INVALID_OWNER" | "DISABLED" | "VALID")[];
541
+ }, options?: ApiCallOptions): Promise<GetDataAlertsHttpResponse>;
542
+ type GetDataAlertsHttpResponse = {
543
+ data: AlertingTaskListResponse;
544
+ headers: Headers;
545
+ status: 200;
546
+ prev?: (options?: ApiCallOptions) => Promise<GetDataAlertsHttpResponse>;
547
+ next?: (options?: ApiCallOptions) => Promise<GetDataAlertsHttpResponse>;
548
+ };
549
+ type GetDataAlertsHttpError = {
550
+ data: Errors;
551
+ headers: Headers;
552
+ status: number;
553
+ };
554
+ /**
555
+ * Creates a new data alerting task.
556
+ *
557
+ * @param body an object with the body content
558
+ * @throws CreateDataAlertHttpError
559
+ */
560
+ declare function createDataAlert(body: AlertingTaskCreateRequest, options?: ApiCallOptions): Promise<CreateDataAlertHttpResponse>;
561
+ type CreateDataAlertHttpResponse = {
562
+ data: AlertingTaskResponse;
563
+ headers: Headers;
564
+ status: 202;
565
+ };
566
+ type CreateDataAlertHttpError = {
567
+ data: Errors;
568
+ headers: Headers;
569
+ status: number;
570
+ };
571
+ /**
572
+ * Creates a new data alerting task trigger action.
573
+ *
574
+ * @param body an object with the body content
575
+ * @throws TriggerDataAlertsHttpError
576
+ */
577
+ declare function triggerDataAlerts(body: AlertingActionsTriggerCreateRequest, options?: ApiCallOptions): Promise<TriggerDataAlertsHttpResponse>;
578
+ type TriggerDataAlertsHttpResponse = {
579
+ data: AlertingActionsTriggerCreateResponse;
580
+ headers: Headers;
581
+ status: 202;
582
+ };
583
+ type TriggerDataAlertsHttpError = {
584
+ data: Errors;
585
+ headers: Headers;
586
+ status: number;
587
+ };
588
+ /**
589
+ * Validates a new data alerting task. Current support includes validation for recipients only.
590
+ *
591
+ * @param body an object with the body content
592
+ * @throws ValidateDataAlertsHttpError
593
+ */
594
+ declare function validateDataAlerts(body: AlertingTaskCreateRequest, options?: ApiCallOptions): Promise<ValidateDataAlertsHttpResponse>;
595
+ type ValidateDataAlertsHttpResponse = {
596
+ data: AlertingTaskValidationResponse;
597
+ headers: Headers;
598
+ status: 200;
599
+ };
600
+ type ValidateDataAlertsHttpError = {
601
+ data: Errors;
602
+ headers: Headers;
603
+ status: number;
604
+ };
605
+ /**
606
+ * Retrieves the current settings for data alerts.
607
+ *
608
+ * @throws GetDataAlertsSettingsHttpError
609
+ */
610
+ declare function getDataAlertsSettings(options?: ApiCallOptions): Promise<GetDataAlertsSettingsHttpResponse>;
611
+ type GetDataAlertsSettingsHttpResponse = {
612
+ data: AlertingSettings;
613
+ headers: Headers;
614
+ status: 200;
615
+ };
616
+ type GetDataAlertsSettingsHttpError = {
617
+ data: Errors;
618
+ headers: Headers;
619
+ status: number;
620
+ };
621
+ /**
622
+ * Updates the settings for data alerts. User must be assigned the `TenantAdmin` role.
623
+ *
624
+ * @param body an object with the body content
625
+ * @throws SetDataAlertsSettingsHttpError
626
+ */
627
+ declare function setDataAlertsSettings(body: AlertingSettingsUpload, options?: ApiCallOptions): Promise<SetDataAlertsSettingsHttpResponse>;
628
+ type SetDataAlertsSettingsHttpResponse = {
629
+ data: void;
630
+ headers: Headers;
631
+ status: 204;
632
+ };
633
+ type SetDataAlertsSettingsHttpError = {
634
+ data: Errors;
635
+ headers: Headers;
636
+ status: number;
637
+ };
638
+ /**
639
+ * Deletes a specific data alerting task.
640
+ *
641
+ * @param alertId The alerting task identifier.
642
+ * @throws DeleteDataAlertHttpError
643
+ */
644
+ declare function deleteDataAlert(alertId: string, options?: ApiCallOptions): Promise<DeleteDataAlertHttpResponse>;
645
+ type DeleteDataAlertHttpResponse = {
646
+ data: void;
647
+ headers: Headers;
648
+ status: 204;
649
+ };
650
+ type DeleteDataAlertHttpError = {
651
+ data: Errors;
652
+ headers: Headers;
653
+ status: number;
654
+ };
655
+ /**
656
+ * Returns the details of a specific data alert task.
657
+ *
658
+ * @param alertId The alerting task identifier.
659
+ * @throws GetDataAlertHttpError
660
+ */
661
+ declare function getDataAlert(alertId: string, options?: ApiCallOptions): Promise<GetDataAlertHttpResponse>;
662
+ type GetDataAlertHttpResponse = {
663
+ data: AlertingTaskResponse;
664
+ headers: Headers;
665
+ status: 200;
666
+ };
667
+ type GetDataAlertHttpError = {
668
+ data: Errors;
669
+ headers: Headers;
670
+ status: number;
671
+ };
672
+ /**
673
+ * Updates one or more properties of a specific data alerting task.
674
+ *
675
+ * @param alertId The alerting task identifier.
676
+ * @param body an object with the body content
677
+ * @throws PatchDataAlertHttpError
678
+ */
679
+ declare function patchDataAlert(alertId: string, body: AlertingTaskPatchRequestCompliantList, options?: ApiCallOptions): Promise<PatchDataAlertHttpResponse>;
680
+ type PatchDataAlertHttpResponse = {
681
+ data: void;
682
+ headers: Headers;
683
+ status: 204;
684
+ };
685
+ type PatchDataAlertHttpError = {
686
+ data: Errors;
687
+ headers: Headers;
688
+ status: number;
689
+ };
690
+ /**
691
+ * Retrieves the condition associated with a data alerting task.
692
+ *
693
+ * @param alertId The alerting task identifier.
694
+ * @throws GetDataAlertConditionHttpError
695
+ */
696
+ declare function getDataAlertCondition(alertId: string, options?: ApiCallOptions): Promise<GetDataAlertConditionHttpResponse>;
697
+ type GetDataAlertConditionHttpResponse = {
698
+ data: AlertingConditionResponse;
699
+ headers: Headers;
700
+ status: 200;
701
+ };
702
+ type GetDataAlertConditionHttpError = {
703
+ data: Errors;
704
+ headers: Headers;
705
+ status: number;
706
+ };
707
+ /**
708
+ * Deletes a specific data alerting task execution.
709
+ *
710
+ * @param alertId The alerting task identifier.
711
+ * @param executionId The execution identifier.
712
+ * @throws DeleteDataAlertExecutionHttpError
713
+ */
714
+ declare function deleteDataAlertExecution(alertId: string, executionId: string, options?: ApiCallOptions): Promise<DeleteDataAlertExecutionHttpResponse>;
715
+ type DeleteDataAlertExecutionHttpResponse = {
716
+ data: void;
717
+ headers: Headers;
718
+ status: 204;
719
+ };
720
+ type DeleteDataAlertExecutionHttpError = {
721
+ data: Errors;
722
+ headers: Headers;
723
+ status: number;
724
+ };
725
+ /**
726
+ * Retrieves a specific execution for the specified data alerting task.
727
+ *
728
+ * @param alertId The alerting task identifier.
729
+ * @param executionId The execution identifier. If value is "latest", the latest execution will be returned
730
+ * @throws GetDataAlertExecutionHttpError
731
+ */
732
+ declare function getDataAlertExecution(alertId: string, executionId: string, options?: ApiCallOptions): Promise<GetDataAlertExecutionHttpResponse>;
733
+ type GetDataAlertExecutionHttpResponse = {
734
+ data: AlertingExecutionResponse;
735
+ headers: Headers;
736
+ status: 200;
737
+ };
738
+ type GetDataAlertExecutionHttpError = {
739
+ data: Errors;
740
+ headers: Headers;
741
+ status: number;
742
+ };
743
+ /**
744
+ * Retrieve the recipient stats for a data alerting task.
745
+ *
746
+ * @param alertId The alerting task identifier.
747
+ * @param query an object with query parameters
748
+ * @throws GetDataAlertRecipientStatsHttpError
749
+ */
750
+ declare function getDataAlertRecipientStats(alertId: string, query: {
751
+ /** The name of the groups you would like to filter by */
752
+ groups?: string[];
753
+ /** Sort the returned result set by the specified field */
754
+ sort?: ("+userID" | "-userID" | "subscribed" | "+subscribed")[];
755
+ /** Subscribed property you would like to filter by */
756
+ subscribed?: boolean;
757
+ /** The recipients ID you would like to filter by */
758
+ userID?: string;
759
+ }, options?: ApiCallOptions): Promise<GetDataAlertRecipientStatsHttpResponse>;
760
+ type GetDataAlertRecipientStatsHttpResponse = {
761
+ data: AlertingRecipientStatsResponse;
762
+ headers: Headers;
763
+ status: 200;
764
+ };
765
+ type GetDataAlertRecipientStatsHttpError = {
766
+ data: Errors;
767
+ headers: Headers;
768
+ status: number;
769
+ };
770
+ /**
771
+ * Lists executions for the specified data alerting task.
772
+ *
773
+ * @param taskId The alerting task identifier.
774
+ * @param query an object with query parameters
775
+ * @throws GetDataAlertExecutionsHttpError
776
+ */
777
+ declare function getDataAlertExecutions(taskId: string, query: {
778
+ /** Filter by condition id related to the executions. */
779
+ conditionId?: string;
780
+ /** Filter by whether the alerting task execution status is FINISHED or FAILED. */
781
+ conditionStatus?: "FINISHED" | "FAILED" | "ALL";
782
+ /** Specifies required days of the month that the execution was created in */
783
+ daysOfMonth?: number[];
784
+ /** Specifies a filter for custom handled periods of time in which the executions were handled */
785
+ daysOfWeek?: ("MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY" | "SUNDAY")[];
786
+ /** Specifies specific properties to be populated */
787
+ fields?: ("evaluationId" | "triggerTime" | "conditionStatus" | "executionEvaluationStatus" | "evaluation" | "evaluation.endTime" | "evaluation.resultData" | "evaluation.resultData.count" | "evaluation.resultData.headers" | "evaluation.resultData.positive" | "evaluation.resultData.negative" | "evaluation.resultData.dimensions" | "evaluation.resultData.measures")[];
788
+ /** Specifies whether to include evaluation details */
789
+ includeEvaluation?: boolean;
790
+ /** Specifies whether to only show the last execution in each day */
791
+ lastEachDay?: boolean;
792
+ /** Limit the returned result set */
793
+ limit?: number;
794
+ /** Specifies the number of days required between each entry. This should require a sort by triggertime */
795
+ minimumGapDays?: number;
796
+ /** The cursor to the next page of data. Only one of next or previous may be specified. */
797
+ next?: string;
798
+ /** Offset for pagination - how many elements to skip */
799
+ offset?: number;
800
+ /** The cursor to the previous page of data. Only one of next or previous may be specified. */
801
+ prev?: string;
802
+ /** Specifies a limit number for the search query, affects total count and is not related to pagination */
803
+ searchResultsLimit?: number;
804
+ /** Specifies a date that executions should have been created after. Date in RFC3339Nano format, such as 2020-01-01T00:00:00.000Z */
805
+ since?: string;
806
+ /** Sort the returned result set by the specified field */
807
+ sort?: ("triggertime" | "-triggertime" | "+triggertime")[];
808
+ /** Specifies a timezone the other time-based filters in this query should consider. Expecting a momentjs format, such as America/Los_Angeles */
809
+ timezone?: string;
810
+ /** Filter by whether the alerting task is triggered. */
811
+ triggered?: boolean;
812
+ /** Specifies a date that executions should have been created before. Date in RFC3339Nano format, such as 2020-01-01T00:00:00.000Z */
813
+ until?: string;
814
+ }, options?: ApiCallOptions): Promise<GetDataAlertExecutionsHttpResponse>;
815
+ type GetDataAlertExecutionsHttpResponse = {
816
+ data: AlertingExecutionListResponse;
817
+ headers: Headers;
818
+ status: 200;
819
+ prev?: (options?: ApiCallOptions) => Promise<GetDataAlertExecutionsHttpResponse>;
820
+ next?: (options?: ApiCallOptions) => Promise<GetDataAlertExecutionsHttpResponse>;
821
+ };
822
+ type GetDataAlertExecutionsHttpError = {
823
+ data: Errors;
824
+ headers: Headers;
825
+ status: number;
826
+ };
827
+ /**
828
+ * @deprecated
829
+ *
830
+ * Retrieves stats for overall data alerting task executions.
831
+ *
832
+ * @param taskId The alerting task identifier.
833
+ * @param query an object with query parameters
834
+ * @throws GetDataAlertExecutionsStatsHttpError
835
+ */
836
+ declare function getDataAlertExecutionsStats(taskId: string, query: {
837
+ /** The period by which the stats aggregation needs to be performed. */
838
+ period: "month";
839
+ }, options?: ApiCallOptions): Promise<GetDataAlertExecutionsStatsHttpResponse>;
840
+ type GetDataAlertExecutionsStatsHttpResponse = {
841
+ data: AlertingTaskExecutionStats;
842
+ headers: Headers;
843
+ status: 200;
844
+ prev?: (options?: ApiCallOptions) => Promise<GetDataAlertExecutionsStatsHttpResponse>;
845
+ next?: (options?: ApiCallOptions) => Promise<GetDataAlertExecutionsStatsHttpResponse>;
846
+ };
847
+ type GetDataAlertExecutionsStatsHttpError = {
848
+ data: Errors;
849
+ headers: Headers;
850
+ status: number;
851
+ };
852
+ /**
853
+ * Retrieves the content of an evaluation for a specified data alerting task execution.
854
+ *
855
+ * @param taskId The alerting task identifier.
856
+ * @param executionId The execution identifier.
857
+ * @throws GetDataAlertExecutionEvaluationsHttpError
858
+ */
859
+ declare function getDataAlertExecutionEvaluations(taskId: string, executionId: string, options?: ApiCallOptions): Promise<GetDataAlertExecutionEvaluationsHttpResponse>;
860
+ type GetDataAlertExecutionEvaluationsHttpResponse = {
861
+ data: EvaluationGetResponse;
862
+ headers: Headers;
863
+ status: 200;
864
+ };
865
+ type GetDataAlertExecutionEvaluationsHttpError = {
866
+ data: Errors;
867
+ headers: Headers;
868
+ status: number;
869
+ };
870
+ /**
871
+ * Clears the cache for data-alerts api requests.
872
+ */
873
+ declare function clearCache(): void;
874
+ type DataAlertsAPI = {
875
+ /**
876
+ * Retrieves all data alert tasks accessible to the user. Users assigned the `TenantAdmin` or `AnalyticsAdmin` role can view all tasks.
877
+ *
878
+ * @param query an object with query parameters
879
+ * @throws GetDataAlertsHttpError
880
+ */
881
+ getDataAlerts: typeof getDataAlerts;
882
+ /**
883
+ * Creates a new data alerting task.
884
+ *
885
+ * @param body an object with the body content
886
+ * @throws CreateDataAlertHttpError
887
+ */
888
+ createDataAlert: typeof createDataAlert;
889
+ /**
890
+ * Creates a new data alerting task trigger action.
891
+ *
892
+ * @param body an object with the body content
893
+ * @throws TriggerDataAlertsHttpError
894
+ */
895
+ triggerDataAlerts: typeof triggerDataAlerts;
896
+ /**
897
+ * Validates a new data alerting task. Current support includes validation for recipients only.
898
+ *
899
+ * @param body an object with the body content
900
+ * @throws ValidateDataAlertsHttpError
901
+ */
902
+ validateDataAlerts: typeof validateDataAlerts;
903
+ /**
904
+ * Retrieves the current settings for data alerts.
905
+ *
906
+ * @throws GetDataAlertsSettingsHttpError
907
+ */
908
+ getDataAlertsSettings: typeof getDataAlertsSettings;
909
+ /**
910
+ * Updates the settings for data alerts. User must be assigned the `TenantAdmin` role.
911
+ *
912
+ * @param body an object with the body content
913
+ * @throws SetDataAlertsSettingsHttpError
914
+ */
915
+ setDataAlertsSettings: typeof setDataAlertsSettings;
916
+ /**
917
+ * Deletes a specific data alerting task.
918
+ *
919
+ * @param alertId The alerting task identifier.
920
+ * @throws DeleteDataAlertHttpError
921
+ */
922
+ deleteDataAlert: typeof deleteDataAlert;
923
+ /**
924
+ * Returns the details of a specific data alert task.
925
+ *
926
+ * @param alertId The alerting task identifier.
927
+ * @throws GetDataAlertHttpError
928
+ */
929
+ getDataAlert: typeof getDataAlert;
930
+ /**
931
+ * Updates one or more properties of a specific data alerting task.
932
+ *
933
+ * @param alertId The alerting task identifier.
934
+ * @param body an object with the body content
935
+ * @throws PatchDataAlertHttpError
936
+ */
937
+ patchDataAlert: typeof patchDataAlert;
938
+ /**
939
+ * Retrieves the condition associated with a data alerting task.
940
+ *
941
+ * @param alertId The alerting task identifier.
942
+ * @throws GetDataAlertConditionHttpError
943
+ */
944
+ getDataAlertCondition: typeof getDataAlertCondition;
945
+ /**
946
+ * Deletes a specific data alerting task execution.
947
+ *
948
+ * @param alertId The alerting task identifier.
949
+ * @param executionId The execution identifier.
950
+ * @throws DeleteDataAlertExecutionHttpError
951
+ */
952
+ deleteDataAlertExecution: typeof deleteDataAlertExecution;
953
+ /**
954
+ * Retrieves a specific execution for the specified data alerting task.
955
+ *
956
+ * @param alertId The alerting task identifier.
957
+ * @param executionId The execution identifier. If value is "latest", the latest execution will be returned
958
+ * @throws GetDataAlertExecutionHttpError
959
+ */
960
+ getDataAlertExecution: typeof getDataAlertExecution;
961
+ /**
962
+ * Retrieve the recipient stats for a data alerting task.
963
+ *
964
+ * @param alertId The alerting task identifier.
965
+ * @param query an object with query parameters
966
+ * @throws GetDataAlertRecipientStatsHttpError
967
+ */
968
+ getDataAlertRecipientStats: typeof getDataAlertRecipientStats;
969
+ /**
970
+ * Lists executions for the specified data alerting task.
971
+ *
972
+ * @param taskId The alerting task identifier.
973
+ * @param query an object with query parameters
974
+ * @throws GetDataAlertExecutionsHttpError
975
+ */
976
+ getDataAlertExecutions: typeof getDataAlertExecutions;
977
+ /**
978
+ * @deprecated
979
+ *
980
+ * Retrieves stats for overall data alerting task executions.
981
+ *
982
+ * @param taskId The alerting task identifier.
983
+ * @param query an object with query parameters
984
+ * @throws GetDataAlertExecutionsStatsHttpError
985
+ */
986
+ getDataAlertExecutionsStats: typeof getDataAlertExecutionsStats;
987
+ /**
988
+ * Retrieves the content of an evaluation for a specified data alerting task execution.
989
+ *
990
+ * @param taskId The alerting task identifier.
991
+ * @param executionId The execution identifier.
992
+ * @throws GetDataAlertExecutionEvaluationsHttpError
993
+ */
994
+ getDataAlertExecutionEvaluations: typeof getDataAlertExecutionEvaluations;
995
+ /**
996
+ * Clears the cache for data-alerts api requests.
997
+ */
998
+ clearCache: typeof clearCache;
999
+ };
1000
+ /**
1001
+ * Functions for the data-alerts api
1002
+ */
1003
+ declare const dataAlertsExport: DataAlertsAPI;
1004
+ //#endregion
4
1005
  export { AlertingActionsTriggerCreateRequest, AlertingActionsTriggerCreateResponse, AlertingConditionResponse, AlertingExecutionError, AlertingExecutionErrors, AlertingExecutionListResponse, AlertingExecutionPersist, AlertingExecutionResponse, AlertingExecutionResult, AlertingRecipientStats, AlertingRecipientStatsError, AlertingRecipientStatsErrors, AlertingRecipientStatsResponse, AlertingSettings, AlertingSettingsUpload, AlertingTaskCreateRequest, AlertingTaskError, AlertingTaskExecutionStats, AlertingTaskGroupRecipientError, AlertingTaskListResponse, AlertingTaskPatchRequestCompliant, AlertingTaskPatchRequestCompliantList, AlertingTaskRecipientError, AlertingTaskRecipientPatch, AlertingTaskRecipientPatchInner, AlertingTaskResponse, AlertingTaskTriggerStats, AlertingTaskValidation, AlertingTaskValidationResponse, CreateDataAlertHttpError, CreateDataAlertHttpResponse, DataAlertsAPI, DeleteDataAlertExecutionHttpError, DeleteDataAlertExecutionHttpResponse, DeleteDataAlertHttpError, DeleteDataAlertHttpResponse, Error, ErrorMeta, Errors, Evaluation, EvaluationGetResponse, ExecutionStats, GetDataAlertConditionHttpError, GetDataAlertConditionHttpResponse, GetDataAlertExecutionEvaluationsHttpError, GetDataAlertExecutionEvaluationsHttpResponse, GetDataAlertExecutionHttpError, GetDataAlertExecutionHttpResponse, GetDataAlertExecutionsHttpError, GetDataAlertExecutionsHttpResponse, GetDataAlertExecutionsStatsHttpError, GetDataAlertExecutionsStatsHttpResponse, GetDataAlertHttpError, GetDataAlertHttpResponse, GetDataAlertRecipientStatsHttpError, GetDataAlertRecipientStatsHttpResponse, GetDataAlertsHttpError, GetDataAlertsHttpResponse, GetDataAlertsSettingsHttpError, GetDataAlertsSettingsHttpResponse, GroupIDRecipient, Links, ListLinks, Page, PatchDataAlertHttpError, PatchDataAlertHttpResponse, Recipients, RecipientsChange, ScheduleOptions, Self, SetDataAlertsSettingsHttpError, SetDataAlertsSettingsHttpResponse, StandardListResponseProps, TaskGroupRecipientError, TaskRecipientError, ThrottlingResource, TriggerDataAlertsHttpError, TriggerDataAlertsHttpResponse, UserIDRecipient, ValidateDataAlertsHttpError, ValidateDataAlertsHttpResponse, clearCache, createDataAlert, dataAlertsExport as default, deleteDataAlert, deleteDataAlertExecution, getDataAlert, getDataAlertCondition, getDataAlertExecution, getDataAlertExecutionEvaluations, getDataAlertExecutions, getDataAlertExecutionsStats, getDataAlertRecipientStats, getDataAlerts, getDataAlertsSettings, patchDataAlert, setDataAlertsSettings, triggerDataAlerts, validateDataAlerts };