@ignos/api-client 20261110.358.1 → 20261110.360.1

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.
@@ -404,6 +404,8 @@ export interface IUserAppSettingsClient {
404
404
  setMoveUserSettings(settings: MoveAppSettings): Promise<void>;
405
405
  getEngageUserSettings(): Promise<EngageAppSettings>;
406
406
  setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
407
+ getFavoriteRoutesUserSettings(): Promise<FavoriteRoutesAppSettings>;
408
+ setFavoriteRoutesUserSettings(settings: FavoriteRoutesAppSettings): Promise<void>;
407
409
  }
408
410
  export declare class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
409
411
  private http;
@@ -423,6 +425,10 @@ export declare class UserAppSettingsClient extends AuthorizedApiBase implements
423
425
  protected processGetEngageUserSettings(response: Response): Promise<EngageAppSettings>;
424
426
  setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
425
427
  protected processSetEngageUserSettings(response: Response): Promise<void>;
428
+ getFavoriteRoutesUserSettings(): Promise<FavoriteRoutesAppSettings>;
429
+ protected processGetFavoriteRoutesUserSettings(response: Response): Promise<FavoriteRoutesAppSettings>;
430
+ setFavoriteRoutesUserSettings(settings: FavoriteRoutesAppSettings): Promise<void>;
431
+ protected processSetFavoriteRoutesUserSettings(response: Response): Promise<void>;
426
432
  }
427
433
  export interface IUploadClient {
428
434
  createUploadInfo(): Promise<UploadInfoDto>;
@@ -4237,6 +4243,13 @@ export interface EngageAppSettings {
4237
4243
  scheduleViewMode?: ScheduleViewMode | null;
4238
4244
  }
4239
4245
  export type ScheduleViewMode = "Flat" | "Grouped";
4246
+ export interface FavoriteRoutesAppSettings {
4247
+ favorites?: FavoriteRoute[];
4248
+ }
4249
+ export interface FavoriteRoute {
4250
+ appKey: string;
4251
+ route: string;
4252
+ }
4240
4253
  export interface UploadInfoDto {
4241
4254
  baseUrl?: string | null;
4242
4255
  key?: string | null;
@@ -2824,6 +2824,78 @@ export class UserAppSettingsClient extends AuthorizedApiBase {
2824
2824
  }
2825
2825
  return Promise.resolve(null);
2826
2826
  }
2827
+ getFavoriteRoutesUserSettings() {
2828
+ let url_ = this.baseUrl + "/userappsettings/favorite-routes";
2829
+ url_ = url_.replace(/[?&]$/, "");
2830
+ let options_ = {
2831
+ method: "GET",
2832
+ headers: {
2833
+ "Accept": "application/json"
2834
+ }
2835
+ };
2836
+ return this.transformOptions(options_).then(transformedOptions_ => {
2837
+ return this.http.fetch(url_, transformedOptions_);
2838
+ }).then((_response) => {
2839
+ return this.processGetFavoriteRoutesUserSettings(_response);
2840
+ });
2841
+ }
2842
+ processGetFavoriteRoutesUserSettings(response) {
2843
+ const status = response.status;
2844
+ let _headers = {};
2845
+ if (response.headers && response.headers.forEach) {
2846
+ response.headers.forEach((v, k) => _headers[k] = v);
2847
+ }
2848
+ ;
2849
+ if (status === 200) {
2850
+ return response.text().then((_responseText) => {
2851
+ let result200 = null;
2852
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2853
+ return result200;
2854
+ });
2855
+ }
2856
+ else if (status !== 200 && status !== 204) {
2857
+ return response.text().then((_responseText) => {
2858
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2859
+ });
2860
+ }
2861
+ return Promise.resolve(null);
2862
+ }
2863
+ setFavoriteRoutesUserSettings(settings) {
2864
+ let url_ = this.baseUrl + "/userappsettings/favorite-routes";
2865
+ url_ = url_.replace(/[?&]$/, "");
2866
+ const content_ = JSON.stringify(settings);
2867
+ let options_ = {
2868
+ body: content_,
2869
+ method: "PUT",
2870
+ headers: {
2871
+ "Content-Type": "application/json",
2872
+ }
2873
+ };
2874
+ return this.transformOptions(options_).then(transformedOptions_ => {
2875
+ return this.http.fetch(url_, transformedOptions_);
2876
+ }).then((_response) => {
2877
+ return this.processSetFavoriteRoutesUserSettings(_response);
2878
+ });
2879
+ }
2880
+ processSetFavoriteRoutesUserSettings(response) {
2881
+ const status = response.status;
2882
+ let _headers = {};
2883
+ if (response.headers && response.headers.forEach) {
2884
+ response.headers.forEach((v, k) => _headers[k] = v);
2885
+ }
2886
+ ;
2887
+ if (status === 204) {
2888
+ return response.text().then((_responseText) => {
2889
+ return;
2890
+ });
2891
+ }
2892
+ else if (status !== 200 && status !== 204) {
2893
+ return response.text().then((_responseText) => {
2894
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2895
+ });
2896
+ }
2897
+ return Promise.resolve(null);
2898
+ }
2827
2899
  }
