@qlik/api 1.32.0 → 1.34.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 (142) hide show
  1. package/api-keys.d.ts +13 -12
  2. package/api-keys.js +64 -50
  3. package/apps.d.ts +56 -56
  4. package/apps.js +392 -304
  5. package/assistants.d.ts +34 -34
  6. package/assistants.js +257 -201
  7. package/audits.d.ts +10 -10
  8. package/audits.js +48 -36
  9. package/{auth-types-DqfMuSRX.d.ts → auth-types-Cj5bM3Yk.d.ts} +29 -9
  10. package/auth.d.ts +17 -4
  11. package/auth.js +4 -2
  12. package/automation-connections.d.ts +12 -12
  13. package/automation-connections.js +75 -59
  14. package/automations.d.ts +29 -29
  15. package/automations.js +159 -123
  16. package/automl-deployments.d.ts +4 -4
  17. package/automl-deployments.js +14 -12
  18. package/automl-predictions.d.ts +13 -13
  19. package/automl-predictions.js +56 -44
  20. package/brands.d.ts +18 -18
  21. package/brands.js +107 -83
  22. package/chunks/{LY7RP2HA.js → 4V6T7Y4L.js} +26 -8
  23. package/chunks/{RCLKKVYB.js → 6C6WMV7V.js} +9 -2
  24. package/chunks/{VVD2DPKQ.js → 6WNP7HZQ.js} +3 -3
  25. package/chunks/7MMXU6EL.js +86 -0
  26. package/chunks/{6ZONDHRN.js → EEE42MLS.js} +11 -4
  27. package/chunks/{FKDGGR2O.js → I2HA7WJB.js} +1362 -1366
  28. package/chunks/{M64RLKVG.js → M7AINAXZ.js} +7 -5
  29. package/chunks/{LTNGXTXG.js → QAOVZB27.js} +3 -3
  30. package/chunks/{YTT2FEVE.js → QZKOA6VR.js} +1 -1
  31. package/chunks/{UZTIZ4H5.js → VUYZKBT5.js} +74 -74
  32. package/chunks/{3RGGGGAR.js → ZCTVPXGO.js} +1 -1
  33. package/collections.d.ts +16 -15
  34. package/collections.js +98 -76
  35. package/conditions.d.ts +13 -13
  36. package/conditions.js +97 -75
  37. package/consumption.d.ts +4 -4
  38. package/consumption.js +11 -9
  39. package/csp-origins.d.ts +9 -9
  40. package/csp-origins.js +53 -41
  41. package/csrf-token.d.ts +3 -3
  42. package/csrf-token.js +10 -8
  43. package/data-alerts.d.ts +22 -22
  44. package/data-alerts.js +139 -107
  45. package/data-assets.d.ts +8 -8
  46. package/data-assets.js +50 -40
  47. package/data-connections.d.ts +16 -16
  48. package/data-connections.js +87 -69
  49. package/data-credentials.d.ts +11 -11
  50. package/data-credentials.js +52 -42
  51. package/data-files.d.ts +18 -18
  52. package/data-files.js +107 -83
  53. package/data-qualities.d.ts +6 -6
  54. package/data-qualities.js +28 -22
  55. package/data-sets.d.ts +10 -10
  56. package/data-sets.js +59 -47
  57. package/data-sources.d.ts +7 -7
  58. package/data-sources.js +28 -22
  59. package/data-stores.d.ts +16 -16
  60. package/data-stores.js +92 -72
  61. package/dcaas.d.ts +6 -6
  62. package/dcaas.js +28 -22
  63. package/di-projects.d.ts +22 -22
  64. package/di-projects.js +148 -116
  65. package/direct-access-agents.d.ts +328 -0
  66. package/direct-access-agents.js +108 -0
  67. package/encryption.d.ts +12 -12
  68. package/encryption.js +82 -62
  69. package/extensions.d.ts +11 -11
  70. package/extensions.js +61 -47
  71. package/glossaries.d.ts +33 -33
  72. package/glossaries.js +221 -173
  73. package/groups.d.ts +12 -12
  74. package/groups.js +72 -56
  75. package/identity-providers.d.ts +11 -11
  76. package/identity-providers.js +67 -51
  77. package/index.d.ts +9 -4
  78. package/index.js +102 -67
  79. package/interceptors.d.ts +9 -2
  80. package/interceptors.js +2 -2
  81. package/invoke-fetch-types-BYCD4pc9.d.ts +98 -0
  82. package/items.d.ts +14 -13
  83. package/items.js +71 -55
  84. package/knowledgebases.d.ts +23 -23
  85. package/knowledgebases.js +153 -119
  86. package/licenses.d.ts +16 -14
  87. package/licenses.js +76 -58
  88. package/lineage-graphs.d.ts +17 -17
  89. package/lineage-graphs.js +76 -60
  90. package/ml.d.ts +238 -60
  91. package/ml.js +391 -286
  92. package/notes.d.ts +4 -4
  93. package/notes.js +19 -15
  94. package/notifications.d.ts +4 -4
  95. package/notifications.js +11 -9
  96. package/oauth-clients.d.ts +14 -14
  97. package/oauth-clients.js +96 -74
  98. package/oauth-tokens.d.ts +5 -5
  99. package/oauth-tokens.js +19 -15
  100. package/package.json +8 -6
  101. package/qix.d.ts +145 -4
  102. package/qix.js +2 -2
  103. package/questions.d.ts +5 -5
  104. package/questions.js +22 -18
  105. package/quotas.d.ts +6 -6
  106. package/quotas.js +20 -16
  107. package/reload-tasks.d.ts +8 -8
  108. package/reload-tasks.js +46 -36
  109. package/reloads.d.ts +7 -7
  110. package/reloads.js +36 -28
  111. package/report-templates.d.ts +10 -10
  112. package/report-templates.js +64 -50
  113. package/reports.d.ts +4 -4
  114. package/reports.js +20 -16
  115. package/roles.d.ts +8 -8
  116. package/roles.js +46 -36
  117. package/sharing-tasks.d.ts +14 -14
  118. package/sharing-tasks.js +89 -69
  119. package/spaces.d.ts +27 -23
  120. package/spaces.js +153 -119
  121. package/tasks.d.ts +17 -17
  122. package/tasks.js +90 -70
  123. package/temp-contents.d.ts +7 -7
  124. package/temp-contents.js +30 -24
  125. package/tenants.d.ts +8 -8
  126. package/tenants.js +57 -45
  127. package/themes.d.ts +11 -11
  128. package/themes.js +61 -47
  129. package/transports.d.ts +8 -8
  130. package/transports.js +49 -37
  131. package/ui-config.d.ts +9 -9
  132. package/ui-config.js +61 -47
  133. package/users.d.ts +15 -15
  134. package/users.js +81 -63
  135. package/web-integrations.d.ts +8 -8
  136. package/web-integrations.js +46 -36
  137. package/web-notifications.d.ts +9 -9
  138. package/web-notifications.js +53 -41
  139. package/webhooks.d.ts +14 -14
  140. package/webhooks.js +88 -68
  141. package/chunks/2ZQ3ZX7F.js +0 -33
  142. package/invoke-fetch-types-Cq7bjkqn.d.ts +0 -243
