@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/glossaries.js CHANGED
@@ -1,181 +1,229 @@
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/glossaries.ts
9
- var getGlossaries = async (query, options) => invokeFetch("glossaries", {
10
- method: "get",
11
- pathTemplate: "/api/v1/glossaries",
12
- query,
13
- options
14
- });
15
- var createGlossary = async (body, options) => invokeFetch("glossaries", {
16
- method: "post",
17
- pathTemplate: "/api/v1/glossaries",
18
- body,
19
- contentType: "application/json",
20
- options
21
- });
22
- var importGlossary = async (query, body, options) => invokeFetch("glossaries", {
23
- method: "post",
24
- pathTemplate: "/api/v1/glossaries/actions/import",
25
- query,
26
- body,
27
- contentType: "application/json",
28
- options
29
- });
30
- var deleteGlossary = async (id, options) => invokeFetch("glossaries", {
31
- method: "delete",
32
- pathTemplate: "/api/v1/glossaries/{id}",
33
- pathVariables: { id },
34
- options
35
- });
36
- var getGlossary = async (id, options) => invokeFetch("glossaries", {
37
- method: "get",
38
- pathTemplate: "/api/v1/glossaries/{id}",
39
- pathVariables: { id },
40
- options
41
- });
42
- var patchGlossary = async (id, body, options) => invokeFetch("glossaries", {
43
- method: "patch",
44
- pathTemplate: "/api/v1/glossaries/{id}",
45
- pathVariables: { id },
46
- body,
47
- contentType: "application/json",
48
- options
49
- });
50
- var updateGlossary = async (id, body, options) => invokeFetch("glossaries", {
51
- method: "put",
52
- pathTemplate: "/api/v1/glossaries/{id}",
53
- pathVariables: { id },
54
- body,
55
- contentType: "application/json",
56
- options
57
- });
58
- var exportGlossary = async (id, options) => invokeFetch("glossaries", {
59
- method: "get",
60
- pathTemplate: "/api/v1/glossaries/{id}/actions/export",
61
- pathVariables: { id },
62
- options
63
- });
64
- var getGlossaryCategories = async (id, query, options) => invokeFetch("glossaries", {
65
- method: "get",
66
- pathTemplate: "/api/v1/glossaries/{id}/categories",
67
- pathVariables: { id },
68
- query,
69
- options
70
- });
71
- var createGlossaryCategory = async (id, body, options) => invokeFetch("glossaries", {
72
- method: "post",
73
- pathTemplate: "/api/v1/glossaries/{id}/categories",
74
- pathVariables: { id },
75
- body,
76
- contentType: "application/json",
77
- options
78
- });
79
- var deleteGlossaryCategory = async (id, categoryId, options) => invokeFetch("glossaries", {
80
- method: "delete",
81
- pathTemplate: "/api/v1/glossaries/{id}/categories/{categoryId}",
82
- pathVariables: { id, categoryId },
83
- options
84
- });
85
- var getGlossaryCategory = async (id, categoryId, options) => invokeFetch("glossaries", {
86
- method: "get",
87
- pathTemplate: "/api/v1/glossaries/{id}/categories/{categoryId}",
88
- pathVariables: { id, categoryId },
89
- options
90
- });
91
- var patchGlossaryCategory = async (id, categoryId, body, options) => invokeFetch("glossaries", {
92
- method: "patch",
93
- pathTemplate: "/api/v1/glossaries/{id}/categories/{categoryId}",
94
- pathVariables: { id, categoryId },
95
- body,
96
- contentType: "application/json",
97
- options
98
- });
99
- var updateGlossaryCategory = async (id, categoryId, body, options) => invokeFetch("glossaries", {
100
- method: "put",
101
- pathTemplate: "/api/v1/glossaries/{id}/categories/{categoryId}",
102
- pathVariables: { id, categoryId },
103
- body,
104
- contentType: "application/json",
105
- options
106
- });
107
- var getGlossaryTerms = async (id, query, options) => invokeFetch("glossaries", {
108
- method: "get",
109
- pathTemplate: "/api/v1/glossaries/{id}/terms",
110
- pathVariables: { id },
111
- query,
112
- options
113
- });
114
- var createGlossaryTerm = async (id, body, options) => invokeFetch("glossaries", {
115
- method: "post",
116
- pathTemplate: "/api/v1/glossaries/{id}/terms",
117
- pathVariables: { id },
118
- body,
119
- contentType: "application/json",
120
- options
121
- });
122
- var deleteGlossaryTerm = async (id, termId, options) => invokeFetch("glossaries", {
123
- method: "delete",
124
- pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}",
125
- pathVariables: { id, termId },
126
- options
127
- });
128
- var getGlossaryTerm = async (id, termId, options) => invokeFetch("glossaries", {
129
- method: "get",
130
- pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}",
131
- pathVariables: { id, termId },
132
- options
133
- });
134
- var patchGlossaryTerm = async (id, termId, body, options) => invokeFetch("glossaries", {
135
- method: "patch",
136
- pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}",
137
- pathVariables: { id, termId },
138
- body,
139
- contentType: "application/json",
140
- options
141
- });
142
- var updateGlossaryTerm = async (id, termId, body, options) => invokeFetch("glossaries", {
143
- method: "put",
144
- pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}",
145
- pathVariables: { id, termId },
146
- body,
147
- contentType: "application/json",
148
- options
149
- });
150
- var changeGlossaryTermStatus = async (id, termId, query, options) => invokeFetch("glossaries", {
151
- method: "post",
152
- pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}/actions/change-status",
153
- pathVariables: { id, termId },
154
- query,
155
- options
156
- });
157
- var getGlossaryTermLinks = async (id, termId, query, options) => invokeFetch("glossaries", {
158
- method: "get",
159
- pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}/links",
160
- pathVariables: { id, termId },
161
- query,
162
- options
163
- });
164
- var createGlossaryTermLink = async (id, termId, body, options) => invokeFetch("glossaries", {
165
- method: "post",
166
- pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}/links",
167
- pathVariables: { id, termId },
168
- body,
169
- contentType: "application/json",
170
- options
171
- });
172
- var getGlossaryTermRevisions = async (id, termId, query, options) => invokeFetch("glossaries", {
173
- method: "get",
174
- pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}/revisions",
175
- pathVariables: { id, termId },
176
- query,
177
- options
178
- });
9
+ async function getGlossaries(query, options) {
10
+ return invokeFetch("glossaries", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/glossaries",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function createGlossary(body, options) {
18
+ return invokeFetch("glossaries", {
19
+ method: "post",
20
+ pathTemplate: "/api/v1/glossaries",
21
+ body,
22
+ contentType: "application/json",
23
+ options
24
+ });
25
+ }
26
+ async function importGlossary(query, body, options) {
27
+ return invokeFetch("glossaries", {
28
+ method: "post",
29
+ pathTemplate: "/api/v1/glossaries/actions/import",
30
+ query,
31
+ body,
32
+ contentType: "application/json",
33
+ options
34
+ });
35
+ }
36
+ async function deleteGlossary(id, options) {
37
+ return invokeFetch("glossaries", {
38
+ method: "delete",
39
+ pathTemplate: "/api/v1/glossaries/{id}",
40
+ pathVariables: { id },
41
+ options
42
+ });
43
+ }
44
+ async function getGlossary(id, options) {
45
+ return invokeFetch("glossaries", {
46
+ method: "get",
47
+ pathTemplate: "/api/v1/glossaries/{id}",
48
+ pathVariables: { id },
49
+ options
50
+ });
51
+ }
52
+ async function patchGlossary(id, body, options) {
53
+ return invokeFetch("glossaries", {
54
+ method: "patch",
55
+ pathTemplate: "/api/v1/glossaries/{id}",
56
+ pathVariables: { id },
57
+ body,
58
+ contentType: "application/json",
59
+ options
60
+ });
61
+ }
62
+ async function updateGlossary(id, body, options) {
63
+ return invokeFetch("glossaries", {
64
+ method: "put",
65
+ pathTemplate: "/api/v1/glossaries/{id}",
66
+ pathVariables: { id },
67
+ body,
68
+ contentType: "application/json",
69
+ options
70
+ });
71
+ }
72
+ async function exportGlossary(id, options) {
73
+ return invokeFetch("glossaries", {
74
+ method: "get",
75
+ pathTemplate: "/api/v1/glossaries/{id}/actions/export",
76
+ pathVariables: { id },
77
+ options
78
+ });
79
+ }
80
+ async function getGlossaryCategories(id, query, options) {
81
+ return invokeFetch("glossaries", {
82
+ method: "get",
83
+ pathTemplate: "/api/v1/glossaries/{id}/categories",
84
+ pathVariables: { id },
85
+ query,
86
+ options
87
+ });
88
+ }
89
+ async function createGlossaryCategory(id, body, options) {
90
+ return invokeFetch("glossaries", {
91
+ method: "post",
92
+ pathTemplate: "/api/v1/glossaries/{id}/categories",
93
+ pathVariables: { id },
94
+ body,
95
+ contentType: "application/json",
96
+ options
97
+ });
98
+ }
99
+ async function deleteGlossaryCategory(id, categoryId, options) {
100
+ return invokeFetch("glossaries", {
101
+ method: "delete",
102
+ pathTemplate: "/api/v1/glossaries/{id}/categories/{categoryId}",
103
+ pathVariables: { id, categoryId },
104
+ options
105
+ });
106
+ }
107
+ async function getGlossaryCategory(id, categoryId, options) {
108
+ return invokeFetch("glossaries", {
109
+ method: "get",
110
+ pathTemplate: "/api/v1/glossaries/{id}/categories/{categoryId}",
111
+ pathVariables: { id, categoryId },
112
+ options
113
+ });
114
+ }
115
+ async function patchGlossaryCategory(id, categoryId, body, options) {
116
+ return invokeFetch("glossaries", {
117
+ method: "patch",
118
+ pathTemplate: "/api/v1/glossaries/{id}/categories/{categoryId}",
119
+ pathVariables: { id, categoryId },
120
+ body,
121
+ contentType: "application/json",
122
+ options
123
+ });
124
+ }
125
+ async function updateGlossaryCategory(id, categoryId, body, options) {
126
+ return invokeFetch("glossaries", {
127
+ method: "put",
128
+ pathTemplate: "/api/v1/glossaries/{id}/categories/{categoryId}",
129
+ pathVariables: { id, categoryId },
130
+ body,
131
+ contentType: "application/json",
132
+ options
133
+ });
134
+ }
135
+ async function getGlossaryTerms(id, query, options) {
136
+ return invokeFetch("glossaries", {
137
+ method: "get",
138
+ pathTemplate: "/api/v1/glossaries/{id}/terms",
139
+ pathVariables: { id },
140
+ query,
141
+ options
142
+ });
143
+ }
144
+ async function createGlossaryTerm(id, body, options) {
145
+ return invokeFetch("glossaries", {
146
+ method: "post",
147
+ pathTemplate: "/api/v1/glossaries/{id}/terms",
148
+ pathVariables: { id },
149
+ body,
150
+ contentType: "application/json",
151
+ options
152
+ });
153
+ }
154
+ async function deleteGlossaryTerm(id, termId, options) {
155
+ return invokeFetch("glossaries", {
156
+ method: "delete",
157
+ pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}",
158
+ pathVariables: { id, termId },
159
+ options
160
+ });
161
+ }
162
+ async function getGlossaryTerm(id, termId, options) {
163
+ return invokeFetch("glossaries", {
164
+ method: "get",
165
+ pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}",
166
+ pathVariables: { id, termId },
167
+ options
168
+ });
169
+ }
170
+ async function patchGlossaryTerm(id, termId, body, options) {
171
+ return invokeFetch("glossaries", {
172
+ method: "patch",
173
+ pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}",
174
+ pathVariables: { id, termId },
175
+ body,
176
+ contentType: "application/json",
177
+ options
178
+ });
179
+ }
180
+ async function updateGlossaryTerm(id, termId, body, options) {
181
+ return invokeFetch("glossaries", {
182
+ method: "put",
183
+ pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}",
184
+ pathVariables: { id, termId },
185
+ body,
186
+ contentType: "application/json",
187
+ options
188
+ });
189
+ }
190
+ async function changeGlossaryTermStatus(id, termId, query, options) {
191
+ return invokeFetch("glossaries", {
192
+ method: "post",
193
+ pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}/actions/change-status",
194
+ pathVariables: { id, termId },
195
+ query,
196
+ options
197
+ });
198
+ }
199
+ async function getGlossaryTermLinks(id, termId, query, options) {
200
+ return invokeFetch("glossaries", {
201
+ method: "get",
202
+ pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}/links",
203
+ pathVariables: { id, termId },
204
+ query,
205
+ options
206
+ });
207
+ }
208
+ async function createGlossaryTermLink(id, termId, body, options) {
209
+ return invokeFetch("glossaries", {
210
+ method: "post",
211
+ pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}/links",
212
+ pathVariables: { id, termId },
213
+ body,
214
+ contentType: "application/json",
215
+ options
216
+ });
217
+ }
218
+ async function getGlossaryTermRevisions(id, termId, query, options) {
219
+ return invokeFetch("glossaries", {
220
+ method: "get",
221
+ pathTemplate: "/api/v1/glossaries/{id}/terms/{termId}/revisions",
222
+ pathVariables: { id, termId },
223
+ query,
224
+ options
225
+ });
226
+ }
179
227
  function clearCache() {
180
228
  return clearApiCache("glossaries");
181
229
  }
