@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/tasks.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 ErrorResponse = {
5
5
  errors?: HttpResult[];
@@ -256,7 +256,7 @@ type TaskMetadata = {
256
256
  * @param query an object with query parameters
257
257
  * @throws GetTasksHttpError
258
258
  */
259
- declare const getTasks: (query: {
259
+ declare function getTasks(query: {
260
260
  /** The maximum number of resources to return for a request. */
261
261
  limit?: number;
262
262
  /** The page cursor. */
@@ -267,7 +267,7 @@ declare const getTasks: (query: {
267
267
  * -updatedAt). A property must be prefixed by + or - to
268
268
  * indicate ascending or descending sort order respectively. */
269
269
  sort?: "+createdAt" | "-createdAt" | "+updatedAt" | "-updatedAt";
270
- }, options?: ApiCallOptions) => Promise<GetTasksHttpResponse>;
270
+ }, options?: ApiCallOptions): Promise<GetTasksHttpResponse>;
271
271
  type GetTasksHttpResponse = {
272
272
  data: TaskList;
273
273
  headers: Headers;
@@ -287,10 +287,10 @@ type GetTasksHttpError = {
287
287
  * @param body an object with the body content
288
288
  * @throws CreateTaskHttpError
289
289
  */
290
- declare const createTask: (query: {
290
+ declare function createTask(query: {
291
291
  /** ID of the reload-task to migrate from the old system (optional). */
292
292
  migrateFrom?: string;
293
- }, body: Task, options?: ApiCallOptions) => Promise<CreateTaskHttpResponse>;
293
+ }, body: Task, options?: ApiCallOptions): Promise<CreateTaskHttpResponse>;
294
294
  type CreateTaskHttpResponse = {
295
295
  data: Task;
296
296
  headers: Headers;
@@ -308,7 +308,7 @@ type CreateTaskHttpError = {
308
308
  * @param query an object with query parameters
309
309
  * @throws GetTasksResourceRunsHttpError
310
310
  */
311
- declare const getTasksResourceRuns: (id: string, query: {
311
+ declare function getTasksResourceRuns(id: string, query: {
312
312
  /** The maximum number of task runs to return for a request. */
313
313
  limit?: number;
314
314
  /** The page cursor. */
@@ -316,7 +316,7 @@ declare const getTasksResourceRuns: (id: string, query: {
316
316
  /** The property of a resource to sort on (default sort is -startedAt).
317
317
  * A property must be prefixed by + or - to indicate ascending or descending sort order respectively. */
318
318
  sort?: "+startedAt" | "-startedAt" | "+endedAt" | "-endedAt" | "+status" | "-status" | "+taskId" | "-taskId" | "+actionId" | "-actionId";
319
- }, options?: ApiCallOptions) => Promise<GetTasksResourceRunsHttpResponse>;
319
+ }, options?: ApiCallOptions): Promise<GetTasksResourceRunsHttpResponse>;
320
320
  type GetTasksResourceRunsHttpResponse = {
321
321
  data: OrchRunList;
322
322
  headers: Headers;
@@ -335,7 +335,7 @@ type GetTasksResourceRunsHttpError = {
335
335
  * @param id The task's unique identifier.
336
336
  * @throws DeleteTaskHttpError
337
337
  */
338
- declare const deleteTask: (id: string, options?: ApiCallOptions) => Promise<DeleteTaskHttpResponse>;
338
+ declare function deleteTask(id: string, options?: ApiCallOptions): Promise<DeleteTaskHttpResponse>;
339
339
  type DeleteTaskHttpResponse = {
340
340
  data: void;
341
341
  headers: Headers;
@@ -352,7 +352,7 @@ type DeleteTaskHttpError = {
352
352
  * @param id The task's unique identifier.
353
353
  * @throws GetTaskHttpError
354
354
  */
355
- declare const getTask: (id: string, options?: ApiCallOptions) => Promise<GetTaskHttpResponse>;
355
+ declare function getTask(id: string, options?: ApiCallOptions): Promise<GetTaskHttpResponse>;
356
356
  type GetTaskHttpResponse = {
357
357
  data: Task;
358
358
  headers: Headers;
@@ -370,7 +370,7 @@ type GetTaskHttpError = {
370
370
  * @param body an object with the body content
371
371
  * @throws UpdateTaskHttpError
372
372
  */
373
- declare const updateTask: (id: string, body: Task, options?: ApiCallOptions) => Promise<UpdateTaskHttpResponse>;
373
+ declare function updateTask(id: string, body: Task, options?: ApiCallOptions): Promise<UpdateTaskHttpResponse>;
374
374
  type UpdateTaskHttpResponse = {
375
375
  data: Task;
376
376
  headers: Headers;
@@ -388,10 +388,10 @@ type UpdateTaskHttpError = {
388
388
  * @param query an object with query parameters
389
389
  * @throws StartTaskHttpError
390
390
  */
391
- declare const startTask: (id: string, query: {
391
+ declare function startTask(id: string, query: {
392
392
  /** Indicates the origin of the trigger. If not provided, defaults to 'manual'. For event-triggered tasks, this can be the name of the triggering task. */
393
393
  source?: string;
394
- }, options?: ApiCallOptions) => Promise<StartTaskHttpResponse>;
394
+ }, options?: ApiCallOptions): Promise<StartTaskHttpResponse>;
395
395
  type StartTaskHttpResponse = {
396
396
  data: {
397
397
  message?: string;
@@ -411,7 +411,7 @@ type StartTaskHttpError = {
411
411
  * @param query an object with query parameters
412
412
  * @throws GetTaskRunsHttpError
413
413
  */
414
- declare const getTaskRuns: (id: string, query: {
414
+ declare function getTaskRuns(id: string, query: {
415
415
  /** The maximum number of task runs to return for a request. */
416
416
  limit?: number;
417
417
  /** The page cursor. */
@@ -419,7 +419,7 @@ declare const getTaskRuns: (id: string, query: {
419
419
  /** The property of a resource to sort on (default sort is -startedAt).
420
420
  * A property must be prefixed by + or - to indicate ascending or descending sort order respectively. */
421
421
  sort?: "+startedAt" | "-startedAt" | "+endedAt" | "-endedAt" | "+status" | "-status" | "+taskId" | "-taskId" | "+actionId" | "-actionId";
422
- }, options?: ApiCallOptions) => Promise<GetTaskRunsHttpResponse>;
422
+ }, options?: ApiCallOptions): Promise<GetTaskRunsHttpResponse>;
423
423
  type GetTaskRunsHttpResponse = {
424
424
  data: OrchRunList;
425
425
  headers: Headers;
@@ -438,7 +438,7 @@ type GetTaskRunsHttpError = {
438
438
  * @param id The task's unique identifier.
439
439
  * @throws GetLastTaskRunHttpError
440
440
  */
441
- declare const getLastTaskRun: (id: string, options?: ApiCallOptions) => Promise<GetLastTaskRunHttpResponse>;
441
+ declare function getLastTaskRun(id: string, options?: ApiCallOptions): Promise<GetLastTaskRunHttpResponse>;
442
442
  type GetLastTaskRunHttpResponse = {
443
443
  data: OrchRun;
444
444
  headers: Headers;
@@ -456,7 +456,7 @@ type GetLastTaskRunHttpError = {
456
456
  * @param runId The run's unique identifier.
457
457
  * @throws GetTaskRunLogHttpError
458
458
  */
459
- declare const getTaskRunLog: (id: string, runId: string, options?: ApiCallOptions) => Promise<GetTaskRunLogHttpResponse>;
459
+ declare function getTaskRunLog(id: string, runId: string, options?: ApiCallOptions): Promise<GetTaskRunLogHttpResponse>;
460
460
  type GetTaskRunLogHttpResponse = {
461
461
  data: {
462
462
  /** Log content in plain text format */
package/tasks.js CHANGED
@@ -1,78 +1,98 @@
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/tasks.ts
9
- var getTasks = async (query, options) => invokeFetch("tasks", {
10
- method: "get",
11
- pathTemplate: "/api/v1/tasks",
12
- query,
13
- options
14
- });
15
- var createTask = async (query, body, options) => invokeFetch("tasks", {
16
- method: "post",
17
- pathTemplate: "/api/v1/tasks",
18
- query,
19
- body,
20
- contentType: "application/json",
21
- options
22
- });
23
- var getTasksResourceRuns = async (id, query, options) => invokeFetch("tasks", {
24
- method: "get",
25
- pathTemplate: "/api/v1/tasks/resources/{id}/runs",
26
- pathVariables: { id },
27
- query,
28
- options
29
- });
30
- var deleteTask = async (id, options) => invokeFetch("tasks", {
31
- method: "delete",
32
- pathTemplate: "/api/v1/tasks/{id}",
33
- pathVariables: { id },
34
- options
35
- });
36
- var getTask = async (id, options) => invokeFetch("tasks", {
37
- method: "get",
38
- pathTemplate: "/api/v1/tasks/{id}",
39
- pathVariables: { id },
40
- options
41
- });
42
- var updateTask = async (id, body, options) => invokeFetch("tasks", {
43
- method: "put",
44
- pathTemplate: "/api/v1/tasks/{id}",
45
- pathVariables: { id },
46
- body,
47
- contentType: "application/json",
48
- options
49
- });
50
- var startTask = async (id, query, options) => invokeFetch("tasks", {
51
- method: "post",
52
- pathTemplate: "/api/v1/tasks/{id}/actions/start",
53
- pathVariables: { id },
54
- query,
55
- options
56
- });
57
- var getTaskRuns = async (id, query, options) => invokeFetch("tasks", {
58
- method: "get",
59
- pathTemplate: "/api/v1/tasks/{id}/runs",
60
- pathVariables: { id },
61
- query,
62
- options
63
- });
64
- var getLastTaskRun = async (id, options) => invokeFetch("tasks", {
65
- method: "get",
66
- pathTemplate: "/api/v1/tasks/{id}/runs/last",
67
- pathVariables: { id },
68
- options
69
- });
70
- var getTaskRunLog = async (id, runId, options) => invokeFetch("tasks", {
71
- method: "get",
72
- pathTemplate: "/api/v1/tasks/{id}/runs/{runId}/log",
73
- pathVariables: { id, runId },
74
- options
75
- });
9
+ async function getTasks(query, options) {
10
+ return invokeFetch("tasks", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/tasks",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function createTask(query, body, options) {
18
+ return invokeFetch("tasks", {
19
+ method: "post",
20
+ pathTemplate: "/api/v1/tasks",
21
+ query,
22
+ body,
23
+ contentType: "application/json",
24
+ options
25
+ });
26
+ }
27
+ async function getTasksResourceRuns(id, query, options) {
28
+ return invokeFetch("tasks", {
29
+ method: "get",
30
+ pathTemplate: "/api/v1/tasks/resources/{id}/runs",
31
+ pathVariables: { id },
32
+ query,
33
+ options
34
+ });
35
+ }
36
+ async function deleteTask(id, options) {
37
+ return invokeFetch("tasks", {
38
+ method: "delete",
39
+ pathTemplate: "/api/v1/tasks/{id}",
40
+ pathVariables: { id },
41
+ options
42
+ });
43
+ }
44
+ async function getTask(id, options) {
45
+ return invokeFetch("tasks", {
46
+ method: "get",
47
+ pathTemplate: "/api/v1/tasks/{id}",
48
+ pathVariables: { id },
49
+ options
50
+ });
51
+ }
52
+ async function updateTask(id, body, options) {
53
+ return invokeFetch("tasks", {
54
+ method: "put",
55
+ pathTemplate: "/api/v1/tasks/{id}",
56
+ pathVariables: { id },
57
+ body,
58
+ contentType: "application/json",
59
+ options
60
+ });
61
+ }
62
+ async function startTask(id, query, options) {
63
+ return invokeFetch("tasks", {
64
+ method: "post",
65
+ pathTemplate: "/api/v1/tasks/{id}/actions/start",
66
+ pathVariables: { id },
67
+ query,
68
+ options
69
+ });
70
+ }
71
+ async function getTaskRuns(id, query, options) {
72
+ return invokeFetch("tasks", {
73
+ method: "get",
74
+ pathTemplate: "/api/v1/tasks/{id}/runs",
75
+ pathVariables: { id },
76
+ query,
77
+ options
78
+ });
79
+ }
80
+ async function getLastTaskRun(id, options) {
81
+ return invokeFetch("tasks", {
82
+ method: "get",
83
+ pathTemplate: "/api/v1/tasks/{id}/runs/last",
84
+ pathVariables: { id },
85
+ options
86
+ });
87
+ }
88
+ async function getTaskRunLog(id, runId, options) {
89
+ return invokeFetch("tasks", {
90
+ method: "get",
91
+ pathTemplate: "/api/v1/tasks/{id}/runs/{runId}/log",
92
+ pathVariables: { id, runId },
93
+ options
94
+ });
95
+ }
76
96
  function clearCache() {
77
97
  return clearApiCache("tasks");
78
98
  }
@@ -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
  * An Error object.
@@ -54,13 +54,13 @@ type DetailResponse = {
54
54
  * @param body an object with the body content
55
55
  * @throws UploadTempFileHttpError
56
56
  */
57
- declare const uploadTempFile: (query: {
57
+ declare function uploadTempFile(query: {
58
58
  /** The name of the file to upload. */
59
59
  filename?: string;
60
60
  /** The TTL parameter is used to define the time-to-live for the content resource in seconds.
61
61
  * It defaults to one hour (3600) if no input is provided. Max TTL is 259200 (3 days).' */
62
62
  ttl?: number;
63
- }, body: BodyInit, options?: ApiCallOptions) => Promise<UploadTempFileHttpResponse>;
63
+ }, body: BodyInit, options?: ApiCallOptions): Promise<UploadTempFileHttpResponse>;
64
64
  type UploadTempFileHttpResponse = {
65
65
  data: void;
66
66
  headers: Headers;
@@ -78,10 +78,10 @@ type UploadTempFileHttpError = {
78
78
  * @param query an object with query parameters
79
79
  * @throws DownloadTempFileHttpError
80
80
  */
81
- declare const downloadTempFile: (id: string, query: {
81
+ declare function downloadTempFile(id: string, query: {
82
82
  /** Set to "1" to download the file in inline mode. Useful for displaying a preview of the file in a browser. */
83
83
  inline?: string;
84
- }, options?: ApiCallOptions) => Promise<DownloadTempFileHttpResponse>;
84
+ }, options?: ApiCallOptions): Promise<DownloadTempFileHttpResponse>;
85
85
  type DownloadTempFileHttpResponse = DownloadTempFile200HttpResponse | DownloadTempFile204HttpResponse | DownloadTempFile206HttpResponse;
86
86
  type DownloadTempFile200HttpResponse = {
87
87
  data: unknown;
@@ -109,7 +109,7 @@ type DownloadTempFileHttpError = {
109
109
  * @param id The temporary contents ID.
110
110
  * @throws GetTempFileDetailsHttpError
111
111
  */
112
- declare const getTempFileDetails: (id: string, options?: ApiCallOptions) => Promise<GetTempFileDetailsHttpResponse>;
112
+ declare function getTempFileDetails(id: string, options?: ApiCallOptions): Promise<GetTempFileDetailsHttpResponse>;
113
113
  type GetTempFileDetailsHttpResponse = GetTempFileDetails200HttpResponse | GetTempFileDetails204HttpResponse;
114
114
  type GetTempFileDetails200HttpResponse = {
115
115
  data: DetailResponse;
package/temp-contents.js CHANGED
@@ -1,32 +1,38 @@
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/temp-contents.ts
9
- var uploadTempFile = async (query, body, options) => invokeFetch("temp-contents", {
10
- method: "post",
11
- pathTemplate: "/api/v1/temp-contents",
12
- query,
13
- body,
14
- contentType: "application/octet-stream",
15
- options
16
- });
17
- var downloadTempFile = async (id, query, options) => invokeFetch("temp-contents", {
18
- method: "get",
19
- pathTemplate: "/api/v1/temp-contents/{id}",
20
- pathVariables: { id },
21
- query,
22
- options
23
- });
24
- var getTempFileDetails = async (id, options) => invokeFetch("temp-contents", {
25
- method: "get",
26
- pathTemplate: "/api/v1/temp-contents/{id}/details",
27
- pathVariables: { id },
28
- options
29
- });
9
+ async function uploadTempFile(query, body, options) {
10
+ return invokeFetch("temp-contents", {
11
+ method: "post",
12
+ pathTemplate: "/api/v1/temp-contents",
13
+ query,
14
+ body,
15
+ contentType: "application/octet-stream",
16
+ options
17
+ });
18
+ }
19
+ async function downloadTempFile(id, query, options) {
20
+ return invokeFetch("temp-contents", {
21
+ method: "get",
22
+ pathTemplate: "/api/v1/temp-contents/{id}",
23
+ pathVariables: { id },
24
+ query,
25
+ options
26
+ });
27
+ }
28
+ async function getTempFileDetails(id, options) {
29
+ return invokeFetch("temp-contents", {
30
+ method: "get",
31
+ pathTemplate: "/api/v1/temp-contents/{id}/details",
32
+ pathVariables: { id },
33
+ options
34
+ });
35
+ }
30
36
  function clearCache() {
31
37
  return clearApiCache("temp-contents");
32
38
  }
package/tenants.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
  * An error object describing the error.
@@ -176,7 +176,7 @@ type TenantPatchSchema = {
176
176
  * @param body an object with the body content
177
177
  * @throws CreateTenantHttpError
178
178
  */
179
- declare const createTenant: (body: TenantCreationRequest, options?: ApiCallOptions) => Promise<CreateTenantHttpResponse>;
179
+ declare function createTenant(body: TenantCreationRequest, options?: ApiCallOptions): Promise<CreateTenantHttpResponse>;
180
180
  type CreateTenantHttpResponse = {
181
181
  data: Tenant;
182
182
  headers: Headers;
@@ -192,7 +192,7 @@ type CreateTenantHttpError = {
192
192
  *
193
193
  * @throws GetMyTenantHttpError
194
194
  */
195
- declare const getMyTenant: (options?: ApiCallOptions) => Promise<GetMyTenantHttpResponse>;
195
+ declare function getMyTenant(options?: ApiCallOptions): Promise<GetMyTenantHttpResponse>;
196
196
  type GetMyTenantHttpResponse = {
197
197
  data: Tenant;
198
198
  headers: Headers;
@@ -209,7 +209,7 @@ type GetMyTenantHttpError = {
209
209
  * @param tenantId The ID of the tenant to retrieve
210
210
  * @throws GetTenantHttpError
211
211
  */
212
- declare const getTenant: (tenantId: string, options?: ApiCallOptions) => Promise<GetTenantHttpResponse>;
212
+ declare function getTenant(tenantId: string, options?: ApiCallOptions): Promise<GetTenantHttpResponse>;
213
213
  type GetTenantHttpResponse = {
214
214
  data: Tenant;
215
215
  headers: Headers;
@@ -227,7 +227,7 @@ type GetTenantHttpError = {
227
227
  * @param body an object with the body content
228
228
  * @throws PatchTenantHttpError
229
229
  */
230
- declare const patchTenant: (tenantId: string, body: TenantPatchSchema, options?: ApiCallOptions) => Promise<PatchTenantHttpResponse>;
230
+ declare function patchTenant(tenantId: string, body: TenantPatchSchema, options?: ApiCallOptions): Promise<PatchTenantHttpResponse>;
231
231
  type PatchTenantHttpResponse = {
232
232
  data: void;
233
233
  headers: Headers;
@@ -266,7 +266,7 @@ type PatchTenantdefaultHttpError = {
266
266
  * @param body an object with the body content
267
267
  * @throws DeactivateTenantHttpError
268
268
  */
269
- declare const deactivateTenant: (tenantId: string, body: TenantDeactivateRequest, options?: ApiCallOptions) => Promise<DeactivateTenantHttpResponse>;
269
+ declare function deactivateTenant(tenantId: string, body: TenantDeactivateRequest, options?: ApiCallOptions): Promise<DeactivateTenantHttpResponse>;
270
270
  type DeactivateTenantHttpResponse = {
271
271
  data: TenantDeactivateResponse;
272
272
  headers: Headers;
@@ -284,7 +284,7 @@ type DeactivateTenantHttpError = {
284
284
  * @param body an object with the body content
285
285
  * @throws ReactivateTenantHttpError
286
286
  */
287
- declare const reactivateTenant: (tenantId: string, body: unknown, options?: ApiCallOptions) => Promise<ReactivateTenantHttpResponse>;
287
+ declare function reactivateTenant(tenantId: string, body: unknown, options?: ApiCallOptions): Promise<ReactivateTenantHttpResponse>;
288
288
  type ReactivateTenantHttpResponse = {
289
289
  data: unknown;
290
290
  headers: Headers;
package/tenants.js CHANGED
@@ -1,53 +1,65 @@
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/tenants.ts
9
- var createTenant = async (body, options) => invokeFetch("tenants", {
10
- method: "post",
11
- pathTemplate: "/api/v1/tenants",
12
- body,
13
- contentType: "application/json",
14
- options
15
- });
16
- var getMyTenant = async (options) => invokeFetch("tenants", {
17
- method: "get",
18
- pathTemplate: "/api/v1/tenants/me",
19
- options
20
- });
21
- var getTenant = async (tenantId, options) => invokeFetch("tenants", {
22
- method: "get",
23
- pathTemplate: "/api/v1/tenants/{tenantId}",
24
- pathVariables: { tenantId },
25
- options
26
- });
27
- var patchTenant = async (tenantId, body, options) => invokeFetch("tenants", {
28
- method: "patch",
29
- pathTemplate: "/api/v1/tenants/{tenantId}",
30
- pathVariables: { tenantId },
31
- body,
32
- contentType: "application/json",
33
- options
34
- });
35
- var deactivateTenant = async (tenantId, body, options) => invokeFetch("tenants", {
36
- method: "post",
37
- pathTemplate: "/api/v1/tenants/{tenantId}/actions/deactivate",
38
- pathVariables: { tenantId },
39
- body,
40
- contentType: "application/json",
41
- options
42
- });
43
- var reactivateTenant = async (tenantId, body, options) => invokeFetch("tenants", {
44
- method: "post",
45
- pathTemplate: "/api/v1/tenants/{tenantId}/actions/reactivate",
46
- pathVariables: { tenantId },
47
- body,
48
- contentType: "application/json",
49
- options
50
- });
9
+ async function createTenant(body, options) {
10
+ return invokeFetch("tenants", {
11
+ method: "post",
12
+ pathTemplate: "/api/v1/tenants",
13
+ body,
14
+ contentType: "application/json",
15
+ options
16
+ });
17
+ }
18
+ async function getMyTenant(options) {
19
+ return invokeFetch("tenants", {
20
+ method: "get",
21
+ pathTemplate: "/api/v1/tenants/me",
22
+ options
23
+ });
24
+ }
25
+ async function getTenant(tenantId, options) {
26
+ return invokeFetch("tenants", {
27
+ method: "get",
28
+ pathTemplate: "/api/v1/tenants/{tenantId}",
29
+ pathVariables: { tenantId },
30
+ options
31
+ });
32
+ }
33
+ async function patchTenant(tenantId, body, options) {
34
+ return invokeFetch("tenants", {
35
+ method: "patch",
36
+ pathTemplate: "/api/v1/tenants/{tenantId}",
37
+ pathVariables: { tenantId },
38
+ body,
39
+ contentType: "application/json",
40
+ options
41
+ });
42
+ }
43
+ async function deactivateTenant(tenantId, body, options) {
44
+ return invokeFetch("tenants", {
45
+ method: "post",
46
+ pathTemplate: "/api/v1/tenants/{tenantId}/actions/deactivate",
47
+ pathVariables: { tenantId },
48
+ body,
49
+ contentType: "application/json",
50
+ options
51
+ });
52
+ }
53
+ async function reactivateTenant(tenantId, body, options) {
54
+ return invokeFetch("tenants", {
55
+ method: "post",
56
+ pathTemplate: "/api/v1/tenants/{tenantId}/actions/reactivate",
57
+ pathVariables: { tenantId },
58
+ body,
59
+ contentType: "application/json",
60
+ options
61
+ });
62
+ }
51
63
  function clearCache() {
52
64
  return clearApiCache("tenants");
53
65
  }
package/themes.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
  * An error object.
@@ -75,7 +75,7 @@ type Themes = {
75
75
  *
76
76
  * @throws GetThemesHttpError
77
77
  */
78
- declare const getThemes: (options?: ApiCallOptions) => Promise<GetThemesHttpResponse>;
78
+ declare function getThemes(options?: ApiCallOptions): Promise<GetThemesHttpResponse>;
79
79
  type GetThemesHttpResponse = {
80
80
  data: Themes;
81
81
  headers: Headers;
@@ -92,12 +92,12 @@ type GetThemesHttpError = {
92
92
  * @param body an object with the body content
93
93
  * @throws UploadThemeHttpError
94
94
  */
95
- declare const uploadTheme: (body: {
95
+ declare function uploadTheme(body: {
96
96
  /** The theme model. */
97
97
  data?: Theme;
98
98
  /** Theme archive. */
99
99
  file?: BodyInit;
100
- }, options?: ApiCallOptions) => Promise<UploadThemeHttpResponse>;
100
+ }, options?: ApiCallOptions): Promise<UploadThemeHttpResponse>;
101
101
  type UploadThemeHttpResponse = {
102
102
  data: Theme;
103
103
  headers: Headers;
@@ -114,7 +114,7 @@ type UploadThemeHttpError = {
114
114
  * @param id Theme identifier or its qextFilename.
115
115
  * @throws DeleteThemeHttpError
116
116
  */
117
- declare const deleteTheme: (id: string, options?: ApiCallOptions) => Promise<DeleteThemeHttpResponse>;
117
+ declare function deleteTheme(id: string, options?: ApiCallOptions): Promise<DeleteThemeHttpResponse>;
118
118
  type DeleteThemeHttpResponse = {
119
119
  data: void;
120
120
  headers: Headers;
@@ -131,7 +131,7 @@ type DeleteThemeHttpError = {
131
131
  * @param id Theme identifier or its qextFilename
132
132
  * @throws GetThemeHttpError
133
133
  */
134
- declare const getTheme: (id: string, options?: ApiCallOptions) => Promise<GetThemeHttpResponse>;
134
+ declare function getTheme(id: string, options?: ApiCallOptions): Promise<GetThemeHttpResponse>;
135
135
  type GetThemeHttpResponse = {
136
136
  data: Theme;
137
137
  headers: Headers;
@@ -149,12 +149,12 @@ type GetThemeHttpError = {
149
149
  * @param body an object with the body content
150
150
  * @throws PatchThemeHttpError
151
151
  */
152
- declare const patchTheme: (id: string, body: {
152
+ declare function patchTheme(id: string, body: {
153
153
  /** The theme model. */
154
154
  data?: Theme;
155
155
  /** Theme archive. */
156
156
  file?: BodyInit;
157
- }, options?: ApiCallOptions) => Promise<PatchThemeHttpResponse>;
157
+ }, options?: ApiCallOptions): Promise<PatchThemeHttpResponse>;
158
158
  type PatchThemeHttpResponse = {
159
159
  data: Themes;
160
160
  headers: Headers;
@@ -171,7 +171,7 @@ type PatchThemeHttpError = {
171
171
  * @param id Theme identifier or its qextFilename
172
172
  * @throws DownloadThemeHttpError
173
173
  */
174
- declare const downloadTheme: (id: string, options?: ApiCallOptions) => Promise<DownloadThemeHttpResponse>;
174
+ declare function downloadTheme(id: string, options?: ApiCallOptions): Promise<DownloadThemeHttpResponse>;
175
175
  type DownloadThemeHttpResponse = {
176
176
  data: void;
177
177
  headers: Headers;
@@ -189,7 +189,7 @@ type DownloadThemeHttpError = {
189
189
  * @param filepath Path to the file location within the specified theme archive. Folders separated with forward slashes.
190
190
  * @throws DownloadFileFromThemeHttpError
191
191
  */
192
- declare const downloadFileFromTheme: (id: string, filepath: string, options?: ApiCallOptions) => Promise<DownloadFileFromThemeHttpResponse>;
192
+ declare function downloadFileFromTheme(id: string, filepath: string, options?: ApiCallOptions): Promise<DownloadFileFromThemeHttpResponse>;
193
193
  type DownloadFileFromThemeHttpResponse = {
194
194
  data: void;
195
195
  headers: Headers;