@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
@@ -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 ActionDeleteRequest = {
5
5
  connections: {
@@ -314,7 +314,7 @@ type TopLevelLink = {
314
314
  * @param query an object with query parameters
315
315
  * @throws GetDataConnectionsHttpError
316
316
  */
317
- declare const getDataConnections: (query: {
317
+ declare function getDataConnections(query: {
318
318
  /** Sort results will be returned in case insensitive order if set to true (Only used along with sort query) */
319
319
  caseinsensitive?: boolean;
320
320
  /** Provides an alternate name to be used for data[] element in GET response. */
@@ -345,7 +345,7 @@ declare const getDataConnections: (query: {
345
345
  spaceId?: string;
346
346
  /** Filtering on userId. Requires admin role if specified userId doesn't match that is defined in JWT. */
347
347
  userId?: string;
348
- }, options?: ApiCallOptions) => Promise<GetDataConnectionsHttpResponse>;
348
+ }, options?: ApiCallOptions): Promise<GetDataConnectionsHttpResponse>;
349
349
  type GetDataConnectionsHttpResponse = {
350
350
  data: Connections;
351
351
  headers: Headers;
@@ -364,7 +364,7 @@ type GetDataConnectionsHttpError = {
364
364
  * @param body an object with the body content
365
365
  * @throws CreateDataConnectionHttpError
366
366
  */
367
- declare const createDataConnection: (body: ConnectionCreate | DcaasConnectionCreate, options?: ApiCallOptions) => Promise<CreateDataConnectionHttpResponse>;
367
+ declare function createDataConnection(body: ConnectionCreate | DcaasConnectionCreate, options?: ApiCallOptions): Promise<CreateDataConnectionHttpResponse>;
368
368
  type CreateDataConnectionHttpResponse = {
369
369
  data: ConnectionCreateResponse | DcaasConnectionCreateAuthResponse;
370
370
  headers: Headers;
@@ -381,7 +381,7 @@ type CreateDataConnectionHttpError = {
381
381
  * @param body an object with the body content
382
382
  * @throws DeleteDataConnectionsHttpError
383
383
  */
384
- declare const deleteDataConnections: (body: ActionDeleteRequest, options?: ApiCallOptions) => Promise<DeleteDataConnectionsHttpResponse>;
384
+ declare function deleteDataConnections(body: ActionDeleteRequest, options?: ApiCallOptions): Promise<DeleteDataConnectionsHttpResponse>;
385
385
  type DeleteDataConnectionsHttpResponse = {
386
386
  data: BulkResponse;
387
387
  headers: Headers;
@@ -398,7 +398,7 @@ type DeleteDataConnectionsHttpError = {
398
398
  * @param body an object with the body content
399
399
  * @throws DuplicateDataAConnectionHttpError
400
400
  */
401
- declare const duplicateDataAConnection: (body: ActionDuplicateRequest, options?: ApiCallOptions) => Promise<DuplicateDataAConnectionHttpResponse>;
401
+ declare function duplicateDataAConnection(body: ActionDuplicateRequest, options?: ApiCallOptions): Promise<DuplicateDataAConnectionHttpResponse>;
402
402
  type DuplicateDataAConnectionHttpResponse = {
403
403
  data: ConnectionCreateResponse;
404
404
  headers: Headers;
@@ -415,7 +415,7 @@ type DuplicateDataAConnectionHttpError = {
415
415
  * @param body an object with the body content
416
416
  * @throws UpdateDataConnectionsHttpError
417
417
  */
418
- declare const updateDataConnections: (body: ActionUpdateRequest, options?: ApiCallOptions) => Promise<UpdateDataConnectionsHttpResponse>;
418
+ declare function updateDataConnections(body: ActionUpdateRequest, options?: ApiCallOptions): Promise<UpdateDataConnectionsHttpResponse>;
419
419
  type UpdateDataConnectionsHttpResponse = {
420
420
  data: BulkResponse;
421
421
  headers: Headers;
@@ -441,12 +441,12 @@ type UpdateDataConnectionsHttpError = {
441
441
  * @param query an object with query parameters
442
442
  * @throws DeleteDataConnectionHttpError
443
443
  */
444
- declare const deleteDataConnection: (qID: string, query: {
444
+ declare function deleteDataConnection(qID: string, query: {
445
445
  /** Filtering on connections by space ID */
446
446
  spaceId?: string;
447
447
  /** Connection / credential ID defined in path become connection / credential name when this query parameter is set */
448
448
  type?: "connectionname" | "credentialname";
449
- }, options?: ApiCallOptions) => Promise<DeleteDataConnectionHttpResponse>;
449
+ }, options?: ApiCallOptions): Promise<DeleteDataConnectionHttpResponse>;
450
450
  type DeleteDataConnectionHttpResponse = {
451
451
  data: void;
452
452
  headers: Headers;
@@ -477,7 +477,7 @@ type DeleteDataConnectionHttpError = {
477
477
  * @param query an object with query parameters
478
478
  * @throws GetDataConnectionHttpError
479
479
  */
480
- declare const getDataConnection: (qID: string, query: {
480
+ declare function getDataConnection(qID: string, query: {
481
481
  /** If set to true, credentialId in the query will be interpreted as credential's name */
482
482
  byCredentialName?: boolean;
483
483
  /** Credential ID */
@@ -492,7 +492,7 @@ declare const getDataConnection: (qID: string, query: {
492
492
  spaceId?: string;
493
493
  /** Connection / credential ID defined in path become connection / credential name when this query parameter is set */
494
494
  type?: "connectionname" | "credentialname";
495
- }, options?: ApiCallOptions) => Promise<GetDataConnectionHttpResponse>;
495
+ }, options?: ApiCallOptions): Promise<GetDataConnectionHttpResponse>;
496
496
  type GetDataConnectionHttpResponse = {
497
497
  data: ConnectionGet;
498
498
  headers: Headers;
@@ -511,10 +511,10 @@ type GetDataConnectionHttpError = {
511
511
  * @param body an object with the body content
512
512
  * @throws PatchDataConnectionHttpError
513
513
  */
514
- declare const patchDataConnection: (qID: string, query: {
514
+ declare function patchDataConnection(qID: string, query: {
515
515
  /** Connection / credential ID defined in path become connection / credential name when this query parameter is set */
516
516
  type?: "connectionname" | "credentialname";
517
- }, body: PatchRequest, options?: ApiCallOptions) => Promise<PatchDataConnectionHttpResponse>;
517
+ }, body: PatchRequest, options?: ApiCallOptions): Promise<PatchDataConnectionHttpResponse>;
518
518
  type PatchDataConnectionHttpResponse = {
519
519
  data: void;
520
520
  headers: Headers;
@@ -533,12 +533,12 @@ type PatchDataConnectionHttpError = {
533
533
  * @param body an object with the body content
534
534
  * @throws UpdateDataConnectionHttpError
535
535
  */
536
- declare const updateDataConnection: (qID: string, query: {
536
+ declare function updateDataConnection(qID: string, query: {
537
537
  /** Filtering on connections by space ID */
538
538
  spaceId?: string;
539
539
  /** Connection / credential ID defined in path become connection / credential name when this query parameter is set */
540
540
  type?: "connectionname" | "credentialname";
541
- }, body: ConnectionUpdate, options?: ApiCallOptions) => Promise<UpdateDataConnectionHttpResponse>;
541
+ }, body: ConnectionUpdate, options?: ApiCallOptions): Promise<UpdateDataConnectionHttpResponse>;
542
542
  type UpdateDataConnectionHttpResponse = {
543
543
  data: void;
544
544
  headers: Headers;
@@ -1,77 +1,95 @@
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-connections.ts
9
- var getDataConnections = async (query, options) => invokeFetch("data-connections", {
10
- method: "get",
11
- pathTemplate: "/api/v1/data-connections",
12
- query,
13
- options
14
- });
15
- var createDataConnection = async (body, options) => invokeFetch("data-connections", {
16
- method: "post",
17
- pathTemplate: "/api/v1/data-connections",
18
- body,
19
- contentType: "application/json",
20
- options
21
- });
22
- var deleteDataConnections = async (body, options) => invokeFetch("data-connections", {
23
- method: "post",
24
- pathTemplate: "/api/v1/data-connections/actions/delete",
25
- body,
26
- contentType: "application/json",
27
- options
28
- });
29
- var duplicateDataAConnection = async (body, options) => invokeFetch("data-connections", {
30
- method: "post",
31
- pathTemplate: "/api/v1/data-connections/actions/duplicate",
32
- body,
33
- contentType: "application/json",
34
- options
35
- });
36
- var updateDataConnections = async (body, options) => invokeFetch("data-connections", {
37
- method: "post",
38
- pathTemplate: "/api/v1/data-connections/actions/update",
39
- body,
40
- contentType: "application/json",
41
- options
42
- });
43
- var deleteDataConnection = async (qID, query, options) => invokeFetch("data-connections", {
44
- method: "delete",
45
- pathTemplate: "/api/v1/data-connections/{qID}",
46
- pathVariables: { qID },
47
- query,
48
- options
49
- });
50
- var getDataConnection = async (qID, query, options) => invokeFetch("data-connections", {
51
- method: "get",
52
- pathTemplate: "/api/v1/data-connections/{qID}",
53
- pathVariables: { qID },
54
- query,
55
- options
56
- });
57
- var patchDataConnection = async (qID, query, body, options) => invokeFetch("data-connections", {
58
- method: "patch",
59
- pathTemplate: "/api/v1/data-connections/{qID}",
60
- pathVariables: { qID },
61
- query,
62
- body,
63
- contentType: "application/json",
64
- options
65
- });
66
- var updateDataConnection = async (qID, query, body, options) => invokeFetch("data-connections", {
67
- method: "put",
68
- pathTemplate: "/api/v1/data-connections/{qID}",
69
- pathVariables: { qID },
70
- query,
71
- body,
72
- contentType: "application/json",
73
- options
74
- });
9
+ async function getDataConnections(query, options) {
10
+ return invokeFetch("data-connections", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/data-connections",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function createDataConnection(body, options) {
18
+ return invokeFetch("data-connections", {
19
+ method: "post",
20
+ pathTemplate: "/api/v1/data-connections",
21
+ body,
22
+ contentType: "application/json",
23
+ options
24
+ });
25
+ }
26
+ async function deleteDataConnections(body, options) {
27
+ return invokeFetch("data-connections", {
28
+ method: "post",
29
+ pathTemplate: "/api/v1/data-connections/actions/delete",
30
+ body,
31
+ contentType: "application/json",
32
+ options
33
+ });
34
+ }
35
+ async function duplicateDataAConnection(body, options) {
36
+ return invokeFetch("data-connections", {
37
+ method: "post",
38
+ pathTemplate: "/api/v1/data-connections/actions/duplicate",
39
+ body,
40
+ contentType: "application/json",
41
+ options
42
+ });
43
+ }
44
+ async function updateDataConnections(body, options) {
45
+ return invokeFetch("data-connections", {
46
+ method: "post",
47
+ pathTemplate: "/api/v1/data-connections/actions/update",
48
+ body,
49
+ contentType: "application/json",
50
+ options
51
+ });
52
+ }
53
+ async function deleteDataConnection(qID, query, options) {
54
+ return invokeFetch("data-connections", {
55
+ method: "delete",
56
+ pathTemplate: "/api/v1/data-connections/{qID}",
57
+ pathVariables: { qID },
58
+ query,
59
+ options
60
+ });
61
+ }
62
+ async function getDataConnection(qID, query, options) {
63
+ return invokeFetch("data-connections", {
64
+ method: "get",
65
+ pathTemplate: "/api/v1/data-connections/{qID}",
66
+ pathVariables: { qID },
67
+ query,
68
+ options
69
+ });
70
+ }
71
+ async function patchDataConnection(qID, query, body, options) {
72
+ return invokeFetch("data-connections", {
73
+ method: "patch",
74
+ pathTemplate: "/api/v1/data-connections/{qID}",
75
+ pathVariables: { qID },
76
+ query,
77
+ body,
78
+ contentType: "application/json",
79
+ options
80
+ });
81
+ }
82
+ async function updateDataConnection(qID, query, body, options) {
83
+ return invokeFetch("data-connections", {
84
+ method: "put",
85
+ pathTemplate: "/api/v1/data-connections/{qID}",
86
+ pathVariables: { qID },
87
+ query,
88
+ body,
89
+ contentType: "application/json",
90
+ options
91
+ });
92
+ }
75
93
  function clearCache() {
76
94
  return clearApiCache("data-connections");
77
95
  }
@@ -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 ActionFilterOrphanRequest = {
5
5
  /** Filtering on datasource ID of credentials */
@@ -110,7 +110,7 @@ type ResponseErrors = {
110
110
  * @param body an object with the body content
111
111
  * @throws FilterOrphanedDataCredentialsHttpError
112
112
  */
113
- declare const filterOrphanedDataCredentials: (body: ActionFilterOrphanRequest, options?: ApiCallOptions) => Promise<FilterOrphanedDataCredentialsHttpResponse>;
113
+ declare function filterOrphanedDataCredentials(body: ActionFilterOrphanRequest, options?: ApiCallOptions): Promise<FilterOrphanedDataCredentialsHttpResponse>;
114
114
  type FilterOrphanedDataCredentialsHttpResponse = {
115
115
  data: ActionFilterOrphanResponse;
116
116
  headers: Headers;
@@ -135,10 +135,10 @@ type FilterOrphanedDataCredentialsHttpError = {
135
135
  * @param query an object with query parameters
136
136
  * @throws DeleteDataCredentialHttpError
137
137
  */
138
- declare const deleteDataCredential: (qID: string, query: {
138
+ declare function deleteDataCredential(qID: string, query: {
139
139
  /** If set to true, credentialId in the query will be interpreted as credential's name */
140
140
  byCredentialName?: boolean;
141
- }, options?: ApiCallOptions) => Promise<DeleteDataCredentialHttpResponse>;
141
+ }, options?: ApiCallOptions): Promise<DeleteDataCredentialHttpResponse>;
142
142
  type DeleteDataCredentialHttpResponse = {
143
143
  data: void;
144
144
  headers: Headers;
@@ -163,10 +163,10 @@ type DeleteDataCredentialHttpError = {
163
163
  * @param query an object with query parameters
164
164
  * @throws GetDataCredentialHttpError
165
165
  */
166
- declare const getDataCredential: (qID: string, query: {
166
+ declare function getDataCredential(qID: string, query: {
167
167
  /** If set to true, credentialId in the query will be interpreted as credential's name */
168
168
  byCredentialName?: boolean;
169
- }, options?: ApiCallOptions) => Promise<GetDataCredentialHttpResponse>;
169
+ }, options?: ApiCallOptions): Promise<GetDataCredentialHttpResponse>;
170
170
  type GetDataCredentialHttpResponse = {
171
171
  data: Credential;
172
172
  headers: Headers;
@@ -185,10 +185,10 @@ type GetDataCredentialHttpError = {
185
185
  * @param body an object with the body content
186
186
  * @throws PatchDataCredentialHttpError
187
187
  */
188
- declare const patchDataCredential: (qID: string, query: {
188
+ declare function patchDataCredential(qID: string, query: {
189
189
  /** If set to true, credentialId in the query will be interpreted as credential's name */
190
190
  byCredentialName?: boolean;
191
- }, body: PatchRequest, options?: ApiCallOptions) => Promise<PatchDataCredentialHttpResponse>;
191
+ }, body: PatchRequest, options?: ApiCallOptions): Promise<PatchDataCredentialHttpResponse>;
192
192
  type PatchDataCredentialHttpResponse = {
193
193
  data: void;
194
194
  headers: Headers;
@@ -207,10 +207,10 @@ type PatchDataCredentialHttpError = {
207
207
  * @param body an object with the body content
208
208
  * @throws UpdateDataCredentialHttpError
209
209
  */
210
- declare const updateDataCredential: (qID: string, query: {
210
+ declare function updateDataCredential(qID: string, query: {
211
211
  /** If set to true, credentialId in the query will be interpreted as credential's name */
212
212
  byCredentialName?: boolean;
213
- }, body: CredentialCreate, options?: ApiCallOptions) => Promise<UpdateDataCredentialHttpResponse>;
213
+ }, body: CredentialCreate, options?: ApiCallOptions): Promise<UpdateDataCredentialHttpResponse>;
214
214
  type UpdateDataCredentialHttpResponse = {
215
215
  data: void;
216
216
  headers: Headers;
@@ -1,50 +1,60 @@
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-credentials.ts
9
- var filterOrphanedDataCredentials = async (body, options) => invokeFetch("data-credentials", {
10
- method: "post",
11
- pathTemplate: "/api/v1/data-credentials/actions/filter-orphan",
12
- body,
13
- contentType: "application/json",
14
- options
15
- });
16
- var deleteDataCredential = async (qID, query, options) => invokeFetch("data-credentials", {
17
- method: "delete",
18
- pathTemplate: "/api/v1/data-credentials/{qID}",
19
- pathVariables: { qID },
20
- query,
21
- options
22
- });
23
- var getDataCredential = async (qID, query, options) => invokeFetch("data-credentials", {
24
- method: "get",
25
- pathTemplate: "/api/v1/data-credentials/{qID}",
26
- pathVariables: { qID },
27
- query,
28
- options
29
- });
30
- var patchDataCredential = async (qID, query, body, options) => invokeFetch("data-credentials", {
31
- method: "patch",
32
- pathTemplate: "/api/v1/data-credentials/{qID}",
33
- pathVariables: { qID },
34
- query,
35
- body,
36
- contentType: "application/json",
37
- options
38
- });
39
- var updateDataCredential = async (qID, query, body, options) => invokeFetch("data-credentials", {
40
- method: "put",
41
- pathTemplate: "/api/v1/data-credentials/{qID}",
42
- pathVariables: { qID },
43
- query,
44
- body,
45
- contentType: "application/json",
46
- options
47
- });
9
+ async function filterOrphanedDataCredentials(body, options) {
10
+ return invokeFetch("data-credentials", {
11
+ method: "post",
12
+ pathTemplate: "/api/v1/data-credentials/actions/filter-orphan",
13
+ body,
14
+ contentType: "application/json",
15
+ options
16
+ });
17
+ }
18
+ async function deleteDataCredential(qID, query, options) {
19
+ return invokeFetch("data-credentials", {
20
+ method: "delete",
21
+ pathTemplate: "/api/v1/data-credentials/{qID}",
22
+ pathVariables: { qID },
23
+ query,
24
+ options
25
+ });
26
+ }
27
+ async function getDataCredential(qID, query, options) {
28
+ return invokeFetch("data-credentials", {
29
+ method: "get",
30
+ pathTemplate: "/api/v1/data-credentials/{qID}",
31
+ pathVariables: { qID },
32
+ query,
33
+ options
34
+ });
35
+ }
36
+ async function patchDataCredential(qID, query, body, options) {
37
+ return invokeFetch("data-credentials", {
38
+ method: "patch",
39
+ pathTemplate: "/api/v1/data-credentials/{qID}",
40
+ pathVariables: { qID },
41
+ query,
42
+ body,
43
+ contentType: "application/json",
44
+ options
45
+ });
46
+ }
47
+ async function updateDataCredential(qID, query, body, options) {
48
+ return invokeFetch("data-credentials", {
49
+ method: "put",
50
+ pathTemplate: "/api/v1/data-credentials/{qID}",
51
+ pathVariables: { qID },
52
+ query,
53
+ body,
54
+ contentType: "application/json",
55
+ options
56
+ });
57
+ }
48
58
  function clearCache() {
49
59
  return clearApiCache("data-credentials");
50
60
  }
package/data-files.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 BatchChangeSpaceItem = {
5
5
  /** The ID of the data file whose space will be changed. */
@@ -278,7 +278,7 @@ type SpaceStatsResponse = {
278
278
  * @param query an object with query parameters
279
279
  * @throws GetDataFilesHttpError
280
280
  */
281
- declare const getDataFiles: (query: {
281
+ declare function getDataFiles(query: {
282
282
  /** If set to false, do not return data files with internal extensions else return all the data files. */
283
283
  allowInternalFiles?: boolean;
284
284
  /** Only return files scoped to the specified app. If this parameter is not specified, only files that are not
@@ -330,7 +330,7 @@ declare const getDataFiles: (query: {
330
330
  /** The name of the field used to sort the result. By default, the sort order is ascending. Putting a '+' prefix on
331
331
  * the sort field name explicitly indicates ascending sort order. A '-' prefix indicates a descending sort order. */
332
332
  sort?: GetDataFileInfosSortField;
333
- }, options?: ApiCallOptions) => Promise<GetDataFilesHttpResponse>;
333
+ }, options?: ApiCallOptions): Promise<GetDataFilesHttpResponse>;
334
334
  type GetDataFilesHttpResponse = {
335
335
  data: GetDataFileInfosResponse;
336
336
  headers: Headers;
@@ -349,7 +349,7 @@ type GetDataFilesHttpError = {
349
349
  * @param body an object with the body content
350
350
  * @throws UploadDataFileHttpError
351
351
  */
352
- declare const uploadDataFile: (body: {
352
+ declare function uploadDataFile(body: {
353
353
  /** IFormFile form multipart/form-data */
354
354
  File?: BodyInit;
355
355
  /** See PostDataFileRequest schema which defines request structure.
@@ -387,7 +387,7 @@ declare const uploadDataFile: (body: {
387
387
  * the one returned from the temp content upload request. This option does not apply when POSTing a folder. */
388
388
  tempContentFileId?: string;
389
389
  };
390
- }, options?: ApiCallOptions) => Promise<UploadDataFileHttpResponse>;
390
+ }, options?: ApiCallOptions): Promise<UploadDataFileHttpResponse>;
391
391
  type UploadDataFileHttpResponse = {
392
392
  data: DataFileUploadResponse;
393
393
  headers: Headers;
@@ -407,7 +407,7 @@ type UploadDataFileHttpError = {
407
407
  * @param body an object with the body content
408
408
  * @throws MoveDataFilesHttpError
409
409
  */
410
- declare const moveDataFiles: (body: DataFileBatchChangeSpaceRequest, options?: ApiCallOptions) => Promise<MoveDataFilesHttpResponse>;
410
+ declare function moveDataFiles(body: DataFileBatchChangeSpaceRequest, options?: ApiCallOptions): Promise<MoveDataFilesHttpResponse>;
411
411
  type MoveDataFilesHttpResponse = {
412
412
  data: MultiStatusResponse;
413
413
  headers: Headers;
@@ -424,7 +424,7 @@ type MoveDataFilesHttpError = {
424
424
  * @param body an object with the body content
425
425
  * @throws DeleteDataFilesHttpError
426
426
  */
427
- declare const deleteDataFiles: (body: DataFileBatchDeleteRequest, options?: ApiCallOptions) => Promise<DeleteDataFilesHttpResponse>;
427
+ declare function deleteDataFiles(body: DataFileBatchDeleteRequest, options?: ApiCallOptions): Promise<DeleteDataFilesHttpResponse>;
428
428
  type DeleteDataFilesHttpResponse = {
429
429
  data: MultiStatusResponse;
430
430
  headers: Headers;
@@ -454,7 +454,7 @@ type DeleteDataFilesHttpError = {
454
454
  * @param query an object with query parameters
455
455
  * @throws GetDataFilesConnectionsHttpError
456
456
  */
457
- declare const getDataFilesConnections: (query: {
457
+ declare function getDataFilesConnections(query: {
458
458
  /** If present, get connections with connection strings that are scoped to the given app ID. */
459
459
  appId?: string;
460
460
  /** If set to true, include computed space-level statistics for the spaces represented by the connections in the
@@ -473,7 +473,7 @@ declare const getDataFilesConnections: (query: {
473
473
  sort?: GetConnectionsSortField;
474
474
  /** If present, only return the connection that accesses data files in the specified space. */
475
475
  spaceId?: string;
476
- }, options?: ApiCallOptions) => Promise<GetDataFilesConnectionsHttpResponse>;
476
+ }, options?: ApiCallOptions): Promise<GetDataFilesConnectionsHttpResponse>;
477
477
  type GetDataFilesConnectionsHttpResponse = {
478
478
  data: GetConnectionsResponse;
479
479
  headers: Headers;
@@ -496,7 +496,7 @@ type GetDataFilesConnectionsHttpError = {
496
496
  * @param id The ID of the connection.
497
497
  * @throws GetDataFileConnectionHttpError
498
498
  */
499
- declare const getDataFileConnection: (id: string, options?: ApiCallOptions) => Promise<GetDataFileConnectionHttpResponse>;
499
+ declare function getDataFileConnection(id: string, options?: ApiCallOptions): Promise<GetDataFileConnectionHttpResponse>;
500
500
  type GetDataFileConnectionHttpResponse = {
501
501
  data: ConnectionsResponse;
502
502
  headers: Headers;
@@ -512,7 +512,7 @@ type GetDataFileConnectionHttpError = {
512
512
  *
513
513
  * @throws GetDataFilesQuotasHttpError
514
514
  */
515
- declare const getDataFilesQuotas: (options?: ApiCallOptions) => Promise<GetDataFilesQuotasHttpResponse>;
515
+ declare function getDataFilesQuotas(options?: ApiCallOptions): Promise<GetDataFilesQuotasHttpResponse>;
516
516
  type GetDataFilesQuotasHttpResponse = {
517
517
  data: QuotaResponse;
518
518
  headers: Headers;
@@ -534,7 +534,7 @@ type GetDataFilesQuotasHttpError = {
534
534
  * @param id The ID of the data file or folder to delete.
535
535
  * @throws DeleteDataFileHttpError
536
536
  */
537
- declare const deleteDataFile: (id: string, options?: ApiCallOptions) => Promise<DeleteDataFileHttpResponse>;
537
+ declare function deleteDataFile(id: string, options?: ApiCallOptions): Promise<DeleteDataFileHttpResponse>;
538
538
  type DeleteDataFileHttpResponse = {
539
539
  data: void;
540
540
  headers: Headers;
@@ -555,7 +555,7 @@ type DeleteDataFileHttpError = {
555
555
  * @param id The ID of the data file.
556
556
  * @throws GetDataFileHttpError
557
557
  */
558
- declare const getDataFile: (id: string, options?: ApiCallOptions) => Promise<GetDataFileHttpResponse>;
558
+ declare function getDataFile(id: string, options?: ApiCallOptions): Promise<GetDataFileHttpResponse>;
559
559
  type GetDataFileHttpResponse = {
560
560
  data: DataFileUploadResponse;
561
561
  headers: Headers;
@@ -573,7 +573,7 @@ type GetDataFileHttpError = {
573
573
  * @param body an object with the body content
574
574
  * @throws ReuploadDataFileHttpError
575
575
  */
576
- declare const reuploadDataFile: (id: string, body: {
576
+ declare function reuploadDataFile(id: string, body: {
577
577
  /** IFormFile form multipart/form-data */
578
578
  File?: BodyInit;
579
579
  /** See PutDataFileRequest schema which defines request structure.
@@ -623,7 +623,7 @@ declare const reuploadDataFile: (id: string, body: {
623
623
  * the one returned from the temp content upload request. */
624
624
  tempContentFileId?: string;
625
625
  };
626
- }, options?: ApiCallOptions) => Promise<ReuploadDataFileHttpResponse>;
626
+ }, options?: ApiCallOptions): Promise<ReuploadDataFileHttpResponse>;
627
627
  type ReuploadDataFileHttpResponse = {
628
628
  data: DataFileUploadResponse;
629
629
  headers: Headers;
@@ -647,7 +647,7 @@ type ReuploadDataFileHttpError = {
647
647
  * @param body an object with the body content
648
648
  * @throws ChangeDataFileOwnerHttpError
649
649
  */
650
- declare const changeDataFileOwner: (id: string, body: ChangeDataFileOwnerRequest, options?: ApiCallOptions) => Promise<ChangeDataFileOwnerHttpResponse>;
650
+ declare function changeDataFileOwner(id: string, body: ChangeDataFileOwnerRequest, options?: ApiCallOptions): Promise<ChangeDataFileOwnerHttpResponse>;
651
651
  type ChangeDataFileOwnerHttpResponse = {
652
652
  data: void;
653
653
  headers: Headers;
@@ -672,7 +672,7 @@ type ChangeDataFileOwnerHttpError = {
672
672
  * @param body an object with the body content
673
673
  * @throws MoveDataFileHttpError
674
674
  */
675
- declare const moveDataFile: (id: string, body: ChangeDataFileSpaceRequest, options?: ApiCallOptions) => Promise<MoveDataFileHttpResponse>;
675
+ declare function moveDataFile(id: string, body: ChangeDataFileSpaceRequest, options?: ApiCallOptions): Promise<MoveDataFileHttpResponse>;
676
676
  type MoveDataFileHttpResponse = {
677
677
  data: void;
678
678
  headers: Headers;