@qlik/api 0.0.1 → 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.
Files changed (156) hide show
  1. package/.github/CODEOWNERS +2 -0
  2. package/.github/workflows/release.yaml +35 -0
  3. package/README.md +1 -3
  4. package/api-keys.d.mts +27 -13
  5. package/api-keys.d.ts +27 -13
  6. package/api-keys.js +17 -13
  7. package/api-keys.mjs +12 -8
  8. package/apps.d.mts +580 -165
  9. package/apps.d.ts +580 -165
  10. package/apps.js +111 -44
  11. package/apps.mjs +78 -11
  12. package/audits.d.mts +20 -8
  13. package/audits.d.ts +20 -8
  14. package/audits.js +12 -11
  15. package/audits.mjs +7 -6
  16. package/auth-AWZV4DPP.js +41 -0
  17. package/{auth-TE272Q34.mjs → auth-CPBNNC7S.mjs} +8 -3
  18. package/auth.js +4 -3
  19. package/auth.mjs +3 -2
  20. package/automations.d.mts +56 -20
  21. package/automations.d.ts +56 -20
  22. package/automations.js +32 -25
  23. package/automations.mjs +18 -11
  24. package/brands.d.mts +45 -4
  25. package/brands.d.ts +45 -4
  26. package/brands.js +20 -15
  27. package/brands.mjs +7 -2
  28. package/{chunk-ZT4C7KCQ.js → chunk-2STFUQKQ.js} +3 -3
  29. package/{chunk-WM7FQU2U.mjs → chunk-3SVRHJII.mjs} +3 -3
  30. package/{chunk-CKPJE4IA.mjs → chunk-67GJTTPV.mjs} +1 -1
  31. package/{chunk-4ES65KO3.js → chunk-7RY3NO6N.js} +2 -2
  32. package/{chunk-4OMEH5SW.mjs → chunk-CYRLVHU3.mjs} +321 -53
  33. package/{chunk-XASXL2NC.js → chunk-D52VW5UN.js} +323 -55
  34. package/{chunk-GUQBHY3H.mjs → chunk-GNWU6SP2.mjs} +1 -1
  35. package/{chunk-4FLMND6T.js → chunk-GV5SRHY2.js} +4 -4
  36. package/{chunk-OULT3V2U.js → chunk-JNGURO23.js} +3 -3
  37. package/chunk-P57PW2II.js +11 -0
  38. package/{chunk-3YE7EI7I.mjs → chunk-TE7XMBT5.mjs} +1 -1
  39. package/chunk-ZFXKCRJC.mjs +11 -0
  40. package/collections.d.mts +52 -18
  41. package/collections.d.ts +52 -18
  42. package/collections.js +28 -14
  43. package/collections.mjs +16 -2
  44. package/csp-origins.d.mts +12 -0
  45. package/csp-origins.d.ts +12 -0
  46. package/csp-origins.js +12 -9
  47. package/csp-origins.mjs +5 -2
  48. package/data-assets.d.mts +10 -0
  49. package/data-assets.d.ts +10 -0
  50. package/data-assets.js +13 -8
  51. package/data-assets.mjs +7 -2
  52. package/data-connections.d.mts +20 -0
  53. package/data-connections.d.ts +20 -0
  54. package/data-connections.js +19 -12
  55. package/data-connections.mjs +9 -2
  56. package/data-credentials.d.mts +10 -0
  57. package/data-credentials.d.ts +10 -0
  58. package/data-credentials.js +10 -7
  59. package/data-credentials.mjs +5 -2
  60. package/data-files.d.mts +114 -29
  61. package/data-files.d.ts +114 -29
  62. package/data-files.js +25 -18
  63. package/data-files.mjs +15 -8
  64. package/{enigma-session-TEB53FAF.js → enigma-session-XPXDQAIV.js} +12 -7
  65. package/{enigma-session-4L373ALV.mjs → enigma-session-ZH6MYA54.mjs} +10 -5
  66. package/{esm-4X3DKK5D.js → esm-3VXX2GKL.js} +13 -9
  67. package/{esm-SOWVJKOQ.mjs → esm-OY4XVIJB.mjs} +13 -9
  68. package/extensions.d.mts +26 -2
  69. package/extensions.d.ts +26 -2
  70. package/extensions.js +13 -10
  71. package/extensions.mjs +5 -2
  72. package/glossaries.d.mts +55 -20
  73. package/glossaries.d.ts +55 -20
  74. package/glossaries.js +39 -27
  75. package/glossaries.mjs +14 -2
  76. package/groups.d.mts +29 -13
  77. package/groups.d.ts +29 -13
  78. package/groups.js +19 -14
  79. package/groups.mjs +13 -8
  80. package/identity-providers.d.mts +23 -7
  81. package/identity-providers.d.ts +23 -7
  82. package/identity-providers.js +16 -13
  83. package/identity-providers.mjs +8 -5
  84. package/index.js +150 -112
  85. package/index.mjs +146 -108
  86. package/{invoke-fetch-MSSJAZ7K.mjs → invoke-fetch-3WZWAAZH.mjs} +4 -1
  87. package/invoke-fetch-UNTAUR7O.js +17 -0
  88. package/items.d.mts +25 -22
  89. package/items.d.ts +25 -22
  90. package/items.js +17 -14
  91. package/items.mjs +11 -8
  92. package/licenses.d.mts +20 -0
  93. package/licenses.d.ts +20 -0
  94. package/licenses.js +17 -12
  95. package/licenses.mjs +7 -2
  96. package/package.json +7 -18
  97. package/{qix-RLTISYTB.js → qix-UNWXPGMA.js} +9 -8
  98. package/{qix-EU7PXRZ6.mjs → qix-ZSJ4PIK3.mjs} +5 -4
  99. package/qix.d.mts +1066 -1017
  100. package/qix.d.ts +1066 -1017
  101. package/qix.js +4 -3
  102. package/qix.mjs +3 -2
  103. package/quotas.d.mts +4 -0
  104. package/quotas.d.ts +4 -0
  105. package/quotas.js +6 -5
  106. package/quotas.mjs +3 -2
  107. package/reload-tasks.d.mts +2 -0
  108. package/reload-tasks.d.ts +2 -0
  109. package/reload-tasks.js +11 -8
  110. package/reload-tasks.mjs +5 -2
  111. package/reloads.d.mts +20 -11
  112. package/reloads.d.ts +20 -11
  113. package/reloads.js +9 -7
  114. package/reloads.mjs +4 -2
  115. package/roles.d.mts +4 -0
  116. package/roles.d.ts +4 -0
  117. package/roles.js +6 -5
  118. package/roles.mjs +3 -2
  119. package/spaces.d.mts +36 -30
  120. package/spaces.d.ts +36 -30
  121. package/spaces.js +21 -15
  122. package/spaces.mjs +8 -2
  123. package/temp-contents.d.mts +9 -70
  124. package/temp-contents.d.ts +9 -70
  125. package/temp-contents.js +10 -29
  126. package/temp-contents.mjs +5 -24
  127. package/tenants.d.mts +12 -0
  128. package/tenants.d.ts +12 -0
  129. package/tenants.js +14 -9
  130. package/tenants.mjs +7 -2
  131. package/themes.d.mts +26 -2
  132. package/themes.d.ts +26 -2
  133. package/themes.js +13 -10
  134. package/themes.mjs +5 -2
  135. package/transports.d.mts +12 -0
  136. package/transports.d.ts +12 -0
  137. package/transports.js +12 -9
  138. package/transports.mjs +5 -2
  139. package/users.d.mts +48 -29
  140. package/users.d.ts +48 -29
  141. package/users.js +18 -13
  142. package/users.mjs +7 -2
  143. package/web-integrations.d.mts +10 -0
  144. package/web-integrations.d.ts +10 -0
  145. package/web-integrations.js +11 -8
  146. package/web-integrations.mjs +5 -2
  147. package/web-notifications.d.mts +12 -0
  148. package/web-notifications.d.ts +12 -0
  149. package/web-notifications.js +12 -9
  150. package/web-notifications.mjs +5 -2
  151. package/webhooks.d.mts +27 -7
  152. package/webhooks.d.ts +27 -7
  153. package/webhooks.js +17 -13
  154. package/webhooks.mjs +6 -2
  155. package/auth-CSVTXOZX.js +0 -36
  156. package/invoke-fetch-PEI54KZO.js +0 -14
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. */
@@ -152,7 +163,7 @@ type ItemTagResponseBody = {
152
163
  type ItemViewsResponseBody = {
153
164
  /** Total number of views the resource got during the last 28 days. */
154
165
  total?: number;
155
- /** Trend in views over the last 4 weeks. */
166
+ /** Trend in views over the last 4 weeks. The trend value is a float number representing a linear regression slope (the x-coefficient) calculated from the weekly unique users views in the preceding 4 weeks. */
156
167
  trend?: number;
157
168
  /** Number of unique users who viewed the resource during the last 28 days. */
158
169
  unique?: number;
@@ -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
- // next or prev cursor, but not both.
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
- // The supported properties are createdAt, updatedAt, and name. A property
224
- // must be prefixed by + or - to indicate ascending or descending sort order
225
- // respectively.
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?: "+name" | "+createdAt" | "+updatedAt" | "-name" | "-createdAt" | "-updatedAt" | undefined;
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
- * Finds and returns items from a collection that the user has access to.
494
- *
495
- * @param collectionId The collection's unique identifier. (This query also supports 'favorites' as the collectionID).
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
- * @param query an object with query parameters
498
- * @throws GetCollectionItemsHttpError
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. */
@@ -152,7 +163,7 @@ type ItemTagResponseBody = {
152
163
  type ItemViewsResponseBody = {
153
164
  /** Total number of views the resource got during the last 28 days. */
154
165
  total?: number;
155
- /** Trend in views over the last 4 weeks. */
166
+ /** Trend in views over the last 4 weeks. The trend value is a float number representing a linear regression slope (the x-coefficient) calculated from the weekly unique users views in the preceding 4 weeks. */
156
167
  trend?: number;
157
168
  /** Number of unique users who viewed the resource during the last 28 days. */
158
169
  unique?: number;
@@ -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
- // next or prev cursor, but not both.
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
- // The supported properties are createdAt, updatedAt, and name. A property
224
- // must be prefixed by + or - to indicate ascending or descending sort order
225
- // respectively.
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?: "+name" | "+createdAt" | "+updatedAt" | "-name" | "-createdAt" | "-updatedAt" | undefined;
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
- * Finds and returns items from a collection that the user has access to.
494
- *
495
- * @param collectionId The collection's unique identifier. (This query also supports 'favorites' as the collectionID).
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
- * @param query an object with query parameters
498
- * @throws GetCollectionItemsHttpError
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 _chunkOULT3V2Ujs = require('./chunk-OULT3V2U.js');
5
- require('./chunk-ZT4C7KCQ.js');
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) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "collections", {
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) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "collections", {
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) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "collections", {
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) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "collections", {
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) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "collections", {
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 updateCollection = async (collectionId, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "collections", {
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) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "collections", {
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) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "collections", {
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) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "collections", {
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) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "collections", {
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 _chunkOULT3V2Ujs.clearApiCache.call(void 0, "collections");
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
- 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.updateCollection = updateCollection;
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-3YE7EI7I.mjs";
5
- import "./chunk-WM7FQU2U.mjs";
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