@ignos/api-client 20261104.343.1-alpha → 20261104.345.1-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.
@@ -400,6 +400,8 @@ export interface IUserAppSettingsClient {
400
400
  setMoveUserSettings(settings: MoveAppSettings): Promise<void>;
401
401
  getEngageUserSettings(): Promise<EngageAppSettings>;
402
402
  setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
403
+ getFavoriteRoutesUserSettings(): Promise<FavoriteRoutesAppSettings>;
404
+ setFavoriteRoutesUserSettings(settings: FavoriteRoutesAppSettings): Promise<void>;
403
405
  }
404
406
  export declare class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
405
407
  private http;
@@ -419,6 +421,10 @@ export declare class UserAppSettingsClient extends AuthorizedApiBase implements
419
421
  protected processGetEngageUserSettings(response: Response): Promise<EngageAppSettings>;
420
422
  setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
421
423
  protected processSetEngageUserSettings(response: Response): Promise<void>;
424
+ getFavoriteRoutesUserSettings(): Promise<FavoriteRoutesAppSettings>;
425
+ protected processGetFavoriteRoutesUserSettings(response: Response): Promise<FavoriteRoutesAppSettings>;
426
+ setFavoriteRoutesUserSettings(settings: FavoriteRoutesAppSettings): Promise<void>;
427
+ protected processSetFavoriteRoutesUserSettings(response: Response): Promise<void>;
422
428
  }
423
429
  export interface IUploadClient {
424
430
  createUploadInfo(): Promise<UploadInfoDto>;
@@ -4187,6 +4193,13 @@ export interface EngageAppSettings {
4187
4193
  scheduleViewMode?: ScheduleViewMode | null;
4188
4194
  }
4189
4195
  export type ScheduleViewMode = "Flat" | "Grouped";
4196
+ export interface FavoriteRoutesAppSettings {
4197
+ favorites?: FavoriteRoute[];
4198
+ }
4199
+ export interface FavoriteRoute {
4200
+ appKey: string;
4201
+ route: string;
4202
+ }
4190
4203
  export interface UploadInfoDto {
4191
4204
  baseUrl?: string | null;
4192
4205
  key?: string | null;
@@ -9582,8 +9595,6 @@ export interface ImaCopySpecificationRequestDto {
9582
9595
  export interface ImaUpdateSpecificationDto {
9583
9596
  name?: string | null;
9584
9597
  number?: string | null;
9585
- revision?: string | null;
9586
- date?: Date | null;
9587
9598
  status?: ImaSpecificationStatusDto | null;
9588
9599
  summary?: string | null;
9589
9600
  relatedStandards?: string[] | null;
@@ -2818,6 +2818,78 @@ export class UserAppSettingsClient extends AuthorizedApiBase {
2818
2818
  }
2819
2819
  return Promise.resolve(null);
2820
2820
  }
2821
+ getFavoriteRoutesUserSettings() {
2822
+ let url_ = this.baseUrl + "/userappsettings/favorite-routes";
2823
+ url_ = url_.replace(/[?&]$/, "");
2824
+ let options_ = {
2825
+ method: "GET",
2826
+ headers: {
2827
+ "Accept": "application/json"
2828
+ }
2829
+ };
2830
+ return this.transformOptions(options_).then(transformedOptions_ => {
2831
+ return this.http.fetch(url_, transformedOptions_);
2832
+ }).then((_response) => {
2833
+ return this.processGetFavoriteRoutesUserSettings(_response);
2834
+ });
2835
+ }
2836
+ processGetFavoriteRoutesUserSettings(response) {
2837
+ const status = response.status;
2838
+ let _headers = {};
2839
+ if (response.headers && response.headers.forEach) {
2840
+ response.headers.forEach((v, k) => _headers[k] = v);
2841
+ }
2842
+ ;
2843
+ if (status === 200) {
2844
+ return response.text().then((_responseText) => {
2845
+ let result200 = null;
2846
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2847
+ return result200;
2848
+ });
2849
+ }
2850
+ else if (status !== 200 && status !== 204) {
2851
+ return response.text().then((_responseText) => {
2852
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2853
+ });
2854
+ }
2855
+ return Promise.resolve(null);
2856
+ }
2857
+ setFavoriteRoutesUserSettings(settings) {
2858
+ let url_ = this.baseUrl + "/userappsettings/favorite-routes";
2859
+ url_ = url_.replace(/[?&]$/, "");
2860
+ const content_ = JSON.stringify(settings);
2861
+ let options_ = {
2862
+ body: content_,
2863
+ method: "PUT",
2864
+ headers: {
2865
+ "Content-Type": "application/json",
2866
+ }
2867
+ };
2868
+ return this.transformOptions(options_).then(transformedOptions_ => {
2869
+ return this.http.fetch(url_, transformedOptions_);
2870
+ }).then((_response) => {
2871
+ return this.processSetFavoriteRoutesUserSettings(_response);
2872
+ });
2873
+ }
2874
+ processSetFavoriteRoutesUserSettings(response) {
2875
+ const status = response.status;
2876
+ let _headers = {};
2877
+ if (response.headers && response.headers.forEach) {
2878
+ response.headers.forEach((v, k) => _headers[k] = v);
2879
+ }
2880
+ ;
2881
+ if (status === 204) {
2882
+ return response.text().then((_responseText) => {
2883
+ return;
2884
+ });
2885
+ }
2886
+ else if (status !== 200 && status !== 204) {
2887
+ return response.text().then((_responseText) => {
2888
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2889
+ });
2890
+ }
2891
+ return Promise.resolve(null);
2892
+ }
2821
2893
  }
2822
2894
  export class UploadClient extends AuthorizedApiBase {
2823
2895
  http;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20261104.343.1-alpha",
3
+ "version": "20261104.345.1-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -2812,6 +2812,10 @@ export interface IUserAppSettingsClient {
2812
2812
  getEngageUserSettings(): Promise<EngageAppSettings>;
2813
2813
 
2814
2814
  setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
2815
+
2816
+ getFavoriteRoutesUserSettings(): Promise<FavoriteRoutesAppSettings>;
2817
+
2818
+ setFavoriteRoutesUserSettings(settings: FavoriteRoutesAppSettings): Promise<void>;
2815
2819
  }
2816
2820
 
2817
2821
  export class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
@@ -3036,6 +3040,77 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
3036
3040
  }
3037
3041
  return Promise.resolve<void>(null as any);
3038
3042
  }