package/groups.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 role references. Visibility dependant on access level. Must have access to roles to view other users' assigned roles.
@@ -276,7 +276,7 @@ type SettingsPatchSchema = SettingsPatch[];
276
276
  * @param query an object with query parameters
277
277
  * @throws GetGroupsHttpError
278
278
  */
279
- declare const getGroups: (query: {
279
+ declare function getGroups(query: {
280
280
  /** The advanced filtering to use for the query. Refer to [RFC 7644](https://datatracker.ietf.org/doc/rfc7644/) for the syntax. Cannot be combined with any of the fields marked as deprecated. All conditional statements within this query parameter are case insensitive. */
281
281
  filter?: string;
282
282
  /** The number of groups to retrieve. */
@@ -291,7 +291,7 @@ declare const getGroups: (query: {
291
291
  systemGroups?: boolean;
292
292
  /** Whether to return a total match count in the result. Defaults to false. */
293
293
  totalResults?: boolean;
294
- }, options?: ApiCallOptions) => Promise<GetGroupsHttpResponse>;
294
+ }, options?: ApiCallOptions): Promise<GetGroupsHttpResponse>;
295
295
  type GetGroupsHttpResponse = {
296
296
  data: Groups;
297
297
  headers: Headers;
@@ -310,7 +310,7 @@ type GetGroupsHttpError = {
310
310
  * @param body an object with the body content
311
311
  * @throws CreateGroupHttpError
312
312
  */
313
- declare const createGroup: (body: GroupPostSchema, options?: ApiCallOptions) => Promise<CreateGroupHttpResponse>;
313
+ declare function createGroup(body: GroupPostSchema, options?: ApiCallOptions): Promise<CreateGroupHttpResponse>;
314
314
  type CreateGroupHttpResponse = {
315
315
  data: Group;
316
316
  headers: Headers;
@@ -328,7 +328,7 @@ type CreateGroupHttpError = {
328
328
  * @param body an object with the body content
329
329
  * @throws FilterGroupsHttpError
330
330
  */
331
- declare const filterGroups: (query: {
331
+ declare function filterGroups(query: {
332
332
  /** The number of user entries to retrieve. */
333
333
  limit?: number;
334
334
  /** Get users with IDs that are higher than the target user ID. Cannot be used in conjunction with prev. */
@@ -337,7 +337,7 @@ declare const filterGroups: (query: {
337
337
  prev?: string;
338
338
  /** The field to sort by, with +/- prefix indicating sort order */
339
339
  sort?: "name" | "+name" | "-name";
340
- }, body: Filter, options?: ApiCallOptions) => Promise<FilterGroupsHttpResponse>;
340
+ }, body: Filter, options?: ApiCallOptions): Promise<FilterGroupsHttpResponse>;
341
341
  type FilterGroupsHttpResponse = {
342
342
  data: Groups;
343
343
  headers: Headers;
@@ -355,7 +355,7 @@ type FilterGroupsHttpError = {
355
355
  *
356
356
  * @throws GetGroupsSettingsHttpError
357
357
  */
358
- declare const getGroupsSettings: (options?: ApiCallOptions) => Promise<GetGroupsSettingsHttpResponse>;
358
+ declare function getGroupsSettings(options?: ApiCallOptions): Promise<GetGroupsSettingsHttpResponse>;
359
359
  type GetGroupsSettingsHttpResponse = {
360
360
  data: GroupSettings;
361
361
  headers: Headers;
@@ -372,7 +372,7 @@ type GetGroupsSettingsHttpError = {
372
372
  * @param body an object with the body content
373
373
  * @throws PatchGroupsSettingsHttpError
374
374
  */
375
- declare const patchGroupsSettings: (body: SettingsPatchSchema, options?: ApiCallOptions) => Promise<PatchGroupsSettingsHttpResponse>;
375
+ declare function patchGroupsSettings(body: SettingsPatchSchema, options?: ApiCallOptions): Promise<PatchGroupsSettingsHttpResponse>;
376
376
  type PatchGroupsSettingsHttpResponse = {
377
377
  data: void;
378
378
  headers: Headers;
@@ -389,7 +389,7 @@ type PatchGroupsSettingsHttpError = {
389
389
  * @param groupId The ID of the group to delete.
390
390
  * @throws DeleteGroupHttpError
391
391
  */
392
- declare const deleteGroup: (groupId: string, options?: ApiCallOptions) => Promise<DeleteGroupHttpResponse>;
392
+ declare function deleteGroup(groupId: string, options?: ApiCallOptions): Promise<DeleteGroupHttpResponse>;
393
393
  type DeleteGroupHttpResponse = {
394
394
  data: void;
395
395
  headers: Headers;
@@ -406,7 +406,7 @@ type DeleteGroupHttpError = {
406
406
  * @param groupId The group's unique identifier
407
407
  * @throws GetGroupHttpError
408
408
  */
409
- declare const getGroup: (groupId: string, options?: ApiCallOptions) => Promise<GetGroupHttpResponse>;
409
+ declare function getGroup(groupId: string, options?: ApiCallOptions): Promise<GetGroupHttpResponse>;
410
410
  type GetGroupHttpResponse = {
411
411
  data: Group;
412
412
  headers: Headers;
@@ -424,7 +424,7 @@ type GetGroupHttpError = {
424
424
  * @param body an object with the body content
425
425
  * @throws PatchGroupHttpError
426
426
  */
427
- declare const patchGroup: (groupId: string, body: GroupPatchSchema, options?: ApiCallOptions) => Promise<PatchGroupHttpResponse>;
427
+ declare function patchGroup(groupId: string, body: GroupPatchSchema, options?: ApiCallOptions): Promise<PatchGroupHttpResponse>;
428
428
  type PatchGroupHttpResponse = {
429
429
  data: void;
430
430
  headers: Headers;
package/groups.js CHANGED
@@ -1,64 +1,80 @@
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/groups.ts
9
- var getGroups = async (query, options) => invokeFetch("groups", {
10
- method: "get",
11
- pathTemplate: "/api/v1/groups",
12
- query,
13
- options
14
- });
15
- var createGroup = async (body, options) => invokeFetch("groups", {
16
- method: "post",
17
- pathTemplate: "/api/v1/groups",
18
- body,
19
- contentType: "application/json",
20
- options
21
- });
22
- var filterGroups = async (query, body, options) => invokeFetch("groups", {
23
- method: "post",
24
- pathTemplate: "/api/v1/groups/actions/filter",
25
- query,
26
- body,
27
- contentType: "application/json",
28
- options
29
- });
30
- var getGroupsSettings = async (options) => invokeFetch("groups", {
31
- method: "get",
32
- pathTemplate: "/api/v1/groups/settings",
33
- options
34
- });
35
- var patchGroupsSettings = async (body, options) => invokeFetch("groups", {
36
- method: "patch",
37
- pathTemplate: "/api/v1/groups/settings",
38
- body,
39
- contentType: "application/json",
40
- options
41
- });
42
- var deleteGroup = async (groupId, options) => invokeFetch("groups", {
43
- method: "delete",
44
- pathTemplate: "/api/v1/groups/{groupId}",
45
- pathVariables: { groupId },
46
- options
47
- });
48
- var getGroup = async (groupId, options) => invokeFetch("groups", {
49
- method: "get",
50
- pathTemplate: "/api/v1/groups/{groupId}",
51
- pathVariables: { groupId },
52
- options
53
- });
54
- var patchGroup = async (groupId, body, options) => invokeFetch("groups", {
55
- method: "patch",
56
- pathTemplate: "/api/v1/groups/{groupId}",
57
- pathVariables: { groupId },
58
- body,
59
- contentType: "application/json",
60
- options
61
- });
9
+ async function getGroups(query, options) {
10
+ return invokeFetch("groups", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/groups",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function createGroup(body, options) {
18
+ return invokeFetch("groups", {
19
+ method: "post",
20
+ pathTemplate: "/api/v1/groups",
21
+ body,
22
+ contentType: "application/json",
23
+ options
24
+ });
25
+ }
26
+ async function filterGroups(query, body, options) {
27
+ return invokeFetch("groups", {
28
+ method: "post",
29
+ pathTemplate: "/api/v1/groups/actions/filter",
30
+ query,
31
+ body,
32
+ contentType: "application/json",
33
+ options
34
+ });
35
+ }
36
+ async function getGroupsSettings(options) {
37
+ return invokeFetch("groups", {
38
+ method: "get",
39
+ pathTemplate: "/api/v1/groups/settings",
40
+ options
41
+ });
42
+ }
43
+ async function patchGroupsSettings(body, options) {
44
+ return invokeFetch("groups", {
45
+ method: "patch",
46
+ pathTemplate: "/api/v1/groups/settings",
47
+ body,
48
+ contentType: "application/json",
49
+ options
50
+ });
51
+ }
52
+ async function deleteGroup(groupId, options) {
53
+ return invokeFetch("groups", {
54
+ method: "delete",
55
+ pathTemplate: "/api/v1/groups/{groupId}",
56
+ pathVariables: { groupId },
57
+ options
58
+ });
59
+ }
60
+ async function getGroup(groupId, options) {
61
+ return invokeFetch("groups", {
62
+ method: "get",
63
+ pathTemplate: "/api/v1/groups/{groupId}",
64
+ pathVariables: { groupId },
65
+ options
66
+ });
67
+ }
68
+ async function patchGroup(groupId, body, options) {
69
+ return invokeFetch("groups", {
70
+ method: "patch",
71
+ pathTemplate: "/api/v1/groups/{groupId}",
72
+ pathVariables: { groupId },
73
+ body,
74
+ contentType: "application/json",
75
+ options
76
+ });
77
+ }
62
78
  function clearCache() {
63
79
  return clearApiCache("groups");
64
80
  }