@ignos/api-client 20240906.0.10273 → 20240906.0.10275

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.
@@ -245,9 +245,9 @@ export declare class UsersClient extends AuthorizedApiBase implements IUsersClie
245
245
  }
246
246
  export interface IUserAppSettingsClient {
247
247
  getEngageUserSettings(): Promise<EngageAppSettings>;
248
- setEngageUserSettings(settings: EngageAppSettings): Promise<FileResponse>;
248
+ setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
249
249
  getMoveUserSettings(): Promise<MoveAppSettings>;
250
- setMoveUserSettings(settings: MoveAppSettings): Promise<FileResponse>;
250
+ setMoveUserSettings(settings: MoveAppSettings): Promise<void>;
251
251
  }
252
252
  export declare class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
253
253
  private http;
@@ -258,12 +258,12 @@ export declare class UserAppSettingsClient extends AuthorizedApiBase implements
258
258
  });
259
259
  getEngageUserSettings(): Promise<EngageAppSettings>;
260
260
  protected processGetEngageUserSettings(response: Response): Promise<EngageAppSettings>;
261
- setEngageUserSettings(settings: EngageAppSettings): Promise<FileResponse>;
262
- protected processSetEngageUserSettings(response: Response): Promise<FileResponse>;
261
+ setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
262
+ protected processSetEngageUserSettings(response: Response): Promise<void>;
263
263
  getMoveUserSettings(): Promise<MoveAppSettings>;
264
264
  protected processGetMoveUserSettings(response: Response): Promise<MoveAppSettings>;
265
- setMoveUserSettings(settings: MoveAppSettings): Promise<FileResponse>;
266
- protected processSetMoveUserSettings(response: Response): Promise<FileResponse>;
265
+ setMoveUserSettings(settings: MoveAppSettings): Promise<void>;
266
+ protected processSetMoveUserSettings(response: Response): Promise<void>;
267
267
  }
