@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-files.js CHANGED
@@ -1,91 +1,115 @@
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-files.ts
9
- var getDataFiles = async (query, options) => invokeFetch("data-files", {
10
- method: "get",
11
- pathTemplate: "/api/v1/data-files",
12
- query,
13
- options
14
- });
15
- var uploadDataFile = async (body, options) => invokeFetch("data-files", {
16
- method: "post",
17
- pathTemplate: "/api/v1/data-files",
18
- body,
19
- contentType: "multipart/form-data",
20
- options
21
- });
22
- var moveDataFiles = async (body, options) => invokeFetch("data-files", {
23
- method: "post",
24
- pathTemplate: "/api/v1/data-files/actions/change-space",
25
- body,
26
- contentType: "application/json",
27
- options
28
- });
29
- var deleteDataFiles = async (body, options) => invokeFetch("data-files", {
30
- method: "post",
31
- pathTemplate: "/api/v1/data-files/actions/delete",
32
- body,
33
- contentType: "application/json",
34
- options
35
- });
36
- var getDataFilesConnections = async (query, options) => invokeFetch("data-files", {
37
- method: "get",
38
- pathTemplate: "/api/v1/data-files/connections",
39
- query,
40
- options
41
- });
42
- var getDataFileConnection = async (id, options) => invokeFetch("data-files", {
43
- method: "get",
44
- pathTemplate: "/api/v1/data-files/connections/{id}",
45
- pathVariables: { id },
46
- options
47
- });
48
- var getDataFilesQuotas = async (options) => invokeFetch("data-files", {
49
- method: "get",
50
- pathTemplate: "/api/v1/data-files/quotas",
51
- options
52
- });
53
- var deleteDataFile = async (id, options) => invokeFetch("data-files", {
54
- method: "delete",
55
- pathTemplate: "/api/v1/data-files/{id}",
56
- pathVariables: { id },
57
- options
58
- });
59
- var getDataFile = async (id, options) => invokeFetch("data-files", {
60
- method: "get",
61
- pathTemplate: "/api/v1/data-files/{id}",
62
- pathVariables: { id },
63
- options
64
- });
65
- var reuploadDataFile = async (id, body, options) => invokeFetch("data-files", {
66
- method: "put",
67
- pathTemplate: "/api/v1/data-files/{id}",
68
- pathVariables: { id },
69
- body,
70
- contentType: "multipart/form-data",
71
- options
72
- });
73
- var changeDataFileOwner = async (id, body, options) => invokeFetch("data-files", {
74
- method: "post",
75
- pathTemplate: "/api/v1/data-files/{id}/actions/change-owner",
76
- pathVariables: { id },
77
- body,
78
- contentType: "application/json",
79
- options
80
- });
81
- var moveDataFile = async (id, body, options) => invokeFetch("data-files", {
82
- method: "post",
83
- pathTemplate: "/api/v1/data-files/{id}/actions/change-space",
84
- pathVariables: { id },
85
- body,
86
- contentType: "application/json",
87
- options
88
- });
9
+ async function getDataFiles(query, options) {
10
+ return invokeFetch("data-files", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/data-files",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function uploadDataFile(body, options) {
18
+ return invokeFetch("data-files", {
19
+ method: "post",
20
+ pathTemplate: "/api/v1/data-files",
21
+ body,
22
+ contentType: "multipart/form-data",
23
+ options
24
+ });
25
+ }
26
+ async function moveDataFiles(body, options) {
27
+ return invokeFetch("data-files", {
28
+ method: "post",
29
+ pathTemplate: "/api/v1/data-files/actions/change-space",
30
+ body,
31
+ contentType: "application/json",
32
+ options
33
+ });
34
+ }
35
+ async function deleteDataFiles(body, options) {
36
+ return invokeFetch("data-files", {
37
+ method: "post",
38
+ pathTemplate: "/api/v1/data-files/actions/delete",
39
+ body,
40
+ contentType: "application/json",
41
+ options
42
+ });
43
+ }
44
+ async function getDataFilesConnections(query, options) {
45
+ return invokeFetch("data-files", {
46
+ method: "get",
47
+ pathTemplate: "/api/v1/data-files/connections",
48
+ query,
49
+ options
50
+ });
51
+ }
52
+ async function getDataFileConnection(id, options) {
53
+ return invokeFetch("data-files", {
54
+ method: "get",
55
+ pathTemplate: "/api/v1/data-files/connections/{id}",
56
+ pathVariables: { id },
57
+ options
58
+ });
59
+ }
60
+ async function getDataFilesQuotas(options) {
61
+ return invokeFetch("data-files", {
62
+ method: "get",
63
+ pathTemplate: "/api/v1/data-files/quotas",
64
+ options
65
+ });
66
+ }
67
+ async function deleteDataFile(id, options) {
68
+ return invokeFetch("data-files", {
69
+ method: "delete",
70
+ pathTemplate: "/api/v1/data-files/{id}",
71
+ pathVariables: { id },
72
+ options
73
+ });
74
+ }
75
+ async function getDataFile(id, options) {
76
+ return invokeFetch("data-files", {
77
+ method: "get",
78
+ pathTemplate: "/api/v1/data-files/{id}",
79
+ pathVariables: { id },
80
+ options
81
+ });
82
+ }
83
+ async function reuploadDataFile(id, body, options) {
84
+ return invokeFetch("data-files", {
85
+ method: "put",
86
+ pathTemplate: "/api/v1/data-files/{id}",
87
+ pathVariables: { id },
88
+ body,
89
+ contentType: "multipart/form-data",
90
+ options
91
+ });
92
+ }
93
+ async function changeDataFileOwner(id, body, options) {
94
+ return invokeFetch("data-files", {
95
+ method: "post",
96
+ pathTemplate: "/api/v1/data-files/{id}/actions/change-owner",
97
+ pathVariables: { id },
98
+ body,
99
+ contentType: "application/json",
100
+ options
101
+ });
102
+ }
103
+ async function moveDataFile(id, body, options) {
104
+ return invokeFetch("data-files", {
105
+ method: "post",
106
+ pathTemplate: "/api/v1/data-files/{id}/actions/change-space",
107
+ pathVariables: { id },
108
+ body,
109
+ contentType: "application/json",
110
+ options
111
+ });
112
+ }
89
113
  function clearCache() {
90
114
  return clearApiCache("data-files");
91
115
  }
@@ -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
  * The ID of the computation
@@ -78,7 +78,7 @@ type SamplingConfiguration = {
78
78
  * @param body an object with the body content
79
79
  * @throws TriggerDataQualitiesComputationHttpError
80
80
  */
81
- declare const triggerDataQualitiesComputation: (body: DataQualityComputationRequest, options?: ApiCallOptions) => Promise<TriggerDataQualitiesComputationHttpResponse>;
81
+ declare function triggerDataQualitiesComputation(body: DataQualityComputationRequest, options?: ApiCallOptions): Promise<TriggerDataQualitiesComputationHttpResponse>;
82
82
  type TriggerDataQualitiesComputationHttpResponse = {
83
83
  data: ComputationResponse;
84
84
  headers: Headers;
@@ -99,7 +99,7 @@ type TriggerDataQualitiesComputationHttpError = {
99
99
  * @param computationId The ID of the computation
100
100
  * @throws GetDataQualitiesComputationHttpError
101
101
  */
102
- declare const getDataQualitiesComputation: (computationId: string, options?: ApiCallOptions) => Promise<GetDataQualitiesComputationHttpResponse>;
102
+ declare function getDataQualitiesComputation(computationId: string, options?: ApiCallOptions): Promise<GetDataQualitiesComputationHttpResponse>;
103
103
  type GetDataQualitiesComputationHttpResponse = {
104
104
  data: ComputationStatusResponse;
105
105
  headers: Headers;
@@ -116,12 +116,12 @@ type GetDataQualitiesComputationHttpError = {
116
116
  * @param query an object with query parameters
117
117
  * @throws GetDataQualitiesGlobalResultsHttpError
118
118
  */
119
- declare const getDataQualitiesGlobalResults: (query: {
119
+ declare function getDataQualitiesGlobalResults(query: {
120
120
  /** The connection ID */
121
121
  connectionId?: ConnectionIdType;
122
122
  /** The ID of the dataset */
123
123
  datasetId: DatasetIdType;
124
- }, options?: ApiCallOptions) => Promise<GetDataQualitiesGlobalResultsHttpResponse>;
124
+ }, options?: ApiCallOptions): Promise<GetDataQualitiesGlobalResultsHttpResponse>;
125
125
  type GetDataQualitiesGlobalResultsHttpResponse = {
126
126
  data: DatasetQualityGlobalResultsResponse;
127
127
  headers: Headers;
package/data-qualities.js CHANGED
@@ -1,30 +1,36 @@
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-qualities.ts
9
- var triggerDataQualitiesComputation = async (body, options) => invokeFetch("data-qualities", {
10
- method: "post",
11
- pathTemplate: "/api/v1/data-qualities/computations",
12
- body,
13
- contentType: "application/json",
14
- options
15
- });
16
- var getDataQualitiesComputation = async (computationId, options) => invokeFetch("data-qualities", {
17
- method: "get",
18
- pathTemplate: "/api/v1/data-qualities/computations/{computationId}",
19
- pathVariables: { computationId },
20
- options
21
- });
22
- var getDataQualitiesGlobalResults = async (query, options) => invokeFetch("data-qualities", {
23
- method: "get",
24
- pathTemplate: "/api/v1/data-qualities/global-results",
25
- query,
26
- options
27
- });
9
+ async function triggerDataQualitiesComputation(body, options) {
10
+ return invokeFetch("data-qualities", {
11
+ method: "post",
12
+ pathTemplate: "/api/v1/data-qualities/computations",
13
+ body,
14
+ contentType: "application/json",
15
+ options
16
+ });
17
+ }
18
+ async function getDataQualitiesComputation(computationId, options) {
19
+ return invokeFetch("data-qualities", {
20
+ method: "get",
21
+ pathTemplate: "/api/v1/data-qualities/computations/{computationId}",
22
+ pathVariables: { computationId },
23
+ options
24
+ });
25
+ }
26
+ async function getDataQualitiesGlobalResults(query, options) {
27
+ return invokeFetch("data-qualities", {
28
+ method: "get",
29
+ pathTemplate: "/api/v1/data-qualities/global-results",
30
+ query,
31
+ options
32
+ });
33
+ }
28
34
  function clearCache() {
29
35
  return clearApiCache("data-qualities");
30
36
  }
package/data-sets.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[];
@@ -246,7 +246,7 @@ type UserTag = {
246
246
  * @param body an object with the body content
247
247
  * @throws DeleteDataSetsHttpError
248
248
  */
249
- declare const deleteDataSets: (body: BatchIdDto, options?: ApiCallOptions) => Promise<DeleteDataSetsHttpResponse>;
249
+ declare function deleteDataSets(body: BatchIdDto, options?: ApiCallOptions): Promise<DeleteDataSetsHttpResponse>;
250
250
  type DeleteDataSetsHttpResponse = {
251
251
  data: void;
252
252
  headers: Headers;
@@ -263,7 +263,7 @@ type DeleteDataSetsHttpError = {
263
263
  * @param body an object with the body content
264
264
  * @throws CreateDataSetHttpError
265
265
  */
266
- declare const createDataSet: (body: DataSet, options?: ApiCallOptions) => Promise<CreateDataSetHttpResponse>;
266
+ declare function createDataSet(body: DataSet, options?: ApiCallOptions): Promise<CreateDataSetHttpResponse>;
267
267
  type CreateDataSetHttpResponse = {
268
268
  data: DataSet;
269
269
  headers: Headers;
@@ -281,10 +281,10 @@ type CreateDataSetHttpError = {
281
281
  * @param query an object with query parameters
282
282
  * @throws GetDataSetHttpError
283
283
  */
284
- declare const getDataSet: (dataSetId: string, query: {
284
+ declare function getDataSet(dataSetId: string, query: {
285
285
  /** Comma-separated fields to return in the response. */
286
286
  projections?: string[];
287
- }, options?: ApiCallOptions) => Promise<GetDataSetHttpResponse>;
287
+ }, options?: ApiCallOptions): Promise<GetDataSetHttpResponse>;
288
288
  type GetDataSetHttpResponse = {
289
289
  data: DataSet;
290
290
  headers: Headers;
@@ -302,7 +302,7 @@ type GetDataSetHttpError = {
302
302
  * @param body an object with the body content
303
303
  * @throws PatchDataSetHttpError
304
304
  */
305
- declare const patchDataSet: (dataSetId: string, body: JsonPatch[], options?: ApiCallOptions) => Promise<PatchDataSetHttpResponse>;
305
+ declare function patchDataSet(dataSetId: string, body: JsonPatch[], options?: ApiCallOptions): Promise<PatchDataSetHttpResponse>;
306
306
  type PatchDataSetHttpResponse = {
307
307
  data: DataSet;
308
308
  headers: Headers;
@@ -320,7 +320,7 @@ type PatchDataSetHttpError = {
320
320
  * @param body an object with the body content
321
321
  * @throws UpdateDataSetHttpError
322
322
  */
323
- declare const updateDataSet: (dataSetId: string, body: DataSet, options?: ApiCallOptions) => Promise<UpdateDataSetHttpResponse>;
323
+ declare function updateDataSet(dataSetId: string, body: DataSet, options?: ApiCallOptions): Promise<UpdateDataSetHttpResponse>;
324
324
  type UpdateDataSetHttpResponse = {
325
325
  data: DataSet;
326
326
  headers: Headers;
@@ -338,7 +338,7 @@ type UpdateDataSetHttpError = {
338
338
  * @param query an object with query parameters
339
339
  * @throws GetDataSetProfilesHttpError
340
340
  */
341
- declare const getDataSetProfiles: (dataSetId: string, query: {
341
+ declare function getDataSetProfiles(dataSetId: string, query: {
342
342
  /** Comma-separated data connection IDs. */
343
343
  dataConnectionIds?: string[];
344
344
  /** Page size limit. */
@@ -347,7 +347,7 @@ declare const getDataSetProfiles: (dataSetId: string, query: {
347
347
  /** Comma-separated fields to return in the response. */
348
348
  projections?: string[];
349
349
  sort?: string[];
350
- }, options?: ApiCallOptions) => Promise<GetDataSetProfilesHttpResponse>;
350
+ }, options?: ApiCallOptions): Promise<GetDataSetProfilesHttpResponse>;
351
351
  type GetDataSetProfilesHttpResponse = {
352
352
  data: PageDataSetProfile;
353
353
  headers: Headers;
package/data-sets.js CHANGED
@@ -1,55 +1,67 @@
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-sets.ts
9
- var deleteDataSets = async (body, options) => invokeFetch("data-sets", {
10
- method: "delete",
11
- pathTemplate: "/api/v1/data-sets",
12
- body,
13
- contentType: "application/json",
14
- options
15
- });
16
- var createDataSet = async (body, options) => invokeFetch("data-sets", {
17
- method: "post",
18
- pathTemplate: "/api/v1/data-sets",
19
- body,
20
- contentType: "application/json",
21
- options
22
- });
23
- var getDataSet = async (dataSetId, query, options) => invokeFetch("data-sets", {
24
- method: "get",
25
- pathTemplate: "/api/v1/data-sets/{data-set-id}",
26
- pathVariables: { "data-set-id": dataSetId },
27
- query,
28
- options
29
- });
30
- var patchDataSet = async (dataSetId, body, options) => invokeFetch("data-sets", {
31
- method: "patch",
32
- pathTemplate: "/api/v1/data-sets/{data-set-id}",
33
- pathVariables: { "data-set-id": dataSetId },
34
- body,
35
- contentType: "application/json",
36
- options
37
- });
38
- var updateDataSet = async (dataSetId, body, options) => invokeFetch("data-sets", {
39
- method: "put",
40
- pathTemplate: "/api/v1/data-sets/{data-set-id}",
41
- pathVariables: { "data-set-id": dataSetId },
42
- body,
43
- contentType: "application/json",
44
- options
45
- });
46
- var getDataSetProfiles = async (dataSetId, query, options) => invokeFetch("data-sets", {
47
- method: "get",
48
- pathTemplate: "/api/v1/data-sets/{data-set-id}/profiles",
49
- pathVariables: { "data-set-id": dataSetId },
50
- query,
51
- options
52
- });
9
+ async function deleteDataSets(body, options) {
10
+ return invokeFetch("data-sets", {
11
+ method: "delete",
12
+ pathTemplate: "/api/v1/data-sets",
13
+ body,
14
+ contentType: "application/json",
15
+ options
16
+ });
17
+ }
18
+ async function createDataSet(body, options) {
19
+ return invokeFetch("data-sets", {
20
+ method: "post",
21
+ pathTemplate: "/api/v1/data-sets",
22
+ body,
23
+ contentType: "application/json",
24
+ options
25
+ });
26
+ }
27
+ async function getDataSet(dataSetId, query, options) {
28
+ return invokeFetch("data-sets", {
29
+ method: "get",
30
+ pathTemplate: "/api/v1/data-sets/{data-set-id}",
31
+ pathVariables: { "data-set-id": dataSetId },
32
+ query,
33
+ options
34
+ });
35
+ }
36
+ async function patchDataSet(dataSetId, body, options) {
37
+ return invokeFetch("data-sets", {
38
+ method: "patch",
39
+ pathTemplate: "/api/v1/data-sets/{data-set-id}",
40
+ pathVariables: { "data-set-id": dataSetId },
41
+ body,
42
+ contentType: "application/json",
43
+ options
44
+ });
45
+ }
46
+ async function updateDataSet(dataSetId, body, options) {
47
+ return invokeFetch("data-sets", {
48
+ method: "put",
49
+ pathTemplate: "/api/v1/data-sets/{data-set-id}",
50
+ pathVariables: { "data-set-id": dataSetId },
51
+ body,
52
+ contentType: "application/json",
53
+ options
54
+ });
55
+ }
56
+ async function getDataSetProfiles(dataSetId, query, options) {
57
+ return invokeFetch("data-sets", {
58
+ method: "get",
59
+ pathTemplate: "/api/v1/data-sets/{data-set-id}/profiles",
60
+ pathVariables: { "data-set-id": dataSetId },
61
+ query,
62
+ options
63
+ });
64
+ }
53
65
  function clearCache() {
54
66
  return clearApiCache("data-sets");
55
67
  }
package/data-sources.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 ApiSpecResponse = {
5
5
  /** List of properties required for the given datasource */
@@ -130,14 +130,14 @@ type UiInfo = {
130
130
  * @param query an object with query parameters
131
131
  * @throws GetDataSourcesHttpError
132
132
  */
133
- declare const getDataSources: (query: {
133
+ declare function getDataSources(query: {
134
134
  /** Filtering on datasourceID, when multiple dataSourceId are set in query, last dataSourceId will be used */
135
135
  dataSourceId?: string;
136
136
  /** Determines if provider detail is returned */
137
137
  detail?: boolean;
138
138
  /** Determines if UI info is returned */
139
139
  includeui?: boolean;
140
- }, options?: ApiCallOptions) => Promise<GetDataSourcesHttpResponse>;
140
+ }, options?: ApiCallOptions): Promise<GetDataSourcesHttpResponse>;
141
141
  type GetDataSourcesHttpResponse = {
142
142
  data: DataSourcesResponseNew;
143
143
  headers: Headers;
@@ -158,7 +158,7 @@ type GetDataSourcesHttpError = {
158
158
  * @param dataSourceId Datasource ID
159
159
  * @throws GetDataSourceApiSpecsHttpError
160
160
  */
161
- declare const getDataSourceApiSpecs: (dataSourceId: string, options?: ApiCallOptions) => Promise<GetDataSourceApiSpecsHttpResponse>;
161
+ declare function getDataSourceApiSpecs(dataSourceId: string, options?: ApiCallOptions): Promise<GetDataSourceApiSpecsHttpResponse>;
162
162
  type GetDataSourceApiSpecsHttpResponse = {
163
163
  data: ApiSpecResponse;
164
164
  headers: Headers;
@@ -183,10 +183,10 @@ type GetDataSourceApiSpecsHttpError = {
183
183
  * @param query an object with query parameters
184
184
  * @throws GetDataSourceGatewaysHttpError
185
185
  */
186
- declare const getDataSourceGateways: (dataSourceId: string, query: {
186
+ declare function getDataSourceGateways(dataSourceId: string, query: {
187
187
  /** Force to get a refreshed list from backend. Cached list will be returned if not set or set to false. */
188
188
  forceRefresh?: boolean;
189
- }, options?: ApiCallOptions) => Promise<GetDataSourceGatewaysHttpResponse>;
189
+ }, options?: ApiCallOptions): Promise<GetDataSourceGatewaysHttpResponse>;
190
190
  type GetDataSourceGatewaysHttpResponse = {
191
191
  data: {
192
192
  /** List of gateway ID's for given datasource ID */
package/data-sources.js CHANGED
@@ -1,30 +1,36 @@
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-sources.ts
9
- var getDataSources = async (query, options) => invokeFetch("data-sources", {
10
- method: "get",
11
- pathTemplate: "/api/v1/data-sources",
12
- query,
13
- options
14
- });
15
- var getDataSourceApiSpecs = async (dataSourceId, options) => invokeFetch("data-sources", {
16
- method: "get",
17
- pathTemplate: "/api/v1/data-sources/{dataSourceId}/api-specs",
18
- pathVariables: { dataSourceId },
19
- options
20
- });
21
- var getDataSourceGateways = async (dataSourceId, query, options) => invokeFetch("data-sources", {
22
- method: "get",
23
- pathTemplate: "/api/v1/data-sources/{dataSourceId}/gateways",
24
- pathVariables: { dataSourceId },
25
- query,
26
- options
27
- });
9
+ async function getDataSources(query, options) {
10
+ return invokeFetch("data-sources", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/data-sources",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function getDataSourceApiSpecs(dataSourceId, options) {
18
+ return invokeFetch("data-sources", {
19
+ method: "get",
20
+ pathTemplate: "/api/v1/data-sources/{dataSourceId}/api-specs",
21
+ pathVariables: { dataSourceId },
22
+ options
23
+ });
24
+ }
25
+ async function getDataSourceGateways(dataSourceId, query, options) {
26
+ return invokeFetch("data-sources", {
27
+ method: "get",
28
+ pathTemplate: "/api/v1/data-sources/{dataSourceId}/gateways",
29
+ pathVariables: { dataSourceId },
30
+ query,
31
+ options
32
+ });
33
+ }
28
34
  function clearCache() {
29
35
  return clearApiCache("data-sources");
30
36
  }