@qlik/api 0.0.16 → 0.1.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 (134) hide show
  1. package/README.md +1 -1
  2. package/api-keys.js +25 -25
  3. package/apps.d.ts +9 -1
  4. package/apps.js +97 -97
  5. package/audits.js +23 -23
  6. package/auth.js +14 -14
  7. package/automations.js +47 -47
  8. package/brands.js +35 -35
  9. package/chunks/4HB3TAEO.js +4 -4
  10. package/chunks/{HHOVS7QC.mjs → CHNBNLXY.js} +3 -3
  11. package/chunks/{3YV6X7S6.mjs → FFGE2RP7.js} +1 -1
  12. package/chunks/{HOCTJESP.mjs → JEGN7XQV.js} +3 -3
  13. package/chunks/{6WX5AGKQ.mjs → L2BJNKLV.js} +2 -2
  14. package/chunks/OPRGGO4C.js +8 -8
  15. package/chunks/{O4EAKEIN.mjs → RHF624NQ.js} +1 -1
  16. package/chunks/{BYD63JCG.mjs → SIU6HO6B.js} +5 -3
  17. package/chunks/{EHAANYDL.mjs → TT66UJZY.js} +3 -3
  18. package/chunks/{UKVTBYP6.mjs → XOVMZWDC.js} +2 -2
  19. package/chunks/{6AD3HYSF.mjs → XZQNE4HH.js} +1 -1
  20. package/collections.js +33 -33
  21. package/csp-origins.js +23 -23
  22. package/data-assets.js +21 -21
  23. package/data-connections.js +29 -29
  24. package/data-credentials.js +19 -19
  25. package/data-files.js +35 -35
  26. package/docs/authentication.md +5 -5
  27. package/docs/examples/fetch-spaces.md +1 -15
  28. package/docs/examples/show-sheet-list.md +1 -1
  29. package/docs/features.md +1 -1
  30. package/extensions.js +25 -25
  31. package/glossaries.js +59 -59
  32. package/groups.d.ts +0 -3
  33. package/groups.js +27 -27
  34. package/identity-providers.d.ts +144 -10
  35. package/identity-providers.js +27 -27
  36. package/index.js +53 -53
  37. package/items.js +27 -27
  38. package/licenses.js +29 -29
  39. package/package.json +36 -232
  40. package/qix.d.ts +1 -1
  41. package/qix.js +10 -10
  42. package/quotas.js +15 -15
  43. package/reload-tasks.js +21 -21
  44. package/reloads.js +19 -19
  45. package/roles.js +15 -15
  46. package/spaces.js +35 -35
  47. package/temp-contents.js +17 -17
  48. package/tenants.js +23 -23
  49. package/themes.js +25 -25
  50. package/transports.js +23 -23
  51. package/users.d.ts +1 -3
  52. package/users.js +31 -31
  53. package/web-integrations.js +21 -21
  54. package/web-notifications.js +23 -23
  55. package/webhooks.js +31 -31
  56. package/api-keys.d.mts +0 -336
  57. package/api-keys.mjs +0 -80
  58. package/apps.d.mts +0 -2431
  59. package/apps.mjs +0 -398
  60. package/audits.d.mts +0 -286
  61. package/audits.mjs +0 -64
  62. package/auth-types-nnUcWhuU.d.mts +0 -98
  63. package/auth.d.mts +0 -26
  64. package/auth.mjs +0 -14
  65. package/automations.d.mts +0 -682
  66. package/automations.mjs +0 -173
  67. package/brands.d.mts +0 -670
  68. package/brands.mjs +0 -123
  69. package/chunks/2YWCEGTS.js +0 -21
  70. package/chunks/34ZKUFEA.js +0 -41
  71. package/chunks/4WHZ4EIW.js +0 -57
  72. package/chunks/B4VPD3ZT.js +0 -574
  73. package/chunks/BM4OSDRZ.js +0 -17
  74. package/chunks/DCXUEDOW.mjs +0 -67
  75. package/chunks/MTAQE4WC.js +0 -10411
  76. package/chunks/PLOSYUG2.js +0 -25
  77. package/chunks/URIW2U5M.js +0 -17
  78. package/chunks/VSY5YIQY.mjs +0 -11
  79. package/chunks/WOYJLK4Y.js +0 -1623
  80. package/collections.d.mts +0 -581
  81. package/collections.mjs +0 -114
  82. package/csp-origins.d.mts +0 -273
  83. package/csp-origins.mjs +0 -69
  84. package/data-assets.d.mts +0 -205
  85. package/data-assets.mjs +0 -66
  86. package/data-connections.d.mts +0 -594
  87. package/data-connections.mjs +0 -103
  88. package/data-credentials.d.mts +0 -204
  89. package/data-credentials.mjs +0 -59
  90. package/data-files.d.mts +0 -562
  91. package/data-files.mjs +0 -123
  92. package/extensions.d.mts +0 -293
  93. package/extensions.mjs +0 -77
  94. package/global.types-5iFvFJvX.d.mts +0 -115
  95. package/glossaries.d.mts +0 -1173
  96. package/glossaries.mjs +0 -237
  97. package/groups.d.mts +0 -434
  98. package/groups.mjs +0 -88
  99. package/identity-providers.d.mts +0 -550
  100. package/identity-providers.mjs +0 -83
  101. package/index.d.mts +0 -142
  102. package/index.mjs +0 -716
  103. package/items.d.mts +0 -535
  104. package/items.mjs +0 -87
  105. package/licenses.d.mts +0 -459
  106. package/licenses.mjs +0 -92
  107. package/qix.d.mts +0 -11629
  108. package/qix.mjs +0 -10
  109. package/quotas.d.mts +0 -112
  110. package/quotas.mjs +0 -32
  111. package/reload-tasks.d.mts +0 -227
  112. package/reload-tasks.mjs +0 -62
  113. package/reloads.d.mts +0 -207
  114. package/reloads.mjs +0 -46
  115. package/roles.d.mts +0 -175
  116. package/roles.mjs +0 -31
  117. package/spaces.d.mts +0 -562
  118. package/spaces.mjs +0 -124
  119. package/temp-contents.d.mts +0 -167
  120. package/temp-contents.mjs +0 -41
  121. package/tenants.d.mts +0 -300
  122. package/tenants.mjs +0 -73
  123. package/themes.d.mts +0 -268
  124. package/themes.mjs +0 -77
  125. package/transports.d.mts +0 -319
  126. package/transports.mjs +0 -65
  127. package/users.d.mts +0 -631
  128. package/users.mjs +0 -104
  129. package/web-integrations.d.mts +0 -274
  130. package/web-integrations.mjs +0 -62
  131. package/web-notifications.d.mts +0 -250
  132. package/web-notifications.mjs +0 -69
  133. package/webhooks.d.mts +0 -445
  134. package/webhooks.mjs +0 -104
