@qlik/api 1.31.0 → 1.33.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 +10 -10
  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 +1301 -0
  6. package/assistants.js +329 -0
  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 +366 -0
  13. package/automation-connections.js +107 -0
  14. package/automations.d.ts +27 -27
  15. package/automations.js +159 -123
  16. package/automl-deployments.d.ts +97 -0
  17. package/automl-deployments.js +29 -0
  18. package/automl-predictions.d.ts +214 -0
  19. package/automl-predictions.js +84 -0
  20. package/brands.d.ts +18 -18
  21. package/brands.js +107 -83
  22. package/chunks/{KBSD75QL.js → 33GQY7N7.js} +1 -1
  23. package/chunks/{M64RLKVG.js → 62DXIH3S.js} +7 -5
  24. package/chunks/7MMXU6EL.js +86 -0
  25. package/chunks/{DLKLPD7T.js → GPRUNZV4.js} +3 -3
  26. package/chunks/{YKZ2QYHN.js → LIEZG7IM.js} +3 -3
  27. package/chunks/{FKDGGR2O.js → OTIO4SEJ.js} +698 -708
  28. package/chunks/{UZTIZ4H5.js → RP3EJGHG.js} +74 -74
  29. package/chunks/{GUU3KZGK.js → SPATCXXU.js} +9 -2
  30. package/chunks/{LY7RP2HA.js → XF3TPZKZ.js} +23 -8
  31. package/chunks/{6ZONDHRN.js → YYZCS5PW.js} +11 -4
  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 +662 -0
  36. package/conditions.js +135 -0
  37. package/consumption.d.ts +182 -0
  38. package/consumption.js +26 -0
  39. package/csp-origins.d.ts +9 -9
  40. package/csp-origins.js +53 -41
  41. package/csrf-token.d.ts +62 -0
  42. package/csrf-token.js +25 -0
  43. package/data-alerts.d.ts +1004 -0
  44. package/data-alerts.js +187 -0
  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 +175 -0
  54. package/data-qualities.js +50 -0
  55. package/data-sets.d.ts +424 -0
  56. package/data-sets.js +87 -0
  57. package/data-sources.d.ts +268 -0
  58. package/data-sources.js +45 -0
  59. package/data-stores.d.ts +537 -0
  60. package/data-stores.js +128 -0
  61. package/dcaas.d.ts +192 -0
  62. package/dcaas.js +45 -0
  63. package/di-projects.d.ts +673 -0
  64. package/di-projects.js +196 -0
  65. package/direct-access-agents.d.ts +328 -0
  66. package/direct-access-agents.js +108 -0
  67. package/encryption.d.ts +370 -0
  68. package/encryption.js +118 -0
  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 +113 -4
  78. package/index.js +626 -40
  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 +890 -0
  85. package/knowledgebases.js +203 -0
  86. package/licenses.d.ts +14 -14
  87. package/licenses.js +76 -58
  88. package/lineage-graphs.d.ts +712 -0
  89. package/lineage-graphs.js +108 -0
  90. package/ml.d.ts +2676 -0
  91. package/ml.js +477 -0
  92. package/notes.d.ts +110 -0
  93. package/notes.js +35 -0
  94. package/notifications.d.ts +98 -0
  95. package/notifications.js +26 -0
  96. package/oauth-clients.d.ts +14 -14
  97. package/oauth-clients.js +96 -74
  98. package/oauth-tokens.d.ts +126 -0
  99. package/oauth-tokens.js +35 -0
  100. package/package.json +34 -6
  101. package/qix.d.ts +145 -4
  102. package/qix.js +2 -2
  103. package/questions.d.ts +364 -0
  104. package/questions.js +38 -0
  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 +287 -0
  112. package/report-templates.js +94 -0
  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 +952 -0
  118. package/sharing-tasks.js +125 -0
  119. package/spaces.d.ts +22 -22
  120. package/spaces.js +153 -119
  121. package/tasks.d.ts +564 -0
  122. package/tasks.js +126 -0
  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 +274 -0
  132. package/ui-config.js +91 -0
  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/ui-config.d.ts ADDED
