@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/reloads.js CHANGED
@@ -1,36 +1,44 @@
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/reloads.ts
9
- var getReloads = async (query, options) => invokeFetch("reloads", {
10
- method: "get",
11
- pathTemplate: "/api/v1/reloads",
12
- query,
13
- options
14
- });
15
- var queueReload = async (body, options) => invokeFetch("reloads", {
16
- method: "post",
17
- pathTemplate: "/api/v1/reloads",
18
- body,
19
- contentType: "application/json",
20
- options
21
- });
22
- var getReload = async (reloadId, options) => invokeFetch("reloads", {
23
- method: "get",
24
- pathTemplate: "/api/v1/reloads/{reloadId}",
25
- pathVariables: { reloadId },
26
- options
27
- });
28
- var cancelReload = async (reloadId, options) => invokeFetch("reloads", {
29
- method: "post",
30
- pathTemplate: "/api/v1/reloads/{reloadId}/actions/cancel",
31
- pathVariables: { reloadId },
32
- options
33
- });
9
+ async function getReloads(query, options) {
10
+ return invokeFetch("reloads", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/reloads",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function queueReload(body, options) {
18
+ return invokeFetch("reloads", {
19
+ method: "post",
20
+ pathTemplate: "/api/v1/reloads",
21
+ body,
22
+ contentType: "application/json",
23
+ options
24
+ });
25
+ }
26
+ async function getReload(reloadId, options) {
27
+ return invokeFetch("reloads", {
28
+ method: "get",
29
+ pathTemplate: "/api/v1/reloads/{reloadId}",
30
+ pathVariables: { reloadId },
31
+ options
32
+ });
33
+ }
34
+ async function cancelReload(reloadId, options) {
35
+ return invokeFetch("reloads", {
36
+ method: "post",
37
+ pathTemplate: "/api/v1/reloads/{reloadId}/actions/cancel",
38
+ pathVariables: { reloadId },
39
+ options
40
+ });
41
+ }
34
42
  function clearCache() {
35
43
  return clearApiCache("reloads");
36
44
  }
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions, D as DownloadableBlob } from './invoke-fetch-types-Cq7bjkqn.js';
2
- import './auth-types-DqfMuSRX.js';
1
+ import { A as ApiCallOptions, D as DownloadableBlob } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
3
 
