@qlik/api 2.2.0 → 2.3.1

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 (232) hide show
  1. package/analytics/change-stores.d.ts +386 -0
  2. package/analytics/change-stores.js +123 -0
  3. package/analytics.d.ts +14 -0
  4. package/analytics.js +13 -0
  5. package/api-keys.d.ts +362 -3
  6. package/api-keys.js +2 -3
  7. package/apps.d.ts +2673 -3
  8. package/apps.js +2 -3
  9. package/assistants.d.ts +1370 -3
  10. package/assistants.js +2 -3
  11. package/audits.d.ts +318 -3
  12. package/audits.js +4 -4
  13. package/auth-types.d.ts +1 -1
  14. package/auth-types.js +1 -2
  15. package/auth.d.ts +94 -2
  16. package/auth.js +63 -3
  17. package/automation-connections.d.ts +366 -3
  18. package/automation-connections.js +2 -3
  19. package/automation-connectors.d.ts +84 -3
  20. package/automation-connectors.js +2 -3
  21. package/automations.d.ts +805 -3
  22. package/automations.js +2 -3
  23. package/automl-deployments.d.ts +101 -3
  24. package/automl-deployments.js +2 -3
  25. package/automl-predictions.d.ts +238 -3
  26. package/automl-predictions.js +2 -3
  27. package/banners.d.ts +184 -3
  28. package/banners.js +2 -3
  29. package/brands.d.ts +670 -3
  30. package/brands.js +2 -3
  31. package/chunks/auth-XusKk8IA.js +32 -0
  32. package/chunks/{chunk-EtTptKIv.js → chunk-D3vHIbds.js} +2 -2
  33. package/chunks/{dist-gXLIqDJW.js → dist-n3iOVn1W.js} +4 -4
  34. package/chunks/{auth-functions-BmZgZYSs.js → interceptors-2VSXImC9.js} +498 -146
  35. package/chunks/{invoke-fetch-PcVIxLW4.js → invoke-fetch-CckTK7bh.js} +3 -3
  36. package/chunks/{invoke-fetch-CucBpA1C.js → invoke-fetch-D9lpiAb-.js} +1 -5
  37. package/chunks/{public-runtime-modules-Dwjzb3l8.js → public-runtime-modules-BqxAMJ9M.js} +7 -7
  38. package/chunks/{qix-DI5o5XF4.d.ts → qix-CrqXv44x.d.ts} +6 -2
  39. package/chunks/{qix-DjxuPCX0.js → qix-DpvHvpx7.js} +11 -10
  40. package/chunks/{qix-chunk-entrypoint-tmTo-kpa.js → qix-chunk-entrypoint-BXZPnE6J.js} +48 -50
  41. package/collections.d.ts +582 -3
  42. package/collections.js +2 -3
  43. package/conditions.d.ts +662 -3
  44. package/conditions.js +2 -3
  45. package/consumption.d.ts +182 -3
  46. package/consumption.js +2 -3
  47. package/core/ip-policies.d.ts +328 -4
  48. package/core/ip-policies.js +108 -5
  49. package/core.d.ts +13 -4
  50. package/core.js +3 -4
  51. package/csp-origins.d.ts +273 -3
  52. package/csp-origins.js +2 -3
  53. package/csrf-token.d.ts +62 -3
  54. package/csrf-token.js +2 -3
  55. package/data-alerts.d.ts +1004 -3
  56. package/data-alerts.js +2 -3
  57. package/data-assets.d.ts +207 -3
  58. package/data-assets.js +2 -3
  59. package/data-connections.d.ts +678 -3
  60. package/data-connections.js +2 -3
  61. package/data-credentials.d.ts +292 -3
  62. package/data-credentials.js +2 -3
  63. package/data-files.d.ts +860 -3
  64. package/data-files.js +2 -3
  65. package/data-qualities.d.ts +175 -3
  66. package/data-qualities.js +2 -3
  67. package/data-sets.d.ts +424 -3
  68. package/data-sets.js +2 -3
  69. package/data-sources.d.ts +348 -3
  70. package/data-sources.js +2 -3
  71. package/data-stores.d.ts +537 -3
  72. package/data-stores.js +2 -3
  73. package/dcaas.d.ts +192 -3
  74. package/dcaas.js +2 -3
  75. package/di-projects.d.ts +812 -4
  76. package/di-projects.js +25 -4
  77. package/direct-access-agents.d.ts +710 -4
  78. package/direct-access-agents.js +37 -5
  79. package/docs/authentication.md +1 -1
  80. package/encryption.d.ts +372 -3
  81. package/encryption.js +2 -3
  82. package/extensions.d.ts +295 -3
  83. package/extensions.js +2 -3
  84. package/global-types.d.ts +1 -1
  85. package/global-types.js +0 -2
  86. package/glossaries.d.ts +1223 -3
  87. package/glossaries.js +2 -3
  88. package/groups.d.ts +510 -3
  89. package/groups.js +2 -3
  90. package/identity-providers.d.ts +711 -3
  91. package/identity-providers.js +2 -3
  92. package/index.d.ts +78 -69
  93. package/index.js +28 -10
  94. package/interceptors.d.ts +52 -3
  95. package/interceptors.js +1 -2
  96. package/invoke-fetch-types.d.ts +1 -1
  97. package/items.d.ts +536 -3
  98. package/items.js +2 -3
  99. package/knowledgebases.d.ts +976 -3
  100. package/knowledgebases.js +2 -3
  101. package/licenses.d.ts +663 -3
  102. package/licenses.js +2 -3
  103. package/lineage-graphs.d.ts +704 -3
  104. package/lineage-graphs.js +2 -3
  105. package/ml.d.ts +2808 -3
  106. package/ml.js +2 -3
  107. package/notes.d.ts +110 -3
  108. package/notes.js +2 -3
  109. package/notifications.d.ts +98 -3
  110. package/notifications.js +2 -3
  111. package/oauth-callback.iife.js +1151 -0
  112. package/oauth-clients.d.ts +562 -3
  113. package/oauth-clients.js +2 -3
  114. package/oauth-tokens.d.ts +126 -3
  115. package/oauth-tokens.js +2 -3
  116. package/package.json +5 -4
  117. package/qix.d.ts +3 -3
  118. package/qix.js +38 -3
  119. package/questions.d.ts +364 -3
  120. package/questions.js +2 -3
  121. package/quotas.d.ts +112 -3
  122. package/quotas.js +2 -3
  123. package/reload-tasks.d.ts +249 -3
  124. package/reload-tasks.js +2 -3
  125. package/reloads.d.ts +260 -3
  126. package/reloads.js +2 -3
  127. package/report-templates.d.ts +287 -3
  128. package/report-templates.js +2 -3
  129. package/reports.d.ts +863 -3
  130. package/reports.js +2 -3
  131. package/roles.d.ts +312 -3
  132. package/roles.js +2 -3
  133. package/sharing-tasks.d.ts +1164 -3
  134. package/sharing-tasks.js +2 -3
  135. package/spaces.d.ts +779 -3
  136. package/spaces.js +2 -3
  137. package/tasks.d.ts +564 -3
  138. package/tasks.js +2 -3
  139. package/temp-contents.d.ts +167 -3
  140. package/temp-contents.js +2 -3
  141. package/tenants.d.ts +360 -3
  142. package/tenants.js +2 -3
  143. package/themes.d.ts +270 -3
  144. package/themes.js +2 -3
  145. package/transports.d.ts +435 -4
  146. package/transports.js +20 -5
  147. package/ui-config.d.ts +274 -3
  148. package/ui-config.js +2 -3
  149. package/users.d.ts +674 -3
  150. package/users.js +2 -3
  151. package/web-integrations.d.ts +294 -3
  152. package/web-integrations.js +2 -3
  153. package/web-notifications.d.ts +273 -3
  154. package/web-notifications.js +2 -3
  155. package/webhooks.d.ts +505 -3
  156. package/webhooks.js +2 -3
  157. package/chunks/api-keys-D6Rqaov4.d.ts +0 -365
  158. package/chunks/apps-BwpXUGDb.d.ts +0 -2673
  159. package/chunks/assistants-wh6Qe7l6.d.ts +0 -1366
  160. package/chunks/audits-DakwzT97.d.ts +0 -316
  161. package/chunks/auth-6mptVm5Q.d.ts +0 -95
  162. package/chunks/auth-Cle0_tmz.js +0 -32
  163. package/chunks/auth-D11iO7ZV.js +0 -65
  164. package/chunks/automation-connections-k2G_n9rj.d.ts +0 -366
  165. package/chunks/automation-connectors-J5OE-1P0.d.ts +0 -84
  166. package/chunks/automations-BGy83EBO.d.ts +0 -797
  167. package/chunks/automl-deployments-CWEpX2pk.d.ts +0 -101
  168. package/chunks/automl-predictions-BNIjRhBm.d.ts +0 -238
  169. package/chunks/banners-CgBRnZGv.d.ts +0 -184
  170. package/chunks/brands-DCgk6Gqx.d.ts +0 -671
  171. package/chunks/collections-BpYjcpIY.d.ts +0 -582
  172. package/chunks/conditions-CJJG7Uph.d.ts +0 -662
  173. package/chunks/consumption-DerFk437.d.ts +0 -182
  174. package/chunks/core-DQXNZdnf.d.ts +0 -12
  175. package/chunks/csp-origins-3NJlh_n9.d.ts +0 -273
  176. package/chunks/csrf-token-DoaoOQzH.d.ts +0 -63
  177. package/chunks/data-alerts-CILSEFbQ.d.ts +0 -1004
  178. package/chunks/data-assets-CJDcssoX.d.ts +0 -207
  179. package/chunks/data-connections-VSB13K6g.d.ts +0 -678
  180. package/chunks/data-credentials-ChEp_hyU.d.ts +0 -292
  181. package/chunks/data-files-CVzn9M6V.d.ts +0 -860
  182. package/chunks/data-qualities-DBrot957.d.ts +0 -176
  183. package/chunks/data-sets-CFzxgWnO.d.ts +0 -424
  184. package/chunks/data-sources-IsAaof_C.d.ts +0 -346
  185. package/chunks/data-stores-DFOPdgfz.d.ts +0 -537
  186. package/chunks/dcaas-qyv7YlrN.d.ts +0 -192
  187. package/chunks/di-projects-DVQTxASr.d.ts +0 -777
  188. package/chunks/direct-access-agents-B77OhzZi.d.ts +0 -580
  189. package/chunks/encryption-BjA6xbCO.d.ts +0 -372
  190. package/chunks/extensions-OO0WtInj.d.ts +0 -294
  191. package/chunks/glossaries-CIX7-KT_.d.ts +0 -1213
  192. package/chunks/groups-C86-UG7S.d.ts +0 -511
  193. package/chunks/identity-providers-h0dKNxGZ.d.ts +0 -711
  194. package/chunks/interceptors-Csx2tEi5.d.ts +0 -52
  195. package/chunks/interceptors-DTYm37AU.js +0 -104
  196. package/chunks/ip-policies-CKRIlbP7.d.ts +0 -327
  197. package/chunks/ip-policies-DXlf172B.js +0 -108
  198. package/chunks/items-C-jzqvFW.d.ts +0 -536
  199. package/chunks/knowledgebases-CyQtVcZN.d.ts +0 -977
  200. package/chunks/licenses-xzjnkitW.d.ts +0 -663
  201. package/chunks/lineage-graphs-CViCCzKy.d.ts +0 -697
  202. package/chunks/ml-Abt2MUva.d.ts +0 -2809
  203. package/chunks/notes-BZxuyDgt.d.ts +0 -111
  204. package/chunks/notifications-Bd_gp4jU.d.ts +0 -99
  205. package/chunks/oauth-clients-B5QPr4IM.d.ts +0 -563
  206. package/chunks/oauth-tokens-1b7V8182.d.ts +0 -127
  207. package/chunks/qix-CYQsLyGQ.js +0 -40
  208. package/chunks/questions-BVp0tvNs.d.ts +0 -364
  209. package/chunks/quotas-CfAebRJd.d.ts +0 -113
  210. package/chunks/reload-tasks-DfwUTetn.d.ts +0 -249
  211. package/chunks/reloads-CwmagnFx.d.ts +0 -260
  212. package/chunks/report-templates-DjQYj5dn.d.ts +0 -287
  213. package/chunks/reports-DzNC6Uq3.d.ts +0 -861
  214. package/chunks/roles-BYFIY6E7.d.ts +0 -312
  215. package/chunks/sharing-tasks-BMGIQ-FO.d.ts +0 -1164
  216. package/chunks/spaces-BK823t-b.d.ts +0 -780
  217. package/chunks/tasks-COKDfShO.d.ts +0 -564
  218. package/chunks/temp-contents-zDomB-g6.d.ts +0 -168
  219. package/chunks/tenants-Bhn86519.d.ts +0 -361
  220. package/chunks/themes-v9NbhiBo.d.ts +0 -269
  221. package/chunks/transports-CqEiFxD3.d.ts +0 -362
  222. package/chunks/ui-config-Crs0mVMp.d.ts +0 -274
  223. package/chunks/users-BSOBU_fg.d.ts +0 -675
  224. package/chunks/web-integrations-MisPAHod.d.ts +0 -295
  225. package/chunks/web-notifications-DVy6FHYh.d.ts +0 -274
  226. package/chunks/webhooks-Dr4EiXqy.d.ts +0 -505
  227. /package/chunks/{auth-types-E99tzdN0.d.ts → auth-types-YrlH_R9f.d.ts} +0 -0
  228. /package/chunks/{auth-types-JehqruDP.js → auth-types-h43TVDpB.js} +0 -0
  229. /package/chunks/{global-types-CrOvI33z.js → global-types-CEVAJebk.js} +0 -0
  230. /package/chunks/{invoke-fetch-CbU2Dgqr.d.ts → invoke-fetch-C1Z0RJYU.d.ts} +0 -0
  231. /package/chunks/{utils-BnC4lrlq.js → utils-vv-xFm06.js} +0 -0
  232. /package/chunks/{websocket-errors-DSbO6kDZ.js → websocket-errors-CRTDTtBL.js} +0 -0