@@ -0,0 +1,274 @@
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
+
4
+ type BulkCreatePinnedLinkItemPayload = CreatePinnedLinkConfigPayload & {
5
+ links: CreatePinnedLinkPayload[];
6
+ };
7
+ type CreatePinnedLinkConfigPayload = {
8
+ /** Specifies the scope of the link. Only supports `tenant`. */
9
+ scope: "tenant";
10
+ /** Specifies the type of the link. Only supports `custom-link`. */
11
+ type: "custom-link";
12
+ };
13
+ type CreatePinnedLinkPayload = {
14
+ /** The URL the user will be taken to when they click on the custom link. Must be https. */
15
+ link: string;
16
+ /** The title of the link, which will be shown in the navigation bar. Max length 50 characters. */
17
+ name: string;
18
+ };
19
+ type Error = {
20
+ /** Error code. */
21
+ readonly code?: number;
22
+ /** Error cause. */
23
+ readonly message?: string;
24
+ };
25
+ type ErrorResponse403 = {
26
+ errors?: {
27
+ code?: string;
28
+ detail?: string;
29
+ title?: string;
30
+ }[];
31
+ traceId?: string;
32
+ };
33
+ type JSONPatchPinnedLinkPayload = {
34
+ op: "replace";
35
+ path: "/name" | "/link";
36
+ /** The value to be used for this operation. */
37
+ value: string;
38
+ }[];
39
+ type PinnedLink = {
40
+ /** Date string */
41
+ createdAt: string;
42
+ createdBy: string;
43
+ id: string;
44
+ link: string;
45
+ name: string;
46
+ scope: "user" | "tenant";
47
+ tenantId: string;
48
+ type: "custom-link";
49
+ /** Date string */
50
+ updatedAt?: string;
51
+ updatedBy?: string;
52
+ };
53
+ /**
54
+ * Retrieves a list of all pinned links. All users can list pinned links. This endpoint does not support pagination as a tenant can have a maximum of 50 pinned links at one time.
55
+ *
56
+ * @throws GetUiConfigPinnedLinksHttpError
57
+ */
58
+ declare function getUiConfigPinnedLinks(options?: ApiCallOptions): Promise<GetUiConfigPinnedLinksHttpResponse>;
59
+ type GetUiConfigPinnedLinksHttpResponse = {
60
+ data: {
61
+ data?: PinnedLink[];
62
+ };
63
+ headers: Headers;
64
+ status: 200;
65
+ };
66
+ type GetUiConfigPinnedLinksHttpError = {
67
+ data: Error;
68
+ headers: Headers;
69
+ status: number;
70
+ };
71
+ /**
72
+ * Creates a pinned link, which will appear below any existing pinned links in the tenant. Requires calling user to be assigned the `TenantAdmin` role. A tenant can have a maximum of 50 pinned links.
73
+ *
74
+ * @param body an object with the body content
75
+ * @throws CreateUiConfigPinnedLinkHttpError
76
+ */
77
+ declare function createUiConfigPinnedLink(body: CreatePinnedLinkPayload & CreatePinnedLinkConfigPayload, options?: ApiCallOptions): Promise<CreateUiConfigPinnedLinkHttpResponse>;
78
+ type CreateUiConfigPinnedLinkHttpResponse = {
79
+ data: PinnedLink;
80
+ headers: Headers;
81
+ status: 201;
82
+ };
83
+ type CreateUiConfigPinnedLinkHttpError = CreateUiConfigPinnedLink403HttpError | CreateUiConfigPinnedLinkdefaultHttpError;
84
+ type CreateUiConfigPinnedLink403HttpError = {
85
+ data: ErrorResponse403;
86
+ headers: Headers;
87
+ status: 403;
88
+ };
89
+ type CreateUiConfigPinnedLinkdefaultHttpError = {
90
+ data: Error;
91
+ headers: Headers;
92
+ status: "default";
93
+ };
94
+ /**
95
+ * Creates one or more pinned links for navigation, an alternative method to multiple calls to `/ui-config/pinned-links`. Links are displayed below any existing pinned links, and will be added in the order sent in the request. Requires calling user to be assigned the `TenantAdmin` role. A tenant can have a maximum of 50 pinned links.
96
+ *
97
+ * @param body an object with the body content
98
+ * @throws CreateUiConfigPinnedLinksHttpError
99
+ */
100
+ declare function createUiConfigPinnedLinks(body: BulkCreatePinnedLinkItemPayload, options?: ApiCallOptions): Promise<CreateUiConfigPinnedLinksHttpResponse>;
101
+ type CreateUiConfigPinnedLinksHttpResponse = {
102
+ data: {
103
+ data?: PinnedLink[];
104
+ };
105
+ headers: Headers;
106
+ status: 200;
107
+ };
108
+ type CreateUiConfigPinnedLinksHttpError = CreateUiConfigPinnedLinks403HttpError | CreateUiConfigPinnedLinksdefaultHttpError;
109
+ type CreateUiConfigPinnedLinks403HttpError = {
110
+ data: ErrorResponse403;
111
+ headers: Headers;
112
+ status: 403;
113
+ };
114
+ type CreateUiConfigPinnedLinksdefaultHttpError = {
115
+ data: Error;
116
+ headers: Headers;
117
+ status: "default";
118
+ };
119
+ /**
120
+ * Deletes all pinned links in the tenant. Requires calling user to be assigned the `TenantAdmin` role.
121
+ *
122
+ * @throws DeleteAllUiConfigPinnedLinksHttpError
123
+ */
124
+ declare function deleteAllUiConfigPinnedLinks(options?: ApiCallOptions): Promise<DeleteAllUiConfigPinnedLinksHttpResponse>;
125
+ type DeleteAllUiConfigPinnedLinksHttpResponse = {
126
+ data: void;
127
+ headers: Headers;
128
+ status: 204;
129
+ };
130
+ type DeleteAllUiConfigPinnedLinksHttpError = DeleteAllUiConfigPinnedLinks403HttpError | DeleteAllUiConfigPinnedLinksdefaultHttpError;
131
+ type DeleteAllUiConfigPinnedLinks403HttpError = {
132
+ data: ErrorResponse403;
133
+ headers: Headers;
134
+ status: 403;
135
+ };
136
+ type DeleteAllUiConfigPinnedLinksdefaultHttpError = {
137
+ data: Error;
138
+ headers: Headers;
139
+ status: "default";
140
+ };
141
+ /**
142
+ * Deletes a specific pinned link. Requires calling user to be assigned the `TenantAdmin` role.
143
+ *
144
+ * @param id The pinned link identifier.
145
+ * @throws DeleteUiConfigPinnedLinkHttpError
146
+ */
147
+ declare function deleteUiConfigPinnedLink(id: string, options?: ApiCallOptions): Promise<DeleteUiConfigPinnedLinkHttpResponse>;
148
+ type DeleteUiConfigPinnedLinkHttpResponse = {
149
+ data: void;
150
+ headers: Headers;
151
+ status: 204;
152
+ };
153
+ type DeleteUiConfigPinnedLinkHttpError = DeleteUiConfigPinnedLink403HttpError | DeleteUiConfigPinnedLinkdefaultHttpError;
154
+ type DeleteUiConfigPinnedLink403HttpError = {
155
+ data: ErrorResponse403;
156
+ headers: Headers;
157
+ status: 403;
158
+ };
159
+ type DeleteUiConfigPinnedLinkdefaultHttpError = {
160
+ data: Error;
161
+ headers: Headers;
162
+ status: "default";
163
+ };
164
+ /**
165
+ * Retrieves a specific pinned link.
166
+ *
167
+ * @param id The pinned link identifier.
168
+ * @throws GetUiConfigPinnedLinkHttpError
169
+ */
170
+ declare function getUiConfigPinnedLink(id: string, options?: ApiCallOptions): Promise<GetUiConfigPinnedLinkHttpResponse>;
171
+ type GetUiConfigPinnedLinkHttpResponse = {
172
+ data: PinnedLink;
173
+ headers: Headers;
174
+ status: 200;
175
+ };
176
+ type GetUiConfigPinnedLinkHttpError = GetUiConfigPinnedLink403HttpError | GetUiConfigPinnedLinkdefaultHttpError;
177
+ type GetUiConfigPinnedLink403HttpError = {
178
+ data: ErrorResponse403;
179
+ headers: Headers;
180
+ status: 403;
181
+ };
182
+ type GetUiConfigPinnedLinkdefaultHttpError = {
183
+ data: Error;
184
+ headers: Headers;
185
+ status: "default";
186
+ };
187
+ /**
188
+ * Updates a specific pinned link with an array of JSON patches. Requires calling user to be assigned the `TenantAdmin` role.
189
+ *
190
+ * @param id The pinned link identifier.
191
+ * @param body an object with the body content
192
+ * @throws PatchUiConfigPinnedLinkHttpError
193
+ */
194
+ declare function patchUiConfigPinnedLink(id: string, body: JSONPatchPinnedLinkPayload, options?: ApiCallOptions): Promise<PatchUiConfigPinnedLinkHttpResponse>;
195
+ type PatchUiConfigPinnedLinkHttpResponse = {
196
+ data: PinnedLink;
197
+ headers: Headers;
198
+ status: 200;
199
+ };
200
+ type PatchUiConfigPinnedLinkHttpError = PatchUiConfigPinnedLink403HttpError | PatchUiConfigPinnedLinkdefaultHttpError;
201
+ type PatchUiConfigPinnedLink403HttpError = {
202
+ data: ErrorResponse403;
203
+ headers: Headers;
204
+ status: 403;
205
+ };
206
+ type PatchUiConfigPinnedLinkdefaultHttpError = {
207
+ data: Error;
208
+ headers: Headers;
209
+ status: "default";
210
+ };
211
+ /**
212
+ * Clears the cache for ui-config api requests.
213
+ */
214
+ declare function clearCache(): void;
215
+ interface UiConfigAPI {
216
+ /**
217
+ * Retrieves a list of all pinned links. All users can list pinned links. This endpoint does not support pagination as a tenant can have a maximum of 50 pinned links at one time.
218
+ *
219
+ * @throws GetUiConfigPinnedLinksHttpError
220
+ */
221
+ getUiConfigPinnedLinks: typeof getUiConfigPinnedLinks;
222
+ /**
223
+ * Creates a pinned link, which will appear below any existing pinned links in the tenant. Requires calling user to be assigned the `TenantAdmin` role. A tenant can have a maximum of 50 pinned links.
224
+ *
225
+ * @param body an object with the body content
226
+ * @throws CreateUiConfigPinnedLinkHttpError
227
+ */
228
+ createUiConfigPinnedLink: typeof createUiConfigPinnedLink;
229
+ /**
230
+ * Creates one or more pinned links for navigation, an alternative method to multiple calls to `/ui-config/pinned-links`. Links are displayed below any existing pinned links, and will be added in the order sent in the request. Requires calling user to be assigned the `TenantAdmin` role. A tenant can have a maximum of 50 pinned links.
231
+ *
232
+ * @param body an object with the body content
233
+ * @throws CreateUiConfigPinnedLinksHttpError
234
+ */
235
+ createUiConfigPinnedLinks: typeof createUiConfigPinnedLinks;
236
+ /**
237
+ * Deletes all pinned links in the tenant. Requires calling user to be assigned the `TenantAdmin` role.
238
+ *
239
+ * @throws DeleteAllUiConfigPinnedLinksHttpError
240
+ */
241
+ deleteAllUiConfigPinnedLinks: typeof deleteAllUiConfigPinnedLinks;
242
+ /**
243
+ * Deletes a specific pinned link. Requires calling user to be assigned the `TenantAdmin` role.
244
+ *
245
+ * @param id The pinned link identifier.
246
+ * @throws DeleteUiConfigPinnedLinkHttpError
247
+ */
248
+ deleteUiConfigPinnedLink: typeof deleteUiConfigPinnedLink;
249
+ /**
250
+ * Retrieves a specific pinned link.
251
+ *
252
+ * @param id The pinned link identifier.
253
+ * @throws GetUiConfigPinnedLinkHttpError
254
+ */
255
+ getUiConfigPinnedLink: typeof getUiConfigPinnedLink;
256
+ /**
257
+ * Updates a specific pinned link with an array of JSON patches. Requires calling user to be assigned the `TenantAdmin` role.
258
+ *
259
+ * @param id The pinned link identifier.
260
+ * @param body an object with the body content
261
+ * @throws PatchUiConfigPinnedLinkHttpError
262
+ */
263
+ patchUiConfigPinnedLink: typeof patchUiConfigPinnedLink;
264
+ /**
265
+ * Clears the cache for ui-config api requests.
266
+ */
267
+ clearCache: typeof clearCache;
268
+ }
269
+ /**
270
+ * Functions for the ui-config api
271
+ */
272
+ declare const uiConfigExport: UiConfigAPI;
273
+
274
+ export { type BulkCreatePinnedLinkItemPayload, type CreatePinnedLinkConfigPayload, type CreatePinnedLinkPayload, type CreateUiConfigPinnedLink403HttpError, type CreateUiConfigPinnedLinkHttpError, type CreateUiConfigPinnedLinkHttpResponse, type CreateUiConfigPinnedLinkdefaultHttpError, type CreateUiConfigPinnedLinks403HttpError, type CreateUiConfigPinnedLinksHttpError, type CreateUiConfigPinnedLinksHttpResponse, type CreateUiConfigPinnedLinksdefaultHttpError, type DeleteAllUiConfigPinnedLinks403HttpError, type DeleteAllUiConfigPinnedLinksHttpError, type DeleteAllUiConfigPinnedLinksHttpResponse, type DeleteAllUiConfigPinnedLinksdefaultHttpError, type DeleteUiConfigPinnedLink403HttpError, type DeleteUiConfigPinnedLinkHttpError, type DeleteUiConfigPinnedLinkHttpResponse, type DeleteUiConfigPinnedLinkdefaultHttpError, type Error, type ErrorResponse403, type GetUiConfigPinnedLink403HttpError, type GetUiConfigPinnedLinkHttpError, type GetUiConfigPinnedLinkHttpResponse, type GetUiConfigPinnedLinkdefaultHttpError, type GetUiConfigPinnedLinksHttpError, type GetUiConfigPinnedLinksHttpResponse, type JSONPatchPinnedLinkPayload, type PatchUiConfigPinnedLink403HttpError, type PatchUiConfigPinnedLinkHttpError, type PatchUiConfigPinnedLinkHttpResponse, type PatchUiConfigPinnedLinkdefaultHttpError, type PinnedLink, type UiConfigAPI, clearCache, createUiConfigPinnedLink, createUiConfigPinnedLinks, uiConfigExport as default, deleteAllUiConfigPinnedLinks, deleteUiConfigPinnedLink, getUiConfigPinnedLink, getUiConfigPinnedLinks, patchUiConfigPinnedLink };
package/ui-config.js ADDED
@@ -0,0 +1,91 @@
1
+ import {
2
+ clearApiCache,
3
+ invokeFetch
4
+ } from "./chunks/LIEZG7IM.js";
5
+ import "./chunks/GPRUNZV4.js";
6
+ import "./chunks/7MMXU6EL.js";
7
+
8
+ // src/public/rest/ui-config.ts
9
+ async function getUiConfigPinnedLinks(options) {
10
+ return invokeFetch("ui-config", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/ui-config/pinned-links",
13
+ options
14
+ });
15
+ }
16
+ async function createUiConfigPinnedLink(body, options) {
17
+ return invokeFetch("ui-config", {
18
+ method: "post",
19
+ pathTemplate: "/api/v1/ui-config/pinned-links",
20
+ body,
21
+ contentType: "application/json",
22
+ options
23
+ });
24
+ }
25
+ async function createUiConfigPinnedLinks(body, options) {
26
+ return invokeFetch("ui-config", {
27
+ method: "post",
28
+ pathTemplate: "/api/v1/ui-config/pinned-links/actions/bulk-create-pinned-links",
29
+ body,
30
+ contentType: "application/json",
31
+ options
32
+ });
33
+ }
34
+ async function deleteAllUiConfigPinnedLinks(options) {
35
+ return invokeFetch("ui-config", {
36
+ method: "post",
37
+ pathTemplate: "/api/v1/ui-config/pinned-links/actions/delete-all-pinned-links",
38
+ options
39
+ });
40
+ }
41
+ async function deleteUiConfigPinnedLink(id, options) {
42
+ return invokeFetch("ui-config", {
43
+ method: "delete",
44
+ pathTemplate: "/api/v1/ui-config/pinned-links/{id}",
45
+ pathVariables: { id },
46
+ options
47
+ });
48
+ }
49
+ async function getUiConfigPinnedLink(id, options) {
50
+ return invokeFetch("ui-config", {
51
+ method: "get",
52
+ pathTemplate: "/api/v1/ui-config/pinned-links/{id}",
53
+ pathVariables: { id },
54
+ options
55
+ });
56
+ }
57
+ async function patchUiConfigPinnedLink(id, body, options) {
58
+ return invokeFetch("ui-config", {
59
+ method: "patch",
60
+ pathTemplate: "/api/v1/ui-config/pinned-links/{id}",
61
+ pathVariables: { id },
62
+ body,
63
+ contentType: "application/json",
64
+ options
65
+ });
66
+ }
67
+ function clearCache() {
68
+ return clearApiCache("ui-config");
69
+ }
70
+ var uiConfigExport = {
71
+ getUiConfigPinnedLinks,
72
+ createUiConfigPinnedLink,
73
+ createUiConfigPinnedLinks,
74
+ deleteAllUiConfigPinnedLinks,
75
+ deleteUiConfigPinnedLink,
76
+ getUiConfigPinnedLink,
77
+ patchUiConfigPinnedLink,
78
+ clearCache
79
+ };
80
+ var ui_config_default = uiConfigExport;
81
+ export {
82
+ clearCache,
83
+ createUiConfigPinnedLink,
84
+ createUiConfigPinnedLinks,
85
+ ui_config_default as default,
86
+ deleteAllUiConfigPinnedLinks,
87
+ deleteUiConfigPinnedLink,
88
+ getUiConfigPinnedLink,
89
+ getUiConfigPinnedLinks,
90
+ patchUiConfigPinnedLink
91
+ };
package/users.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 array of group references.
@@ -365,7 +365,7 @@ type Users = {
365
365
  * @param query an object with query parameters
366
366
  * @throws GetUsersHttpError
367
367
  */
368
- declare const getUsers: (query: {
368
+ declare function getUsers(query: {
369
369
  /** @deprecated
370
370
  * The email to filter by. Deprecated. Use the new `filter` parameter to provide an advanced query filter. */
371
371
  email?: string;
@@ -435,7 +435,7 @@ declare const getUsers: (query: {
435
435
  tenantId?: string;
436
436
  /** Whether to return a total match count in the result. Defaults to false. It will trigger an extra DB query to count, reducing the efficiency of the endpoint. */
437
437
  totalResults?: boolean;
438
- }, options?: ApiCallOptions) => Promise<GetUsersHttpResponse>;
438
+ }, options?: ApiCallOptions): Promise<GetUsersHttpResponse>;
439
439
  type GetUsersHttpResponse = {
440
440
  data: Users;
441
441
  headers: Headers;
@@ -454,7 +454,7 @@ type GetUsersHttpError = {
454
454
  * @param body an object with the body content
455
455
  * @throws CreateUserHttpError
456
456
  */
457
- declare const createUser: (body: UserPostSchema, options?: ApiCallOptions) => Promise<CreateUserHttpResponse>;
457
+ declare function createUser(body: UserPostSchema, options?: ApiCallOptions): Promise<CreateUserHttpResponse>;
458
458
  type CreateUserHttpResponse = {
459
459
  data: User;
460
460
  headers: Headers;
@@ -471,11 +471,11 @@ type CreateUserHttpError = {
471
471
  * @param query an object with query parameters
472
472
  * @throws CountUsersHttpError
473
473
  */
474
- declare const countUsers: (query: {
474
+ declare function countUsers(query: {
475
475
  /** @deprecated
476
476
  * The tenant ID to filter by. */
477
477
  tenantId?: string;
478
- }, options?: ApiCallOptions) => Promise<CountUsersHttpResponse>;
478
+ }, options?: ApiCallOptions): Promise<CountUsersHttpResponse>;
479
479
  type CountUsersHttpResponse = {
480
480
  data: UserCount;
481
481
  headers: Headers;
@@ -493,7 +493,7 @@ type CountUsersHttpError = {
493
493
  * @param body an object with the body content
494
494
  * @throws FilterUsersHttpError
495
495
  */
496
- declare const filterUsers: (query: {
496
+ declare function filterUsers(query: {
497
497
  /** A comma-delimited string of the requested fields per entity. If the 'links' value is omitted, then the entity HATEOAS link will also be omitted. */
498
498
  fields?: string;
499
499
  /** The number of user entries to retrieve. */
@@ -504,7 +504,7 @@ declare const filterUsers: (query: {
504
504
  prev?: string;
505
505
  /** The field to sort by, with +/- prefix indicating sort order */
506
506
  sort?: "name" | "+name" | "-name";
507
- }, body: Filter, options?: ApiCallOptions) => Promise<FilterUsersHttpResponse>;
507
+ }, body: Filter, options?: ApiCallOptions): Promise<FilterUsersHttpResponse>;
508
508
  type FilterUsersHttpResponse = {
509
509
  data: Users;
510
510
  headers: Headers;
@@ -523,7 +523,7 @@ type FilterUsersHttpError = {
523
523
  * @param body an object with the body content
524
524
  * @throws InviteUsersHttpError
525
525
  */
526
- declare const inviteUsers: (body: InviteRequestData, options?: ApiCallOptions) => Promise<InviteUsersHttpResponse>;
526
+ declare function inviteUsers(body: InviteRequestData, options?: ApiCallOptions): Promise<InviteUsersHttpResponse>;
527
527
  type InviteUsersHttpResponse = {
528
528
  data: InviteDataResponse;
529
529
  headers: Headers;
@@ -539,7 +539,7 @@ type InviteUsersHttpError = {
539
539
  *
540
540
  * @throws GetMyUserHttpError
541
541
  */
542
- declare const getMyUser: (options?: ApiCallOptions) => Promise<GetMyUserHttpResponse>;
542
+ declare function getMyUser(options?: ApiCallOptions): Promise<GetMyUserHttpResponse>;
543
543
  type GetMyUserHttpResponse = {
544
544
  data: User;
545
545
  headers: Headers;
@@ -556,7 +556,7 @@ type GetMyUserHttpError = {
556
556
  * @param userId The ID of the user to delete.
557
557
  * @throws DeleteUserHttpError
558
558
  */
559
- declare const deleteUser: (userId: string, options?: ApiCallOptions) => Promise<DeleteUserHttpResponse>;
559
+ declare function deleteUser(userId: string, options?: ApiCallOptions): Promise<DeleteUserHttpResponse>;
560
560
  type DeleteUserHttpResponse = {
561
561
  data: void;
562
562
  headers: Headers;
@@ -574,10 +574,10 @@ type DeleteUserHttpError = {
574
574
  * @param query an object with query parameters
575
575
  * @throws GetUserHttpError
576
576
  */
577
- declare const getUser: (userId: string, query: {
577
+ declare function getUser(userId: string, query: {
578
578
  /** A comma-delimited string of the requested fields per entity. If the 'links' value is omitted, then the entity HATEOAS link will also be omitted. */
579
579
  fields?: string;
580
- }, options?: ApiCallOptions) => Promise<GetUserHttpResponse>;
580
+ }, options?: ApiCallOptions): Promise<GetUserHttpResponse>;
581
581
  type GetUserHttpResponse = {
582
582
  data: User & unknown;
583
583
  headers: Headers;
@@ -595,7 +595,7 @@ type GetUserHttpError = {
595
595
  * @param body an object with the body content
596
596
  * @throws PatchUserHttpError
597
597
  */
598
- declare const patchUser: (userId: string, body: JSONPatchArray, options?: ApiCallOptions) => Promise<PatchUserHttpResponse>;
598
+ declare function patchUser(userId: string, body: JSONPatchArray, options?: ApiCallOptions): Promise<PatchUserHttpResponse>;
599
599
  type PatchUserHttpResponse = PatchUser204HttpResponse | PatchUser207HttpResponse;
600
600
  type PatchUser204HttpResponse = {
601
601
  data: void;
package/users.js CHANGED
@@ -1,71 +1,89 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/YKZ2QYHN.js";
5
- import "./chunks/DLKLPD7T.js";
6
- import "./chunks/2ZQ3ZX7F.js";
4
+ } from "./chunks/LIEZG7IM.js";
5
+ import "./chunks/GPRUNZV4.js";
6
+ import "./chunks/7MMXU6EL.js";
7
7
 
8
8
  // src/public/rest/users.ts
9
- var getUsers = async (query, options) => invokeFetch("users", {
10
- method: "get",
11
- pathTemplate: "/api/v1/users",
12
- query,
13
- options
14
- });
15
- var createUser = async (body, options) => invokeFetch("users", {
16
- method: "post",
17
- pathTemplate: "/api/v1/users",
18
- body,
19
- contentType: "application/json",
20
- options
21
- });
22
- var countUsers = async (query, options) => invokeFetch("users", {
23
- method: "get",
24
- pathTemplate: "/api/v1/users/actions/count",
25
- query,
26
- options
27
- });
28
- var filterUsers = async (query, body, options) => invokeFetch("users", {
29
- method: "post",
30
- pathTemplate: "/api/v1/users/actions/filter",
31
- query,
32
- body,
33
- contentType: "application/json",
34
- options
35
- });
36
- var inviteUsers = async (body, options) => invokeFetch("users", {
37
- method: "post",
38
- pathTemplate: "/api/v1/users/actions/invite",
39
- body,
40
- contentType: "application/json",
41
- options
42
- });
43
- var getMyUser = async (options) => invokeFetch("users", {
44
- method: "get",
45
- pathTemplate: "/api/v1/users/me",
46
- options
47
- });
48
- var deleteUser = async (userId, options) => invokeFetch("users", {
49
- method: "delete",
50
- pathTemplate: "/api/v1/users/{userId}",
51
- pathVariables: { userId },
52
- options
53
- });
54
- var getUser = async (userId, query, options) => invokeFetch("users", {
55
- method: "get",
56
- pathTemplate: "/api/v1/users/{userId}",
57
- pathVariables: { userId },
58
- query,
59
- options
60
- });
61
- var patchUser = async (userId, body, options) => invokeFetch("users", {
62
- method: "patch",
63
- pathTemplate: "/api/v1/users/{userId}",
64
- pathVariables: { userId },
65
- body,
66
- contentType: "application/json",
67
- options
68
- });
9
+ async function getUsers(query, options) {
10
+ return invokeFetch("users", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/users",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function createUser(body, options) {
18
+ return invokeFetch("users", {
19
+ method: "post",
20
+ pathTemplate: "/api/v1/users",
21
+ body,
22
+ contentType: "application/json",
23
+ options
24
+ });
25
+ }
26
+ async function countUsers(query, options) {
27
+ return invokeFetch("users", {
28
+ method: "get",
29
+ pathTemplate: "/api/v1/users/actions/count",
30
+ query,
31
+ options
32
+ });
33
+ }
34
+ async function filterUsers(query, body, options) {
35
+ return invokeFetch("users", {
36
+ method: "post",
37
+ pathTemplate: "/api/v1/users/actions/filter",
38
+ query,
39
+ body,
40
+ contentType: "application/json",
41
+ options
42
+ });
43
+ }
44
+ async function inviteUsers(body, options) {
45
+ return invokeFetch("users", {
46
+ method: "post",
47
+ pathTemplate: "/api/v1/users/actions/invite",
48
+ body,
49
+ contentType: "application/json",
50
+ options
51
+ });
52
+ }
53
+ async function getMyUser(options) {
54
+ return invokeFetch("users", {
55
+ method: "get",
56
+ pathTemplate: "/api/v1/users/me",
57
+ options
58
+ });
59
+ }
60
+ async function deleteUser(userId, options) {
61
+ return invokeFetch("users", {
62
+ method: "delete",
63
+ pathTemplate: "/api/v1/users/{userId}",
64
+ pathVariables: { userId },
65
+ options
66
+ });
67
+ }
68
+ async function getUser(userId, query, options) {
69
+ return invokeFetch("users", {
70
+ method: "get",
71
+ pathTemplate: "/api/v1/users/{userId}",
72
+ pathVariables: { userId },
73
+ query,
74
+ options
75
+ });
76
+ }
77
+ async function patchUser(userId, body, options) {
78
+ return invokeFetch("users", {
79
+ method: "patch",
80
+ pathTemplate: "/api/v1/users/{userId}",
81
+ pathVariables: { userId },
82
+ body,
83
+ contentType: "application/json",
84
+ options
85
+ });
86
+ }
69
87
  function clearCache() {
70
88
  return clearApiCache("users");
71
89
  }