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