3043
+
3044
+ getFavoriteRoutesUserSettings(): Promise<FavoriteRoutesAppSettings> {
3045
+ let url_ = this.baseUrl + "/userappsettings/favorite-routes";
3046
+ url_ = url_.replace(/[?&]$/, "");
3047
+
3048
+ let options_: RequestInit = {
3049
+ method: "GET",
3050
+ headers: {
3051
+ "Accept": "application/json"
3052
+ }
3053
+ };
3054
+
3055
+ return this.transformOptions(options_).then(transformedOptions_ => {
3056
+ return this.http.fetch(url_, transformedOptions_);
3057
+ }).then((_response: Response) => {
3058
+ return this.processGetFavoriteRoutesUserSettings(_response);
3059
+ });
3060
+ }
3061
+
3062
+ protected processGetFavoriteRoutesUserSettings(response: Response): Promise<FavoriteRoutesAppSettings> {
3063
+ const status = response.status;
3064
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
3065
+ if (status === 200) {
3066
+ return response.text().then((_responseText) => {
3067
+ let result200: any = null;
3068
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as FavoriteRoutesAppSettings;
3069
+ return result200;
3070
+ });
3071
+ } else if (status !== 200 && status !== 204) {
3072
+ return response.text().then((_responseText) => {
3073
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3074
+ });
3075
+ }
3076
+ return Promise.resolve<FavoriteRoutesAppSettings>(null as any);
3077
+ }
3078
+
3079
+ setFavoriteRoutesUserSettings(settings: FavoriteRoutesAppSettings): Promise<void> {
3080
+ let url_ = this.baseUrl + "/userappsettings/favorite-routes";
3081
+ url_ = url_.replace(/[?&]$/, "");
3082
+
3083
+ const content_ = JSON.stringify(settings);
3084
+
3085
+ let options_: RequestInit = {
3086
+ body: content_,
3087
+ method: "PUT",
3088
+ headers: {
3089
+ "Content-Type": "application/json",
3090
+ }
3091
+ };
3092
+
3093
+ return this.transformOptions(options_).then(transformedOptions_ => {
3094
+ return this.http.fetch(url_, transformedOptions_);
3095
+ }).then((_response: Response) => {
3096
+ return this.processSetFavoriteRoutesUserSettings(_response);
3097
+ });
3098
+ }
3099
+
3100
+ protected processSetFavoriteRoutesUserSettings(response: Response): Promise<void> {
3101
+ const status = response.status;
3102
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
3103
+ if (status === 204) {
3104
+ return response.text().then((_responseText) => {
3105
+ return;
3106
+ });
3107
+ } else if (status !== 200 && status !== 204) {
3108
+ return response.text().then((_responseText) => {
3109
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3110
+ });
3111
+ }
3112
+ return Promise.resolve<void>(null as any);
3113
+ }
3039
3114
  }
3040
3115
 
3041
3116
  export interface IUploadClient {
@@ -33864,6 +33939,15 @@ export interface EngageAppSettings {
33864
33939
 
33865
33940
  export type ScheduleViewMode = "Flat" | "Grouped";
33866
33941
 
33942
+ export interface FavoriteRoutesAppSettings {
33943
+ favorites?: FavoriteRoute[];
33944
+ }
33945
+
33946
+ export interface FavoriteRoute {
33947
+ appKey: string;
33948
+ route: string;
33949
+ }
33950
+
33867
33951
  export interface UploadInfoDto {
33868
33952
  baseUrl?: string | null;
33869
33953
  key?: string | null;
@@ -39995,8 +40079,6 @@ export interface ImaCopySpecificationRequestDto {
39995
40079
  export interface ImaUpdateSpecificationDto {
39996
40080
  name?: string | null;
39997
40081
  number?: string | null;
39998
- revision?: string | null;
39999
- date?: Date | null;
40000
40082
  status?: ImaSpecificationStatusDto | null;
40001
40083
  summary?: string | null;
40002
40084
  relatedStandards?: string[] | null;