@qlik/api 1.32.0 → 1.34.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 +13 -12
- package/api-keys.js +64 -50
- package/apps.d.ts +56 -56
- package/apps.js +392 -304
- package/assistants.d.ts +34 -34
- package/assistants.js +257 -201
- 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 +12 -12
- package/automation-connections.js +75 -59
- package/automations.d.ts +29 -29
- package/automations.js +159 -123
- package/automl-deployments.d.ts +4 -4
- package/automl-deployments.js +14 -12
- package/automl-predictions.d.ts +13 -13
- package/automl-predictions.js +56 -44
- package/brands.d.ts +18 -18
- package/brands.js +107 -83
- package/chunks/{LY7RP2HA.js → 4V6T7Y4L.js} +26 -8
- package/chunks/{RCLKKVYB.js → 6C6WMV7V.js} +9 -2
- package/chunks/{VVD2DPKQ.js → 6WNP7HZQ.js} +3 -3
- package/chunks/7MMXU6EL.js +86 -0
- package/chunks/{6ZONDHRN.js → EEE42MLS.js} +11 -4
- package/chunks/{FKDGGR2O.js → I2HA7WJB.js} +1362 -1366
- package/chunks/{M64RLKVG.js → M7AINAXZ.js} +7 -5
- package/chunks/{LTNGXTXG.js → QAOVZB27.js} +3 -3
- package/chunks/{YTT2FEVE.js → QZKOA6VR.js} +1 -1
- package/chunks/{UZTIZ4H5.js → VUYZKBT5.js} +74 -74
- package/chunks/{3RGGGGAR.js → ZCTVPXGO.js} +1 -1
- package/collections.d.ts +16 -15
- package/collections.js +98 -76
- package/conditions.d.ts +13 -13
- package/conditions.js +97 -75
- package/consumption.d.ts +4 -4
- package/consumption.js +11 -9
- package/csp-origins.d.ts +9 -9
- package/csp-origins.js +53 -41
- package/csrf-token.d.ts +3 -3
- package/csrf-token.js +10 -8
- package/data-alerts.d.ts +22 -22
- package/data-alerts.js +139 -107
- 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 +6 -6
- package/data-qualities.js +28 -22
- package/data-sets.d.ts +10 -10
- package/data-sets.js +59 -47
- package/data-sources.d.ts +7 -7
- package/data-sources.js +28 -22
- package/data-stores.d.ts +16 -16
- package/data-stores.js +92 -72
- package/dcaas.d.ts +6 -6
- package/dcaas.js +28 -22
- package/di-projects.d.ts +22 -22
- package/di-projects.js +148 -116
- package/direct-access-agents.d.ts +328 -0
- package/direct-access-agents.js +108 -0
- package/encryption.d.ts +12 -12
- package/encryption.js +82 -62
- 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 +9 -4
- package/index.js +102 -67
- 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 +23 -23
- package/knowledgebases.js +153 -119
- package/licenses.d.ts +16 -14
- package/licenses.js +76 -58
- package/lineage-graphs.d.ts +17 -17
- package/lineage-graphs.js +76 -60
- package/ml.d.ts +238 -60
- package/ml.js +391 -286
- package/notes.d.ts +4 -4
- package/notes.js +19 -15
- package/notifications.d.ts +4 -4
- package/notifications.js +11 -9
- package/oauth-clients.d.ts +14 -14
- package/oauth-clients.js +96 -74
- package/oauth-tokens.d.ts +5 -5
- package/oauth-tokens.js +19 -15
- package/package.json +8 -6
- package/qix.d.ts +145 -4
- package/qix.js +2 -2
- package/questions.d.ts +5 -5
- package/questions.js +22 -18
- 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 +10 -10
- package/report-templates.js +64 -50
- 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 +14 -14
- package/sharing-tasks.js +89 -69
- package/spaces.d.ts +27 -23
- package/spaces.js +153 -119
- package/tasks.d.ts +17 -17
- package/tasks.js +90 -70
- 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 +9 -9
- package/ui-config.js +61 -47
- 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
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
handleAuthenticationError,
|
|
10
10
|
isWindows,
|
|
11
11
|
toValidWebsocketLocationUrl
|
|
12
|
-
} from "./
|
|
13
|
-
import "./
|
|
12
|
+
} from "./I2HA7WJB.js";
|
|
13
|
+
import "./ZCTVPXGO.js";
|
|
14
14
|
import {
|
|
15
15
|
isNode
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./7MMXU6EL.js";
|
|
17
17
|
|
|
18
18
|
// src/qix/session/schema/engine-api.js
|
|
19
19
|
var engine_api_default = {
|
|
@@ -10961,6 +10961,10 @@ function unwrapDeltas(result, state, handle, method) {
|
|
|
10961
10961
|
return JSON.parse(JSON.stringify(newResult));
|
|
10962
10962
|
}
|
|
10963
10963
|
|
|
10964
|
+
// src/qix/session/phoenix/websocket-closed-error.ts
|
|
10965
|
+
var WebsocketClosedError = class extends Error {
|
|
10966
|
+
};
|
|
10967
|
+
|
|
10964
10968
|
// src/qix/session/phoenix/protocol-helpers.ts
|
|
10965
10969
|
function getDeltaAndReturnEmptyProps(request) {
|
|
10966
10970
|
if (request.method === "GetProperties" || request.method === "GetFullPropertyTree") {
|
|
@@ -11106,8 +11110,6 @@ async function createWebsocketSingleAttempt({ appId, identity, hostConfig, useRe
|
|
|
11106
11110
|
// src/qix/session/phoenix/json-rpc-channel.ts
|
|
11107
11111
|
var RPC_CLOSE_NORMAL = 1e3;
|
|
11108
11112
|
var RPC_CLOSE_MANUAL_SUSPEND = 4e3;
|
|
11109
|
-
var WebsocketClosedError = class extends Error {
|
|
11110
|
-
};
|
|
11111
11113
|
async function createJsonRpcChannel(props, listener) {
|
|
11112
11114
|
const { hostConfig } = props;
|
|
11113
11115
|
const [connectionInfoPromise, resolveConnectionInfo] = createResolvablePromise();
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
// src/public/public-runtime-modules.ts
|
|
2
2
|
function getAuthRuntimeModule(hostConfig) {
|
|
3
3
|
const isNode = !!globalThis.process?.argv;
|
|
4
|
-
return isNode ? import("./
|
|
4
|
+
return isNode ? import("./4V6T7Y4L.js") : import("./PLVPW5IR.js").then(
|
|
5
5
|
(mod) => mod.importRuntimeModule("auth@v1", hostConfig)
|
|
6
6
|
);
|
|
7
7
|
}
|
|
8
8
|
async function getQixRuntimeModule(hostConfig) {
|
|
9
9
|
await getAuthRuntimeModule(hostConfig);
|
|
10
10
|
const isNode = !!globalThis.process?.argv;
|
|
11
|
-
return isNode ? import("./
|
|
11
|
+
return isNode ? import("./VUYZKBT5.js") : import("./PLVPW5IR.js").then(
|
|
12
12
|
(mod) => mod.importRuntimeModule("qix@v1", hostConfig)
|
|
13
13
|
);
|
|
14
14
|
}
|
|
15
15
|
async function getInvokeFetchRuntimeModule(hostConfig) {
|
|
16
16
|
await getAuthRuntimeModule(hostConfig);
|
|
17
17
|
const isNode = !!globalThis.process?.argv;
|
|
18
|
-
return isNode ? import("./
|
|
18
|
+
return isNode ? import("./EEE42MLS.js") : import("./PLVPW5IR.js").then(
|
|
19
19
|
(mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig)
|
|
20
20
|
);
|
|
21
21
|
}
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
invokeFetch,
|
|
8
8
|
isWindows,
|
|
9
9
|
toValidWebsocketLocationUrl
|
|
10
|
-
} from "./
|
|
11
|
-
import "./
|
|
10
|
+
} from "./I2HA7WJB.js";
|
|
11
|
+
import "./ZCTVPXGO.js";
|
|
12
12
|
import {
|
|
13
13
|
isBrowser
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./7MMXU6EL.js";
|
|
15
15
|
|
|
16
16
|
// src/qix/app-session.ts
|
|
17
17
|
var isBrowserEnvironment = isBrowser();
|
|
@@ -225,76 +225,6 @@ function triggerGlobalWebSocketEventListeners(event) {
|
|
|
225
225
|
stateListener(toGlobalAppSessionId(event), event);
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
// src/qix/session/shared-sessions-phoenix.ts
|
|
229
|
-
function createSharedPhoenixSession(props, { onClose, onWebSocketEvent: onWebSocketEventGlobal, getInitialAppActions }) {
|
|
230
|
-
try {
|
|
231
|
-
const clients = [];
|
|
232
|
-
const onWebSocketEvent2 = (event) => {
|
|
233
|
-
onWebSocketEventGlobal(event);
|
|
234
|
-
for (const client of clients) {
|
|
235
|
-
client.onWebSocketEvent(event);
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
|
-
const phoenixConnectionPromise = import("./M64RLKVG.js").then((module) => {
|
|
239
|
-
return module.createPhoenixConnectionEntrypoint(props, {
|
|
240
|
-
onWebSocketEvent: onWebSocketEvent2,
|
|
241
|
-
getInitialAppActions
|
|
242
|
-
});
|
|
243
|
-
});
|
|
244
|
-
const docPromise = phoenixConnectionPromise.then((phoenixConnection) => phoenixConnection.doc);
|
|
245
|
-
const sharedSession = {
|
|
246
|
-
getDoc: () => docPromise,
|
|
247
|
-
addClient(client) {
|
|
248
|
-
const index = clients.indexOf(client, 0);
|
|
249
|
-
if (index === -1) {
|
|
250
|
-
clients.push(client);
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
removeClient(client, closeDelay) {
|
|
254
|
-
if (clients.length === 1) {
|
|
255
|
-
void phoenixConnectionPromise.then((phoenixConnection) => {
|
|
256
|
-
phoenixConnection.stopActivityMonitoring();
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
const actuallyRemove = () => {
|
|
260
|
-
const index = clients.indexOf(client, 0);
|
|
261
|
-
if (index > -1) {
|
|
262
|
-
clients.splice(index, 1);
|
|
263
|
-
}
|
|
264
|
-
if (clients.length === 0) {
|
|
265
|
-
onClose();
|
|
266
|
-
void phoenixConnectionPromise.then((phoenixConnection) => {
|
|
267
|
-
phoenixConnection.close();
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
if (closeDelay > 0) {
|
|
272
|
-
return new Promise((resolve) => {
|
|
273
|
-
setTimeout(() => {
|
|
274
|
-
actuallyRemove();
|
|
275
|
-
resolve();
|
|
276
|
-
}, closeDelay);
|
|
277
|
-
});
|
|
278
|
-
} else {
|
|
279
|
-
actuallyRemove();
|
|
280
|
-
return Promise.resolve();
|
|
281
|
-
}
|
|
282
|
-
},
|
|
283
|
-
resume: async () => {
|
|
284
|
-
void phoenixConnectionPromise.then((session) => session.resume());
|
|
285
|
-
},
|
|
286
|
-
initialActionsUpdated() {
|
|
287
|
-
void phoenixConnectionPromise.then((session) => session.initialAppActionsUpdated());
|
|
288
|
-
},
|
|
289
|
-
clientsCount: () => clients.length
|
|
290
|
-
};
|
|
291
|
-
return sharedSession;
|
|
292
|
-
} catch (err) {
|
|
293
|
-
console.error(err);
|
|
294
|
-
throw err;
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
|
|
298
228
|
// src/qix/session/shared-sessions.ts
|
|
299
229
|
function listenForWindowsAuthenticationInformation(session) {
|
|
300
230
|
let resolveAuthSuggestedInWebsocket;
|
|
@@ -317,7 +247,7 @@ function listenForWindowsAuthenticationInformation(session) {
|
|
|
317
247
|
return authSuggestedInWebsocket;
|
|
318
248
|
}
|
|
319
249
|
async function createAndSetupEnigmaSession(props, canRetry, onWebSocketEvent2) {
|
|
320
|
-
const { createEnigmaSessionEntrypoint } = await import("./
|
|
250
|
+
const { createEnigmaSessionEntrypoint } = await import("./M7AINAXZ.js");
|
|
321
251
|
const session = await createEnigmaSessionEntrypoint(props);
|
|
322
252
|
setupSessionListeners(session, props, onWebSocketEvent2);
|
|
323
253
|
let global;
|
|
@@ -601,6 +531,76 @@ async function sessionResumeWithRetry(session, hostConfig) {
|
|
|
601
531
|
return Promise.resolve();
|
|
602
532
|
}
|
|
603
533
|
|
|
534
|
+
// src/qix/session/shared-sessions-phoenix.ts
|
|
535
|
+
function createSharedPhoenixSession(props, { onClose, onWebSocketEvent: onWebSocketEventGlobal, getInitialAppActions }) {
|
|
536
|
+
try {
|
|
537
|
+
const clients = [];
|
|
538
|
+
const onWebSocketEvent2 = (event) => {
|
|
539
|
+
onWebSocketEventGlobal(event);
|
|
540
|
+
for (const client of clients) {
|
|
541
|
+
client.onWebSocketEvent(event);
|
|
542
|
+
}
|
|
543
|
+
};
|
|
544
|
+
const phoenixConnectionPromise = import("./M7AINAXZ.js").then((module) => {
|
|
545
|
+
return module.createPhoenixConnectionEntrypoint(props, {
|
|
546
|
+
onWebSocketEvent: onWebSocketEvent2,
|
|
547
|
+
getInitialAppActions
|
|
548
|
+
});
|
|
549
|
+
});
|
|
550
|
+
const docPromise = phoenixConnectionPromise.then((phoenixConnection) => phoenixConnection.doc);
|
|
551
|
+
const sharedSession = {
|
|
552
|
+
getDoc: () => docPromise,
|
|
553
|
+
addClient(client) {
|
|
554
|
+
const index = clients.indexOf(client, 0);
|
|
555
|
+
if (index === -1) {
|
|
556
|
+
clients.push(client);
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
removeClient(client, closeDelay) {
|
|
560
|
+
if (clients.length === 1) {
|
|
561
|
+
void phoenixConnectionPromise.then((phoenixConnection) => {
|
|
562
|
+
phoenixConnection.stopActivityMonitoring();
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
const actuallyRemove = () => {
|
|
566
|
+
const index = clients.indexOf(client, 0);
|
|
567
|
+
if (index > -1) {
|
|
568
|
+
clients.splice(index, 1);
|
|
569
|
+
}
|
|
570
|
+
if (clients.length === 0) {
|
|
571
|
+
onClose();
|
|
572
|
+
void phoenixConnectionPromise.then((phoenixConnection) => {
|
|
573
|
+
phoenixConnection.close();
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
if (closeDelay > 0) {
|
|
578
|
+
return new Promise((resolve) => {
|
|
579
|
+
setTimeout(() => {
|
|
580
|
+
actuallyRemove();
|
|
581
|
+
resolve();
|
|
582
|
+
}, closeDelay);
|
|
583
|
+
});
|
|
584
|
+
} else {
|
|
585
|
+
actuallyRemove();
|
|
586
|
+
return Promise.resolve();
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
resume: async () => {
|
|
590
|
+
void phoenixConnectionPromise.then((session) => session.resume());
|
|
591
|
+
},
|
|
592
|
+
initialActionsUpdated() {
|
|
593
|
+
void phoenixConnectionPromise.then((session) => session.initialAppActionsUpdated());
|
|
594
|
+
},
|
|
595
|
+
clientsCount: () => clients.length
|
|
596
|
+
};
|
|
597
|
+
return sharedSession;
|
|
598
|
+
} catch (err) {
|
|
599
|
+
console.error(err);
|
|
600
|
+
throw err;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
|
|
604
604
|
// src/qix/shared-sessions-manager.ts
|
|
605
605
|
var initialActions = {};
|
|
606
606
|
var sharedSessions = {};
|
package/collections.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 CollectionByIdPatch = {
|
|
5
5
|
/** The operation to be performed. */
|
|
@@ -102,6 +102,7 @@ type CollectionsLinksResponseBody = {
|
|
|
102
102
|
type ItemLinksResponseBody = {
|
|
103
103
|
collections?: Link;
|
|
104
104
|
open?: Link;
|
|
105
|
+
qvPlugin?: Link;
|
|
105
106
|
self?: Link;
|
|
106
107
|
thumbnail?: Link;
|
|
107
108
|
};
|
|
@@ -239,7 +240,7 @@ type Meta = {
|
|
|
239
240
|
* @param query an object with query parameters
|
|
240
241
|
* @throws GetCollectionsHttpError
|
|
241
242
|
*/
|
|
242
|
-
declare
|
|
243
|
+
declare function getCollections(query: {
|
|
243
244
|
/** The case-sensitive string used to search for a resource by creatorId. */
|
|
244
245
|
creatorId?: string;
|
|
245
246
|
/** The collection's unique identifier. */
|
|
@@ -266,7 +267,7 @@ declare const getCollections: (query: {
|
|
|
266
267
|
type?: CollectionTypes;
|
|
267
268
|
/** A commaseparated case-sensitive string used to filter by multiple types. */
|
|
268
269
|
types?: CollectionTypes[];
|
|
269
|
-
}, options?: ApiCallOptions)
|
|
270
|
+
}, options?: ApiCallOptions): Promise<GetCollectionsHttpResponse>;
|
|
270
271
|
type GetCollectionsHttpResponse = {
|
|
271
272
|
data: CollectionsListCollectionsResponseBody;
|
|
272
273
|
headers: Headers;
|
|
@@ -285,7 +286,7 @@ type GetCollectionsHttpError = {
|
|
|
285
286
|
* @param body an object with the body content
|
|
286
287
|
* @throws CreateCollectionHttpError
|
|
287
288
|
*/
|
|
288
|
-
declare
|
|
289
|
+
declare function createCollection(body: CollectionsCreateCollectionRequestBody, options?: ApiCallOptions): Promise<CreateCollectionHttpResponse>;
|
|
289
290
|
type CreateCollectionHttpResponse = {
|
|
290
291
|
data: CollectionResultResponseBody;
|
|
291
292
|
headers: Headers;
|
|
@@ -301,7 +302,7 @@ type CreateCollectionHttpError = {
|
|
|
301
302
|
*
|
|
302
303
|
* @throws GetFavoritesCollectionHttpError
|
|
303
304
|
*/
|
|
304
|
-
declare
|
|
305
|
+
declare function getFavoritesCollection(options?: ApiCallOptions): Promise<GetFavoritesCollectionHttpResponse>;
|
|
305
306
|
type GetFavoritesCollectionHttpResponse = {
|
|
306
307
|
data: CollectionResultResponseBody;
|
|
307
308
|
headers: Headers;
|
|
@@ -318,7 +319,7 @@ type GetFavoritesCollectionHttpError = {
|
|
|
318
319
|
* @param collectionId The collection's unique identifier.
|
|
319
320
|
* @throws DeleteCollectionHttpError
|
|
320
321
|
*/
|
|
321
|
-
declare
|
|
322
|
+
declare function deleteCollection(collectionId: string, options?: ApiCallOptions): Promise<DeleteCollectionHttpResponse>;
|
|
322
323
|
type DeleteCollectionHttpResponse = {
|
|
323
324
|
data: void;
|
|
324
325
|
headers: Headers;
|
|
@@ -335,7 +336,7 @@ type DeleteCollectionHttpError = {
|
|
|
335
336
|
* @param collectionId The collection's unique identifier.
|
|
336
337
|
* @throws GetCollectionHttpError
|
|
337
338
|
*/
|
|
338
|
-
declare
|
|
339
|
+
declare function getCollection(collectionId: string, options?: ApiCallOptions): Promise<GetCollectionHttpResponse>;
|
|
339
340
|
type GetCollectionHttpResponse = {
|
|
340
341
|
data: CollectionResultResponseBody;
|
|
341
342
|
headers: Headers;
|
|
@@ -353,7 +354,7 @@ type GetCollectionHttpError = {
|
|
|
353
354
|
* @param body an object with the body content
|
|
354
355
|
* @throws PatchCollectionHttpError
|
|
355
356
|
*/
|
|
356
|
-
declare
|
|
357
|
+
declare function patchCollection(collectionId: string, body: CollectionByIdPatch, options?: ApiCallOptions): Promise<PatchCollectionHttpResponse>;
|
|
357
358
|
type PatchCollectionHttpResponse = {
|
|
358
359
|
data: CollectionResultResponseBody;
|
|
359
360
|
headers: Headers;
|
|
@@ -371,7 +372,7 @@ type PatchCollectionHttpError = {
|
|
|
371
372
|
* @param body an object with the body content
|
|
372
373
|
* @throws UpdateCollectionHttpError
|
|
373
374
|
*/
|
|
374
|
-
declare
|
|
375
|
+
declare function updateCollection(collectionId: string, body: CollectionsUpdateCollectionRequestBody, options?: ApiCallOptions): Promise<UpdateCollectionHttpResponse>;
|
|
375
376
|
type UpdateCollectionHttpResponse = {
|
|
376
377
|
data: CollectionResultResponseBody;
|
|
377
378
|
headers: Headers;
|
|
@@ -390,7 +391,7 @@ type UpdateCollectionHttpError = {
|
|
|
390
391
|
* @param query an object with query parameters
|
|
391
392
|
* @throws GetCollectionItemsHttpError
|
|
392
393
|
*/
|
|
393
|
-
declare
|
|
394
|
+
declare function getCollectionItems(collectionId: string, query: {
|
|
394
395
|
/** The maximum number of resources to return for a request. The limit must be an integer between 1 and 100 (inclusive). */
|
|
395
396
|
limit?: number;
|
|
396
397
|
/** The case-insensitive string used to search for a resource by name. */
|
|
@@ -416,7 +417,7 @@ declare const getCollectionItems: (collectionId: string, query: {
|
|
|
416
417
|
sort?: "+createdAt" | "-createdAt" | "+name" | "-name" | "+updatedAt" | "-updatedAt";
|
|
417
418
|
/** The space's unique identifier (supports \'personal\' as spaceId). */
|
|
418
419
|
spaceId?: string;
|
|
419
|
-
}, options?: ApiCallOptions)
|
|
420
|
+
}, options?: ApiCallOptions): Promise<GetCollectionItemsHttpResponse>;
|
|
420
421
|
type GetCollectionItemsHttpResponse = {
|
|
421
422
|
data: CollectionsListCollectionItemsResponseBody;
|
|
422
423
|
headers: Headers;
|
|
@@ -434,7 +435,7 @@ type GetCollectionItemsHttpError = {
|
|
|
434
435
|
* @param body an object with the body content
|
|
435
436
|
* @throws AddCollectionItemHttpError
|
|
436
437
|
*/
|
|
437
|
-
declare
|
|
438
|
+
declare function addCollectionItem(collectionId: string, body: CollectionsAddCollectionItemRequestBody, options?: ApiCallOptions): Promise<AddCollectionItemHttpResponse>;
|
|
438
439
|
type AddCollectionItemHttpResponse = {
|
|
439
440
|
data: ItemResultResponseBody;
|
|
440
441
|
headers: Headers;
|
|
@@ -452,7 +453,7 @@ type AddCollectionItemHttpError = {
|
|
|
452
453
|
* @param itemId The item's unique identifier.
|
|
453
454
|
* @throws DeleteCollectionItemHttpError
|
|
454
455
|
*/
|
|
455
|
-
declare
|
|
456
|
+
declare function deleteCollectionItem(collectionId: string, itemId: string, options?: ApiCallOptions): Promise<DeleteCollectionItemHttpResponse>;
|
|
456
457
|
type DeleteCollectionItemHttpResponse = {
|
|
457
458
|
data: void;
|
|
458
459
|
headers: Headers;
|
|
@@ -470,7 +471,7 @@ type DeleteCollectionItemHttpError = {
|
|
|
470
471
|
* @param itemId The item's unique identifier.
|
|
471
472
|
* @throws GetCollectionItemHttpError
|
|
472
473
|
*/
|
|
473
|
-
declare
|
|
474
|
+
declare function getCollectionItem(collectionId: string, itemId: string, options?: ApiCallOptions): Promise<GetCollectionItemHttpResponse>;
|
|
474
475
|
type GetCollectionItemHttpResponse = {
|
|
475
476
|
data: ItemResultResponseBody;
|
|
476
477
|
headers: Headers;
|
package/collections.js
CHANGED
|
@@ -1,84 +1,106 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./chunks/
|
|
5
|
-
import "./chunks/
|
|
6
|
-
import "./chunks/
|
|
4
|
+
} from "./chunks/6WNP7HZQ.js";
|
|
5
|
+
import "./chunks/QAOVZB27.js";
|
|
6
|
+
import "./chunks/7MMXU6EL.js";
|
|
7
7
|
|
|
8
8
|
// src/public/rest/collections.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
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
9
|
+
async function getCollections(query, options) {
|
|
10
|
+
return invokeFetch("collections", {
|
|
11
|
+
method: "get",
|
|
12
|
+
pathTemplate: "/api/v1/collections",
|
|
13
|
+
query,
|
|
14
|
+
options
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
async function createCollection(body, options) {
|
|
18
|
+
return invokeFetch("collections", {
|
|
19
|
+
method: "post",
|
|
20
|
+
pathTemplate: "/api/v1/collections",
|
|
21
|
+
body,
|
|
22
|
+
contentType: "application/json",
|
|
23
|
+
options
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
async function getFavoritesCollection(options) {
|
|
27
|
+
return invokeFetch("collections", {
|
|
28
|
+
method: "get",
|
|
29
|
+
pathTemplate: "/api/v1/collections/favorites",
|
|
30
|
+
options
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
async function deleteCollection(collectionId, options) {
|
|
34
|
+
return invokeFetch("collections", {
|
|
35
|
+
method: "delete",
|
|
36
|
+
pathTemplate: "/api/v1/collections/{collectionId}",
|
|
37
|
+
pathVariables: { collectionId },
|
|
38
|
+
options
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
async function getCollection(collectionId, options) {
|
|
42
|
+
return invokeFetch("collections", {
|
|
43
|
+
method: "get",
|
|
44
|
+
pathTemplate: "/api/v1/collections/{collectionId}",
|
|
45
|
+
pathVariables: { collectionId },
|
|
46
|
+
options
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
async function patchCollection(collectionId, body, options) {
|
|
50
|
+
return invokeFetch("collections", {
|
|
51
|
+
method: "patch",
|
|
52
|
+
pathTemplate: "/api/v1/collections/{collectionId}",
|
|
53
|
+
pathVariables: { collectionId },
|
|
54
|
+
body,
|
|
55
|
+
contentType: "application/json",
|
|
56
|
+
options
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
async function updateCollection(collectionId, body, options) {
|
|
60
|
+
return invokeFetch("collections", {
|
|
61
|
+
method: "put",
|
|
62
|
+
pathTemplate: "/api/v1/collections/{collectionId}",
|
|
63
|
+
pathVariables: { collectionId },
|
|
64
|
+
body,
|
|
65
|
+
contentType: "application/json",
|
|
66
|
+
options
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
async function getCollectionItems(collectionId, query, options) {
|
|
70
|
+
return invokeFetch("collections", {
|
|
71
|
+
method: "get",
|
|
72
|
+
pathTemplate: "/api/v1/collections/{collectionId}/items",
|
|
73
|
+
pathVariables: { collectionId },
|
|
74
|
+
query,
|
|
75
|
+
options
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
async function addCollectionItem(collectionId, body, options) {
|
|
79
|
+
return invokeFetch("collections", {
|
|
80
|
+
method: "post",
|
|
81
|
+
pathTemplate: "/api/v1/collections/{collectionId}/items",
|
|
82
|
+
pathVariables: { collectionId },
|
|
83
|
+
body,
|
|
84
|
+
contentType: "application/json",
|
|
85
|
+
options
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
async function deleteCollectionItem(collectionId, itemId, options) {
|
|
89
|
+
return invokeFetch("collections", {
|
|
90
|
+
method: "delete",
|
|
91
|
+
pathTemplate: "/api/v1/collections/{collectionId}/items/{itemId}",
|
|
92
|
+
pathVariables: { collectionId, itemId },
|
|
93
|
+
options
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
async function getCollectionItem(collectionId, itemId, options) {
|
|
97
|
+
return invokeFetch("collections", {
|
|
98
|
+
method: "get",
|
|
99
|
+
pathTemplate: "/api/v1/collections/{collectionId}/items/{itemId}",
|
|
100
|
+
pathVariables: { collectionId, itemId },
|
|
101
|
+
options
|
|
102
|
+
});
|
|
103
|
+
}
|
|
82
104
|
function clearCache() {
|
|
83
105
|
return clearApiCache("collections");
|
|
84
106
|
}
|