package/data-files.d.mts DELETED
@@ -1,562 +0,0 @@
1
- import { A as ApiCallOptions } from './global.types-5iFvFJvX.mjs';
2
- import './auth-types-nnUcWhuU.mjs';
3
-
4
- type BatchChangeSpaceItem = {
5
- /** The ID of the data file whose space will be changed. */
6
- id: string;
7
- /** The ID of the new space. Passing in a null will result in the data file being moved to the user's
8
- * personal space. */
9
- spaceId?: string;
10
- };
11
- type BatchDeleteItem = {
12
- /** The ID of the data file to delete. */
13
- id: string;
14
- };
15
- type ChangeDataFileOwnerRequest = {
16
- /** The ID of the new owner. */
17
- ownerId: string;
18
- };
19
- type ChangeDataFileSpaceRequest = {
20
- /** The ID of the space. If null, this data file will be moved to the user's personal space. */
21
- spaceId?: string;
22
- };
23
- type ConnectionsResponse = {
24
- /** The connect statement that will be passed to the connector when invoked. */
25
- connectStatement: string;
26
- /** The unique identifier of the connection. */
27
- id: string;
28
- /** The name of the connection. */
29
- name: string;
30
- /** The team space that the given connection is associated with. If null, the connection is not associated
31
- * with any specific team space. */
32
- spaceId?: string;
33
- /** The type of the connection. */
34
- type: string;
35
- };
36
- /**
37
- * Specifies the list of data file change space operations in a single batch.
38
- */
39
- type DataFileBatchChangeSpaceRequest = {
40
- /** The list of data files to delete. */
41
- "change-space": BatchChangeSpaceItem[];
42
- };
43
- /**
44
- * Specifies the list of data files to be deleted in a single batch.
45
- */
46
- type DataFileBatchDeleteRequest = {
47
- /** The list of data files to delete. */
48
- delete: BatchDeleteItem[];
49
- };
50
- type DataFileUploadResponse = {
51
- /** If this file is bound to the lifecycle of a specific app, this is the ID of this app. */
52
- appId?: string;
53
- /** The date that the uploaded file was created. */
54
- createdDate: string;
55
- /** The ID for the uploaded file. */
56
- id: string;
57
- /** The date that the updated file was last modified. */
58
- modifiedDate?: string;
59
- /** The name of the uploaded file. */
60
- name: string;
61
- /** The 'owner' of a file is the user who last uploaded the file's content. */
62
- ownerId: string;
63
- /** The size of the uploaded file, in bytes. */
64
- size: number;
65
- /** If the file was uploaded to a team space, this is the ID of that space. */
66
- spaceId?: string;
67
- };
68
- type ErrorResponse = {
69
- /** List of errors and their properties. */
70
- errors: ErrorResponseItem[];
71
- };
72
- type ErrorResponseItem = {
73
- /** The error code. */
74
- code: string;
75
- /** A human-readable explanation specific to this occurrence of the problem. */
76
- detail?: string;
77
- /** Summary of the problem. */
78
- title?: string;
79
- };
80
- type GetConnectionsResponse = {
81
- /** Properties of the connections to the tenant spaces. */
82
- data: ConnectionsResponse[];
83
- links: LinksResponse;
84
- };
85
- type GetConnectionsSortField = "spaceId" | "+spaceId" | "-spaceId";
86
- type GetDataFileInfosResponse = {
87
- /** Properties of the uploaded data files. */
88
- data: DataFileUploadResponse[];
89
- links: LinksResponse;
90
- };
91
- type GetDataFileInfosSortField = "name" | "+name" | "-name" | "size" | "+size" | "-size" | "modifiedDate" | "+modifiedDate" | "-modifiedDate";
92
- type LinkResponse = {
93
- /** The URL for the link. */
94
- href?: string;
95
- };
96
- type LinksResponse = {
97
- next: LinkResponse;
98
- prev: LinkResponse;
99
- self: LinkResponse;
100
- };
101
- type MultiStatusResponse = {
102
- /** List of individual results for the items in the specified batch. */
103
- data: MultiStatusResponseItem[];
104
- };
105
- type MultiStatusResponseItem = {
106
- /** The error code. */
107
- code: string;
108
- /** A human-readable explanation specific to this occurrence of the problem. */
109
- detail?: string;
110
- /** The unique identifier of the file. */
111
- id: string;
112
- /** The HTTP status code. */
113
- status: number;
114
- /** Summary of the problem. */
115
- title?: string;
116
- };
117
- type QuotaResponse = {
118
- /** The allowed file extensions on files that are uploaded. */
119
- allowedExtensions: string[];
120
- /** The allowed file extensions for files that are only used internally by the system (and thus not typically
121
- * shown to end users). */
122
- allowedInternalExtensions: string[];
123
- /** Maximum allowable size of an uploaded file. */
124
- maxFileSize: number;
125
- /** Maximum allowable size for a single uploaded large data file (in bytes). This is a file that was indirectly
126
- * uploaded using the temp content service chunked upload capability. */
127
- maxLargeFileSize: number;
128
- /** The maximum aggregate size of all files uploaded by a given user. */
129
- maxSize: number;
130
- /** The current aggregate size of all files uploaded by a given user. If the current aggregate size is greater
131
- * than the maximum aggregate size, this is a quota violation. */
132
- size: number;
133
- };
134
- /**
135
- * Get descriptive info for the specified data files.
136
- *
137
- * @param query an object with query parameters
138
- * @throws GetDataFilesHttpError
139
- */
140
- declare const getDataFiles: (query: {
141
- /** If set to false, do not return data files with internal extensions else return all the data files. */
142
- allowInternalFiles?: boolean;
143
- /** Only return files scoped to the specified app. If this parameter is not specified, only files that are not
144
- * scoped to any app are returned. "*" implies all app-scoped files are returned. */
145
- appId?: string;
146
- /** Return files that reside in the space referenced by the specified DataFiles connection. If this parameter
147
- * is not specified, the user's personal space is implied. */
148
- connectionId?: string;
149
- /** If present, the maximum number of data files to return. */
150
- limit?: number;
151
- /** Filter the list of files returned to the given file name. */
152
- name?: string;
153
- /** If present, fetch the data files for the specified owner. If a connectionId is specified in this case, the
154
- * returned list is constrained to the specified space. If connectionId is not specified, then all files owned
155
- * by the specified user are returned regardless of the personal space that a given file resides in. */
156
- ownerId?: string;
157
- /** If present, the cursor that starts the page of data that is returned. */
158
- page?: string;
159
- /** The name of the field used to sort the result. By default, the sort order is ascending. Putting a '+' prefix on
160
- * the sort field name explicitly indicates ascending sort order. A '-' prefix indicates a descending sort order. */
161
- sort?: GetDataFileInfosSortField;
162
- }, options?: ApiCallOptions) => Promise<GetDataFilesHttpResponse>;
163
- type GetDataFilesHttpResponse = {
164
- data: GetDataFileInfosResponse;
165
- headers: Headers;
166
- status: number;
167
- prev?: (options?: ApiCallOptions) => Promise<GetDataFilesHttpResponse>;
168
- next?: (options?: ApiCallOptions) => Promise<GetDataFilesHttpResponse>;
169
- };
170
- type GetDataFilesHttpError = {
171
- data: ErrorResponse;
172
- headers: Headers;
173
- status: number;
174
- };
175
- /**
176
- * Upload a new data file.
177
- *
178
- * @param body an object with the body content
179
- * @throws UploadDataFileHttpError
180
- */
181
- declare const uploadDataFile: (body: {
182
- /** IFormFile form multipart/form-data */
183
- File?: BodyInit;
184
- /** See PostDataFileRequest schema which defines request structure.
185
- * See model. */
186
- Json?: {
187
- /** If this file should be bound to the lifecycle of a specific app, this is the ID of this app. */
188
- appId?: string;
189
- /** If present, this is the DataFiles connection that the upload should occur in the context of. If absent,
190
- * the default is that the upload will occur in the context of the MyDataFiles connection. If the DataFiles
191
- * connection is different from the one specified when the file was last POSTed or PUT, this will result in
192
- * a logical move of this file into the new space. */
193
- connectionId?: string;
194
- /** Name that will be given to the uploaded file. It should be noted that the '/' character
195
- * in a data file name indicates a 'path' separator in a logical folder hierarchy for the name. Names that
196
- * contain '/'s should be used with the assumption that a logical 'folder hierarchy' is being defined for the
197
- * full pathname of that file. '/' is a significant character in the data file name, and may impact the
198
- * behavior of future APIs which take this folder hierarchy into account. */
199
- name: string;
200
- /** If a SourceId is specified, this is the ID of the existing data file whose content should be copied into
201
- * the specified data file. That is, instead of the file content being specified in the Data element,
202
- * it is effectively copied from an existing, previously uploaded file. */
203
- sourceId?: string;
204
- /** If a TempContentFileId is specified, this is the ID of a previously uploaded temporary content file whose
205
- * content should be copied into the specified data file. That is, instead of the file content being specified
206
- * in the Data element, it is effectively copied from an existing, previously uploaded file. The expectation
207
- * is that this file was previously uploaded to the temporary content service, and the ID specified here is
208
- * the one returned from the temp content upload request. */
209
- tempContentFileId?: string;
210
- };
211
- }, options?: ApiCallOptions) => Promise<UploadDataFileHttpResponse>;
212
- type UploadDataFileHttpResponse = {
213
- data: DataFileUploadResponse;
214
- headers: Headers;
215
- status: number;
216
- };
217
- type UploadDataFileHttpError = {
218
- data: ErrorResponse;
219
- headers: Headers;
220
- status: number;
221
- };
222
- /**
223
- * This is to allow for a separate admin type of operation that is more global in terms of access in cases
224
- * where admin users may not explicitly have been granted full access to a given space within the declared
225
- * space-level permissions. If the space ID is set to null, then the data file will end up residing in the
226
- * personal space of the user who is the owner of the file.
227
- *
228
- * @param body an object with the body content
229
- * @throws MoveDataFilesHttpError
230
- */
231
- declare const moveDataFiles: (body: DataFileBatchChangeSpaceRequest, options?: ApiCallOptions) => Promise<MoveDataFilesHttpResponse>;
232
- type MoveDataFilesHttpResponse = {
233
- data: MultiStatusResponse;
234
- headers: Headers;
235
- status: number;
236
- };
237
- type MoveDataFilesHttpError = {
238
- data: ErrorResponse;
239
- headers: Headers;
240
- status: number;
241
- };
242
- /**
243
- * Delete the specified set of data files as a single batch.
244
- *
245
- * @param body an object with the body content
246
- * @throws DeleteDataFilesHttpError
247
- */
248
- declare const deleteDataFiles: (body: DataFileBatchDeleteRequest, options?: ApiCallOptions) => Promise<DeleteDataFilesHttpResponse>;
249
- type DeleteDataFilesHttpResponse = {
250
- data: MultiStatusResponse;
251
- headers: Headers;
252
- status: number;
253
- };
254
- type DeleteDataFilesHttpError = {
255
- data: ErrorResponse;
256
- headers: Headers;
257
- status: number;
258
- };
259
- /**
260
- * The non-filtered list contains a set of hardcoded connections, along with one connection per team space that
261
- * the given user has access to.
262
- *
263
- * @param query an object with query parameters
264
- * @throws GetDataFilesConnectionsHttpError
265
- */
266
- declare const getDataFilesConnections: (query: {
267
- /** If present, get connections with connection strings that are scoped to the given app ID. */
268
- appId?: string;
269
- /** If present, the maximum number of data file connection records to return. */
270
- limit?: number;
271
- /** If present, only return connections with the given name. */
272
- name?: string;
273
- /** If present, the cursor that starts the page of data that is returned. */
274
- page?: string;
275
- /** If true, only return the connections that access data in a personal space. Default is false. */
276
- personal?: boolean;
277
- /** The name of the field used to sort the result. By default, the sort is ascending. Putting a '+' prefix on
278
- * the sort field name explicitly indicates ascending sort order. A '-' prefix indicates a descending sort order. */
279
- sort?: GetConnectionsSortField;
280
- /** If present, only return the connection that accesses data files in the specified space. */
281
- spaceId?: string;
282
- }, options?: ApiCallOptions) => Promise<GetDataFilesConnectionsHttpResponse>;
283
- type GetDataFilesConnectionsHttpResponse = {
284
- data: GetConnectionsResponse;
285
- headers: Headers;
286
- status: number;
287
- prev?: (options?: ApiCallOptions) => Promise<GetDataFilesConnectionsHttpResponse>;
288
- next?: (options?: ApiCallOptions) => Promise<GetDataFilesConnectionsHttpResponse>;
289
- };
290
- type GetDataFilesConnectionsHttpError = {
291
- data: ErrorResponse;
292
- headers: Headers;
293
- status: number;
294
- };
295
- /**
296
- * Get the built-in connection used by the engine to load/write data files given a connection ID.
297
- *
298
- * @param id The ID of the connection.
299
- * @throws GetDataFileConnectionHttpError
300
- */
301
- declare const getDataFileConnection: (id: string, options?: ApiCallOptions) => Promise<GetDataFileConnectionHttpResponse>;
302
- type GetDataFileConnectionHttpResponse = {
303
- data: ConnectionsResponse;
304
- headers: Headers;
305
- status: number;
306
- };
307
- type GetDataFileConnectionHttpError = {
308
- data: ErrorResponse;
309
- headers: Headers;
310
- status: number;
311
- };
312
- /**
313
- * Get quota information for the calling user.
314
- *
315
- * @throws GetDataFilesQuotasHttpError
316
- */
317
- declare const getDataFilesQuotas: (options?: ApiCallOptions) => Promise<GetDataFilesQuotasHttpResponse>;
318
- type GetDataFilesQuotasHttpResponse = {
319
- data: QuotaResponse;
320
- headers: Headers;
321
- status: number;
322
- };
323
- type GetDataFilesQuotasHttpError = {
324
- data: ErrorResponse;
325
- headers: Headers;
326
- status: number;
327
- };
328
- /**
329
- * Delete the specified data file.
330
- *
331
- * @param id The ID of the data file to delete.
332
- * @throws DeleteDataFileHttpError
333
- */
334
- declare const deleteDataFile: (id: string, options?: ApiCallOptions) => Promise<DeleteDataFileHttpResponse>;
335
- type DeleteDataFileHttpResponse = {
336
- data: void;
337
- headers: Headers;
338
- status: number;
339
- };
340
- type DeleteDataFileHttpError = {
341
- data: ErrorResponse;
342
- headers: Headers;
343
- status: number;
344
- };
345
- /**
346
- * Get descriptive info for the specified data file.
347
- *
348
- * @param id The ID of the data file.
349
- * @throws GetDataFileHttpError
350
- */
351
- declare const getDataFile: (id: string, options?: ApiCallOptions) => Promise<GetDataFileHttpResponse>;
352
- type GetDataFileHttpResponse = {
353
- data: DataFileUploadResponse;
354
- headers: Headers;
355
- status: number;
356
- };
357
- type GetDataFileHttpError = {
358
- data: ErrorResponse;
359
- headers: Headers;
360
- status: number;
361
- };
362
- /**
363
- * Re-upload an existing data file.
364
- *
365
- * @param id The ID of the data file to update.
366
- * @param body an object with the body content
367
- * @throws ReuploadDataFileHttpError
368
- */
369
- declare const reuploadDataFile: (id: string, body: {
370
- /** IFormFile form multipart/form-data */
371
- File?: BodyInit;
372
- /** See PutDataFileRequest schema which defines request structure.
373
- * See model. */
374
- Json?: {
375
- /** If this file should be bound to the lifecycle of a specific app, this is the ID of this app. */
376
- appId?: string;
377
- /** If present, this is the DataFiles connection that the upload should occur in the context of. If absent,
378
- * the default is that the upload will occur in the context of the MyDataFiles connection. If the DataFiles
379
- * connection is different from the one specified when the file was last POSTed or PUT, this will result in
380
- * a logical move of this file into the new space. */
381
- connectionId?: string;
382
- /** Name that will be given to the uploaded file. If this name is different than the name used when the file
383
- * was last POSTed or PUT, this will result in a rename of the file. It should be noted that the '/' character
384
- * in a data file name indicates a 'path' separator in a logical folder hierarchy for the name. Names that
385
- * contain '/'s should be used with the assumption that a logical 'folder hierarchy' is being defined for the
386
- * full pathname of that file. '/' is a significant character in the data file name, and may impact the
387
- * behavior of future APIs that take this folder hierarchy into account. */
388
- name?: string;
389
- /** If a SourceId is specified, this is the ID of the existing data file whose content should be copied into
390
- * the specified data file. That is, instead of the file content being specified in the Data element,
391
- * it is effectively copied from an existing, previously uploaded file. */
392
- sourceId?: string;
393
- /** If a TempContentFileId is specified, this is the ID of a previously uploaded temporary content file whose
394
- * content should be copied into the specified data file. That is, instead of the file content being specified
395
- * in the Data element, it is effectively copied from an existing, previously uploaded file. The expectation
396
- * is that this file was previously uploaded to the temporary content service, and the ID specified here is
397
- * the one returned from the temp content upload request. */
398
- tempContentFileId?: string;
399
- };
400
- }, options?: ApiCallOptions) => Promise<ReuploadDataFileHttpResponse>;
401
- type ReuploadDataFileHttpResponse = {
402
- data: DataFileUploadResponse;
403
- headers: Headers;
404
- status: number;
405
- };
406
- type ReuploadDataFileHttpError = {
407
- data: ErrorResponse;
408
- headers: Headers;
409
- status: number;
410
- };
411
- /**
412
- * This is primarily an admin type of operation. In general, the owner of a data file is implicitly set as
413
- * part of a data file upload. For data files that reside in a personal space, changing the owner has the
414
- * effect of moving the data file to the new owner's personal space.
415
- *
416
- * @param id The ID of the data file whose owner will be updated.
417
- * @param body an object with the body content
418
- * @throws ChangeDataFileOwnerHttpError
419
- */
420
- declare const changeDataFileOwner: (id: string, body: ChangeDataFileOwnerRequest, options?: ApiCallOptions) => Promise<ChangeDataFileOwnerHttpResponse>;
421
- type ChangeDataFileOwnerHttpResponse = {
422
- data: void;
423
- headers: Headers;
424
- status: number;
425
- };
426
- type ChangeDataFileOwnerHttpError = {
427
- data: ErrorResponse;
428
- headers: Headers;
429
- status: number;
430
- };
431
- /**
432
- * This is to allow for a separate admin type of operation that is more global in terms of access in cases
433
- * where admin users may not explicitly have been granted full access to a given space within the declared
434
- * space-level permissions. If the space ID is set to null, then the datafile will end up residing in the
435
- * personal space of the user who is the owner of the file.
436
- *
437
- * @param id The ID of the data file whose space will be updated.
438
- * @param body an object with the body content
439
- * @throws MoveDataFileHttpError
440
- */
441
- declare const moveDataFile: (id: string, body: ChangeDataFileSpaceRequest, options?: ApiCallOptions) => Promise<MoveDataFileHttpResponse>;
442
- type MoveDataFileHttpResponse = {
443
- data: void;
444
- headers: Headers;
445
- status: number;
446
- };
447
- type MoveDataFileHttpError = {
448
- data: ErrorResponse;
449
- headers: Headers;
450
- status: number;
451
- };
452
- /**
453
- * Clears the cache for data-files api requests.
454
- */
455
- declare function clearCache(): void;
456
- interface DataFilesAPI {
457
- /**
458
- * Get descriptive info for the specified data files.
459
- *
460
- * @param query an object with query parameters
461
- * @throws GetDataFilesHttpError
462
- */
463
- getDataFiles: typeof getDataFiles;
464
- /**
465
- * Upload a new data file.
466
- *
467
- * @param body an object with the body content
468
- * @throws UploadDataFileHttpError
469
- */
470
- uploadDataFile: typeof uploadDataFile;
471
- /**
472
- * This is to allow for a separate admin type of operation that is more global in terms of access in cases
473
- * where admin users may not explicitly have been granted full access to a given space within the declared
474
- * space-level permissions. If the space ID is set to null, then the data file will end up residing in the
475
- * personal space of the user who is the owner of the file.
476
- *
477
- * @param body an object with the body content
478
- * @throws MoveDataFilesHttpError
479
- */
480
- moveDataFiles: typeof moveDataFiles;
481
- /**
482
- * Delete the specified set of data files as a single batch.
483
- *
484
- * @param body an object with the body content
485
- * @throws DeleteDataFilesHttpError
486
- */
487
- deleteDataFiles: typeof deleteDataFiles;
488
- /**
489
- * The non-filtered list contains a set of hardcoded connections, along with one connection per team space that
490
- * the given user has access to.
491
- *
492
- * @param query an object with query parameters
493
- * @throws GetDataFilesConnectionsHttpError
494
- */
495
- getDataFilesConnections: typeof getDataFilesConnections;
496
- /**
497
- * Get the built-in connection used by the engine to load/write data files given a connection ID.
498
- *
499
- * @param id The ID of the connection.
500
- * @throws GetDataFileConnectionHttpError
501
- */
502
- getDataFileConnection: typeof getDataFileConnection;
503
- /**
504
- * Get quota information for the calling user.
505
- *
506
- * @throws GetDataFilesQuotasHttpError
507
- */
508
- getDataFilesQuotas: typeof getDataFilesQuotas;
509
- /**
510
- * Delete the specified data file.
511
- *
512
- * @param id The ID of the data file to delete.
513
- * @throws DeleteDataFileHttpError
514
- */
515
- deleteDataFile: typeof deleteDataFile;
516
- /**
517
- * Get descriptive info for the specified data file.
518
- *
519
- * @param id The ID of the data file.
520
- * @throws GetDataFileHttpError
521
- */
522
- getDataFile: typeof getDataFile;
523
- /**
524
- * Re-upload an existing data file.
525
- *
526
- * @param id The ID of the data file to update.
527
- * @param body an object with the body content
528
- * @throws ReuploadDataFileHttpError
529
- */
530
- reuploadDataFile: typeof reuploadDataFile;
531
- /**
532
- * This is primarily an admin type of operation. In general, the owner of a data file is implicitly set as
533
- * part of a data file upload. For data files that reside in a personal space, changing the owner has the
534
- * effect of moving the data file to the new owner's personal space.
535
- *
536
- * @param id The ID of the data file whose owner will be updated.
537
- * @param body an object with the body content
538
- * @throws ChangeDataFileOwnerHttpError
539
- */
540
- changeDataFileOwner: typeof changeDataFileOwner;
541
- /**
542
- * This is to allow for a separate admin type of operation that is more global in terms of access in cases
543
- * where admin users may not explicitly have been granted full access to a given space within the declared
544
- * space-level permissions. If the space ID is set to null, then the datafile will end up residing in the
545
- * personal space of the user who is the owner of the file.
546
- *
547
- * @param id The ID of the data file whose space will be updated.
548
- * @param body an object with the body content
549
- * @throws MoveDataFileHttpError
550
- */
551
- moveDataFile: typeof moveDataFile;
552
- /**
553
- * Clears the cache for data-files api requests.
554
- */
555
- clearCache: typeof clearCache;
556
- }
557
- /**
558
- * Functions for the data-files api
559
- */
560
- declare const dataFilesExport: DataFilesAPI;
561
-
562
- export { type BatchChangeSpaceItem, type BatchDeleteItem, type ChangeDataFileOwnerHttpError, type ChangeDataFileOwnerHttpResponse, type ChangeDataFileOwnerRequest, type ChangeDataFileSpaceRequest, type ConnectionsResponse, type DataFileBatchChangeSpaceRequest, type DataFileBatchDeleteRequest, type DataFileUploadResponse, type DataFilesAPI, type DeleteDataFileHttpError, type DeleteDataFileHttpResponse, type DeleteDataFilesHttpError, type DeleteDataFilesHttpResponse, type ErrorResponse, type ErrorResponseItem, type GetConnectionsResponse, type GetConnectionsSortField, type GetDataFileConnectionHttpError, type GetDataFileConnectionHttpResponse, type GetDataFileHttpError, type GetDataFileHttpResponse, type GetDataFileInfosResponse, type GetDataFileInfosSortField, type GetDataFilesConnectionsHttpError, type GetDataFilesConnectionsHttpResponse, type GetDataFilesHttpError, type GetDataFilesHttpResponse, type GetDataFilesQuotasHttpError, type GetDataFilesQuotasHttpResponse, type LinkResponse, type LinksResponse, type MoveDataFileHttpError, type MoveDataFileHttpResponse, type MoveDataFilesHttpError, type MoveDataFilesHttpResponse, type MultiStatusResponse, type MultiStatusResponseItem, type QuotaResponse, type ReuploadDataFileHttpError, type ReuploadDataFileHttpResponse, type UploadDataFileHttpError, type UploadDataFileHttpResponse, changeDataFileOwner, clearCache, dataFilesExport as default, deleteDataFile, deleteDataFiles, getDataFile, getDataFileConnection, getDataFiles, getDataFilesConnections, getDataFilesQuotas, moveDataFile, moveDataFiles, reuploadDataFile, uploadDataFile };
package/data-files.mjs DELETED
@@ -1,123 +0,0 @@
1
- import {
2
- clearApiCache,
3
- invokeFetch
4
- } from "./chunks/3YV6X7S6.mjs";
5
- import "./chunks/EHAANYDL.mjs";
6
- import "./chunks/VSY5YIQY.mjs";
7
-
8
- // src/public/rest/data-files.ts
9
- var getDataFiles = async (query, options) => invokeFetch("data-files", {
10
- method: "get",
11
- pathTemplate: "/api/v1/data-files",
12
- query,
13
- options
14
- });
15
- var uploadDataFile = async (body, options) => invokeFetch("data-files", {
16
- method: "post",
17
- pathTemplate: "/api/v1/data-files",
18
- body,
19
- contentType: "multipart/form-data",
20
- options
21
- });
22
- var moveDataFiles = async (body, options) => invokeFetch("data-files", {
23
- method: "post",
24
- pathTemplate: "/api/v1/data-files/actions/change-space",
25
- body,
26
- contentType: "application/json",
27
- options
28
- });
29
- var deleteDataFiles = async (body, options) => invokeFetch("data-files", {
30
- method: "post",
31
- pathTemplate: "/api/v1/data-files/actions/delete",
32
- body,
33
- contentType: "application/json",
34
- options
35
- });
36
- var getDataFilesConnections = async (query, options) => invokeFetch("data-files", {
37
- method: "get",
38
- pathTemplate: "/api/v1/data-files/connections",
39
- query,
40
- options
41
- });
42
- var getDataFileConnection = async (id, options) => invokeFetch("data-files", {
43
- method: "get",
44
- pathTemplate: "/api/v1/data-files/connections/{id}",
45
- pathVariables: { id },
46
- options
47
- });
48
- var getDataFilesQuotas = async (options) => invokeFetch("data-files", {
49
- method: "get",
50
- pathTemplate: "/api/v1/data-files/quotas",
51
- options
52
- });
53
- var deleteDataFile = async (id, options) => invokeFetch("data-files", {
54
- method: "delete",
55
- pathTemplate: "/api/v1/data-files/{id}",
56
- pathVariables: { id },
57
- options
58
- });
59
- var getDataFile = async (id, options) => invokeFetch("data-files", {
60
- method: "get",
61
- pathTemplate: "/api/v1/data-files/{id}",
62
- pathVariables: { id },
63
- options
64
- });
65
- var reuploadDataFile = async (id, body, options) => invokeFetch("data-files", {
66
- method: "put",
67
- pathTemplate: "/api/v1/data-files/{id}",
68
- pathVariables: { id },
69
- body,
70
- contentType: "multipart/form-data",
71
- options
72
- });
73
- var changeDataFileOwner = async (id, body, options) => invokeFetch("data-files", {
74
- method: "post",
75
- pathTemplate: "/api/v1/data-files/{id}/actions/change-owner",
76
- pathVariables: { id },
77
- body,
78
- contentType: "application/json",
79
- options
80
- });
81
- var moveDataFile = async (id, body, options) => invokeFetch("data-files", {
82
- method: "post",
83
- pathTemplate: "/api/v1/data-files/{id}/actions/change-space",
84
- pathVariables: { id },
85
- body,
86
- contentType: "application/json",
87
- options
88
- });
89
- function clearCache() {
90
- return clearApiCache("data-files");
91
- }
92
- var dataFilesExport = {
93
- getDataFiles,
94
- uploadDataFile,
95
- moveDataFiles,
96
- deleteDataFiles,
97
- getDataFilesConnections,
98
- getDataFileConnection,
99
- getDataFilesQuotas,
100
- deleteDataFile,
101
- getDataFile,
102
- reuploadDataFile,
103
- changeDataFileOwner,
104
- moveDataFile,
105
- clearCache
106
- };
107
- var data_files_default = dataFilesExport;
108
- export {
109
- changeDataFileOwner,
110
- clearCache,
111
- data_files_default as default,
112
- deleteDataFile,
113
- deleteDataFiles,
114
- getDataFile,
115
- getDataFileConnection,
116
- getDataFiles,
117
- getDataFilesConnections,
118
- getDataFilesQuotas,
119
- moveDataFile,
120
- moveDataFiles,
121
- reuploadDataFile,
122
- uploadDataFile
123
- };