@ignos/api-client 20240911.0.10313 → 20240911.0.10321
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 +9 -38
- package/lib/ignosportal-api.js +5 -134
- package/package.json +1 -1
- package/src/ignosportal-api.ts +11 -168
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
|
+
setIsBetaTester(request: SetIsBetaTesterRequest): 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
|
+
setIsBetaTester(request: SetIsBetaTesterRequest): Promise<UserDto>;
|
|
226
|
+
protected processSetIsBetaTester(response: Response): Promise<UserDto>;
|
|
227
227
|
updateCurrentUserLastSeen(): Promise<void>;
|
|
228
228
|
protected processUpdateCurrentUserLastSeen(response: Response): Promise<void>;
|
|
229
229
|
}
|
|
@@ -1542,7 +1542,6 @@ export interface IMoveTrackingClient {
|
|
|
1542
1542
|
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
1543
1543
|
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
1544
1544
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
1545
|
-
createLabel(trackingIds: string[]): Promise<DownloadDto>;
|
|
1546
1545
|
createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto>;
|
|
1547
1546
|
}
|
|
1548
1547
|
export declare class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
|
|
@@ -1568,8 +1567,6 @@ export declare class MoveTrackingClient extends AuthorizedApiBase implements IMo
|
|
|
1568
1567
|
protected processCreateTrackingHistory(response: Response): Promise<TrackingHistoryDto[]>;
|
|
1569
1568
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
1570
1569
|
protected processDeleteTrackingHistory(response: Response): Promise<void>;
|
|
1571
|
-
createLabel(trackingIds: string[]): Promise<DownloadDto>;
|
|
1572
|
-
protected processCreateLabel(response: Response): Promise<DownloadDto>;
|
|
1573
1570
|
createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto>;
|
|
1574
1571
|
protected processCreateLabelAndUpdateParcel(response: Response): Promise<DownloadDto>;
|
|
1575
1572
|
}
|
|
@@ -1645,7 +1642,6 @@ export interface IMesProductionOrderClient {
|
|
|
1645
1642
|
getProductionOrderOpenNonConformances(id: string, onlyOpen: boolean | undefined): Promise<NonConformanceDto[]>;
|
|
1646
1643
|
postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
|
|
1647
1644
|
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
|
|
1648
|
-
getPrintableProductionOrders(request: GenerateProductionOrderPdf): Promise<DownloadDto>;
|
|
1649
1645
|
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
1650
1646
|
}
|
|
1651
1647
|
export declare class MesProductionOrderClient extends AuthorizedApiBase implements IMesProductionOrderClient {
|
|
@@ -1669,8 +1665,6 @@ export declare class MesProductionOrderClient extends AuthorizedApiBase implemen
|
|
|
1669
1665
|
protected processPostMaterialPickList(response: Response): Promise<MaterialPickListResultDto>;
|
|
1670
1666
|
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
|
|
1671
1667
|
protected processListProductionOrderActivities(response: Response): Promise<ProductionOrderOperationActivityDto[]>;
|
|
1672
|
-
getPrintableProductionOrders(request: GenerateProductionOrderPdf): Promise<DownloadDto>;
|
|
1673
|
-
protected processGetPrintableProductionOrders(response: Response): Promise<DownloadDto>;
|
|
1674
1668
|
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
1675
1669
|
protected processGetPrintableLabels(response: Response): Promise<DownloadDto>;
|
|
1676
1670
|
}
|
|
@@ -2751,7 +2745,6 @@ export declare class UserDetailsDto implements IUserDetailsDto {
|
|
|
2751
2745
|
customerId?: string | null;
|
|
2752
2746
|
isExternalUser?: boolean;
|
|
2753
2747
|
isBetaTester?: boolean | null;
|
|
2754
|
-
engageMoveAutoPrompt?: boolean | null;
|
|
2755
2748
|
hasAccessToIgnos?: boolean;
|
|
2756
2749
|
constructor(data?: IUserDetailsDto);
|
|
2757
2750
|
init(_data?: any): void;
|
|
@@ -2769,7 +2762,6 @@ export interface IUserDetailsDto {
|
|
|
2769
2762
|
customerId?: string | null;
|
|
2770
2763
|
isExternalUser?: boolean;
|
|
2771
2764
|
isBetaTester?: boolean | null;
|
|
2772
|
-
engageMoveAutoPrompt?: boolean | null;
|
|
2773
2765
|
hasAccessToIgnos?: boolean;
|
|
2774
2766
|
}
|
|
2775
2767
|
export declare class UserDto implements IUserDto {
|
|
@@ -2778,7 +2770,6 @@ export declare class UserDto implements IUserDto {
|
|
|
2778
2770
|
upn?: string | null;
|
|
2779
2771
|
email?: string | null;
|
|
2780
2772
|
isBetaTester?: boolean | null;
|
|
2781
|
-
engageMoveAutoPrompt?: boolean | null;
|
|
2782
2773
|
constructor(data?: IUserDto);
|
|
2783
2774
|
init(_data?: any): void;
|
|
2784
2775
|
static fromJS(data: any): UserDto;
|
|
@@ -2790,19 +2781,16 @@ export interface IUserDto {
|
|
|
2790
2781
|
upn?: string | null;
|
|
2791
2782
|
email?: string | null;
|
|
2792
2783
|
isBetaTester?: boolean | null;
|
|
2793
|
-
engageMoveAutoPrompt?: boolean | null;
|
|
2794
2784
|
}
|
|
2795
|
-
export declare class
|
|
2796
|
-
isBetaTester
|
|
2797
|
-
|
|
2798
|
-
constructor(data?: ISetUserConfigurationRequest);
|
|
2785
|
+
export declare class SetIsBetaTesterRequest implements ISetIsBetaTesterRequest {
|
|
2786
|
+
isBetaTester: boolean;
|
|
2787
|
+
constructor(data?: ISetIsBetaTesterRequest);
|
|
2799
2788
|
init(_data?: any): void;
|
|
2800
|
-
static fromJS(data: any):
|
|
2789
|
+
static fromJS(data: any): SetIsBetaTesterRequest;
|
|
2801
2790
|
toJSON(data?: any): any;
|
|
2802
2791
|
}
|
|
2803
|
-
export interface
|
|
2804
|
-
isBetaTester
|
|
2805
|
-
engageMoveAutoPrompt?: boolean | null;
|
|
2792
|
+
export interface ISetIsBetaTesterRequest {
|
|
2793
|
+
isBetaTester: boolean;
|
|
2806
2794
|
}
|
|
2807
2795
|
export declare class PagedResultOfUserDto implements IPagedResultOfUserDto {
|
|
2808
2796
|
results: UserDto[];
|
|
@@ -9032,23 +9020,6 @@ export interface IProductionOrderOperationActivityDto {
|
|
|
9032
9020
|
producedQuantity?: number | null;
|
|
9033
9021
|
scrappedQuantity?: number | null;
|
|
9034
9022
|
}
|
|
9035
|
-
export declare class GenerateProductionOrderPdf implements IGenerateProductionOrderPdf {
|
|
9036
|
-
productionOrderNumbers: string[];
|
|
9037
|
-
type: ProductionOrderPdfType;
|
|
9038
|
-
includeOperations: boolean;
|
|
9039
|
-
includeDrawing: boolean;
|
|
9040
|
-
constructor(data?: IGenerateProductionOrderPdf);
|
|
9041
|
-
init(_data?: any): void;
|
|
9042
|
-
static fromJS(data: any): GenerateProductionOrderPdf;
|
|
9043
|
-
toJSON(data?: any): any;
|
|
9044
|
-
}
|
|
9045
|
-
export interface IGenerateProductionOrderPdf {
|
|
9046
|
-
productionOrderNumbers: string[];
|
|
9047
|
-
type: ProductionOrderPdfType;
|
|
9048
|
-
includeOperations: boolean;
|
|
9049
|
-
includeDrawing: boolean;
|
|
9050
|
-
}
|
|
9051
|
-
export type ProductionOrderPdfType = "Rich" | "Compact";
|
|
9052
9023
|
export declare class GeneratePrintableLabel implements IGeneratePrintableLabel {
|
|
9053
9024
|
labelIds: LabelId[];
|
|
9054
9025
|
constructor(data?: IGeneratePrintableLabel);
|
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
|
+
setIsBetaTester(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.processSetIsBetaTester(_response);
|
|
1026
1026
|
});
|
|
1027
1027
|
}
|
|
1028
|
-
|
|
1028
|
+
processSetIsBetaTester(response) {
|
|
1029
1029
|
const status = response.status;
|
|
1030
1030
|
let _headers = {};
|
|
1031
1031
|
if (response.headers && response.headers.forEach) {
|
|
@@ -12877,46 +12877,6 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
12877
12877
|
}
|
|
12878
12878
|
return Promise.resolve(null);
|
|
12879
12879
|
}
|
|
12880
|
-
createLabel(trackingIds) {
|
|
12881
|
-
let url_ = this.baseUrl + "/move/tracking/label";
|
|
12882
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
12883
|
-
const content_ = JSON.stringify(trackingIds);
|
|
12884
|
-
let options_ = {
|
|
12885
|
-
body: content_,
|
|
12886
|
-
method: "POST",
|
|
12887
|
-
headers: {
|
|
12888
|
-
"Content-Type": "application/json",
|
|
12889
|
-
"Accept": "application/json"
|
|
12890
|
-
}
|
|
12891
|
-
};
|
|
12892
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12893
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
12894
|
-
}).then((_response) => {
|
|
12895
|
-
return this.processCreateLabel(_response);
|
|
12896
|
-
});
|
|
12897
|
-
}
|
|
12898
|
-
processCreateLabel(response) {
|
|
12899
|
-
const status = response.status;
|
|
12900
|
-
let _headers = {};
|
|
12901
|
-
if (response.headers && response.headers.forEach) {
|
|
12902
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
12903
|
-
}
|
|
12904
|
-
;
|
|
12905
|
-
if (status === 200) {
|
|
12906
|
-
return response.text().then((_responseText) => {
|
|
12907
|
-
let result200 = null;
|
|
12908
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12909
|
-
result200 = DownloadDto.fromJS(resultData200);
|
|
12910
|
-
return result200;
|
|
12911
|
-
});
|
|
12912
|
-
}
|
|
12913
|
-
else if (status !== 200 && status !== 204) {
|
|
12914
|
-
return response.text().then((_responseText) => {
|
|
12915
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12916
|
-
});
|
|
12917
|
-
}
|
|
12918
|
-
return Promise.resolve(null);
|
|
12919
|
-
}
|
|
12920
12880
|
createLabelAndUpdateParcel(labelUpdate) {
|
|
12921
12881
|
let url_ = this.baseUrl + "/move/tracking/labelupdate";
|
|
12922
12882
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -13643,46 +13603,6 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
13643
13603
|
}
|
|
13644
13604
|
return Promise.resolve(null);
|
|
13645
13605
|
}
|
|
13646
|
-
getPrintableProductionOrders(request) {
|
|
13647
|
-
let url_ = this.baseUrl + "/mes/productionorders/printable";
|
|
13648
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
13649
|
-
const content_ = JSON.stringify(request);
|
|
13650
|
-
let options_ = {
|
|
13651
|
-
body: content_,
|
|
13652
|
-
method: "POST",
|
|
13653
|
-
headers: {
|
|
13654
|
-
"Content-Type": "application/json",
|
|
13655
|
-
"Accept": "application/json"
|
|
13656
|
-
}
|
|
13657
|
-
};
|
|
13658
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
13659
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
13660
|
-
}).then((_response) => {
|
|
13661
|
-
return this.processGetPrintableProductionOrders(_response);
|
|
13662
|
-
});
|
|
13663
|
-
}
|
|
13664
|
-
processGetPrintableProductionOrders(response) {
|
|
13665
|
-
const status = response.status;
|
|
13666
|
-
let _headers = {};
|
|
13667
|
-
if (response.headers && response.headers.forEach) {
|
|
13668
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
13669
|
-
}
|
|
13670
|
-
;
|
|
13671
|
-
if (status === 200) {
|
|
13672
|
-
return response.text().then((_responseText) => {
|
|
13673
|
-
let result200 = null;
|
|
13674
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13675
|
-
result200 = DownloadDto.fromJS(resultData200);
|
|
13676
|
-
return result200;
|
|
13677
|
-
});
|
|
13678
|
-
}
|
|
13679
|
-
else if (status !== 200 && status !== 204) {
|
|
13680
|
-
return response.text().then((_responseText) => {
|
|
13681
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
13682
|
-
});
|
|
13683
|
-
}
|
|
13684
|
-
return Promise.resolve(null);
|
|
13685
|
-
}
|
|
13686
13606
|
getPrintableLabels(request) {
|
|
13687
13607
|
let url_ = this.baseUrl + "/mes/labels/printable";
|
|
13688
13608
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -20426,7 +20346,6 @@ export class UserDetailsDto {
|
|
|
20426
20346
|
this.customerId = _data["customerId"];
|
|
20427
20347
|
this.isExternalUser = _data["isExternalUser"];
|
|
20428
20348
|
this.isBetaTester = _data["isBetaTester"];
|
|
20429
|
-
this.engageMoveAutoPrompt = _data["engageMoveAutoPrompt"];
|
|
20430
20349
|
this.hasAccessToIgnos = _data["hasAccessToIgnos"];
|
|
20431
20350
|
}
|
|
20432
20351
|
}
|
|
@@ -20452,7 +20371,6 @@ export class UserDetailsDto {
|
|
|
20452
20371
|
data["customerId"] = this.customerId;
|
|
20453
20372
|
data["isExternalUser"] = this.isExternalUser;
|
|
20454
20373
|
data["isBetaTester"] = this.isBetaTester;
|
|
20455
|
-
data["engageMoveAutoPrompt"] = this.engageMoveAutoPrompt;
|
|
20456
20374
|
data["hasAccessToIgnos"] = this.hasAccessToIgnos;
|
|
20457
20375
|
return data;
|
|
20458
20376
|
}
|
|
@@ -20473,7 +20391,6 @@ export class UserDto {
|
|
|
20473
20391
|
this.upn = _data["upn"];
|
|
20474
20392
|
this.email = _data["email"];
|
|
20475
20393
|
this.isBetaTester = _data["isBetaTester"];
|
|
20476
|
-
this.engageMoveAutoPrompt = _data["engageMoveAutoPrompt"];
|
|
20477
20394
|
}
|
|
20478
20395
|
}
|
|
20479
20396
|
static fromJS(data) {
|
|
@@ -20489,11 +20406,10 @@ export class UserDto {
|
|
|
20489
20406
|
data["upn"] = this.upn;
|
|
20490
20407
|
data["email"] = this.email;
|
|
20491
20408
|
data["isBetaTester"] = this.isBetaTester;
|
|
20492
|
-
data["engageMoveAutoPrompt"] = this.engageMoveAutoPrompt;
|
|
20493
20409
|
return data;
|
|
20494
20410
|
}
|
|
20495
20411
|
}
|
|
20496
|
-
export class
|
|
20412
|
+
export class SetIsBetaTesterRequest {
|
|
20497
20413
|
constructor(data) {
|
|
20498
20414
|
if (data) {
|
|
20499
20415
|
for (var property in data) {
|
|
@@ -20505,19 +20421,17 @@ export class SetUserConfigurationRequest {
|
|
|
20505
20421
|
init(_data) {
|
|
20506
20422
|
if (_data) {
|
|
20507
20423
|
this.isBetaTester = _data["isBetaTester"];
|
|
20508
|
-
this.engageMoveAutoPrompt = _data["engageMoveAutoPrompt"];
|
|
20509
20424
|
}
|
|
20510
20425
|
}
|
|
20511
20426
|
static fromJS(data) {
|
|
20512
20427
|
data = typeof data === 'object' ? data : {};
|
|
20513
|
-
let result = new
|
|
20428
|
+
let result = new SetIsBetaTesterRequest();
|
|
20514
20429
|
result.init(data);
|
|
20515
20430
|
return result;
|
|
20516
20431
|
}
|
|
20517
20432
|
toJSON(data) {
|
|
20518
20433
|
data = typeof data === 'object' ? data : {};
|
|
20519
20434
|
data["isBetaTester"] = this.isBetaTester;
|
|
20520
|
-
data["engageMoveAutoPrompt"] = this.engageMoveAutoPrompt;
|
|
20521
20435
|
return data;
|
|
20522
20436
|
}
|
|
20523
20437
|
}
|
|
@@ -33114,49 +33028,6 @@ export class ProductionOrderOperationActivityDto {
|
|
|
33114
33028
|
return data;
|
|
33115
33029
|
}
|
|
33116
33030
|
}
|
|
33117
|
-
export class GenerateProductionOrderPdf {
|
|
33118
|
-
constructor(data) {
|
|
33119
|
-
if (data) {
|
|
33120
|
-
for (var property in data) {
|
|
33121
|
-
if (data.hasOwnProperty(property))
|
|
33122
|
-
this[property] = data[property];
|
|
33123
|
-
}
|
|
33124
|
-
}
|
|
33125
|
-
if (!data) {
|
|
33126
|
-
this.productionOrderNumbers = [];
|
|
33127
|
-
}
|
|
33128
|
-
}
|
|
33129
|
-
init(_data) {
|
|
33130
|
-
if (_data) {
|
|
33131
|
-
if (Array.isArray(_data["productionOrderNumbers"])) {
|
|
33132
|
-
this.productionOrderNumbers = [];
|
|
33133
|
-
for (let item of _data["productionOrderNumbers"])
|
|
33134
|
-
this.productionOrderNumbers.push(item);
|
|
33135
|
-
}
|
|
33136
|
-
this.type = _data["type"];
|
|
33137
|
-
this.includeOperations = _data["includeOperations"];
|
|
33138
|
-
this.includeDrawing = _data["includeDrawing"];
|
|
33139
|
-
}
|
|
33140
|
-
}
|
|
33141
|
-
static fromJS(data) {
|
|
33142
|
-
data = typeof data === 'object' ? data : {};
|
|
33143
|
-
let result = new GenerateProductionOrderPdf();
|
|
33144
|
-
result.init(data);
|
|
33145
|
-
return result;
|
|
33146
|
-
}
|
|
33147
|
-
toJSON(data) {
|
|
33148
|
-
data = typeof data === 'object' ? data : {};
|
|
33149
|
-
if (Array.isArray(this.productionOrderNumbers)) {
|
|
33150
|
-
data["productionOrderNumbers"] = [];
|
|
33151
|
-
for (let item of this.productionOrderNumbers)
|
|
33152
|
-
data["productionOrderNumbers"].push(item);
|
|
33153
|
-
}
|
|
33154
|
-
data["type"] = this.type;
|
|
33155
|
-
data["includeOperations"] = this.includeOperations;
|
|
33156
|
-
data["includeDrawing"] = this.includeDrawing;
|
|
33157
|
-
return data;
|
|
33158
|
-
}
|
|
33159
|
-
}
|
|
33160
33031
|
export class GeneratePrintableLabel {
|
|
33161
33032
|
constructor(data) {
|
|
33162
33033
|
if (data) {
|
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
|
+
setIsBetaTester(request: SetIsBetaTesterRequest): 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
|
+
setIsBetaTester(request: SetIsBetaTesterRequest): 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.processSetIsBetaTester(_response);
|
|
1156
1156
|
});
|
|
1157
1157
|
}
|
|
1158
1158
|
|
|
1159
|
-
protected
|
|
1159
|
+
protected processSetIsBetaTester(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) {
|
|
@@ -13417,8 +13417,6 @@ export interface IMoveTrackingClient {
|
|
|
13417
13417
|
|
|
13418
13418
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
13419
13419
|
|
|
13420
|
-
createLabel(trackingIds: string[]): Promise<DownloadDto>;
|
|
13421
|
-
|
|
13422
13420
|
createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto>;
|
|
13423
13421
|
}
|
|
13424
13422
|
|
|
@@ -13766,46 +13764,6 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
13766
13764
|
return Promise.resolve<void>(null as any);
|
|
13767
13765
|
}
|
|
13768
13766
|
|
|
13769
|
-
createLabel(trackingIds: string[]): Promise<DownloadDto> {
|
|
13770
|
-
let url_ = this.baseUrl + "/move/tracking/label";
|
|
13771
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
13772
|
-
|
|
13773
|
-
const content_ = JSON.stringify(trackingIds);
|
|
13774
|
-
|
|
13775
|
-
let options_: RequestInit = {
|
|
13776
|
-
body: content_,
|
|
13777
|
-
method: "POST",
|
|
13778
|
-
headers: {
|
|
13779
|
-
"Content-Type": "application/json",
|
|
13780
|
-
"Accept": "application/json"
|
|
13781
|
-
}
|
|
13782
|
-
};
|
|
13783
|
-
|
|
13784
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
13785
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
13786
|
-
}).then((_response: Response) => {
|
|
13787
|
-
return this.processCreateLabel(_response);
|
|
13788
|
-
});
|
|
13789
|
-
}
|
|
13790
|
-
|
|
13791
|
-
protected processCreateLabel(response: Response): Promise<DownloadDto> {
|
|
13792
|
-
const status = response.status;
|
|
13793
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
13794
|
-
if (status === 200) {
|
|
13795
|
-
return response.text().then((_responseText) => {
|
|
13796
|
-
let result200: any = null;
|
|
13797
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13798
|
-
result200 = DownloadDto.fromJS(resultData200);
|
|
13799
|
-
return result200;
|
|
13800
|
-
});
|
|
13801
|
-
} else if (status !== 200 && status !== 204) {
|
|
13802
|
-
return response.text().then((_responseText) => {
|
|
13803
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
13804
|
-
});
|
|
13805
|
-
}
|
|
13806
|
-
return Promise.resolve<DownloadDto>(null as any);
|
|
13807
|
-
}
|
|
13808
|
-
|
|
13809
13767
|
createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto> {
|
|
13810
13768
|
let url_ = this.baseUrl + "/move/tracking/labelupdate";
|
|
13811
13769
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -14265,8 +14223,6 @@ export interface IMesProductionOrderClient {
|
|
|
14265
14223
|
|
|
14266
14224
|
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
|
|
14267
14225
|
|
|
14268
|
-
getPrintableProductionOrders(request: GenerateProductionOrderPdf): Promise<DownloadDto>;
|
|
14269
|
-
|
|
14270
14226
|
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
14271
14227
|
}
|
|
14272
14228
|
|
|
@@ -14590,46 +14546,6 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
|
|
|
14590
14546
|
return Promise.resolve<ProductionOrderOperationActivityDto[]>(null as any);
|
|
14591
14547
|
}
|
|
14592
14548
|
|
|
14593
|
-
getPrintableProductionOrders(request: GenerateProductionOrderPdf): Promise<DownloadDto> {
|
|
14594
|
-
let url_ = this.baseUrl + "/mes/productionorders/printable";
|
|
14595
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
14596
|
-
|
|
14597
|
-
const content_ = JSON.stringify(request);
|
|
14598
|
-
|
|
14599
|
-
let options_: RequestInit = {
|
|
14600
|
-
body: content_,
|
|
14601
|
-
method: "POST",
|
|
14602
|
-
headers: {
|
|
14603
|
-
"Content-Type": "application/json",
|
|
14604
|
-
"Accept": "application/json"
|
|
14605
|
-
}
|
|
14606
|
-
};
|
|
14607
|
-
|
|
14608
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
14609
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
14610
|
-
}).then((_response: Response) => {
|
|
14611
|
-
return this.processGetPrintableProductionOrders(_response);
|
|
14612
|
-
});
|
|
14613
|
-
}
|
|
14614
|
-
|
|
14615
|
-
protected processGetPrintableProductionOrders(response: Response): Promise<DownloadDto> {
|
|
14616
|
-
const status = response.status;
|
|
14617
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
14618
|
-
if (status === 200) {
|
|
14619
|
-
return response.text().then((_responseText) => {
|
|
14620
|
-
let result200: any = null;
|
|
14621
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14622
|
-
result200 = DownloadDto.fromJS(resultData200);
|
|
14623
|
-
return result200;
|
|
14624
|
-
});
|
|
14625
|
-
} else if (status !== 200 && status !== 204) {
|
|
14626
|
-
return response.text().then((_responseText) => {
|
|
14627
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14628
|
-
});
|
|
14629
|
-
}
|
|
14630
|
-
return Promise.resolve<DownloadDto>(null as any);
|
|
14631
|
-
}
|
|
14632
|
-
|
|
14633
14549
|
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto> {
|
|
14634
14550
|
let url_ = this.baseUrl + "/mes/labels/printable";
|
|
14635
14551
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -22105,7 +22021,6 @@ export class UserDetailsDto implements IUserDetailsDto {
|
|
|
22105
22021
|
customerId?: string | null;
|
|
22106
22022
|
isExternalUser?: boolean;
|
|
22107
22023
|
isBetaTester?: boolean | null;
|
|
22108
|
-
engageMoveAutoPrompt?: boolean | null;
|
|
22109
22024
|
hasAccessToIgnos?: boolean;
|
|
22110
22025
|
|
|
22111
22026
|
constructor(data?: IUserDetailsDto) {
|
|
@@ -22133,7 +22048,6 @@ export class UserDetailsDto implements IUserDetailsDto {
|
|
|
22133
22048
|
this.customerId = _data["customerId"];
|
|
22134
22049
|
this.isExternalUser = _data["isExternalUser"];
|
|
22135
22050
|
this.isBetaTester = _data["isBetaTester"];
|
|
22136
|
-
this.engageMoveAutoPrompt = _data["engageMoveAutoPrompt"];
|
|
22137
22051
|
this.hasAccessToIgnos = _data["hasAccessToIgnos"];
|
|
22138
22052
|
}
|
|
22139
22053
|
}
|
|
@@ -22161,7 +22075,6 @@ export class UserDetailsDto implements IUserDetailsDto {
|
|
|
22161
22075
|
data["customerId"] = this.customerId;
|
|
22162
22076
|
data["isExternalUser"] = this.isExternalUser;
|
|
22163
22077
|
data["isBetaTester"] = this.isBetaTester;
|
|
22164
|
-
data["engageMoveAutoPrompt"] = this.engageMoveAutoPrompt;
|
|
22165
22078
|
data["hasAccessToIgnos"] = this.hasAccessToIgnos;
|
|
22166
22079
|
return data;
|
|
22167
22080
|
}
|
|
@@ -22178,7 +22091,6 @@ export interface IUserDetailsDto {
|
|
|
22178
22091
|
customerId?: string | null;
|
|
22179
22092
|
isExternalUser?: boolean;
|
|
22180
22093
|
isBetaTester?: boolean | null;
|
|
22181
|
-
engageMoveAutoPrompt?: boolean | null;
|
|
22182
22094
|
hasAccessToIgnos?: boolean;
|
|
22183
22095
|
}
|
|
22184
22096
|
|
|
@@ -22188,7 +22100,6 @@ export class UserDto implements IUserDto {
|
|
|
22188
22100
|
upn?: string | null;
|
|
22189
22101
|
email?: string | null;
|
|
22190
22102
|
isBetaTester?: boolean | null;
|
|
22191
|
-
engageMoveAutoPrompt?: boolean | null;
|
|
22192
22103
|
|
|
22193
22104
|
constructor(data?: IUserDto) {
|
|
22194
22105
|
if (data) {
|
|
@@ -22206,7 +22117,6 @@ export class UserDto implements IUserDto {
|
|
|
22206
22117
|
this.upn = _data["upn"];
|
|
22207
22118
|
this.email = _data["email"];
|
|
22208
22119
|
this.isBetaTester = _data["isBetaTester"];
|
|
22209
|
-
this.engageMoveAutoPrompt = _data["engageMoveAutoPrompt"];
|
|
22210
22120
|
}
|
|
22211
22121
|
}
|
|
22212
22122
|
|
|
@@ -22224,7 +22134,6 @@ export class UserDto implements IUserDto {
|
|
|
22224
22134
|
data["upn"] = this.upn;
|
|
22225
22135
|
data["email"] = this.email;
|
|
22226
22136
|
data["isBetaTester"] = this.isBetaTester;
|
|
22227
|
-
data["engageMoveAutoPrompt"] = this.engageMoveAutoPrompt;
|
|
22228
22137
|
return data;
|
|
22229
22138
|
}
|
|
22230
22139
|
}
|
|
@@ -22235,14 +22144,12 @@ export interface IUserDto {
|
|
|
22235
22144
|
upn?: string | null;
|
|
22236
22145
|
email?: string | null;
|
|
22237
22146
|
isBetaTester?: boolean | null;
|
|
22238
|
-
engageMoveAutoPrompt?: boolean | null;
|
|
22239
22147
|
}
|
|
22240
22148
|
|
|
22241
|
-
export class
|
|
22242
|
-
isBetaTester
|
|
22243
|
-
engageMoveAutoPrompt?: boolean | null;
|
|
22149
|
+
export class SetIsBetaTesterRequest implements ISetIsBetaTesterRequest {
|
|
22150
|
+
isBetaTester!: boolean;
|
|
22244
22151
|
|
|
22245
|
-
constructor(data?:
|
|
22152
|
+
constructor(data?: ISetIsBetaTesterRequest) {
|
|
22246
22153
|
if (data) {
|
|
22247
22154
|
for (var property in data) {
|
|
22248
22155
|
if (data.hasOwnProperty(property))
|
|
@@ -22254,13 +22161,12 @@ export class SetUserConfigurationRequest implements ISetUserConfigurationRequest
|
|
|
22254
22161
|
init(_data?: any) {
|
|
22255
22162
|
if (_data) {
|
|
22256
22163
|
this.isBetaTester = _data["isBetaTester"];
|
|
22257
|
-
this.engageMoveAutoPrompt = _data["engageMoveAutoPrompt"];
|
|
22258
22164
|
}
|
|
22259
22165
|
}
|
|
22260
22166
|
|
|
22261
|
-
static fromJS(data: any):
|
|
22167
|
+
static fromJS(data: any): SetIsBetaTesterRequest {
|
|
22262
22168
|
data = typeof data === 'object' ? data : {};
|
|
22263
|
-
let result = new
|
|
22169
|
+
let result = new SetIsBetaTesterRequest();
|
|
22264
22170
|
result.init(data);
|
|
22265
22171
|
return result;
|
|
22266
22172
|
}
|
|
@@ -22268,14 +22174,12 @@ export class SetUserConfigurationRequest implements ISetUserConfigurationRequest
|
|
|
22268
22174
|
toJSON(data?: any) {
|
|
22269
22175
|
data = typeof data === 'object' ? data : {};
|
|
22270
22176
|
data["isBetaTester"] = this.isBetaTester;
|
|
22271
|
-
data["engageMoveAutoPrompt"] = this.engageMoveAutoPrompt;
|
|
22272
22177
|
return data;
|
|
22273
22178
|
}
|
|
22274
22179
|
}
|
|
22275
22180
|
|
|
22276
|
-
export interface
|
|
22277
|
-
isBetaTester
|
|
22278
|
-
engageMoveAutoPrompt?: boolean | null;
|
|
22181
|
+
export interface ISetIsBetaTesterRequest {
|
|
22182
|
+
isBetaTester: boolean;
|
|
22279
22183
|
}
|
|
22280
22184
|
|
|
22281
22185
|
export class PagedResultOfUserDto implements IPagedResultOfUserDto {
|
|
@@ -41133,67 +41037,6 @@ export interface IProductionOrderOperationActivityDto {
|
|
|
41133
41037
|
scrappedQuantity?: number | null;
|
|
41134
41038
|
}
|
|
41135
41039
|
|
|
41136
|
-
export class GenerateProductionOrderPdf implements IGenerateProductionOrderPdf {
|
|
41137
|
-
productionOrderNumbers!: string[];
|
|
41138
|
-
type!: ProductionOrderPdfType;
|
|
41139
|
-
includeOperations!: boolean;
|
|
41140
|
-
includeDrawing!: boolean;
|
|
41141
|
-
|
|
41142
|
-
constructor(data?: IGenerateProductionOrderPdf) {
|
|
41143
|
-
if (data) {
|
|
41144
|
-
for (var property in data) {
|
|
41145
|
-
if (data.hasOwnProperty(property))
|
|
41146
|
-
(<any>this)[property] = (<any>data)[property];
|
|
41147
|
-
}
|
|
41148
|
-
}
|
|
41149
|
-
if (!data) {
|
|
41150
|
-
this.productionOrderNumbers = [];
|
|
41151
|
-
}
|
|
41152
|
-
}
|
|
41153
|
-
|
|
41154
|
-
init(_data?: any) {
|
|
41155
|
-
if (_data) {
|
|
41156
|
-
if (Array.isArray(_data["productionOrderNumbers"])) {
|
|
41157
|
-
this.productionOrderNumbers = [] as any;
|
|
41158
|
-
for (let item of _data["productionOrderNumbers"])
|
|
41159
|
-
this.productionOrderNumbers!.push(item);
|
|
41160
|
-
}
|
|
41161
|
-
this.type = _data["type"];
|
|
41162
|
-
this.includeOperations = _data["includeOperations"];
|
|
41163
|
-
this.includeDrawing = _data["includeDrawing"];
|
|
41164
|
-
}
|
|
41165
|
-
}
|
|
41166
|
-
|
|
41167
|
-
static fromJS(data: any): GenerateProductionOrderPdf {
|
|
41168
|
-
data = typeof data === 'object' ? data : {};
|
|
41169
|
-
let result = new GenerateProductionOrderPdf();
|
|
41170
|
-
result.init(data);
|
|
41171
|
-
return result;
|
|
41172
|
-
}
|
|
41173
|
-
|
|
41174
|
-
toJSON(data?: any) {
|
|
41175
|
-
data = typeof data === 'object' ? data : {};
|
|
41176
|
-
if (Array.isArray(this.productionOrderNumbers)) {
|
|
41177
|
-
data["productionOrderNumbers"] = [];
|
|
41178
|
-
for (let item of this.productionOrderNumbers)
|
|
41179
|
-
data["productionOrderNumbers"].push(item);
|
|
41180
|
-
}
|
|
41181
|
-
data["type"] = this.type;
|
|
41182
|
-
data["includeOperations"] = this.includeOperations;
|
|
41183
|
-
data["includeDrawing"] = this.includeDrawing;
|
|
41184
|
-
return data;
|
|
41185
|
-
}
|
|
41186
|
-
}
|
|
41187
|
-
|
|
41188
|
-
export interface IGenerateProductionOrderPdf {
|
|
41189
|
-
productionOrderNumbers: string[];
|
|
41190
|
-
type: ProductionOrderPdfType;
|
|
41191
|
-
includeOperations: boolean;
|
|
41192
|
-
includeDrawing: boolean;
|
|
41193
|
-
}
|
|
41194
|
-
|
|
41195
|
-
export type ProductionOrderPdfType = "Rich" | "Compact";
|
|
41196
|
-
|
|
41197
41040
|
export class GeneratePrintableLabel implements IGeneratePrintableLabel {
|
|
41198
41041
|
labelIds!: LabelId[];
|
|
41199
41042
|
|