@qlik/api 0.0.16 → 0.1.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 (132) hide show
  1. package/README.md +1 -1
  2. package/api-keys.js +25 -25
  3. package/apps.js +97 -97
  4. package/audits.js +23 -23
  5. package/auth.js +14 -14
  6. package/automations.js +47 -47
  7. package/brands.js +35 -35
  8. package/chunks/4HB3TAEO.js +4 -4
  9. package/chunks/{EHAANYDL.mjs → 4V5AAWUI.js} +3 -3
  10. package/chunks/{O4EAKEIN.mjs → D62LI5YU.js} +1 -1
  11. package/chunks/{6WX5AGKQ.mjs → L2BJNKLV.js} +2 -2
  12. package/chunks/{3YV6X7S6.mjs → LHCJKIEO.js} +1 -1
  13. package/chunks/OPRGGO4C.js +8 -8
  14. package/chunks/{HHOVS7QC.mjs → RNLZBOJU.js} +3 -3
  15. package/chunks/{BYD63JCG.mjs → SIU6HO6B.js} +5 -3
  16. package/chunks/{6AD3HYSF.mjs → TFSRDRRS.js} +1 -1
  17. package/chunks/{HOCTJESP.mjs → VK2CODYY.js} +2 -2
  18. package/chunks/{UKVTBYP6.mjs → XOVMZWDC.js} +2 -2
  19. package/collections.js +33 -33
  20. package/csp-origins.js +23 -23
  21. package/data-assets.js +21 -21
  22. package/data-connections.js +29 -29
  23. package/data-credentials.js +19 -19
  24. package/data-files.js +35 -35
  25. package/docs/authentication.md +5 -5
  26. package/docs/examples/fetch-spaces.md +1 -15
  27. package/docs/examples/show-sheet-list.md +1 -1
  28. package/docs/features.md +1 -1
  29. package/extensions.js +25 -25
  30. package/glossaries.js +59 -59
  31. package/groups.d.ts +0 -3
  32. package/groups.js +27 -27
  33. package/identity-providers.js +27 -27
  34. package/index.js +53 -53
  35. package/items.js +27 -27
  36. package/licenses.js +29 -29
  37. package/package.json +36 -232
  38. package/qix.d.ts +1 -1
  39. package/qix.js +10 -10
  40. package/quotas.js +15 -15
  41. package/reload-tasks.js +21 -21
  42. package/reloads.js +19 -19
  43. package/roles.js +15 -15
  44. package/spaces.js +35 -35
  45. package/temp-contents.js +17 -17
  46. package/tenants.js +23 -23
  47. package/themes.js +25 -25
  48. package/transports.js +23 -23
  49. package/users.d.ts +1 -3
  50. package/users.js +31 -31
  51. package/web-integrations.js +21 -21
  52. package/web-notifications.js +23 -23
  53. package/webhooks.js +31 -31
  54. package/api-keys.d.mts +0 -336
  55. package/api-keys.mjs +0 -80
  56. package/apps.d.mts +0 -2431
  57. package/apps.mjs +0 -398
  58. package/audits.d.mts +0 -286
  59. package/audits.mjs +0 -64
  60. package/auth-types-nnUcWhuU.d.mts +0 -98
  61. package/auth.d.mts +0 -26
  62. package/auth.mjs +0 -14
  63. package/automations.d.mts +0 -682
  64. package/automations.mjs +0 -173
  65. package/brands.d.mts +0 -670
  66. package/brands.mjs +0 -123
  67. package/chunks/2YWCEGTS.js +0 -21
  68. package/chunks/34ZKUFEA.js +0 -41
  69. package/chunks/4WHZ4EIW.js +0 -57
  70. package/chunks/B4VPD3ZT.js +0 -574
  71. package/chunks/BM4OSDRZ.js +0 -17
  72. package/chunks/DCXUEDOW.mjs +0 -67
  73. package/chunks/MTAQE4WC.js +0 -10411
  74. package/chunks/PLOSYUG2.js +0 -25
  75. package/chunks/URIW2U5M.js +0 -17
  76. package/chunks/VSY5YIQY.mjs +0 -11
  77. package/chunks/WOYJLK4Y.js +0 -1623
  78. package/collections.d.mts +0 -581
  79. package/collections.mjs +0 -114
  80. package/csp-origins.d.mts +0 -273
  81. package/csp-origins.mjs +0 -69
  82. package/data-assets.d.mts +0 -205
  83. package/data-assets.mjs +0 -66
  84. package/data-connections.d.mts +0 -594
  85. package/data-connections.mjs +0 -103
  86. package/data-credentials.d.mts +0 -204
  87. package/data-credentials.mjs +0 -59
  88. package/data-files.d.mts +0 -562
  89. package/data-files.mjs +0 -123
  90. package/extensions.d.mts +0 -293
  91. package/extensions.mjs +0 -77
  92. package/global.types-5iFvFJvX.d.mts +0 -115
  93. package/glossaries.d.mts +0 -1173
  94. package/glossaries.mjs +0 -237
  95. package/groups.d.mts +0 -434
  96. package/groups.mjs +0 -88
  97. package/identity-providers.d.mts +0 -550
  98. package/identity-providers.mjs +0 -83
  99. package/index.d.mts +0 -142
  100. package/index.mjs +0 -716
  101. package/items.d.mts +0 -535
  102. package/items.mjs +0 -87
  103. package/licenses.d.mts +0 -459
  104. package/licenses.mjs +0 -92
  105. package/qix.d.mts +0 -11629
  106. package/qix.mjs +0 -10
  107. package/quotas.d.mts +0 -112
  108. package/quotas.mjs +0 -32
  109. package/reload-tasks.d.mts +0 -227
  110. package/reload-tasks.mjs +0 -62
  111. package/reloads.d.mts +0 -207
  112. package/reloads.mjs +0 -46
  113. package/roles.d.mts +0 -175
  114. package/roles.mjs +0 -31
  115. package/spaces.d.mts +0 -562
  116. package/spaces.mjs +0 -124
  117. package/temp-contents.d.mts +0 -167
  118. package/temp-contents.mjs +0 -41
  119. package/tenants.d.mts +0 -300
  120. package/tenants.mjs +0 -73
  121. package/themes.d.mts +0 -268
  122. package/themes.mjs +0 -77
  123. package/transports.d.mts +0 -319
  124. package/transports.mjs +0 -65
  125. package/users.d.mts +0 -631
  126. package/users.mjs +0 -104
  127. package/web-integrations.d.mts +0 -274
  128. package/web-integrations.mjs +0 -62
  129. package/web-notifications.d.mts +0 -250
  130. package/web-notifications.mjs +0 -69
  131. package/webhooks.d.mts +0 -445
  132. package/webhooks.mjs +0 -104
