@qlik/api 1.31.0 → 1.33.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 +10 -10
- package/api-keys.js +64 -50
- package/apps.d.ts +56 -56
- package/apps.js +392 -304
- package/assistants.d.ts +1301 -0
- package/assistants.js +329 -0
- package/audits.d.ts +10 -10
- package/audits.js +48 -36
- package/{auth-types-DqfMuSRX.d.ts → auth-types-Cj5bM3Yk.d.ts} +29 -9
- package/auth.d.ts +17 -4
- package/auth.js +4 -2
- package/automation-connections.d.ts +366 -0
- package/automation-connections.js +107 -0
- package/automations.d.ts +27 -27
- package/automations.js +159 -123
- package/automl-deployments.d.ts +97 -0
- package/automl-deployments.js +29 -0
- package/automl-predictions.d.ts +214 -0
- package/automl-predictions.js +84 -0
- package/brands.d.ts +18 -18
- package/brands.js +107 -83
- package/chunks/{KBSD75QL.js → 33GQY7N7.js} +1 -1
- package/chunks/{M64RLKVG.js → 62DXIH3S.js} +7 -5
- package/chunks/7MMXU6EL.js +86 -0
- package/chunks/{DLKLPD7T.js → GPRUNZV4.js} +3 -3
- package/chunks/{YKZ2QYHN.js → LIEZG7IM.js} +3 -3
- package/chunks/{FKDGGR2O.js → OTIO4SEJ.js} +698 -708
- package/chunks/{UZTIZ4H5.js → RP3EJGHG.js} +74 -74
- package/chunks/{GUU3KZGK.js → SPATCXXU.js} +9 -2
- package/chunks/{LY7RP2HA.js → XF3TPZKZ.js} +23 -8
- package/chunks/{6ZONDHRN.js → YYZCS5PW.js} +11 -4
- package/chunks/{3RGGGGAR.js → ZCTVPXGO.js} +1 -1
- package/collections.d.ts +16 -15
- package/collections.js +98 -76
- package/conditions.d.ts +662 -0
- package/conditions.js +135 -0
- package/consumption.d.ts +182 -0
- package/consumption.js +26 -0
- package/csp-origins.d.ts +9 -9
- package/csp-origins.js +53 -41
- package/csrf-token.d.ts +62 -0
- package/csrf-token.js +25 -0
- package/data-alerts.d.ts +1004 -0
- package/data-alerts.js +187 -0
- package/data-assets.d.ts +8 -8
- package/data-assets.js +50 -40
- package/data-connections.d.ts +16 -16
- package/data-connections.js +87 -69
- package/data-credentials.d.ts +11 -11
- package/data-credentials.js +52 -42
- package/data-files.d.ts +18 -18
- package/data-files.js +107 -83
- package/data-qualities.d.ts +175 -0
- package/data-qualities.js +50 -0
- package/data-sets.d.ts +424 -0
- package/data-sets.js +87 -0
- package/data-sources.d.ts +268 -0
- package/data-sources.js +45 -0
- package/data-stores.d.ts +537 -0
- package/data-stores.js +128 -0
- package/dcaas.d.ts +192 -0
- package/dcaas.js +45 -0
- package/di-projects.d.ts +673 -0
- package/di-projects.js +196 -0
- package/direct-access-agents.d.ts +328 -0
- package/direct-access-agents.js +108 -0
- package/encryption.d.ts +370 -0
- package/encryption.js +118 -0
- package/extensions.d.ts +11 -11
- package/extensions.js +61 -47
- package/glossaries.d.ts +33 -33
- package/glossaries.js +221 -173
- package/groups.d.ts +12 -12
- package/groups.js +72 -56
- package/identity-providers.d.ts +11 -11
- package/identity-providers.js +67 -51
- package/index.d.ts +113 -4
- package/index.js +626 -40
- package/interceptors.d.ts +9 -2
- package/interceptors.js +2 -2
- package/invoke-fetch-types-BYCD4pc9.d.ts +98 -0
- package/items.d.ts +14 -13
- package/items.js +71 -55
- package/knowledgebases.d.ts +890 -0
- package/knowledgebases.js +203 -0
- package/licenses.d.ts +14 -14
- package/licenses.js +76 -58
- package/lineage-graphs.d.ts +712 -0
- package/lineage-graphs.js +108 -0
- package/ml.d.ts +2676 -0
- package/ml.js +477 -0
- package/notes.d.ts +110 -0
- package/notes.js +35 -0
- package/notifications.d.ts +98 -0
- package/notifications.js +26 -0
- package/oauth-clients.d.ts +14 -14
- package/oauth-clients.js +96 -74
- package/oauth-tokens.d.ts +126 -0
- package/oauth-tokens.js +35 -0
- package/package.json +34 -6
- package/qix.d.ts +145 -4
- package/qix.js +2 -2
- package/questions.d.ts +364 -0
- package/questions.js +38 -0
- package/quotas.d.ts +6 -6
- package/quotas.js +20 -16
- package/reload-tasks.d.ts +8 -8
- package/reload-tasks.js +46 -36
- package/reloads.d.ts +7 -7
- package/reloads.js +36 -28
- package/report-templates.d.ts +287 -0
- package/report-templates.js +94 -0
- package/reports.d.ts +4 -4
- package/reports.js +20 -16
- package/roles.d.ts +8 -8
- package/roles.js +46 -36
- package/sharing-tasks.d.ts +952 -0
- package/sharing-tasks.js +125 -0
- package/spaces.d.ts +22 -22
- package/spaces.js +153 -119
- package/tasks.d.ts +564 -0
- package/tasks.js +126 -0
- package/temp-contents.d.ts +7 -7
- package/temp-contents.js +30 -24
- package/tenants.d.ts +8 -8
- package/tenants.js +57 -45
- package/themes.d.ts +11 -11
- package/themes.js +61 -47
- package/transports.d.ts +8 -8
- package/transports.js +49 -37
- package/ui-config.d.ts +274 -0
- package/ui-config.js +91 -0
- package/users.d.ts +15 -15
- package/users.js +81 -63
- package/web-integrations.d.ts +8 -8
- package/web-integrations.js +46 -36
- package/web-notifications.d.ts +9 -9
- package/web-notifications.js +53 -41
- package/webhooks.d.ts +14 -14
- package/webhooks.js +88 -68
- package/chunks/2ZQ3ZX7F.js +0 -33
- package/invoke-fetch-types-Cq7bjkqn.d.ts +0 -243
package/interceptors.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import { I as InvokeFetchResponse, a as InvokeFetchProperties } from './invoke-fetch-types-
|
|
2
|
-
import './auth-types-
|
|
1
|
+
import { I as InvokeFetchResponse, a as InvokeFetchProperties } from './invoke-fetch-types-BYCD4pc9.js';
|
|
2
|
+
import './auth-types-Cj5bM3Yk.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* This module provides a way to intercept requests and responses in the qmfe-api.
|
|
6
|
+
* It allows you to modify the request before it is sent and the response before it is returned.
|
|
7
|
+
* This is useful for adding headers, modifying the request body, or handling errors.
|
|
8
|
+
* @module interceptors
|
|
9
|
+
*/
|
|
3
10
|
|
|
4
11
|
/**
|
|
5
12
|
* The RestInterceptor type is a function that can be used to intercept requests and responses
|
package/interceptors.js
CHANGED
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
getInterceptors,
|
|
6
6
|
interceptors_default,
|
|
7
7
|
removeInterceptor
|
|
8
|
-
} from "./chunks/
|
|
9
|
-
import "./chunks/
|
|
8
|
+
} from "./chunks/ZCTVPXGO.js";
|
|
9
|
+
import "./chunks/7MMXU6EL.js";
|
|
10
10
|
export {
|
|
11
11
|
addDefaultInterceptors,
|
|
12
12
|
addInterceptor,
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { H as HostConfig } from './auth-types-Cj5bM3Yk.js';
|
|
2
|
+
|
|
3
|
+
/** The typical base return type of a fetch call */
|
|
4
|
+
type InvokeFetchResponse = {
|
|
5
|
+
status: number;
|
|
6
|
+
headers: Headers;
|
|
7
|
+
data: unknown;
|
|
8
|
+
prev?: () => Promise<InvokeFetchResponse>;
|
|
9
|
+
next?: () => Promise<InvokeFetchResponse>;
|
|
10
|
+
};
|
|
11
|
+
/** Additional options for an api call done with invoke-fetch */
|
|
12
|
+
type ApiCallOptions = {
|
|
13
|
+
/** Additional headers to pass on to the request. */
|
|
14
|
+
headers?: Record<string, string>;
|
|
15
|
+
/** if set to true the call will not use a cached result */
|
|
16
|
+
noCache?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Only used cached results whose age in milliseconds are less than that or equal to `maxCacheAge`.
|
|
19
|
+
*/
|
|
20
|
+
maxCacheAge?: number | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Only results cached on or after the `ifCachedSince` timestamp are used.
|
|
23
|
+
*/
|
|
24
|
+
useCacheIfAfter?: Date;
|
|
25
|
+
/**
|
|
26
|
+
* Specify the host configif the api call is a cross-domain request. Typically used in embedding and mashups
|
|
27
|
+
*/
|
|
28
|
+
hostConfig?: HostConfig;
|
|
29
|
+
/**
|
|
30
|
+
* Set the amount of time to wait for a response.
|
|
31
|
+
* If the timeout is exceeded the request is aborted.
|
|
32
|
+
* If both timeoutMs and signal is present, timeoutMs will have no effect, as
|
|
33
|
+
* there is already an abort-signal specified.
|
|
34
|
+
*/
|
|
35
|
+
timeoutMs?: number;
|
|
36
|
+
/**
|
|
37
|
+
* An abort-signal lets you abort an ongoing fetch request. The abort-signal is created
|
|
38
|
+
* by taking the .signal property of an AbortController.
|
|
39
|
+
*/
|
|
40
|
+
signal?: AbortSignal;
|
|
41
|
+
/**
|
|
42
|
+
* Ensure that the request is kept alive even if the page that initiated it is unloaded
|
|
43
|
+
* before the request is completed.
|
|
44
|
+
*/
|
|
45
|
+
keepalive?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Options for progress-reporting. Specify any combination of the callbacks `onUpload`
|
|
48
|
+
* and `onDownload`. Progress will be reported continuously.
|
|
49
|
+
*/
|
|
50
|
+
progress?: ProgressOptions;
|
|
51
|
+
};
|
|
52
|
+
type InvokeFetchProperties = {
|
|
53
|
+
/** http method */
|
|
54
|
+
method: string;
|
|
55
|
+
/** data passed to api call */
|
|
56
|
+
body?: unknown;
|
|
57
|
+
/** additional api call options */
|
|
58
|
+
options?: ApiCallOptions;
|
|
59
|
+
/** override default RequestInit options */
|
|
60
|
+
requestInitOverrides?: RequestInit;
|
|
61
|
+
/** path to api endpoint, can be in a template format e.g. /api/v1/space/{spaceId} */
|
|
62
|
+
pathTemplate: string;
|
|
63
|
+
/** path variables to be used in the path template */
|
|
64
|
+
pathVariables?: Record<string, string>;
|
|
65
|
+
/** additional query to url */
|
|
66
|
+
query?: Record<string, unknown>;
|
|
67
|
+
/** specify what content-type to send, if omitted "application/json" is assumed */
|
|
68
|
+
contentType?: string;
|
|
69
|
+
/** override the default user-agent with this value. This will also override any browser's UA. */
|
|
70
|
+
userAgent?: string;
|
|
71
|
+
};
|
|
72
|
+
type DownloadableBlob = Blob & {
|
|
73
|
+
/** download the blob in a using the specified filename */
|
|
74
|
+
download: (filename: string) => Promise<void>;
|
|
75
|
+
};
|
|
76
|
+
/** The callback options for reporting progress. */
|
|
77
|
+
type ProgressOptions = {
|
|
78
|
+
/** upload callback, called repeatedly when upload-progress is available */
|
|
79
|
+
onUpload?: (event: PartialProgressEvent) => void;
|
|
80
|
+
/** download callback, called repeatedly when upload-progress is available */
|
|
81
|
+
onDownload?: (event: PartialProgressEvent) => void;
|
|
82
|
+
};
|
|
83
|
+
/** Represents the current upload or download progress a API-call.
|
|
84
|
+
*
|
|
85
|
+
* It contains the number of loaded bytes and, if computable, the total payload size.
|
|
86
|
+
* If the total size cannot be determined, `total` will be undefined.
|
|
87
|
+
*
|
|
88
|
+
*
|
|
89
|
+
* See MDN: {@link https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent}
|
|
90
|
+
*/
|
|
91
|
+
type PartialProgressEvent = {
|
|
92
|
+
/** Number of bytes currently loaded. */
|
|
93
|
+
loaded: ProgressEvent["loaded"];
|
|
94
|
+
/** The total size of the payload, if computable. */
|
|
95
|
+
total?: ProgressEvent["total"];
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export type { ApiCallOptions as A, DownloadableBlob as D, InvokeFetchResponse as I, InvokeFetchProperties as a };
|
package/items.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as ApiCallOptions } from './invoke-fetch-types-
|
|
2
|
-
import './auth-types-
|
|
1
|
+
import { A as ApiCallOptions } from './invoke-fetch-types-BYCD4pc9.js';
|
|
2
|
+
import './auth-types-Cj5bM3Yk.js';
|
|
3
3
|
|
|
4
4
|
type CollectionTypes = "private" | "public" | "publicgoverned";
|
|
5
5
|
type ErrorResponseBody = {
|
|
@@ -110,6 +110,7 @@ type CollectionsLinksResponseBody = {
|
|
|
110
110
|
type ItemLinksResponseBody = {
|
|
111
111
|
collections?: Link;
|
|
112
112
|
open?: Link;
|
|
113
|
+
qvPlugin?: Link;
|
|
113
114
|
self?: Link;
|
|
114
115
|
thumbnail?: Link;
|
|
115
116
|
};
|
|
@@ -251,7 +252,7 @@ type SpaceTypeEnum = "shared" | "managed" | "personal" | "data";
|
|
|
251
252
|
* @param query an object with query parameters
|
|
252
253
|
* @throws GetItemsHttpError
|
|
253
254
|
*/
|
|
254
|
-
declare
|
|
255
|
+
declare function getItems(query: {
|
|
255
256
|
/** The collection's unique identifier. Used to filter for items with a specific tag (collection type `public`), or collection. */
|
|
256
257
|
collectionId?: string;
|
|
257
258
|
/** User's unique identifier. */
|
|
@@ -295,7 +296,7 @@ declare const getItems: (query: {
|
|
|
295
296
|
spaceId?: string;
|
|
296
297
|
/** The case-sensitive string used to filter items on space type(s). For example '?spaceType=shared,personal'. */
|
|
297
298
|
spaceType?: SpaceTypeEnum;
|
|
298
|
-
}, options?: ApiCallOptions)
|
|
299
|
+
}, options?: ApiCallOptions): Promise<GetItemsHttpResponse>;
|
|
299
300
|
type GetItemsHttpResponse = {
|
|
300
301
|
data: ItemsListItemsResponseBody;
|
|
301
302
|
headers: Headers;
|
|
@@ -313,7 +314,7 @@ type GetItemsHttpError = {
|
|
|
313
314
|
*
|
|
314
315
|
* @throws GetItemsSettingsHttpError
|
|
315
316
|
*/
|
|
316
|
-
declare
|
|
317
|
+
declare function getItemsSettings(options?: ApiCallOptions): Promise<GetItemsSettingsHttpResponse>;
|
|
317
318
|
type GetItemsSettingsHttpResponse = {
|
|
318
319
|
data: ItemsSettingsResponseBody;
|
|
319
320
|
headers: Headers;
|
|
@@ -330,7 +331,7 @@ type GetItemsSettingsHttpError = {
|
|
|
330
331
|
* @param body an object with the body content
|
|
331
332
|
* @throws PatchItemsSettingsHttpError
|
|
332
333
|
*/
|
|
333
|
-
declare
|
|
334
|
+
declare function patchItemsSettings(body: ItemsSettingsPatch, options?: ApiCallOptions): Promise<PatchItemsSettingsHttpResponse>;
|
|
334
335
|
type PatchItemsSettingsHttpResponse = {
|
|
335
336
|
data: ItemsSettingsResponseBody;
|
|
336
337
|
headers: Headers;
|
|
@@ -347,7 +348,7 @@ type PatchItemsSettingsHttpError = {
|
|
|
347
348
|
* @param itemId The item's unique identifier.
|
|
348
349
|
* @throws DeleteItemHttpError
|
|
349
350
|
*/
|
|
350
|
-
declare
|
|
351
|
+
declare function deleteItem(itemId: string, options?: ApiCallOptions): Promise<DeleteItemHttpResponse>;
|
|
351
352
|
type DeleteItemHttpResponse = {
|
|
352
353
|
data: void;
|
|
353
354
|
headers: Headers;
|
|
@@ -364,7 +365,7 @@ type DeleteItemHttpError = {
|
|
|
364
365
|
* @param itemId The item's unique identifier
|
|
365
366
|
* @throws GetItemHttpError
|
|
366
367
|
*/
|
|
367
|
-
declare
|
|
368
|
+
declare function getItem(itemId: string, options?: ApiCallOptions): Promise<GetItemHttpResponse>;
|
|
368
369
|
type GetItemHttpResponse = {
|
|
369
370
|
data: ItemResultResponseBody;
|
|
370
371
|
headers: Headers;
|
|
@@ -382,7 +383,7 @@ type GetItemHttpError = {
|
|
|
382
383
|
* @param body an object with the body content
|
|
383
384
|
* @throws UpdateItemHttpError
|
|
384
385
|
*/
|
|
385
|
-
declare
|
|
386
|
+
declare function updateItem(itemId: string, body: ItemsUpdateItemRequestBody, options?: ApiCallOptions): Promise<UpdateItemHttpResponse>;
|
|
386
387
|
type UpdateItemHttpResponse = {
|
|
387
388
|
data: ItemResultResponseBody;
|
|
388
389
|
headers: Headers;
|
|
@@ -400,7 +401,7 @@ type UpdateItemHttpError = {
|
|
|
400
401
|
* @param query an object with query parameters
|
|
401
402
|
* @throws GetItemCollectionsHttpError
|
|
402
403
|
*/
|
|
403
|
-
declare
|
|
404
|
+
declare function getItemCollections(itemId: string, query: {
|
|
404
405
|
/** The maximum number of resources to return for a request. The limit must be an integer between 1 and 100 (inclusive). */
|
|
405
406
|
limit?: number;
|
|
406
407
|
/** The case-sensitive string used to search for a collection by name. */
|
|
@@ -415,7 +416,7 @@ declare const getItemCollections: (itemId: string, query: {
|
|
|
415
416
|
sort?: "+createdAt" | "-createdAt" | "+name" | "-name" | "+updatedAt" | "-updatedAt";
|
|
416
417
|
/** The case-sensitive string used to search for a collection by type. */
|
|
417
418
|
type?: CollectionTypes;
|
|
418
|
-
}, options?: ApiCallOptions)
|
|
419
|
+
}, options?: ApiCallOptions): Promise<GetItemCollectionsHttpResponse>;
|
|
419
420
|
type GetItemCollectionsHttpResponse = {
|
|
420
421
|
data: ItemsListItemCollectionsResponseBody;
|
|
421
422
|
headers: Headers;
|
|
@@ -435,7 +436,7 @@ type GetItemCollectionsHttpError = {
|
|
|
435
436
|
* @param query an object with query parameters
|
|
436
437
|
* @throws GetPublishedItemsHttpError
|
|
437
438
|
*/
|
|
438
|
-
declare
|
|
439
|
+
declare function getPublishedItems(itemId: string, query: {
|
|
439
440
|
/** The maximum number of resources to return for a request. The limit must be an integer between 1 and 100 (inclusive). */
|
|
440
441
|
limit?: number;
|
|
441
442
|
/** The cursor to the next page of resources. Provide either the next or prev cursor, but not both. */
|
|
@@ -446,7 +447,7 @@ declare const getPublishedItems: (itemId: string, query: {
|
|
|
446
447
|
resourceType?: ItemResourceTypeEnum;
|
|
447
448
|
/** 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. */
|
|
448
449
|
sort?: "+createdAt" | "-createdAt" | "+name" | "-name" | "+updatedAt" | "-updatedAt";
|
|
449
|
-
}, options?: ApiCallOptions)
|
|
450
|
+
}, options?: ApiCallOptions): Promise<GetPublishedItemsHttpResponse>;
|
|
450
451
|
type GetPublishedItemsHttpResponse = {
|
|
451
452
|
data: ItemsListItemCollectionsResponseBody;
|
|
452
453
|
headers: Headers;
|
package/items.js
CHANGED
|
@@ -1,63 +1,79 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./chunks/
|
|
5
|
-
import "./chunks/
|
|
6
|
-
import "./chunks/
|
|
4
|
+
} from "./chunks/LIEZG7IM.js";
|
|
5
|
+
import "./chunks/GPRUNZV4.js";
|
|
6
|
+
import "./chunks/7MMXU6EL.js";
|
|
7
7
|
|
|
8
8
|
// src/public/rest/items.ts
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
9
|
+
async function getItems(query, options) {
|
|
10
|
+
return invokeFetch("items", {
|
|
11
|
+
method: "get",
|
|
12
|
+
pathTemplate: "/api/v1/items",
|
|
13
|
+
query,
|
|
14
|
+
options
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
async function getItemsSettings(options) {
|
|
18
|
+
return invokeFetch("items", {
|
|
19
|
+
method: "get",
|
|
20
|
+
pathTemplate: "/api/v1/items/settings",
|
|
21
|
+
options
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
async function patchItemsSettings(body, options) {
|
|
25
|
+
return invokeFetch("items", {
|
|
26
|
+
method: "patch",
|
|
27
|
+
pathTemplate: "/api/v1/items/settings",
|
|
28
|
+
body,
|
|
29
|
+
contentType: "application/json",
|
|
30
|
+
options
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
async function deleteItem(itemId, options) {
|
|
34
|
+
return invokeFetch("items", {
|
|
35
|
+
method: "delete",
|
|
36
|
+
pathTemplate: "/api/v1/items/{itemId}",
|
|
37
|
+
pathVariables: { itemId },
|
|
38
|
+
options
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
async function getItem(itemId, options) {
|
|
42
|
+
return invokeFetch("items", {
|
|
43
|
+
method: "get",
|
|
44
|
+
pathTemplate: "/api/v1/items/{itemId}",
|
|
45
|
+
pathVariables: { itemId },
|
|
46
|
+
options
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
async function updateItem(itemId, body, options) {
|
|
50
|
+
return invokeFetch("items", {
|
|
51
|
+
method: "put",
|
|
52
|
+
pathTemplate: "/api/v1/items/{itemId}",
|
|
53
|
+
pathVariables: { itemId },
|
|
54
|
+
body,
|
|
55
|
+
contentType: "application/json",
|
|
56
|
+
options
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
async function getItemCollections(itemId, query, options) {
|
|
60
|
+
return invokeFetch("items", {
|
|
61
|
+
method: "get",
|
|
62
|
+
pathTemplate: "/api/v1/items/{itemId}/collections",
|
|
63
|
+
pathVariables: { itemId },
|
|
64
|
+
query,
|
|
65
|
+
options
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
async function getPublishedItems(itemId, query, options) {
|
|
69
|
+
return invokeFetch("items", {
|
|
70
|
+
method: "get",
|
|
71
|
+
pathTemplate: "/api/v1/items/{itemId}/publisheditems",
|
|
72
|
+
pathVariables: { itemId },
|
|
73
|
+
query,
|
|
74
|
+
options
|
|
75
|
+
});
|
|
76
|
+
}
|
|
61
77
|
function clearCache() {
|
|
62
78
|
return clearApiCache("items");
|
|
63
79
|
}
|