@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.
Files changed (142) hide show
  1. package/api-keys.d.ts +13 -12
  2. package/api-keys.js +64 -50
  3. package/apps.d.ts +56 -56
  4. package/apps.js +392 -304
  5. package/assistants.d.ts +34 -34
  6. package/assistants.js +257 -201
  7. package/audits.d.ts +10 -10
  8. package/audits.js +48 -36
  9. package/{auth-types-DqfMuSRX.d.ts → auth-types-Cj5bM3Yk.d.ts} +29 -9
  10. package/auth.d.ts +17 -4
  11. package/auth.js +4 -2
  12. package/automation-connections.d.ts +12 -12
  13. package/automation-connections.js +75 -59
  14. package/automations.d.ts +29 -29
  15. package/automations.js +159 -123
  16. package/automl-deployments.d.ts +4 -4
  17. package/automl-deployments.js +14 -12
  18. package/automl-predictions.d.ts +13 -13
  19. package/automl-predictions.js +56 -44
  20. package/brands.d.ts +18 -18
  21. package/brands.js +107 -83
  22. package/chunks/{LY7RP2HA.js → 4V6T7Y4L.js} +26 -8
  23. package/chunks/{RCLKKVYB.js → 6C6WMV7V.js} +9 -2
  24. package/chunks/{VVD2DPKQ.js → 6WNP7HZQ.js} +3 -3
  25. package/chunks/7MMXU6EL.js +86 -0
  26. package/chunks/{6ZONDHRN.js → EEE42MLS.js} +11 -4
  27. package/chunks/{FKDGGR2O.js → I2HA7WJB.js} +1362 -1366
  28. package/chunks/{M64RLKVG.js → M7AINAXZ.js} +7 -5
  29. package/chunks/{LTNGXTXG.js → QAOVZB27.js} +3 -3
  30. package/chunks/{YTT2FEVE.js → QZKOA6VR.js} +1 -1
  31. package/chunks/{UZTIZ4H5.js → VUYZKBT5.js} +74 -74
  32. package/chunks/{3RGGGGAR.js → ZCTVPXGO.js} +1 -1
  33. package/collections.d.ts +16 -15
  34. package/collections.js +98 -76
  35. package/conditions.d.ts +13 -13
  36. package/conditions.js +97 -75
  37. package/consumption.d.ts +4 -4
  38. package/consumption.js +11 -9
  39. package/csp-origins.d.ts +9 -9
  40. package/csp-origins.js +53 -41
  41. package/csrf-token.d.ts +3 -3
  42. package/csrf-token.js +10 -8
  43. package/data-alerts.d.ts +22 -22
  44. package/data-alerts.js +139 -107
  45. package/data-assets.d.ts +8 -8
  46. package/data-assets.js +50 -40
  47. package/data-connections.d.ts +16 -16
  48. package/data-connections.js +87 -69
  49. package/data-credentials.d.ts +11 -11
  50. package/data-credentials.js +52 -42
  51. package/data-files.d.ts +18 -18
  52. package/data-files.js +107 -83
  53. package/data-qualities.d.ts +6 -6
  54. package/data-qualities.js +28 -22
  55. package/data-sets.d.ts +10 -10
  56. package/data-sets.js +59 -47
  57. package/data-sources.d.ts +7 -7
  58. package/data-sources.js +28 -22
  59. package/data-stores.d.ts +16 -16
  60. package/data-stores.js +92 -72
  61. package/dcaas.d.ts +6 -6
  62. package/dcaas.js +28 -22
  63. package/di-projects.d.ts +22 -22
  64. package/di-projects.js +148 -116
  65. package/direct-access-agents.d.ts +328 -0
  66. package/direct-access-agents.js +108 -0
  67. package/encryption.d.ts +12 -12
  68. package/encryption.js +82 -62
  69. package/extensions.d.ts +11 -11
  70. package/extensions.js +61 -47
  71. package/glossaries.d.ts +33 -33
  72. package/glossaries.js +221 -173
  73. package/groups.d.ts +12 -12
  74. package/groups.js +72 -56
  75. package/identity-providers.d.ts +11 -11
  76. package/identity-providers.js +67 -51
  77. package/index.d.ts +9 -4
  78. package/index.js +102 -67
  79. package/interceptors.d.ts +9 -2
  80. package/interceptors.js +2 -2
  81. package/invoke-fetch-types-BYCD4pc9.d.ts +98 -0
  82. package/items.d.ts +14 -13
  83. package/items.js +71 -55
  84. package/knowledgebases.d.ts +23 -23
  85. package/knowledgebases.js +153 -119
  86. package/licenses.d.ts +16 -14
  87. package/licenses.js +76 -58
  88. package/lineage-graphs.d.ts +17 -17
  89. package/lineage-graphs.js +76 -60
  90. package/ml.d.ts +238 -60
  91. package/ml.js +391 -286
  92. package/notes.d.ts +4 -4
  93. package/notes.js +19 -15
  94. package/notifications.d.ts +4 -4
  95. package/notifications.js +11 -9
  96. package/oauth-clients.d.ts +14 -14
  97. package/oauth-clients.js +96 -74
  98. package/oauth-tokens.d.ts +5 -5
  99. package/oauth-tokens.js +19 -15
  100. package/package.json +8 -6
  101. package/qix.d.ts +145 -4
  102. package/qix.js +2 -2
  103. package/questions.d.ts +5 -5
  104. package/questions.js +22 -18
  105. package/quotas.d.ts +6 -6
  106. package/quotas.js +20 -16
  107. package/reload-tasks.d.ts +8 -8
  108. package/reload-tasks.js +46 -36
  109. package/reloads.d.ts +7 -7
  110. package/reloads.js +36 -28
  111. package/report-templates.d.ts +10 -10
  112. package/report-templates.js +64 -50
  113. package/reports.d.ts +4 -4
  114. package/reports.js +20 -16
  115. package/roles.d.ts +8 -8
  116. package/roles.js +46 -36
  117. package/sharing-tasks.d.ts +14 -14
  118. package/sharing-tasks.js +89 -69
  119. package/spaces.d.ts +27 -23
  120. package/spaces.js +153 -119
  121. package/tasks.d.ts +17 -17
  122. package/tasks.js +90 -70
  123. package/temp-contents.d.ts +7 -7
  124. package/temp-contents.js +30 -24
  125. package/tenants.d.ts +8 -8
  126. package/tenants.js +57 -45
  127. package/themes.d.ts +11 -11
  128. package/themes.js +61 -47
  129. package/transports.d.ts +8 -8
  130. package/transports.js +49 -37
  131. package/ui-config.d.ts +9 -9
  132. package/ui-config.js +61 -47
  133. package/users.d.ts +15 -15
  134. package/users.js +81 -63
  135. package/web-integrations.d.ts +8 -8
  136. package/web-integrations.js +46 -36
  137. package/web-notifications.d.ts +9 -9
  138. package/web-notifications.js +53 -41
  139. package/webhooks.d.ts +14 -14
  140. package/webhooks.js +88 -68
  141. package/chunks/2ZQ3ZX7F.js +0 -33
  142. 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 "./FKDGGR2O.js";
