@qlik/api 0.0.1 → 0.0.3
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.
- package/.github/CODEOWNERS +2 -0
- package/.github/workflows/release.yaml +35 -0
- package/README.md +1 -3
- package/api-keys.d.mts +27 -13
- package/api-keys.d.ts +27 -13
- package/api-keys.js +17 -13
- package/api-keys.mjs +12 -8
- package/apps.d.mts +580 -165
- package/apps.d.ts +580 -165
- package/apps.js +111 -44
- package/apps.mjs +78 -11
- package/audits.d.mts +20 -8
- package/audits.d.ts +20 -8
- package/audits.js +12 -11
- package/audits.mjs +7 -6
- package/auth-AWZV4DPP.js +41 -0
- package/{auth-TE272Q34.mjs → auth-CPBNNC7S.mjs} +8 -3
- package/auth.js +4 -3
- package/auth.mjs +3 -2
- package/automations.d.mts +56 -20
- package/automations.d.ts +56 -20
- package/automations.js +32 -25
- package/automations.mjs +18 -11
- package/brands.d.mts +45 -4
- package/brands.d.ts +45 -4
- package/brands.js +20 -15
- package/brands.mjs +7 -2
- package/{chunk-ZT4C7KCQ.js → chunk-2STFUQKQ.js} +3 -3
- package/{chunk-WM7FQU2U.mjs → chunk-3SVRHJII.mjs} +3 -3
- package/{chunk-CKPJE4IA.mjs → chunk-67GJTTPV.mjs} +1 -1
- package/{chunk-4ES65KO3.js → chunk-7RY3NO6N.js} +2 -2
- package/{chunk-4OMEH5SW.mjs → chunk-CYRLVHU3.mjs} +321 -53
- package/{chunk-XASXL2NC.js → chunk-D52VW5UN.js} +323 -55
- package/{chunk-GUQBHY3H.mjs → chunk-GNWU6SP2.mjs} +1 -1
- package/{chunk-4FLMND6T.js → chunk-GV5SRHY2.js} +4 -4
- package/{chunk-OULT3V2U.js → chunk-JNGURO23.js} +3 -3
- package/chunk-P57PW2II.js +11 -0
- package/{chunk-3YE7EI7I.mjs → chunk-TE7XMBT5.mjs} +1 -1
- package/chunk-ZFXKCRJC.mjs +11 -0
- package/collections.d.mts +52 -18
- package/collections.d.ts +52 -18
- package/collections.js +28 -14
- package/collections.mjs +16 -2
- package/csp-origins.d.mts +12 -0
- package/csp-origins.d.ts +12 -0
- package/csp-origins.js +12 -9
- package/csp-origins.mjs +5 -2
- package/data-assets.d.mts +10 -0
- package/data-assets.d.ts +10 -0
- package/data-assets.js +13 -8
- package/data-assets.mjs +7 -2
- package/data-connections.d.mts +20 -0
- package/data-connections.d.ts +20 -0
- package/data-connections.js +19 -12
- package/data-connections.mjs +9 -2
- package/data-credentials.d.mts +10 -0
- package/data-credentials.d.ts +10 -0
- package/data-credentials.js +10 -7
- package/data-credentials.mjs +5 -2
- package/data-files.d.mts +114 -29
- package/data-files.d.ts +114 -29
- package/data-files.js +25 -18
- package/data-files.mjs +15 -8
- package/{enigma-session-TEB53FAF.js → enigma-session-XPXDQAIV.js} +12 -7
- package/{enigma-session-4L373ALV.mjs → enigma-session-ZH6MYA54.mjs} +10 -5
- package/{esm-4X3DKK5D.js → esm-3VXX2GKL.js} +13 -9
- package/{esm-SOWVJKOQ.mjs → esm-OY4XVIJB.mjs} +13 -9
- package/extensions.d.mts +26 -2
- package/extensions.d.ts +26 -2
- package/extensions.js +13 -10
- package/extensions.mjs +5 -2
- package/glossaries.d.mts +55 -20
- package/glossaries.d.ts +55 -20
- package/glossaries.js +39 -27
- package/glossaries.mjs +14 -2
- package/groups.d.mts +29 -13
- package/groups.d.ts +29 -13
- package/groups.js +19 -14
- package/groups.mjs +13 -8
- package/identity-providers.d.mts +23 -7
- package/identity-providers.d.ts +23 -7
- package/identity-providers.js +16 -13
- package/identity-providers.mjs +8 -5
- package/index.js +150 -112
- package/index.mjs +146 -108
- package/{invoke-fetch-MSSJAZ7K.mjs → invoke-fetch-3WZWAAZH.mjs} +4 -1
- package/invoke-fetch-UNTAUR7O.js +17 -0
- package/items.d.mts +25 -22
- package/items.d.ts +25 -22
- package/items.js +17 -14
- package/items.mjs +11 -8
- package/licenses.d.mts +20 -0
- package/licenses.d.ts +20 -0
- package/licenses.js +17 -12
- package/licenses.mjs +7 -2
- package/package.json +7 -18
- package/{qix-RLTISYTB.js → qix-UNWXPGMA.js} +9 -8
- package/{qix-EU7PXRZ6.mjs → qix-ZSJ4PIK3.mjs} +5 -4
- package/qix.d.mts +1066 -1017
- package/qix.d.ts +1066 -1017
- package/qix.js +4 -3
- package/qix.mjs +3 -2
- package/quotas.d.mts +4 -0
- package/quotas.d.ts +4 -0
- package/quotas.js +6 -5
- package/quotas.mjs +3 -2
- package/reload-tasks.d.mts +2 -0
- package/reload-tasks.d.ts +2 -0
- package/reload-tasks.js +11 -8
- package/reload-tasks.mjs +5 -2
- package/reloads.d.mts +20 -11
- package/reloads.d.ts +20 -11
- package/reloads.js +9 -7
- package/reloads.mjs +4 -2
- package/roles.d.mts +4 -0
- package/roles.d.ts +4 -0
- package/roles.js +6 -5
- package/roles.mjs +3 -2
- package/spaces.d.mts +36 -30
- package/spaces.d.ts +36 -30
- package/spaces.js +21 -15
- package/spaces.mjs +8 -2
- package/temp-contents.d.mts +9 -70
- package/temp-contents.d.ts +9 -70
- package/temp-contents.js +10 -29
- package/temp-contents.mjs +5 -24
- package/tenants.d.mts +12 -0
- package/tenants.d.ts +12 -0
- package/tenants.js +14 -9
- package/tenants.mjs +7 -2
- package/themes.d.mts +26 -2
- package/themes.d.ts +26 -2
- package/themes.js +13 -10
- package/themes.mjs +5 -2
- package/transports.d.mts +12 -0
- package/transports.d.ts +12 -0
- package/transports.js +12 -9
- package/transports.mjs +5 -2
- package/users.d.mts +48 -29
- package/users.d.ts +48 -29
- package/users.js +18 -13
- package/users.mjs +7 -2
- package/web-integrations.d.mts +10 -0
- package/web-integrations.d.ts +10 -0
- package/web-integrations.js +11 -8
- package/web-integrations.mjs +5 -2
- package/web-notifications.d.mts +12 -0
- package/web-notifications.d.ts +12 -0
- package/web-notifications.js +12 -9
- package/web-notifications.mjs +5 -2
- package/webhooks.d.mts +27 -7
- package/webhooks.d.ts +27 -7
- package/webhooks.js +17 -13
- package/webhooks.mjs +6 -2
- package/auth-CSVTXOZX.js +0 -36
- package/invoke-fetch-PEI54KZO.js +0 -14
package/data-files.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ type BatchChangeSpaceItem = {
|
|
|
5
5
|
/** The ID of the data file whose space will be changed. */
|
|
6
6
|
id: string;
|
|
7
7
|
/** The ID of the new space. Passing in a null will result in the data file being moved to the user's
|
|
8
|
-
|
|
8
|
+
* personal space. */
|
|
9
9
|
spaceId?: string;
|
|
10
10
|
};
|
|
11
11
|
type BatchDeleteItem = {
|
|
@@ -28,7 +28,7 @@ type ConnectionsResponse = {
|
|
|
28
28
|
/** The name of the connection. */
|
|
29
29
|
name: string;
|
|
30
30
|
/** The team space that the given connection is associated with. If null, the connection is not associated
|
|
31
|
-
|
|
31
|
+
* with any specific team space. */
|
|
32
32
|
spaceId?: string;
|
|
33
33
|
/** The type of the connection. */
|
|
34
34
|
type: string;
|
|
@@ -112,21 +112,22 @@ type QuotaResponse = {
|
|
|
112
112
|
/** The allowed file extensions on files that are uploaded. */
|
|
113
113
|
allowedExtensions: string[];
|
|
114
114
|
/** The allowed file extensions for files that are only used internally by the system (and thus not typically
|
|
115
|
-
|
|
115
|
+
* shown to end users). */
|
|
116
116
|
allowedInternalExtensions: string[];
|
|
117
117
|
/** Maximum allowable size of an uploaded file. */
|
|
118
118
|
maxFileSize: number;
|
|
119
119
|
/** Maximum allowable size for a single uploaded large data file (in bytes). This is a file that was indirectly
|
|
120
|
-
|
|
120
|
+
* uploaded using the temp content service chunked upload capability. */
|
|
121
121
|
maxLargeFileSize: number;
|
|
122
122
|
/** The maximum aggregate size of all files uploaded by a given user. */
|
|
123
123
|
maxSize: number;
|
|
124
124
|
/** The current aggregate size of all files uploaded by a given user. If the current aggregate size is greater
|
|
125
|
-
|
|
125
|
+
* than the maximum aggregate size, this is a quota violation. */
|
|
126
126
|
size: number;
|
|
127
127
|
};
|
|
128
128
|
/**
|
|
129
129
|
* Get descriptive info for the specified data files.
|
|
130
|
+
*
|
|
130
131
|
* @param query an object with query parameters
|
|
131
132
|
* @throws GetDataFilesHttpError
|
|
132
133
|
*/
|
|
@@ -134,23 +135,23 @@ declare const getDataFiles: (query: {
|
|
|
134
135
|
/** If set to false, do not return data files with internal extensions else return all the data files. */
|
|
135
136
|
allowInternalFiles?: boolean;
|
|
136
137
|
/** Only return files scoped to the specified app. If this parameter is not specified, only files that are not
|
|
137
|
-
|
|
138
|
+
* scoped to any app are returned. "*" implies all app-scoped files are returned. */
|
|
138
139
|
appId?: string;
|
|
139
140
|
/** Return files that reside in the space referenced by the specified DataFiles connection. If this parameter
|
|
140
|
-
|
|
141
|
+
* is not specified, the user's personal space is implied. */
|
|
141
142
|
connectionId?: string;
|
|
142
143
|
/** If present, the maximum number of data files to return. */
|
|
143
144
|
limit?: number;
|
|
144
145
|
/** Filter the list of files returned to the given file name. */
|
|
145
146
|
name?: string;
|
|
146
147
|
/** If present, fetch the data files for the specified owner. If a connectionId is specified in this case, the
|
|
147
|
-
|
|
148
|
-
|
|
148
|
+
* returned list is constrained to the specified space. If connectionId is not specified, then all files owned
|
|
149
|
+
* by the specified user are returned regardless of the personal space that a given file resides in. */
|
|
149
150
|
ownerId?: string;
|
|
150
151
|
/** If present, the cursor that starts the page of data that is returned. */
|
|
151
152
|
page?: string;
|
|
152
153
|
/** The name of the field used to sort the result. By default, the sort order is ascending. Putting a '+' prefix on
|
|
153
|
-
|
|
154
|
+
* the sort field name explicitly indicates ascending sort order. A '-' prefix indicates a descending sort order. */
|
|
154
155
|
sort?: GetDataFileInfosSortField;
|
|
155
156
|
}, options?: ApiCallOptions) => Promise<GetDataFilesHttpResponse>;
|
|
156
157
|
type GetDataFilesHttpResponse = {
|
|
@@ -167,10 +168,41 @@ type GetDataFilesHttpError = {
|
|
|
167
168
|
};
|
|
168
169
|
/**
|
|
169
170
|
* Upload a new data file.
|
|
171
|
+
*
|
|
170
172
|
* @param body an object with the body content
|
|
171
173
|
* @throws UploadDataFileHttpError
|
|
172
174
|
*/
|
|
173
|
-
declare const uploadDataFile: (body:
|
|
175
|
+
declare const uploadDataFile: (body: {
|
|
176
|
+
/** IFormFile form multipart/form-data */
|
|
177
|
+
File?: BodyInit;
|
|
178
|
+
/** See PostDataFileRequest schema which defines request structure.
|
|
179
|
+
* See model. */
|
|
180
|
+
Json?: {
|
|
181
|
+
/** If this file should be bound to the lifecycle of a specific app, this is the ID of this app. */
|
|
182
|
+
appId?: string;
|
|
183
|
+
/** If present, this is the DataFiles connection that the upload should occur in the context of. If absent,
|
|
184
|
+
* the default is that the upload will occur in the context of the MyDataFiles connection. If the DataFiles
|
|
185
|
+
* connection is different from the one specified when the file was last POSTed or PUT, this will result in
|
|
186
|
+
* a logical move of this file into the new space. */
|
|
187
|
+
connectionId?: string;
|
|
188
|
+
/** Name that will be given to the uploaded file. It should be noted that the '/' character
|
|
189
|
+
* in a data file name indicates a 'path' separator in a logical folder hierarchy for the name. Names that
|
|
190
|
+
* contain '/'s should be used with the assumption that a logical 'folder hierarchy' is being defined for the
|
|
191
|
+
* full pathname of that file. '/' is a significant character in the data file name, and may impact the
|
|
192
|
+
* behavior of future APIs which take this folder hierarchy into account. */
|
|
193
|
+
name: string;
|
|
194
|
+
/** If a SourceId is specified, this is the ID of the existing data file whose content should be copied into
|
|
195
|
+
* the specified data file. That is, instead of the file content being specified in the Data element,
|
|
196
|
+
* it is effectively copied from an existing, previously uploaded file. */
|
|
197
|
+
sourceId?: string;
|
|
198
|
+
/** If a TempContentFileId is specified, this is the ID of a previously uploaded temporary content file whose
|
|
199
|
+
* content should be copied into the specified data file. That is, instead of the file content being specified
|
|
200
|
+
* in the Data element, it is effectively copied from an existing, previously uploaded file. The expectation
|
|
201
|
+
* is that this file was previously uploaded to the temporary content service, and the ID specified here is
|
|
202
|
+
* the one returned from the temp content upload request. */
|
|
203
|
+
tempContentFileId?: string;
|
|
204
|
+
};
|
|
205
|
+
}, options?: ApiCallOptions) => Promise<UploadDataFileHttpResponse>;
|
|
174
206
|
type UploadDataFileHttpResponse = {
|
|
175
207
|
data: DataFileUploadResponse;
|
|
176
208
|
headers: Headers;
|
|
@@ -186,6 +218,7 @@ type UploadDataFileHttpError = {
|
|
|
186
218
|
* where admin users may not explicitly have been granted full access to a given space within the declared
|
|
187
219
|
* space-level permissions. If the space ID is set to null, then the data file will end up residing in the
|
|
188
220
|
* personal space of the user who is the owner of the file.
|
|
221
|
+
*
|
|
189
222
|
* @param body an object with the body content
|
|
190
223
|
* @throws MoveDataFilesHttpError
|
|
191
224
|
*/
|
|
@@ -202,6 +235,7 @@ type MoveDataFilesHttpError = {
|
|
|
202
235
|
};
|
|
203
236
|
/**
|
|
204
237
|
* Delete the specified set of data files as a single batch.
|
|
238
|
+
*
|
|
205
239
|
* @param body an object with the body content
|
|
206
240
|
* @throws DeleteDataFilesHttpError
|
|
207
241
|
*/
|
|
@@ -219,10 +253,11 @@ type DeleteDataFilesHttpError = {
|
|
|
219
253
|
/**
|
|
220
254
|
* The non-filtered list contains a set of hardcoded connections, along with one connection per team space that
|
|
221
255
|
* the given user has access to.
|
|
256
|
+
*
|
|
222
257
|
* @param query an object with query parameters
|
|
223
|
-
* @throws
|
|
258
|
+
* @throws GetDataFilesConnectionsHttpError
|
|
224
259
|
*/
|
|
225
|
-
declare const
|
|
260
|
+
declare const getDataFilesConnections: (query: {
|
|
226
261
|
/** If present, get connections with connection strings that are scoped to the given app ID. */
|
|
227
262
|
appId?: string;
|
|
228
263
|
/** If present, the maximum number of data file connection records to return. */
|
|
@@ -234,25 +269,26 @@ declare const getDataFileConnections: (query: {
|
|
|
234
269
|
/** If true, only return the connections that access data in a personal space. Default is false. */
|
|
235
270
|
personal?: boolean;
|
|
236
271
|
/** The name of the field used to sort the result. By default, the sort is ascending. Putting a '+' prefix on
|
|
237
|
-
|
|
272
|
+
* the sort field name explicitly indicates ascending sort order. A '-' prefix indicates a descending sort order. */
|
|
238
273
|
sort?: GetConnectionsSortField;
|
|
239
274
|
/** If present, only return the connection that accesses data files in the specified space. */
|
|
240
275
|
spaceId?: string;
|
|
241
|
-
}, options?: ApiCallOptions) => Promise<
|
|
242
|
-
type
|
|
276
|
+
}, options?: ApiCallOptions) => Promise<GetDataFilesConnectionsHttpResponse>;
|
|
277
|
+
type GetDataFilesConnectionsHttpResponse = {
|
|
243
278
|
data: GetConnectionsResponse;
|
|
244
279
|
headers: Headers;
|
|
245
280
|
status: number;
|
|
246
|
-
prev?: (options?: ApiCallOptions) => Promise<
|
|
247
|
-
next?: (options?: ApiCallOptions) => Promise<
|
|
281
|
+
prev?: (options?: ApiCallOptions) => Promise<GetDataFilesConnectionsHttpResponse>;
|
|
282
|
+
next?: (options?: ApiCallOptions) => Promise<GetDataFilesConnectionsHttpResponse>;
|
|
248
283
|
};
|
|
249
|
-
type
|
|
284
|
+
type GetDataFilesConnectionsHttpError = {
|
|
250
285
|
data: ErrorResponse;
|
|
251
286
|
headers: Headers;
|
|
252
287
|
status: number;
|
|
253
288
|
};
|
|
254
289
|
/**
|
|
255
290
|
* Get the built-in connection used by the engine to load/write data files given a connection ID.
|
|
291
|
+
*
|
|
256
292
|
* @param id The ID of the connection.
|
|
257
293
|
* @throws GetDataFileConnectionHttpError
|
|
258
294
|
*/
|
|
@@ -269,21 +305,23 @@ type GetDataFileConnectionHttpError = {
|
|
|
269
305
|
};
|
|
270
306
|
/**
|
|
271
307
|
* Get quota information for the calling user.
|
|
272
|
-
*
|
|
308
|
+
*
|
|
309
|
+
* @throws GetDataFilesQuotasHttpError
|
|
273
310
|
*/
|
|
274
|
-
declare const
|
|
275
|
-
type
|
|
311
|
+
declare const getDataFilesQuotas: (options?: ApiCallOptions) => Promise<GetDataFilesQuotasHttpResponse>;
|
|
312
|
+
type GetDataFilesQuotasHttpResponse = {
|
|
276
313
|
data: QuotaResponse;
|
|
277
314
|
headers: Headers;
|
|
278
315
|
status: number;
|
|
279
316
|
};
|
|
280
|
-
type
|
|
317
|
+
type GetDataFilesQuotasHttpError = {
|
|
281
318
|
data: ErrorResponse;
|
|
282
319
|
headers: Headers;
|
|
283
320
|
status: number;
|
|
284
321
|
};
|
|
285
322
|
/**
|
|
286
323
|
* Delete the specified data file.
|
|
324
|
+
*
|
|
287
325
|
* @param id The ID of the data file to delete.
|
|
288
326
|
* @throws DeleteDataFileHttpError
|
|
289
327
|
*/
|
|
@@ -300,6 +338,7 @@ type DeleteDataFileHttpError = {
|
|
|
300
338
|
};
|
|
301
339
|
/**
|
|
302
340
|
* Get descriptive info for the specified data file.
|
|
341
|
+
*
|
|
303
342
|
* @param id The ID of the data file.
|
|
304
343
|
* @throws GetDataFileHttpError
|
|
305
344
|
*/
|
|
@@ -316,11 +355,43 @@ type GetDataFileHttpError = {
|
|
|
316
355
|
};
|
|
317
356
|
/**
|
|
318
357
|
* Re-upload an existing data file.
|
|
358
|
+
*
|
|
319
359
|
* @param id The ID of the data file to update.
|
|
320
360
|
* @param body an object with the body content
|
|
321
361
|
* @throws ReuploadDataFileHttpError
|
|
322
362
|
*/
|
|
323
|
-
declare const reuploadDataFile: (id: string, body:
|
|
363
|
+
declare const reuploadDataFile: (id: string, body: {
|
|
364
|
+
/** IFormFile form multipart/form-data */
|
|
365
|
+
File?: BodyInit;
|
|
366
|
+
/** See PutDataFileRequest schema which defines request structure.
|
|
367
|
+
* See model. */
|
|
368
|
+
Json?: {
|
|
369
|
+
/** If this file should be bound to the lifecycle of a specific app, this is the ID of this app. */
|
|
370
|
+
appId?: string;
|
|
371
|
+
/** If present, this is the DataFiles connection that the upload should occur in the context of. If absent,
|
|
372
|
+
* the default is that the upload will occur in the context of the MyDataFiles connection. If the DataFiles
|
|
373
|
+
* connection is different from the one specified when the file was last POSTed or PUT, this will result in
|
|
374
|
+
* a logical move of this file into the new space. */
|
|
375
|
+
connectionId?: string;
|
|
376
|
+
/** Name that will be given to the uploaded file. If this name is different than the name used when the file
|
|
377
|
+
* was last POSTed or PUT, this will result in a rename of the file. It should be noted that the '/' character
|
|
378
|
+
* in a data file name indicates a 'path' separator in a logical folder hierarchy for the name. Names that
|
|
379
|
+
* contain '/'s should be used with the assumption that a logical 'folder hierarchy' is being defined for the
|
|
380
|
+
* full pathname of that file. '/' is a significant character in the data file name, and may impact the
|
|
381
|
+
* behavior of future APIs that take this folder hierarchy into account. */
|
|
382
|
+
name?: string;
|
|
383
|
+
/** If a SourceId is specified, this is the ID of the existing data file whose content should be copied into
|
|
384
|
+
* the specified data file. That is, instead of the file content being specified in the Data element,
|
|
385
|
+
* it is effectively copied from an existing, previously uploaded file. */
|
|
386
|
+
sourceId?: string;
|
|
387
|
+
/** If a TempContentFileId is specified, this is the ID of a previously uploaded temporary content file whose
|
|
388
|
+
* content should be copied into the specified data file. That is, instead of the file content being specified
|
|
389
|
+
* in the Data element, it is effectively copied from an existing, previously uploaded file. The expectation
|
|
390
|
+
* is that this file was previously uploaded to the temporary content service, and the ID specified here is
|
|
391
|
+
* the one returned from the temp content upload request. */
|
|
392
|
+
tempContentFileId?: string;
|
|
393
|
+
};
|
|
394
|
+
}, options?: ApiCallOptions) => Promise<ReuploadDataFileHttpResponse>;
|
|
324
395
|
type ReuploadDataFileHttpResponse = {
|
|
325
396
|
data: DataFileUploadResponse;
|
|
326
397
|
headers: Headers;
|
|
@@ -335,6 +406,7 @@ type ReuploadDataFileHttpError = {
|
|
|
335
406
|
* This is primarily an admin type of operation. In general, the owner of a data file is implicitly set as
|
|
336
407
|
* part of a data file upload. For data files that reside in a personal space, changing the owner has the
|
|
337
408
|
* effect of moving the data file to the new owner's personal space.
|
|
409
|
+
*
|
|
338
410
|
* @param id The ID of the data file whose owner will be updated.
|
|
339
411
|
* @param body an object with the body content
|
|
340
412
|
* @throws ChangeDataFileOwnerHttpError
|
|
@@ -355,6 +427,7 @@ type ChangeDataFileOwnerHttpError = {
|
|
|
355
427
|
* where admin users may not explicitly have been granted full access to a given space within the declared
|
|
356
428
|
* space-level permissions. If the space ID is set to null, then the datafile will end up residing in the
|
|
357
429
|
* personal space of the user who is the owner of the file.
|
|
430
|
+
*
|
|
358
431
|
* @param id The ID of the data file whose space will be updated.
|
|
359
432
|
* @param body an object with the body content
|
|
360
433
|
* @throws MoveDataFileHttpError
|
|
@@ -377,12 +450,14 @@ declare function clearCache(): void;
|
|
|
377
450
|
interface DataFilesAPI {
|
|
378
451
|
/**
|
|
379
452
|
* Get descriptive info for the specified data files.
|
|
453
|
+
*
|
|
380
454
|
* @param query an object with query parameters
|
|
381
455
|
* @throws GetDataFilesHttpError
|
|
382
456
|
*/
|
|
383
457
|
getDataFiles: typeof getDataFiles;
|
|
384
458
|
/**
|
|
385
459
|
* Upload a new data file.
|
|
460
|
+
*
|
|
386
461
|
* @param body an object with the body content
|
|
387
462
|
* @throws UploadDataFileHttpError
|
|
388
463
|
*/
|
|
@@ -392,12 +467,14 @@ interface DataFilesAPI {
|
|
|
392
467
|
* where admin users may not explicitly have been granted full access to a given space within the declared
|
|
393
468
|
* space-level permissions. If the space ID is set to null, then the data file will end up residing in the
|
|
394
469
|
* personal space of the user who is the owner of the file.
|
|
470
|
+
*
|
|
395
471
|
* @param body an object with the body content
|
|
396
472
|
* @throws MoveDataFilesHttpError
|
|
397
473
|
*/
|
|
398
474
|
moveDataFiles: typeof moveDataFiles;
|
|
399
475
|
/**
|
|
400
476
|
* Delete the specified set of data files as a single batch.
|
|
477
|
+
*
|
|
401
478
|
* @param body an object with the body content
|
|
402
479
|
* @throws DeleteDataFilesHttpError
|
|
403
480
|
*/
|
|
@@ -405,35 +482,41 @@ interface DataFilesAPI {
|
|
|
405
482
|
/**
|
|
406
483
|
* The non-filtered list contains a set of hardcoded connections, along with one connection per team space that
|
|
407
484
|
* the given user has access to.
|
|
485
|
+
*
|
|
408
486
|
* @param query an object with query parameters
|
|
409
|
-
* @throws
|
|
487
|
+
* @throws GetDataFilesConnectionsHttpError
|
|
410
488
|
*/
|
|
411
|
-
|
|
489
|
+
getDataFilesConnections: typeof getDataFilesConnections;
|
|
412
490
|
/**
|
|
413
491
|
* Get the built-in connection used by the engine to load/write data files given a connection ID.
|
|
492
|
+
*
|
|
414
493
|
* @param id The ID of the connection.
|
|
415
494
|
* @throws GetDataFileConnectionHttpError
|
|
416
495
|
*/
|
|
417
496
|
getDataFileConnection: typeof getDataFileConnection;
|
|
418
497
|
/**
|
|
419
498
|
* Get quota information for the calling user.
|
|
420
|
-
*
|
|
499
|
+
*
|
|
500
|
+
* @throws GetDataFilesQuotasHttpError
|
|
421
501
|
*/
|
|
422
|
-
|
|
502
|
+
getDataFilesQuotas: typeof getDataFilesQuotas;
|
|
423
503
|
/**
|
|
424
504
|
* Delete the specified data file.
|
|
505
|
+
*
|
|
425
506
|
* @param id The ID of the data file to delete.
|
|
426
507
|
* @throws DeleteDataFileHttpError
|
|
427
508
|
*/
|
|
428
509
|
deleteDataFile: typeof deleteDataFile;
|
|
429
510
|
/**
|
|
430
511
|
* Get descriptive info for the specified data file.
|
|
512
|
+
*
|
|
431
513
|
* @param id The ID of the data file.
|
|
432
514
|
* @throws GetDataFileHttpError
|
|
433
515
|
*/
|
|
434
516
|
getDataFile: typeof getDataFile;
|
|
435
517
|
/**
|
|
436
518
|
* Re-upload an existing data file.
|
|
519
|
+
*
|
|
437
520
|
* @param id The ID of the data file to update.
|
|
438
521
|
* @param body an object with the body content
|
|
439
522
|
* @throws ReuploadDataFileHttpError
|
|
@@ -443,6 +526,7 @@ interface DataFilesAPI {
|
|
|
443
526
|
* This is primarily an admin type of operation. In general, the owner of a data file is implicitly set as
|
|
444
527
|
* part of a data file upload. For data files that reside in a personal space, changing the owner has the
|
|
445
528
|
* effect of moving the data file to the new owner's personal space.
|
|
529
|
+
*
|
|
446
530
|
* @param id The ID of the data file whose owner will be updated.
|
|
447
531
|
* @param body an object with the body content
|
|
448
532
|
* @throws ChangeDataFileOwnerHttpError
|
|
@@ -453,6 +537,7 @@ interface DataFilesAPI {
|
|
|
453
537
|
* where admin users may not explicitly have been granted full access to a given space within the declared
|
|
454
538
|
* space-level permissions. If the space ID is set to null, then the datafile will end up residing in the
|
|
455
539
|
* personal space of the user who is the owner of the file.
|
|
540
|
+
*
|
|
456
541
|
* @param id The ID of the data file whose space will be updated.
|
|
457
542
|
* @param body an object with the body content
|
|
458
543
|
* @throws MoveDataFileHttpError
|
|
@@ -468,4 +553,4 @@ interface DataFilesAPI {
|
|
|
468
553
|
*/
|
|
469
554
|
declare const dataFilesExport: DataFilesAPI;
|
|
470
555
|
|
|
471
|
-
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
|
|
556
|
+
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.js
CHANGED
|
@@ -1,95 +1,102 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkJNGURO23js = require('./chunk-JNGURO23.js');
|
|
5
|
+
require('./chunk-2STFUQKQ.js');
|
|
6
|
+
require('./chunk-P57PW2II.js');
|
|
6
7
|
|
|
7
8
|
// src/public/rest/data-files.ts
|
|
8
|
-
var getDataFiles = async (query, options) =>
|
|
9
|
+
var getDataFiles = async (query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
9
10
|
method: "get",
|
|
10
11
|
pathTemplate: "/api/v1/data-files",
|
|
11
12
|
query,
|
|
12
13
|
options
|
|
13
14
|
});
|
|
14
|
-
var uploadDataFile = async (body, options) =>
|
|
15
|
+
var uploadDataFile = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
15
16
|
method: "post",
|
|
16
17
|
pathTemplate: "/api/v1/data-files",
|
|
17
18
|
body,
|
|
19
|
+
contentType: "multipart/form-data",
|
|
18
20
|
options
|
|
19
21
|
});
|
|
20
|
-
var moveDataFiles = async (body, options) =>
|
|
22
|
+
var moveDataFiles = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
21
23
|
method: "post",
|
|
22
24
|
pathTemplate: "/api/v1/data-files/actions/change-space",
|
|
23
25
|
body,
|
|
26
|
+
contentType: "application/json",
|
|
24
27
|
options
|
|
25
28
|
});
|
|
26
|
-
var deleteDataFiles = async (body, options) =>
|
|
29
|
+
var deleteDataFiles = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
27
30
|
method: "post",
|
|
28
31
|
pathTemplate: "/api/v1/data-files/actions/delete",
|
|
29
32
|
body,
|
|
33
|
+
contentType: "application/json",
|
|
30
34
|
options
|
|
31
35
|
});
|
|
32
|
-
var
|
|
36
|
+
var getDataFilesConnections = async (query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
33
37
|
method: "get",
|
|
34
38
|
pathTemplate: "/api/v1/data-files/connections",
|
|
35
39
|
query,
|
|
36
40
|
options
|
|
37
41
|
});
|
|
38
|
-
var getDataFileConnection = async (id, options) =>
|
|
42
|
+
var getDataFileConnection = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
39
43
|
method: "get",
|
|
40
44
|
pathTemplate: "/api/v1/data-files/connections/{id}",
|
|
41
45
|
pathVariables: { id },
|
|
42
46
|
options
|
|
43
47
|
});
|
|
44
|
-
var
|
|
48
|
+
var getDataFilesQuotas = async (options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
45
49
|
method: "get",
|
|
46
50
|
pathTemplate: "/api/v1/data-files/quotas",
|
|
47
51
|
options
|
|
48
52
|
});
|
|
49
|
-
var deleteDataFile = async (id, options) =>
|
|
53
|
+
var deleteDataFile = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
50
54
|
method: "delete",
|
|
51
55
|
pathTemplate: "/api/v1/data-files/{id}",
|
|
52
56
|
pathVariables: { id },
|
|
53
57
|
options
|
|
54
58
|
});
|
|
55
|
-
var getDataFile = async (id, options) =>
|
|
59
|
+
var getDataFile = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
56
60
|
method: "get",
|
|
57
61
|
pathTemplate: "/api/v1/data-files/{id}",
|
|
58
62
|
pathVariables: { id },
|
|
59
63
|
options
|
|
60
64
|
});
|
|
61
|
-
var reuploadDataFile = async (id, body, options) =>
|
|
65
|
+
var reuploadDataFile = async (id, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
62
66
|
method: "put",
|
|
63
67
|
pathTemplate: "/api/v1/data-files/{id}",
|
|
64
68
|
pathVariables: { id },
|
|
65
69
|
body,
|
|
70
|
+
contentType: "multipart/form-data",
|
|
66
71
|
options
|
|
67
72
|
});
|
|
68
|
-
var changeDataFileOwner = async (id, body, options) =>
|
|
73
|
+
var changeDataFileOwner = async (id, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
69
74
|
method: "post",
|
|
70
75
|
pathTemplate: "/api/v1/data-files/{id}/actions/change-owner",
|
|
71
76
|
pathVariables: { id },
|
|
72
77
|
body,
|
|
78
|
+
contentType: "application/json",
|
|
73
79
|
options
|
|
74
80
|
});
|
|
75
|
-
var moveDataFile = async (id, body, options) =>
|
|
81
|
+
var moveDataFile = async (id, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
76
82
|
method: "post",
|
|
77
83
|
pathTemplate: "/api/v1/data-files/{id}/actions/change-space",
|
|
78
84
|
pathVariables: { id },
|
|
79
85
|
body,
|
|
86
|
+
contentType: "application/json",
|
|
80
87
|
options
|
|
81
88
|
});
|
|
82
89
|
function clearCache() {
|
|
83
|
-
return
|
|
90
|
+
return _chunkJNGURO23js.clearApiCache.call(void 0, "data-files");
|
|
84
91
|
}
|
|
85
92
|
var dataFilesExport = {
|
|
86
93
|
getDataFiles,
|
|
87
94
|
uploadDataFile,
|
|
88
95
|
moveDataFiles,
|
|
89
96
|
deleteDataFiles,
|
|
90
|
-
|
|
97
|
+
getDataFilesConnections,
|
|
91
98
|
getDataFileConnection,
|
|
92
|
-
|
|
99
|
+
getDataFilesQuotas,
|
|
93
100
|
deleteDataFile,
|
|
94
101
|
getDataFile,
|
|
95
102
|
reuploadDataFile,
|
|
@@ -113,4 +120,4 @@ var data_files_default = dataFilesExport;
|
|
|
113
120
|
|
|
114
121
|
|
|
115
122
|
|
|
116
|
-
exports.changeDataFileOwner = changeDataFileOwner; exports.clearCache = clearCache; exports.default = data_files_default; exports.deleteDataFile = deleteDataFile; exports.deleteDataFiles = deleteDataFiles; exports.getDataFile = getDataFile; exports.getDataFileConnection = getDataFileConnection; exports.
|
|
123
|
+
exports.changeDataFileOwner = changeDataFileOwner; exports.clearCache = clearCache; exports.default = data_files_default; exports.deleteDataFile = deleteDataFile; exports.deleteDataFiles = deleteDataFiles; exports.getDataFile = getDataFile; exports.getDataFileConnection = getDataFileConnection; exports.getDataFiles = getDataFiles; exports.getDataFilesConnections = getDataFilesConnections; exports.getDataFilesQuotas = getDataFilesQuotas; exports.moveDataFile = moveDataFile; exports.moveDataFiles = moveDataFiles; exports.reuploadDataFile = reuploadDataFile; exports.uploadDataFile = uploadDataFile;
|
package/data-files.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-TE7XMBT5.mjs";
|
|
5
|
+
import "./chunk-3SVRHJII.mjs";
|
|
6
|
+
import "./chunk-ZFXKCRJC.mjs";
|
|
6
7
|
|
|
7
8
|
// src/public/rest/data-files.ts
|
|
8
9
|
var getDataFiles = async (query, options) => invokeFetch("data-files", {
|
|
@@ -15,21 +16,24 @@ var uploadDataFile = async (body, options) => invokeFetch("data-files", {
|
|
|
15
16
|
method: "post",
|
|
16
17
|
pathTemplate: "/api/v1/data-files",
|
|
17
18
|
body,
|
|
19
|
+
contentType: "multipart/form-data",
|
|
18
20
|
options
|
|
19
21
|
});
|
|
20
22
|
var moveDataFiles = async (body, options) => invokeFetch("data-files", {
|
|
21
23
|
method: "post",
|
|
22
24
|
pathTemplate: "/api/v1/data-files/actions/change-space",
|
|
23
25
|
body,
|
|
26
|
+
contentType: "application/json",
|
|
24
27
|
options
|
|
25
28
|
});
|
|
26
29
|
var deleteDataFiles = async (body, options) => invokeFetch("data-files", {
|
|
27
30
|
method: "post",
|
|
28
31
|
pathTemplate: "/api/v1/data-files/actions/delete",
|
|
29
32
|
body,
|
|
33
|
+
contentType: "application/json",
|
|
30
34
|
options
|
|
31
35
|
});
|
|
32
|
-
var
|
|
36
|
+
var getDataFilesConnections = async (query, options) => invokeFetch("data-files", {
|
|
33
37
|
method: "get",
|
|
34
38
|
pathTemplate: "/api/v1/data-files/connections",
|
|
35
39
|
query,
|
|
@@ -41,7 +45,7 @@ var getDataFileConnection = async (id, options) => invokeFetch("data-files", {
|
|
|
41
45
|
pathVariables: { id },
|
|
42
46
|
options
|
|
43
47
|
});
|
|
44
|
-
var
|
|
48
|
+
var getDataFilesQuotas = async (options) => invokeFetch("data-files", {
|
|
45
49
|
method: "get",
|
|
46
50
|
pathTemplate: "/api/v1/data-files/quotas",
|
|
47
51
|
options
|
|
@@ -63,6 +67,7 @@ var reuploadDataFile = async (id, body, options) => invokeFetch("data-files", {
|
|
|
63
67
|
pathTemplate: "/api/v1/data-files/{id}",
|
|
64
68
|
pathVariables: { id },
|
|
65
69
|
body,
|
|
70
|
+
contentType: "multipart/form-data",
|
|
66
71
|
options
|
|
67
72
|
});
|
|
68
73
|
var changeDataFileOwner = async (id, body, options) => invokeFetch("data-files", {
|
|
@@ -70,6 +75,7 @@ var changeDataFileOwner = async (id, body, options) => invokeFetch("data-files",
|
|
|
70
75
|
pathTemplate: "/api/v1/data-files/{id}/actions/change-owner",
|
|
71
76
|
pathVariables: { id },
|
|
72
77
|
body,
|
|
78
|
+
contentType: "application/json",
|
|
73
79
|
options
|
|
74
80
|
});
|
|
75
81
|
var moveDataFile = async (id, body, options) => invokeFetch("data-files", {
|
|
@@ -77,6 +83,7 @@ var moveDataFile = async (id, body, options) => invokeFetch("data-files", {
|
|
|
77
83
|
pathTemplate: "/api/v1/data-files/{id}/actions/change-space",
|
|
78
84
|
pathVariables: { id },
|
|
79
85
|
body,
|
|
86
|
+
contentType: "application/json",
|
|
80
87
|
options
|
|
81
88
|
});
|
|
82
89
|
function clearCache() {
|
|
@@ -87,9 +94,9 @@ var dataFilesExport = {
|
|
|
87
94
|
uploadDataFile,
|
|
88
95
|
moveDataFiles,
|
|
89
96
|
deleteDataFiles,
|
|
90
|
-
|
|
97
|
+
getDataFilesConnections,
|
|
91
98
|
getDataFileConnection,
|
|
92
|
-
|
|
99
|
+
getDataFilesQuotas,
|
|
93
100
|
deleteDataFile,
|
|
94
101
|
getDataFile,
|
|
95
102
|
reuploadDataFile,
|
|
@@ -106,9 +113,9 @@ export {
|
|
|
106
113
|
deleteDataFiles,
|
|
107
114
|
getDataFile,
|
|
108
115
|
getDataFileConnection,
|
|
109
|
-
getDataFileConnections,
|
|
110
|
-
getDataFileQuotas,
|
|
111
116
|
getDataFiles,
|
|
117
|
+
getDataFilesConnections,
|
|
118
|
+
getDataFilesQuotas,
|
|
112
119
|
moveDataFile,
|
|
113
120
|
moveDataFiles,
|
|
114
121
|
reuploadDataFile,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkD52VW5UNjs = require('./chunk-D52VW5UN.js');
|
|
6
|
+
require('./chunk-P57PW2II.js');
|
|
6
7
|
|
|
7
8
|
// src/qix/session/enigma-session.ts
|
|
8
9
|
var _enigmajs = require('enigma.js'); var _enigmajs2 = _interopRequireDefault(_enigmajs);
|
|
@@ -9504,7 +9505,9 @@ var mixin4 = {
|
|
|
9504
9505
|
extend: {
|
|
9505
9506
|
getOrCreateSessionObject(props) {
|
|
9506
9507
|
const app = this;
|
|
9507
|
-
const id = props.qInfo.qId
|
|
9508
|
+
const id = _optionalChain([props, 'access', _ => _.qInfo, 'optionalAccess', _2 => _2.qId]);
|
|
9509
|
+
if (!id)
|
|
9510
|
+
throw new Error("Invalid list definition. No qId defined");
|
|
9508
9511
|
if (!app._listCache[id]) {
|
|
9509
9512
|
if (app.session.sessionState === "SESSION_ATTACHED") {
|
|
9510
9513
|
app._listCache[id] = app.getObject(id).catch(() => app.createSessionObject(props));
|
|
@@ -9529,7 +9532,9 @@ var mixin4 = {
|
|
|
9529
9532
|
if (outKey) {
|
|
9530
9533
|
outKey = outKey.replace(/Def$/g, "");
|
|
9531
9534
|
}
|
|
9532
|
-
const id = listDef.qInfo.qId;
|
|
9535
|
+
const id = _optionalChain([listDef, 'access', _3 => _3.qInfo, 'optionalAccess', _4 => _4.qId]);
|
|
9536
|
+
if (!id)
|
|
9537
|
+
throw new Error("Invalid list definition. No qId defined");
|
|
9533
9538
|
if (!app._listCache[id]) {
|
|
9534
9539
|
app.getOrCreateSessionObject(listDef).then((obj) => {
|
|
9535
9540
|
const getLayout = obj.getLayout.bind(obj);
|
|
@@ -10155,14 +10160,14 @@ async function createEnigmaSession({
|
|
|
10155
10160
|
identity,
|
|
10156
10161
|
hostConfig
|
|
10157
10162
|
}) {
|
|
10158
|
-
const locationUrl =
|
|
10163
|
+
const locationUrl = _chunkD52VW5UNjs.toValidWebsocketLocationUrl.call(void 0, hostConfig);
|
|
10159
10164
|
const reloadUri = encodeURIComponent(`${locationUrl}/sense/app/${appId}`);
|
|
10160
10165
|
const identityPart = identity ? `/identity/${identity}` : "";
|
|
10161
10166
|
let url = `${locationUrl}/app/${appId}${identityPart}?reloadUri=${reloadUri}`.replace(/^http/, "ws");
|
|
10162
10167
|
const isNodeEnvironment = typeof window === "undefined";
|
|
10163
10168
|
let createSocketMethod;
|
|
10164
10169
|
if (isNodeEnvironment) {
|
|
10165
|
-
const { headers, queryParams } = await
|
|
10170
|
+
const { headers, queryParams } = await _chunkD52VW5UNjs.getRestCallAuthParams.call(void 0, { hostConfig, method: "POST" });
|
|
10166
10171
|
const WS = (await Promise.resolve().then(() => _interopRequireWildcard(require("ws")))).default;
|
|
10167
10172
|
Object.entries(queryParams).forEach(([key, value]) => {
|
|
10168
10173
|
url = `${url}&${key}=${value}`;
|
|
@@ -10171,7 +10176,7 @@ async function createEnigmaSession({
|
|
|
10171
10176
|
headers
|
|
10172
10177
|
});
|
|
10173
10178
|
} else {
|
|
10174
|
-
const { queryParams } = await
|
|
10179
|
+
const { queryParams } = await _chunkD52VW5UNjs.getWebSocketAuthParams.call(void 0, { hostConfig });
|
|
10175
10180
|
Object.entries(queryParams).forEach(([key, value]) => {
|
|
10176
10181
|
url = `${url}&${key}=${value}`;
|
|
10177
10182
|
});
|