@ignos/api-client 20240731.0.9883 → 20240731.0.9891
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 +17 -9
- package/lib/ignosportal-api.js +13 -5
- package/package.json +1 -1
- package/src/ignosportal-api.ts +27 -11
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -208,7 +208,7 @@ export declare class MachineUtilizationClient extends AuthorizedApiBase implemen
|
|
|
208
208
|
export interface IMeClient {
|
|
209
209
|
getMyApps(): Promise<UserAppDto[]>;
|
|
210
210
|
getCurrentUser(): Promise<UserDetailsDto>;
|
|
211
|
-
|
|
211
|
+
setUserConfiguration(request: SetUserConfigurationRequest): Promise<UserDto>;
|
|
212
212
|
updateCurrentUserLastSeen(): Promise<void>;
|
|
213
213
|
}
|
|
214
214
|
export declare class MeClient extends AuthorizedApiBase implements IMeClient {
|
|
@@ -222,8 +222,8 @@ export declare class MeClient extends AuthorizedApiBase implements IMeClient {
|
|
|
222
222
|
protected processGetMyApps(response: Response): Promise<UserAppDto[]>;
|
|
223
223
|
getCurrentUser(): Promise<UserDetailsDto>;
|
|
224
224
|
protected processGetCurrentUser(response: Response): Promise<UserDetailsDto>;
|
|
225
|
-
|
|
226
|
-
protected
|
|
225
|
+
setUserConfiguration(request: SetUserConfigurationRequest): Promise<UserDto>;
|
|
226
|
+
protected processSetUserConfiguration(response: Response): Promise<UserDto>;
|
|
227
227
|
updateCurrentUserLastSeen(): Promise<void>;
|
|
228
228
|
protected processUpdateCurrentUserLastSeen(response: Response): Promise<void>;
|
|
229
229
|
}
|
|
@@ -2672,6 +2672,7 @@ export declare class UserDetailsDto implements IUserDetailsDto {
|
|
|
2672
2672
|
customerId?: string | null;
|
|
2673
2673
|
isExternalUser?: boolean;
|
|
2674
2674
|
isBetaTester?: boolean | null;
|
|
2675
|
+
engageMoveAutoPrompt?: boolean | null;
|
|
2675
2676
|
hasAccessToIgnos?: boolean;
|
|
2676
2677
|
constructor(data?: IUserDetailsDto);
|
|
2677
2678
|
init(_data?: any): void;
|
|
@@ -2689,6 +2690,7 @@ export interface IUserDetailsDto {
|
|
|
2689
2690
|
customerId?: string | null;
|
|
2690
2691
|
isExternalUser?: boolean;
|
|
2691
2692
|
isBetaTester?: boolean | null;
|
|
2693
|
+
engageMoveAutoPrompt?: boolean | null;
|
|
2692
2694
|
hasAccessToIgnos?: boolean;
|
|
2693
2695
|
}
|
|
2694
2696
|
export declare class UserDto implements IUserDto {
|
|
@@ -2697,6 +2699,7 @@ export declare class UserDto implements IUserDto {
|
|
|
2697
2699
|
upn?: string | null;
|
|
2698
2700
|
email?: string | null;
|
|
2699
2701
|
isBetaTester?: boolean | null;
|
|
2702
|
+
engageMoveAutoPrompt?: boolean | null;
|
|
2700
2703
|
constructor(data?: IUserDto);
|
|
2701
2704
|
init(_data?: any): void;
|
|
2702
2705
|
static fromJS(data: any): UserDto;
|
|
@@ -2708,16 +2711,19 @@ export interface IUserDto {
|
|
|
2708
2711
|
upn?: string | null;
|
|
2709
2712
|
email?: string | null;
|
|
2710
2713
|
isBetaTester?: boolean | null;
|
|
2714
|
+
engageMoveAutoPrompt?: boolean | null;
|
|
2711
2715
|
}
|
|
2712
|
-
export declare class
|
|
2713
|
-
isBetaTester
|
|
2714
|
-
|
|
2716
|
+
export declare class SetUserConfigurationRequest implements ISetUserConfigurationRequest {
|
|
2717
|
+
isBetaTester?: boolean | null;
|
|
2718
|
+
engageMoveAutoPrompt?: boolean | null;
|
|
2719
|
+
constructor(data?: ISetUserConfigurationRequest);
|
|
2715
2720
|
init(_data?: any): void;
|
|
2716
|
-
static fromJS(data: any):
|
|
2721
|
+
static fromJS(data: any): SetUserConfigurationRequest;
|
|
2717
2722
|
toJSON(data?: any): any;
|
|
2718
2723
|
}
|
|
2719
|
-
export interface
|
|
2720
|
-
isBetaTester
|
|
2724
|
+
export interface ISetUserConfigurationRequest {
|
|
2725
|
+
isBetaTester?: boolean | null;
|
|
2726
|
+
engageMoveAutoPrompt?: boolean | null;
|
|
2721
2727
|
}
|
|
2722
2728
|
export declare class PagedResultOfUserDto implements IPagedResultOfUserDto {
|
|
2723
2729
|
results: UserDto[];
|
|
@@ -9274,6 +9280,7 @@ export declare class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
9274
9280
|
palletNumber: number;
|
|
9275
9281
|
workOrderId: string;
|
|
9276
9282
|
trackingEvents: TrackingEventDto[];
|
|
9283
|
+
material?: string | null;
|
|
9277
9284
|
constructor(data?: ITrackingHistoryDto);
|
|
9278
9285
|
init(_data?: any): void;
|
|
9279
9286
|
static fromJS(data: any): TrackingHistoryDto;
|
|
@@ -9284,6 +9291,7 @@ export interface ITrackingHistoryDto {
|
|
|
9284
9291
|
palletNumber: number;
|
|
9285
9292
|
workOrderId: string;
|
|
9286
9293
|
trackingEvents: TrackingEventDto[];
|
|
9294
|
+
material?: string | null;
|
|
9287
9295
|
}
|
|
9288
9296
|
export declare class TrackingEventDto implements ITrackingEventDto {
|
|
9289
9297
|
id: number;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -1007,7 +1007,7 @@ export class MeClient extends AuthorizedApiBase {
|
|
|
1007
1007
|
}
|
|
1008
1008
|
return Promise.resolve(null);
|
|
1009
1009
|
}
|
|
1010
|
-
|
|
1010
|
+
setUserConfiguration(request) {
|
|
1011
1011
|
let url_ = this.baseUrl + "/me";
|
|
1012
1012
|
url_ = url_.replace(/[?&]$/, "");
|
|
1013
1013
|
const content_ = JSON.stringify(request);
|
|
@@ -1022,10 +1022,10 @@ export class MeClient extends AuthorizedApiBase {
|
|
|
1022
1022
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1023
1023
|
return this.http.fetch(url_, transformedOptions_);
|
|
1024
1024
|
}).then((_response) => {
|
|
1025
|
-
return this.
|
|
1025
|
+
return this.processSetUserConfiguration(_response);
|
|
1026
1026
|
});
|
|
1027
1027
|
}
|
|
1028
|
-
|
|
1028
|
+
processSetUserConfiguration(response) {
|
|
1029
1029
|
const status = response.status;
|
|
1030
1030
|
let _headers = {};
|
|
1031
1031
|
if (response.headers && response.headers.forEach) {
|
|
@@ -19986,6 +19986,7 @@ export class UserDetailsDto {
|
|
|
19986
19986
|
this.customerId = _data["customerId"];
|
|
19987
19987
|
this.isExternalUser = _data["isExternalUser"];
|
|
19988
19988
|
this.isBetaTester = _data["isBetaTester"];
|
|
19989
|
+
this.engageMoveAutoPrompt = _data["engageMoveAutoPrompt"];
|
|
19989
19990
|
this.hasAccessToIgnos = _data["hasAccessToIgnos"];
|
|
19990
19991
|
}
|
|
19991
19992
|
}
|
|
@@ -20011,6 +20012,7 @@ export class UserDetailsDto {
|
|
|
20011
20012
|
data["customerId"] = this.customerId;
|
|
20012
20013
|
data["isExternalUser"] = this.isExternalUser;
|
|
20013
20014
|
data["isBetaTester"] = this.isBetaTester;
|
|
20015
|
+
data["engageMoveAutoPrompt"] = this.engageMoveAutoPrompt;
|
|
20014
20016
|
data["hasAccessToIgnos"] = this.hasAccessToIgnos;
|
|
20015
20017
|
return data;
|
|
20016
20018
|
}
|
|
@@ -20031,6 +20033,7 @@ export class UserDto {
|
|
|
20031
20033
|
this.upn = _data["upn"];
|
|
20032
20034
|
this.email = _data["email"];
|
|
20033
20035
|
this.isBetaTester = _data["isBetaTester"];
|
|
20036
|
+
this.engageMoveAutoPrompt = _data["engageMoveAutoPrompt"];
|
|
20034
20037
|
}
|
|
20035
20038
|
}
|
|
20036
20039
|
static fromJS(data) {
|
|
@@ -20046,10 +20049,11 @@ export class UserDto {
|
|
|
20046
20049
|
data["upn"] = this.upn;
|
|
20047
20050
|
data["email"] = this.email;
|
|
20048
20051
|
data["isBetaTester"] = this.isBetaTester;
|
|
20052
|
+
data["engageMoveAutoPrompt"] = this.engageMoveAutoPrompt;
|
|
20049
20053
|
return data;
|
|
20050
20054
|
}
|
|
20051
20055
|
}
|
|
20052
|
-
export class
|
|
20056
|
+
export class SetUserConfigurationRequest {
|
|
20053
20057
|
constructor(data) {
|
|
20054
20058
|
if (data) {
|
|
20055
20059
|
for (var property in data) {
|
|
@@ -20061,17 +20065,19 @@ export class SetIsBetaTesterRequest {
|
|
|
20061
20065
|
init(_data) {
|
|
20062
20066
|
if (_data) {
|
|
20063
20067
|
this.isBetaTester = _data["isBetaTester"];
|
|
20068
|
+
this.engageMoveAutoPrompt = _data["engageMoveAutoPrompt"];
|
|
20064
20069
|
}
|
|
20065
20070
|
}
|
|
20066
20071
|
static fromJS(data) {
|
|
20067
20072
|
data = typeof data === 'object' ? data : {};
|
|
20068
|
-
let result = new
|
|
20073
|
+
let result = new SetUserConfigurationRequest();
|
|
20069
20074
|
result.init(data);
|
|
20070
20075
|
return result;
|
|
20071
20076
|
}
|
|
20072
20077
|
toJSON(data) {
|
|
20073
20078
|
data = typeof data === 'object' ? data : {};
|
|
20074
20079
|
data["isBetaTester"] = this.isBetaTester;
|
|
20080
|
+
data["engageMoveAutoPrompt"] = this.engageMoveAutoPrompt;
|
|
20075
20081
|
return data;
|
|
20076
20082
|
}
|
|
20077
20083
|
}
|
|
@@ -33384,6 +33390,7 @@ export class TrackingHistoryDto {
|
|
|
33384
33390
|
for (let item of _data["trackingEvents"])
|
|
33385
33391
|
this.trackingEvents.push(TrackingEventDto.fromJS(item));
|
|
33386
33392
|
}
|
|
33393
|
+
this.material = _data["material"];
|
|
33387
33394
|
}
|
|
33388
33395
|
}
|
|
33389
33396
|
static fromJS(data) {
|
|
@@ -33402,6 +33409,7 @@ export class TrackingHistoryDto {
|
|
|
33402
33409
|
for (let item of this.trackingEvents)
|
|
33403
33410
|
data["trackingEvents"].push(item.toJSON());
|
|
33404
33411
|
}
|
|
33412
|
+
data["material"] = this.material;
|
|
33405
33413
|
return data;
|
|
33406
33414
|
}
|
|
33407
33415
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -1042,7 +1042,7 @@ export interface IMeClient {
|
|
|
1042
1042
|
|
|
1043
1043
|
getCurrentUser(): Promise<UserDetailsDto>;
|
|
1044
1044
|
|
|
1045
|
-
|
|
1045
|
+
setUserConfiguration(request: SetUserConfigurationRequest): Promise<UserDto>;
|
|
1046
1046
|
|
|
1047
1047
|
updateCurrentUserLastSeen(): Promise<void>;
|
|
1048
1048
|
}
|
|
@@ -1134,7 +1134,7 @@ export class MeClient extends AuthorizedApiBase implements IMeClient {
|
|
|
1134
1134
|
return Promise.resolve<UserDetailsDto>(null as any);
|
|
1135
1135
|
}
|
|
1136
1136
|
|
|
1137
|
-
|
|
1137
|
+
setUserConfiguration(request: SetUserConfigurationRequest): Promise<UserDto> {
|
|
1138
1138
|
let url_ = this.baseUrl + "/me";
|
|
1139
1139
|
url_ = url_.replace(/[?&]$/, "");
|
|
1140
1140
|
|
|
@@ -1152,11 +1152,11 @@ export class MeClient extends AuthorizedApiBase implements IMeClient {
|
|
|
1152
1152
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1153
1153
|
return this.http.fetch(url_, transformedOptions_);
|
|
1154
1154
|
}).then((_response: Response) => {
|
|
1155
|
-
return this.
|
|
1155
|
+
return this.processSetUserConfiguration(_response);
|
|
1156
1156
|
});
|
|
1157
1157
|
}
|
|
1158
1158
|
|
|
1159
|
-
protected
|
|
1159
|
+
protected processSetUserConfiguration(response: Response): Promise<UserDto> {
|
|
1160
1160
|
const status = response.status;
|
|
1161
1161
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1162
1162
|
if (status === 200) {
|
|
@@ -21617,6 +21617,7 @@ export class UserDetailsDto implements IUserDetailsDto {
|
|
|
21617
21617
|
customerId?: string | null;
|
|
21618
21618
|
isExternalUser?: boolean;
|
|
21619
21619
|
isBetaTester?: boolean | null;
|
|
21620
|
+
engageMoveAutoPrompt?: boolean | null;
|
|
21620
21621
|
hasAccessToIgnos?: boolean;
|
|
21621
21622
|
|
|
21622
21623
|
constructor(data?: IUserDetailsDto) {
|
|
@@ -21644,6 +21645,7 @@ export class UserDetailsDto implements IUserDetailsDto {
|
|
|
21644
21645
|
this.customerId = _data["customerId"];
|
|
21645
21646
|
this.isExternalUser = _data["isExternalUser"];
|
|
21646
21647
|
this.isBetaTester = _data["isBetaTester"];
|
|
21648
|
+
this.engageMoveAutoPrompt = _data["engageMoveAutoPrompt"];
|
|
21647
21649
|
this.hasAccessToIgnos = _data["hasAccessToIgnos"];
|
|
21648
21650
|
}
|
|
21649
21651
|
}
|
|
@@ -21671,6 +21673,7 @@ export class UserDetailsDto implements IUserDetailsDto {
|
|
|
21671
21673
|
data["customerId"] = this.customerId;
|
|
21672
21674
|
data["isExternalUser"] = this.isExternalUser;
|
|
21673
21675
|
data["isBetaTester"] = this.isBetaTester;
|
|
21676
|
+
data["engageMoveAutoPrompt"] = this.engageMoveAutoPrompt;
|
|
21674
21677
|
data["hasAccessToIgnos"] = this.hasAccessToIgnos;
|
|
21675
21678
|
return data;
|
|
21676
21679
|
}
|
|
@@ -21687,6 +21690,7 @@ export interface IUserDetailsDto {
|
|
|
21687
21690
|
customerId?: string | null;
|
|
21688
21691
|
isExternalUser?: boolean;
|
|
21689
21692
|
isBetaTester?: boolean | null;
|
|
21693
|
+
engageMoveAutoPrompt?: boolean | null;
|
|
21690
21694
|
hasAccessToIgnos?: boolean;
|
|
21691
21695
|
}
|
|
21692
21696
|
|
|
@@ -21696,6 +21700,7 @@ export class UserDto implements IUserDto {
|
|
|
21696
21700
|
upn?: string | null;
|
|
21697
21701
|
email?: string | null;
|
|
21698
21702
|
isBetaTester?: boolean | null;
|
|
21703
|
+
engageMoveAutoPrompt?: boolean | null;
|
|
21699
21704
|
|
|
21700
21705
|
constructor(data?: IUserDto) {
|
|
21701
21706
|
if (data) {
|
|
@@ -21713,6 +21718,7 @@ export class UserDto implements IUserDto {
|
|
|
21713
21718
|
this.upn = _data["upn"];
|
|
21714
21719
|
this.email = _data["email"];
|
|
21715
21720
|
this.isBetaTester = _data["isBetaTester"];
|
|
21721
|
+
this.engageMoveAutoPrompt = _data["engageMoveAutoPrompt"];
|
|
21716
21722
|
}
|
|
21717
21723
|
}
|
|
21718
21724
|
|
|
@@ -21730,6 +21736,7 @@ export class UserDto implements IUserDto {
|
|
|
21730
21736
|
data["upn"] = this.upn;
|
|
21731
21737
|
data["email"] = this.email;
|
|
21732
21738
|
data["isBetaTester"] = this.isBetaTester;
|
|
21739
|
+
data["engageMoveAutoPrompt"] = this.engageMoveAutoPrompt;
|
|
21733
21740
|
return data;
|
|
21734
21741
|
}
|
|
21735
21742
|
}
|
|
@@ -21740,12 +21747,14 @@ export interface IUserDto {
|
|
|
21740
21747
|
upn?: string | null;
|
|
21741
21748
|
email?: string | null;
|
|
21742
21749
|
isBetaTester?: boolean | null;
|
|
21750
|
+
engageMoveAutoPrompt?: boolean | null;
|
|
21743
21751
|
}
|
|
21744
21752
|
|
|
21745
|
-
export class
|
|
21746
|
-
isBetaTester
|
|
21753
|
+
export class SetUserConfigurationRequest implements ISetUserConfigurationRequest {
|
|
21754
|
+
isBetaTester?: boolean | null;
|
|
21755
|
+
engageMoveAutoPrompt?: boolean | null;
|
|
21747
21756
|
|
|
21748
|
-
constructor(data?:
|
|
21757
|
+
constructor(data?: ISetUserConfigurationRequest) {
|
|
21749
21758
|
if (data) {
|
|
21750
21759
|
for (var property in data) {
|
|
21751
21760
|
if (data.hasOwnProperty(property))
|
|
@@ -21757,12 +21766,13 @@ export class SetIsBetaTesterRequest implements ISetIsBetaTesterRequest {
|
|
|
21757
21766
|
init(_data?: any) {
|
|
21758
21767
|
if (_data) {
|
|
21759
21768
|
this.isBetaTester = _data["isBetaTester"];
|
|
21769
|
+
this.engageMoveAutoPrompt = _data["engageMoveAutoPrompt"];
|
|
21760
21770
|
}
|
|
21761
21771
|
}
|
|
21762
21772
|
|
|
21763
|
-
static fromJS(data: any):
|
|
21773
|
+
static fromJS(data: any): SetUserConfigurationRequest {
|
|
21764
21774
|
data = typeof data === 'object' ? data : {};
|
|
21765
|
-
let result = new
|
|
21775
|
+
let result = new SetUserConfigurationRequest();
|
|
21766
21776
|
result.init(data);
|
|
21767
21777
|
return result;
|
|
21768
21778
|
}
|
|
@@ -21770,12 +21780,14 @@ export class SetIsBetaTesterRequest implements ISetIsBetaTesterRequest {
|
|
|
21770
21780
|
toJSON(data?: any) {
|
|
21771
21781
|
data = typeof data === 'object' ? data : {};
|
|
21772
21782
|
data["isBetaTester"] = this.isBetaTester;
|
|
21783
|
+
data["engageMoveAutoPrompt"] = this.engageMoveAutoPrompt;
|
|
21773
21784
|
return data;
|
|
21774
21785
|
}
|
|
21775
21786
|
}
|
|
21776
21787
|
|
|
21777
|
-
export interface
|
|
21778
|
-
isBetaTester
|
|
21788
|
+
export interface ISetUserConfigurationRequest {
|
|
21789
|
+
isBetaTester?: boolean | null;
|
|
21790
|
+
engageMoveAutoPrompt?: boolean | null;
|
|
21779
21791
|
}
|
|
21780
21792
|
|
|
21781
21793
|
export class PagedResultOfUserDto implements IPagedResultOfUserDto {
|
|
@@ -41654,6 +41666,7 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
41654
41666
|
palletNumber!: number;
|
|
41655
41667
|
workOrderId!: string;
|
|
41656
41668
|
trackingEvents!: TrackingEventDto[];
|
|
41669
|
+
material?: string | null;
|
|
41657
41670
|
|
|
41658
41671
|
constructor(data?: ITrackingHistoryDto) {
|
|
41659
41672
|
if (data) {
|
|
@@ -41677,6 +41690,7 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
41677
41690
|
for (let item of _data["trackingEvents"])
|
|
41678
41691
|
this.trackingEvents!.push(TrackingEventDto.fromJS(item));
|
|
41679
41692
|
}
|
|
41693
|
+
this.material = _data["material"];
|
|
41680
41694
|
}
|
|
41681
41695
|
}
|
|
41682
41696
|
|
|
@@ -41697,6 +41711,7 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
41697
41711
|
for (let item of this.trackingEvents)
|
|
41698
41712
|
data["trackingEvents"].push(item.toJSON());
|
|
41699
41713
|
}
|
|
41714
|
+
data["material"] = this.material;
|
|
41700
41715
|
return data;
|
|
41701
41716
|
}
|
|
41702
41717
|
}
|
|
@@ -41706,6 +41721,7 @@ export interface ITrackingHistoryDto {
|
|
|
41706
41721
|
palletNumber: number;
|
|
41707
41722
|
workOrderId: string;
|
|
41708
41723
|
trackingEvents: TrackingEventDto[];
|
|
41724
|
+
material?: string | null;
|
|
41709
41725
|
}
|
|
41710
41726
|
|
|
41711
41727
|
export class TrackingEventDto implements ITrackingEventDto {
|