@qlik/api 0.0.1
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.
- package/LICENSE +17 -0
- package/README.md +8 -0
- package/api-keys.d.mts +313 -0
- package/api-keys.d.ts +313 -0
- package/api-keys.js +76 -0
- package/api-keys.mjs +76 -0
- package/apps.d.mts +1921 -0
- package/apps.d.ts +1921 -0
- package/apps.js +331 -0
- package/apps.mjs +331 -0
- package/audits.d.mts +262 -0
- package/audits.d.ts +262 -0
- package/audits.js +63 -0
- package/audits.mjs +63 -0
- package/auth-CSVTXOZX.js +36 -0
- package/auth-TE272Q34.mjs +36 -0
- package/auth-types-nnUcWhuU.d.mts +98 -0
- package/auth-types-nnUcWhuU.d.ts +98 -0
- package/auth.d.mts +26 -0
- package/auth.d.ts +26 -0
- package/auth.js +13 -0
- package/auth.mjs +13 -0
- package/automations.d.mts +638 -0
- package/automations.d.ts +638 -0
- package/automations.js +166 -0
- package/automations.mjs +166 -0
- package/brands.d.mts +614 -0
- package/brands.d.ts +614 -0
- package/brands.js +118 -0
- package/brands.mjs +118 -0
- package/chunk-3YE7EI7I.mjs +17 -0
- package/chunk-4ES65KO3.js +57 -0
- package/chunk-4FLMND6T.js +25 -0
- package/chunk-4OMEH5SW.mjs +1337 -0
- package/chunk-CKPJE4IA.mjs +57 -0
- package/chunk-GUQBHY3H.mjs +25 -0
- package/chunk-OULT3V2U.js +17 -0
- package/chunk-WM7FQU2U.mjs +21 -0
- package/chunk-XASXL2NC.js +1337 -0
- package/chunk-ZT4C7KCQ.js +21 -0
- package/collections.d.mts +535 -0
- package/collections.d.ts +535 -0
- package/collections.js +100 -0
- package/collections.mjs +100 -0
- package/csp-origins.d.mts +258 -0
- package/csp-origins.d.ts +258 -0
- package/csp-origins.js +66 -0
- package/csp-origins.mjs +66 -0
- package/data-assets.d.mts +195 -0
- package/data-assets.d.ts +195 -0
- package/data-assets.js +61 -0
- package/data-assets.mjs +61 -0
- package/data-connections.d.mts +527 -0
- package/data-connections.d.ts +527 -0
- package/data-connections.js +96 -0
- package/data-connections.mjs +96 -0
- package/data-credentials.d.mts +188 -0
- package/data-credentials.d.ts +188 -0
- package/data-credentials.js +56 -0
- package/data-credentials.mjs +56 -0
- package/data-files.d.mts +471 -0
- package/data-files.d.ts +471 -0
- package/data-files.js +116 -0
- package/data-files.mjs +116 -0
- package/docs/examples.md +4 -0
- package/enigma-session-4L373ALV.mjs +10196 -0
- package/enigma-session-TEB53FAF.js +10196 -0
- package/esm-4X3DKK5D.js +63 -0
- package/esm-SOWVJKOQ.mjs +63 -0
- package/extensions.d.mts +257 -0
- package/extensions.d.ts +257 -0
- package/extensions.js +74 -0
- package/extensions.mjs +74 -0
- package/global.types-Eto4uYwy.d.mts +102 -0
- package/global.types-hIvp-WdX.d.ts +102 -0
- package/glossaries.d.mts +1041 -0
- package/glossaries.d.ts +1041 -0
- package/glossaries.js +225 -0
- package/glossaries.mjs +225 -0
- package/groups.d.mts +379 -0
- package/groups.d.ts +379 -0
- package/groups.js +83 -0
- package/groups.mjs +83 -0
- package/identity-providers.d.mts +492 -0
- package/identity-providers.d.ts +492 -0
- package/identity-providers.js +80 -0
- package/identity-providers.mjs +80 -0
- package/index.d.mts +142 -0
- package/index.d.ts +142 -0
- package/index.js +678 -0
- package/index.mjs +678 -0
- package/invoke-fetch-MSSJAZ7K.mjs +14 -0
- package/invoke-fetch-PEI54KZO.js +14 -0
- package/items.d.mts +501 -0
- package/items.d.ts +501 -0
- package/items.js +84 -0
- package/items.mjs +84 -0
- package/licenses.d.mts +436 -0
- package/licenses.d.ts +436 -0
- package/licenses.js +87 -0
- package/licenses.mjs +87 -0
- package/package.json +264 -0
- package/qix-EU7PXRZ6.mjs +573 -0
- package/qix-RLTISYTB.js +573 -0
- package/qix.d.mts +11543 -0
- package/qix.d.ts +11543 -0
- package/qix.js +9 -0
- package/qix.mjs +9 -0
- package/quotas.d.mts +105 -0
- package/quotas.d.ts +105 -0
- package/quotas.js +31 -0
- package/quotas.mjs +31 -0
- package/reload-tasks.d.mts +222 -0
- package/reload-tasks.d.ts +222 -0
- package/reload-tasks.js +59 -0
- package/reload-tasks.mjs +59 -0
- package/reloads.d.mts +189 -0
- package/reloads.d.ts +189 -0
- package/reloads.js +44 -0
- package/reloads.mjs +44 -0
- package/roles.d.mts +150 -0
- package/roles.d.ts +150 -0
- package/roles.js +30 -0
- package/roles.mjs +30 -0
- package/spaces.d.mts +524 -0
- package/spaces.d.ts +524 -0
- package/spaces.js +118 -0
- package/spaces.mjs +118 -0
- package/temp-contents.d.mts +222 -0
- package/temp-contents.d.ts +222 -0
- package/temp-contents.js +60 -0
- package/temp-contents.mjs +60 -0
- package/tenants.d.mts +276 -0
- package/tenants.d.ts +276 -0
- package/tenants.js +68 -0
- package/tenants.mjs +68 -0
- package/themes.d.mts +235 -0
- package/themes.d.ts +235 -0
- package/themes.js +74 -0
- package/themes.mjs +74 -0
- package/transports.d.mts +298 -0
- package/transports.d.ts +298 -0
- package/transports.js +62 -0
- package/transports.mjs +62 -0
- package/users.d.mts +544 -0
- package/users.d.ts +544 -0
- package/users.js +99 -0
- package/users.mjs +99 -0
- package/web-integrations.d.mts +246 -0
- package/web-integrations.d.ts +246 -0
- package/web-integrations.js +59 -0
- package/web-integrations.mjs +59 -0
- package/web-notifications.d.mts +220 -0
- package/web-notifications.d.ts +220 -0
- package/web-notifications.js +66 -0
- package/web-notifications.mjs +66 -0
- package/webhooks.d.mts +422 -0
- package/webhooks.d.ts +422 -0
- package/webhooks.js +100 -0
- package/webhooks.mjs +100 -0
package/groups.d.ts
ADDED
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
import { A as ApiCallOptions } from './global.types-hIvp-WdX.js';
|
|
2
|
+
import './auth-types-nnUcWhuU.js';
|
|
3
|
+
|
|
4
|
+
type AssignedRoles = {
|
|
5
|
+
/** The unique role identitier */
|
|
6
|
+
id: string;
|
|
7
|
+
/** The role level */
|
|
8
|
+
readonly level: "admin" | "user";
|
|
9
|
+
/** The role name */
|
|
10
|
+
readonly name: string;
|
|
11
|
+
/** An array of permissions associated to a given role. */
|
|
12
|
+
readonly permissions: string[];
|
|
13
|
+
/** The type of role */
|
|
14
|
+
readonly type: "default";
|
|
15
|
+
}[];
|
|
16
|
+
type AssignedRolesRefIDs = {
|
|
17
|
+
/** The unique role identitier */
|
|
18
|
+
id: string;
|
|
19
|
+
}[];
|
|
20
|
+
type AssignedRolesRefNames = {
|
|
21
|
+
/** The name of the role */
|
|
22
|
+
name: string;
|
|
23
|
+
}[];
|
|
24
|
+
type Error = {
|
|
25
|
+
/** The error code. */
|
|
26
|
+
code: string;
|
|
27
|
+
/** A human-readable explanation specific to this occurrence of the problem. */
|
|
28
|
+
detail?: string;
|
|
29
|
+
/** Additional properties relating to the error. */
|
|
30
|
+
meta?: unknown;
|
|
31
|
+
/** References to the source of the error. */
|
|
32
|
+
source?: {
|
|
33
|
+
/** The URI query parameter that caused the error. */
|
|
34
|
+
parameter?: string;
|
|
35
|
+
/** A JSON Pointer to the property that caused the error. */
|
|
36
|
+
pointer?: string;
|
|
37
|
+
};
|
|
38
|
+
/** The HTTP status code. */
|
|
39
|
+
status?: number;
|
|
40
|
+
/** Summary of the problem. */
|
|
41
|
+
title: string;
|
|
42
|
+
};
|
|
43
|
+
type Errors = {
|
|
44
|
+
/** An array of errors related to the operation. */
|
|
45
|
+
errors?: Error[];
|
|
46
|
+
/** A unique identifier for tracing the error. */
|
|
47
|
+
traceId?: string;
|
|
48
|
+
};
|
|
49
|
+
type Filter = {
|
|
50
|
+
/** The advanced filtering to be applied the query. All conditional statements within this query parameter are case insensitive. */
|
|
51
|
+
filter?: string;
|
|
52
|
+
};
|
|
53
|
+
type Group = {
|
|
54
|
+
assignedRoles?: {
|
|
55
|
+
id: string;
|
|
56
|
+
readonly level: "admin" | "user";
|
|
57
|
+
readonly name: string;
|
|
58
|
+
readonly permissions: string[];
|
|
59
|
+
readonly type: "default";
|
|
60
|
+
}[];
|
|
61
|
+
/** The timestamp for when the group record was created. */
|
|
62
|
+
createdAt: string;
|
|
63
|
+
/** The unique identifier for the group */
|
|
64
|
+
readonly id: string;
|
|
65
|
+
/** The timestamp for when the group record was last updated. */
|
|
66
|
+
lastUpdatedAt: string;
|
|
67
|
+
/** Contains Links for current document */
|
|
68
|
+
links: {
|
|
69
|
+
self: {
|
|
70
|
+
/** Link to the current group document */
|
|
71
|
+
href: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
/** The name of the group. */
|
|
75
|
+
name: string;
|
|
76
|
+
/** The state of the group. */
|
|
77
|
+
status: "active" | "disabled";
|
|
78
|
+
/** The tenant identifier associated with the given group */
|
|
79
|
+
tenantId: string;
|
|
80
|
+
};
|
|
81
|
+
type GroupPatch = {
|
|
82
|
+
/** The operation to be performed. Currently "replace" is the only supported operation. */
|
|
83
|
+
op: "replace";
|
|
84
|
+
/** Attribute name of a field of the Groups entity. */
|
|
85
|
+
path: "assignedRoles";
|
|
86
|
+
/** The roles to assign to the group (limit of 100 roles per group). */
|
|
87
|
+
value: AssignedRolesRefIDs | AssignedRolesRefNames;
|
|
88
|
+
};
|
|
89
|
+
type GroupPatchSchema = GroupPatch[];
|
|
90
|
+
type GroupPostSchema = {
|
|
91
|
+
/** The roles to assign to the group (limit of 100 roles per group). */
|
|
92
|
+
assignedRoles?: AssignedRolesRefIDs | AssignedRolesRefNames;
|
|
93
|
+
/** The name of the group (maximum length of 256 characters). */
|
|
94
|
+
name: string;
|
|
95
|
+
/** The status of the created group within the tenant. Defaults to active if empty. */
|
|
96
|
+
status?: "active";
|
|
97
|
+
};
|
|
98
|
+
type GroupSettings = {
|
|
99
|
+
/** Determines if groups should be created on login. */
|
|
100
|
+
autoCreateGroups: boolean;
|
|
101
|
+
/** Contains Links for current document */
|
|
102
|
+
links: {
|
|
103
|
+
self: {
|
|
104
|
+
/** Link to the current group settings document */
|
|
105
|
+
href: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
/** Determines if groups should be created on login. */
|
|
109
|
+
syncIdpGroups: boolean;
|
|
110
|
+
systemGroups?: {
|
|
111
|
+
"000000000000000000000001"?: {
|
|
112
|
+
/** An array of role references. */
|
|
113
|
+
assignedRoles?: AssignedRoles;
|
|
114
|
+
/** The timestamp for when the Everyone group was created. */
|
|
115
|
+
createdAt?: string;
|
|
116
|
+
/** For Everyone, this is always `true` and can't be patched. */
|
|
117
|
+
enabled?: boolean;
|
|
118
|
+
/** The ID of the Everyone group. This value will not change and is immutable. */
|
|
119
|
+
id?: "000000000000000000000001";
|
|
120
|
+
/** The timestamp for when the Everyone group was last updated. */
|
|
121
|
+
lastUpdatedAt?: string;
|
|
122
|
+
/** The name of the Everyone group. This value will not change and is immutable. */
|
|
123
|
+
name?: "com.qlik.Everyone";
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
/** The unique tenant identifier. */
|
|
127
|
+
tenantId: string;
|
|
128
|
+
};
|
|
129
|
+
type Groups = {
|
|
130
|
+
/** An array of groups. */
|
|
131
|
+
data?: Group[];
|
|
132
|
+
links?: {
|
|
133
|
+
next?: {
|
|
134
|
+
/** Link to the next page of items */
|
|
135
|
+
href: string;
|
|
136
|
+
};
|
|
137
|
+
prev?: {
|
|
138
|
+
/** Link to the previous page of items */
|
|
139
|
+
href: string;
|
|
140
|
+
};
|
|
141
|
+
self: {
|
|
142
|
+
/** Link to the current page of items */
|
|
143
|
+
href: string;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
/** Indicates the total number of matching documents. Will only be returned if the query parameter "totalResults" is true. */
|
|
147
|
+
totalResults?: number;
|
|
148
|
+
};
|
|
149
|
+
type SettingsPatch = {
|
|
150
|
+
/** The operation to be performed. */
|
|
151
|
+
op: "replace";
|
|
152
|
+
/** A JSON Pointer. */
|
|
153
|
+
path: "/autoCreateGroups" | "/syncIdpGroups" | "/systemGroups/{id}/assignedRoles";
|
|
154
|
+
/** The value to be used for this operation. */
|
|
155
|
+
value: boolean | AssignedRolesRefIDs | AssignedRolesRefNames;
|
|
156
|
+
};
|
|
157
|
+
type SettingsPatchSchema = SettingsPatch[];
|
|
158
|
+
/**
|
|
159
|
+
* Returns a list of groups with cursor-based pagination.
|
|
160
|
+
* @param query an object with query parameters
|
|
161
|
+
* @throws GetGroupsHttpError
|
|
162
|
+
*/
|
|
163
|
+
declare const getGroups: (query: {
|
|
164
|
+
/** 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. */
|
|
165
|
+
filter?: string;
|
|
166
|
+
/** The number of groups to retrieve. */
|
|
167
|
+
limit?: number;
|
|
168
|
+
/** The next page cursor. */
|
|
169
|
+
next?: string;
|
|
170
|
+
/** The previous page cursor. */
|
|
171
|
+
prev?: string;
|
|
172
|
+
/** Optional resource field name to sort on, eg. name. Can be prefixed with +/- to determine order, defaults to (+) ascending. */
|
|
173
|
+
sort?: string;
|
|
174
|
+
/** Return system groups (e.g. Everyone) instead of regular groups. Cannot be combined with any other query parameters. */
|
|
175
|
+
systemGroups?: boolean;
|
|
176
|
+
/** Whether to return a total match count in the result. Defaults to false. */
|
|
177
|
+
totalResults?: boolean;
|
|
178
|
+
}, options?: ApiCallOptions) => Promise<GetGroupsHttpResponse>;
|
|
179
|
+
type GetGroupsHttpResponse = {
|
|
180
|
+
data: Groups;
|
|
181
|
+
headers: Headers;
|
|
182
|
+
status: number;
|
|
183
|
+
prev?: (options?: ApiCallOptions) => Promise<GetGroupsHttpResponse>;
|
|
184
|
+
next?: (options?: ApiCallOptions) => Promise<GetGroupsHttpResponse>;
|
|
185
|
+
};
|
|
186
|
+
type GetGroupsHttpError = {
|
|
187
|
+
data: Errors;
|
|
188
|
+
headers: Headers;
|
|
189
|
+
status: number;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* Creates a group. The maximum number of groups a tenant can have is 10,000.
|
|
193
|
+
* @param body an object with the body content
|
|
194
|
+
* @throws CreateGroupHttpError
|
|
195
|
+
*/
|
|
196
|
+
declare const createGroup: (body: GroupPostSchema, options?: ApiCallOptions) => Promise<CreateGroupHttpResponse>;
|
|
197
|
+
type CreateGroupHttpResponse = {
|
|
198
|
+
data: Group;
|
|
199
|
+
headers: Headers;
|
|
200
|
+
status: number;
|
|
201
|
+
};
|
|
202
|
+
type CreateGroupHttpError = {
|
|
203
|
+
data: Errors;
|
|
204
|
+
headers: Headers;
|
|
205
|
+
status: number;
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* Retrieves a list of groups matching the filter using advanced query string.
|
|
209
|
+
* @param query an object with query parameters
|
|
210
|
+
* @param body an object with the body content
|
|
211
|
+
* @throws FilterGroupsHttpError
|
|
212
|
+
*/
|
|
213
|
+
declare const filterGroups: (query: {
|
|
214
|
+
/** The number of user entries to retrieve. */
|
|
215
|
+
limit?: number;
|
|
216
|
+
/** Get users with IDs that are higher than the target user ID. Cannot be used in conjunction with prev. */
|
|
217
|
+
next?: string;
|
|
218
|
+
/** Get users with IDs that are lower than the target user ID. Cannot be used in conjunction with next. */
|
|
219
|
+
prev?: string;
|
|
220
|
+
/** The field to sort by, with +/- prefix indicating sort order */
|
|
221
|
+
sort?: "name" | "+name" | "-name";
|
|
222
|
+
}, body: Filter, options?: ApiCallOptions) => Promise<FilterGroupsHttpResponse>;
|
|
223
|
+
type FilterGroupsHttpResponse = {
|
|
224
|
+
data: Groups;
|
|
225
|
+
headers: Headers;
|
|
226
|
+
status: number;
|
|
227
|
+
prev?: (options?: ApiCallOptions) => Promise<FilterGroupsHttpResponse>;
|
|
228
|
+
next?: (options?: ApiCallOptions) => Promise<FilterGroupsHttpResponse>;
|
|
229
|
+
};
|
|
230
|
+
type FilterGroupsHttpError = {
|
|
231
|
+
data: Errors;
|
|
232
|
+
headers: Headers;
|
|
233
|
+
status: number;
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* Returns the active tenant's group settings.
|
|
237
|
+
* @throws GetGroupSettingsHttpError
|
|
238
|
+
*/
|
|
239
|
+
declare const getGroupSettings: (options?: ApiCallOptions) => Promise<GetGroupSettingsHttpResponse>;
|
|
240
|
+
type GetGroupSettingsHttpResponse = {
|
|
241
|
+
data: GroupSettings;
|
|
242
|
+
headers: Headers;
|
|
243
|
+
status: number;
|
|
244
|
+
};
|
|
245
|
+
type GetGroupSettingsHttpError = {
|
|
246
|
+
data: Errors;
|
|
247
|
+
headers: Headers;
|
|
248
|
+
status: number;
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* Update group settings
|
|
252
|
+
* @param body an object with the body content
|
|
253
|
+
* @throws PatchGroupSettingsHttpError
|
|
254
|
+
*/
|
|
255
|
+
declare const patchGroupSettings: (body: SettingsPatchSchema, options?: ApiCallOptions) => Promise<PatchGroupSettingsHttpResponse>;
|
|
256
|
+
type PatchGroupSettingsHttpResponse = {
|
|
257
|
+
data: void;
|
|
258
|
+
headers: Headers;
|
|
259
|
+
status: number;
|
|
260
|
+
};
|
|
261
|
+
type PatchGroupSettingsHttpError = {
|
|
262
|
+
data: Errors;
|
|
263
|
+
headers: Headers;
|
|
264
|
+
status: number;
|
|
265
|
+
};
|
|
266
|
+
/**
|
|
267
|
+
* Delete group by id
|
|
268
|
+
* @param groupId The ID of the group to delete.
|
|
269
|
+
* @throws DeleteGroupHttpError
|
|
270
|
+
*/
|
|
271
|
+
declare const deleteGroup: (groupId: string, options?: ApiCallOptions) => Promise<DeleteGroupHttpResponse>;
|
|
272
|
+
type DeleteGroupHttpResponse = {
|
|
273
|
+
data: void;
|
|
274
|
+
headers: Headers;
|
|
275
|
+
status: number;
|
|
276
|
+
};
|
|
277
|
+
type DeleteGroupHttpError = {
|
|
278
|
+
data: Errors;
|
|
279
|
+
headers: Headers;
|
|
280
|
+
status: number;
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* Returns the requested group.
|
|
284
|
+
* @param groupId The group's unique identifier
|
|
285
|
+
* @throws GetGroupHttpError
|
|
286
|
+
*/
|
|
287
|
+
declare const getGroup: (groupId: string, options?: ApiCallOptions) => Promise<GetGroupHttpResponse>;
|
|
288
|
+
type GetGroupHttpResponse = {
|
|
289
|
+
data: Group;
|
|
290
|
+
headers: Headers;
|
|
291
|
+
status: number;
|
|
292
|
+
};
|
|
293
|
+
type GetGroupHttpError = {
|
|
294
|
+
data: Errors;
|
|
295
|
+
headers: Headers;
|
|
296
|
+
status: number;
|
|
297
|
+
};
|
|
298
|
+
/**
|
|
299
|
+
* Update group by id
|
|
300
|
+
* @param groupId The ID of the group to update.
|
|
301
|
+
* @param body an object with the body content
|
|
302
|
+
* @throws PatchGroupHttpError
|
|
303
|
+
*/
|
|
304
|
+
declare const patchGroup: (groupId: string, body: GroupPatchSchema, options?: ApiCallOptions) => Promise<PatchGroupHttpResponse>;
|
|
305
|
+
type PatchGroupHttpResponse = {
|
|
306
|
+
data: void;
|
|
307
|
+
headers: Headers;
|
|
308
|
+
status: number;
|
|
309
|
+
};
|
|
310
|
+
type PatchGroupHttpError = {
|
|
311
|
+
data: Errors;
|
|
312
|
+
headers: Headers;
|
|
313
|
+
status: number;
|
|
314
|
+
};
|
|
315
|
+
/**
|
|
316
|
+
* Clears the cache for groups api requests.
|
|
317
|
+
*/
|
|
318
|
+
declare function clearCache(): void;
|
|
319
|
+
interface GroupsAPI {
|
|
320
|
+
/**
|
|
321
|
+
* Returns a list of groups with cursor-based pagination.
|
|
322
|
+
* @param query an object with query parameters
|
|
323
|
+
* @throws GetGroupsHttpError
|
|
324
|
+
*/
|
|
325
|
+
getGroups: typeof getGroups;
|
|
326
|
+
/**
|
|
327
|
+
* Creates a group. The maximum number of groups a tenant can have is 10,000.
|
|
328
|
+
* @param body an object with the body content
|
|
329
|
+
* @throws CreateGroupHttpError
|
|
330
|
+
*/
|
|
331
|
+
createGroup: typeof createGroup;
|
|
332
|
+
/**
|
|
333
|
+
* Retrieves a list of groups matching the filter using advanced query string.
|
|
334
|
+
* @param query an object with query parameters
|
|
335
|
+
* @param body an object with the body content
|
|
336
|
+
* @throws FilterGroupsHttpError
|
|
337
|
+
*/
|
|
338
|
+
filterGroups: typeof filterGroups;
|
|
339
|
+
/**
|
|
340
|
+
* Returns the active tenant's group settings.
|
|
341
|
+
* @throws GetGroupSettingsHttpError
|
|
342
|
+
*/
|
|
343
|
+
getGroupSettings: typeof getGroupSettings;
|
|
344
|
+
/**
|
|
345
|
+
* Update group settings
|
|
346
|
+
* @param body an object with the body content
|
|
347
|
+
* @throws PatchGroupSettingsHttpError
|
|
348
|
+
*/
|
|
349
|
+
patchGroupSettings: typeof patchGroupSettings;
|
|
350
|
+
/**
|
|
351
|
+
* Delete group by id
|
|
352
|
+
* @param groupId The ID of the group to delete.
|
|
353
|
+
* @throws DeleteGroupHttpError
|
|
354
|
+
*/
|
|
355
|
+
deleteGroup: typeof deleteGroup;
|
|
356
|
+
/**
|
|
357
|
+
* Returns the requested group.
|
|
358
|
+
* @param groupId The group's unique identifier
|
|
359
|
+
* @throws GetGroupHttpError
|
|
360
|
+
*/
|
|
361
|
+
getGroup: typeof getGroup;
|
|
362
|
+
/**
|
|
363
|
+
* Update group by id
|
|
364
|
+
* @param groupId The ID of the group to update.
|
|
365
|
+
* @param body an object with the body content
|
|
366
|
+
* @throws PatchGroupHttpError
|
|
367
|
+
*/
|
|
368
|
+
patchGroup: typeof patchGroup;
|
|
369
|
+
/**
|
|
370
|
+
* Clears the cache for groups api requests.
|
|
371
|
+
*/
|
|
372
|
+
clearCache: typeof clearCache;
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Functions for the groups api
|
|
376
|
+
*/
|
|
377
|
+
declare const groupsExport: GroupsAPI;
|
|
378
|
+
|
|
379
|
+
export { type AssignedRoles, type AssignedRolesRefIDs, type AssignedRolesRefNames, type CreateGroupHttpError, type CreateGroupHttpResponse, type DeleteGroupHttpError, type DeleteGroupHttpResponse, type Error, type Errors, type Filter, type FilterGroupsHttpError, type FilterGroupsHttpResponse, type GetGroupHttpError, type GetGroupHttpResponse, type GetGroupSettingsHttpError, type GetGroupSettingsHttpResponse, type GetGroupsHttpError, type GetGroupsHttpResponse, type Group, type GroupPatch, type GroupPatchSchema, type GroupPostSchema, type GroupSettings, type Groups, type GroupsAPI, type PatchGroupHttpError, type PatchGroupHttpResponse, type PatchGroupSettingsHttpError, type PatchGroupSettingsHttpResponse, type SettingsPatch, type SettingsPatchSchema, clearCache, createGroup, groupsExport as default, deleteGroup, filterGroups, getGroup, getGroupSettings, getGroups, patchGroup, patchGroupSettings };
|
package/groups.js
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkOULT3V2Ujs = require('./chunk-OULT3V2U.js');
|
|
5
|
+
require('./chunk-ZT4C7KCQ.js');
|
|
6
|
+
|
|
7
|
+
// src/public/rest/groups.ts
|
|
8
|
+
var getGroups = async (query, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "groups", {
|
|
9
|
+
method: "get",
|
|
10
|
+
pathTemplate: "/api/v1/groups",
|
|
11
|
+
query,
|
|
12
|
+
options
|
|
13
|
+
});
|
|
14
|
+
var createGroup = async (body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "groups", {
|
|
15
|
+
method: "post",
|
|
16
|
+
pathTemplate: "/api/v1/groups",
|
|
17
|
+
body,
|
|
18
|
+
options
|
|
19
|
+
});
|
|
20
|
+
var filterGroups = async (query, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "groups", {
|
|
21
|
+
method: "post",
|
|
22
|
+
pathTemplate: "/api/v1/groups/actions/filter",
|
|
23
|
+
query,
|
|
24
|
+
body,
|
|
25
|
+
options
|
|
26
|
+
});
|
|
27
|
+
var getGroupSettings = async (options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "groups", {
|
|
28
|
+
method: "get",
|
|
29
|
+
pathTemplate: "/api/v1/groups/settings",
|
|
30
|
+
options
|
|
31
|
+
});
|
|
32
|
+
var patchGroupSettings = async (body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "groups", {
|
|
33
|
+
method: "patch",
|
|
34
|
+
pathTemplate: "/api/v1/groups/settings",
|
|
35
|
+
body,
|
|
36
|
+
options
|
|
37
|
+
});
|
|
38
|
+
var deleteGroup = async (groupId, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "groups", {
|
|
39
|
+
method: "delete",
|
|
40
|
+
pathTemplate: "/api/v1/groups/{groupId}",
|
|
41
|
+
pathVariables: { groupId },
|
|
42
|
+
options
|
|
43
|
+
});
|
|
44
|
+
var getGroup = async (groupId, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "groups", {
|
|
45
|
+
method: "get",
|
|
46
|
+
pathTemplate: "/api/v1/groups/{groupId}",
|
|
47
|
+
pathVariables: { groupId },
|
|
48
|
+
options
|
|
49
|
+
});
|
|
50
|
+
var patchGroup = async (groupId, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "groups", {
|
|
51
|
+
method: "patch",
|
|
52
|
+
pathTemplate: "/api/v1/groups/{groupId}",
|
|
53
|
+
pathVariables: { groupId },
|
|
54
|
+
body,
|
|
55
|
+
options
|
|
56
|
+
});
|
|
57
|
+
function clearCache() {
|
|
58
|
+
return _chunkOULT3V2Ujs.clearApiCache.call(void 0, "groups");
|
|
59
|
+
}
|
|
60
|
+
var groupsExport = {
|
|
61
|
+
getGroups,
|
|
62
|
+
createGroup,
|
|
63
|
+
filterGroups,
|
|
64
|
+
getGroupSettings,
|
|
65
|
+
patchGroupSettings,
|
|
66
|
+
deleteGroup,
|
|
67
|
+
getGroup,
|
|
68
|
+
patchGroup,
|
|
69
|
+
clearCache
|
|
70
|
+
};
|
|
71
|
+
var groups_default = groupsExport;
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
exports.clearCache = clearCache; exports.createGroup = createGroup; exports.default = groups_default; exports.deleteGroup = deleteGroup; exports.filterGroups = filterGroups; exports.getGroup = getGroup; exports.getGroupSettings = getGroupSettings; exports.getGroups = getGroups; exports.patchGroup = patchGroup; exports.patchGroupSettings = patchGroupSettings;
|
package/groups.mjs
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import {
|
|
2
|
+
clearApiCache,
|
|
3
|
+
invokeFetch
|
|
4
|
+
} from "./chunk-3YE7EI7I.mjs";
|
|
5
|
+
import "./chunk-WM7FQU2U.mjs";
|
|
6
|
+
|
|
7
|
+
// src/public/rest/groups.ts
|
|
8
|
+
var getGroups = async (query, options) => invokeFetch("groups", {
|
|
9
|
+
method: "get",
|
|
10
|
+
pathTemplate: "/api/v1/groups",
|
|
11
|
+
query,
|
|
12
|
+
options
|
|
13
|
+
});
|
|
14
|
+
var createGroup = async (body, options) => invokeFetch("groups", {
|
|
15
|
+
method: "post",
|
|
16
|
+
pathTemplate: "/api/v1/groups",
|
|
17
|
+
body,
|
|
18
|
+
options
|
|
19
|
+
});
|
|
20
|
+
var filterGroups = async (query, body, options) => invokeFetch("groups", {
|
|
21
|
+
method: "post",
|
|
22
|
+
pathTemplate: "/api/v1/groups/actions/filter",
|
|
23
|
+
query,
|
|
24
|
+
body,
|
|
25
|
+
options
|
|
26
|
+
});
|
|
27
|
+
var getGroupSettings = async (options) => invokeFetch("groups", {
|
|
28
|
+
method: "get",
|
|
29
|
+
pathTemplate: "/api/v1/groups/settings",
|
|
30
|
+
options
|
|
31
|
+
});
|
|
32
|
+
var patchGroupSettings = async (body, options) => invokeFetch("groups", {
|
|
33
|
+
method: "patch",
|
|
34
|
+
pathTemplate: "/api/v1/groups/settings",
|
|
35
|
+
body,
|
|
36
|
+
options
|
|
37
|
+
});
|
|
38
|
+
var deleteGroup = async (groupId, options) => invokeFetch("groups", {
|
|
39
|
+
method: "delete",
|
|
40
|
+
pathTemplate: "/api/v1/groups/{groupId}",
|
|
41
|
+
pathVariables: { groupId },
|
|
42
|
+
options
|
|
43
|
+
});
|
|
44
|
+
var getGroup = async (groupId, options) => invokeFetch("groups", {
|
|
45
|
+
method: "get",
|
|
46
|
+
pathTemplate: "/api/v1/groups/{groupId}",
|
|
47
|
+
pathVariables: { groupId },
|
|
48
|
+
options
|
|
49
|
+
});
|
|
50
|
+
var patchGroup = async (groupId, body, options) => invokeFetch("groups", {
|
|
51
|
+
method: "patch",
|
|
52
|
+
pathTemplate: "/api/v1/groups/{groupId}",
|
|
53
|
+
pathVariables: { groupId },
|
|
54
|
+
body,
|
|
55
|
+
options
|
|
56
|
+
});
|
|
57
|
+
function clearCache() {
|
|
58
|
+
return clearApiCache("groups");
|
|
59
|
+
}
|
|
60
|
+
var groupsExport = {
|
|
61
|
+
getGroups,
|
|
62
|
+
createGroup,
|
|
63
|
+
filterGroups,
|
|
64
|
+
getGroupSettings,
|
|
65
|
+
patchGroupSettings,
|
|
66
|
+
deleteGroup,
|
|
67
|
+
getGroup,
|
|
68
|
+
patchGroup,
|
|
69
|
+
clearCache
|
|
70
|
+
};
|
|
71
|
+
var groups_default = groupsExport;
|
|
72
|
+
export {
|
|
73
|
+
clearCache,
|
|
74
|
+
createGroup,
|
|
75
|
+
groups_default as default,
|
|
76
|
+
deleteGroup,
|
|
77
|
+
filterGroups,
|
|
78
|
+
getGroup,
|
|
79
|
+
getGroupSettings,
|
|
80
|
+
getGroups,
|
|
81
|
+
patchGroup,
|
|
82
|
+
patchGroupSettings
|
|
83
|
+
};
|