@qlik/api 1.27.0 → 1.29.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.d.ts +20 -0
- package/api-keys.js +2 -2
- package/apps.d.ts +134 -5
- package/apps.js +2 -2
- package/audits.d.ts +1 -1
- package/audits.js +2 -2
- package/auth.js +2 -2
- package/automations.d.ts +13 -1
- package/automations.js +2 -2
- package/brands.js +2 -2
- package/chunks/{V3TZ54UE.js → 2B7YWDQC.js} +3 -3
- package/chunks/{4K3CNR7C.js → 5MRIMVKS.js} +1 -1
- package/chunks/{55SZVSAG.js → 5XNSGPGZ.js} +1 -1
- package/chunks/{EOGHK2R4.js → KYCIMQ4L.js} +1 -1
- package/chunks/{WY7IOA3Q.js → WQYEWU54.js} +2 -2
- package/collections.d.ts +1 -1
- package/collections.js +2 -2
- package/csp-origins.js +2 -2
- package/data-assets.d.ts +1 -1
- package/data-assets.js +2 -2
- package/data-connections.d.ts +82 -0
- package/data-connections.js +2 -2
- package/data-credentials.d.ts +28 -0
- package/data-credentials.js +2 -2
- package/data-files.d.ts +90 -0
- package/data-files.js +2 -2
- package/extensions.js +2 -2
- package/glossaries.d.ts +15 -1
- package/glossaries.js +2 -2
- package/groups.d.ts +70 -0
- package/groups.js +2 -2
- package/identity-providers.js +2 -2
- package/index.js +8 -4
- package/items.d.ts +1 -1
- package/items.js +2 -2
- package/licenses.d.ts +191 -0
- package/licenses.js +2 -2
- package/package.json +4 -4
- package/qix.d.ts +26 -2
- package/qix.js +2 -2
- package/quotas.js +2 -2
- package/reload-tasks.d.ts +20 -0
- package/reload-tasks.js +2 -2
- package/reloads.d.ts +38 -1
- package/reloads.js +2 -2
- package/reports.d.ts +157 -17
- package/reports.js +2 -2
- package/roles.d.ts +30 -0
- package/roles.js +2 -2
- package/spaces.d.ts +225 -38
- package/spaces.js +47 -2
- package/temp-contents.js +2 -2
- package/tenants.d.ts +47 -1
- package/tenants.js +2 -2
- package/themes.js +2 -2
- package/transports.d.ts +9 -0
- package/transports.js +2 -2
- package/users.d.ts +88 -0
- package/users.js +2 -2
- package/web-integrations.d.ts +20 -0
- package/web-integrations.js +2 -2
- package/web-notifications.d.ts +19 -0
- package/web-notifications.js +2 -2
- package/webhooks.d.ts +3 -3
- package/webhooks.js +2 -2
package/spaces.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import './auth-types-PkN9CAF_.js';
|
|
|
4
4
|
/**
|
|
5
5
|
* The supported actions for user-created spaces.
|
|
6
6
|
*/
|
|
7
|
-
type ActionName = "change_owner" | "create" | "read" | "update" | "delete" | "publish";
|
|
7
|
+
type ActionName = "change_owner" | "create" | "read" | "update" | "delete" | "publish" | "link_environment";
|
|
8
8
|
type Assignment = {
|
|
9
9
|
/** The userId or groupId based on the type. */
|
|
10
10
|
assigneeId: string;
|
|
@@ -58,32 +58,6 @@ type Assignments = {
|
|
|
58
58
|
count: number;
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
|
-
/**
|
|
62
|
-
* An Environment is an environment context simplifying the grouping of spaces into environments by allowing users to control it on the environment instead of on the spaces themselves.
|
|
63
|
-
*/
|
|
64
|
-
type Environment = {
|
|
65
|
-
/** The date and time when the environment was created. */
|
|
66
|
-
readonly createdAt?: string;
|
|
67
|
-
/** The ID of the user who created the environment. */
|
|
68
|
-
readonly createdBy?: string;
|
|
69
|
-
/** The description of the environment. */
|
|
70
|
-
description?: string;
|
|
71
|
-
/** A unique identifier for the environment, for example, 62716f4b39b865ece543cd45. */
|
|
72
|
-
readonly id: string;
|
|
73
|
-
readonly links: {
|
|
74
|
-
self: Link;
|
|
75
|
-
};
|
|
76
|
-
/** The name of the environment. */
|
|
77
|
-
name: string;
|
|
78
|
-
/** The ID for the environment owner. */
|
|
79
|
-
readonly ownerId?: string;
|
|
80
|
-
/** The ID for the tenant, for example, xqGQ0k66vSR8f9G7J-vYtHZQkiYrCpct. */
|
|
81
|
-
readonly tenantId: string;
|
|
82
|
-
/** The date and time when the environment was updated. */
|
|
83
|
-
readonly updatedAt?: string;
|
|
84
|
-
/** The name of the environment. */
|
|
85
|
-
variables?: Variable[];
|
|
86
|
-
};
|
|
87
61
|
/**
|
|
88
62
|
* An error object.
|
|
89
63
|
*/
|
|
@@ -140,10 +114,78 @@ type Link = {
|
|
|
140
114
|
* - Data: consumer, dataconsumer, datapreview, facilitator, operator, producer, publisher
|
|
141
115
|
*/
|
|
142
116
|
type RoleType = "consumer" | "contributor" | "dataconsumer" | "datapreview" | "facilitator" | "operator" | "producer" | "publisher" | "basicconsumer" | "codeveloper";
|
|
117
|
+
type Share = {
|
|
118
|
+
/** The userId or groupId based on the type. */
|
|
119
|
+
assigneeId: string;
|
|
120
|
+
readonly createdAt?: string;
|
|
121
|
+
/** The ID of the user who created the share. */
|
|
122
|
+
readonly createdBy?: string;
|
|
123
|
+
/** If the share is disabled (effective ONLY for link shares). */
|
|
124
|
+
disabled?: boolean;
|
|
125
|
+
readonly id: string;
|
|
126
|
+
readonly links?: {
|
|
127
|
+
self: Link;
|
|
128
|
+
space?: Link;
|
|
129
|
+
};
|
|
130
|
+
/** The ID of the shared resource. */
|
|
131
|
+
resourceId: string;
|
|
132
|
+
/** The name of the shared resource. */
|
|
133
|
+
resourceName?: string;
|
|
134
|
+
/** The type of the shared resource. */
|
|
135
|
+
resourceType: "app";
|
|
136
|
+
/** The roles assigned to the assigneeId. */
|
|
137
|
+
roles?: ShareRoleType[];
|
|
138
|
+
readonly spaceId: string;
|
|
139
|
+
readonly tenantId: string;
|
|
140
|
+
type: ShareType;
|
|
141
|
+
readonly updatedAt?: string;
|
|
142
|
+
/** The ID of the user who updated the share. */
|
|
143
|
+
readonly updatedBy?: string;
|
|
144
|
+
};
|
|
145
|
+
type ShareCreate = {
|
|
146
|
+
/** The userId or groupId based on the type. */
|
|
147
|
+
assigneeId: string;
|
|
148
|
+
/** The resource id for the shared item. */
|
|
149
|
+
resourceId: string;
|
|
150
|
+
/** The resource type for the shared item. */
|
|
151
|
+
resourceType: string;
|
|
152
|
+
/** The roles assigned to the assigneeId. */
|
|
153
|
+
roles: ShareRoleType[];
|
|
154
|
+
type: ShareType;
|
|
155
|
+
};
|
|
156
|
+
type SharePatch = {
|
|
157
|
+
/** The operation to be performed. */
|
|
158
|
+
op: "replace";
|
|
159
|
+
/** Field of Share to be patched (updated). */
|
|
160
|
+
path: "/roles" | "/disabled";
|
|
161
|
+
/** The value to be used within the operations.
|
|
162
|
+
* - roles: The roles assigned to the assigneeId.
|
|
163
|
+
* - disabled: To disable the share (effective ONLY for link shares). */
|
|
164
|
+
value: string;
|
|
165
|
+
}[];
|
|
166
|
+
/**
|
|
167
|
+
* Supported roles by space type:
|
|
168
|
+
* - Shared: consumer
|
|
169
|
+
* - Managed: consumer, contributor
|
|
170
|
+
*/
|
|
171
|
+
type ShareRoleType = unknown;
|
|
172
|
+
type ShareType = "user" | "group" | "link";
|
|
143
173
|
/**
|
|
144
174
|
* The supported roles for Shared spaces.
|
|
145
175
|
*/
|
|
146
176
|
type SharedSpaceRoleType = "facilitator" | "consumer" | "producer" | "dataconsumer" | "codeveloper";
|
|
177
|
+
type Shares = {
|
|
178
|
+
data?: Share[];
|
|
179
|
+
readonly links?: {
|
|
180
|
+
next?: Link;
|
|
181
|
+
prev?: Link;
|
|
182
|
+
self: Link;
|
|
183
|
+
};
|
|
184
|
+
readonly meta?: {
|
|
185
|
+
/** The total number of Shares matching the current filter. */
|
|
186
|
+
count: number;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
147
189
|
/**
|
|
148
190
|
* A space is a security context simplifying the management of access control by allowing users to control it on the containers instead of on the resources themselves.
|
|
149
191
|
*/
|
|
@@ -154,8 +196,6 @@ type Space = {
|
|
|
154
196
|
readonly createdBy?: string;
|
|
155
197
|
/** The description of the space. Personal spaces do not have a description. */
|
|
156
198
|
description?: string;
|
|
157
|
-
/** An Environment is an environment context simplifying the grouping of spaces into environments by allowing users to control it on the environment instead of on the spaces themselves. */
|
|
158
|
-
environment?: Environment;
|
|
159
199
|
/** A unique identifier for the space, for example, 62716f4b39b865ece543cd45. */
|
|
160
200
|
readonly id: string;
|
|
161
201
|
readonly links: {
|
|
@@ -238,12 +278,6 @@ type Spaces = {
|
|
|
238
278
|
};
|
|
239
279
|
};
|
|
240
280
|
};
|
|
241
|
-
type Variable = {
|
|
242
|
-
/** The Key */
|
|
243
|
-
readonly key?: string;
|
|
244
|
-
/** The value. */
|
|
245
|
-
readonly value?: string;
|
|
246
|
-
};
|
|
247
281
|
/**
|
|
248
282
|
* Retrieves spaces that the current user has access to and match the query.
|
|
249
283
|
*
|
|
@@ -316,7 +350,7 @@ type GetSpaceTypesHttpError = {
|
|
|
316
350
|
status: 401 | 500;
|
|
317
351
|
};
|
|
318
352
|
/**
|
|
319
|
-
* Deletes a space.
|
|
353
|
+
* Deletes a space. Ensure that you first delete all resources from the space to avoid orphaning content.
|
|
320
354
|
*
|
|
321
355
|
* @param spaceId The ID of the space to delete.
|
|
322
356
|
* @throws DeleteSpaceHttpError
|
|
@@ -489,6 +523,118 @@ type UpdateSpaceAssignmentHttpError = {
|
|
|
489
523
|
headers: Headers;
|
|
490
524
|
status: 401 | 403 | 404 | 500;
|
|
491
525
|
};
|
|
526
|
+
/**
|
|
527
|
+
* Retrieves the shares of the space matching the query.
|
|
528
|
+
*
|
|
529
|
+
* @param spaceId The ID of the space containing the shares.
|
|
530
|
+
* @param query an object with query parameters
|
|
531
|
+
* @throws GetSpaceSharesHttpError
|
|
532
|
+
*/
|
|
533
|
+
declare const getSpaceShares: (spaceId: string, query: {
|
|
534
|
+
/** The ID of the group to which the resource is shared. */
|
|
535
|
+
groupId?: string;
|
|
536
|
+
/** Maximum number of shares to return. */
|
|
537
|
+
limit?: number;
|
|
538
|
+
/** The name of the shared resource. */
|
|
539
|
+
name?: string;
|
|
540
|
+
/** The next page cursor. Next links make use of this. */
|
|
541
|
+
next?: string;
|
|
542
|
+
/** The previous page cursor. Previous links make use of this. */
|
|
543
|
+
prev?: string;
|
|
544
|
+
/** The ID of the shared resource. */
|
|
545
|
+
resourceId?: string;
|
|
546
|
+
/** The type of the shared resource. */
|
|
547
|
+
resourceType?: string;
|
|
548
|
+
/** The type of share. `user` shares assign to a specific user, `group` shares assign to a specific group, and `link` shares provide anonymous access to a resource. */
|
|
549
|
+
type?: ShareType;
|
|
550
|
+
/** The ID of the user to which the resource is shared. */
|
|
551
|
+
userId?: string;
|
|
552
|
+
}, options?: ApiCallOptions) => Promise<GetSpaceSharesHttpResponse>;
|
|
553
|
+
type GetSpaceSharesHttpResponse = {
|
|
554
|
+
data: Shares;
|
|
555
|
+
headers: Headers;
|
|
556
|
+
status: 200;
|
|
557
|
+
prev?: (options?: ApiCallOptions) => Promise<GetSpaceSharesHttpResponse>;
|
|
558
|
+
next?: (options?: ApiCallOptions) => Promise<GetSpaceSharesHttpResponse>;
|
|
559
|
+
};
|
|
560
|
+
type GetSpaceSharesHttpError = {
|
|
561
|
+
data: Errors;
|
|
562
|
+
headers: Headers;
|
|
563
|
+
status: 401 | 403 | 404 | 500;
|
|
564
|
+
};
|
|
565
|
+
/**
|
|
566
|
+
* Create a space share
|
|
567
|
+
*
|
|
568
|
+
* @param spaceId The ID of the space of the share.
|
|
569
|
+
* @param body an object with the body content
|
|
570
|
+
* @throws CreateSpaceShareHttpError
|
|
571
|
+
*/
|
|
572
|
+
declare const createSpaceShare: (spaceId: string, body: ShareCreate, options?: ApiCallOptions) => Promise<CreateSpaceShareHttpResponse>;
|
|
573
|
+
type CreateSpaceShareHttpResponse = {
|
|
574
|
+
data: Share;
|
|
575
|
+
headers: Headers;
|
|
576
|
+
status: 201;
|
|
577
|
+
};
|
|
578
|
+
type CreateSpaceShareHttpError = {
|
|
579
|
+
data: Errors;
|
|
580
|
+
headers: Headers;
|
|
581
|
+
status: 401 | 403 | 404 | 409 | 500;
|
|
582
|
+
};
|
|
583
|
+
/**
|
|
584
|
+
* Deletes a space share.
|
|
585
|
+
*
|
|
586
|
+
* @param spaceId The ID of the space to which the share belongs.
|
|
587
|
+
* @param shareId The ID of the share to delete.
|
|
588
|
+
* @throws DeleteSpaceShareHttpError
|
|
589
|
+
*/
|
|
590
|
+
declare const deleteSpaceShare: (spaceId: string, shareId: string, options?: ApiCallOptions) => Promise<DeleteSpaceShareHttpResponse>;
|
|
591
|
+
type DeleteSpaceShareHttpResponse = {
|
|
592
|
+
data: void;
|
|
593
|
+
headers: Headers;
|
|
594
|
+
status: 204;
|
|
595
|
+
};
|
|
596
|
+
type DeleteSpaceShareHttpError = {
|
|
597
|
+
data: Errors;
|
|
598
|
+
headers: Headers;
|
|
599
|
+
status: 401 | 403 | 404 | 500;
|
|
600
|
+
};
|
|
601
|
+
/**
|
|
602
|
+
* Retrieves a single space share by ID.
|
|
603
|
+
*
|
|
604
|
+
* @param spaceId The ID of the space to which the share belongs.
|
|
605
|
+
* @param shareId The ID of the share to retrieve.
|
|
606
|
+
* @throws GetSpaceShareHttpError
|
|
607
|
+
*/
|
|
608
|
+
declare const getSpaceShare: (spaceId: string, shareId: string, options?: ApiCallOptions) => Promise<GetSpaceShareHttpResponse>;
|
|
609
|
+
type GetSpaceShareHttpResponse = {
|
|
610
|
+
data: Share;
|
|
611
|
+
headers: Headers;
|
|
612
|
+
status: 200;
|
|
613
|
+
};
|
|
614
|
+
type GetSpaceShareHttpError = {
|
|
615
|
+
data: Errors;
|
|
616
|
+
headers: Headers;
|
|
617
|
+
status: 401 | 403 | 404 | 500;
|
|
618
|
+
};
|
|
619
|
+
/**
|
|
620
|
+
* Updates properties of a space share (roles, and disabled state for link shares).
|
|
621
|
+
*
|
|
622
|
+
* @param spaceId The ID of the space to which the share belongs.
|
|
623
|
+
* @param shareId The ID of the share to update.
|
|
624
|
+
* @param body an object with the body content
|
|
625
|
+
* @throws PatchShareHttpError
|
|
626
|
+
*/
|
|
627
|
+
declare const patchShare: (spaceId: string, shareId: string, body: SharePatch, options?: ApiCallOptions) => Promise<PatchShareHttpResponse>;
|
|
628
|
+
type PatchShareHttpResponse = {
|
|
629
|
+
data: Share;
|
|
630
|
+
headers: Headers;
|
|
631
|
+
status: 200;
|
|
632
|
+
};
|
|
633
|
+
type PatchShareHttpError = {
|
|
634
|
+
data: Errors;
|
|
635
|
+
headers: Headers;
|
|
636
|
+
status: 401 | 403 | 404 | 500;
|
|
637
|
+
};
|
|
492
638
|
/**
|
|
493
639
|
* Clears the cache for spaces api requests.
|
|
494
640
|
*/
|
|
@@ -515,7 +661,7 @@ interface SpacesAPI {
|
|
|
515
661
|
*/
|
|
516
662
|
getSpaceTypes: typeof getSpaceTypes;
|
|
517
663
|
/**
|
|
518
|
-
* Deletes a space.
|
|
664
|
+
* Deletes a space. Ensure that you first delete all resources from the space to avoid orphaning content.
|
|
519
665
|
*
|
|
520
666
|
* @param spaceId The ID of the space to delete.
|
|
521
667
|
* @throws DeleteSpaceHttpError
|
|
@@ -585,6 +731,47 @@ interface SpacesAPI {
|
|
|
585
731
|
* @throws UpdateSpaceAssignmentHttpError
|
|
586
732
|
*/
|
|
587
733
|
updateSpaceAssignment: typeof updateSpaceAssignment;
|
|
734
|
+
/**
|
|
735
|
+
* Retrieves the shares of the space matching the query.
|
|
736
|
+
*
|
|
737
|
+
* @param spaceId The ID of the space containing the shares.
|
|
738
|
+
* @param query an object with query parameters
|
|
739
|
+
* @throws GetSpaceSharesHttpError
|
|
740
|
+
*/
|
|
741
|
+
getSpaceShares: typeof getSpaceShares;
|
|
742
|
+
/**
|
|
743
|
+
* Create a space share
|
|
744
|
+
*
|
|
745
|
+
* @param spaceId The ID of the space of the share.
|
|
746
|
+
* @param body an object with the body content
|
|
747
|
+
* @throws CreateSpaceShareHttpError
|
|
748
|
+
*/
|
|
749
|
+
createSpaceShare: typeof createSpaceShare;
|
|
750
|
+
/**
|
|
751
|
+
* Deletes a space share.
|
|
752
|
+
*
|
|
753
|
+
* @param spaceId The ID of the space to which the share belongs.
|
|
754
|
+
* @param shareId The ID of the share to delete.
|
|
755
|
+
* @throws DeleteSpaceShareHttpError
|
|
756
|
+
*/
|
|
757
|
+
deleteSpaceShare: typeof deleteSpaceShare;
|
|
758
|
+
/**
|
|
759
|
+
* Retrieves a single space share by ID.
|
|
760
|
+
*
|
|
761
|
+
* @param spaceId The ID of the space to which the share belongs.
|
|
762
|
+
* @param shareId The ID of the share to retrieve.
|
|
763
|
+
* @throws GetSpaceShareHttpError
|
|
764
|
+
*/
|
|
765
|
+
getSpaceShare: typeof getSpaceShare;
|
|
766
|
+
/**
|
|
767
|
+
* Updates properties of a space share (roles, and disabled state for link shares).
|
|
768
|
+
*
|
|
769
|
+
* @param spaceId The ID of the space to which the share belongs.
|
|
770
|
+
* @param shareId The ID of the share to update.
|
|
771
|
+
* @param body an object with the body content
|
|
772
|
+
* @throws PatchShareHttpError
|
|
773
|
+
*/
|
|
774
|
+
patchShare: typeof patchShare;
|
|
588
775
|
/**
|
|
589
776
|
* Clears the cache for spaces api requests.
|
|
590
777
|
*/
|
|
@@ -595,4 +782,4 @@ interface SpacesAPI {
|
|
|
595
782
|
*/
|
|
596
783
|
declare const spacesExport: SpacesAPI;
|
|
597
784
|
|
|
598
|
-
export { type ActionName, type Assignment, type AssignmentCreate, type AssignmentType, type AssignmentUpdate, type Assignments, type CreateSpaceAssignmentHttpError, type CreateSpaceAssignmentHttpResponse, type CreateSpaceHttpError, type CreateSpaceHttpResponse, type DeleteSpaceAssignmentHttpError, type DeleteSpaceAssignmentHttpResponse, type DeleteSpaceHttpError, type DeleteSpaceHttpResponse, type
|
|
785
|
+
export { type ActionName, type Assignment, type AssignmentCreate, type AssignmentType, type AssignmentUpdate, type Assignments, type CreateSpaceAssignmentHttpError, type CreateSpaceAssignmentHttpResponse, type CreateSpaceHttpError, type CreateSpaceHttpResponse, type CreateSpaceShareHttpError, type CreateSpaceShareHttpResponse, type DeleteSpaceAssignmentHttpError, type DeleteSpaceAssignmentHttpResponse, type DeleteSpaceHttpError, type DeleteSpaceHttpResponse, type DeleteSpaceShareHttpError, type DeleteSpaceShareHttpResponse, type Error, type Errors, type GetSpaceAssignmentHttpError, type GetSpaceAssignmentHttpResponse, type GetSpaceAssignmentsHttpError, type GetSpaceAssignmentsHttpResponse, type GetSpaceHttpError, type GetSpaceHttpResponse, type GetSpaceShareHttpError, type GetSpaceShareHttpResponse, type GetSpaceSharesHttpError, type GetSpaceSharesHttpResponse, type GetSpaceTypesHttpError, type GetSpaceTypesHttpResponse, type GetSpacesHttpError, type GetSpacesHttpResponse, type Link, type PatchShareHttpError, type PatchShareHttpResponse, type PatchSpaceHttpError, type PatchSpaceHttpResponse, type RoleType, type Share, type ShareCreate, type SharePatch, type ShareRoleType, type ShareType, type SharedSpaceRoleType, type Shares, type Space, type SpaceCreate, type SpacePatch, type SpaceType, type SpaceTypes, type SpaceUpdate, type Spaces, type SpacesAPI, type UpdateSpaceAssignmentHttpError, type UpdateSpaceAssignmentHttpResponse, type UpdateSpaceHttpError, type UpdateSpaceHttpResponse, clearCache, createSpace, createSpaceAssignment, createSpaceShare, spacesExport as default, deleteSpace, deleteSpaceAssignment, deleteSpaceShare, getSpace, getSpaceAssignment, getSpaceAssignments, getSpaceShare, getSpaceShares, getSpaceTypes, getSpaces, patchShare, patchSpace, updateSpace, updateSpaceAssignment };
|
package/spaces.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./chunks/
|
|
5
|
-
import "./chunks/
|
|
4
|
+
} from "./chunks/WQYEWU54.js";
|
|
5
|
+
import "./chunks/2B7YWDQC.js";
|
|
6
6
|
import "./chunks/2ZQ3ZX7F.js";
|
|
7
7
|
|
|
8
8
|
// src/public/rest/spaces.ts
|
|
@@ -87,6 +87,41 @@ var updateSpaceAssignment = async (spaceId, assignmentId, body, options) => invo
|
|
|
87
87
|
contentType: "application/json",
|
|
88
88
|
options
|
|
89
89
|
});
|
|
90
|
+
var getSpaceShares = async (spaceId, query, options) => invokeFetch("spaces", {
|
|
91
|
+
method: "get",
|
|
92
|
+
pathTemplate: "/api/v1/spaces/{spaceId}/shares",
|
|
93
|
+
pathVariables: { spaceId },
|
|
94
|
+
query,
|
|
95
|
+
options
|
|
96
|
+
});
|
|
97
|
+
var createSpaceShare = async (spaceId, body, options) => invokeFetch("spaces", {
|
|
98
|
+
method: "post",
|
|
99
|
+
pathTemplate: "/api/v1/spaces/{spaceId}/shares",
|
|
100
|
+
pathVariables: { spaceId },
|
|
101
|
+
body,
|
|
102
|
+
contentType: "application/json",
|
|
103
|
+
options
|
|
104
|
+
});
|
|
105
|
+
var deleteSpaceShare = async (spaceId, shareId, options) => invokeFetch("spaces", {
|
|
106
|
+
method: "delete",
|
|
107
|
+
pathTemplate: "/api/v1/spaces/{spaceId}/shares/{shareId}",
|
|
108
|
+
pathVariables: { spaceId, shareId },
|
|
109
|
+
options
|
|
110
|
+
});
|
|
111
|
+
var getSpaceShare = async (spaceId, shareId, options) => invokeFetch("spaces", {
|
|
112
|
+
method: "get",
|
|
113
|
+
pathTemplate: "/api/v1/spaces/{spaceId}/shares/{shareId}",
|
|
114
|
+
pathVariables: { spaceId, shareId },
|
|
115
|
+
options
|
|
116
|
+
});
|
|
117
|
+
var patchShare = async (spaceId, shareId, body, options) => invokeFetch("spaces", {
|
|
118
|
+
method: "patch",
|
|
119
|
+
pathTemplate: "/api/v1/spaces/{spaceId}/shares/{shareId}",
|
|
120
|
+
pathVariables: { spaceId, shareId },
|
|
121
|
+
body,
|
|
122
|
+
contentType: "application/json",
|
|
123
|
+
options
|
|
124
|
+
});
|
|
90
125
|
function clearCache() {
|
|
91
126
|
return clearApiCache("spaces");
|
|
92
127
|
}
|
|
@@ -103,6 +138,11 @@ var spacesExport = {
|
|
|
103
138
|
deleteSpaceAssignment,
|
|
104
139
|
getSpaceAssignment,
|
|
105
140
|
updateSpaceAssignment,
|
|
141
|
+
getSpaceShares,
|
|
142
|
+
createSpaceShare,
|
|
143
|
+
deleteSpaceShare,
|
|
144
|
+
getSpaceShare,
|
|
145
|
+
patchShare,
|
|
106
146
|
clearCache
|
|
107
147
|
};
|
|
108
148
|
var spaces_default = spacesExport;
|
|
@@ -110,14 +150,19 @@ export {
|
|
|
110
150
|
clearCache,
|
|
111
151
|
createSpace,
|
|
112
152
|
createSpaceAssignment,
|
|
153
|
+
createSpaceShare,
|
|
113
154
|
spaces_default as default,
|
|
114
155
|
deleteSpace,
|
|
115
156
|
deleteSpaceAssignment,
|
|
157
|
+
deleteSpaceShare,
|
|
116
158
|
getSpace,
|
|
117
159
|
getSpaceAssignment,
|
|
118
160
|
getSpaceAssignments,
|
|
161
|
+
getSpaceShare,
|
|
162
|
+
getSpaceShares,
|
|
119
163
|
getSpaceTypes,
|
|
120
164
|
getSpaces,
|
|
165
|
+
patchShare,
|
|
121
166
|
patchSpace,
|
|
122
167
|
updateSpace,
|
|
123
168
|
updateSpaceAssignment
|
package/temp-contents.js
CHANGED
package/tenants.d.ts
CHANGED
|
@@ -25,6 +25,16 @@ type Error = {
|
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* The error response object describing the error from the handling of an HTTP request.
|
|
28
|
+
* @example
|
|
29
|
+
* {
|
|
30
|
+
* errors: [
|
|
31
|
+
* {
|
|
32
|
+
* code: "TENANTS-8",
|
|
33
|
+
* title: "Not found"
|
|
34
|
+
* }
|
|
35
|
+
* ],
|
|
36
|
+
* traceId: "000000000000000079cf1ebeae103de1"
|
|
37
|
+
* }
|
|
28
38
|
*/
|
|
29
39
|
type Errors = {
|
|
30
40
|
/** An array of errors related to the operation. */
|
|
@@ -43,6 +53,7 @@ type Tenant = {
|
|
|
43
53
|
/** The datacenter where the tenant is located. */
|
|
44
54
|
datacenter?: string;
|
|
45
55
|
enableAnalyticCreation?: boolean;
|
|
56
|
+
enableAppOpeningFeedback?: boolean;
|
|
46
57
|
/** List of case insensitive hostnames that are mapped to the tenant. The first record maps to the display name and the subsequent entries are aliases. */
|
|
47
58
|
hostnames?: string[];
|
|
48
59
|
/** The unique tenant identifier. */
|
|
@@ -116,11 +127,46 @@ type TenantPatchErrors = {
|
|
|
116
127
|
title: string;
|
|
117
128
|
}[];
|
|
118
129
|
};
|
|
130
|
+
/**
|
|
131
|
+
* @example
|
|
132
|
+
* [
|
|
133
|
+
* {
|
|
134
|
+
* op: "replace",
|
|
135
|
+
* path: "/name",
|
|
136
|
+
* value: "Corp"
|
|
137
|
+
* },
|
|
138
|
+
* {
|
|
139
|
+
* op: "replace",
|
|
140
|
+
* path: "/hostnames/1",
|
|
141
|
+
* value: "example-tenant.us.qlikcloud.com"
|
|
142
|
+
* },
|
|
143
|
+
* {
|
|
144
|
+
* op: "replace",
|
|
145
|
+
* path: "/autoAssignCreateSharedSpacesRoleToProfessionals",
|
|
146
|
+
* value: true
|
|
147
|
+
* },
|
|
148
|
+
* {
|
|
149
|
+
* op: "replace",
|
|
150
|
+
* path: "/autoAssignPrivateAnalyticsContentCreatorRoleToProfessionals",
|
|
151
|
+
* value: false
|
|
152
|
+
* },
|
|
153
|
+
* {
|
|
154
|
+
* op: "replace",
|
|
155
|
+
* path: "/autoAssignDataServicesContributorRoleToProfessionals",
|
|
156
|
+
* value: true
|
|
157
|
+
* },
|
|
158
|
+
* {
|
|
159
|
+
* op: "replace",
|
|
160
|
+
* path: "/enableAnalyticCreation",
|
|
161
|
+
* value: false
|
|
162
|
+
* }
|
|
163
|
+
* ]
|
|
164
|
+
*/
|
|
119
165
|
type TenantPatchSchema = {
|
|
120
166
|
/** The operation to be performed. */
|
|
121
167
|
op: "replace";
|
|
122
168
|
/** A JSON Pointer value that references a location within the target document where the operation is performed. */
|
|
123
|
-
path: "/name" | "/hostnames/1" | "/autoAssignCreateSharedSpacesRoleToProfessionals" | "/autoAssignPrivateAnalyticsContentCreatorRoleToProfessionals" | "/autoAssignDataServicesContributorRoleToProfessionals" | "/enableAnalyticCreation";
|
|
169
|
+
path: "/name" | "/hostnames/1" | "/autoAssignCreateSharedSpacesRoleToProfessionals" | "/autoAssignPrivateAnalyticsContentCreatorRoleToProfessionals" | "/autoAssignDataServicesContributorRoleToProfessionals" | "/enableAnalyticCreation" | "/enableAppOpeningFeedback";
|
|
124
170
|
/** The value to be used for this operation. */
|
|
125
171
|
value: string | boolean;
|
|
126
172
|
}[];
|
package/tenants.js
CHANGED
package/themes.js
CHANGED
package/transports.d.ts
CHANGED
|
@@ -72,6 +72,15 @@ type EmailConfigFieldPatch = {
|
|
|
72
72
|
/** The value to be used for this operation. */
|
|
73
73
|
value: string;
|
|
74
74
|
};
|
|
75
|
+
/**
|
|
76
|
+
* @example
|
|
77
|
+
* [
|
|
78
|
+
* {
|
|
79
|
+
* path: "/username",
|
|
80
|
+
* value: "New name"
|
|
81
|
+
* }
|
|
82
|
+
* ]
|
|
83
|
+
*/
|
|
75
84
|
type EmailConfigPatch = EmailConfigFieldPatch[];
|
|
76
85
|
type GetBasicAuthConfig = {
|
|
77
86
|
/** The email address that should appear in From field when sending emails with this account */
|
package/transports.js
CHANGED
package/users.d.ts
CHANGED
|
@@ -16,6 +16,13 @@ type AssignedGroups = {
|
|
|
16
16
|
}[];
|
|
17
17
|
/**
|
|
18
18
|
* An array of group reference names and provider type.
|
|
19
|
+
* @example
|
|
20
|
+
* [
|
|
21
|
+
* {
|
|
22
|
+
* name: "Developers",
|
|
23
|
+
* providerType: "custom"
|
|
24
|
+
* }
|
|
25
|
+
* ]
|
|
19
26
|
*/
|
|
20
27
|
type AssignedGroupsRefNames = {
|
|
21
28
|
/** The name of the group */
|
|
@@ -75,6 +82,17 @@ type ErrorItem = {
|
|
|
75
82
|
};
|
|
76
83
|
/**
|
|
77
84
|
* The error response object describing the error from the handling of an HTTP request.
|
|
85
|
+
* @example
|
|
86
|
+
* {
|
|
87
|
+
* errors: [
|
|
88
|
+
* {
|
|
89
|
+
* code: "USERS-7",
|
|
90
|
+
* status: 404,
|
|
91
|
+
* title: "Not found"
|
|
92
|
+
* }
|
|
93
|
+
* ],
|
|
94
|
+
* traceId: "000000000000000079cf1ebeae103de1"
|
|
95
|
+
* }
|
|
78
96
|
*/
|
|
79
97
|
type Errors = {
|
|
80
98
|
/** An array of errors related to the operation. */
|
|
@@ -136,10 +154,58 @@ type JSONPatch = {
|
|
|
136
154
|
};
|
|
137
155
|
/**
|
|
138
156
|
* An array of JSON Patch documents
|
|
157
|
+
* @example
|
|
158
|
+
* [
|
|
159
|
+
* {
|
|
160
|
+
* op: "replace",
|
|
161
|
+
* path: "/name",
|
|
162
|
+
* value: "John"
|
|
163
|
+
* },
|
|
164
|
+
* {
|
|
165
|
+
* op: "replace",
|
|
166
|
+
* path: "/assignedRoles",
|
|
167
|
+
* value: [
|
|
168
|
+
* {
|
|
169
|
+
* "name": "Developer"
|
|
170
|
+
* }
|
|
171
|
+
* ]
|
|
172
|
+
* },
|
|
173
|
+
* {
|
|
174
|
+
* op: "replace",
|
|
175
|
+
* value: "unicorn@corp.example"
|
|
176
|
+
* },
|
|
177
|
+
* {
|
|
178
|
+
* op: "replace",
|
|
179
|
+
* value: "America/Halifax"
|
|
180
|
+
* },
|
|
181
|
+
* {
|
|
182
|
+
* op: "replace",
|
|
183
|
+
* path: "/preferredLocale",
|
|
184
|
+
* value: "en_US_POSIX"
|
|
185
|
+
* },
|
|
186
|
+
* {
|
|
187
|
+
* op: "replace",
|
|
188
|
+
* path: "/status",
|
|
189
|
+
* value: "active"
|
|
190
|
+
* },
|
|
191
|
+
* {
|
|
192
|
+
* op: "add"
|
|
193
|
+
* },
|
|
194
|
+
* {
|
|
195
|
+
* op: "remove-value",
|
|
196
|
+
* path: "/assignedRoles"
|
|
197
|
+
* }
|
|
198
|
+
* ]
|
|
139
199
|
*/
|
|
140
200
|
type JSONPatchArray = JSONPatch[];
|
|
141
201
|
/**
|
|
142
202
|
* An array of entity reference identifiers (e.g. roles, groups).
|
|
203
|
+
* @example
|
|
204
|
+
* [
|
|
205
|
+
* {
|
|
206
|
+
* id: "507f191e810c19729de860ea"
|
|
207
|
+
* }
|
|
208
|
+
* ]
|
|
143
209
|
*/
|
|
144
210
|
type RefIDs = {
|
|
145
211
|
/** The unique identitier */
|
|
@@ -147,6 +213,12 @@ type RefIDs = {
|
|
|
147
213
|
}[];
|
|
148
214
|
/**
|
|
149
215
|
* An array of reference names (e.g. roles).
|
|
216
|
+
* @example
|
|
217
|
+
* [
|
|
218
|
+
* {
|
|
219
|
+
* name: "TenantAdmin"
|
|
220
|
+
* }
|
|
221
|
+
* ]
|
|
150
222
|
*/
|
|
151
223
|
type RefNames = {
|
|
152
224
|
/** The name of the entity */
|
|
@@ -228,6 +300,22 @@ type UserCount = {
|
|
|
228
300
|
/** The total number of users in the tenant. */
|
|
229
301
|
total: number;
|
|
230
302
|
};
|
|
303
|
+
/**
|
|
304
|
+
* @example
|
|
305
|
+
* {
|
|
306
|
+
* assignedRoles: [
|
|
307
|
+
* {
|
|
308
|
+
* name: "Developer"
|
|
309
|
+
* }
|
|
310
|
+
* ],
|
|
311
|
+
* email: "john.smith@corp.example",
|
|
312
|
+
* name: "John Smith",
|
|
313
|
+
* picture: "https://corp.example/docs/jsmith.png",
|
|
314
|
+
* status: "invited",
|
|
315
|
+
* subject: "1234asdasa6789",
|
|
316
|
+
* tenantId: "q3VRZ4YMixRaLKEPhkZWM-XMIDN7cO8f"
|
|
317
|
+
* }
|
|
318
|
+
*/
|
|
231
319
|
type UserPostSchema = {
|
|
232
320
|
/** The roles to assign to the user. */
|
|
233
321
|
assignedRoles?: RefIDs | RefNames;
|