268
268
  export interface IUploadClient {
269
269
  createUploadInfo(): Promise<UploadInfoDto>;
@@ -1226,7 +1226,6 @@ export class UserAppSettingsClient extends AuthorizedApiBase {
1226
1226
  method: "PUT",
1227
1227
  headers: {
1228
1228
  "Content-Type": "application/json",
1229
- "Accept": "application/octet-stream"
1230
1229
  }
1231
1230
  };
1232
1231
  return this.transformOptions(options_).then(transformedOptions_ => {
@@ -1242,18 +1241,10 @@ export class UserAppSettingsClient extends AuthorizedApiBase {
1242
1241
  response.headers.forEach((v, k) => _headers[k] = v);
1243
1242
  }
1244
1243
  ;
1245
- if (status === 200 || status === 206) {
1246
- const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
1247
- let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
1248
- let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
1249
- if (fileName) {
1250
- fileName = decodeURIComponent(fileName);
1251
- }
1252
- else {
1253
- fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
1254
- fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
1255
- }
1256
- return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
1244
+ if (status === 204) {
1245
+ return response.text().then((_responseText) => {
1246
+ return;
1247
+ });
1257
1248
  }
1258
1249
  else if (status !== 200 && status !== 204) {
1259
1250
  return response.text().then((_responseText) => {
@@ -1308,7 +1299,6 @@ export class UserAppSettingsClient extends AuthorizedApiBase {
1308
1299
  method: "PUT",
1309
1300
  headers: {
1310
1301
  "Content-Type": "application/json",
1311
- "Accept": "application/octet-stream"
1312
1302
  }
1313
1303
  };
1314
1304
  return this.transformOptions(options_).then(transformedOptions_ => {
@@ -1324,18 +1314,10 @@ export class UserAppSettingsClient extends AuthorizedApiBase {
1324
1314
  response.headers.forEach((v, k) => _headers[k] = v);
1325
1315
  }
1326
1316
  ;
1327
- if (status === 200 || status === 206) {
1328
- const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
1329
- let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
1330
- let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
1331
- if (fileName) {
1332
- fileName = decodeURIComponent(fileName);
1333
- }
1334
- else {
1335
- fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
1336
- fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
1337
- }
1338
- return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
1317
+ if (status === 204) {
1318
+ return response.text().then((_responseText) => {
1319
+ return;
1320
+ });
1339
1321
  }
1340
1322
  else if (status !== 200 && status !== 204) {
1341
1323
  return response.text().then((_responseText) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240906.0.10273",
3
+ "version": "20240906.0.10275",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -1314,11 +1314,11 @@ export interface IUserAppSettingsClient {
1314
1314
 
1315
1315
  getEngageUserSettings(): Promise<EngageAppSettings>;
1316
1316
 
1317
- setEngageUserSettings(settings: EngageAppSettings): Promise<FileResponse>;
1317
+ setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
1318
1318
 
1319
1319
  getMoveUserSettings(): Promise<MoveAppSettings>;
1320
1320
 
1321
- setMoveUserSettings(settings: MoveAppSettings): Promise<FileResponse>;
1321
+ setMoveUserSettings(settings: MoveAppSettings): Promise<void>;
1322
1322
  }
1323
1323
 
1324
1324
  export class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
@@ -1368,7 +1368,7 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
1368
1368
  return Promise.resolve<EngageAppSettings>(null as any);
1369
1369
  }
1370
1370
 
1371
- setEngageUserSettings(settings: EngageAppSettings): Promise<FileResponse> {
1371
+ setEngageUserSettings(settings: EngageAppSettings): Promise<void> {
1372
1372
  let url_ = this.baseUrl + "/userappsettings/engage";
1373
1373
  url_ = url_.replace(/[?&]$/, "");
1374
1374
 
@@ -1379,7 +1379,6 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
1379
1379
  method: "PUT",
1380
1380
  headers: {
1381
1381
  "Content-Type": "application/json",
1382
- "Accept": "application/octet-stream"
1383
1382
  }
1384
1383
  };
1385
1384
 
@@ -1390,26 +1389,19 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
1390
1389
  });
1391
1390
  }
1392
1391
 
1393
- protected processSetEngageUserSettings(response: Response): Promise<FileResponse> {
1392
+ protected processSetEngageUserSettings(response: Response): Promise<void> {
1394
1393
  const status = response.status;
1395
1394
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
1396
- if (status === 200 || status === 206) {
1397
- const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
1398
- let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
1399
- let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
1400
- if (fileName) {
1401
- fileName = decodeURIComponent(fileName);
1402
- } else {
1403
- fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
1404
- fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
1405
- }
1406
- return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
1395
+ if (status === 204) {
1396
+ return response.text().then((_responseText) => {
1397
+ return;
1398
+ });
1407
1399
  } else if (status !== 200 && status !== 204) {
1408
1400
  return response.text().then((_responseText) => {
1409
1401
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1410
1402
  });
1411
1403
  }
1412
- return Promise.resolve<FileResponse>(null as any);
1404
+ return Promise.resolve<void>(null as any);
1413
1405
  }
1414
1406
 
1415
1407
  getMoveUserSettings(): Promise<MoveAppSettings> {
@@ -1448,7 +1440,7 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
1448
1440
  return Promise.resolve<MoveAppSettings>(null as any);
1449
1441
  }
1450
1442
 
1451
- setMoveUserSettings(settings: MoveAppSettings): Promise<FileResponse> {
1443
+ setMoveUserSettings(settings: MoveAppSettings): Promise<void> {
1452
1444
  let url_ = this.baseUrl + "/userappsettings/move";
1453
1445
  url_ = url_.replace(/[?&]$/, "");
1454
1446
 
@@ -1459,7 +1451,6 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
1459
1451
  method: "PUT",
1460
1452
  headers: {
1461
1453
  "Content-Type": "application/json",
1462
- "Accept": "application/octet-stream"
1463
1454
  }
1464
1455
  };
1465
1456
 
@@ -1470,26 +1461,19 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
1470
1461
  });
1471
1462
  }
1472
1463
 
1473
- protected processSetMoveUserSettings(response: Response): Promise<FileResponse> {
1464
+ protected processSetMoveUserSettings(response: Response): Promise<void> {
1474
1465
  const status = response.status;
1475
1466
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
1476
- if (status === 200 || status === 206) {
1477
- const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
1478
- let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
1479
- let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
1480
- if (fileName) {
1481
- fileName = decodeURIComponent(fileName);
1482
- } else {
1483
- fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
1484
- fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
1485
- }
1486
- return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
1467
+ if (status === 204) {
1468
+ return response.text().then((_responseText) => {
1469
+ return;
1470
+ });
1487
1471
  } else if (status !== 200 && status !== 204) {
1488
1472
  return response.text().then((_responseText) => {
1489
1473
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1490
1474
  });
1491
1475
  }
1492
- return Promise.resolve<FileResponse>(null as any);
1476
+ return Promise.resolve<void>(null as any);
1493
1477
  }
1494
1478
  }
1495
1479