13
- import "./3RGGGGAR.js";
12
+ } from "./I2HA7WJB.js";
13
+ import "./ZCTVPXGO.js";
14
14
  import {
15
15
  isNode
16
- } from "./2ZQ3ZX7F.js";
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("./LY7RP2HA.js") : import("./PLVPW5IR.js").then(
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("./UZTIZ4H5.js") : import("./PLVPW5IR.js").then(
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("./6ZONDHRN.js") : import("./PLVPW5IR.js").then(
18
+ return isNode ? import("./EEE42MLS.js") : import("./PLVPW5IR.js").then(
19
19
  (mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig)
20
20
  );
21
21
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getQixRuntimeModule
3
- } from "./LTNGXTXG.js";
3
+ } from "./QAOVZB27.js";
4
4
 
5
5
  // src/public/qix.ts
6
6
  function openAppSession(appSessionProps) {
@@ -7,11 +7,11 @@ import {
7
7
  invokeFetch,
8
8
  isWindows,
9
9
  toValidWebsocketLocationUrl
10
- } from "./FKDGGR2O.js";
11
- import "./3RGGGGAR.js";
10
+ } from "./I2HA7WJB.js";
11
+ import "./ZCTVPXGO.js";
12
12
  import {
13
13
  isBrowser
14
- } from "./2ZQ3ZX7F.js";
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("./M64RLKVG.js");
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 = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isBrowser
3
- } from "./2ZQ3ZX7F.js";
3
+ } from "./7MMXU6EL.js";
4
4
 
5
5
  // src/interceptors/interceptors.ts