package/collections.d.ts CHANGED
@@ -1,4 +1,583 @@
1
- import "./chunks/auth-types-E99tzdN0.js";
2
- import "./chunks/invoke-fetch-CbU2Dgqr.js";
3
- import { $ as deleteCollection, A as GetFavoritesCollectionHttpError, B as ItemsResourceSizeResponseBody, C as GetCollectionHttpResponse, D as GetCollectionItemsHttpResponse, E as GetCollectionItemsHttpError, F as ItemResultResponseBody, G as PatchCollectionHttpResponse, H as Link, I as ItemTagResponseBody, J as UpdateCollectionHttpResponse, K as ServiceError, L as ItemViewsResponseBody, M as ItemLinksResponseBody, N as ItemMetaResponseBody, O as GetCollectionsHttpError, P as ItemResourceTypeEnum, Q as createCollection, R as ItemViewsWeeksResponseBody, S as GetCollectionHttpError, T as GetCollectionItemHttpResponse, U as Meta, V as ItemsResultResponseBody, W as PatchCollectionHttpError, X as clearCache, Y as addCollectionItem, Z as collectionsExport, _ as DeleteCollectionHttpError, a as CollectionMetaResponseBody, at as getFavoritesCollection, b as DeleteCollectionItemHttpResponse, c as CollectionsAPI, d as CollectionsLinksResponseBody, et as deleteCollectionItem, f as CollectionsListCollectionItemsResponseBody, g as CreateCollectionHttpResponse, h as CreateCollectionHttpError, i as CollectionLinksResponseBody, it as getCollections, j as GetFavoritesCollectionHttpResponse, k as GetCollectionsHttpResponse, l as CollectionsAddCollectionItemRequestBody, m as CollectionsUpdateCollectionRequestBody, n as AddCollectionItemHttpResponse, nt as getCollectionItem, o as CollectionResultResponseBody, ot as patchCollection, p as CollectionsListCollectionsResponseBody, q as UpdateCollectionHttpError, r as CollectionByIdPatch, rt as getCollectionItems, s as CollectionTypes, st as updateCollection, t as AddCollectionItemHttpError, tt as getCollection, u as CollectionsCreateCollectionRequestBody, v as DeleteCollectionHttpResponse, w as GetCollectionItemHttpError, x as ErrorResponseBody, y as DeleteCollectionItemHttpError, z as ItemsLinksResponseBody } from "./chunks/collections-BpYjcpIY.js";
1
+ import { y as ApiCallOptions } from "./chunks/auth-types-YrlH_R9f.js";
2
+ import "./chunks/invoke-fetch-C1Z0RJYU.js";
3
+
4
+ //#region src/public/rest/collections.d.ts
5
+ type CollectionByIdPatch = {
6
+ /** The operation to be performed. */
7
+ op: "replace";
8
+ /** Field of collection to be patched. */
9
+ path: "/name" | "/description" | "/type";
10
+ /** The value to be used within the operations.
11
+ * - name: The name of the collection. Must not be "".
12
+ * - description: The description of the collection. Empty string "" is allowed.
13
+ * - type: The type of the collection. Via this path the collection type can be toggled between "private" and "publicgoverned". */
14
+ value: string;
15
+ }[];
16
+ type CollectionTypes = "private" | "public" | "publicgoverned";
17
+ type CollectionsAddCollectionItemRequestBody = {
18
+ /** The item's unique identifier. */
19
+ id: string;
20
+ };
21
+ type CollectionsCreateCollectionRequestBody = {
22
+ description?: string;
23
+ /** For `public` collections (tags), if name already exists in the tenant as a `public` collection, this call will fail with a `409` response. */
24
+ name: string;
25
+ type: CollectionTypes;
26
+ };
27
+ /**
28
+ * ListCollectionItemsResponseBody result type
29
+ */
30
+ type CollectionsListCollectionItemsResponseBody = {
31
+ data: ItemResultResponseBody[];
32
+ };
33
+ /**
34
+ * ListCollectionsResponseBody result type
35
+ */
36
+ type CollectionsListCollectionsResponseBody = {
37
+ data: CollectionResultResponseBody[];
38
+ links: CollectionsLinksResponseBody;
39
+ };
40
+ type CollectionsUpdateCollectionRequestBody = {
41
+ description?: string;
42
+ name?: string;
43
+ };
44
+ type ErrorResponseBody = {
45
+ errors?: ServiceError[];
46
+ };
47
+ type Link = {
48
+ href?: string;
49
+ };
50
+ type ServiceError = {
51
+ /** Code is a unique identifier for this error class. */
52
+ code?: string;
53
+ /** Detail is a human-readable explanation specific to this occurrence of the problem. */
54
+ detail?: string;
55
+ meta?: Meta;
56
+ /** Title is the name of this class of errors. */
57
+ title?: string;
58
+ };
59
+ type CollectionLinksResponseBody = {
60
+ items?: Link;
61
+ self?: Link;
62
+ };
63
+ /**
64
+ * Collection metadata and computed fields.
65
+ */
66
+ type CollectionMetaResponseBody = {
67
+ /** Multiple items. */
68
+ items?: ItemsResultResponseBody;
69
+ };
70
+ /**
71
+ * A collection.
72
+ */
73
+ type CollectionResultResponseBody = {
74
+ /** The RFC3339 datetime when the collection was created. */
75
+ createdAt: string;
76
+ /** The ID of the user who created the collection. This property is only populated if the JWT contains a userId. */
77
+ creatorId?: string;
78
+ description?: string;
79
+ /** States if a collection has reached its items limit or not */
80
+ full?: boolean;
81
+ /** The collection's unique identifier. */
82
+ id: string;
83
+ /** The number of items that have been added to the collection that the user has access to. */
84
+ itemCount: number;
85
+ links: CollectionLinksResponseBody;
86
+ /** Collection metadata and computed fields. */
87
+ meta?: CollectionMetaResponseBody;
88
+ name: string;
89
+ /** The ID of the tenant that owns the collection. This property is populated by using JWT. */
90
+ tenantId: string;
91
+ type: "private" | "public" | "favorite" | "publicgoverned";
92
+ /** The RFC3339 datetime when the collection was last updated. */
93
+ updatedAt: string;
94
+ /** The ID of the user who last updated the collection. This property is only populated if the JWT contains a userId. */
95
+ updaterId?: string;
96
+ };
97
+ type CollectionsLinksResponseBody = {
98
+ item?: Link;
99
+ next?: Link;
100
+ prev?: Link;
101
+ self?: Link;
102
+ };
103
+ type ItemLinksResponseBody = {
104
+ collections?: Link;
105
+ open?: Link;
106
+ qvPlugin?: Link;
107
+ self?: Link;
108
+ thumbnail?: Link;
109
+ };
110
+ /**
111
+ * Item metadata and computed fields.
112
+ */
113
+ type ItemMetaResponseBody = {
114
+ /** The actions that the user can perform on the item. */
115
+ actions: string[];
116
+ /** An array of collections that the item is part of. */
117
+ collections: ItemTagResponseBody[];
118
+ /** The flag that indicates if item is in the user's favorites collection. */
119
+ isFavorited: boolean;
120
+ /** An array of tags that the item is part of. */
121
+ tags: ItemTagResponseBody[];
122
+ };
123
+ /**
124
+ * The case-sensitive string defining the item's type.
125
+ */
126
+ type ItemResourceTypeEnum = "app" | "qlikview" | "qvapp" | "genericlink" | "sharingservicetask" | "note" | "dataasset" | "dataset" | "automation" | "automl-experiment" | "automl-deployment" | "assistant" | "dataproduct" | "dataqualityrule" | "glossary" | "knowledgebase" | "script";
127
+ /**
128
+ * An item.
129
+ */
130
+ type ItemResultResponseBody = {
131
+ /** The actions that the user can perform on the item. */
132
+ actions: string[];
133
+ /** The ID of the collections that the item has been added to. */
134
+ collectionIds: string[];
135
+ /** The RFC3339 datetime when the item was created. */
136
+ createdAt: string;
137
+ /** The ID of the user who created the item. This is only populated if the JWT contains a userId. */
138
+ creatorId?: string;
139
+ description?: string;
140
+ /** The item's unique identifier. */
141
+ id: string;
142
+ /** The flag that indicates if item is in the user's favorites collection. */
143
+ isFavorited: boolean;
144
+ itemViews?: ItemViewsResponseBody;
145
+ links: ItemLinksResponseBody;
146
+ /** Item metadata and computed fields. */
147
+ meta: ItemMetaResponseBody;
148
+ name: string;
149
+ /** The ID of the user who owns the item. */
150
+ ownerId?: string;
151
+ resourceAttributes: unknown;
152
+ /** The RFC3339 datetime when the resource that the item references was created. */
153
+ resourceCreatedAt: string;
154
+ resourceCustomAttributes: unknown;
155
+ /** The case-sensitive string used to search for an item by resourceId. If resourceId is provided, then resourceType must be provided. Provide either the resourceId or resourceLink, but not both. */
156
+ resourceId?: string;
157
+ /** The case-sensitive string used to search for an item by resourceLink. If resourceLink is provided, then resourceType must be provided. Provide either the resourceId or resourceLink, but not both. */
158
+ resourceLink?: string;
159
+ /** The RFC3339 datetime when the resource last reload ended. */
160
+ resourceReloadEndTime?: string;
161
+ /** If the resource last reload was successful or not. */
162
+ resourceReloadStatus?: string;
163
+ resourceSize?: ItemsResourceSizeResponseBody;
164
+ /** Optional field defining the item's subtype, if any. */
165
+ resourceSubType?: string;
166
+ /** The case-sensitive string defining the item's type. */
167
+ resourceType: ItemResourceTypeEnum;
168
+ /** The RFC3339 datetime when the resource that the item references was last updated. */
169
+ resourceUpdatedAt: string;
170
+ /** The space's unique identifier. */
171
+ spaceId?: string;
172
+ /** The ID of the tenant that owns the item. This is populated using the JWT. */
173
+ tenantId: string;
174
+ /** The item thumbnail's unique identifier. This is optional for internal resources. */
175
+ thumbnailId?: string;
176
+ /** The RFC3339 datetime when the item was last updated. */
177
+ updatedAt: string;
178
+ /** ID of the user who last updated the item. This is only populated if the JWT contains a userId. */
179
+ updaterId?: string;
180
+ };
181
+ /**
182
+ * Holds basic information about a tag or collection.
183
+ */
184
+ type ItemTagResponseBody = {
185
+ /** The ID of the tag/collection. */
186
+ id: string;
187
+ /** The name of the tag/collection. */
188
+ name: string;
189
+ };
190
+ type ItemViewsResponseBody = {
191
+ /** Total number of views the resource got during the last 28 days. */
192
+ total?: number;
193
+ /** 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. */
194
+ trend?: number;
195
+ /** Number of unique users who viewed the resource during the last 28 days. */
196
+ unique?: number;
197
+ /** Number of apps this dataset is used in (datasets only). */
198
+ usedBy?: number;
199
+ week?: ItemViewsWeeksResponseBody[];
200
+ };
201
+ type ItemViewsWeeksResponseBody = {
202
+ /** The RFC3339 datetime representing the start of the referenced week. */
203
+ start?: string;
204
+ /** Total number of views the resource got during the referenced week. */
205
+ total?: number;
206
+ /** Number of unique users who viewed the resource during the referenced week. */
207
+ unique?: number;
208
+ };
209
+ type ItemsLinksResponseBody = {
210
+ collection?: Link;
211
+ next?: Link;
212
+ prev?: Link;
213
+ self?: Link;
214
+ };
215
+ type ItemsResourceSizeResponseBody = {
216
+ /** Size of the app on disk in bytes. */
217
+ appFile?: number;
218
+ /** Size of the app in memory in bytes. */
219
+ appMemory?: number;
220
+ };
221
+ /**
222
+ * Multiple items.
223
+ */
224
+ type ItemsResultResponseBody = {
225
+ data: ItemResultResponseBody[];
226
+ links: ItemsLinksResponseBody;
227
+ };
228
+ type Meta = {
229
+ /** Further explanation of the error */
230
+ explain?: unknown;
231
+ /** Is the error a server-side fault? */
232
+ fault?: boolean;
233
+ /** Is the error temporary? */
234
+ temporary?: boolean;
235
+ /** Is the error a timeout? */
236
+ timeout?: boolean;
237
+ };
238
+ /**
239
+ * Retrieves the collections that the user has access to. This endpoint does not return the user's favorites collection, which can be retrieved with `/v1/collections/favorites`.
240
+ *
241
+ * @param query an object with query parameters
242
+ * @throws GetCollectionsHttpError
243
+ */
244
+ declare function getCollections(query: {
245
+ /** The case-sensitive string used to search for a resource by creatorId. */
246
+ creatorId?: string;
247
+ /** The collection's unique identifier. */
248
+ id?: string;
249
+ /** Includes the list of items belonging to the collections. Supported parameters are 'limit', 'sort' and 'resourceType'. Supported formats are json formatted string or deep object style using square brackets. */
250
+ includeItems?: string;
251
+ /** The maximum number of resources to return for a request. The limit must be an integer between 1 and 100 (inclusive). */
252
+ limit?: number;
253
+ /** The case-sensitive string used to search for a collection by name. */
254
+ name?: string;
255
+ /** The cursor to the next page of resources. Provide either the
256
+ * next or prev cursor, but not both. */
257
+ next?: string;
258
+ /** The cursor to the previous page of resources. Provide either the next or prev cursor, but not both. */
259
+ prev?: string;
260
+ /** The case-insensitive string used to search for a resource by name or description. */
261
+ query?: string;
262
+ /** The property of a resource to sort on (default sort is +createdAt).
263
+ * The supported properties are createdAt, updatedAt, and name. A property
264
+ * must be prefixed by + or - to indicate ascending or descending sort order
265
+ * respectively. */
266
+ sort?: "+createdAt" | "-createdAt" | "+name" | "-name" | "+updatedAt" | "-updatedAt";
267
+ /** The case-sensitive string used to filter for a collection by type. Retrieve private collections with `private`, public collections with `publicgoverned`, and tags with `public`. */
268
+ type?: CollectionTypes;
269
+ /** A comma-separated case-sensitive string used to filter by multiple types. */
270
+ types?: CollectionTypes[];
271
+ }, options?: ApiCallOptions): Promise<GetCollectionsHttpResponse>;
272
+ type GetCollectionsHttpResponse = {
273
+ data: CollectionsListCollectionsResponseBody;
274
+ headers: Headers;
275
+ status: 200;
276
+ prev?: (options?: ApiCallOptions) => Promise<GetCollectionsHttpResponse>;
277
+ next?: (options?: ApiCallOptions) => Promise<GetCollectionsHttpResponse>;
278
+ };
279
+ type GetCollectionsHttpError = {
280
+ data: ErrorResponseBody;
281
+ headers: Headers;
282
+ status: 400 | 401 | 500;
283
+ };
284
+ /**
285
+ * Creates and returns a new collection. Collections of type `public` (shown as tags in the user interface) must have unique names. Other collection types can reuse names.
286
+ *
287
+ * @param body an object with the body content
288
+ * @throws CreateCollectionHttpError
289
+ */
290
+ declare function createCollection(body: CollectionsCreateCollectionRequestBody, options?: ApiCallOptions): Promise<CreateCollectionHttpResponse>;
291
+ type CreateCollectionHttpResponse = {
292
+ data: CollectionResultResponseBody;
293
+ headers: Headers;
294
+ status: 201;
295
+ };
296
+ type CreateCollectionHttpError = {
297
+ data: ErrorResponseBody;
298
+ headers: Headers;
299
+ status: 400 | 401 | 403 | 409 | 500;
300
+ };
301
+ /**
302
+ * Lists the user's favorites collection.
303
+ *
304
+ * @throws GetFavoritesCollectionHttpError
305
+ */
306
+ declare function getFavoritesCollection(options?: ApiCallOptions): Promise<GetFavoritesCollectionHttpResponse>;
307
+ type GetFavoritesCollectionHttpResponse = {
308
+ data: CollectionResultResponseBody;
309
+ headers: Headers;
310
+ status: 200;
311
+ };
312
+ type GetFavoritesCollectionHttpError = {
313
+ data: ErrorResponseBody;
314
+ headers: Headers;
315
+ status: 401 | 404 | 500;
316
+ };
317
+ /**
318
+ * Deletes a collection and removes all items from the collection.
319
+ *
320
+ * @param collectionId The collection's unique identifier.
321
+ * @throws DeleteCollectionHttpError
322
+ */
323
+ declare function deleteCollection(collectionId: string, options?: ApiCallOptions): Promise<DeleteCollectionHttpResponse>;
324
+ type DeleteCollectionHttpResponse = {
325
+ data: void;
326
+ headers: Headers;
327
+ status: 204;
328
+ };
329
+ type DeleteCollectionHttpError = {
330
+ data: ErrorResponseBody;
331
+ headers: Headers;
332
+ status: 401 | 404 | 500;
333
+ };
334
+ /**
335
+ * Finds and returns a collection.
336
+ *
337
+ * @param collectionId The collection's unique identifier.
338
+ * @throws GetCollectionHttpError
339
+ */
340
+ declare function getCollection(collectionId: string, options?: ApiCallOptions): Promise<GetCollectionHttpResponse>;
341
+ type GetCollectionHttpResponse = {
342
+ data: CollectionResultResponseBody;
343
+ headers: Headers;
344
+ status: 200;
345
+ };
346
+ type GetCollectionHttpError = {
347
+ data: ErrorResponseBody;
348
+ headers: Headers;
349
+ status: 400 | 401 | 404 | 500;
350
+ };
351
+ /**
352
+ * Updates the name, description, or type fields provided in the patch body. Can be used to publish a `private` collection as a `publicgoverned` collection by patching `/type` with `publicgoverned` once the collection contains at least 1 item. Can also be used to return a `publicgoverned` collection to `private`. Cannot be used to change between `public` (tag) and `private / publicgoverned` (collection).
353
+ *
354
+ * @param collectionId The collection's unique identifier.
355
+ * @param body an object with the body content
356
+ * @throws PatchCollectionHttpError
357
+ */
358
+ declare function patchCollection(collectionId: string, body: CollectionByIdPatch, options?: ApiCallOptions): Promise<PatchCollectionHttpResponse>;
359
+ type PatchCollectionHttpResponse = {
360
+ data: CollectionResultResponseBody;
361
+ headers: Headers;
362
+ status: 200;
363
+ };
364
+ type PatchCollectionHttpError = {
365
+ data: ErrorResponseBody;
366
+ headers: Headers;
367
+ status: 400 | 401 | 404 | 409 | 500;
368
+ };
369
+ /**
370
+ * Updates a collection's name and description and returns the updated collection. Omitted and unsupported fields are ignored. To unset a field, provide the field's zero value.
371
+ *
372
+ * @param collectionId The collection's unique identifier.
373
+ * @param body an object with the body content
374
+ * @throws UpdateCollectionHttpError
375
+ */
376
+ declare function updateCollection(collectionId: string, body: CollectionsUpdateCollectionRequestBody, options?: ApiCallOptions): Promise<UpdateCollectionHttpResponse>;
377
+ type UpdateCollectionHttpResponse = {
378
+ data: CollectionResultResponseBody;
379
+ headers: Headers;
380
+ status: 200;
381
+ };
382
+ type UpdateCollectionHttpError = {
383
+ data: ErrorResponseBody;
384
+ headers: Headers;
385
+ status: 400 | 401 | 404 | 409 | 500;
386
+ };
387
+ /**
388
+ * Retrieves items from a collection that the user has access to.
389
+ *
390
+ * @param collectionId The collection's unique identifier. (This query also supports 'favorites' as the collectionID).
391
+
392
+ * @param query an object with query parameters
393
+ * @throws GetCollectionItemsHttpError
394
+ */
395
+ declare function getCollectionItems(collectionId: string, query: {
396
+ /** The maximum number of resources to return for a request. The limit must be an integer between 1 and 100 (inclusive). */
397
+ limit?: number;
398
+ /** The case-insensitive string used to search for a resource by name. */
399
+ name?: string;
400
+ /** The cursor to the next page of resources. Provide either the next or prev cursor, but not both. */
401
+ next?: string;
402
+ /** 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). */
403
+ noActions?: boolean;
404
+ /** The cursor to the previous page of resources. Provide either the next or prev cursor, but not both. */
405
+ prev?: string;
406
+ /** The case-insensitive string used to search for a resource by name or description. */
407
+ query?: string;
408
+ /** The case-sensitive string used to search for an item by resourceId. If resourceId is provided, then resourceType must be provided. Provide either the resourceId or resourceLink, but not both. */
409
+ resourceId?: string;
410
+ /** The case-sensitive string used to search for an item by resourceLink. If resourceLink is provided, then resourceType must be provided. Provide either the resourceId or resourceLink, but not both. */
411
+ resourceLink?: string;
412
+ /** The case-sensitive string used to search for an item by resourceType. */
413
+ resourceType?: ItemResourceTypeEnum;
414
+ /** @deprecated
415
+ * Whether or not to return items in a shared space. */
416
+ shared?: boolean;
417
+ /** 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. */
418
+ sort?: "+createdAt" | "-createdAt" | "+name" | "-name" | "+updatedAt" | "-updatedAt";
419
+ /** The space's unique identifier (supports \'personal\' as spaceId). */
420
+ spaceId?: string;
421
+ }, options?: ApiCallOptions): Promise<GetCollectionItemsHttpResponse>;
422
+ type GetCollectionItemsHttpResponse = {
423
+ data: CollectionsListCollectionItemsResponseBody;
424
+ headers: Headers;
425
+ status: 200;
426
+ };
427
+ type GetCollectionItemsHttpError = {
428
+ data: ErrorResponseBody;
429
+ headers: Headers;
430
+ status: 400 | 401 | 404 | 500;
431
+ };
432
+ /**
433
+ * Adds an item to a collection and returns the item.
434
+ *
435
+ * @param collectionId The collection's unique identifier.
436
+ * @param body an object with the body content
437
+ * @throws AddCollectionItemHttpError
438
+ */
439
+ declare function addCollectionItem(collectionId: string, body: CollectionsAddCollectionItemRequestBody, options?: ApiCallOptions): Promise<AddCollectionItemHttpResponse>;
440
+ type AddCollectionItemHttpResponse = {
441
+ data: ItemResultResponseBody;
442
+ headers: Headers;
443
+ status: 201;
444
+ };
445
+ type AddCollectionItemHttpError = {
446
+ data: ErrorResponseBody;
447
+ headers: Headers;
448
+ status: 400 | 401 | 403 | 404 | 409 | 500;
449
+ };
450
+ /**
451
+ * Removes an item from a collection.
452
+ *
453
+ * @param collectionId The collection's unique identifier.
454
+ * @param itemId The item's unique identifier.
455
+ * @throws DeleteCollectionItemHttpError
456
+ */
457
+ declare function deleteCollectionItem(collectionId: string, itemId: string, options?: ApiCallOptions): Promise<DeleteCollectionItemHttpResponse>;
458
+ type DeleteCollectionItemHttpResponse = {
459
+ data: void;
460
+ headers: Headers;
461
+ status: 204;
462
+ };
463
+ type DeleteCollectionItemHttpError = {
464
+ data: ErrorResponseBody;
465
+ headers: Headers;
466
+ status: 400 | 401 | 404 | 500;
467
+ };
468
+ /**
469
+ * Finds and returns an item in a specific collection. See GET `/items/{id}`.
470
+ *
471
+ * @param collectionId The collection's unique identifier.
472
+ * @param itemId The item's unique identifier.
473
+ * @throws GetCollectionItemHttpError
474
+ */
475
+ declare function getCollectionItem(collectionId: string, itemId: string, options?: ApiCallOptions): Promise<GetCollectionItemHttpResponse>;
476
+ type GetCollectionItemHttpResponse = {
477
+ data: ItemResultResponseBody;
478
+ headers: Headers;
479
+ status: 200;
480
+ };
481
+ type GetCollectionItemHttpError = {
482
+ data: ErrorResponseBody;
483
+ headers: Headers;
484
+ status: 400 | 401 | 404 | 500;
485
+ };
486
+ /**
487
+ * Clears the cache for collections api requests.
488
+ */
489
+ declare function clearCache(): void;
490
+ type CollectionsAPI = {
491
+ /**
492
+ * Retrieves the collections that the user has access to. This endpoint does not return the user's favorites collection, which can be retrieved with `/v1/collections/favorites`.
493
+ *
494
+ * @param query an object with query parameters
495
+ * @throws GetCollectionsHttpError
496
+ */
497
+ getCollections: typeof getCollections;
498
+ /**
499
+ * Creates and returns a new collection. Collections of type `public` (shown as tags in the user interface) must have unique names. Other collection types can reuse names.
500
+ *
501
+ * @param body an object with the body content
502
+ * @throws CreateCollectionHttpError
503
+ */
504
+ createCollection: typeof createCollection;
505
+ /**
506
+ * Lists the user's favorites collection.
507
+ *
508
+ * @throws GetFavoritesCollectionHttpError
509
+ */
510
+ getFavoritesCollection: typeof getFavoritesCollection;
511
+ /**
512
+ * Deletes a collection and removes all items from the collection.
513
+ *
514
+ * @param collectionId The collection's unique identifier.
515
+ * @throws DeleteCollectionHttpError
516
+ */
517
+ deleteCollection: typeof deleteCollection;
518
+ /**
519
+ * Finds and returns a collection.
520
+ *
521
+ * @param collectionId The collection's unique identifier.
522
+ * @throws GetCollectionHttpError
523
+ */
524
+ getCollection: typeof getCollection;
525
+ /**
526
+ * Updates the name, description, or type fields provided in the patch body. Can be used to publish a `private` collection as a `publicgoverned` collection by patching `/type` with `publicgoverned` once the collection contains at least 1 item. Can also be used to return a `publicgoverned` collection to `private`. Cannot be used to change between `public` (tag) and `private / publicgoverned` (collection).
527
+ *
528
+ * @param collectionId The collection's unique identifier.
529
+ * @param body an object with the body content
530
+ * @throws PatchCollectionHttpError
531
+ */
532
+ patchCollection: typeof patchCollection;
533
+ /**
534
+ * Updates a collection's name and description and returns the updated collection. Omitted and unsupported fields are ignored. To unset a field, provide the field's zero value.
535
+ *
536
+ * @param collectionId The collection's unique identifier.
537
+ * @param body an object with the body content
538
+ * @throws UpdateCollectionHttpError
539
+ */
540
+ updateCollection: typeof updateCollection;
541
+ /**
542
+ * Retrieves items from a collection that the user has access to.
543
+ *
544
+ * @param collectionId The collection's unique identifier. (This query also supports 'favorites' as the collectionID).
545
+ * @param query an object with query parameters
546
+ * @throws GetCollectionItemsHttpError
547
+ */
548
+ getCollectionItems: typeof getCollectionItems;
549
+ /**
550
+ * Adds an item to a collection and returns the item.
551
+ *
552
+ * @param collectionId The collection's unique identifier.
553
+ * @param body an object with the body content
554
+ * @throws AddCollectionItemHttpError
555
+ */
556
+ addCollectionItem: typeof addCollectionItem;
557
+ /**
558
+ * Removes an item from a collection.
559
+ *
560
+ * @param collectionId The collection's unique identifier.
561
+ * @param itemId The item's unique identifier.
562
+ * @throws DeleteCollectionItemHttpError
563
+ */
564
+ deleteCollectionItem: typeof deleteCollectionItem;
565
+ /**
566
+ * Finds and returns an item in a specific collection. See GET `/items/{id}`.
567
+ *
568
+ * @param collectionId The collection's unique identifier.
569
+ * @param itemId The item's unique identifier.
570
+ * @throws GetCollectionItemHttpError
571
+ */
572
+ getCollectionItem: typeof getCollectionItem;
573
+ /**
574
+ * Clears the cache for collections api requests.
575
+ */
576
+ clearCache: typeof clearCache;
577
+ };
578
+ /**
579
+ * Functions for the collections api
580
+ */
581
+ declare const collectionsExport: CollectionsAPI;
582
+ //#endregion
4
583
  export { AddCollectionItemHttpError, AddCollectionItemHttpResponse, CollectionByIdPatch, CollectionLinksResponseBody, CollectionMetaResponseBody, CollectionResultResponseBody, CollectionTypes, CollectionsAPI, CollectionsAddCollectionItemRequestBody, CollectionsCreateCollectionRequestBody, CollectionsLinksResponseBody, CollectionsListCollectionItemsResponseBody, CollectionsListCollectionsResponseBody, CollectionsUpdateCollectionRequestBody, CreateCollectionHttpError, CreateCollectionHttpResponse, DeleteCollectionHttpError, DeleteCollectionHttpResponse, DeleteCollectionItemHttpError, DeleteCollectionItemHttpResponse, ErrorResponseBody, GetCollectionHttpError, GetCollectionHttpResponse, GetCollectionItemHttpError, GetCollectionItemHttpResponse, GetCollectionItemsHttpError, GetCollectionItemsHttpResponse, GetCollectionsHttpError, GetCollectionsHttpResponse, GetFavoritesCollectionHttpError, GetFavoritesCollectionHttpResponse, ItemLinksResponseBody, ItemMetaResponseBody, ItemResourceTypeEnum, ItemResultResponseBody, ItemTagResponseBody, ItemViewsResponseBody, ItemViewsWeeksResponseBody, ItemsLinksResponseBody, ItemsResourceSizeResponseBody, ItemsResultResponseBody, Link, Meta, PatchCollectionHttpError, PatchCollectionHttpResponse, ServiceError, UpdateCollectionHttpError, UpdateCollectionHttpResponse, addCollectionItem, clearCache, createCollection, collectionsExport as default, deleteCollection, deleteCollectionItem, getCollection, getCollectionItem, getCollectionItems, getCollections, getFavoritesCollection, patchCollection, updateCollection };
package/collections.js CHANGED
@@ -1,6 +1,5 @@
1
- import "./chunks/utils-BnC4lrlq.js";
2
- import "./chunks/public-runtime-modules-Dwjzb3l8.js";
3
- import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-PcVIxLW4.js";
1
+ import "./chunks/public-runtime-modules-BqxAMJ9M.js";
2
+ import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-CckTK7bh.js";
4
3
 
5
4
  //#region src/public/rest/collections.ts
6
5
  /**