@qlik/api 2.2.0 → 2.3.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 (231) 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-Cle0_tmz.js → auth-BowS4SUR.js} +1 -5
  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-DipDBQQ5.js} +258 -54
  35. package/chunks/{invoke-fetch-PcVIxLW4.js → invoke-fetch-B7lGscuQ.js} +3 -3
  36. package/chunks/{invoke-fetch-CucBpA1C.js → invoke-fetch-DhdyFZ0F.js} +1 -5
  37. package/chunks/{public-runtime-modules-Dwjzb3l8.js → public-runtime-modules-QhLPeQr5.js} +7 -7
  38. package/chunks/{qix-DI5o5XF4.d.ts → qix-CrqXv44x.d.ts} +6 -2
  39. package/chunks/{qix-DjxuPCX0.js → qix-RCUslia8.js} +11 -10
  40. package/chunks/{qix-chunk-entrypoint-tmTo-kpa.js → qix-chunk-entrypoint-WAS4NVTf.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 +6 -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-D11iO7ZV.js +0 -65
  163. package/chunks/automation-connections-k2G_n9rj.d.ts +0 -366
  164. package/chunks/automation-connectors-J5OE-1P0.d.ts +0 -84
  165. package/chunks/automations-BGy83EBO.d.ts +0 -797
  166. package/chunks/automl-deployments-CWEpX2pk.d.ts +0 -101
  167. package/chunks/automl-predictions-BNIjRhBm.d.ts +0 -238
  168. package/chunks/banners-CgBRnZGv.d.ts +0 -184
  169. package/chunks/brands-DCgk6Gqx.d.ts +0 -671
  170. package/chunks/collections-BpYjcpIY.d.ts +0 -582
  171. package/chunks/conditions-CJJG7Uph.d.ts +0 -662
  172. package/chunks/consumption-DerFk437.d.ts +0 -182
  173. package/chunks/core-DQXNZdnf.d.ts +0 -12
  174. package/chunks/csp-origins-3NJlh_n9.d.ts +0 -273
  175. package/chunks/csrf-token-DoaoOQzH.d.ts +0 -63
  176. package/chunks/data-alerts-CILSEFbQ.d.ts +0 -1004
  177. package/chunks/data-assets-CJDcssoX.d.ts +0 -207
  178. package/chunks/data-connections-VSB13K6g.d.ts +0 -678
  179. package/chunks/data-credentials-ChEp_hyU.d.ts +0 -292
  180. package/chunks/data-files-CVzn9M6V.d.ts +0 -860
  181. package/chunks/data-qualities-DBrot957.d.ts +0 -176
  182. package/chunks/data-sets-CFzxgWnO.d.ts +0 -424
  183. package/chunks/data-sources-IsAaof_C.d.ts +0 -346
  184. package/chunks/data-stores-DFOPdgfz.d.ts +0 -537
  185. package/chunks/dcaas-qyv7YlrN.d.ts +0 -192
  186. package/chunks/di-projects-DVQTxASr.d.ts +0 -777
  187. package/chunks/direct-access-agents-B77OhzZi.d.ts +0 -580
  188. package/chunks/encryption-BjA6xbCO.d.ts +0 -372
  189. package/chunks/extensions-OO0WtInj.d.ts +0 -294
  190. package/chunks/glossaries-CIX7-KT_.d.ts +0 -1213
  191. package/chunks/groups-C86-UG7S.d.ts +0 -511
  192. package/chunks/identity-providers-h0dKNxGZ.d.ts +0 -711
  193. package/chunks/interceptors-Csx2tEi5.d.ts +0 -52
  194. package/chunks/interceptors-DTYm37AU.js +0 -104
  195. package/chunks/ip-policies-CKRIlbP7.d.ts +0 -327
  196. package/chunks/ip-policies-DXlf172B.js +0 -108
  197. package/chunks/items-C-jzqvFW.d.ts +0 -536
  198. package/chunks/knowledgebases-CyQtVcZN.d.ts +0 -977
  199. package/chunks/licenses-xzjnkitW.d.ts +0 -663
  200. package/chunks/lineage-graphs-CViCCzKy.d.ts +0 -697
  201. package/chunks/ml-Abt2MUva.d.ts +0 -2809
  202. package/chunks/notes-BZxuyDgt.d.ts +0 -111
  203. package/chunks/notifications-Bd_gp4jU.d.ts +0 -99
  204. package/chunks/oauth-clients-B5QPr4IM.d.ts +0 -563
  205. package/chunks/oauth-tokens-1b7V8182.d.ts +0 -127
  206. package/chunks/qix-CYQsLyGQ.js +0 -40
  207. package/chunks/questions-BVp0tvNs.d.ts +0 -364
  208. package/chunks/quotas-CfAebRJd.d.ts +0 -113
  209. package/chunks/reload-tasks-DfwUTetn.d.ts +0 -249
  210. package/chunks/reloads-CwmagnFx.d.ts +0 -260
  211. package/chunks/report-templates-DjQYj5dn.d.ts +0 -287
  212. package/chunks/reports-DzNC6Uq3.d.ts +0 -861
  213. package/chunks/roles-BYFIY6E7.d.ts +0 -312
  214. package/chunks/sharing-tasks-BMGIQ-FO.d.ts +0 -1164
  215. package/chunks/spaces-BK823t-b.d.ts +0 -780
  216. package/chunks/tasks-COKDfShO.d.ts +0 -564
  217. package/chunks/temp-contents-zDomB-g6.d.ts +0 -168
  218. package/chunks/tenants-Bhn86519.d.ts +0 -361
  219. package/chunks/themes-v9NbhiBo.d.ts +0 -269
  220. package/chunks/transports-CqEiFxD3.d.ts +0 -362
  221. package/chunks/ui-config-Crs0mVMp.d.ts +0 -274
  222. package/chunks/users-BSOBU_fg.d.ts +0 -675
  223. package/chunks/web-integrations-MisPAHod.d.ts +0 -295
  224. package/chunks/web-notifications-DVy6FHYh.d.ts +0 -274
  225. package/chunks/webhooks-Dr4EiXqy.d.ts +0 -505
  226. /package/chunks/{auth-types-E99tzdN0.d.ts → auth-types-YrlH_R9f.d.ts} +0 -0
  227. /package/chunks/{auth-types-JehqruDP.js → auth-types-h43TVDpB.js} +0 -0
  228. /package/chunks/{global-types-CrOvI33z.js → global-types-CEVAJebk.js} +0 -0
  229. /package/chunks/{invoke-fetch-CbU2Dgqr.d.ts → invoke-fetch-C1Z0RJYU.d.ts} +0 -0
  230. /package/chunks/{utils-BnC4lrlq.js → utils-vv-xFm06.js} +0 -0
  231. /package/chunks/{websocket-errors-DSbO6kDZ.js → websocket-errors-CRTDTtBL.js} +0 -0
package/data-files.d.ts CHANGED
@@ -1,4 +1,861 @@
1
- import "./chunks/auth-types-E99tzdN0.js";
2
- import "./chunks/invoke-fetch-CbU2Dgqr.js";
3
- import { $ as dataFilesExport, A as GetDataFilesConnectionsHttpError, B as MoveDataFilesHttpError, C as GetConnectionsSortField, D as GetDataFileHttpResponse, E as GetDataFileHttpError, F as GetDataFilesQuotasHttpResponse, G as QuotaResponse, H as MultiStatusResponse, I as LinkResponse, J as SpaceStatsResponse, K as ReuploadDataFileHttpError, L as LinksResponse, M as GetDataFilesHttpError, N as GetDataFilesHttpResponse, O as GetDataFileInfosResponse, P as GetDataFilesQuotasHttpError, Q as clearCache, R as MoveDataFileHttpError, S as GetConnectionsResponse, T as GetDataFileConnectionHttpResponse, U as MultiStatusResponseItem, V as MoveDataFilesHttpResponse, W as PutDataFileFolderMergeBehavior, X as UploadDataFileHttpResponse, Y as UploadDataFileHttpError, Z as changeDataFileOwner, _ as DeleteDataFilesHttpResponse, a as ChangeDataFileOwnerHttpResponse, at as getDataFilesConnections, b as ErrorResponseItem, c as ConnectionsResponse, ct as moveDataFiles, d as DataFilePermission, et as deleteDataFile, f as DataFileUploadResponse, g as DeleteDataFilesHttpError, h as DeleteDataFileHttpResponse, i as ChangeDataFileOwnerHttpError, it as getDataFiles, j as GetDataFilesConnectionsHttpResponse, k as GetDataFileInfosSortField, l as DataFileBatchChangeSpaceRequest, lt as reuploadDataFile, m as DeleteDataFileHttpError, n as BatchDeleteAllBySpaceItem, nt as getDataFile, o as ChangeDataFileOwnerRequest, ot as getDataFilesQuotas, p as DataFilesAPI, q as ReuploadDataFileHttpResponse, r as BatchDeleteItem, rt as getDataFileConnection, s as ChangeDataFileSpaceRequest, st as moveDataFile, t as BatchChangeSpaceItem, tt as deleteDataFiles, u as DataFileBatchDeleteRequest, ut as uploadDataFile, v as ErrorCode, w as GetDataFileConnectionHttpError, x as FolderStatsResponse, y as ErrorResponse, z as MoveDataFileHttpResponse } from "./chunks/data-files-CVzn9M6V.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/data-files.d.ts
5
+ type BatchChangeSpaceItem = {
6
+ /** The ID of the data file whose space will be changed. */
7
+ id: string;
8
+ /** The ID of the new space. Passing in a null will result in the data file being moved to the user's
9
+ * personal space. */
10
+ spaceId?: string;
11
+ };
12
+ type BatchDeleteAllBySpaceItem = {
13
+ /** The ID of the space whose data files will be deleted. */
14
+ id: string;
15
+ };
16
+ type BatchDeleteItem = {
17
+ /** The ID of the data file to delete. */
18
+ id: string;
19
+ };
20
+ type ChangeDataFileOwnerRequest = {
21
+ /** The ID of the new owner. */
22
+ ownerId: string;
23
+ };
24
+ type ChangeDataFileSpaceRequest = {
25
+ /** The ID of the space. If null, this data file will be moved to the user's personal space. */
26
+ spaceId?: string;
27
+ };
28
+ type ConnectionsResponse = {
29
+ /** The connect statement that will be passed to the connector when invoked. */
30
+ connectStatement: string;
31
+ /** The unique identifier of the connection. */
32
+ id: string;
33
+ /** The name of the connection. */
34
+ name: string;
35
+ /** The team space that the given connection is associated with. If null, the connection is not associated
36
+ * with any specific team space. */
37
+ spaceId?: string;
38
+ spaceStats?: SpaceStatsResponse;
39
+ /** The type of the connection. */
40
+ type: string;
41
+ };
42
+ /**
43
+ * Specifies the list of data file change space operations in a single batch.
44
+ */
45
+ type DataFileBatchChangeSpaceRequest = {
46
+ /** The list of data files to delete. */
47
+ "change-space": BatchChangeSpaceItem[];
48
+ };
49
+ type DataFileBatchDeleteRequest = {
50
+ /** If specified, the explicit list of data files to delete. */
51
+ delete: BatchDeleteItem[];
52
+ /** If specified, attempt to delete all of the data files from the specified shared spaces. */
53
+ deleteAllBySpace?: BatchDeleteAllBySpaceItem[];
54
+ /** If specified, attempt to delete all of the datafiles from ther user's personal space. */
55
+ deleteAllFromPersonalSpace?: boolean;
56
+ };
57
+ /**
58
+ * <p>Members:</p><ul></ul>
59
+ */
60
+ type DataFilePermission = "read" | "update" | "delete" | "list" | "change_owner" | "change_space";
61
+ type DataFileUploadResponse = {
62
+ /** The CRUD actions that are allowed on the given data file. */
63
+ actions: DataFilePermission[];
64
+ /** If this file or folder is bound to the lifecycle of a specific app, this is the ID of this app. */
65
+ appId?: string;
66
+ /** The name of the file or folder, not including any folder path prefix. */
67
+ baseName?: string;
68
+ /** If the data file's content was updated, this is the DateTime of the last content update. */
69
+ contentUpdatedDate?: string;
70
+ /** The date that the file or folder was created. */
71
+ createdDate: string;
72
+ /** Whether or not this given item represents a folder or a file. */
73
+ folder?: boolean;
74
+ /** If the file or folder resides in a parent folder, this is the parent folder ID. If the file or folder
75
+ * does not reside in a parent folder, this value is null. */
76
+ folderId?: string;
77
+ /** If the file or folder resides in a parent folder, this is the parent folder path. If the file or folder
78
+ * does not reside in a parent folder, this value is null. */
79
+ folderPath?: string;
80
+ folderStats: FolderStatsResponse;
81
+ /** The ID for the file or folder. */
82
+ id: string;
83
+ /** The date that the updated file or folder was last modified. */
84
+ modifiedDate?: string;
85
+ /** The full name of the file or folder, including any folder path prefix. */
86
+ name: string;
87
+ /** The 'owner' of a file or folder is the user who last uploaded the item's content. */
88
+ ownerId: string;
89
+ /** The QRI generated from the datafile or folder's metadata. */
90
+ qri?: string;
91
+ /** The size of the uploaded file, in bytes. 0 if this item represents a folder */
92
+ size: number;
93
+ /** If the file or folder was created in a team space, this is the ID of that space. */
94
+ spaceId?: string;
95
+ };
96
+ /**
97
+ * Fine-grained error codes for data-files REST operations. For operations which do not have a more fine-grained
98
+ * error code, the error code is set to the HTTP status code.<p>Members:</p><ul><li><i>DF-001</i> - The page cursor passed as a parameter to the GET operation is invalid.</li><li><i>DF-002</i> - The sort specification passed as a parameter to the GET operation is invalid.</li><li><i>DF-003</i> - FolderPath and FolderId are mutually exclusive, they cannot both be passed as parameters.</li><li><i>DF-004</i> - The provided FolderPath must be in canonical form.</li><li><i>DF-005</i> - The specified parent folder cannot be found.</li><li><i>DF-006</i> - The specified owner cannot be found.</li><li><i>DF-007</i> - A connection corresponding to the specified space cannot be found.</li><li><i>DF-008</i> - THe specified ID must correspond to a folder, not a file.</li><li><i>DF-009</i> - The specified space cannot be found.</li><li><i>DF-010</i> - The specified file name contains an invalid file extension.</li><li><i>DF-011</i> - The specified file name is missing a file extension.</li><li><i>DF-012</i> - The specified temporary content file could not be found.</li><li><i>DF-013</i> - Access to the specified space is forbidden.</li><li><i>DF-014</i> - The specified connection cannot be found.</li><li><i>DF-015</i> - The provided filename must be in canonical form.</li><li><i>DF-016</i> - The datafile size quota for the given personal space has been exceeded.</li><li><i>DF-017</i> - The specified source file or folder could not be found.</li><li><i>DF-018</i> - The source and target of a datafile operation must either both be folders or both be files, but they are
99
+ * not.</li><li><i>DF-019</i> - The specified target folder is a child of the specified source folder, which is not allowed.</li><li><i>DF-020</i> - The specified folder does not exist in the specified space.</li><li><i>DF-021</i> - The specified source file or folder is already locked.</li><li><i>DF-022</i> - The automatic creation of a missing parent folder failed.</li><li><i>DF-023</i> - An attempt to lock a parent folder of a given data file item failed.</li><li><i>DF-024</i> - The attempt to copy a source file or folder to a target failed.</li><li><i>DF-025</i> - The specified target file or folder is already locked.</li><li><i>DF-026</i> - The request results in the creation of a folder hierarchy which is beyond the max allowed folder
100
+ * hierarchy depth.</li></ul>
101
+ * @example
102
+ * "HTTP-200"
103
+ */
104
+ type ErrorCode = "HTTP-200" | "HTTP-201" | "HTTP-204" | "HTTP-400" | "HTTP-403" | "HTTP-404" | "HTTP-409" | "HTTP-413" | "HTTP-423" | "HTTP-500" | "HTTP-501" | "HTTP-503" | "DF-001" | "DF-002" | "DF-003" | "DF-004" | "DF-005" | "DF-006" | "DF-007" | "DF-008" | "DF-009" | "DF-010" | "DF-011" | "DF-012" | "DF-013" | "DF-014" | "DF-015" | "DF-016" | "DF-017" | "DF-018" | "DF-019" | "DF-020" | "DF-021" | "DF-022" | "DF-023" | "DF-024" | "DF-025" | "DF-026";
105
+ type ErrorResponse = {
106
+ /** List of errors and their properties. */
107
+ errors: ErrorResponseItem[];
108
+ };
109
+ type ErrorResponseItem = {
110
+ /** Fine-grained error codes for data-files REST operations. For operations which do not have a more fine-grained
111
+ * error code, the error code is set to the HTTP status code.<p>Members:</p><ul><li><i>DF-001</i> - The page cursor passed as a parameter to the GET operation is invalid.</li><li><i>DF-002</i> - The sort specification passed as a parameter to the GET operation is invalid.</li><li><i>DF-003</i> - FolderPath and FolderId are mutually exclusive, they cannot both be passed as parameters.</li><li><i>DF-004</i> - The provided FolderPath must be in canonical form.</li><li><i>DF-005</i> - The specified parent folder cannot be found.</li><li><i>DF-006</i> - The specified owner cannot be found.</li><li><i>DF-007</i> - A connection corresponding to the specified space cannot be found.</li><li><i>DF-008</i> - THe specified ID must correspond to a folder, not a file.</li><li><i>DF-009</i> - The specified space cannot be found.</li><li><i>DF-010</i> - The specified file name contains an invalid file extension.</li><li><i>DF-011</i> - The specified file name is missing a file extension.</li><li><i>DF-012</i> - The specified temporary content file could not be found.</li><li><i>DF-013</i> - Access to the specified space is forbidden.</li><li><i>DF-014</i> - The specified connection cannot be found.</li><li><i>DF-015</i> - The provided filename must be in canonical form.</li><li><i>DF-016</i> - The datafile size quota for the given personal space has been exceeded.</li><li><i>DF-017</i> - The specified source file or folder could not be found.</li><li><i>DF-018</i> - The source and target of a datafile operation must either both be folders or both be files, but they are
112
+ * not.</li><li><i>DF-019</i> - The specified target folder is a child of the specified source folder, which is not allowed.</li><li><i>DF-020</i> - The specified folder does not exist in the specified space.</li><li><i>DF-021</i> - The specified source file or folder is already locked.</li><li><i>DF-022</i> - The automatic creation of a missing parent folder failed.</li><li><i>DF-023</i> - An attempt to lock a parent folder of a given data file item failed.</li><li><i>DF-024</i> - The attempt to copy a source file or folder to a target failed.</li><li><i>DF-025</i> - The specified target file or folder is already locked.</li><li><i>DF-026</i> - The request results in the creation of a folder hierarchy which is beyond the max allowed folder
113
+ * hierarchy depth.</li></ul> */
114
+ code: ErrorCode;
115
+ /** A human-readable explanation specific to this occurrence of the problem. */
116
+ detail?: string;
117
+ /** Summary of the problem. */
118
+ title?: string;
119
+ };
120
+ type FolderStatsResponse = {
121
+ /** The sum of the file sizes, in bytes, of all app-scoped data files that reside as direct and indirect children of
122
+ * the given folder and it's sub-folder hierarchy. */
123
+ aggregateAppScopedFileSize: number;
124
+ /** The sum of the file sizes, in bytes, of all data files that reside as direct and indirect children of the given
125
+ * folder and it's sub-folder hierarchy. */
126
+ aggregateFileSize: number;
127
+ /** The sum of the file sizes, in bytes, of all internal data files that reside as direct and indirect children of
128
+ * the given folder and it's sub-folder hierarchy. */
129
+ aggregateInternalFileSize: number;
130
+ /** The number of app-scoped data files that reside as direct children of the given folder. */
131
+ directAppScopedFileCount: number;
132
+ /** The number of data files that reside as direct children of the given folder. */
133
+ directFileCount: number;
134
+ /** The number of sub-folders that reside as direct children of the given folder. */
135
+ directFolderCount: number;
136
+ /** The number of 'internal' data files (IE, those that are not visible to end users by default) that reside as
137
+ * direct children of the given folder. */
138
+ directInternalFileCount: number;
139
+ /** The number of app-scoped data files that reside as direct and indirect children of the given folder and it's
140
+ * sub-folder hierarchy. */
141
+ totalAppScopedFileCount: number;
142
+ /** The number of data files that reside as direct and indirect children of the given folder and it's sub-folder
143
+ * hierarchy. */
144
+ totalFileCount: number;
145
+ /** The number of folders that reside as direct and indirect children of the given folder and it's sub-folder
146
+ * hierarchy. */
147
+ totalFolderCount: number;
148
+ /** The number of 'internal' data files (IE, those that are not visible to end users by default) that reside as
149
+ * direct and indirect children of the given folder and it's sub-folder hierarchy. */
150
+ totalInternalFileCount: number;
151
+ };
152
+ type GetConnectionsResponse = {
153
+ /** Properties of the connections to the tenant spaces. */
154
+ data: ConnectionsResponse[];
155
+ links: LinksResponse;
156
+ };
157
+ /**
158
+ * <p>Members:</p><ul></ul>
159
+ * @example
160
+ * "spaceId"
161
+ */
162
+ type GetConnectionsSortField = "spaceId" | "+spaceId" | "-spaceId";
163
+ type GetDataFileInfosResponse = {
164
+ /** Properties of the uploaded data files. */
165
+ data: DataFileUploadResponse[];
166
+ links: LinksResponse;
167
+ };
168
+ /**
169
+ * <p>Members:</p><ul></ul>
170
+ * @example
171
+ * "name"
172
+ */
173
+ type GetDataFileInfosSortField = "name" | "+name" | "-name" | "size" | "+size" | "-size" | "modifiedDate" | "+modifiedDate" | "-modifiedDate" | "folder" | "+folder" | "-folder" | "baseName" | "+baseName" | "-baseName";
174
+ type LinkResponse = {
175
+ /** The URL for the link. */
176
+ href?: string;
177
+ };
178
+ type LinksResponse = {
179
+ next: LinkResponse;
180
+ prev: LinkResponse;
181
+ self: LinkResponse;
182
+ };
183
+ type MultiStatusResponse = {
184
+ /** List of individual results for the items in the specified batch. */
185
+ data: MultiStatusResponseItem[];
186
+ };
187
+ type MultiStatusResponseItem = {
188
+ /** Fine-grained error codes for data-files REST operations. For operations which do not have a more fine-grained
189
+ * error code, the error code is set to the HTTP status code.<p>Members:</p><ul><li><i>DF-001</i> - The page cursor passed as a parameter to the GET operation is invalid.</li><li><i>DF-002</i> - The sort specification passed as a parameter to the GET operation is invalid.</li><li><i>DF-003</i> - FolderPath and FolderId are mutually exclusive, they cannot both be passed as parameters.</li><li><i>DF-004</i> - The provided FolderPath must be in canonical form.</li><li><i>DF-005</i> - The specified parent folder cannot be found.</li><li><i>DF-006</i> - The specified owner cannot be found.</li><li><i>DF-007</i> - A connection corresponding to the specified space cannot be found.</li><li><i>DF-008</i> - THe specified ID must correspond to a folder, not a file.</li><li><i>DF-009</i> - The specified space cannot be found.</li><li><i>DF-010</i> - The specified file name contains an invalid file extension.</li><li><i>DF-011</i> - The specified file name is missing a file extension.</li><li><i>DF-012</i> - The specified temporary content file could not be found.</li><li><i>DF-013</i> - Access to the specified space is forbidden.</li><li><i>DF-014</i> - The specified connection cannot be found.</li><li><i>DF-015</i> - The provided filename must be in canonical form.</li><li><i>DF-016</i> - The datafile size quota for the given personal space has been exceeded.</li><li><i>DF-017</i> - The specified source file or folder could not be found.</li><li><i>DF-018</i> - The source and target of a datafile operation must either both be folders or both be files, but they are
190
+ * not.</li><li><i>DF-019</i> - The specified target folder is a child of the specified source folder, which is not allowed.</li><li><i>DF-020</i> - The specified folder does not exist in the specified space.</li><li><i>DF-021</i> - The specified source file or folder is already locked.</li><li><i>DF-022</i> - The automatic creation of a missing parent folder failed.</li><li><i>DF-023</i> - An attempt to lock a parent folder of a given data file item failed.</li><li><i>DF-024</i> - The attempt to copy a source file or folder to a target failed.</li><li><i>DF-025</i> - The specified target file or folder is already locked.</li><li><i>DF-026</i> - The request results in the creation of a folder hierarchy which is beyond the max allowed folder
191
+ * hierarchy depth.</li></ul> */
192
+ code: ErrorCode;
193
+ /** A human-readable explanation specific to this occurrence of the problem. */
194
+ detail?: string;
195
+ /** The unique identifier of the file. */
196
+ id: string;
197
+ /** The HTTP status code. */
198
+ status: number;
199
+ /** Summary of the problem. */
200
+ title?: string;
201
+ };
202
+ /**
203
+ * If a SourceId is specified, and a folder is being updated by this PUT operation, this specifies how the
204
+ * source folder contents should be applied to the target folder, if the target folder is not empty. 'merge'
205
+ * implies the contents of the source folder should be merged with the existing target contents. That is, all
206
+ * existing direct or indirect child items in the target folder are replaced by the same items in the source folder.
207
+ * All existing items in the target folder that are not present in the source folder are left, as is, in the target.
208
+ * 'replace' implies the contents of the source folder should replace the contents of the target folder. That is,
209
+ * all direct or indirect items in the target folder are removed before the items from the source folder are copied
210
+ * over. The resulting target folder only contains the items from the source folder. If not specified, the default
211
+ * behavior is 'merge'.<p>Members:</p><ul></ul>
212
+ * @example
213
+ * "merge"
214
+ */
215
+ type PutDataFileFolderMergeBehavior = "merge" | "replace";
216
+ type QuotaResponse = {
217
+ /** The allowed file extensions on files that are uploaded. */
218
+ allowedExtensions: string[];
219
+ /** The allowed file extensions for files that are only used internally by the system (and thus not typically
220
+ * shown to end users). */
221
+ allowedInternalExtensions: string[];
222
+ /** Maximum allowable size of an uploaded file. */
223
+ maxFileSize: number;
224
+ /** Maximum allowable size for a single uploaded large data file (in bytes). This is a file that was indirectly
225
+ * uploaded using the temp content service chunked upload capability. */
226
+ maxLargeFileSize: number;
227
+ /** The maximum aggregate size of all files uploaded by a given user. */
228
+ maxSize: number;
229
+ /** The current aggregate size of all files uploaded by a given user. If the current aggregate size is greater
230
+ * than the maximum aggregate size, this is a quota violation. */
231
+ size: number;
232
+ };
233
+ type SpaceStatsResponse = {
234
+ /** The sum of the file sizes, in bytes, of all app-scoped data files that reside as direct and indirect children of
235
+ * the given folder and it's sub-folder hierarchy. */
236
+ aggregateAppScopedFileSize: number;
237
+ /** The sum of the file sizes, in bytes, of all data files that reside as direct and indirect children of the given
238
+ * folder and it's sub-folder hierarchy. */
239
+ aggregateFileSize: number;
240
+ /** The sum of the file sizes, in bytes, of all internal data files that reside as direct and indirect children of
241
+ * the given folder and it's sub-folder hierarchy. */
242
+ aggregateInternalFileSize: number;
243
+ /** The number of app-scoped data files that reside as direct children of the given folder. */
244
+ directAppScopedFileCount: number;
245
+ /** The number of data files that reside as direct children of the given folder. */
246
+ directFileCount: number;
247
+ /** The number of sub-folders that reside as direct children of the given folder. */
248
+ directFolderCount: number;
249
+ /** The number of 'internal' data files (IE, those that are not visible to end users by default) that reside as
250
+ * direct children of the given folder. */
251
+ directInternalFileCount: number;
252
+ /** The number of app-scoped data files that reside as direct and indirect children of the given folder and it's
253
+ * sub-folder hierarchy. */
254
+ totalAppScopedFileCount: number;
255
+ /** The number of data files that reside as direct and indirect children of the given folder and it's sub-folder
256
+ * hierarchy. */
257
+ totalFileCount: number;
258
+ /** The number of folders that reside as direct and indirect children of the given folder and it's sub-folder
259
+ * hierarchy. */
260
+ totalFolderCount: number;
261
+ /** The number of 'internal' data files (IE, those that are not visible to end users by default) that reside as
262
+ * direct and indirect children of the given folder and it's sub-folder hierarchy. */
263
+ totalInternalFileCount: number;
264
+ };
265
+ /**
266
+ * Get descriptive info for the specified data files.
267
+ * @example
268
+ * getDataFiles(
269
+ * {
270
+ * allowInternalFiles: false,
271
+ * appId: "f34b91a1-0dc3-44ac-a847-51cb84122c84",
272
+ * baseNameWildcard: "*SomeFileName*",
273
+ * connectionId: "ee6a390c-5d33-11e8-9c2d-fa7ae01bbebc",
274
+ * excludeFiles: false,
275
+ * excludeSubFolders: false,
276
+ * folderId: "ee6a390c-5d33-11e8-9c2d-fa7ae01bbebc",
277
+ * folderPath: "some/folder",
278
+ * includeAllSpaces: false,
279
+ * includeFolders: false,
280
+ * includeFolderStats: false,
281
+ * limit: 5,
282
+ * name: "MyFile.csv",
283
+ * notOwnerId: "lDL4DIINndhL_iJkcbqWyJenuwizP-2D",
284
+ * ownerId: "lDL4DIINndhL_iJkcbqWyJenuwizP-2D",
285
+ * page: "NzlmNzI5NWMtZGJlZC00Y2Y4LThkNDAtMzQ5ZDU3YzNjMzQ1"
286
+ * }
287
+ * )
288
+ *
289
+ * @param query an object with query parameters
290
+ * @throws GetDataFilesHttpError
291
+ */
292
+ declare function getDataFiles(query: {
293
+ /** If set to false, do not return data files with internal extensions else return all the data files. */
294
+ allowInternalFiles?: boolean;
295
+ /** Only return files scoped to the specified app. If this parameter is not specified, only files that are not
296
+ * scoped to any app are returned. "*" implies all app-scoped files are returned. */
297
+ appId?: string;
298
+ /** If present, return only items whose base name matches the given wildcard. Wildcards include '*' and '?'
299
+ * characters to allow for multiple matches. The base name is the actual file or folder name without any
300
+ * folder pathing included. */
301
+ baseNameWildcard?: string;
302
+ /** Return files and folders that reside in the space referenced by the specified DataFiles connection. If this
303
+ * parameter is not specified, the user's personal space is implied. */
304
+ connectionId?: string;
305
+ /** If set to true, exclude files in the returned list (IE, only return folders). If false, include files. */
306
+ excludeFiles?: boolean;
307
+ /** If set to true, exclude folders and files that reside in sub-folders of the root being searched. If false,
308
+ * include all items in full folder hierarchy that recursively reside under the root. That is, setting to
309
+ * true results in only the direct children of the root being returned. */
310
+ excludeSubFolders?: boolean;
311
+ /** If present, return only items which reside under the folder specified by the given ID. If not present,
312
+ * items that live at the root of the space are returned. This property is mutually exclusive with 'folderPath'. */
313
+ folderId?: string;
314
+ /** If present, return only items which reside under the specified folder path. If not present, items that
315
+ * live at the root of the space are returned. This property is mutually exclusive with 'folderId'. */
316
+ folderPath?: string;
317
+ /** If set to true, and connectionId is not specified, return files and folders from all spaces the given user
318
+ * has access to (including the personal space). If connectionId is specified, this parameter is ignored. */
319
+ includeAllSpaces?: boolean;
320
+ /** If set to true, include computed folder statistics for folders in the returned list. If false, this information
321
+ * is not returned. */
322
+ includeFolderStats?: boolean;
323
+ /** If set to true, include folders in the returned list. If false, only return data files. */
324
+ includeFolders?: boolean;
325
+ /** If present, the maximum number of data files to return. */
326
+ limit?: number;
327
+ /** Filter the list of files returned to the given file name. */
328
+ name?: string;
329
+ /** If present, fetch the data files whose owner is not the specified owner. If a connectionId is specified in
330
+ * this case, the returned list is constrained to the specified space. If connectionId is not specified, then
331
+ * the returned list is constrained to the calling user's personal space. If includeAllSpaces is set to true,
332
+ * and connectionId is not specified, the returned list is from all spaces the given user
333
+ * has access to (including the personal space). */
334
+ notOwnerId?: string;
335
+ /** If present, fetch the data files for the specified owner. If a connectionId is specified in this case, the
336
+ * returned list is constrained to the specified space. If connectionId is not specified, then all files owned
337
+ * by the specified user are returned regardless of the personal space that a given file resides in. */
338
+ ownerId?: string;
339
+ /** If present, the cursor that starts the page of data that is returned. */
340
+ page?: string;
341
+ /** The name of the field used to sort the result. By default, the sort order is ascending. Putting a '+' prefix on
342
+ * the sort field name explicitly indicates ascending sort order. A '-' prefix indicates a descending sort order. */
343
+ sort?: GetDataFileInfosSortField;
344
+ }, options?: ApiCallOptions): Promise<GetDataFilesHttpResponse>;
345
+ type GetDataFilesHttpResponse = {
346
+ data: GetDataFileInfosResponse;
347
+ headers: Headers;
348
+ status: 200;
349
+ prev?: (options?: ApiCallOptions) => Promise<GetDataFilesHttpResponse>;
350
+ next?: (options?: ApiCallOptions) => Promise<GetDataFilesHttpResponse>;
351
+ };
352
+ type GetDataFilesHttpError = {
353
+ data: ErrorResponse;
354
+ headers: Headers;
355
+ status: 400 | 403;
356
+ };
357
+ /**
358
+ * Upload a new data file or create a new folder.
359
+ *
360
+ * @param body an object with the body content
361
+ * @throws UploadDataFileHttpError
362
+ */
363
+ declare function uploadDataFile(body: {
364
+ /** IFormFile form multipart/form-data */
365
+ File?: BodyInit;
366
+ /** See PostDataFileRequest schema which defines request structure.
367
+ * See model. */
368
+ Json?: {
369
+ /** If this file should be bound to the lifecycle of a specific app, this is the ID of this app. If this
370
+ * request is creating a folder, the specification of an app ID is not allowed. */
371
+ appId?: string;
372
+ /** If present, this is the DataFiles connection that the upload should occur in the context of. If absent,
373
+ * the default is that the upload will occur in the context of the Personal Space DataFiles connection. If the
374
+ * DataFiles connection is different from the one specified when the file or folder was last POSTed or PUT, this
375
+ * will result in a logical move of this file or folder into the new space. */
376
+ connectionId?: string;
377
+ /** If true, a folder will be created. If false, a file is created. */
378
+ folder?: boolean;
379
+ /** If the specified file or folder should be moved to become a a sub-item of an existing folder, this is the ID
380
+ * of this parent folder. Any additional folder path that is present on the Name property will be created
381
+ * as a subfolder hierarchy of this folder. If the FolderID is null, the file or folder specified in the
382
+ * Name property (including any folder prefix on that name), will be created in the root of the space. */
383
+ folderId?: string;
384
+ /** Name that will be given to the file or folder. It should be noted that the '/' character
385
+ * in the name indicates a 'path' separator in a logical folder hierarchy for the name. Names that
386
+ * contain '/'s should be used with the assumption that a logical 'folder hierarchy' is being defined for the
387
+ * full pathname of that file or folder. IE, a '/' is a significant character in the name. */
388
+ name: string;
389
+ /** If a SourceId is specified, this is the ID of the existing data file or folder whose content should be copied
390
+ * into the specified data file or folder. That is, for a file instead of the file content being specified in
391
+ * the Data element, it is effectively copied from an existing, previously uploaded file. For a folder, rather
392
+ * than the new folder being empty, it's contents are copied from an existing, previously created folder. */
393
+ sourceId?: string;
394
+ /** If a TempContentFileId is specified, this is the ID of a previously uploaded temporary content file whose
395
+ * content should be copied into the specified data file. That is, instead of the file content being specified
396
+ * in the Data element, it is effectively copied from an existing, previously uploaded file. The expectation
397
+ * is that this file was previously uploaded to the temporary content service, and the ID specified here is
398
+ * the one returned from the temp content upload request. This option does not apply when POSTing a folder. */
399
+ tempContentFileId?: string;
400
+ };
401
+ }, options?: ApiCallOptions): Promise<UploadDataFileHttpResponse>;
402
+ type UploadDataFileHttpResponse = {
403
+ data: DataFileUploadResponse;
404
+ headers: Headers;
405
+ status: 201;
406
+ };
407
+ type UploadDataFileHttpError = {
408
+ data: ErrorResponse;
409
+ headers: Headers;
410
+ status: 400 | 403 | 409 | 413 | 423 | 501;
411
+ };
412
+ /**
413
+ * This is to allow for a separate admin type of operation that is more global in terms of access in cases
414
+ * where admin users may not explicitly have been granted full access to a given space within the declared
415
+ * space-level permissions. If the space ID is set to null, then the data file or folder will end up residing
416
+ * in the personal space of the user who is the owner of the item.
417
+ *
418
+ * @param body an object with the body content
419
+ * @throws MoveDataFilesHttpError
420
+ */
421
+ declare function moveDataFiles(body: DataFileBatchChangeSpaceRequest, options?: ApiCallOptions): Promise<MoveDataFilesHttpResponse>;
422
+ type MoveDataFilesHttpResponse = {
423
+ data: MultiStatusResponse;
424
+ headers: Headers;
425
+ status: 207;
426
+ };
427
+ type MoveDataFilesHttpError = {
428
+ data: ErrorResponse;
429
+ headers: Headers;
430
+ status: 400;
431
+ };
432
+ /**
433
+ * Delete the specified set of data files and/or folders as a single batch.
434
+ *
435
+ * @param body an object with the body content
436
+ * @throws DeleteDataFilesHttpError
437
+ */
438
+ declare function deleteDataFiles(body: DataFileBatchDeleteRequest, options?: ApiCallOptions): Promise<DeleteDataFilesHttpResponse>;
439
+ type DeleteDataFilesHttpResponse = {
440
+ data: MultiStatusResponse;
441
+ headers: Headers;
442
+ status: 207;
443
+ };
444
+ type DeleteDataFilesHttpError = {
445
+ data: ErrorResponse;
446
+ headers: Headers;
447
+ status: 400;
448
+ };
449
+ /**
450
+ * The non-filtered list contains a set of hardcoded connections, along with one connection per team space that
451
+ * the given user has access to.
452
+ * @example
453
+ * getDataFilesConnections(
454
+ * {
455
+ * appId: "f34b91a1-0dc3-44ac-a847-51cb84122c84",
456
+ * includeSpaceStats: false,
457
+ * limit: 5,
458
+ * name: "MySenseApp",
459
+ * page: "NzlmNzI5NWMtZGJlZC00Y2Y4LThkNDAtMzQ5ZDU3YzNjMzQ1",
460
+ * personal: true,
461
+ * spaceId: "617979737a9f56e49dea2e6e"
462
+ * }
463
+ * )
464
+ *
465
+ * @param query an object with query parameters
466
+ * @throws GetDataFilesConnectionsHttpError
467
+ */
468
+ declare function getDataFilesConnections(query: {
469
+ /** If present, get connections with connection strings that are scoped to the given app ID. */
470
+ appId?: string;
471
+ /** If set to true, include computed space-level statistics for the spaces represented by the connections in the
472
+ * returned list. If false, this information is not returned. */
473
+ includeSpaceStats?: boolean;
474
+ /** If present, the maximum number of data file connection records to return. */
475
+ limit?: number;
476
+ /** If present, only return connections with the given name. */
477
+ name?: string;
478
+ /** If present, the cursor that starts the page of data that is returned. */
479
+ page?: string;
480
+ /** If true, only return the connections that access data in a personal space. Default is false. */
481
+ personal?: boolean;
482
+ /** The name of the field used to sort the result. By default, the sort is ascending. Putting a '+' prefix on
483
+ * the sort field name explicitly indicates ascending sort order. A '-' prefix indicates a descending sort order. */
484
+ sort?: GetConnectionsSortField;
485
+ /** If present, only return the connection that accesses data files in the specified space. */
486
+ spaceId?: string;
487
+ }, options?: ApiCallOptions): Promise<GetDataFilesConnectionsHttpResponse>;
488
+ type GetDataFilesConnectionsHttpResponse = {
489
+ data: GetConnectionsResponse;
490
+ headers: Headers;
491
+ status: 200;
492
+ prev?: (options?: ApiCallOptions) => Promise<GetDataFilesConnectionsHttpResponse>;
493
+ next?: (options?: ApiCallOptions) => Promise<GetDataFilesConnectionsHttpResponse>;
494
+ };
495
+ type GetDataFilesConnectionsHttpError = {
496
+ data: ErrorResponse;
497
+ headers: Headers;
498
+ status: 400 | 403;
499
+ };
500
+ /**
501
+ * Get the built-in connection used by the engine to load/write data files given a connection ID.
502
+ * @example
503
+ * getDataFileConnection(
504
+ * "ee6a390c-5d33-11e8-9c2d-fa7ae01bbebc"
505
+ * )
506
+ *
507
+ * @param id The ID of the connection.
508
+ * @throws GetDataFileConnectionHttpError
509
+ */
510
+ declare function getDataFileConnection(id: string, options?: ApiCallOptions): Promise<GetDataFileConnectionHttpResponse>;
511
+ type GetDataFileConnectionHttpResponse = {
512
+ data: ConnectionsResponse;
513
+ headers: Headers;
514
+ status: 200;
515
+ };
516
+ type GetDataFileConnectionHttpError = {
517
+ data: ErrorResponse;
518
+ headers: Headers;
519
+ status: 403 | 404;
520
+ };
521
+ /**
522
+ * Get quota information for the calling user.
523
+ *
524
+ * @throws GetDataFilesQuotasHttpError
525
+ */
526
+ declare function getDataFilesQuotas(options?: ApiCallOptions): Promise<GetDataFilesQuotasHttpResponse>;
527
+ type GetDataFilesQuotasHttpResponse = {
528
+ data: QuotaResponse;
529
+ headers: Headers;
530
+ status: 200;
531
+ };
532
+ type GetDataFilesQuotasHttpError = {
533
+ data: ErrorResponse;
534
+ headers: Headers;
535
+ status: 400 | 403;
536
+ };
537
+ /**
538
+ * Delete the specified data file or folder. Deleting a folder will also recursively delete all files and
539
+ * subfolders that reside within the specified folder.
540
+ * @example
541
+ * deleteDataFile(
542
+ * "ee6a390c-5d33-11e8-9c2d-fa7ae01bbebc"
543
+ * )
544
+ *
545
+ * @param id The ID of the data file or folder to delete.
546
+ * @throws DeleteDataFileHttpError
547
+ */
548
+ declare function deleteDataFile(id: string, options?: ApiCallOptions): Promise<DeleteDataFileHttpResponse>;
549
+ type DeleteDataFileHttpResponse = {
550
+ data: void;
551
+ headers: Headers;
552
+ status: 204;
553
+ };
554
+ type DeleteDataFileHttpError = {
555
+ data: ErrorResponse;
556
+ headers: Headers;
557
+ status: 400 | 403 | 404;
558
+ };
559
+ /**
560
+ * Get descriptive info for the specified data file.
561
+ * @example
562
+ * getDataFile(
563
+ * "ee6a390c-5d33-11e8-9c2d-fa7ae01bbebc"
564
+ * )
565
+ *
566
+ * @param id The ID of the data file.
567
+ * @throws GetDataFileHttpError
568
+ */
569
+ declare function getDataFile(id: string, options?: ApiCallOptions): Promise<GetDataFileHttpResponse>;
570
+ type GetDataFileHttpResponse = {
571
+ data: DataFileUploadResponse;
572
+ headers: Headers;
573
+ status: 200;
574
+ };
575
+ type GetDataFileHttpError = {
576
+ data: ErrorResponse;
577
+ headers: Headers;
578
+ status: 400 | 403 | 404;
579
+ };
580
+ /**
581
+ * Re-upload an existing data file or update an existing folder.
582
+ *
583
+ * @param id The ID of the data file to update.
584
+ * @param body an object with the body content
585
+ * @throws ReuploadDataFileHttpError
586
+ */
587
+ declare function reuploadDataFile(id: string, body: {
588
+ /** IFormFile form multipart/form-data */
589
+ File?: BodyInit;
590
+ /** See PutDataFileRequest schema which defines request structure.
591
+ * See model. */
592
+ Json?: {
593
+ /** If this file should be bound to the lifecycle of a specific app, this is the ID of this app. If this
594
+ * request is creating a folder, the specification of an app ID is not allowed. */
595
+ appId?: string;
596
+ /** If present, this is the DataFiles connection points to the space that the file or folder should reside in.
597
+ * If absent, the default is that the file or folder will reside in the Personal SPce. If the DataFiles
598
+ * connection is different from the one specified when the file or folder was last POSTed or PUT, this will
599
+ * result in a logical move of this file or folder into the new space. */
600
+ connectionId?: string;
601
+ /** If the specified file or folder should be created as a sub-item of an existing folder, this is the ID
602
+ * of this parent folder. Any additional folder path that is present on the Name property will be created
603
+ * as a subfolder hierarchy of this folder. If the FolderID is null, the file or folder specified in the
604
+ * Name property (including any folder prefix on that name), will be created in the root of the space. */
605
+ folderId?: string;
606
+ /** If a SourceId is specified, and a folder is being updated by this PUT operation, this specifies how the
607
+ * source folder contents should be applied to the target folder, if the target folder is not empty. 'merge'
608
+ * implies the contents of the source folder should be merged with the existing target contents. That is, all
609
+ * existing direct or indirect child items in the target folder are replaced by the same items in the source folder.
610
+ * All existing items in the target folder that are not present in the source folder are left, as is, in the target.
611
+ * 'replace' implies the contents of the source folder should replace the contents of the target folder. That is,
612
+ * all direct or indirect items in the target folder are removed before the items from the source folder are copied
613
+ * over. The resulting target folder only contains the items from the source folder. If not specified, the default
614
+ * behavior is 'merge'.<p>Members:</p><ul></ul> */
615
+ folderMergeBehavior?: PutDataFileFolderMergeBehavior;
616
+ /** Name that will be given to the file or folder. If this name is different than the name used when the file
617
+ * or folder was last POSTed or PUT, this will result in a rename of the file or folder. It should be noted
618
+ * that the '/' character in a data file name indicates a 'path' separator in a logical folder hierarchy for
619
+ * the name. Names that contain '/'s should be used with the assumption that a logical 'folder hierarchy' is
620
+ * being defined for the full pathname of that file or folder.. '/' is a significant character in the data file
621
+ * or folder name. */
622
+ name?: string;
623
+ /** If a SourceId is specified, this is the ID of the existing data file or folder whose content should be copied
624
+ * into the specified data file or folder. That is, for a file instead of the file content being specified in
625
+ * the Data element, it is effectively copied from an existing, previously uploaded file. For a folder, it's
626
+ * contents are copied from an existing, previously created folder. If there it existing content in the target
627
+ * folder, then how the source and target folder contents are merged together is specified in the
628
+ * FolderMergeBehavior option. */
629
+ sourceId?: string;
630
+ /** If a TempContentFileId is specified, this is the ID of a previously uploaded temporary content file whose
631
+ * content should be copied into the specified data file. That is, instead of the file content being specified
632
+ * in the Data element, it is effectively copied from an existing, previously uploaded file. The expectation
633
+ * is that this file was previously uploaded to the temporary content service, and the ID specified here is
634
+ * the one returned from the temp content upload request. */
635
+ tempContentFileId?: string;
636
+ };
637
+ }, options?: ApiCallOptions): Promise<ReuploadDataFileHttpResponse>;
638
+ type ReuploadDataFileHttpResponse = {
639
+ data: DataFileUploadResponse;
640
+ headers: Headers;
641
+ status: 201;
642
+ };
643
+ type ReuploadDataFileHttpError = {
644
+ data: ErrorResponse;
645
+ headers: Headers;
646
+ status: 400 | 403 | 404 | 409 | 413 | 423;
647
+ };
648
+ /**
649
+ * This is primarily an admin type of operation. In general, the owner of a data file or folder is implicitly
650
+ * set as part of a create or update operation. For data files or folders that reside in a personal space,
651
+ * changing the owner has the effect of moving the data file to the new owner's personal space. Note that,
652
+ * If a given file or folder is not in the root of a personal space, this operation will not succeed, since
653
+ * the parent folder does not reside in the target owner's personal space. If the owner of a folder in the
654
+ * root of a personal space is changed, the owner of all subfolders and files within those subfolders will
655
+ * also recursively change.
656
+ *
657
+ * @param id The ID of the data file or folder whose owner will be updated.
658
+ * @param body an object with the body content
659
+ * @throws ChangeDataFileOwnerHttpError
660
+ */
661
+ declare function changeDataFileOwner(id: string, body: ChangeDataFileOwnerRequest, options?: ApiCallOptions): Promise<ChangeDataFileOwnerHttpResponse>;
662
+ type ChangeDataFileOwnerHttpResponse = {
663
+ data: void;
664
+ headers: Headers;
665
+ status: 204;
666
+ };
667
+ type ChangeDataFileOwnerHttpError = {
668
+ data: ErrorResponse;
669
+ headers: Headers;
670
+ status: 400 | 403 | 404 | 409 | 423;
671
+ };
672
+ /**
673
+ * This is to allow for a separate admin type of operation that is more global in terms of access in cases
674
+ * where admin users may not explicitly have been granted full access to a given space within the declared
675
+ * space-level permissions. If the space ID is set to null, then the datafile or folder will end up residing
676
+ * in the personal space of the user who is the owner of the item. Note that, if a given file or folder is not
677
+ * in the root of a given space, this operation will not succeed, since the parent folder does not reside in
678
+ * the target space. If the space of a folder in the root of the source space is changed, all subfolders and
679
+ * files within those subfolders will also recursively be moved to the new space.
680
+ *
681
+ * @param id The ID of the data file or folder whose
682
+ space will be updated.
683
+ * @param body an object with the body content
684
+ * @throws MoveDataFileHttpError
685
+ */
686
+ declare function moveDataFile(id: string, body: ChangeDataFileSpaceRequest, options?: ApiCallOptions): Promise<MoveDataFileHttpResponse>;
687
+ type MoveDataFileHttpResponse = {
688
+ data: void;
689
+ headers: Headers;
690
+ status: 204;
691
+ };
692
+ type MoveDataFileHttpError = {
693
+ data: ErrorResponse;
694
+ headers: Headers;
695
+ status: 400 | 403 | 404 | 409 | 423;
696
+ };
697
+ /**
698
+ * Clears the cache for data-files api requests.
699
+ */
700
+ declare function clearCache(): void;
701
+ type DataFilesAPI = {
702
+ /**
703
+ * Get descriptive info for the specified data files.
704
+ * @example
705
+ * getDataFiles(
706
+ * {
707
+ * allowInternalFiles: false,
708
+ * appId: "f34b91a1-0dc3-44ac-a847-51cb84122c84",
709
+ * baseNameWildcard: "*SomeFileName*",
710
+ * connectionId: "ee6a390c-5d33-11e8-9c2d-fa7ae01bbebc",
711
+ * excludeFiles: false,
712
+ * excludeSubFolders: false,
713
+ * folderId: "ee6a390c-5d33-11e8-9c2d-fa7ae01bbebc",
714
+ * folderPath: "some/folder",
715
+ * includeAllSpaces: false,
716
+ * includeFolders: false,
717
+ * includeFolderStats: false,
718
+ * limit: 5,
719
+ * name: "MyFile.csv",
720
+ * notOwnerId: "lDL4DIINndhL_iJkcbqWyJenuwizP-2D",
721
+ * ownerId: "lDL4DIINndhL_iJkcbqWyJenuwizP-2D",
722
+ * page: "NzlmNzI5NWMtZGJlZC00Y2Y4LThkNDAtMzQ5ZDU3YzNjMzQ1"
723
+ * }
724
+ * )
725
+ *
726
+ * @param query an object with query parameters
727
+ * @throws GetDataFilesHttpError
728
+ */
729
+ getDataFiles: typeof getDataFiles;
730
+ /**
731
+ * Upload a new data file or create a new folder.
732
+ *
733
+ * @param body an object with the body content
734
+ * @throws UploadDataFileHttpError
735
+ */
736
+ uploadDataFile: typeof uploadDataFile;
737
+ /**
738
+ * This is to allow for a separate admin type of operation that is more global in terms of access in cases
739
+ * where admin users may not explicitly have been granted full access to a given space within the declared
740
+ * space-level permissions. If the space ID is set to null, then the data file or folder will end up residing
741
+ * in the personal space of the user who is the owner of the item.
742
+ *
743
+ * @param body an object with the body content
744
+ * @throws MoveDataFilesHttpError
745
+ */
746
+ moveDataFiles: typeof moveDataFiles;
747
+ /**
748
+ * Delete the specified set of data files and/or folders as a single batch.
749
+ *
750
+ * @param body an object with the body content
751
+ * @throws DeleteDataFilesHttpError
752
+ */
753
+ deleteDataFiles: typeof deleteDataFiles;
754
+ /**
755
+ * The non-filtered list contains a set of hardcoded connections, along with one connection per team space that
756
+ * the given user has access to.
757
+ * @example
758
+ * getDataFilesConnections(
759
+ * {
760
+ * appId: "f34b91a1-0dc3-44ac-a847-51cb84122c84",
761
+ * includeSpaceStats: false,
762
+ * limit: 5,
763
+ * name: "MySenseApp",
764
+ * page: "NzlmNzI5NWMtZGJlZC00Y2Y4LThkNDAtMzQ5ZDU3YzNjMzQ1",
765
+ * personal: true,
766
+ * spaceId: "617979737a9f56e49dea2e6e"
767
+ * }
768
+ * )
769
+ *
770
+ * @param query an object with query parameters
771
+ * @throws GetDataFilesConnectionsHttpError
772
+ */
773
+ getDataFilesConnections: typeof getDataFilesConnections;
774
+ /**
775
+ * Get the built-in connection used by the engine to load/write data files given a connection ID.
776
+ * @example
777
+ * getDataFileConnection(
778
+ * "ee6a390c-5d33-11e8-9c2d-fa7ae01bbebc"
779
+ * )
780
+ *
781
+ * @param id The ID of the connection.
782
+ * @throws GetDataFileConnectionHttpError
783
+ */
784
+ getDataFileConnection: typeof getDataFileConnection;
785
+ /**
786
+ * Get quota information for the calling user.
787
+ *
788
+ * @throws GetDataFilesQuotasHttpError
789
+ */
790
+ getDataFilesQuotas: typeof getDataFilesQuotas;
791
+ /**
792
+ * Delete the specified data file or folder. Deleting a folder will also recursively delete all files and
793
+ * subfolders that reside within the specified folder.
794
+ * @example
795
+ * deleteDataFile(
796
+ * "ee6a390c-5d33-11e8-9c2d-fa7ae01bbebc"
797
+ * )
798
+ *
799
+ * @param id The ID of the data file or folder to delete.
800
+ * @throws DeleteDataFileHttpError
801
+ */
802
+ deleteDataFile: typeof deleteDataFile;
803
+ /**
804
+ * Get descriptive info for the specified data file.
805
+ * @example
806
+ * getDataFile(
807
+ * "ee6a390c-5d33-11e8-9c2d-fa7ae01bbebc"
808
+ * )
809
+ *
810
+ * @param id The ID of the data file.
811
+ * @throws GetDataFileHttpError
812
+ */
813
+ getDataFile: typeof getDataFile;
814
+ /**
815
+ * Re-upload an existing data file or update an existing folder.
816
+ *
817
+ * @param id The ID of the data file to update.
818
+ * @param body an object with the body content
819
+ * @throws ReuploadDataFileHttpError
820
+ */
821
+ reuploadDataFile: typeof reuploadDataFile;
822
+ /**
823
+ * This is primarily an admin type of operation. In general, the owner of a data file or folder is implicitly
824
+ * set as part of a create or update operation. For data files or folders that reside in a personal space,
825
+ * changing the owner has the effect of moving the data file to the new owner's personal space. Note that,
826
+ * If a given file or folder is not in the root of a personal space, this operation will not succeed, since
827
+ * the parent folder does not reside in the target owner's personal space. If the owner of a folder in the
828
+ * root of a personal space is changed, the owner of all subfolders and files within those subfolders will
829
+ * also recursively change.
830
+ *
831
+ * @param id The ID of the data file or folder whose owner will be updated.
832
+ * @param body an object with the body content
833
+ * @throws ChangeDataFileOwnerHttpError
834
+ */
835
+ changeDataFileOwner: typeof changeDataFileOwner;
836
+ /**
837
+ * This is to allow for a separate admin type of operation that is more global in terms of access in cases
838
+ * where admin users may not explicitly have been granted full access to a given space within the declared
839
+ * space-level permissions. If the space ID is set to null, then the datafile or folder will end up residing
840
+ * in the personal space of the user who is the owner of the item. Note that, if a given file or folder is not
841
+ * in the root of a given space, this operation will not succeed, since the parent folder does not reside in
842
+ * the target space. If the space of a folder in the root of the source space is changed, all subfolders and
843
+ * files within those subfolders will also recursively be moved to the new space.
844
+ *
845
+ * @param id The ID of the data file or folder whose
846
+ space will be updated.
847
+ * @param body an object with the body content
848
+ * @throws MoveDataFileHttpError
849
+ */
850
+ moveDataFile: typeof moveDataFile;
851
+ /**
852
+ * Clears the cache for data-files api requests.
853
+ */
854
+ clearCache: typeof clearCache;
855
+ };
856
+ /**
857
+ * Functions for the data-files api
858
+ */
859
+ declare const dataFilesExport: DataFilesAPI;
860
+ //#endregion
4
861
  export { BatchChangeSpaceItem, BatchDeleteAllBySpaceItem, BatchDeleteItem, ChangeDataFileOwnerHttpError, ChangeDataFileOwnerHttpResponse, ChangeDataFileOwnerRequest, ChangeDataFileSpaceRequest, ConnectionsResponse, DataFileBatchChangeSpaceRequest, DataFileBatchDeleteRequest, DataFilePermission, DataFileUploadResponse, DataFilesAPI, DeleteDataFileHttpError, DeleteDataFileHttpResponse, DeleteDataFilesHttpError, DeleteDataFilesHttpResponse, ErrorCode, ErrorResponse, ErrorResponseItem, FolderStatsResponse, GetConnectionsResponse, GetConnectionsSortField, GetDataFileConnectionHttpError, GetDataFileConnectionHttpResponse, GetDataFileHttpError, GetDataFileHttpResponse, GetDataFileInfosResponse, GetDataFileInfosSortField, GetDataFilesConnectionsHttpError, GetDataFilesConnectionsHttpResponse, GetDataFilesHttpError, GetDataFilesHttpResponse, GetDataFilesQuotasHttpError, GetDataFilesQuotasHttpResponse, LinkResponse, LinksResponse, MoveDataFileHttpError, MoveDataFileHttpResponse, MoveDataFilesHttpError, MoveDataFilesHttpResponse, MultiStatusResponse, MultiStatusResponseItem, PutDataFileFolderMergeBehavior, QuotaResponse, ReuploadDataFileHttpError, ReuploadDataFileHttpResponse, SpaceStatsResponse, UploadDataFileHttpError, UploadDataFileHttpResponse, changeDataFileOwner, clearCache, dataFilesExport as default, deleteDataFile, deleteDataFiles, getDataFile, getDataFileConnection, getDataFiles, getDataFilesConnections, getDataFilesQuotas, moveDataFile, moveDataFiles, reuploadDataFile, uploadDataFile };