@ignos/api-client 20251029.0.13058-alpha → 20251103.0.13086-alpha
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 +16 -0
- package/lib/ignosportal-api.js +99 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +112 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -276,6 +276,8 @@ 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>;
|
|
279
281
|
}
|
|
280
282
|
export declare class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
|
|
281
283
|
private http;
|
|
@@ -292,6 +294,10 @@ export declare class UserAppSettingsClient extends AuthorizedApiBase implements
|
|
|
292
294
|
protected processGetMoveUserSettings(response: Response): Promise<MoveAppSettings>;
|
|
293
295
|
setMoveUserSettings(settings: MoveAppSettings): Promise<void>;
|
|
294
296
|
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>;
|
|
295
301
|
}
|
|
296
302
|
export interface IUploadClient {
|
|
297
303
|
createUploadInfo(): Promise<UploadInfoDto>;
|
|
@@ -3412,6 +3418,16 @@ export interface IMoveAppSettings {
|
|
|
3412
3418
|
engageMoveAutoPrompt?: boolean;
|
|
3413
3419
|
defaultFromSuggestionAutoFillLocationId?: string | null;
|
|
3414
3420
|
}
|
|
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
|
+
}
|
|
3415
3431
|
export declare class UploadInfoDto implements IUploadInfoDto {
|
|
3416
3432
|
baseUrl?: string | null;
|
|
3417
3433
|
key?: string | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -1582,6 +1582,79 @@ 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
|
+
}
|
|
1585
1658
|
}
|
|
1586
1659
|
export class UploadClient extends AuthorizedApiBase {
|
|
1587
1660
|
constructor(configuration, baseUrl, http) {
|
|
@@ -24905,6 +24978,32 @@ export class MoveAppSettings {
|
|
|
24905
24978
|
return data;
|
|
24906
24979
|
}
|
|
24907
24980
|
}
|
|
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
|
+
}
|
|
24908
25007
|
export class UploadInfoDto {
|
|
24909
25008
|
constructor(data) {
|
|
24910
25009
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -1591,6 +1591,10 @@ 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>;
|
|
1594
1598
|
}
|
|
1595
1599
|
|
|
1596
1600
|
export class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
|
|
@@ -1747,6 +1751,78 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
|
|
|
1747
1751
|
}
|
|
1748
1752
|
return Promise.resolve<void>(null as any);
|
|
1749
1753
|
}
|
|
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
|
+
}
|
|
1750
1826
|
}
|
|
1751
1827
|
|
|
1752
1828
|
export interface IUploadClient {
|
|
@@ -27062,6 +27138,42 @@ export interface IMoveAppSettings {
|
|
|
27062
27138
|
defaultFromSuggestionAutoFillLocationId?: string | null;
|
|
27063
27139
|
}
|
|
27064
27140
|
|
|
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
|
+
|
|
27065
27177
|
export class UploadInfoDto implements IUploadInfoDto {
|
|
27066
27178
|
baseUrl?: string | null;
|
|
27067
27179
|
key?: string | null;
|