@qlik/api 0.0.2 → 0.0.3
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.mts +14 -0
- package/api-keys.d.ts +14 -0
- package/api-keys.js +14 -10
- package/api-keys.mjs +6 -2
- package/apps.d.mts +478 -148
- package/apps.d.ts +478 -148
- package/apps.js +100 -42
- package/apps.mjs +60 -2
- package/audits.d.mts +12 -0
- package/audits.d.ts +12 -0
- package/audits.js +10 -9
- package/audits.mjs +3 -2
- package/auth-AWZV4DPP.js +41 -0
- package/{auth-RTFXVSSK.mjs → auth-CPBNNC7S.mjs} +4 -1
- package/auth.js +4 -3
- package/auth.mjs +3 -2
- package/automations.d.mts +36 -0
- package/automations.d.ts +36 -0
- package/automations.js +28 -21
- package/automations.mjs +9 -2
- package/brands.d.mts +45 -4
- package/brands.d.ts +45 -4
- package/brands.js +20 -15
- package/brands.mjs +7 -2
- package/{chunk-ZT4C7KCQ.js → chunk-2STFUQKQ.js} +3 -3
- package/{chunk-7REWEWCX.mjs → chunk-3SVRHJII.mjs} +3 -3
- package/{chunk-CKPJE4IA.mjs → chunk-67GJTTPV.mjs} +1 -1
- package/{chunk-M7F4JFOB.js → chunk-7RY3NO6N.js} +2 -2
- package/{chunk-NALKLKZS.mjs → chunk-CYRLVHU3.mjs} +316 -53
- package/{chunk-RMKP2BDX.js → chunk-D52VW5UN.js} +318 -55
- package/{chunk-GUQBHY3H.mjs → chunk-GNWU6SP2.mjs} +1 -1
- package/{chunk-QN23TPIE.js → chunk-GV5SRHY2.js} +4 -4
- package/{chunk-OULT3V2U.js → chunk-JNGURO23.js} +3 -3
- package/chunk-P57PW2II.js +11 -0
- package/{chunk-3YE7EI7I.mjs → chunk-TE7XMBT5.mjs} +1 -1
- package/chunk-ZFXKCRJC.mjs +11 -0
- package/collections.d.mts +51 -17
- package/collections.d.ts +51 -17
- package/collections.js +28 -14
- package/collections.mjs +16 -2
- package/csp-origins.d.mts +12 -0
- package/csp-origins.d.ts +12 -0
- package/csp-origins.js +12 -9
- package/csp-origins.mjs +5 -2
- package/data-assets.d.mts +10 -0
- package/data-assets.d.ts +10 -0
- package/data-assets.js +13 -8
- package/data-assets.mjs +7 -2
- package/data-connections.d.mts +18 -0
- package/data-connections.d.ts +18 -0
- package/data-connections.js +19 -12
- package/data-connections.mjs +9 -2
- package/data-credentials.d.mts +8 -0
- package/data-credentials.d.ts +8 -0
- package/data-credentials.js +10 -7
- package/data-credentials.mjs +5 -2
- package/data-files.d.mts +98 -13
- package/data-files.d.ts +98 -13
- package/data-files.js +22 -15
- package/data-files.mjs +9 -2
- package/{enigma-session-VPPJMBEM.js → enigma-session-XPXDQAIV.js} +5 -4
- package/{enigma-session-HGXKZJVO.mjs → enigma-session-ZH6MYA54.mjs} +2 -1
- package/{esm-RX7B2TUN.js → esm-3VXX2GKL.js} +3 -1
- package/{esm-M5ZBFTVD.mjs → esm-OY4XVIJB.mjs} +3 -1
- package/extensions.d.mts +26 -2
- package/extensions.d.ts +26 -2
- package/extensions.js +13 -10
- package/extensions.mjs +5 -2
- package/glossaries.d.mts +55 -20
- package/glossaries.d.ts +55 -20
- package/glossaries.js +39 -27
- package/glossaries.mjs +14 -2
- package/groups.d.mts +16 -0
- package/groups.d.ts +16 -0
- package/groups.js +16 -11
- package/groups.mjs +7 -2
- package/identity-providers.d.mts +16 -0
- package/identity-providers.d.ts +16 -0
- package/identity-providers.js +14 -11
- package/identity-providers.mjs +5 -2
- package/index.js +135 -101
- package/index.mjs +131 -97
- package/{invoke-fetch-IMO4AMA3.mjs → invoke-fetch-3WZWAAZH.mjs} +4 -1
- package/invoke-fetch-UNTAUR7O.js +17 -0
- package/items.d.mts +6 -6
- package/items.d.ts +6 -6
- package/items.js +14 -11
- package/items.mjs +5 -2
- package/licenses.d.mts +18 -0
- package/licenses.d.ts +18 -0
- package/licenses.js +17 -12
- package/licenses.mjs +7 -2
- package/package.json +4 -4
- package/{qix-K22VHZRH.js → qix-UNWXPGMA.js} +9 -8
- package/{qix-57WD2ZE6.mjs → qix-ZSJ4PIK3.mjs} +3 -2
- package/qix.d.mts +1 -1
- package/qix.d.ts +1 -1
- package/qix.js +4 -3
- package/qix.mjs +3 -2
- package/quotas.d.mts +4 -0
- package/quotas.d.ts +4 -0
- package/quotas.js +6 -5
- package/quotas.mjs +3 -2
- package/reload-tasks.js +11 -8
- package/reload-tasks.mjs +5 -2
- package/reloads.d.mts +17 -10
- package/reloads.d.ts +17 -10
- package/reloads.js +9 -7
- package/reloads.mjs +4 -2
- package/roles.d.mts +4 -0
- package/roles.d.ts +4 -0
- package/roles.js +6 -5
- package/roles.mjs +3 -2
- package/spaces.d.mts +27 -4
- package/spaces.d.ts +27 -4
- package/spaces.js +21 -15
- package/spaces.mjs +8 -2
- package/temp-contents.d.mts +8 -3
- package/temp-contents.d.ts +8 -3
- package/temp-contents.js +8 -6
- package/temp-contents.mjs +4 -2
- package/tenants.d.mts +12 -0
- package/tenants.d.ts +12 -0
- package/tenants.js +14 -9
- package/tenants.mjs +7 -2
- package/themes.d.mts +26 -2
- package/themes.d.ts +26 -2
- package/themes.js +13 -10
- package/themes.mjs +5 -2
- package/transports.d.mts +12 -0
- package/transports.d.ts +12 -0
- package/transports.js +12 -9
- package/transports.mjs +5 -2
- package/users.d.mts +48 -29
- package/users.d.ts +48 -29
- package/users.js +18 -13
- package/users.mjs +7 -2
- package/web-integrations.d.mts +10 -0
- package/web-integrations.d.ts +10 -0
- package/web-integrations.js +11 -8
- package/web-integrations.mjs +5 -2
- package/web-notifications.d.mts +12 -0
- package/web-notifications.d.ts +12 -0
- package/web-notifications.js +12 -9
- package/web-notifications.mjs +5 -2
- package/webhooks.d.mts +25 -5
- package/webhooks.d.ts +25 -5
- package/webhooks.js +17 -13
- package/webhooks.mjs +6 -2
- package/auth-CSVTXOZX.js +0 -36
- package/auth-OU7OTB7Y.js +0 -38
- package/auth-TE272Q34.mjs +0 -36
- package/chunk-4ES65KO3.js +0 -57
- package/chunk-4FLMND6T.js +0 -25
- package/chunk-4OMEH5SW.mjs +0 -1337
- package/chunk-6JERR27K.js +0 -17
- package/chunk-E42WUFCK.mjs +0 -57
- package/chunk-H7SAZYEE.js +0 -21
- package/chunk-KMMWJZHM.mjs +0 -25
- package/chunk-W4J34XGA.mjs +0 -17
- package/chunk-WM7FQU2U.mjs +0 -21
- package/chunk-XASXL2NC.js +0 -1337
- package/enigma-session-4L373ALV.mjs +0 -10196
- package/enigma-session-TEB53FAF.js +0 -10196
- package/esm-4X3DKK5D.js +0 -63
- package/esm-SOWVJKOQ.mjs +0 -63
- package/invoke-fetch-7PKPQ3FD.js +0 -14
- package/invoke-fetch-MSSJAZ7K.mjs +0 -14
- package/invoke-fetch-PEI54KZO.js +0 -14
- package/qix-EU7PXRZ6.mjs +0 -573
- package/qix-RLTISYTB.js +0 -573
package/collections.d.mts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import { A as ApiCallOptions } from './global.types-Eto4uYwy.mjs';
|
|
2
2
|
import './auth-types-nnUcWhuU.mjs';
|
|
3
3
|
|
|
4
|
+
type CollectionByIdPatch = {
|
|
5
|
+
/** The operation to be performed. */
|
|
6
|
+
op: "replace";
|
|
7
|
+
/** Field of collection to be patched. */
|
|
8
|
+
path: "/name" | "/description" | "/type";
|
|
9
|
+
/** The value to be used within the operations.
|
|
10
|
+
* - name: The name of the collection. Must not be "".
|
|
11
|
+
* - description: The description of the collection. Empty string "" is allowed.
|
|
12
|
+
* - type: The type of the collection. Via this path the collection type can be toggled between "private" and "publicgoverned". */
|
|
13
|
+
value: string;
|
|
14
|
+
}[];
|
|
4
15
|
type CollectionTypes = "private" | "public" | "publicgoverned";
|
|
5
16
|
type CollectionsAddCollectionItemRequestBody = {
|
|
6
17
|
/** The item's unique identifier. */
|
|
@@ -212,19 +223,17 @@ declare const getCollections: (query: {
|
|
|
212
223
|
/** The case-sensitive string used to search for a collection by name. */
|
|
213
224
|
name?: string | undefined;
|
|
214
225
|
/** The cursor to the next page of resources. Provide either the
|
|
215
|
-
|
|
216
|
-
// */
|
|
226
|
+
* next or prev cursor, but not both. */
|
|
217
227
|
next?: string | undefined;
|
|
218
228
|
/** The cursor to the previous page of resources. Provide either the next or prev cursor, but not both. */
|
|
219
229
|
prev?: string | undefined;
|
|
220
230
|
/** The case-insensitive string used to search for a resource by name or description. */
|
|
221
231
|
query?: string | undefined;
|
|
222
232
|
/** The property of a resource to sort on (default sort is +createdAt).
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
sort?: "+name" | "+createdAt" | "+updatedAt" | "-name" | "-createdAt" | "-updatedAt" | undefined;
|
|
233
|
+
* The supported properties are createdAt, updatedAt, and name. A property
|
|
234
|
+
* must be prefixed by + or - to indicate ascending or descending sort order
|
|
235
|
+
* respectively. */
|
|
236
|
+
sort?: "-name" | "+name" | "+createdAt" | "-createdAt" | "+updatedAt" | "-updatedAt" | undefined;
|
|
228
237
|
/** The case-sensitive string used to filter for a collection by type. */
|
|
229
238
|
type?: CollectionTypes | undefined;
|
|
230
239
|
/** A commaseparated case-sensitive string used to filter by multiple types. */
|
|
@@ -325,6 +334,24 @@ type GetCollectionHttpError = {
|
|
|
325
334
|
headers: Headers;
|
|
326
335
|
status: number;
|
|
327
336
|
};
|
|
337
|
+
/**
|
|
338
|
+
* Updates the collection fields provided in the patch body.
|
|
339
|
+
*
|
|
340
|
+
* @param collectionId The collection's unique identifier.
|
|
341
|
+
* @param body an object with the body content
|
|
342
|
+
* @throws PatchCollectionHttpError
|
|
343
|
+
*/
|
|
344
|
+
declare const patchCollection: (collectionId: string, body: CollectionByIdPatch, options?: ApiCallOptions) => Promise<PatchCollectionHttpResponse>;
|
|
345
|
+
type PatchCollectionHttpResponse = {
|
|
346
|
+
data: CollectionResultResponseBody;
|
|
347
|
+
headers: Headers;
|
|
348
|
+
status: number;
|
|
349
|
+
};
|
|
350
|
+
type PatchCollectionHttpError = {
|
|
351
|
+
data: ErrorResponseBody;
|
|
352
|
+
headers: Headers;
|
|
353
|
+
status: number;
|
|
354
|
+
};
|
|
328
355
|
/**
|
|
329
356
|
* Updates a collection and returns the new collection. Omitted and unsupported fields are ignored. To unset a field, provide the field's zero value.
|
|
330
357
|
*
|
|
@@ -358,8 +385,7 @@ declare const getCollectionItems: (collectionId: string, query: {
|
|
|
358
385
|
name?: string | undefined;
|
|
359
386
|
/** The cursor to the next page of resources. Provide either the next or prev cursor, but not both. */
|
|
360
387
|
next?: string | undefined;
|
|
361
|
-
/** If set to true, the user's available actions for each item will not be evaluated meaning the actions-array will be omitted from the response (reduces response time).
|
|
362
|
-
// */
|
|
388
|
+
/** If set to true, the user's available actions for each item will not be evaluated meaning the actions-array will be omitted from the response (reduces response time). */
|
|
363
389
|
noActions?: boolean | undefined;
|
|
364
390
|
/** The cursor to the previous page of resources. Provide either the next or prev cursor, but not both. */
|
|
365
391
|
prev?: string | undefined;
|
|
@@ -374,7 +400,7 @@ declare const getCollectionItems: (collectionId: string, query: {
|
|
|
374
400
|
/** Whether or not to return items in a shared space. */
|
|
375
401
|
shared?: boolean | undefined;
|
|
376
402
|
/** The property of a resource to sort on (default sort is +createdAt). The supported properties are createdAt, updatedAt, and name. A property must be prefixed by + or - to indicate ascending or descending sort order respectively. */
|
|
377
|
-
sort?: "
|
|
403
|
+
sort?: "-name" | "+name" | "+createdAt" | "-createdAt" | "+updatedAt" | "-updatedAt" | undefined;
|
|
378
404
|
/** The space's unique identifier (supports \'personal\' as spaceId). */
|
|
379
405
|
spaceId?: string | undefined;
|
|
380
406
|
}, options?: ApiCallOptions) => Promise<GetCollectionItemsHttpResponse>;
|
|
@@ -481,6 +507,14 @@ interface CollectionsAPI {
|
|
|
481
507
|
* @throws GetCollectionHttpError
|
|
482
508
|
*/
|
|
483
509
|
getCollection: typeof getCollection;
|
|
510
|
+
/**
|
|
511
|
+
* Updates the collection fields provided in the patch body.
|
|
512
|
+
*
|
|
513
|
+
* @param collectionId The collection's unique identifier.
|
|
514
|
+
* @param body an object with the body content
|
|
515
|
+
* @throws PatchCollectionHttpError
|
|
516
|
+
*/
|
|
517
|
+
patchCollection: typeof patchCollection;
|
|
484
518
|
/**
|
|
485
519
|
* Updates a collection and returns the new collection. Omitted and unsupported fields are ignored. To unset a field, provide the field's zero value.
|
|
486
520
|
*
|
|
@@ -490,13 +524,13 @@ interface CollectionsAPI {
|
|
|
490
524
|
*/
|
|
491
525
|
updateCollection: typeof updateCollection;
|
|
492
526
|
/**
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
527
|
+
* Finds and returns items from a collection that the user has access to.
|
|
528
|
+
*
|
|
529
|
+
* @param collectionId The collection's unique identifier. (This query also supports 'favorites' as the collectionID).
|
|
496
530
|
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
531
|
+
* @param query an object with query parameters
|
|
532
|
+
* @throws GetCollectionItemsHttpError
|
|
533
|
+
*/
|
|
500
534
|
getCollectionItems: typeof getCollectionItems;
|
|
501
535
|
/**
|
|
502
536
|
* Adds an item to a collection and returns the item.
|
|
@@ -532,4 +566,4 @@ interface CollectionsAPI {
|
|
|
532
566
|
*/
|
|
533
567
|
declare const collectionsExport: CollectionsAPI;
|
|
534
568
|
|
|
535
|
-
export { type AddCollectionItemHttpError, type AddCollectionItemHttpResponse, type CollectionLinksResponseBody, type CollectionMetaResponseBody, type CollectionResultResponseBody, type CollectionTypes, type CollectionsAPI, type CollectionsAddCollectionItemRequestBody, type CollectionsCreateCollectionRequestBody, type CollectionsLinksResponseBody, type CollectionsListCollectionItemsResponseBody, type CollectionsListCollectionsResponseBody, type CollectionsUpdateCollectionRequestBody, type CreateCollectionHttpError, type CreateCollectionHttpResponse, type DeleteCollectionHttpError, type DeleteCollectionHttpResponse, type DeleteCollectionItemHttpError, type DeleteCollectionItemHttpResponse, type ErrorResponseBody, type GetCollectionHttpError, type GetCollectionHttpResponse, type GetCollectionItemHttpError, type GetCollectionItemHttpResponse, type GetCollectionItemsHttpError, type GetCollectionItemsHttpResponse, type GetCollectionsHttpError, type GetCollectionsHttpResponse, type GetFavoritesCollection302HttpError, type GetFavoritesCollection401HttpError, type GetFavoritesCollection404HttpError, type GetFavoritesCollection500HttpError, type GetFavoritesCollectionHttpError, type GetFavoritesCollectionHttpResponse, type ItemLinksResponseBody, type ItemMetaResponseBody, type ItemResourceTypeEnum, type ItemResultResponseBody, type ItemTagResponseBody, type ItemViewsResponseBody, type ItemViewsWeeksResponseBody, type ItemsLinksResponseBody, type ItemsResourceSizeResponseBody, type ItemsResultResponseBody, type Link, type Meta, type ServiceError, type UpdateCollectionHttpError, type UpdateCollectionHttpResponse, addCollectionItem, clearCache, createCollection, collectionsExport as default, deleteCollection, deleteCollectionItem, getCollection, getCollectionItem, getCollectionItems, getCollections, getFavoritesCollection, updateCollection };
|
|
569
|
+
export { type AddCollectionItemHttpError, type AddCollectionItemHttpResponse, type CollectionByIdPatch, type CollectionLinksResponseBody, type CollectionMetaResponseBody, type CollectionResultResponseBody, type CollectionTypes, type CollectionsAPI, type CollectionsAddCollectionItemRequestBody, type CollectionsCreateCollectionRequestBody, type CollectionsLinksResponseBody, type CollectionsListCollectionItemsResponseBody, type CollectionsListCollectionsResponseBody, type CollectionsUpdateCollectionRequestBody, type CreateCollectionHttpError, type CreateCollectionHttpResponse, type DeleteCollectionHttpError, type DeleteCollectionHttpResponse, type DeleteCollectionItemHttpError, type DeleteCollectionItemHttpResponse, type ErrorResponseBody, type GetCollectionHttpError, type GetCollectionHttpResponse, type GetCollectionItemHttpError, type GetCollectionItemHttpResponse, type GetCollectionItemsHttpError, type GetCollectionItemsHttpResponse, type GetCollectionsHttpError, type GetCollectionsHttpResponse, type GetFavoritesCollection302HttpError, type GetFavoritesCollection401HttpError, type GetFavoritesCollection404HttpError, type GetFavoritesCollection500HttpError, type GetFavoritesCollectionHttpError, type GetFavoritesCollectionHttpResponse, type ItemLinksResponseBody, type ItemMetaResponseBody, type ItemResourceTypeEnum, type ItemResultResponseBody, type ItemTagResponseBody, type ItemViewsResponseBody, type ItemViewsWeeksResponseBody, type ItemsLinksResponseBody, type ItemsResourceSizeResponseBody, type ItemsResultResponseBody, type Link, type Meta, type PatchCollectionHttpError, type PatchCollectionHttpResponse, type ServiceError, type UpdateCollectionHttpError, type UpdateCollectionHttpResponse, addCollectionItem, clearCache, createCollection, collectionsExport as default, deleteCollection, deleteCollectionItem, getCollection, getCollectionItem, getCollectionItems, getCollections, getFavoritesCollection, patchCollection, updateCollection };
|
package/collections.d.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import { A as ApiCallOptions } from './global.types-hIvp-WdX.js';
|
|
2
2
|
import './auth-types-nnUcWhuU.js';
|
|
3
3
|
|
|
4
|
+
type CollectionByIdPatch = {
|
|
5
|
+
/** The operation to be performed. */
|
|
6
|
+
op: "replace";
|
|
7
|
+
/** Field of collection to be patched. */
|
|
8
|
+
path: "/name" | "/description" | "/type";
|
|
9
|
+
/** The value to be used within the operations.
|
|
10
|
+
* - name: The name of the collection. Must not be "".
|
|
11
|
+
* - description: The description of the collection. Empty string "" is allowed.
|
|
12
|
+
* - type: The type of the collection. Via this path the collection type can be toggled between "private" and "publicgoverned". */
|
|
13
|
+
value: string;
|
|
14
|
+
}[];
|
|
4
15
|
type CollectionTypes = "private" | "public" | "publicgoverned";
|
|
5
16
|
type CollectionsAddCollectionItemRequestBody = {
|
|
6
17
|
/** The item's unique identifier. */
|
|
@@ -212,19 +223,17 @@ declare const getCollections: (query: {
|
|
|
212
223
|
/** The case-sensitive string used to search for a collection by name. */
|
|
213
224
|
name?: string | undefined;
|
|
214
225
|
/** The cursor to the next page of resources. Provide either the
|
|
215
|
-
|
|
216
|
-
// */
|
|
226
|
+
* next or prev cursor, but not both. */
|
|
217
227
|
next?: string | undefined;
|
|
218
228
|
/** The cursor to the previous page of resources. Provide either the next or prev cursor, but not both. */
|
|
219
229
|
prev?: string | undefined;
|
|
220
230
|
/** The case-insensitive string used to search for a resource by name or description. */
|
|
221
231
|
query?: string | undefined;
|
|
222
232
|
/** The property of a resource to sort on (default sort is +createdAt).
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
sort?: "+name" | "+createdAt" | "+updatedAt" | "-name" | "-createdAt" | "-updatedAt" | undefined;
|
|
233
|
+
* The supported properties are createdAt, updatedAt, and name. A property
|
|
234
|
+
* must be prefixed by + or - to indicate ascending or descending sort order
|
|
235
|
+
* respectively. */
|
|
236
|
+
sort?: "-name" | "+name" | "+createdAt" | "-createdAt" | "+updatedAt" | "-updatedAt" | undefined;
|
|
228
237
|
/** The case-sensitive string used to filter for a collection by type. */
|
|
229
238
|
type?: CollectionTypes | undefined;
|
|
230
239
|
/** A commaseparated case-sensitive string used to filter by multiple types. */
|
|
@@ -325,6 +334,24 @@ type GetCollectionHttpError = {
|
|
|
325
334
|
headers: Headers;
|
|
326
335
|
status: number;
|
|
327
336
|
};
|
|
337
|
+
/**
|
|
338
|
+
* Updates the collection fields provided in the patch body.
|
|
339
|
+
*
|
|
340
|
+
* @param collectionId The collection's unique identifier.
|
|
341
|
+
* @param body an object with the body content
|
|
342
|
+
* @throws PatchCollectionHttpError
|
|
343
|
+
*/
|
|
344
|
+
declare const patchCollection: (collectionId: string, body: CollectionByIdPatch, options?: ApiCallOptions) => Promise<PatchCollectionHttpResponse>;
|
|
345
|
+
type PatchCollectionHttpResponse = {
|
|
346
|
+
data: CollectionResultResponseBody;
|
|
347
|
+
headers: Headers;
|
|
348
|
+
status: number;
|
|
349
|
+
};
|
|
350
|
+
type PatchCollectionHttpError = {
|
|
351
|
+
data: ErrorResponseBody;
|
|
352
|
+
headers: Headers;
|
|
353
|
+
status: number;
|
|
354
|
+
};
|
|
328
355
|
/**
|
|
329
356
|
* Updates a collection and returns the new collection. Omitted and unsupported fields are ignored. To unset a field, provide the field's zero value.
|
|
330
357
|
*
|
|
@@ -358,8 +385,7 @@ declare const getCollectionItems: (collectionId: string, query: {
|
|
|
358
385
|
name?: string | undefined;
|
|
359
386
|
/** The cursor to the next page of resources. Provide either the next or prev cursor, but not both. */
|
|
360
387
|
next?: string | undefined;
|
|
361
|
-
/** If set to true, the user's available actions for each item will not be evaluated meaning the actions-array will be omitted from the response (reduces response time).
|
|
362
|
-
// */
|
|
388
|
+
/** If set to true, the user's available actions for each item will not be evaluated meaning the actions-array will be omitted from the response (reduces response time). */
|
|
363
389
|
noActions?: boolean | undefined;
|
|
364
390
|
/** The cursor to the previous page of resources. Provide either the next or prev cursor, but not both. */
|
|
365
391
|
prev?: string | undefined;
|
|
@@ -374,7 +400,7 @@ declare const getCollectionItems: (collectionId: string, query: {
|
|
|
374
400
|
/** Whether or not to return items in a shared space. */
|
|
375
401
|
shared?: boolean | undefined;
|
|
376
402
|
/** The property of a resource to sort on (default sort is +createdAt). The supported properties are createdAt, updatedAt, and name. A property must be prefixed by + or - to indicate ascending or descending sort order respectively. */
|
|
377
|
-
sort?: "
|
|
403
|
+
sort?: "-name" | "+name" | "+createdAt" | "-createdAt" | "+updatedAt" | "-updatedAt" | undefined;
|
|
378
404
|
/** The space's unique identifier (supports \'personal\' as spaceId). */
|
|
379
405
|
spaceId?: string | undefined;
|
|
380
406
|
}, options?: ApiCallOptions) => Promise<GetCollectionItemsHttpResponse>;
|
|
@@ -481,6 +507,14 @@ interface CollectionsAPI {
|
|
|
481
507
|
* @throws GetCollectionHttpError
|
|
482
508
|
*/
|
|
483
509
|
getCollection: typeof getCollection;
|
|
510
|
+
/**
|
|
511
|
+
* Updates the collection fields provided in the patch body.
|
|
512
|
+
*
|
|
513
|
+
* @param collectionId The collection's unique identifier.
|
|
514
|
+
* @param body an object with the body content
|
|
515
|
+
* @throws PatchCollectionHttpError
|
|
516
|
+
*/
|
|
517
|
+
patchCollection: typeof patchCollection;
|
|
484
518
|
/**
|
|
485
519
|
* Updates a collection and returns the new collection. Omitted and unsupported fields are ignored. To unset a field, provide the field's zero value.
|
|
486
520
|
*
|
|
@@ -490,13 +524,13 @@ interface CollectionsAPI {
|
|
|
490
524
|
*/
|
|
491
525
|
updateCollection: typeof updateCollection;
|
|
492
526
|
/**
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
527
|
+
* Finds and returns items from a collection that the user has access to.
|
|
528
|
+
*
|
|
529
|
+
* @param collectionId The collection's unique identifier. (This query also supports 'favorites' as the collectionID).
|
|
496
530
|
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
531
|
+
* @param query an object with query parameters
|
|
532
|
+
* @throws GetCollectionItemsHttpError
|
|
533
|
+
*/
|
|
500
534
|
getCollectionItems: typeof getCollectionItems;
|
|
501
535
|
/**
|
|
502
536
|
* Adds an item to a collection and returns the item.
|
|
@@ -532,4 +566,4 @@ interface CollectionsAPI {
|
|
|
532
566
|
*/
|
|
533
567
|
declare const collectionsExport: CollectionsAPI;
|
|
534
568
|
|
|
535
|
-
export { type AddCollectionItemHttpError, type AddCollectionItemHttpResponse, type CollectionLinksResponseBody, type CollectionMetaResponseBody, type CollectionResultResponseBody, type CollectionTypes, type CollectionsAPI, type CollectionsAddCollectionItemRequestBody, type CollectionsCreateCollectionRequestBody, type CollectionsLinksResponseBody, type CollectionsListCollectionItemsResponseBody, type CollectionsListCollectionsResponseBody, type CollectionsUpdateCollectionRequestBody, type CreateCollectionHttpError, type CreateCollectionHttpResponse, type DeleteCollectionHttpError, type DeleteCollectionHttpResponse, type DeleteCollectionItemHttpError, type DeleteCollectionItemHttpResponse, type ErrorResponseBody, type GetCollectionHttpError, type GetCollectionHttpResponse, type GetCollectionItemHttpError, type GetCollectionItemHttpResponse, type GetCollectionItemsHttpError, type GetCollectionItemsHttpResponse, type GetCollectionsHttpError, type GetCollectionsHttpResponse, type GetFavoritesCollection302HttpError, type GetFavoritesCollection401HttpError, type GetFavoritesCollection404HttpError, type GetFavoritesCollection500HttpError, type GetFavoritesCollectionHttpError, type GetFavoritesCollectionHttpResponse, type ItemLinksResponseBody, type ItemMetaResponseBody, type ItemResourceTypeEnum, type ItemResultResponseBody, type ItemTagResponseBody, type ItemViewsResponseBody, type ItemViewsWeeksResponseBody, type ItemsLinksResponseBody, type ItemsResourceSizeResponseBody, type ItemsResultResponseBody, type Link, type Meta, type ServiceError, type UpdateCollectionHttpError, type UpdateCollectionHttpResponse, addCollectionItem, clearCache, createCollection, collectionsExport as default, deleteCollection, deleteCollectionItem, getCollection, getCollectionItem, getCollectionItems, getCollections, getFavoritesCollection, updateCollection };
|
|
569
|
+
export { type AddCollectionItemHttpError, type AddCollectionItemHttpResponse, type CollectionByIdPatch, type CollectionLinksResponseBody, type CollectionMetaResponseBody, type CollectionResultResponseBody, type CollectionTypes, type CollectionsAPI, type CollectionsAddCollectionItemRequestBody, type CollectionsCreateCollectionRequestBody, type CollectionsLinksResponseBody, type CollectionsListCollectionItemsResponseBody, type CollectionsListCollectionsResponseBody, type CollectionsUpdateCollectionRequestBody, type CreateCollectionHttpError, type CreateCollectionHttpResponse, type DeleteCollectionHttpError, type DeleteCollectionHttpResponse, type DeleteCollectionItemHttpError, type DeleteCollectionItemHttpResponse, type ErrorResponseBody, type GetCollectionHttpError, type GetCollectionHttpResponse, type GetCollectionItemHttpError, type GetCollectionItemHttpResponse, type GetCollectionItemsHttpError, type GetCollectionItemsHttpResponse, type GetCollectionsHttpError, type GetCollectionsHttpResponse, type GetFavoritesCollection302HttpError, type GetFavoritesCollection401HttpError, type GetFavoritesCollection404HttpError, type GetFavoritesCollection500HttpError, type GetFavoritesCollectionHttpError, type GetFavoritesCollectionHttpResponse, type ItemLinksResponseBody, type ItemMetaResponseBody, type ItemResourceTypeEnum, type ItemResultResponseBody, type ItemTagResponseBody, type ItemViewsResponseBody, type ItemViewsWeeksResponseBody, type ItemsLinksResponseBody, type ItemsResourceSizeResponseBody, type ItemsResultResponseBody, type Link, type Meta, type PatchCollectionHttpError, type PatchCollectionHttpResponse, type ServiceError, type UpdateCollectionHttpError, type UpdateCollectionHttpResponse, addCollectionItem, clearCache, createCollection, collectionsExport as default, deleteCollection, deleteCollectionItem, getCollection, getCollectionItem, getCollectionItems, getCollections, getFavoritesCollection, patchCollection, updateCollection };
|
package/collections.js
CHANGED
|
@@ -1,74 +1,86 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkJNGURO23js = require('./chunk-JNGURO23.js');
|
|
5
|
+
require('./chunk-2STFUQKQ.js');
|
|
6
|
+
require('./chunk-P57PW2II.js');
|
|
6
7
|
|
|
7
8
|
// src/public/rest/collections.ts
|
|
8
|
-
var getCollections = async (query, options) =>
|
|
9
|
+
var getCollections = async (query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "collections", {
|
|
9
10
|
method: "get",
|
|
10
11
|
pathTemplate: "/api/v1/collections",
|
|
11
12
|
query,
|
|
12
13
|
options
|
|
13
14
|
});
|
|
14
|
-
var createCollection = async (body, options) =>
|
|
15
|
+
var createCollection = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "collections", {
|
|
15
16
|
method: "post",
|
|
16
17
|
pathTemplate: "/api/v1/collections",
|
|
17
18
|
body,
|
|
19
|
+
contentType: "application/json",
|
|
18
20
|
options
|
|
19
21
|
});
|
|
20
|
-
var getFavoritesCollection = async (options) =>
|
|
22
|
+
var getFavoritesCollection = async (options) => _chunkJNGURO23js.invokeFetch.call(void 0, "collections", {
|
|
21
23
|
method: "get",
|
|
22
24
|
pathTemplate: "/api/v1/collections/favorites",
|
|
23
25
|
options
|
|
24
26
|
});
|
|
25
|
-
var deleteCollection = async (collectionId, options) =>
|
|
27
|
+
var deleteCollection = async (collectionId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "collections", {
|
|
26
28
|
method: "delete",
|
|
27
29
|
pathTemplate: "/api/v1/collections/{collectionId}",
|
|
28
30
|
pathVariables: { collectionId },
|
|
29
31
|
options
|
|
30
32
|
});
|
|
31
|
-
var getCollection = async (collectionId, options) =>
|
|
33
|
+
var getCollection = async (collectionId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "collections", {
|
|
32
34
|
method: "get",
|
|
33
35
|
pathTemplate: "/api/v1/collections/{collectionId}",
|
|
34
36
|
pathVariables: { collectionId },
|
|
35
37
|
options
|
|
36
38
|
});
|
|
37
|
-
var
|
|
39
|
+
var patchCollection = async (collectionId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "collections", {
|
|
40
|
+
method: "patch",
|
|
41
|
+
pathTemplate: "/api/v1/collections/{collectionId}",
|
|
42
|
+
pathVariables: { collectionId },
|
|
43
|
+
body,
|
|
44
|
+
contentType: "application/json",
|
|
45
|
+
options
|
|
46
|
+
});
|
|
47
|
+
var updateCollection = async (collectionId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "collections", {
|
|
38
48
|
method: "put",
|
|
39
49
|
pathTemplate: "/api/v1/collections/{collectionId}",
|
|
40
50
|
pathVariables: { collectionId },
|
|
41
51
|
body,
|
|
52
|
+
contentType: "application/json",
|
|
42
53
|
options
|
|
43
54
|
});
|
|
44
|
-
var getCollectionItems = async (collectionId, query, options) =>
|
|
55
|
+
var getCollectionItems = async (collectionId, query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "collections", {
|
|
45
56
|
method: "get",
|
|
46
57
|
pathTemplate: "/api/v1/collections/{collectionId}/items",
|
|
47
58
|
pathVariables: { collectionId },
|
|
48
59
|
query,
|
|
49
60
|
options
|
|
50
61
|
});
|
|
51
|
-
var addCollectionItem = async (collectionId, body, options) =>
|
|
62
|
+
var addCollectionItem = async (collectionId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "collections", {
|
|
52
63
|
method: "post",
|
|
53
64
|
pathTemplate: "/api/v1/collections/{collectionId}/items",
|
|
54
65
|
pathVariables: { collectionId },
|
|
55
66
|
body,
|
|
67
|
+
contentType: "application/json",
|
|
56
68
|
options
|
|
57
69
|
});
|
|
58
|
-
var deleteCollectionItem = async (collectionId, itemId, options) =>
|
|
70
|
+
var deleteCollectionItem = async (collectionId, itemId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "collections", {
|
|
59
71
|
method: "delete",
|
|
60
72
|
pathTemplate: "/api/v1/collections/{collectionId}/items/{itemId}",
|
|
61
73
|
pathVariables: { collectionId, itemId },
|
|
62
74
|
options
|
|
63
75
|
});
|
|
64
|
-
var getCollectionItem = async (collectionId, itemId, options) =>
|
|
76
|
+
var getCollectionItem = async (collectionId, itemId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "collections", {
|
|
65
77
|
method: "get",
|
|
66
78
|
pathTemplate: "/api/v1/collections/{collectionId}/items/{itemId}",
|
|
67
79
|
pathVariables: { collectionId, itemId },
|
|
68
80
|
options
|
|
69
81
|
});
|
|
70
82
|
function clearCache() {
|
|
71
|
-
return
|
|
83
|
+
return _chunkJNGURO23js.clearApiCache.call(void 0, "collections");
|
|
72
84
|
}
|
|
73
85
|
var collectionsExport = {
|
|
74
86
|
getCollections,
|
|
@@ -76,6 +88,7 @@ var collectionsExport = {
|
|
|
76
88
|
getFavoritesCollection,
|
|
77
89
|
deleteCollection,
|
|
78
90
|
getCollection,
|
|
91
|
+
patchCollection,
|
|
79
92
|
updateCollection,
|
|
80
93
|
getCollectionItems,
|
|
81
94
|
addCollectionItem,
|
|
@@ -97,4 +110,5 @@ var collections_default = collectionsExport;
|
|
|
97
110
|
|
|
98
111
|
|
|
99
112
|
|
|
100
|
-
|
|
113
|
+
|
|
114
|
+
exports.addCollectionItem = addCollectionItem; exports.clearCache = clearCache; exports.createCollection = createCollection; exports.default = collections_default; exports.deleteCollection = deleteCollection; exports.deleteCollectionItem = deleteCollectionItem; exports.getCollection = getCollection; exports.getCollectionItem = getCollectionItem; exports.getCollectionItems = getCollectionItems; exports.getCollections = getCollections; exports.getFavoritesCollection = getFavoritesCollection; exports.patchCollection = patchCollection; exports.updateCollection = updateCollection;
|
package/collections.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-TE7XMBT5.mjs";
|
|
5
|
+
import "./chunk-3SVRHJII.mjs";
|
|
6
|
+
import "./chunk-ZFXKCRJC.mjs";
|
|
6
7
|
|
|
7
8
|
// src/public/rest/collections.ts
|
|
8
9
|
var getCollections = async (query, options) => invokeFetch("collections", {
|
|
@@ -15,6 +16,7 @@ var createCollection = async (body, options) => invokeFetch("collections", {
|
|
|
15
16
|
method: "post",
|
|
16
17
|
pathTemplate: "/api/v1/collections",
|
|
17
18
|
body,
|
|
19
|
+
contentType: "application/json",
|
|
18
20
|
options
|
|
19
21
|
});
|
|
20
22
|
var getFavoritesCollection = async (options) => invokeFetch("collections", {
|
|
@@ -34,11 +36,20 @@ var getCollection = async (collectionId, options) => invokeFetch("collections",
|
|
|
34
36
|
pathVariables: { collectionId },
|
|
35
37
|
options
|
|
36
38
|
});
|
|
39
|
+
var patchCollection = async (collectionId, body, options) => invokeFetch("collections", {
|
|
40
|
+
method: "patch",
|
|
41
|
+
pathTemplate: "/api/v1/collections/{collectionId}",
|
|
42
|
+
pathVariables: { collectionId },
|
|
43
|
+
body,
|
|
44
|
+
contentType: "application/json",
|
|
45
|
+
options
|
|
46
|
+
});
|
|
37
47
|
var updateCollection = async (collectionId, body, options) => invokeFetch("collections", {
|
|
38
48
|
method: "put",
|
|
39
49
|
pathTemplate: "/api/v1/collections/{collectionId}",
|
|
40
50
|
pathVariables: { collectionId },
|
|
41
51
|
body,
|
|
52
|
+
contentType: "application/json",
|
|
42
53
|
options
|
|
43
54
|
});
|
|
44
55
|
var getCollectionItems = async (collectionId, query, options) => invokeFetch("collections", {
|
|
@@ -53,6 +64,7 @@ var addCollectionItem = async (collectionId, body, options) => invokeFetch("coll
|
|
|
53
64
|
pathTemplate: "/api/v1/collections/{collectionId}/items",
|
|
54
65
|
pathVariables: { collectionId },
|
|
55
66
|
body,
|
|
67
|
+
contentType: "application/json",
|
|
56
68
|
options
|
|
57
69
|
});
|
|
58
70
|
var deleteCollectionItem = async (collectionId, itemId, options) => invokeFetch("collections", {
|
|
@@ -76,6 +88,7 @@ var collectionsExport = {
|
|
|
76
88
|
getFavoritesCollection,
|
|
77
89
|
deleteCollection,
|
|
78
90
|
getCollection,
|
|
91
|
+
patchCollection,
|
|
79
92
|
updateCollection,
|
|
80
93
|
getCollectionItems,
|
|
81
94
|
addCollectionItem,
|
|
@@ -96,5 +109,6 @@ export {
|
|
|
96
109
|
getCollectionItems,
|
|
97
110
|
getCollections,
|
|
98
111
|
getFavoritesCollection,
|
|
112
|
+
patchCollection,
|
|
99
113
|
updateCollection
|
|
100
114
|
};
|
package/csp-origins.d.mts
CHANGED
|
@@ -69,6 +69,7 @@ type Link = {
|
|
|
69
69
|
};
|
|
70
70
|
/**
|
|
71
71
|
* Retrieves all CSP entries for a tenant
|
|
72
|
+
*
|
|
72
73
|
* @param query an object with query parameters
|
|
73
74
|
* @throws GetCSPEntriesHttpError
|
|
74
75
|
*/
|
|
@@ -126,6 +127,7 @@ type GetCSPEntriesHttpError = {
|
|
|
126
127
|
};
|
|
127
128
|
/**
|
|
128
129
|
* Creates a new CSP entry
|
|
130
|
+
*
|
|
129
131
|
* @param body an object with the body content
|
|
130
132
|
* @throws CreateCSPEntryHttpError
|
|
131
133
|
*/
|
|
@@ -142,6 +144,7 @@ type CreateCSPEntryHttpError = {
|
|
|
142
144
|
};
|
|
143
145
|
/**
|
|
144
146
|
* Retrieves the CSP header for a tenant
|
|
147
|
+
*
|
|
145
148
|
* @throws GetCSPHeaderHttpError
|
|
146
149
|
*/
|
|
147
150
|
declare const getCSPHeader: (options?: ApiCallOptions) => Promise<GetCSPHeaderHttpResponse>;
|
|
@@ -157,6 +160,7 @@ type GetCSPHeaderHttpError = {
|
|
|
157
160
|
};
|
|
158
161
|
/**
|
|
159
162
|
* Deletes a specific CSP entry
|
|
163
|
+
*
|
|
160
164
|
* @param id The CSP entry's unique identifier.
|
|
161
165
|
* @throws DeleteCSPEntryHttpError
|
|
162
166
|
*/
|
|
@@ -173,6 +177,7 @@ type DeleteCSPEntryHttpError = {
|
|
|
173
177
|
};
|
|
174
178
|
/**
|
|
175
179
|
* Returns details for a specific CSP entry
|
|
180
|
+
*
|
|
176
181
|
* @param id The CSP entry's unique identifier.
|
|
177
182
|
* @throws GetCSPEntryHttpError
|
|
178
183
|
*/
|
|
@@ -189,6 +194,7 @@ type GetCSPEntryHttpError = {
|
|
|
189
194
|
};
|
|
190
195
|
/**
|
|
191
196
|
* Updates a CSP entry
|
|
197
|
+
*
|
|
192
198
|
* @param id The CSP entry's unique identifier.
|
|
193
199
|
* @param body an object with the body content
|
|
194
200
|
* @throws UpdateCSPEntryHttpError
|
|
@@ -211,35 +217,41 @@ declare function clearCache(): void;
|
|
|
211
217
|
interface CspOriginsAPI {
|
|
212
218
|
/**
|
|
213
219
|
* Retrieves all CSP entries for a tenant
|
|
220
|
+
*
|
|
214
221
|
* @param query an object with query parameters
|
|
215
222
|
* @throws GetCSPEntriesHttpError
|
|
216
223
|
*/
|
|
217
224
|
getCSPEntries: typeof getCSPEntries;
|
|
218
225
|
/**
|
|
219
226
|
* Creates a new CSP entry
|
|
227
|
+
*
|
|
220
228
|
* @param body an object with the body content
|
|
221
229
|
* @throws CreateCSPEntryHttpError
|
|
222
230
|
*/
|
|
223
231
|
createCSPEntry: typeof createCSPEntry;
|
|
224
232
|
/**
|
|
225
233
|
* Retrieves the CSP header for a tenant
|
|
234
|
+
*
|
|
226
235
|
* @throws GetCSPHeaderHttpError
|
|
227
236
|
*/
|
|
228
237
|
getCSPHeader: typeof getCSPHeader;
|
|
229
238
|
/**
|
|
230
239
|
* Deletes a specific CSP entry
|
|
240
|
+
*
|
|
231
241
|
* @param id The CSP entry's unique identifier.
|
|
232
242
|
* @throws DeleteCSPEntryHttpError
|
|
233
243
|
*/
|
|
234
244
|
deleteCSPEntry: typeof deleteCSPEntry;
|
|
235
245
|
/**
|
|
236
246
|
* Returns details for a specific CSP entry
|
|
247
|
+
*
|
|
237
248
|
* @param id The CSP entry's unique identifier.
|
|
238
249
|
* @throws GetCSPEntryHttpError
|
|
239
250
|
*/
|
|
240
251
|
getCSPEntry: typeof getCSPEntry;
|
|
241
252
|
/**
|
|
242
253
|
* Updates a CSP entry
|
|
254
|
+
*
|
|
243
255
|
* @param id The CSP entry's unique identifier.
|
|
244
256
|
* @param body an object with the body content
|
|
245
257
|
* @throws UpdateCSPEntryHttpError
|
package/csp-origins.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ type Link = {
|
|
|
69
69
|
};
|
|
70
70
|
/**
|
|
71
71
|
* Retrieves all CSP entries for a tenant
|
|
72
|
+
*
|
|
72
73
|
* @param query an object with query parameters
|
|
73
74
|
* @throws GetCSPEntriesHttpError
|
|
74
75
|
*/
|
|
@@ -126,6 +127,7 @@ type GetCSPEntriesHttpError = {
|
|
|
126
127
|
};
|
|
127
128
|
/**
|
|
128
129
|
* Creates a new CSP entry
|
|
130
|
+
*
|
|
129
131
|
* @param body an object with the body content
|
|
130
132
|
* @throws CreateCSPEntryHttpError
|
|
131
133
|
*/
|
|
@@ -142,6 +144,7 @@ type CreateCSPEntryHttpError = {
|
|
|
142
144
|
};
|
|
143
145
|
/**
|
|
144
146
|
* Retrieves the CSP header for a tenant
|
|
147
|
+
*
|
|
145
148
|
* @throws GetCSPHeaderHttpError
|
|
146
149
|
*/
|
|
147
150
|
declare const getCSPHeader: (options?: ApiCallOptions) => Promise<GetCSPHeaderHttpResponse>;
|
|
@@ -157,6 +160,7 @@ type GetCSPHeaderHttpError = {
|
|
|
157
160
|
};
|
|
158
161
|
/**
|
|
159
162
|
* Deletes a specific CSP entry
|
|
163
|
+
*
|
|
160
164
|
* @param id The CSP entry's unique identifier.
|
|
161
165
|
* @throws DeleteCSPEntryHttpError
|
|
162
166
|
*/
|
|
@@ -173,6 +177,7 @@ type DeleteCSPEntryHttpError = {
|
|
|
173
177
|
};
|
|
174
178
|
/**
|
|
175
179
|
* Returns details for a specific CSP entry
|
|
180
|
+
*
|
|
176
181
|
* @param id The CSP entry's unique identifier.
|
|
177
182
|
* @throws GetCSPEntryHttpError
|
|
178
183
|
*/
|
|
@@ -189,6 +194,7 @@ type GetCSPEntryHttpError = {
|
|
|
189
194
|
};
|
|
190
195
|
/**
|
|
191
196
|
* Updates a CSP entry
|
|
197
|
+
*
|
|
192
198
|
* @param id The CSP entry's unique identifier.
|
|
193
199
|
* @param body an object with the body content
|
|
194
200
|
* @throws UpdateCSPEntryHttpError
|
|
@@ -211,35 +217,41 @@ declare function clearCache(): void;
|
|
|
211
217
|
interface CspOriginsAPI {
|
|
212
218
|
/**
|
|
213
219
|
* Retrieves all CSP entries for a tenant
|
|
220
|
+
*
|
|
214
221
|
* @param query an object with query parameters
|
|
215
222
|
* @throws GetCSPEntriesHttpError
|
|
216
223
|
*/
|
|
217
224
|
getCSPEntries: typeof getCSPEntries;
|
|
218
225
|
/**
|
|
219
226
|
* Creates a new CSP entry
|
|
227
|
+
*
|
|
220
228
|
* @param body an object with the body content
|
|
221
229
|
* @throws CreateCSPEntryHttpError
|
|
222
230
|
*/
|
|
223
231
|
createCSPEntry: typeof createCSPEntry;
|
|
224
232
|
/**
|
|
225
233
|
* Retrieves the CSP header for a tenant
|
|
234
|
+
*
|
|
226
235
|
* @throws GetCSPHeaderHttpError
|
|
227
236
|
*/
|
|
228
237
|
getCSPHeader: typeof getCSPHeader;
|
|
229
238
|
/**
|
|
230
239
|
* Deletes a specific CSP entry
|
|
240
|
+
*
|
|
231
241
|
* @param id The CSP entry's unique identifier.
|
|
232
242
|
* @throws DeleteCSPEntryHttpError
|
|
233
243
|
*/
|
|
234
244
|
deleteCSPEntry: typeof deleteCSPEntry;
|
|
235
245
|
/**
|
|
236
246
|
* Returns details for a specific CSP entry
|
|
247
|
+
*
|
|
237
248
|
* @param id The CSP entry's unique identifier.
|
|
238
249
|
* @throws GetCSPEntryHttpError
|
|
239
250
|
*/
|
|
240
251
|
getCSPEntry: typeof getCSPEntry;
|
|
241
252
|
/**
|
|
242
253
|
* Updates a CSP entry
|
|
254
|
+
*
|
|
243
255
|
* @param id The CSP entry's unique identifier.
|
|
244
256
|
* @param body an object with the body content
|
|
245
257
|
* @throws UpdateCSPEntryHttpError
|