@ignos/api-client 20251031.0.13080-alpha → 20251103.0.13097
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/lib/ignosportal-api.d.ts +0 -16
- package/lib/ignosportal-api.js +0 -99
- package/package.json +1 -1
- package/src/ignosportal-api.ts +0 -112
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -276,8 +276,6 @@ export interface IUserAppSettingsClient {
|
|
|
276
276
|
setRouteCardUserSettings(settings: RouteCardAppSettings): Promise<void>;
|
|
277
277
|
getMoveUserSettings(): Promise<MoveAppSettings>;
|
|
278
278
|
setMoveUserSettings(settings: MoveAppSettings): Promise<void>;
|
|
279
|
-
getEngageUserSettings(): Promise<EngageAppSettings>;
|
|
280
|
-
setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
|
|
281
279
|
}
|
|
282
280
|
export declare class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
|
|
283
281
|
private http;
|
|
@@ -294,10 +292,6 @@ export declare class UserAppSettingsClient extends AuthorizedApiBase implements
|
|
|
294
292
|
protected processGetMoveUserSettings(response: Response): Promise<MoveAppSettings>;
|
|
295
293
|
setMoveUserSettings(settings: MoveAppSettings): Promise<void>;
|
|
296
294
|
protected processSetMoveUserSettings(response: Response): Promise<void>;
|
|
297
|
-
getEngageUserSettings(): Promise<EngageAppSettings>;
|
|
298
|
-
protected processGetEngageUserSettings(response: Response): Promise<EngageAppSettings>;
|
|
299
|
-
setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
|
|
300
|
-
protected processSetEngageUserSettings(response: Response): Promise<void>;
|
|
301
295
|
}
|
|
302
296
|
export interface IUploadClient {
|
|
303
297
|
createUploadInfo(): Promise<UploadInfoDto>;
|
|
@@ -3418,16 +3412,6 @@ export interface IMoveAppSettings {
|
|
|
3418
3412
|
engageMoveAutoPrompt?: boolean;
|
|
3419
3413
|
defaultFromSuggestionAutoFillLocationId?: string | null;
|
|
3420
3414
|
}
|
|
3421
|
-
export declare class EngageAppSettings implements IEngageAppSettings {
|
|
3422
|
-
engageMyResource?: string;
|
|
3423
|
-
constructor(data?: IEngageAppSettings);
|
|
3424
|
-
init(_data?: any): void;
|
|
3425
|
-
static fromJS(data: any): EngageAppSettings;
|
|
3426
|
-
toJSON(data?: any): any;
|
|
3427
|
-
}
|
|
3428
|
-
export interface IEngageAppSettings {
|
|
3429
|
-
engageMyResource?: string;
|
|
3430
|
-
}
|
|
3431
3415
|
export declare class UploadInfoDto implements IUploadInfoDto {
|
|
3432
3416
|
baseUrl?: string | null;
|
|
3433
3417
|
key?: string | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -1582,79 +1582,6 @@ export class UserAppSettingsClient extends AuthorizedApiBase {
|
|
|
1582
1582
|
}
|
|
1583
1583
|
return Promise.resolve(null);
|
|
1584
1584
|
}
|
|
1585
|
-
getEngageUserSettings() {
|
|
1586
|
-
let url_ = this.baseUrl + "/userappsettings/engage";
|
|
1587
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
1588
|
-
let options_ = {
|
|
1589
|
-
method: "GET",
|
|
1590
|
-
headers: {
|
|
1591
|
-
"Accept": "application/json"
|
|
1592
|
-
}
|
|
1593
|
-
};
|
|
1594
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1595
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
1596
|
-
}).then((_response) => {
|
|
1597
|
-
return this.processGetEngageUserSettings(_response);
|
|
1598
|
-
});
|
|
1599
|
-
}
|
|
1600
|
-
processGetEngageUserSettings(response) {
|
|
1601
|
-
const status = response.status;
|
|
1602
|
-
let _headers = {};
|
|
1603
|
-
if (response.headers && response.headers.forEach) {
|
|
1604
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
1605
|
-
}
|
|
1606
|
-
;
|
|
1607
|
-
if (status === 200) {
|
|
1608
|
-
return response.text().then((_responseText) => {
|
|
1609
|
-
let result200 = null;
|
|
1610
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1611
|
-
result200 = EngageAppSettings.fromJS(resultData200);
|
|
1612
|
-
return result200;
|
|
1613
|
-
});
|
|
1614
|
-
}
|
|
1615
|
-
else if (status !== 200 && status !== 204) {
|
|
1616
|
-
return response.text().then((_responseText) => {
|
|
1617
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1618
|
-
});
|
|
1619
|
-
}
|
|
1620
|
-
return Promise.resolve(null);
|
|
1621
|
-
}
|
|
1622
|
-
setEngageUserSettings(settings) {
|
|
1623
|
-
let url_ = this.baseUrl + "/userappsettings/engage";
|
|
1624
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
1625
|
-
const content_ = JSON.stringify(settings);
|
|
1626
|
-
let options_ = {
|
|
1627
|
-
body: content_,
|
|
1628
|
-
method: "PUT",
|
|
1629
|
-
headers: {
|
|
1630
|
-
"Content-Type": "application/json",
|
|
1631
|
-
}
|
|
1632
|
-
};
|
|
1633
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1634
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
1635
|
-
}).then((_response) => {
|
|
1636
|
-
return this.processSetEngageUserSettings(_response);
|
|
1637
|
-
});
|
|
1638
|
-
}
|
|
1639
|
-
processSetEngageUserSettings(response) {
|
|
1640
|
-
const status = response.status;
|
|
1641
|
-
let _headers = {};
|
|
1642
|
-
if (response.headers && response.headers.forEach) {
|
|
1643
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
1644
|
-
}
|
|
1645
|
-
;
|
|
1646
|
-
if (status === 204) {
|
|
1647
|
-
return response.text().then((_responseText) => {
|
|
1648
|
-
return;
|
|
1649
|
-
});
|
|
1650
|
-
}
|
|
1651
|
-
else if (status !== 200 && status !== 204) {
|
|
1652
|
-
return response.text().then((_responseText) => {
|
|
1653
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1654
|
-
});
|
|
1655
|
-
}
|
|
1656
|
-
return Promise.resolve(null);
|
|
1657
|
-
}
|
|
1658
1585
|
}
|
|
1659
1586
|
export class UploadClient extends AuthorizedApiBase {
|
|
1660
1587
|
constructor(configuration, baseUrl, http) {
|
|
@@ -24978,32 +24905,6 @@ export class MoveAppSettings {
|
|
|
24978
24905
|
return data;
|
|
24979
24906
|
}
|
|
24980
24907
|
}
|
|
24981
|
-
export class EngageAppSettings {
|
|
24982
|
-
constructor(data) {
|
|
24983
|
-
if (data) {
|
|
24984
|
-
for (var property in data) {
|
|
24985
|
-
if (data.hasOwnProperty(property))
|
|
24986
|
-
this[property] = data[property];
|
|
24987
|
-
}
|
|
24988
|
-
}
|
|
24989
|
-
}
|
|
24990
|
-
init(_data) {
|
|
24991
|
-
if (_data) {
|
|
24992
|
-
this.engageMyResource = _data["engageMyResource"];
|
|
24993
|
-
}
|
|
24994
|
-
}
|
|
24995
|
-
static fromJS(data) {
|
|
24996
|
-
data = typeof data === 'object' ? data : {};
|
|
24997
|
-
let result = new EngageAppSettings();
|
|
24998
|
-
result.init(data);
|
|
24999
|
-
return result;
|
|
25000
|
-
}
|
|
25001
|
-
toJSON(data) {
|
|
25002
|
-
data = typeof data === 'object' ? data : {};
|
|
25003
|
-
data["engageMyResource"] = this.engageMyResource;
|
|
25004
|
-
return data;
|
|
25005
|
-
}
|
|
25006
|
-
}
|
|
25007
24908
|
export class UploadInfoDto {
|
|
25008
24909
|
constructor(data) {
|
|
25009
24910
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -1591,10 +1591,6 @@ export interface IUserAppSettingsClient {
|
|
|
1591
1591
|
getMoveUserSettings(): Promise<MoveAppSettings>;
|
|
1592
1592
|
|
|
1593
1593
|
setMoveUserSettings(settings: MoveAppSettings): Promise<void>;
|
|
1594
|
-
|
|
1595
|
-
getEngageUserSettings(): Promise<EngageAppSettings>;
|
|
1596
|
-
|
|
1597
|
-
setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
|
|
1598
1594
|
}
|
|
1599
1595
|
|
|
1600
1596
|
export class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
|
|
@@ -1751,78 +1747,6 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
|
|
|
1751
1747
|
}
|
|
1752
1748
|
return Promise.resolve<void>(null as any);
|
|
1753
1749
|
}
|
|
1754
|
-
|
|
1755
|
-
getEngageUserSettings(): Promise<EngageAppSettings> {
|
|
1756
|
-
let url_ = this.baseUrl + "/userappsettings/engage";
|
|
1757
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
1758
|
-
|
|
1759
|
-
let options_: RequestInit = {
|
|
1760
|
-
method: "GET",
|
|
1761
|
-
headers: {
|
|
1762
|
-
"Accept": "application/json"
|
|
1763
|
-
}
|
|
1764
|
-
};
|
|
1765
|
-
|
|
1766
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1767
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
1768
|
-
}).then((_response: Response) => {
|
|
1769
|
-
return this.processGetEngageUserSettings(_response);
|
|
1770
|
-
});
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1773
|
-
protected processGetEngageUserSettings(response: Response): Promise<EngageAppSettings> {
|
|
1774
|
-
const status = response.status;
|
|
1775
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1776
|
-
if (status === 200) {
|
|
1777
|
-
return response.text().then((_responseText) => {
|
|
1778
|
-
let result200: any = null;
|
|
1779
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1780
|
-
result200 = EngageAppSettings.fromJS(resultData200);
|
|
1781
|
-
return result200;
|
|
1782
|
-
});
|
|
1783
|
-
} else if (status !== 200 && status !== 204) {
|
|
1784
|
-
return response.text().then((_responseText) => {
|
|
1785
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1786
|
-
});
|
|
1787
|
-
}
|
|
1788
|
-
return Promise.resolve<EngageAppSettings>(null as any);
|
|
1789
|
-
}
|
|
1790
|
-
|
|
1791
|
-
setEngageUserSettings(settings: EngageAppSettings): Promise<void> {
|
|
1792
|
-
let url_ = this.baseUrl + "/userappsettings/engage";
|
|
1793
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
1794
|
-
|
|
1795
|
-
const content_ = JSON.stringify(settings);
|
|
1796
|
-
|
|
1797
|
-
let options_: RequestInit = {
|
|
1798
|
-
body: content_,
|
|
1799
|
-
method: "PUT",
|
|
1800
|
-
headers: {
|
|
1801
|
-
"Content-Type": "application/json",
|
|
1802
|
-
}
|
|
1803
|
-
};
|
|
1804
|
-
|
|
1805
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1806
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
1807
|
-
}).then((_response: Response) => {
|
|
1808
|
-
return this.processSetEngageUserSettings(_response);
|
|
1809
|
-
});
|
|
1810
|
-
}
|
|
1811
|
-
|
|
1812
|
-
protected processSetEngageUserSettings(response: Response): Promise<void> {
|
|
1813
|
-
const status = response.status;
|
|
1814
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1815
|
-
if (status === 204) {
|
|
1816
|
-
return response.text().then((_responseText) => {
|
|
1817
|
-
return;
|
|
1818
|
-
});
|
|
1819
|
-
} else if (status !== 200 && status !== 204) {
|
|
1820
|
-
return response.text().then((_responseText) => {
|
|
1821
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1822
|
-
});
|
|
1823
|
-
}
|
|
1824
|
-
return Promise.resolve<void>(null as any);
|
|
1825
|
-
}
|
|
1826
1750
|
}
|
|
1827
1751
|
|
|
1828
1752
|
export interface IUploadClient {
|
|
@@ -27138,42 +27062,6 @@ export interface IMoveAppSettings {
|
|
|
27138
27062
|
defaultFromSuggestionAutoFillLocationId?: string | null;
|
|
27139
27063
|
}
|
|
27140
27064
|
|
|
27141
|
-
export class EngageAppSettings implements IEngageAppSettings {
|
|
27142
|
-
engageMyResource?: string;
|
|
27143
|
-
|
|
27144
|
-
constructor(data?: IEngageAppSettings) {
|
|
27145
|
-
if (data) {
|
|
27146
|
-
for (var property in data) {
|
|
27147
|
-
if (data.hasOwnProperty(property))
|
|
27148
|
-
(this as any)[property] = (data as any)[property];
|
|
27149
|
-
}
|
|
27150
|
-
}
|
|
27151
|
-
}
|
|
27152
|
-
|
|
27153
|
-
init(_data?: any) {
|
|
27154
|
-
if (_data) {
|
|
27155
|
-
this.engageMyResource = _data["engageMyResource"];
|
|
27156
|
-
}
|
|
27157
|
-
}
|
|
27158
|
-
|
|
27159
|
-
static fromJS(data: any): EngageAppSettings {
|
|
27160
|
-
data = typeof data === 'object' ? data : {};
|
|
27161
|
-
let result = new EngageAppSettings();
|
|
27162
|
-
result.init(data);
|
|
27163
|
-
return result;
|
|
27164
|
-
}
|
|
27165
|
-
|
|
27166
|
-
toJSON(data?: any) {
|
|
27167
|
-
data = typeof data === 'object' ? data : {};
|
|
27168
|
-
data["engageMyResource"] = this.engageMyResource;
|
|
27169
|
-
return data;
|
|
27170
|
-
}
|
|
27171
|
-
}
|
|
27172
|
-
|
|
27173
|
-
export interface IEngageAppSettings {
|
|
27174
|
-
engageMyResource?: string;
|
|
27175
|
-
}
|
|
27176
|
-
|
|
27177
27065
|
export class UploadInfoDto implements IUploadInfoDto {
|
|
27178
27066
|
baseUrl?: string | null;
|
|
27179
27067
|
key?: string | null;
|