@qlik/api 1.18.0 → 1.20.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.
- package/api-keys.js +2 -2
- package/apps.js +2 -2
- package/audits.d.ts +14 -14
- package/audits.js +2 -2
- package/auth.d.ts +24 -1
- package/auth.js +2 -2
- package/automations.js +2 -2
- package/brands.js +2 -2
- package/chunks/{GLS4DAZ4.js → 4VH5O5UL.js} +1 -1
- package/chunks/{QLFOH4GP.js → 4XKAFB25.js} +19 -3
- package/chunks/{URFSYYRS.js → DT5F6REC.js} +1 -1
- package/chunks/{ZLPAS7FC.js → IMLCMV4X.js} +3 -3
- package/chunks/{H7WWFWBM.js → MP5FOM4F.js} +1 -1
- package/chunks/{GKEPTI44.js → MX5NVZPW.js} +11 -2
- package/chunks/{YEHZGXQV.js → OQWY73NC.js} +31 -6
- package/chunks/{2NXPFUPZ.js → T6AQ34ZJ.js} +2 -2
- package/chunks/{2B3EPESP.js → TEGSUED7.js} +3 -1
- package/chunks/{4FZ45I6G.js → Z37XXMYQ.js} +1 -1
- package/collections.js +2 -2
- package/csp-origins.js +2 -2
- package/data-assets.js +2 -2
- package/data-connections.js +2 -2
- package/data-credentials.js +2 -2
- package/data-files.js +2 -2
- package/docs/authentication.md +30 -1
- package/extensions.js +2 -2
- package/glossaries.js +2 -2
- package/groups.d.ts +24 -12
- package/groups.js +2 -2
- package/identity-providers.js +2 -2
- package/index.d.ts +47 -40
- package/index.js +189 -84
- package/items.js +2 -2
- package/licenses.d.ts +1 -1
- package/licenses.js +2 -2
- package/package.json +2 -2
- package/qix.d.ts +19 -8
- package/qix.js +6 -4
- package/quotas.js +2 -2
- package/reload-tasks.js +2 -2
- package/reloads.d.ts +1 -1
- package/reloads.js +2 -2
- package/reports.d.ts +2 -0
- package/reports.js +2 -2
- package/roles.js +2 -2
- package/spaces.js +2 -2
- package/temp-contents.js +2 -2
- package/tenants.js +2 -2
- package/themes.js +2 -2
- package/transports.js +2 -2
- package/users.d.ts +2 -0
- package/users.js +2 -2
- package/web-integrations.js +2 -2
- package/web-notifications.js +2 -2
- package/webhooks.js +2 -2
package/groups.d.ts
CHANGED
|
@@ -74,6 +74,10 @@ type Group = {
|
|
|
74
74
|
assignedRoles?: AssignedRoles;
|
|
75
75
|
/** The timestamp for when the group record was created. */
|
|
76
76
|
createdAt: string;
|
|
77
|
+
/** Id of user that created role. */
|
|
78
|
+
readonly createdBy?: string;
|
|
79
|
+
/** A description of a custom group. */
|
|
80
|
+
description?: string;
|
|
77
81
|
/** The unique identifier for the group */
|
|
78
82
|
readonly id: string;
|
|
79
83
|
/** The timestamp for when the group record was last updated. */
|
|
@@ -87,10 +91,14 @@ type Group = {
|
|
|
87
91
|
};
|
|
88
92
|
/** The name of the group. */
|
|
89
93
|
name: string;
|
|
94
|
+
/** The type of provider for the group. */
|
|
95
|
+
providerType?: "idp" | "custom";
|
|
90
96
|
/** The state of the group. */
|
|
91
97
|
status: "active" | "disabled";
|
|
92
98
|
/** The tenant identifier associated with the given group */
|
|
93
99
|
tenantId: string;
|
|
100
|
+
/** Id of user that last updated this role. */
|
|
101
|
+
readonly updatedBy?: string;
|
|
94
102
|
};
|
|
95
103
|
/**
|
|
96
104
|
* A JSON Patch document.
|
|
@@ -98,8 +106,8 @@ type Group = {
|
|
|
98
106
|
type GroupPatch = {
|
|
99
107
|
/** The operation to be performed. Currently "replace" is the only supported operation. */
|
|
100
108
|
op: "replace";
|
|
101
|
-
/** Attribute name of a field of the Groups entity. */
|
|
102
|
-
path: "assignedRoles";
|
|
109
|
+
/** Attribute name of a field of the Groups entity. "Name" and "description" is only available for custom groups. */
|
|
110
|
+
path: "assignedRoles" | "name" | "description";
|
|
103
111
|
/** The roles to assign to the group (limit of 100 roles per group). */
|
|
104
112
|
value: AssignedRolesRefIDs | AssignedRolesRefNames;
|
|
105
113
|
};
|
|
@@ -110,8 +118,12 @@ type GroupPatchSchema = GroupPatch[];
|
|
|
110
118
|
type GroupPostSchema = {
|
|
111
119
|
/** The roles to assign to the group (limit of 100 roles per group). */
|
|
112
120
|
assignedRoles?: AssignedRolesRefIDs | AssignedRolesRefNames;
|
|
121
|
+
/** The description of the group. */
|
|
122
|
+
description?: string;
|
|
113
123
|
/** The name of the group (maximum length of 256 characters). */
|
|
114
124
|
name: string;
|
|
125
|
+
/** The type of group provider. Must be "idp" or "custom". Defaults to "idp" if not provided. */
|
|
126
|
+
providerType?: "idp" | "custom";
|
|
115
127
|
/** The status of the created group within the tenant. Defaults to active if empty. */
|
|
116
128
|
status?: "active";
|
|
117
129
|
};
|
|
@@ -222,7 +234,7 @@ type GetGroupsHttpError = {
|
|
|
222
234
|
status: number;
|
|
223
235
|
};
|
|
224
236
|
/**
|
|
225
|
-
* Creates a group. The maximum number of groups a tenant can have is 10,000.
|
|
237
|
+
* Creates a new group. The maximum number of groups a tenant can have is 10,000. Group names are case-sensitive, and must be unique.
|
|
226
238
|
*
|
|
227
239
|
* @param body an object with the body content
|
|
228
240
|
* @throws CreateGroupHttpError
|
|
@@ -268,7 +280,7 @@ type FilterGroupsHttpError = {
|
|
|
268
280
|
status: number;
|
|
269
281
|
};
|
|
270
282
|
/**
|
|
271
|
-
* Returns the
|
|
283
|
+
* Returns the tenant's group settings, such as whether automatic group creation and IdP group synchronization are enabled or disabled, and roles assigned to system groups.
|
|
272
284
|
*
|
|
273
285
|
* @throws GetGroupsSettingsHttpError
|
|
274
286
|
*/
|
|
@@ -284,7 +296,7 @@ type GetGroupsSettingsHttpError = {
|
|
|
284
296
|
status: number;
|
|
285
297
|
};
|
|
286
298
|
/**
|
|
287
|
-
*
|
|
299
|
+
* Updates the tenant's group settings, such as whether automatic group creation and IdP group synchronization are enabled or disabled, and roles assigned to system groups.
|
|
288
300
|
*
|
|
289
301
|
* @param body an object with the body content
|
|
290
302
|
* @throws PatchGroupsSettingsHttpError
|
|
@@ -301,7 +313,7 @@ type PatchGroupsSettingsHttpError = {
|
|
|
301
313
|
status: number;
|
|
302
314
|
};
|
|
303
315
|
/**
|
|
304
|
-
*
|
|
316
|
+
* Deletes the requested group.
|
|
305
317
|
*
|
|
306
318
|
* @param groupId The ID of the group to delete.
|
|
307
319
|
* @throws DeleteGroupHttpError
|
|
@@ -335,7 +347,7 @@ type GetGroupHttpError = {
|
|
|
335
347
|
status: number;
|
|
336
348
|
};
|
|
337
349
|
/**
|
|
338
|
-
*
|
|
350
|
+
* Updates the requested group.
|
|
339
351
|
*
|
|
340
352
|
* @param groupId The ID of the group to update.
|
|
341
353
|
* @param body an object with the body content
|
|
@@ -365,7 +377,7 @@ interface GroupsAPI {
|
|
|
365
377
|
*/
|
|
366
378
|
getGroups: typeof getGroups;
|
|
367
379
|
/**
|
|
368
|
-
* Creates a group. The maximum number of groups a tenant can have is 10,000.
|
|
380
|
+
* Creates a new group. The maximum number of groups a tenant can have is 10,000. Group names are case-sensitive, and must be unique.
|
|
369
381
|
*
|
|
370
382
|
* @param body an object with the body content
|
|
371
383
|
* @throws CreateGroupHttpError
|
|
@@ -380,20 +392,20 @@ interface GroupsAPI {
|
|
|
380
392
|
*/
|
|
381
393
|
filterGroups: typeof filterGroups;
|
|
382
394
|
/**
|
|
383
|
-
* Returns the
|
|
395
|
+
* Returns the tenant's group settings, such as whether automatic group creation and IdP group synchronization are enabled or disabled, and roles assigned to system groups.
|
|
384
396
|
*
|
|
385
397
|
* @throws GetGroupsSettingsHttpError
|
|
386
398
|
*/
|
|
387
399
|
getGroupsSettings: typeof getGroupsSettings;
|
|
388
400
|
/**
|
|
389
|
-
*
|
|
401
|
+
* Updates the tenant's group settings, such as whether automatic group creation and IdP group synchronization are enabled or disabled, and roles assigned to system groups.
|
|
390
402
|
*
|
|
391
403
|
* @param body an object with the body content
|
|
392
404
|
* @throws PatchGroupsSettingsHttpError
|
|
393
405
|
*/
|
|
394
406
|
patchGroupsSettings: typeof patchGroupsSettings;
|
|
395
407
|
/**
|
|
396
|
-
*
|
|
408
|
+
* Deletes the requested group.
|
|
397
409
|
*
|
|
398
410
|
* @param groupId The ID of the group to delete.
|
|
399
411
|
* @throws DeleteGroupHttpError
|
|
@@ -407,7 +419,7 @@ interface GroupsAPI {
|
|
|
407
419
|
*/
|
|
408
420
|
getGroup: typeof getGroup;
|
|
409
421
|
/**
|
|
410
|
-
*
|
|
422
|
+
* Updates the requested group.
|
|
411
423
|
*
|
|
412
424
|
* @param groupId The ID of the group to update.
|
|
413
425
|
* @param body an object with the body content
|
package/groups.js
CHANGED
package/identity-providers.js
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { registerAuthModule, setDefaultHostConfig, getAccessToken, AuthAPI } from './auth.js';
|
|
2
|
+
import { QixAPI } from './qix.js';
|
|
3
3
|
import { ApiKeysAPI } from './api-keys.js';
|
|
4
4
|
import { AppsAPI } from './apps.js';
|
|
5
5
|
import { AuditsAPI } from './audits.js';
|
|
@@ -31,8 +31,8 @@ import { UsersAPI } from './users.js';
|
|
|
31
31
|
import { WebIntegrationsAPI } from './web-integrations.js';
|
|
32
32
|
import { WebNotificationsAPI } from './web-notifications.js';
|
|
33
33
|
import { WebhooksAPI } from './webhooks.js';
|
|
34
|
+
import { H as HostConfig } from './auth-types-PkN9CAF_.js';
|
|
34
35
|
import './global.types--37uwGji.js';
|
|
35
|
-
import './auth-types-PkN9CAF_.js';
|
|
36
36
|
|
|
37
37
|
declare const apiKeys: ApiKeysAPI;
|
|
38
38
|
declare const apps: AppsAPI;
|
|
@@ -56,8 +56,8 @@ declare const groups: GroupsAPI;
|
|
|
56
56
|
declare const identityProviders: IdentityProvidersAPI;
|
|
57
57
|
declare const items: ItemsAPI;
|
|
58
58
|
declare const licenses: LicensesAPI;
|
|
59
|
-
declare const qix: {
|
|
60
|
-
|
|
59
|
+
declare const qix: QixAPI & {
|
|
60
|
+
withHostConfig: (hostConfig: HostConfig | undefined) => QixAPI;
|
|
61
61
|
};
|
|
62
62
|
declare const quotas: QuotasAPI;
|
|
63
63
|
declare const reloadTasks: ReloadTasksAPI;
|
|
@@ -75,73 +75,80 @@ declare const webNotifications: WebNotificationsAPI;
|
|
|
75
75
|
declare const webhooks: WebhooksAPI;
|
|
76
76
|
interface QlikAPI {
|
|
77
77
|
/** Functions for the apiKeys api */
|
|
78
|
-
apiKeys:
|
|
78
|
+
apiKeys: ApiKeysAPI;
|
|
79
79
|
/** Functions for the apps api */
|
|
80
|
-
apps:
|
|
80
|
+
apps: AppsAPI;
|
|
81
81
|
/** Functions for the audits api */
|
|
82
|
-
audits:
|
|
82
|
+
audits: AuditsAPI;
|
|
83
83
|
/** Functions for the auth api */
|
|
84
|
-
auth:
|
|
84
|
+
auth: AuthAPI;
|
|
85
85
|
/** Functions for the automations api */
|
|
86
|
-
automations:
|
|
86
|
+
automations: AutomationsAPI;
|
|
87
87
|
/** Functions for the brands api */
|
|
88
|
-
brands:
|
|
88
|
+
brands: BrandsAPI;
|
|
89
89
|
/** Functions for the collections api */
|
|
90
|
-
collections:
|
|
90
|
+
collections: CollectionsAPI;
|
|
91
91
|
/** Functions for the cspOrigins api */
|
|
92
|
-
cspOrigins:
|
|
92
|
+
cspOrigins: CspOriginsAPI;
|
|
93
93
|
/** Functions for the dataAssets api */
|
|
94
|
-
dataAssets:
|
|
94
|
+
dataAssets: DataAssetsAPI;
|
|
95
95
|
/** Functions for the dataConnections api */
|
|
96
|
-
dataConnections:
|
|
96
|
+
dataConnections: DataConnectionsAPI;
|
|
97
97
|
/** Functions for the dataCredentials api */
|
|
98
|
-
dataCredentials:
|
|
98
|
+
dataCredentials: DataCredentialsAPI;
|
|
99
99
|
/** Functions for the dataFiles api */
|
|
100
|
-
dataFiles:
|
|
100
|
+
dataFiles: DataFilesAPI;
|
|
101
101
|
/** Functions for the extensions api */
|
|
102
|
-
extensions:
|
|
102
|
+
extensions: ExtensionsAPI;
|
|
103
103
|
/** Functions for the glossaries api */
|
|
104
|
-
glossaries:
|
|
104
|
+
glossaries: GlossariesAPI;
|
|
105
105
|
/** Functions for the groups api */
|
|
106
|
-
groups:
|
|
106
|
+
groups: GroupsAPI;
|
|
107
107
|
/** Functions for the identityProviders api */
|
|
108
|
-
identityProviders:
|
|
108
|
+
identityProviders: IdentityProvidersAPI;
|
|
109
109
|
/** Functions for the items api */
|
|
110
|
-
items:
|
|
110
|
+
items: ItemsAPI;
|
|
111
111
|
/** Functions for the licenses api */
|
|
112
|
-
licenses:
|
|
112
|
+
licenses: LicensesAPI;
|
|
113
113
|
/** Functions for the qix api */
|
|
114
|
-
qix:
|
|
114
|
+
qix: QixAPI;
|
|
115
115
|
/** Functions for the quotas api */
|
|
116
|
-
quotas:
|
|
116
|
+
quotas: QuotasAPI;
|
|
117
117
|
/** Functions for the reloadTasks api */
|
|
118
|
-
reloadTasks:
|
|
118
|
+
reloadTasks: ReloadTasksAPI;
|
|
119
119
|
/** Functions for the reloads api */
|
|
120
|
-
reloads:
|
|
120
|
+
reloads: ReloadsAPI;
|
|
121
121
|
/** Functions for the reports api */
|
|
122
|
-
reports:
|
|
122
|
+
reports: ReportsAPI;
|
|
123
123
|
/** Functions for the roles api */
|
|
124
|
-
roles:
|
|
124
|
+
roles: RolesAPI;
|
|
125
125
|
/** Functions for the spaces api */
|
|
126
|
-
spaces:
|
|
126
|
+
spaces: SpacesAPI;
|
|
127
127
|
/** Functions for the tempContents api */
|
|
128
|
-
tempContents:
|
|
128
|
+
tempContents: TempContentsAPI;
|
|
129
129
|
/** Functions for the tenants api */
|
|
130
|
-
tenants:
|
|
130
|
+
tenants: TenantsAPI;
|
|
131
131
|
/** Functions for the themes api */
|
|
132
|
-
themes:
|
|
132
|
+
themes: ThemesAPI;
|
|
133
133
|
/** Functions for the transports api */
|
|
134
|
-
transports:
|
|
134
|
+
transports: TransportsAPI;
|
|
135
135
|
/** Functions for the users api */
|
|
136
|
-
users:
|
|
136
|
+
users: UsersAPI;
|
|
137
137
|
/** Functions for the webIntegrations api */
|
|
138
|
-
webIntegrations:
|
|
138
|
+
webIntegrations: WebIntegrationsAPI;
|
|
139
139
|
/** Functions for the webNotifications api */
|
|
140
|
-
webNotifications:
|
|
140
|
+
webNotifications: WebNotificationsAPI;
|
|
141
141
|
/** Functions for the webhooks api */
|
|
142
|
-
webhooks:
|
|
142
|
+
webhooks: WebhooksAPI;
|
|
143
143
|
}
|
|
144
|
+
declare const createQlikApi: (props?: {
|
|
145
|
+
hostConfig?: HostConfig;
|
|
146
|
+
}) => QlikAPI;
|
|
144
147
|
/** Javascript/Typescript bindings to Qlik's platform API's */
|
|
145
|
-
declare const api: QlikAPI
|
|
148
|
+
declare const api: QlikAPI & {
|
|
149
|
+
createQlikApi: (props?: {
|
|
150
|
+
hostConfig?: HostConfig;
|
|
151
|
+
}) => QlikAPI;
|
|
152
|
+
};
|
|
146
153
|
|
|
147
|
-
export { type QlikAPI, apiKeys, apps, audits, auth, automations, brands, collections, cspOrigins, dataAssets, dataConnections, dataCredentials, dataFiles, api as default, extensions, glossaries, groups, identityProviders, items, licenses, qix, quotas, reloadTasks, reloads, reports, roles, spaces, tempContents, tenants, themes, transports, users, webIntegrations, webNotifications, webhooks };
|
|
154
|
+
export { type QlikAPI, apiKeys, apps, audits, auth, automations, brands, collections, createQlikApi, cspOrigins, dataAssets, dataConnections, dataCredentials, dataFiles, api as default, extensions, glossaries, groups, identityProviders, items, licenses, qix, quotas, reloadTasks, reloads, reports, roles, spaces, tempContents, tenants, themes, transports, users, webIntegrations, webNotifications, webhooks };
|