6
6
  var GLOBAL_INTERCEPTORS;
package/collections.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
- import './auth-types-DqfMuSRX.js';
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 const getCollections: (query: {
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) => Promise<GetCollectionsHttpResponse>;
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 const createCollection: (body: CollectionsCreateCollectionRequestBody, options?: ApiCallOptions) => Promise<CreateCollectionHttpResponse>;
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 const getFavoritesCollection: (options?: ApiCallOptions) => Promise<GetFavoritesCollectionHttpResponse>;
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 const deleteCollection: (collectionId: string, options?: ApiCallOptions) => Promise<DeleteCollectionHttpResponse>;
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 const getCollection: (collectionId: string, options?: ApiCallOptions) => Promise<GetCollectionHttpResponse>;
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 const patchCollection: (collectionId: string, body: CollectionByIdPatch, options?: ApiCallOptions) => Promise<PatchCollectionHttpResponse>;
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 const updateCollection: (collectionId: string, body: CollectionsUpdateCollectionRequestBody, options?: ApiCallOptions) => Promise<UpdateCollectionHttpResponse>;
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 const getCollectionItems: (collectionId: string, query: {
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) => Promise<GetCollectionItemsHttpResponse>;
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 const addCollectionItem: (collectionId: string, body: CollectionsAddCollectionItemRequestBody, options?: ApiCallOptions) => Promise<AddCollectionItemHttpResponse>;
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 const deleteCollectionItem: (collectionId: string, itemId: string, options?: ApiCallOptions) => Promise<DeleteCollectionItemHttpResponse>;
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 const getCollectionItem: (collectionId: string, itemId: string, options?: ApiCallOptions) => Promise<GetCollectionItemHttpResponse>;
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/VVD2DPKQ.js";
5
- import "./chunks/LTNGXTXG.js";
6
- import "./chunks/2ZQ3ZX7F.js";
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
- var getCollections = async (query, options) => invokeFetch("collections", {
10
- method: "get",
11
- pathTemplate: "/api/v1/collections",
12
- query,
13
- options
14
- });
15
- var createCollection = async (body, options) => invokeFetch("collections", {
16
- method: "post",
17
- pathTemplate: "/api/v1/collections",
18
- body,
19
- contentType: "application/json",
20
- options
21
- });
22
- var getFavoritesCollection = async (options) => invokeFetch("collections", {
23
- method: "get",
24
- pathTemplate: "/api/v1/collections/favorites",
25
- options
26
- });
27
- var deleteCollection = async (collectionId, options) => invokeFetch("collections", {
28
- method: "delete",
29
- pathTemplate: "/api/v1/collections/{collectionId}",
30
- pathVariables: { collectionId },
31
- options
32
- });
33
- var getCollection = async (collectionId, options) => invokeFetch("collections", {
34
- method: "get",
35
- pathTemplate: "/api/v1/collections/{collectionId}",
36
- pathVariables: { collectionId },
37
- options
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
- });
47
- var updateCollection = async (collectionId, body, options) => invokeFetch("collections", {
48
- method: "put",
49
- pathTemplate: "/api/v1/collections/{collectionId}",
50
- pathVariables: { collectionId },
51
- body,
52
- contentType: "application/json",
53
- options
54
- });
55
- var getCollectionItems = async (collectionId, query, options) => invokeFetch("collections", {
56
- method: "get",
57
- pathTemplate: "/api/v1/collections/{collectionId}/items",
58
- pathVariables: { collectionId },
59
- query,
60
- options
61
- });
62
- var addCollectionItem = async (collectionId, body, options) => invokeFetch("collections", {
63
- method: "post",
64
- pathTemplate: "/api/v1/collections/{collectionId}/items",
65
- pathVariables: { collectionId },
66
- body,
67
- contentType: "application/json",
68
- options
69
- });
70
- var deleteCollectionItem = async (collectionId, itemId, options) => invokeFetch("collections", {
71
- method: "delete",
72
- pathTemplate: "/api/v1/collections/{collectionId}/items/{itemId}",
73
- pathVariables: { collectionId, itemId },
74
- options
75
- });
76
- var getCollectionItem = async (collectionId, itemId, options) => invokeFetch("collections", {
77
- method: "get",
78
- pathTemplate: "/api/v1/collections/{collectionId}/items/{itemId}",
79
- pathVariables: { collectionId, itemId },
80
- options
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
  }