package/data-alerts.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
- import './auth-types-DqfMuSRX.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
3
 
4
4
  type AlertingActionsTriggerCreateRequest = {
5
5
  alertingTaskID: string;
@@ -514,7 +514,7 @@ type UserIDRecipient = {
514
514
  * @param query an object with query parameters
515
515
  * @throws GetDataAlertsHttpError
516
516
  */
517
- declare const getDataAlerts: (query: {
517
+ declare function getDataAlerts(query: {
518
518
  /** The app ID you would like to filter by */
519
519
  appID?: string;
520
520
  /** The conditionId you would like to filter by */
@@ -537,7 +537,7 @@ declare const getDataAlerts: (query: {
537
537
  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")[];
538
538
  /** The status you would like to filter by */
539
539
  status?: ("INVALID_RECIPIENT" | "INVALID_OWNER" | "DISABLED" | "VALID")[];
540
- }, options?: ApiCallOptions) => Promise<GetDataAlertsHttpResponse>;
540
+ }, options?: ApiCallOptions): Promise<GetDataAlertsHttpResponse>;
541
541
  type GetDataAlertsHttpResponse = {
542
542
  data: AlertingTaskListResponse;
543
543
  headers: Headers;
@@ -556,7 +556,7 @@ type GetDataAlertsHttpError = {
556
556
  * @param body an object with the body content
557
557
  * @throws CreateDataAlertHttpError
558
558
  */
559
- declare const createDataAlert: (body: AlertingTaskCreateRequest, options?: ApiCallOptions) => Promise<CreateDataAlertHttpResponse>;
559
+ declare function createDataAlert(body: AlertingTaskCreateRequest, options?: ApiCallOptions): Promise<CreateDataAlertHttpResponse>;
560
560
  type CreateDataAlertHttpResponse = {
561
561
  data: AlertingTaskResponse;
562
562
  headers: Headers;
@@ -573,7 +573,7 @@ type CreateDataAlertHttpError = {
573
573
  * @param body an object with the body content
574
574
  * @throws TriggerDataAlertsHttpError
575
575
  */
576
- declare const triggerDataAlerts: (body: AlertingActionsTriggerCreateRequest, options?: ApiCallOptions) => Promise<TriggerDataAlertsHttpResponse>;
576
+ declare function triggerDataAlerts(body: AlertingActionsTriggerCreateRequest, options?: ApiCallOptions): Promise<TriggerDataAlertsHttpResponse>;
577
577
  type TriggerDataAlertsHttpResponse = {
578
578
  data: AlertingActionsTriggerCreateResponse;
579
579
  headers: Headers;
@@ -590,7 +590,7 @@ type TriggerDataAlertsHttpError = {
590
590
  * @param body an object with the body content
591
591
  * @throws ValidateDataAlertsHttpError
592
592
  */
593
- declare const validateDataAlerts: (body: AlertingTaskCreateRequest, options?: ApiCallOptions) => Promise<ValidateDataAlertsHttpResponse>;
593
+ declare function validateDataAlerts(body: AlertingTaskCreateRequest, options?: ApiCallOptions): Promise<ValidateDataAlertsHttpResponse>;
594
594
  type ValidateDataAlertsHttpResponse = {
595
595
  data: AlertingTaskValidationResponse;
596
596
  headers: Headers;
@@ -606,7 +606,7 @@ type ValidateDataAlertsHttpError = {
606
606
  *
607
607
  * @throws GetDataAlertsSettingsHttpError
608
608
  */
609
- declare const getDataAlertsSettings: (options?: ApiCallOptions) => Promise<GetDataAlertsSettingsHttpResponse>;
609
+ declare function getDataAlertsSettings(options?: ApiCallOptions): Promise<GetDataAlertsSettingsHttpResponse>;
610
610
  type GetDataAlertsSettingsHttpResponse = {
611
611
  data: AlertingSettings;
612
612
  headers: Headers;
@@ -623,7 +623,7 @@ type GetDataAlertsSettingsHttpError = {
623
623
  * @param body an object with the body content
624
624
  * @throws SetDataAlertsSettingsHttpError
625
625
  */
626
- declare const setDataAlertsSettings: (body: AlertingSettingsUpload, options?: ApiCallOptions) => Promise<SetDataAlertsSettingsHttpResponse>;
626
+ declare function setDataAlertsSettings(body: AlertingSettingsUpload, options?: ApiCallOptions): Promise<SetDataAlertsSettingsHttpResponse>;
627
627
  type SetDataAlertsSettingsHttpResponse = {
628
628
  data: void;
629
629
  headers: Headers;
@@ -640,7 +640,7 @@ type SetDataAlertsSettingsHttpError = {
640
640
  * @param alertId The alerting task identifier.
641
641
  * @throws DeleteDataAlertHttpError
642
642
  */
643
- declare const deleteDataAlert: (alertId: string, options?: ApiCallOptions) => Promise<DeleteDataAlertHttpResponse>;
643
+ declare function deleteDataAlert(alertId: string, options?: ApiCallOptions): Promise<DeleteDataAlertHttpResponse>;
644
644
  type DeleteDataAlertHttpResponse = {
645
645
  data: void;
646
646
  headers: Headers;
@@ -657,7 +657,7 @@ type DeleteDataAlertHttpError = {
657
657
  * @param alertId The alerting task identifier.
658
658
  * @throws GetDataAlertHttpError
659
659
  */
660
- declare const getDataAlert: (alertId: string, options?: ApiCallOptions) => Promise<GetDataAlertHttpResponse>;
660
+ declare function getDataAlert(alertId: string, options?: ApiCallOptions): Promise<GetDataAlertHttpResponse>;
661
661
  type GetDataAlertHttpResponse = {
662
662
  data: AlertingTaskResponse;
663
663
  headers: Headers;
@@ -675,7 +675,7 @@ type GetDataAlertHttpError = {
675
675
  * @param body an object with the body content
676
676
  * @throws PatchDataAlertHttpError
677
677
  */
678
- declare const patchDataAlert: (alertId: string, body: AlertingTaskPatchRequestCompliantList, options?: ApiCallOptions) => Promise<PatchDataAlertHttpResponse>;
678
+ declare function patchDataAlert(alertId: string, body: AlertingTaskPatchRequestCompliantList, options?: ApiCallOptions): Promise<PatchDataAlertHttpResponse>;
679
679
  type PatchDataAlertHttpResponse = {
680
680
  data: void;
681
681
  headers: Headers;
@@ -692,7 +692,7 @@ type PatchDataAlertHttpError = {
692
692
  * @param alertId The alerting task identifier.
693
693
  * @throws GetDataAlertConditionHttpError
694
694
  */
695
- declare const getDataAlertCondition: (alertId: string, options?: ApiCallOptions) => Promise<GetDataAlertConditionHttpResponse>;
695
+ declare function getDataAlertCondition(alertId: string, options?: ApiCallOptions): Promise<GetDataAlertConditionHttpResponse>;
696
696
  type GetDataAlertConditionHttpResponse = {
697
697
  data: AlertingConditionResponse;
698
698
  headers: Headers;
@@ -710,7 +710,7 @@ type GetDataAlertConditionHttpError = {
710
710
  * @param executionId The execution identifier.
711
711
  * @throws DeleteDataAlertExecutionHttpError
712
712
  */
713
- declare const deleteDataAlertExecution: (alertId: string, executionId: string, options?: ApiCallOptions) => Promise<DeleteDataAlertExecutionHttpResponse>;
713
+ declare function deleteDataAlertExecution(alertId: string, executionId: string, options?: ApiCallOptions): Promise<DeleteDataAlertExecutionHttpResponse>;
714
714
  type DeleteDataAlertExecutionHttpResponse = {
715
715
  data: void;
716
716
  headers: Headers;
@@ -728,7 +728,7 @@ type DeleteDataAlertExecutionHttpError = {
728
728
  * @param executionId The execution identifier. If value is "latest", the latest execution will be returned
729
729
  * @throws GetDataAlertExecutionHttpError
730
730
  */
731
- declare const getDataAlertExecution: (alertId: string, executionId: string, options?: ApiCallOptions) => Promise<GetDataAlertExecutionHttpResponse>;
731
+ declare function getDataAlertExecution(alertId: string, executionId: string, options?: ApiCallOptions): Promise<GetDataAlertExecutionHttpResponse>;
732
732
  type GetDataAlertExecutionHttpResponse = {
733
733
  data: AlertingExecutionResponse;
734
734
  headers: Headers;
@@ -746,7 +746,7 @@ type GetDataAlertExecutionHttpError = {
746
746
  * @param query an object with query parameters
747
747
  * @throws GetDataAlertRecipientStatsHttpError
748
748
  */
749
- declare const getDataAlertRecipientStats: (alertId: string, query: {
749
+ declare function getDataAlertRecipientStats(alertId: string, query: {
750
750
  /** The name of the groups you would like to filter by */
751
751
  groups?: string[];
752
752
  /** Sort the returned result set by the specified field */
@@ -755,7 +755,7 @@ declare const getDataAlertRecipientStats: (alertId: string, query: {
755
755
  subscribed?: boolean;
756
756
  /** The recipients ID you would like to filter by */
757
757
  userID?: string;
758
- }, options?: ApiCallOptions) => Promise<GetDataAlertRecipientStatsHttpResponse>;
758
+ }, options?: ApiCallOptions): Promise<GetDataAlertRecipientStatsHttpResponse>;
759
759
  type GetDataAlertRecipientStatsHttpResponse = {
760
760
  data: AlertingRecipientStatsResponse;
761
761
  headers: Headers;
@@ -773,7 +773,7 @@ type GetDataAlertRecipientStatsHttpError = {
773
773
  * @param query an object with query parameters
774
774
  * @throws GetDataAlertExecutionsHttpError
775
775
  */
776
- declare const getDataAlertExecutions: (taskId: string, query: {
776
+ declare function getDataAlertExecutions(taskId: string, query: {
777
777
  /** Filter by condition id related to the executions. */
778
778
  conditionId?: string;
779
779
  /** Filter by whether the alerting task execution status is FINISHED or FAILED. */
@@ -810,7 +810,7 @@ declare const getDataAlertExecutions: (taskId: string, query: {
810
810
  triggered?: boolean;
811
811
  /** Specifies a date that executions should have been created before. Date in RFC3339Nano format, such as 2020-01-01T00:00:00.000Z */
812
812
  until?: string;
813
- }, options?: ApiCallOptions) => Promise<GetDataAlertExecutionsHttpResponse>;
813
+ }, options?: ApiCallOptions): Promise<GetDataAlertExecutionsHttpResponse>;
814
814
  type GetDataAlertExecutionsHttpResponse = {
815
815
  data: AlertingExecutionListResponse;
816
816
  headers: Headers;
@@ -832,10 +832,10 @@ type GetDataAlertExecutionsHttpError = {
832
832
  * @param query an object with query parameters
833
833
  * @throws GetDataAlertExecutionsStatsHttpError
834
834
  */
835
- declare const getDataAlertExecutionsStats: (taskId: string, query: {
835
+ declare function getDataAlertExecutionsStats(taskId: string, query: {
836
836
  /** The period by which the stats aggregation needs to be performed. */
837
837
  period: "month";
838
- }, options?: ApiCallOptions) => Promise<GetDataAlertExecutionsStatsHttpResponse>;
838
+ }, options?: ApiCallOptions): Promise<GetDataAlertExecutionsStatsHttpResponse>;
839
839
  type GetDataAlertExecutionsStatsHttpResponse = {
840
840
  data: AlertingTaskExecutionStats;
841
841
  headers: Headers;
@@ -855,7 +855,7 @@ type GetDataAlertExecutionsStatsHttpError = {
855
855
  * @param executionId The execution identifier.
856
856
  * @throws GetDataAlertExecutionEvaluationsHttpError
857
857
  */
858
- declare const getDataAlertExecutionEvaluations: (taskId: string, executionId: string, options?: ApiCallOptions) => Promise<GetDataAlertExecutionEvaluationsHttpResponse>;
858
+ declare function getDataAlertExecutionEvaluations(taskId: string, executionId: string, options?: ApiCallOptions): Promise<GetDataAlertExecutionEvaluationsHttpResponse>;
859
859
  type GetDataAlertExecutionEvaluationsHttpResponse = {
860
860
  data: EvaluationGetResponse;
861
861
  headers: Headers;
package/data-alerts.js CHANGED
@@ -1,115 +1,147 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/VVD2DPKQ.js";
5
- import "./chunks/LTNGXTXG.js";
6
- import "./chunks/2ZQ3ZX7F.js";
4
+ } from "./chunks/6WNP7HZQ.js";
5
+ import "./chunks/QAOVZB27.js";
6
+ import "./chunks/7MMXU6EL.js";
7
7
 
8
8
  // src/public/rest/data-alerts.ts
9
- var getDataAlerts = async (query, options) => invokeFetch("data-alerts", {
10
- method: "get",
11
- pathTemplate: "/api/v1/data-alerts",
12
- query,
13
- options
14
- });
15
- var createDataAlert = async (body, options) => invokeFetch("data-alerts", {
16
- method: "post",
17
- pathTemplate: "/api/v1/data-alerts",
18
- body,
19
- contentType: "application/json",
20
- options
21
- });
22
- var triggerDataAlerts = async (body, options) => invokeFetch("data-alerts", {
23
- method: "post",
24
- pathTemplate: "/api/v1/data-alerts/actions/trigger",
25
- body,
26
- contentType: "application/json",
27
- options
28
- });
29
- var validateDataAlerts = async (body, options) => invokeFetch("data-alerts", {
30
- method: "post",
31
- pathTemplate: "/api/v1/data-alerts/actions/validate",
32
- body,
33
- contentType: "application/json",
34
- options
35
- });
36
- var getDataAlertsSettings = async (options) => invokeFetch("data-alerts", {
37
- method: "get",
38
- pathTemplate: "/api/v1/data-alerts/settings",
39
- options
40
- });
41
- var setDataAlertsSettings = async (body, options) => invokeFetch("data-alerts", {
42
- method: "put",
43
- pathTemplate: "/api/v1/data-alerts/settings",
44
- body,
45
- contentType: "application/json",
46
- options
47
- });
48
- var deleteDataAlert = async (alertId, options) => invokeFetch("data-alerts", {
49
- method: "delete",
50
- pathTemplate: "/api/v1/data-alerts/{alertId}",
51
- pathVariables: { alertId },
52
- options
53
- });
54
- var getDataAlert = async (alertId, options) => invokeFetch("data-alerts", {
55
- method: "get",
56
- pathTemplate: "/api/v1/data-alerts/{alertId}",
57
- pathVariables: { alertId },
58
- options
59
- });
60
- var patchDataAlert = async (alertId, body, options) => invokeFetch("data-alerts", {
61
- method: "patch",
62
- pathTemplate: "/api/v1/data-alerts/{alertId}",
63
- pathVariables: { alertId },
64
- body,
65
- contentType: "application/json",
66
- options
67
- });
68
- var getDataAlertCondition = async (alertId, options) => invokeFetch("data-alerts", {
69
- method: "get",
70
- pathTemplate: "/api/v1/data-alerts/{alertId}/condition",
71
- pathVariables: { alertId },
72
- options
73
- });
74
- var deleteDataAlertExecution = async (alertId, executionId, options) => invokeFetch("data-alerts", {
75
- method: "delete",
76
- pathTemplate: "/api/v1/data-alerts/{alertId}/executions/{executionId}",
77
- pathVariables: { alertId, executionId },
78
- options
79
- });
80
- var getDataAlertExecution = async (alertId, executionId, options) => invokeFetch("data-alerts", {
81
- method: "get",
82
- pathTemplate: "/api/v1/data-alerts/{alertId}/executions/{executionId}",
83
- pathVariables: { alertId, executionId },
84
- options
85
- });
86
- var getDataAlertRecipientStats = async (alertId, query, options) => invokeFetch("data-alerts", {
87
- method: "get",
88
- pathTemplate: "/api/v1/data-alerts/{alertId}/recipient-stats",
89
- pathVariables: { alertId },
90
- query,
91
- options
92
- });
93
- var getDataAlertExecutions = async (taskId, query, options) => invokeFetch("data-alerts", {
94
- method: "get",
95
- pathTemplate: "/api/v1/data-alerts/{taskId}/executions",
96
- pathVariables: { taskId },
97
- query,
98
- options
99
- });
100
- var getDataAlertExecutionsStats = async (taskId, query, options) => invokeFetch("data-alerts", {
101
- method: "get",
102
- pathTemplate: "/api/v1/data-alerts/{taskId}/executions/stats",
103
- pathVariables: { taskId },
104
- query,
105
- options
106
- });
107
- var getDataAlertExecutionEvaluations = async (taskId, executionId, options) => invokeFetch("data-alerts", {
108
- method: "get",
109
- pathTemplate: "/api/v1/data-alerts/{taskId}/executions/{executionId}/evaluations",
110
- pathVariables: { taskId, executionId },
111
- options
112
- });
9
+ async function getDataAlerts(query, options) {
10
+ return invokeFetch("data-alerts", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/data-alerts",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function createDataAlert(body, options) {
18
+ return invokeFetch("data-alerts", {
19
+ method: "post",
20
+ pathTemplate: "/api/v1/data-alerts",
21
+ body,
22
+ contentType: "application/json",
23
+ options
24
+ });
25
+ }
26
+ async function triggerDataAlerts(body, options) {
27
+ return invokeFetch("data-alerts", {
28
+ method: "post",
29
+ pathTemplate: "/api/v1/data-alerts/actions/trigger",
30
+ body,
31
+ contentType: "application/json",
32
+ options
33
+ });
34
+ }
35
+ async function validateDataAlerts(body, options) {
36
+ return invokeFetch("data-alerts", {
37
+ method: "post",
38
+ pathTemplate: "/api/v1/data-alerts/actions/validate",
39
+ body,
40
+ contentType: "application/json",
41
+ options
42
+ });
43
+ }
44
+ async function getDataAlertsSettings(options) {
45
+ return invokeFetch("data-alerts", {
46
+ method: "get",
47
+ pathTemplate: "/api/v1/data-alerts/settings",
48
+ options
49
+ });
50
+ }
51
+ async function setDataAlertsSettings(body, options) {
52
+ return invokeFetch("data-alerts", {
53
+ method: "put",
54
+ pathTemplate: "/api/v1/data-alerts/settings",
55
+ body,
56
+ contentType: "application/json",
57
+ options
58
+ });
59
+ }
60
+ async function deleteDataAlert(alertId, options) {
61
+ return invokeFetch("data-alerts", {
62
+ method: "delete",
63
+ pathTemplate: "/api/v1/data-alerts/{alertId}",
64
+ pathVariables: { alertId },
65
+ options
66
+ });
67
+ }
68
+ async function getDataAlert(alertId, options) {
69
+ return invokeFetch("data-alerts", {
70
+ method: "get",
71
+ pathTemplate: "/api/v1/data-alerts/{alertId}",
72
+ pathVariables: { alertId },
73
+ options
74
+ });
75
+ }
76
+ async function patchDataAlert(alertId, body, options) {
77
+ return invokeFetch("data-alerts", {
78
+ method: "patch",
79
+ pathTemplate: "/api/v1/data-alerts/{alertId}",
80
+ pathVariables: { alertId },
81
+ body,
82
+ contentType: "application/json",
83
+ options
84
+ });
85
+ }
86
+ async function getDataAlertCondition(alertId, options) {
87
+ return invokeFetch("data-alerts", {
88
+ method: "get",
89
+ pathTemplate: "/api/v1/data-alerts/{alertId}/condition",
90
+ pathVariables: { alertId },
91
+ options
92
+ });
93
+ }
94
+ async function deleteDataAlertExecution(alertId, executionId, options) {
95
+ return invokeFetch("data-alerts", {
96
+ method: "delete",
97
+ pathTemplate: "/api/v1/data-alerts/{alertId}/executions/{executionId}",
98
+ pathVariables: { alertId, executionId },
99
+ options
100
+ });
101
+ }
102
+ async function getDataAlertExecution(alertId, executionId, options) {
103
+ return invokeFetch("data-alerts", {
104
+ method: "get",
105
+ pathTemplate: "/api/v1/data-alerts/{alertId}/executions/{executionId}",
106
+ pathVariables: { alertId, executionId },
107
+ options
108
+ });
109
+ }
110
+ async function getDataAlertRecipientStats(alertId, query, options) {
111
+ return invokeFetch("data-alerts", {
112
+ method: "get",
113
+ pathTemplate: "/api/v1/data-alerts/{alertId}/recipient-stats",
114
+ pathVariables: { alertId },
115
+ query,
116
+ options
117
+ });
118
+ }
119
+ async function getDataAlertExecutions(taskId, query, options) {
120
+ return invokeFetch("data-alerts", {
121
+ method: "get",
122
+ pathTemplate: "/api/v1/data-alerts/{taskId}/executions",
123
+ pathVariables: { taskId },
124
+ query,
125
+ options
126
+ });
127
+ }
128
+ async function getDataAlertExecutionsStats(taskId, query, options) {
129
+ return invokeFetch("data-alerts", {
130
+ method: "get",
131
+ pathTemplate: "/api/v1/data-alerts/{taskId}/executions/stats",
132
+ pathVariables: { taskId },
133
+ query,
134
+ options
135
+ });
136
+ }
137
+ async function getDataAlertExecutionEvaluations(taskId, executionId, options) {
138
+ return invokeFetch("data-alerts", {
139
+ method: "get",
140
+ pathTemplate: "/api/v1/data-alerts/{taskId}/executions/{executionId}/evaluations",
141
+ pathVariables: { taskId, executionId },
142
+ options
143
+ });
144
+ }
113
145
  function clearCache() {
114
146
  return clearApiCache("data-alerts");
115
147
  }
package/data-assets.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
- import './auth-types-DqfMuSRX.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
3
 
4
4
  type BatchIdDto = {
5
5
  ids?: string[];
@@ -66,7 +66,7 @@ type JsonPatch = {
66
66
  * @param body an object with the body content
67
67
  * @throws DeleteDataAssetsHttpError
68
68
  */
69
- declare const deleteDataAssets: (body: BatchIdDto, options?: ApiCallOptions) => Promise<DeleteDataAssetsHttpResponse>;
69
+ declare function deleteDataAssets(body: BatchIdDto, options?: ApiCallOptions): Promise<DeleteDataAssetsHttpResponse>;
70
70
  type DeleteDataAssetsHttpResponse = {
71
71
  data: void;
72
72
  headers: Headers;
@@ -83,7 +83,7 @@ type DeleteDataAssetsHttpError = {
83
83
  * @param body an object with the body content
84
84
  * @throws CreateDataAssetHttpError
85
85
  */
86
- declare const createDataAsset: (body: DataAsset, options?: ApiCallOptions) => Promise<CreateDataAssetHttpResponse>;
86
+ declare function createDataAsset(body: DataAsset, options?: ApiCallOptions): Promise<CreateDataAssetHttpResponse>;
87
87
  type CreateDataAssetHttpResponse = {
88
88
  data: DataAsset;
89
89
  headers: Headers;
@@ -101,10 +101,10 @@ type CreateDataAssetHttpError = {
101
101
  * @param query an object with query parameters
102
102
  * @throws GetDataAssetHttpError
103
103
  */
104
- declare const getDataAsset: (dataAssetId: string, query: {
104
+ declare function getDataAsset(dataAssetId: string, query: {
105
105
  /** Comma-separated fields to return in the response. */
106
106
  projections?: string[];
107
- }, options?: ApiCallOptions) => Promise<GetDataAssetHttpResponse>;
107
+ }, options?: ApiCallOptions): Promise<GetDataAssetHttpResponse>;
108
108
  type GetDataAssetHttpResponse = {
109
109
  data: DataAsset;
110
110
  headers: Headers;
@@ -122,7 +122,7 @@ type GetDataAssetHttpError = {
122
122
  * @param body an object with the body content
123
123
  * @throws PatchDataAssetHttpError
124
124
  */
125
- declare const patchDataAsset: (dataAssetId: string, body: JsonPatch[], options?: ApiCallOptions) => Promise<PatchDataAssetHttpResponse>;
125
+ declare function patchDataAsset(dataAssetId: string, body: JsonPatch[], options?: ApiCallOptions): Promise<PatchDataAssetHttpResponse>;
126
126
  type PatchDataAssetHttpResponse = {
127
127
  data: DataAsset;
128
128
  headers: Headers;
@@ -140,7 +140,7 @@ type PatchDataAssetHttpError = {
140
140
  * @param body an object with the body content
141
141
  * @throws UpdateDataAssetHttpError
142
142
  */
143
- declare const updateDataAsset: (dataAssetId: string, body: DataAsset, options?: ApiCallOptions) => Promise<UpdateDataAssetHttpResponse>;
143
+ declare function updateDataAsset(dataAssetId: string, body: DataAsset, options?: ApiCallOptions): Promise<UpdateDataAssetHttpResponse>;
144
144
  type UpdateDataAssetHttpResponse = {
145
145
  data: DataAsset;
146
146
  headers: Headers;
package/data-assets.js CHANGED
@@ -1,48 +1,58 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/VVD2DPKQ.js";
5
- import "./chunks/LTNGXTXG.js";
6
- import "./chunks/2ZQ3ZX7F.js";
4
+ } from "./chunks/6WNP7HZQ.js";
5
+ import "./chunks/QAOVZB27.js";
6
+ import "./chunks/7MMXU6EL.js";
7
7
 
8
8
  // src/public/rest/data-assets.ts
9
- var deleteDataAssets = async (body, options) => invokeFetch("data-assets", {
10
- method: "delete",
11
- pathTemplate: "/api/v1/data-assets",
12
- body,
13
- contentType: "application/json",
14
- options
15
- });
16
- var createDataAsset = async (body, options) => invokeFetch("data-assets", {
17
- method: "post",
18
- pathTemplate: "/api/v1/data-assets",
19
- body,
20
- contentType: "application/json",
21
- options
22
- });
23
- var getDataAsset = async (dataAssetId, query, options) => invokeFetch("data-assets", {
24
- method: "get",
25
- pathTemplate: "/api/v1/data-assets/{data-asset-id}",
26
- pathVariables: { "data-asset-id": dataAssetId },
27
- query,
28
- options
29
- });
30
- var patchDataAsset = async (dataAssetId, body, options) => invokeFetch("data-assets", {
31
- method: "patch",
32
- pathTemplate: "/api/v1/data-assets/{data-asset-id}",
33
- pathVariables: { "data-asset-id": dataAssetId },
34
- body,
35
- contentType: "application/json",
36
- options
37
- });
38
- var updateDataAsset = async (dataAssetId, body, options) => invokeFetch("data-assets", {
39
- method: "put",
40
- pathTemplate: "/api/v1/data-assets/{data-asset-id}",
41
- pathVariables: { "data-asset-id": dataAssetId },
42
- body,
43
- contentType: "application/json",
44
- options
45
- });
9
+ async function deleteDataAssets(body, options) {
10
+ return invokeFetch("data-assets", {
11
+ method: "delete",
12
+ pathTemplate: "/api/v1/data-assets",
13
+ body,
14
+ contentType: "application/json",
15
+ options
16
+ });
17
+ }
18
+ async function createDataAsset(body, options) {
19
+ return invokeFetch("data-assets", {
20
+ method: "post",
21
+ pathTemplate: "/api/v1/data-assets",
22
+ body,
23
+ contentType: "application/json",
24
+ options
25
+ });
26
+ }
27
+ async function getDataAsset(dataAssetId, query, options) {
28
+ return invokeFetch("data-assets", {
29
+ method: "get",
30
+ pathTemplate: "/api/v1/data-assets/{data-asset-id}",
31
+ pathVariables: { "data-asset-id": dataAssetId },
32
+ query,
33
+ options
34
+ });
35
+ }
36
+ async function patchDataAsset(dataAssetId, body, options) {
37
+ return invokeFetch("data-assets", {
38
+ method: "patch",
39
+ pathTemplate: "/api/v1/data-assets/{data-asset-id}",
40
+ pathVariables: { "data-asset-id": dataAssetId },
41
+ body,
42
+ contentType: "application/json",
43
+ options
44
+ });
45
+ }
46
+ async function updateDataAsset(dataAssetId, body, options) {
47
+ return invokeFetch("data-assets", {
48
+ method: "put",
49
+ pathTemplate: "/api/v1/data-assets/{data-asset-id}",
50
+ pathVariables: { "data-asset-id": dataAssetId },
51
+ body,
52
+ contentType: "application/json",
53
+ options
54
+ });
55
+ }
46
56
  function clearCache() {
47
57
  return clearApiCache("data-assets");
48
58
  }