@@ -1,594 +0,0 @@
1
- import { A as ApiCallOptions } from './global.types-5iFvFJvX.mjs';
2
- import './auth-types-nnUcWhuU.mjs';
3
-
4
- type ActionDeleteRequest = {
5
- connections: {
6
- /** ID of connection */
7
- id: string;
8
- /** Connection name */
9
- name?: string;
10
- }[];
11
- };
12
- type ActionDuplicateRequest = {
13
- /** ID of the source connection being duplicated */
14
- id: string;
15
- /** Optional name for the duplicated connection, must be unique in the target scope. If not specified, a name will be automatically generated */
16
- name?: string;
17
- /** Optional credential password, specify to override credential embedded (or associated) with the source connection */
18
- qPassword?: string;
19
- /** Optional credential username, specify to override credential embedded (or associated) with the source connection */
20
- qUsername?: string;
21
- /** Optional target space ID for the duplicated connection. If not specified, the duplicated connection will be in the same space as the source connection */
22
- spaceId?: string;
23
- };
24
- type ActionUpdateRequest = {
25
- connections: {
26
- /** Connection ID */
27
- id: string;
28
- /** Connection name */
29
- name?: string;
30
- /** User ID to which the connection will be updated. If not present, the connection's owner wont be changed */
31
- ownerId?: string;
32
- /** Space ID to which the connection will be updated. If not present, the connection's space wont be changed. If it is empty string, then the connection will be moved to the personal space of the user identified by ownerId (If ownerId is undefined, then the connection will be in oroginal owner's personal space) */
33
- spaceId?: string;
34
- /** Space type. Required when spaceId is specified */
35
- spaceType?: "personal" | "shared" | "managed" | "data";
36
- }[];
37
- };
38
- type BulkResponse = {
39
- data?: {
40
- error?: Error;
41
- /** ID of the resource */
42
- id: string;
43
- /** Status code of operation on resource identified by ID */
44
- status: number;
45
- }[];
46
- };
47
- /**
48
- * Schema used to create a connection with given connection string (i.e. qConnectStatement) along with other metadata
49
- */
50
- type ConnectionCreate = {
51
- /** ID of the datasource associated with this connection */
52
- datasourceID: string;
53
- /** App ID */
54
- owner?: string;
55
- /** 0 or 1 value indicating whether the data connector is 64-bit (0) or 32-bit (1). Defaults to 0 if not specified. */
56
- qArchitecture?: 0 | 1;
57
- /** Connection string for the data connection */
58
- qConnectStatement: string;
59
- /** String that contains connection specific secret (or password) that requires encryption before persist to database. This field is connection level secret */
60
- qConnectionSecret?: string;
61
- /** ID of the credential associated with the connection */
62
- qCredentialsID?: string;
63
- /** Name of the credential associated with the connection */
64
- qCredentialsName?: string;
65
- /** Unique identifier (UUID) for the data connection as specified by the Sense engine. A UUID will be generated automatically if this field is not specified or empty */
66
- qEngineObjectID?: string;
67
- /** Unique identifier (UUID) for the data connection. A UUID will be generated automatically if qID is not specified or empty */
68
- qID?: string;
69
- /** Indicates the type of user associated with the data connection. */
70
- qLogOn?: "0" | "1" | "LOG_ON_SERVICE_USER" | "LOG_ON_CURRENT_USER";
71
- /** Descriptive name of the data connection */
72
- qName: string;
73
- /** Any logon password associated with the data connection (connector encoded) */
74
- qPassword?: string;
75
- /** Indicates whether or not to create a credential-less connection */
76
- qSeparateCredentials?: boolean;
77
- /** Type of connection - indicates connection provider type */
78
- qType: string;
79
- /** Any logon username associated with the data connection */
80
- qUsername?: string;
81
- /** QRI string of the connection. The string will be persisted to mongo when the request is originated from trusted client (i.e. dcaas) to avoid invalid QRi string. */
82
- qriInRequest?: string;
83
- /** ID of the space to which the connection belongs */
84
- space?: string;
85
- /** List of tags attached to the connection (allow max 32 tags) */
86
- tags?: string[];
87
- };
88
- /**
89
- * Essential fields of a connection
90
- */
91
- type ConnectionCreateResponse = {
92
- /** Datetime when the connection was created */
93
- created?: string;
94
- links?: Link;
95
- /** Array of string (i.e. update, delete, read) indicating the user's privileges on the associated connection */
96
- privileges: Privilege[];
97
- /** 0 or 1 value indicating whether the data connector is 64-bit (0) or 32-bit (1). Defaults to 0 if not specified. */
98
- qArchitecture: 0 | 1;
99
- /** Connection string for the data connection */
100
- qConnectStatement: string;
101
- /** ID of the credential associated with the connection */
102
- qCredentialsID?: string;
103
- /** Name of the credential associated with the connection */
104
- qCredentialsName?: string;
105
- /** Unique identifier (UUID) for the data connection, must be same as qID */
106
- qEngineObjectID: string;
107
- /** Unique identifier (UUID) for the data connection, must be same as qEngineObjectID */
108
- qID: string;
109
- /** Indicates the type of user associated with the data connection. */
110
- qLogOn: "0" | "1" | "LOG_ON_SERVICE_USER" | "LOG_ON_CURRENT_USER";
111
- /** Descriptive name of the data connection */
112
- qName: string;
113
- /** Reference key of credential in redis */
114
- qReferenceKey?: string;
115
- /** Indicates whether or not this is a credential-less connection */
116
- qSeparateCredentials: boolean;
117
- /** Type of connection - indicates connection provider type */
118
- qType: string;
119
- /** ID of the space to which the connection belongs */
120
- space?: string;
121
- /** Datetime when the connection was last updated */
122
- updated?: string;
123
- /** User ID of the connection's creator */
124
- user?: string;
125
- };
126
- /**
127
- * Essential fields of a connection
128
- */
129
- type ConnectionGet = {
130
- /** List of connection parsed from connection string (only available when query parseConnection=true is set) */
131
- connectionProperties?: unknown;
132
- /** Datetime when the connection was created */
133
- created: string;
134
- /** Data source ID */
135
- datasourceID?: string;
136
- links?: Link;
137
- /** Array of string (i.e. update, delete, read) indicating the user's privileges on the associated connection */
138
- privileges: Privilege[];
139
- /** 0 or 1 value indicating whether the data connector is 64-bit (0) or 32-bit (1). Defaults to 0 if not specified. */
140
- qArchitecture: 0 | 1;
141
- /** Connection string for the data connection */
142
- qConnectStatement: string;
143
- /** String that contains connection specific secret (or password). This field will not be included in response of GET /data-connections, will only be included in the response of GET /data-connections/{qID} */
144
- qConnectionSecret?: string;
145
- /** ID of the credential associated with the connection */
146
- qCredentialsID?: string;
147
- /** Unique identifier (UUID) for the data connection, must be same as qID */
148
- qEngineObjectID: string;
149
- /** Unique identifier (UUID) for the data connection, must be same as qEngineObjectID */
150
- qID: string;
151
- /** Indicates the type of user associated with the data connection */
152
- qLogOn: 0 | 1;
153
- /** Descriptive name of the data connection */
154
- qName: string;
155
- /** Indicates whether or not this is a credential-less connection */
156
- qSeparateCredentials: boolean;
157
- /** Type of connection, i.e. provider type of underlying connector */
158
- qType: string;
159
- /** Encrypted base Qri string */
160
- qri?: string;
161
- /** ID of the space to which the connection belongs */
162
- space?: string;
163
- /** List of tags attached to the connection */
164
- tags?: string[];
165
- /** Tenant ID of the connection's creator */
166
- tenant: string;
167
- /** Datetime when the connection was last updated */
168
- updated: string;
169
- /** User ID of the connection's creator */
170
- user: string;
171
- };
172
- type ConnectionUpdate = {
173
- /** ID of the datasource associated with this connection */
174
- datasourceID?: string;
175
- /** 0 or 1 value indicating whether the data connector is 64-bit (0) or 32-bit (1). Defaults to 0 if not specified. */
176
- qArchitecture?: 0 | 1;
177
- /** Connection string for the data connection */
178
- qConnectStatement: string;
179
- /** String that contains connection level secret (or password). If this field presents in request, then existing connection secret will be updated to its value. If is an empty string, then eixsting connection secret will be cleared. If this field is missing, existing secret will not be updated. */
180
- qConnectionSecret?: string;
181
- /** ID of the credential associated with the connection */
182
- qCredentialsID?: string;
183
- /** Name of the credential associated with the connection */
184
- qCredentialsName?: string;
185
- /** Unique identifier for the data connection as specified by the Sense engine */
186
- qEngineObjectID: string;
187
- /** Unique identifier for the data connection */
188
- qID: string;
189
- /** Indicates the type of user associated with the data connection. */
190
- qLogOn?: "0" | "1" | "LOG_ON_SERVICE_USER" | "LOG_ON_CURRENT_USER";
191
- /** Descriptive name of the data connection */
192
- qName: string;
193
- /** Any logon password associated with the data connection */
194
- qPassword?: string;
195
- /** Indicates whether or not this is a credential-less connection */
196
- qSeparateCredentials?: boolean;
197
- /** Type of connection - indicates connection provider type */
198
- qType: string;
199
- /** Any logon username associated with the data connection */
200
- qUsername?: string;
201
- /** ID of the space to which the connection belongs */
202
- space?: string;
203
- };
204
- type Connections = {
205
- data?: ConnectionGet[];
206
- errors?: Errors;
207
- links?: TopLevelLink;
208
- meta?: Meta;
209
- };
210
- /**
211
- * Schema used to create a connection using a list of connection properties for given datasource
212
- */
213
- type DcaasConnectionCreate = {
214
- /** When set to true, only authentication URL will be returned (i.e. no connection will be created) if datasource supports OAuth, and other properties set in the request will ignored. This property will be ignored if the request is not OAuth or datasource doesn't support OAuth */
215
- authUrlOnly?: boolean;
216
- /** Connection properties required to create dataconnection for the given datasource, which is defined by the response of 'GET /v1/data-sources/:{datasourceId}/api-specs' */
217
- connectionProperties: unknown;
218
- /** ID of the datasource of the connection */
219
- datasourceID: string;
220
- /** Descriptive name of the data connection */
221
- qName: string;
222
- /** ID of the space in which the connection shall be created. Connection will be created in user's personal space if undefined */
223
- space?: string;
224
- /** List of tags attached to the connection (allow max 31 tags) */
225
- tags?: string[];
226
- };
227
- /**
228
- * Authentication URL response for OAuth datasources (when authUrlOnly is set to true in request)
229
- */
230
- type DcaasConnectionCreateAuthResponse = {
231
- /** Authentication URL used to generate authentication code for datasources supporting OAuth */
232
- authUrl: string;
233
- };
234
- type Error = {
235
- /** Unique internal error code */
236
- code?: string;
237
- /** More concrete details */
238
- detail?: string;
239
- /** HTTP status code */
240
- status?: number;
241
- /** A summary in english explaining what went wrong */
242
- title?: string;
243
- };
244
- type Errors = Error[];
245
- type Link = {
246
- /** Link to cirrent query */
247
- self: {
248
- /** URL pointing to the resource */
249
- href: string;
250
- };
251
- };
252
- type Meta = {
253
- /** Total count of resources being requested. */
254
- count?: number;
255
- };
256
- type PatchRequest = {
257
- patchData: {
258
- /** Operation type */
259
- op?: "add" | "replace" | "remove";
260
- /** Path to the target field to be patched */
261
- path?: string;
262
- /** The value used for the patch, only needed for 'add' or 'replace'. Value type could be either string or integer, should match with the type of the target field */
263
- value?: string;
264
- }[];
265
- };
266
- /**
267
- * Access type allowed on associated data connection
268
- */
269
- type Privilege = "list" | "update" | "delete" | "read" | "change_owner" | "change_space";
270
- type ResponseErrors = {
271
- errors?: Errors;
272
- };
273
- type TopLevelLink = {
274
- /** URL link to next page of requested resources (available to paged request only) */
275
- next?: {
276
- /** URL pointing to the next page of resources */
277
- href: string;
278
- };
279
- /** URL link to previous page of requested resources (available to paged request only) */
280
- prev?: {
281
- /** URL pointing to the previous page of resources */
282
- href: string;
283
- };
284
- /** Link to cirrent query */
285
- self: {
286
- /** URL pointing to the resource */
287
- href: string;
288
- };
289
- };
290
- /**
291
- * Gets a list of connections
292
- *
293
- * @param query an object with query parameters
294
- * @throws GetDataConnectionsHttpError
295
- */
296
- declare const getDataConnections: (query: {
297
- /** Sort results will be returned in case insensitive order if set to true (Only used along with sort query) */
298
- caseinsensitive?: boolean;
299
- /** Provides an alternate name to be used for data[] element in GET response. */
300
- dataName?: string;
301
- /** Returns extended list of properties (e.g. encrypted credential string) when set to true. */
302
- extended?: boolean;
303
- /** Filtering resources by properties (filterable properties only) using SCIM filter string. Note the filter string only applies to connections managed by data-connections service, i.e. filtering doesn't apply to DataFile connections. */
304
- filter?: string;
305
- /** Base Qri (encrypted) will be returned when the query is set to true, default is false */
306
- includeQris?: boolean;
307
- /** Number of resources to be returned (between 1 and 100) */
308
- limit?: number;
309
- /** ICU locale ID, used only when caseinsensitive is set to true, default to 'en' if undefined */
310
- locale?: string;
311
- /** Datafiles connections will not be returned if set to true */
312
- noDatafiles?: boolean;
313
- /** Filtering on connections, return connections owned by the caller if set to true (doesn't apply to datafiles connections) */
314
- ownedByMe?: boolean;
315
- /** Filtering on datafile connections by owner (i.e. app) ID. */
316
- owner?: string;
317
- /** Pagination sursor string, which is generated auotmatically in previous pagination query. */
318
- page?: string;
319
- /** Filtering on personal connections, ignored if spaceId is defined in same request */
320
- personal?: boolean;
321
- /** Name of field sort on for pagination, with prefix with + or - indicating ascending or descending order. When used for data-connections, sort field only applies to non-datafiles connections. Whatever sorting order is, datafiles connections will be returned after all regular connections being returned. */
322
- sort?: string;
323
- /** Filtering on connections by space ID */
324
- spaceId?: string;
325
- /** Filtering on userId. Requires admin role if specified userId doesn't match that is defined in JWT. */
326
- userId?: string;
327
- }, options?: ApiCallOptions) => Promise<GetDataConnectionsHttpResponse>;
328
- type GetDataConnectionsHttpResponse = {
329
- data: Connections;
330
- headers: Headers;
331
- status: number;
332
- prev?: (options?: ApiCallOptions) => Promise<GetDataConnectionsHttpResponse>;
333
- next?: (options?: ApiCallOptions) => Promise<GetDataConnectionsHttpResponse>;
334
- };
335
- type GetDataConnectionsHttpError = {
336
- data: ResponseErrors;
337
- headers: Headers;
338
- status: number;
339
- };
340
- /**
341
- * Creates a new connection. Depending on the fields defined in the request body, credentials embedded (or associated) in the connection can be updated or created.
342
- *
343
- * @param body an object with the body content
344
- * @throws CreateDataConnectionHttpError
345
- */
346
- declare const createDataConnection: (body: ConnectionCreate | DcaasConnectionCreate, options?: ApiCallOptions) => Promise<CreateDataConnectionHttpResponse>;
347
- type CreateDataConnectionHttpResponse = {
348
- data: ConnectionCreateResponse | DcaasConnectionCreateAuthResponse;
349
- headers: Headers;
350
- status: number;
351
- };
352
- type CreateDataConnectionHttpError = {
353
- data: ResponseErrors;
354
- headers: Headers;
355
- status: number;
356
- };
357
- /**
358
- * Delete multiple connections, only available to Admin
359
- *
360
- * @param body an object with the body content
361
- * @throws DeleteDataConnectionsHttpError
362
- */
363
- declare const deleteDataConnections: (body: ActionDeleteRequest, options?: ApiCallOptions) => Promise<DeleteDataConnectionsHttpResponse>;
364
- type DeleteDataConnectionsHttpResponse = {
365
- data: BulkResponse;
366
- headers: Headers;
367
- status: number;
368
- };
369
- type DeleteDataConnectionsHttpError = {
370
- data: ResponseErrors;
371
- headers: Headers;
372
- status: number;
373
- };
374
- /**
375
- * Duplicate a connection
376
- *
377
- * @param body an object with the body content
378
- * @throws DuplicateDataAConnectionHttpError
379
- */
380
- declare const duplicateDataAConnection: (body: ActionDuplicateRequest, options?: ApiCallOptions) => Promise<DuplicateDataAConnectionHttpResponse>;
381
- type DuplicateDataAConnectionHttpResponse = {
382
- data: ConnectionCreateResponse;
383
- headers: Headers;
384
- status: number;
385
- };
386
- type DuplicateDataAConnectionHttpError = {
387
- data: ResponseErrors;
388
- headers: Headers;
389
- status: number;
390
- };
391
- /**
392
- * Update multiple connections, only available to Admin
393
- *
394
- * @param body an object with the body content
395
- * @throws UpdateDataConnectionsHttpError
396
- */
397
- declare const updateDataConnections: (body: ActionUpdateRequest, options?: ApiCallOptions) => Promise<UpdateDataConnectionsHttpResponse>;
398
- type UpdateDataConnectionsHttpResponse = {
399
- data: BulkResponse;
400
- headers: Headers;
401
- status: number;
402
- };
403
- type UpdateDataConnectionsHttpError = {
404
- data: ResponseErrors;
405
- headers: Headers;
406
- status: number;
407
- };
408
- /**
409
- * Deletes the specified data connection by ID (or by name when type=connectionname is set in query)
410
- *
411
- * @param qID Connection ID
412
- * @param query an object with query parameters
413
- * @throws DeleteDataConnectionHttpError
414
- */
415
- declare const deleteDataConnection: (qID: string, query: {
416
- /** Filtering on connections by space ID */
417
- spaceId?: string;
418
- /** Connection / credential ID defined in path become connection / credential name when this query parameter is set */
419
- type?: "connectionname" | "credentialname";
420
- }, options?: ApiCallOptions) => Promise<DeleteDataConnectionHttpResponse>;
421
- type DeleteDataConnectionHttpResponse = {
422
- data: void;
423
- headers: Headers;
424
- status: number;
425
- };
426
- type DeleteDataConnectionHttpError = {
427
- data: ResponseErrors;
428
- headers: Headers;
429
- status: number;
430
- };
431
- /**
432
- * Retrieves a connection by connection ID, or by name when the query parameter "type" is set to "connectionname."
433
- *
434
- * @param qID Connection ID
435
- * @param query an object with query parameters
436
- * @throws GetDataConnectionHttpError
437
- */
438
- declare const getDataConnection: (qID: string, query: {
439
- /** If set to true, credentialId in the query will be intepreted as credential's name */
440
- byCredentialName?: boolean;
441
- /** Credential ID */
442
- credentialId?: string;
443
- /** Returns extended list of properties (e.g. encrypted credential string) when set to true. */
444
- extended?: boolean;
445
- /** datafiles connections will be returned from cache by default (if data-connections is configured to use cache), this query parameter is used disable this default behavior, e.g. return an update-to-date datafiles connection if the query is set to true */
446
- noCache?: boolean;
447
- /** List of connection properties shall be returned when the query is set to true, default is false */
448
- parseConnection?: boolean;
449
- /** Filtering on connections by space ID */
450
- spaceId?: string;
451
- /** Connection / credential ID defined in path become connection / credential name when this query parameter is set */
452
- type?: "connectionname" | "credentialname";
453
- }, options?: ApiCallOptions) => Promise<GetDataConnectionHttpResponse>;
454
- type GetDataConnectionHttpResponse = {
455
- data: ConnectionGet;
456
- headers: Headers;
457
- status: number;
458
- };
459
- type GetDataConnectionHttpError = {
460
- data: ResponseErrors;
461
- headers: Headers;
462
- status: number;
463
- };
464
- /**
465
- * Patches a connection specified by connection ID (or by name when type=connectionname is set in query).
466
- *
467
- * @param qID Connection ID
468
- * @param query an object with query parameters
469
- * @param body an object with the body content
470
- * @throws PatchDataConnectionHttpError
471
- */
472
- declare const patchDataConnection: (qID: string, query: {
473
- /** Connection / credential ID defined in path become connection / credential name when this query parameter is set */
474
- type?: "connectionname" | "credentialname";
475
- }, body: PatchRequest, options?: ApiCallOptions) => Promise<PatchDataConnectionHttpResponse>;
476
- type PatchDataConnectionHttpResponse = {
477
- data: void;
478
- headers: Headers;
479
- status: number;
480
- };
481
- type PatchDataConnectionHttpError = {
482
- data: ResponseErrors;
483
- headers: Headers;
484
- status: number;
485
- };
486
- /**
487
- * Updates a connection specified by connection ID (or by name when type=connectionname is set in query). Depends on the fields defined in the request body, credentials embedded (or associated) in the connection can be updated or created.
488
- *
489
- * @param qID Connection ID
490
- * @param query an object with query parameters
491
- * @param body an object with the body content
492
- * @throws UpdateDataConnectionHttpError
493
- */
494
- declare const updateDataConnection: (qID: string, query: {
495
- /** Filtering on connections by space ID */
496
- spaceId?: string;
497
- /** Connection / credential ID defined in path become connection / credential name when this query parameter is set */
498
- type?: "connectionname" | "credentialname";
499
- }, body: ConnectionUpdate, options?: ApiCallOptions) => Promise<UpdateDataConnectionHttpResponse>;
500
- type UpdateDataConnectionHttpResponse = {
501
- data: void;
502
- headers: Headers;
503
- status: number;
504
- };
505
- type UpdateDataConnectionHttpError = {
506
- data: ResponseErrors;
507
- headers: Headers;
508
- status: number;
509
- };
510
- /**
511
- * Clears the cache for data-connections api requests.
512
- */
513
- declare function clearCache(): void;
514
- interface DataConnectionsAPI {
515
- /**
516
- * Gets a list of connections
517
- *
518
- * @param query an object with query parameters
519
- * @throws GetDataConnectionsHttpError
520
- */
521
- getDataConnections: typeof getDataConnections;
522
- /**
523
- * Creates a new connection. Depending on the fields defined in the request body, credentials embedded (or associated) in the connection can be updated or created.
524
- *
525
- * @param body an object with the body content
526
- * @throws CreateDataConnectionHttpError
527
- */
528
- createDataConnection: typeof createDataConnection;
529
- /**
530
- * Delete multiple connections, only available to Admin
531
- *
532
- * @param body an object with the body content
533
- * @throws DeleteDataConnectionsHttpError
534
- */
535
- deleteDataConnections: typeof deleteDataConnections;
536
- /**
537
- * Duplicate a connection
538
- *
539
- * @param body an object with the body content
540
- * @throws DuplicateDataAConnectionHttpError
541
- */
542
- duplicateDataAConnection: typeof duplicateDataAConnection;
543
- /**
544
- * Update multiple connections, only available to Admin
545
- *
546
- * @param body an object with the body content
547
- * @throws UpdateDataConnectionsHttpError
548
- */
549
- updateDataConnections: typeof updateDataConnections;
550
- /**
551
- * Deletes the specified data connection by ID (or by name when type=connectionname is set in query)
552
- *
553
- * @param qID Connection ID
554
- * @param query an object with query parameters
555
- * @throws DeleteDataConnectionHttpError
556
- */
557
- deleteDataConnection: typeof deleteDataConnection;
558
- /**
559
- * Retrieves a connection by connection ID, or by name when the query parameter "type" is set to "connectionname."
560
- *
561
- * @param qID Connection ID
562
- * @param query an object with query parameters
563
- * @throws GetDataConnectionHttpError
564
- */
565
- getDataConnection: typeof getDataConnection;
566
- /**
567
- * Patches a connection specified by connection ID (or by name when type=connectionname is set in query).
568
- *
569
- * @param qID Connection ID
570
- * @param query an object with query parameters
571
- * @param body an object with the body content
572
- * @throws PatchDataConnectionHttpError
573
- */
574
- patchDataConnection: typeof patchDataConnection;
575
- /**
576
- * Updates a connection specified by connection ID (or by name when type=connectionname is set in query). Depends on the fields defined in the request body, credentials embedded (or associated) in the connection can be updated or created.
577
- *
578
- * @param qID Connection ID
579
- * @param query an object with query parameters
580
- * @param body an object with the body content
581
- * @throws UpdateDataConnectionHttpError
582
- */
583
- updateDataConnection: typeof updateDataConnection;
584
- /**
585
- * Clears the cache for data-connections api requests.
586
- */
587
- clearCache: typeof clearCache;
588
- }
589
- /**
590
- * Functions for the data-connections api
591
- */
592
- declare const dataConnectionsExport: DataConnectionsAPI;
593
-
594
- export { type ActionDeleteRequest, type ActionDuplicateRequest, type ActionUpdateRequest, type BulkResponse, type ConnectionCreate, type ConnectionCreateResponse, type ConnectionGet, type ConnectionUpdate, type Connections, type CreateDataConnectionHttpError, type CreateDataConnectionHttpResponse, type DataConnectionsAPI, type DcaasConnectionCreate, type DcaasConnectionCreateAuthResponse, type DeleteDataConnectionHttpError, type DeleteDataConnectionHttpResponse, type DeleteDataConnectionsHttpError, type DeleteDataConnectionsHttpResponse, type DuplicateDataAConnectionHttpError, type DuplicateDataAConnectionHttpResponse, type Error, type Errors, type GetDataConnectionHttpError, type GetDataConnectionHttpResponse, type GetDataConnectionsHttpError, type GetDataConnectionsHttpResponse, type Link, type Meta, type PatchDataConnectionHttpError, type PatchDataConnectionHttpResponse, type PatchRequest, type Privilege, type ResponseErrors, type TopLevelLink, type UpdateDataConnectionHttpError, type UpdateDataConnectionHttpResponse, type UpdateDataConnectionsHttpError, type UpdateDataConnectionsHttpResponse, clearCache, createDataConnection, dataConnectionsExport as default, deleteDataConnection, deleteDataConnections, duplicateDataAConnection, getDataConnection, getDataConnections, patchDataConnection, updateDataConnection, updateDataConnections };