2828
2900
  export class UploadClient extends AuthorizedApiBase {
2829
2901
  http;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20261110.358.1",
3
+ "version": "20261110.360.1",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -2820,6 +2820,10 @@ export interface IUserAppSettingsClient {
2820
2820
  getEngageUserSettings(): Promise<EngageAppSettings>;
2821
2821
 
2822
2822
  setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
2823
+
2824
+ getFavoriteRoutesUserSettings(): Promise<FavoriteRoutesAppSettings>;
2825
+
2826
+ setFavoriteRoutesUserSettings(settings: FavoriteRoutesAppSettings): Promise<void>;
2823
2827
  }
2824
2828
 
2825
2829
  export class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
@@ -3044,6 +3048,77 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
3044
3048
  }
3045
3049
  return Promise.resolve<void>(null as any);
3046
3050
  }
3051
+
3052
+ getFavoriteRoutesUserSettings(): Promise<FavoriteRoutesAppSettings> {
3053
+ let url_ = this.baseUrl + "/userappsettings/favorite-routes";
3054
+ url_ = url_.replace(/[?&]$/, "");
3055
+
3056
+ let options_: RequestInit = {
3057
+ method: "GET",
3058
+ headers: {
3059
+ "Accept": "application/json"
3060
+ }
3061
+ };
3062
+
3063
+ return this.transformOptions(options_).then(transformedOptions_ => {
3064
+ return this.http.fetch(url_, transformedOptions_);
3065
+ }).then((_response: Response) => {
3066
+ return this.processGetFavoriteRoutesUserSettings(_response);
3067
+ });
3068
+ }
3069
+
3070
+ protected processGetFavoriteRoutesUserSettings(response: Response): Promise<FavoriteRoutesAppSettings> {
3071
+ const status = response.status;
3072
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
3073
+ if (status === 200) {
3074
+ return response.text().then((_responseText) => {
3075
+ let result200: any = null;
3076
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as FavoriteRoutesAppSettings;
3077
+ return result200;
3078
+ });
3079
+ } else if (status !== 200 && status !== 204) {
3080
+ return response.text().then((_responseText) => {
3081
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3082
+ });
3083
+ }
3084
+ return Promise.resolve<FavoriteRoutesAppSettings>(null as any);
3085
+ }
3086
+
3087
+ setFavoriteRoutesUserSettings(settings: FavoriteRoutesAppSettings): Promise<void> {
3088
+ let url_ = this.baseUrl + "/userappsettings/favorite-routes";
3089
+ url_ = url_.replace(/[?&]$/, "");
3090
+
3091
+ const content_ = JSON.stringify(settings);
3092
+
3093
+ let options_: RequestInit = {
3094
+ body: content_,
3095
+ method: "PUT",
3096
+ headers: {
3097
+ "Content-Type": "application/json",
3098
+ }
3099
+ };
3100
+
3101
+ return this.transformOptions(options_).then(transformedOptions_ => {
3102
+ return this.http.fetch(url_, transformedOptions_);
3103
+ }).then((_response: Response) => {
3104
+ return this.processSetFavoriteRoutesUserSettings(_response);
3105
+ });
3106
+ }
3107
+
3108
+ protected processSetFavoriteRoutesUserSettings(response: Response): Promise<void> {
3109
+ const status = response.status;
3110
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
3111
+ if (status === 204) {
3112
+ return response.text().then((_responseText) => {
3113
+ return;
3114
+ });
3115
+ } else if (status !== 200 && status !== 204) {
3116
+ return response.text().then((_responseText) => {
3117
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3118
+ });
3119
+ }
3120
+ return Promise.resolve<void>(null as any);
3121
+ }
3047
3122
  }
3048
3123
 
3049
3124
  export interface IUploadClient {
@@ -34308,6 +34383,15 @@ export interface EngageAppSettings {
34308
34383
 
34309
34384
  export type ScheduleViewMode = "Flat" | "Grouped";
34310
34385
 
34386
+ export interface FavoriteRoutesAppSettings {
34387
+ favorites?: FavoriteRoute[];
34388
+ }
34389
+
34390
+ export interface FavoriteRoute {
34391
+ appKey: string;
34392
+ route: string;
34393
+ }
34394
+
34311
34395
  export interface UploadInfoDto {
34312
34396
  baseUrl?: string | null;
34313
34397
  key?: string | null;