4
4
  type CreateTemplateRequest = {
5
5
  /** Template description */
@@ -88,7 +88,7 @@ type UpdateTemplateRequest = {
88
88
  * @param query an object with query parameters
89
89
  * @throws GetReportTemplatesHttpError
90
90
  */
91
- declare const getReportTemplates: (query: {
91
+ declare function getReportTemplates(query: {
92
92
  /** If present, restrict the number of returned items to this value. */
93
93
  limit?: number;
94
94
  /** Template name to search and filter for. Case-insensitive open search with wildcards both as prefix and suffix. */
@@ -101,7 +101,7 @@ declare const getReportTemplates: (query: {
101
101
  sort?: ("name" | "+name" | "-name" | "createdAt" | "+createdAt" | "-createdAt" | "updatedAt" | "+updatedAt" | "-updatedAt" | "type" | "+type" | "-type")[];
102
102
  /** Return the templates that are using the specified app as data source. */
103
103
  sourceAppId?: string;
104
- }, options?: ApiCallOptions) => Promise<GetReportTemplatesHttpResponse>;
104
+ }, options?: ApiCallOptions): Promise<GetReportTemplatesHttpResponse>;
105
105
  type GetReportTemplatesHttpResponse = {
106
106
  data: GetTemplatesResponse;
107
107
  headers: Headers;
@@ -120,7 +120,7 @@ type GetReportTemplatesHttpError = {
120
120
  * @param body an object with the body content
121
121
  * @throws CreateReportTemplateHttpError
122
122
  */
123
- declare const createReportTemplate: (body: CreateTemplateRequest, options?: ApiCallOptions) => Promise<CreateReportTemplateHttpResponse>;
123
+ declare function createReportTemplate(body: CreateTemplateRequest, options?: ApiCallOptions): Promise<CreateReportTemplateHttpResponse>;
124
124
  type CreateReportTemplateHttpResponse = {
125
125
  data: ReportTemplateResponse;
126
126
  headers: Headers;
@@ -137,7 +137,7 @@ type CreateReportTemplateHttpError = {
137
137
  * @param id The ID of the report template to delete.
138
138
  * @throws DeleteReportTemplateHttpError
139
139
  */
140
- declare const deleteReportTemplate: (id: string, options?: ApiCallOptions) => Promise<DeleteReportTemplateHttpResponse>;
140
+ declare function deleteReportTemplate(id: string, options?: ApiCallOptions): Promise<DeleteReportTemplateHttpResponse>;
141
141
  type DeleteReportTemplateHttpResponse = {
142
142
  data: void;
143
143
  headers: Headers;
@@ -154,7 +154,7 @@ type DeleteReportTemplateHttpError = {
154
154
  * @param id The ID of the report template.
155
155
  * @throws GetReportTemplateHttpError
156
156
  */
157
- declare const getReportTemplate: (id: string, options?: ApiCallOptions) => Promise<GetReportTemplateHttpResponse>;
157
+ declare function getReportTemplate(id: string, options?: ApiCallOptions): Promise<GetReportTemplateHttpResponse>;
158
158
  type GetReportTemplateHttpResponse = {
159
159
  data: ReportTemplateResponse;
160
160
  headers: Headers;
@@ -172,7 +172,7 @@ type GetReportTemplateHttpError = {
172
172
  * @param body an object with the body content
173
173
  * @throws PatchReportTemplateHttpError
174
174
  */
175
- declare const patchReportTemplate: (id: string, body: Operation[], options?: ApiCallOptions) => Promise<PatchReportTemplateHttpResponse>;
175
+ declare function patchReportTemplate(id: string, body: Operation[], options?: ApiCallOptions): Promise<PatchReportTemplateHttpResponse>;
176
176
  type PatchReportTemplateHttpResponse = {
177
177
  data: void;
178
178
  headers: Headers;
@@ -190,7 +190,7 @@ type PatchReportTemplateHttpError = {
190
190
  * @param body an object with the body content
191
191
  * @throws UpdateReportTemplateHttpError
192
192
  */
193
- declare const updateReportTemplate: (id: string, body: UpdateTemplateRequest, options?: ApiCallOptions) => Promise<UpdateReportTemplateHttpResponse>;
193
+ declare function updateReportTemplate(id: string, body: UpdateTemplateRequest, options?: ApiCallOptions): Promise<UpdateReportTemplateHttpResponse>;
194
194
  type UpdateReportTemplateHttpResponse = {
195
195
  data: ReportTemplateResponse;
196
196
  headers: Headers;
@@ -207,7 +207,7 @@ type UpdateReportTemplateHttpError = {
207
207
  * @param id The ID of the report template.
208
208
  * @throws DownloadReportTemplateHttpError
209
209
  */
210
- declare const downloadReportTemplate: (id: string, options?: ApiCallOptions) => Promise<DownloadReportTemplateHttpResponse>;
210
+ declare function downloadReportTemplate(id: string, options?: ApiCallOptions): Promise<DownloadReportTemplateHttpResponse>;
211
211
  type DownloadReportTemplateHttpResponse = {
212
212
  data: DownloadableBlob;
213
213
  headers: Headers;
@@ -1,58 +1,72 @@
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/report-templates.ts
9
- var getReportTemplates = async (query, options) => invokeFetch("report-templates", {
10
- method: "get",
11
- pathTemplate: "/api/v1/report-templates",
12
- query,
13
- options
14
- });
15
- var createReportTemplate = async (body, options) => invokeFetch("report-templates", {
16
- method: "post",
17
- pathTemplate: "/api/v1/report-templates",
18
- body,
19
- contentType: "application/json",
20
- options
21
- });
22
- var deleteReportTemplate = async (id, options) => invokeFetch("report-templates", {
23
- method: "delete",
24
- pathTemplate: "/api/v1/report-templates/{id}",
25
- pathVariables: { id },
26
- options
27
- });
28
- var getReportTemplate = async (id, options) => invokeFetch("report-templates", {
29
- method: "get",
30
- pathTemplate: "/api/v1/report-templates/{id}",
31
- pathVariables: { id },
32
- options
33
- });
34
- var patchReportTemplate = async (id, body, options) => invokeFetch("report-templates", {
35
- method: "patch",
36
- pathTemplate: "/api/v1/report-templates/{id}",
37
- pathVariables: { id },
38
- body,
39
- contentType: "application/json",
40
- options
41
- });
42
- var updateReportTemplate = async (id, body, options) => invokeFetch("report-templates", {
43
- method: "put",
44
- pathTemplate: "/api/v1/report-templates/{id}",
45
- pathVariables: { id },
46
- body,
47
- contentType: "application/json",
48
- options
49
- });
50
- var downloadReportTemplate = async (id, options) => invokeFetch("report-templates", {
51
- method: "post",
52
- pathTemplate: "/api/v1/report-templates/{id}/actions/download",
53
- pathVariables: { id },
54
- options
55
- });
9
+ async function getReportTemplates(query, options) {
10
+ return invokeFetch("report-templates", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/report-templates",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function createReportTemplate(body, options) {
18
+ return invokeFetch("report-templates", {
19
+ method: "post",
20
+ pathTemplate: "/api/v1/report-templates",
21
+ body,
22
+ contentType: "application/json",
23
+ options
24
+ });
25
+ }
26
+ async function deleteReportTemplate(id, options) {
27
+ return invokeFetch("report-templates", {
28
+ method: "delete",
29
+ pathTemplate: "/api/v1/report-templates/{id}",
30
+ pathVariables: { id },
31
+ options
32
+ });
33
+ }
34
+ async function getReportTemplate(id, options) {
35
+ return invokeFetch("report-templates", {
36
+ method: "get",
37
+ pathTemplate: "/api/v1/report-templates/{id}",
38
+ pathVariables: { id },
39
+ options
40
+ });
41
+ }
42
+ async function patchReportTemplate(id, body, options) {
43
+ return invokeFetch("report-templates", {
44
+ method: "patch",
45
+ pathTemplate: "/api/v1/report-templates/{id}",
46
+ pathVariables: { id },
47
+ body,
48
+ contentType: "application/json",
49
+ options
50
+ });
51
+ }
52
+ async function updateReportTemplate(id, body, options) {
53
+ return invokeFetch("report-templates", {
54
+ method: "put",
55
+ pathTemplate: "/api/v1/report-templates/{id}",
56
+ pathVariables: { id },
57
+ body,
58
+ contentType: "application/json",
59
+ options
60
+ });
61
+ }
62
+ async function downloadReportTemplate(id, options) {
63
+ return invokeFetch("report-templates", {
64
+ method: "post",
65
+ pathTemplate: "/api/v1/report-templates/{id}/actions/download",
66
+ pathVariables: { id },
67
+ options
68
+ });
69
+ }
56
70
  function clearCache() {
57
71
  return clearApiCache("report-templates");
58
72
  }
package/reports.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
  /**
5
5
  * Error in resource handling
@@ -696,7 +696,7 @@ type ReloadTimestampMatchType = "noCheck" | "requestTimeExact";
696
696
  * @param body an object with the body content
697
697
  * @throws CreateReportHttpError
698
698
  */
699
- declare const createReport: (body: ReportRequest, options?: ApiCallOptions) => Promise<CreateReportHttpResponse>;
699
+ declare function createReport(body: ReportRequest, options?: ApiCallOptions): Promise<CreateReportHttpResponse>;
700
700
  type CreateReportHttpResponse = {
701
701
  data: void;
702
702
  headers: Headers;
@@ -713,7 +713,7 @@ type CreateReportHttpError = {
713
713
  * @param id Identifier of the request.
714
714
  * @throws GetReportStatusHttpError
715
715
  */
716
- declare const getReportStatus: (id: string, options?: ApiCallOptions) => Promise<GetReportStatusHttpResponse>;
716
+ declare function getReportStatus(id: string, options?: ApiCallOptions): Promise<GetReportStatusHttpResponse>;
717
717
  type GetReportStatusHttpResponse = {
718
718
  data: ReportStatus;
719
719
  headers: Headers;
package/reports.js CHANGED
@@ -1,24 +1,28 @@
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/reports.ts
9
- var createReport = async (body, options) => invokeFetch("reports", {
10
- method: "post",
11
- pathTemplate: "/api/v1/reports",
12
- body,
13
- contentType: "application/json",
14
- options
15
- });
16
- var getReportStatus = async (id, options) => invokeFetch("reports", {
17
- method: "get",
18
- pathTemplate: "/api/v1/reports/{id}/status",
19
- pathVariables: { id },
20
- options
21
- });
9
+ async function createReport(body, options) {
10
+ return invokeFetch("reports", {
11
+ method: "post",
12
+ pathTemplate: "/api/v1/reports",
13
+ body,
14
+ contentType: "application/json",
15
+ options
16
+ });
17
+ }
18
+ async function getReportStatus(id, options) {
19
+ return invokeFetch("reports", {
20
+ method: "get",
21
+ pathTemplate: "/api/v1/reports/{id}/status",
22
+ pathVariables: { id },
23
+ options
24
+ });
25
+ }
22
26
  function clearCache() {
23
27
  return clearApiCache("reports");
24
28
  }
package/roles.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 CreateRole = {
5
5
  /** Selection of scopes to assign to role */
@@ -163,7 +163,7 @@ type Role = {
163
163
  * @param query an object with query parameters
164
164
  * @throws GetRolesHttpError
165
165
  */
166
- declare const getRoles: (query: {
166
+ declare function getRoles(query: {
167
167
  /** The advanced filtering to use for the query. Refer to [RFC 7644](https://datatracker.ietf.org/doc/rfc7644/) for the syntax. All conditional statements within this query parameter are case insensitive. */
168
168
  filter?: string;
169
169
  /** The number of roles to retrieve. */
@@ -176,7 +176,7 @@ declare const getRoles: (query: {
176
176
  sort?: string;
177
177
  /** Determines wether to return a count of the total records matched in the query. Defaults to false. */
178
178
  totalResults?: boolean;
179
- }, options?: ApiCallOptions) => Promise<GetRolesHttpResponse>;
179
+ }, options?: ApiCallOptions): Promise<GetRolesHttpResponse>;
180
180
  type GetRolesHttpResponse = {
181
181
  data: ListRolesResult;
182
182
  headers: Headers;
@@ -195,7 +195,7 @@ type GetRolesHttpError = {
195
195
  * @param body an object with the body content
196
196
  * @throws CreateRoleHttpError
197
197
  */
198
- declare const createRole: (body: CreateRole, options?: ApiCallOptions) => Promise<CreateRoleHttpResponse>;
198
+ declare function createRole(body: CreateRole, options?: ApiCallOptions): Promise<CreateRoleHttpResponse>;
199
199
  type CreateRoleHttpResponse = {
200
200
  data: Role;
201
201
  headers: Headers;
@@ -212,7 +212,7 @@ type CreateRoleHttpError = {
212
212
  * @param id The unique identifier for the role.
213
213
  * @throws DeleteRoleHttpError
214
214
  */
215
- declare const deleteRole: (id: string, options?: ApiCallOptions) => Promise<DeleteRoleHttpResponse>;
215
+ declare function deleteRole(id: string, options?: ApiCallOptions): Promise<DeleteRoleHttpResponse>;
216
216
  type DeleteRoleHttpResponse = {
217
217
  data: void;
218
218
  headers: Headers;
@@ -229,7 +229,7 @@ type DeleteRoleHttpError = {
229
229
  * @param id The unique identifier for the role.
230
230
  * @throws GetRoleHttpError
231
231
  */
232
- declare const getRole: (id: string, options?: ApiCallOptions) => Promise<GetRoleHttpResponse>;
232
+ declare function getRole(id: string, options?: ApiCallOptions): Promise<GetRoleHttpResponse>;
233
233
  type GetRoleHttpResponse = {
234
234
  data: Role;
235
235
  headers: Headers;
@@ -247,7 +247,7 @@ type GetRoleHttpError = {
247
247
  * @param body an object with the body content
248
248
  * @throws PatchRoleHttpError
249
249
  */
250
- declare const patchRole: (id: string, body: PatchRoles, options?: ApiCallOptions) => Promise<PatchRoleHttpResponse>;
250
+ declare function patchRole(id: string, body: PatchRoles, options?: ApiCallOptions): Promise<PatchRoleHttpResponse>;
251
251
  type PatchRoleHttpResponse = {
252
252
  data: void;
253
253
  headers: Headers;
package/roles.js CHANGED
@@ -1,44 +1,54 @@
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/roles.ts
9
- var getRoles = async (query, options) => invokeFetch("roles", {
10
- method: "get",
11
- pathTemplate: "/api/v1/roles",
12
- query,
13
- options
14
- });
15
- var createRole = async (body, options) => invokeFetch("roles", {
16
- method: "post",
17
- pathTemplate: "/api/v1/roles",
18
- body,
19
- contentType: "application/json",
20
- options
21
- });
22
- var deleteRole = async (id, options) => invokeFetch("roles", {
23
- method: "delete",
24
- pathTemplate: "/api/v1/roles/{id}",
25
- pathVariables: { id },
26
- options
27
- });
28
- var getRole = async (id, options) => invokeFetch("roles", {
29
- method: "get",
30
- pathTemplate: "/api/v1/roles/{id}",
31
- pathVariables: { id },
32
- options
33
- });
34
- var patchRole = async (id, body, options) => invokeFetch("roles", {
35
- method: "patch",
36
- pathTemplate: "/api/v1/roles/{id}",
37
- pathVariables: { id },
38
- body,
39
- contentType: "application/json",
40
- options
41
- });
9
+ async function getRoles(query, options) {
10
+ return invokeFetch("roles", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/roles",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function createRole(body, options) {
18
+ return invokeFetch("roles", {
19
+ method: "post",
20
+ pathTemplate: "/api/v1/roles",
21
+ body,
22
+ contentType: "application/json",
23
+ options
24
+ });
25
+ }
26
+ async function deleteRole(id, options) {
27
+ return invokeFetch("roles", {
28
+ method: "delete",
29
+ pathTemplate: "/api/v1/roles/{id}",
30
+ pathVariables: { id },
31
+ options
32
+ });
33
+ }
34
+ async function getRole(id, options) {
35
+ return invokeFetch("roles", {
36
+ method: "get",
37
+ pathTemplate: "/api/v1/roles/{id}",
38
+ pathVariables: { id },
39
+ options
40
+ });
41
+ }
42
+ async function patchRole(id, body, options) {
43
+ return invokeFetch("roles", {
44
+ method: "patch",
45
+ pathTemplate: "/api/v1/roles/{id}",
46
+ pathVariables: { id },
47
+ body,
48
+ contentType: "application/json",
49
+ options
50
+ });
51
+ }
42
52
  function clearCache() {
43
53
  return clearApiCache("roles");
44
54
  }
@@ -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 APISettingsUpload = {
5
5
  /** Whether API endpoints for sharing are enabled */
@@ -664,7 +664,7 @@ type UserIDRecipientPersist = {
664
664
  * @param query an object with query parameters
665
665
  * @throws GetSharingTasksHttpError
666
666
  */
667
- declare const getSharingTasks: (query: {
667
+ declare function getSharingTasks(query: {
668
668
  /** the filter by sharing task resource app id. TenantAdmin users may omit this parameter to list all sharing-tasks in the tenant. */
669
669
  appid?: string;
670
670
  /** Indicates if task with the status DELETING should be excluded from the list */
@@ -693,7 +693,7 @@ declare const getSharingTasks: (query: {
693
693
  templateId?: string[];
694
694
  /** the filter by sharing task resource type. If type is template-sharing only and user is not tenant admin, appid is also required. */
695
695
  type?: ("chart-monitoring" | "chart-sharing" | "sheet-sharing" | "template-sharing")[];
696
- }, options?: ApiCallOptions) => Promise<GetSharingTasksHttpResponse>;
696
+ }, options?: ApiCallOptions): Promise<GetSharingTasksHttpResponse>;
697
697
  type GetSharingTasksHttpResponse = {
698
698
  data: SharingTaskRecurringListResponse;
699
699
  headers: Headers;
@@ -712,7 +712,7 @@ type GetSharingTasksHttpError = {
712
712
  * @param body an object with the body content
713
713
  * @throws CreateSharingTaskHttpError
714
714
  */
715
- declare const createSharingTask: (body: SharingTaskRecurringCreateRequest, options?: ApiCallOptions) => Promise<CreateSharingTaskHttpResponse>;
715
+ declare function createSharingTask(body: SharingTaskRecurringCreateRequest, options?: ApiCallOptions): Promise<CreateSharingTaskHttpResponse>;
716
716
  type CreateSharingTaskHttpResponse = {
717
717
  data: SharingTaskRecurringResponse;
718
718
  headers: Headers;
@@ -729,7 +729,7 @@ type CreateSharingTaskHttpError = {
729
729
  * @param body an object with the body content
730
730
  * @throws ExecuteSharingTasksHttpError
731
731
  */
732
- declare const executeSharingTasks: (body: SharingActionsTriggerCreateRequest, options?: ApiCallOptions) => Promise<ExecuteSharingTasksHttpResponse>;
732
+ declare function executeSharingTasks(body: SharingActionsTriggerCreateRequest, options?: ApiCallOptions): Promise<ExecuteSharingTasksHttpResponse>;
733
733
  type ExecuteSharingTasksHttpResponse = {
734
734
  data: void;
735
735
  headers: Headers;
@@ -745,7 +745,7 @@ type ExecuteSharingTasksHttpError = {
745
745
  *
746
746
  * @throws GetSharingTasksSettingsHttpError
747
747
  */
748
- declare const getSharingTasksSettings: (options?: ApiCallOptions) => Promise<GetSharingTasksSettingsHttpResponse>;
748
+ declare function getSharingTasksSettings(options?: ApiCallOptions): Promise<GetSharingTasksSettingsHttpResponse>;
749
749
  type GetSharingTasksSettingsHttpResponse = {
750
750
  data: SharingSettings;
751
751
  headers: Headers;
@@ -762,7 +762,7 @@ type GetSharingTasksSettingsHttpError = {
762
762
  * @param body an object with the body content
763
763
  * @throws UpdateSharingTasksSettingsHttpError
764
764
  */
765
- declare const updateSharingTasksSettings: (body: SharingSettingsPatchCompliantList, options?: ApiCallOptions) => Promise<UpdateSharingTasksSettingsHttpResponse>;
765
+ declare function updateSharingTasksSettings(body: SharingSettingsPatchCompliantList, options?: ApiCallOptions): Promise<UpdateSharingTasksSettingsHttpResponse>;
766
766
  type UpdateSharingTasksSettingsHttpResponse = {
767
767
  data: void;
768
768
  headers: Headers;
@@ -779,7 +779,7 @@ type UpdateSharingTasksSettingsHttpError = {
779
779
  * @param body an object with the body content
780
780
  * @throws ConfigureSharingTasksSettingsHttpError
781
781
  */
782
- declare const configureSharingTasksSettings: (body: APISettingsUpload, options?: ApiCallOptions) => Promise<ConfigureSharingTasksSettingsHttpResponse>;
782
+ declare function configureSharingTasksSettings(body: APISettingsUpload, options?: ApiCallOptions): Promise<ConfigureSharingTasksSettingsHttpResponse>;
783
783
  type ConfigureSharingTasksSettingsHttpResponse = {
784
784
  data: void;
785
785
  headers: Headers;
@@ -796,7 +796,7 @@ type ConfigureSharingTasksSettingsHttpError = {
796
796
  * @param taskId The sharing task identifier.
797
797
  * @throws DeleteSharingTaskHttpError
798
798
  */
799
- declare const deleteSharingTask: (taskId: string, options?: ApiCallOptions) => Promise<DeleteSharingTaskHttpResponse>;
799
+ declare function deleteSharingTask(taskId: string, options?: ApiCallOptions): Promise<DeleteSharingTaskHttpResponse>;
800
800
  type DeleteSharingTaskHttpResponse = {
801
801
  data: void;
802
802
  headers: Headers;
@@ -814,10 +814,10 @@ type DeleteSharingTaskHttpError = {
814
814
  * @param query an object with query parameters
815
815
  * @throws GetSharingTaskHttpError
816
816
  */
817
- declare const getSharingTask: (taskId: string, query: {
817
+ declare function getSharingTask(taskId: string, query: {
818
818
  /** A boolean flag to know if the user has clicked on the view chart button */
819
819
  isViewChart?: boolean;
820
- }, options?: ApiCallOptions) => Promise<GetSharingTaskHttpResponse>;
820
+ }, options?: ApiCallOptions): Promise<GetSharingTaskHttpResponse>;
821
821
  type GetSharingTaskHttpResponse = {
822
822
  data: SharingTaskRecurringResponse;
823
823
  headers: Headers;
@@ -835,7 +835,7 @@ type GetSharingTaskHttpError = {
835
835
  * @param body an object with the body content
836
836
  * @throws PatchSharingTaskHttpError
837
837
  */
838
- declare const patchSharingTask: (taskId: string, body: SharingTaskPatchRequestCompliantList, options?: ApiCallOptions) => Promise<PatchSharingTaskHttpResponse>;
838
+ declare function patchSharingTask(taskId: string, body: SharingTaskPatchRequestCompliantList, options?: ApiCallOptions): Promise<PatchSharingTaskHttpResponse>;
839
839
  type PatchSharingTaskHttpResponse = {
840
840
  data: void;
841
841
  headers: Headers;
@@ -852,7 +852,7 @@ type PatchSharingTaskHttpError = {
852
852
  * @param taskId The sharing task identifier.
853
853
  * @throws CancelSharingTaskHttpError
854
854
  */
855
- declare const cancelSharingTask: (taskId: string, options?: ApiCallOptions) => Promise<CancelSharingTaskHttpResponse>;
855
+ declare function cancelSharingTask(taskId: string, options?: ApiCallOptions): Promise<CancelSharingTaskHttpResponse>;
856
856
  type CancelSharingTaskHttpResponse = {
857
857
  data: void;
858
858
  headers: Headers;