@ignos/api-client 20240910.0.10291-alpha → 20240910.0.10302
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 +4 -53
- package/lib/ignosportal-api.js +11 -196
- package/package.json +1 -1
- package/src/ignosportal-api.ts +14 -248
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1481,7 +1481,7 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
|
|
|
1481
1481
|
}
|
|
1482
1482
|
export interface IMoveLocationsClient {
|
|
1483
1483
|
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]>;
|
|
1484
|
-
suggestionsLocations(
|
|
1484
|
+
suggestionsLocations(locationProfiles: LocationProfileDto[] | null | undefined, count: number | undefined): Promise<LocationDto[]>;
|
|
1485
1485
|
}
|
|
1486
1486
|
export declare class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocationsClient {
|
|
1487
1487
|
private http;
|
|
@@ -1492,7 +1492,7 @@ export declare class MoveLocationsClient extends AuthorizedApiBase implements IM
|
|
|
1492
1492
|
});
|
|
1493
1493
|
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]>;
|
|
1494
1494
|
protected processSearchLocations(response: Response): Promise<LocationDto[]>;
|
|
1495
|
-
suggestionsLocations(
|
|
1495
|
+
suggestionsLocations(locationProfiles: LocationProfileDto[] | null | undefined, count: number | undefined): Promise<LocationDto[]>;
|
|
1496
1496
|
protected processSuggestionsLocations(response: Response): Promise<LocationDto[]>;
|
|
1497
1497
|
}
|
|
1498
1498
|
export interface IMoveMaterialsClient {
|
|
@@ -1646,7 +1646,6 @@ export interface IMesProductionOrderClient {
|
|
|
1646
1646
|
postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
|
|
1647
1647
|
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
|
|
1648
1648
|
getPrintableProductionOrders(request: GenerateProductionOrderPdf): Promise<DownloadDto>;
|
|
1649
|
-
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
1650
1649
|
}
|
|
1651
1650
|
export declare class MesProductionOrderClient extends AuthorizedApiBase implements IMesProductionOrderClient {
|
|
1652
1651
|
private http;
|
|
@@ -1671,8 +1670,6 @@ export declare class MesProductionOrderClient extends AuthorizedApiBase implemen
|
|
|
1671
1670
|
protected processListProductionOrderActivities(response: Response): Promise<ProductionOrderOperationActivityDto[]>;
|
|
1672
1671
|
getPrintableProductionOrders(request: GenerateProductionOrderPdf): Promise<DownloadDto>;
|
|
1673
1672
|
protected processGetPrintableProductionOrders(response: Response): Promise<DownloadDto>;
|
|
1674
|
-
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
1675
|
-
protected processGetPrintableLabels(response: Response): Promise<DownloadDto>;
|
|
1676
1673
|
}
|
|
1677
1674
|
export interface IMesProductionScheduleClient {
|
|
1678
1675
|
listProductionScheduleOperations(resourceGroup: string | null | undefined, resourceId: string | null | undefined, pageSize: number | undefined, continuationToken: string | null | undefined, workOrderId: string | null | undefined, projectId: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, material: string | null | undefined): Promise<PagedResultOfProductionScheduleOperationDto>;
|
|
@@ -8137,6 +8134,7 @@ export declare class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
|
8137
8134
|
trackingId: string;
|
|
8138
8135
|
fromLocationId: string;
|
|
8139
8136
|
toLocationId: string;
|
|
8137
|
+
transportKind: TransportKindDto;
|
|
8140
8138
|
comment?: string | null;
|
|
8141
8139
|
constructor(data?: IBookingItemRequestDto);
|
|
8142
8140
|
init(_data?: any): void;
|
|
@@ -8148,10 +8146,10 @@ export interface IBookingItemRequestDto {
|
|
|
8148
8146
|
trackingId: string;
|
|
8149
8147
|
fromLocationId: string;
|
|
8150
8148
|
toLocationId: string;
|
|
8149
|
+
transportKind: TransportKindDto;
|
|
8151
8150
|
comment?: string | null;
|
|
8152
8151
|
}
|
|
8153
8152
|
export declare class BookingTransportRequestDto implements IBookingTransportRequestDto {
|
|
8154
|
-
transportKind: TransportKindDto;
|
|
8155
8153
|
items: BookingItemRequestDto[];
|
|
8156
8154
|
constructor(data?: IBookingTransportRequestDto);
|
|
8157
8155
|
init(_data?: any): void;
|
|
@@ -8159,7 +8157,6 @@ export declare class BookingTransportRequestDto implements IBookingTransportRequ
|
|
|
8159
8157
|
toJSON(data?: any): any;
|
|
8160
8158
|
}
|
|
8161
8159
|
export interface IBookingTransportRequestDto {
|
|
8162
|
-
transportKind: TransportKindDto;
|
|
8163
8160
|
items: BookingItemRequestDto[];
|
|
8164
8161
|
}
|
|
8165
8162
|
export declare class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
|
|
@@ -8199,30 +8196,6 @@ export interface IBookingStatusUpdateDto {
|
|
|
8199
8196
|
deliveryExceptionComment?: string | null;
|
|
8200
8197
|
}
|
|
8201
8198
|
export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Environment" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack" | "User";
|
|
8202
|
-
export declare class LocationSuggestionsDto implements ILocationSuggestionsDto {
|
|
8203
|
-
items: LocationSuggestionsItemDto[];
|
|
8204
|
-
locationKindFilter?: LocationKindDto[] | null;
|
|
8205
|
-
locationProfiles?: LocationProfileDto[] | null;
|
|
8206
|
-
constructor(data?: ILocationSuggestionsDto);
|
|
8207
|
-
init(_data?: any): void;
|
|
8208
|
-
static fromJS(data: any): LocationSuggestionsDto;
|
|
8209
|
-
toJSON(data?: any): any;
|
|
8210
|
-
}
|
|
8211
|
-
export interface ILocationSuggestionsDto {
|
|
8212
|
-
items: LocationSuggestionsItemDto[];
|
|
8213
|
-
locationKindFilter?: LocationKindDto[] | null;
|
|
8214
|
-
locationProfiles?: LocationProfileDto[] | null;
|
|
8215
|
-
}
|
|
8216
|
-
export declare class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
|
|
8217
|
-
parcelId: string;
|
|
8218
|
-
constructor(data?: ILocationSuggestionsItemDto);
|
|
8219
|
-
init(_data?: any): void;
|
|
8220
|
-
static fromJS(data: any): LocationSuggestionsItemDto;
|
|
8221
|
-
toJSON(data?: any): any;
|
|
8222
|
-
}
|
|
8223
|
-
export interface ILocationSuggestionsItemDto {
|
|
8224
|
-
parcelId: string;
|
|
8225
|
-
}
|
|
8226
8199
|
export declare class MaterialDesciptionDto implements IMaterialDesciptionDto {
|
|
8227
8200
|
materialId: string;
|
|
8228
8201
|
materialName: string;
|
|
@@ -9073,28 +9046,6 @@ export interface IGenerateProductionOrderPdf {
|
|
|
9073
9046
|
includeDrawing: boolean;
|
|
9074
9047
|
}
|
|
9075
9048
|
export type ProductionOrderPdfType = "Rich" | "Compact";
|
|
9076
|
-
export declare class GeneratePrintableLabel implements IGeneratePrintableLabel {
|
|
9077
|
-
labelIds: LabelId[];
|
|
9078
|
-
constructor(data?: IGeneratePrintableLabel);
|
|
9079
|
-
init(_data?: any): void;
|
|
9080
|
-
static fromJS(data: any): GeneratePrintableLabel;
|
|
9081
|
-
toJSON(data?: any): any;
|
|
9082
|
-
}
|
|
9083
|
-
export interface IGeneratePrintableLabel {
|
|
9084
|
-
labelIds: LabelId[];
|
|
9085
|
-
}
|
|
9086
|
-
export declare class LabelId implements ILabelId {
|
|
9087
|
-
parcelId: string;
|
|
9088
|
-
trackingId?: string | null;
|
|
9089
|
-
constructor(data?: ILabelId);
|
|
9090
|
-
init(_data?: any): void;
|
|
9091
|
-
static fromJS(data: any): LabelId;
|
|
9092
|
-
toJSON(data?: any): any;
|
|
9093
|
-
}
|
|
9094
|
-
export interface ILabelId {
|
|
9095
|
-
parcelId: string;
|
|
9096
|
-
trackingId?: string | null;
|
|
9097
|
-
}
|
|
9098
9049
|
export declare class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
|
|
9099
9050
|
results: ProductionScheduleOperationDto[];
|
|
9100
9051
|
continuationToken?: string | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -12231,15 +12231,18 @@ export class MoveLocationsClient extends AuthorizedApiBase {
|
|
|
12231
12231
|
}
|
|
12232
12232
|
return Promise.resolve(null);
|
|
12233
12233
|
}
|
|
12234
|
-
suggestionsLocations(
|
|
12235
|
-
let url_ = this.baseUrl + "/move/locations/suggestions";
|
|
12234
|
+
suggestionsLocations(locationProfiles, count) {
|
|
12235
|
+
let url_ = this.baseUrl + "/move/locations/suggestions?";
|
|
12236
|
+
if (locationProfiles !== undefined && locationProfiles !== null)
|
|
12237
|
+
locationProfiles && locationProfiles.forEach(item => { url_ += "locationProfiles=" + encodeURIComponent("" + item) + "&"; });
|
|
12238
|
+
if (count === null)
|
|
12239
|
+
throw new Error("The parameter 'count' cannot be null.");
|
|
12240
|
+
else if (count !== undefined)
|
|
12241
|
+
url_ += "count=" + encodeURIComponent("" + count) + "&";
|
|
12236
12242
|
url_ = url_.replace(/[?&]$/, "");
|
|
12237
|
-
const content_ = JSON.stringify(locationSuggestions);
|
|
12238
12243
|
let options_ = {
|
|
12239
|
-
|
|
12240
|
-
method: "POST",
|
|
12244
|
+
method: "GET",
|
|
12241
12245
|
headers: {
|
|
12242
|
-
"Content-Type": "application/json",
|
|
12243
12246
|
"Accept": "application/json"
|
|
12244
12247
|
}
|
|
12245
12248
|
};
|
|
@@ -13680,46 +13683,6 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
13680
13683
|
}
|
|
13681
13684
|
return Promise.resolve(null);
|
|
13682
13685
|
}
|
|
13683
|
-
getPrintableLabels(request) {
|
|
13684
|
-
let url_ = this.baseUrl + "/mes/labels/printable";
|
|
13685
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
13686
|
-
const content_ = JSON.stringify(request);
|
|
13687
|
-
let options_ = {
|
|
13688
|
-
body: content_,
|
|
13689
|
-
method: "POST",
|
|
13690
|
-
headers: {
|
|
13691
|
-
"Content-Type": "application/json",
|
|
13692
|
-
"Accept": "application/json"
|
|
13693
|
-
}
|
|
13694
|
-
};
|
|
13695
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
13696
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
13697
|
-
}).then((_response) => {
|
|
13698
|
-
return this.processGetPrintableLabels(_response);
|
|
13699
|
-
});
|
|
13700
|
-
}
|
|
13701
|
-
processGetPrintableLabels(response) {
|
|
13702
|
-
const status = response.status;
|
|
13703
|
-
let _headers = {};
|
|
13704
|
-
if (response.headers && response.headers.forEach) {
|
|
13705
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
13706
|
-
}
|
|
13707
|
-
;
|
|
13708
|
-
if (status === 200) {
|
|
13709
|
-
return response.text().then((_responseText) => {
|
|
13710
|
-
let result200 = null;
|
|
13711
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13712
|
-
result200 = DownloadDto.fromJS(resultData200);
|
|
13713
|
-
return result200;
|
|
13714
|
-
});
|
|
13715
|
-
}
|
|
13716
|
-
else if (status !== 200 && status !== 204) {
|
|
13717
|
-
return response.text().then((_responseText) => {
|
|
13718
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
13719
|
-
});
|
|
13720
|
-
}
|
|
13721
|
-
return Promise.resolve(null);
|
|
13722
|
-
}
|
|
13723
13686
|
}
|
|
13724
13687
|
export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
13725
13688
|
constructor(configuration, baseUrl, http) {
|
|
@@ -31311,6 +31274,7 @@ export class BookingItemRequestDto {
|
|
|
31311
31274
|
this.trackingId = _data["trackingId"];
|
|
31312
31275
|
this.fromLocationId = _data["fromLocationId"];
|
|
31313
31276
|
this.toLocationId = _data["toLocationId"];
|
|
31277
|
+
this.transportKind = _data["transportKind"];
|
|
31314
31278
|
this.comment = _data["comment"];
|
|
31315
31279
|
}
|
|
31316
31280
|
}
|
|
@@ -31326,6 +31290,7 @@ export class BookingItemRequestDto {
|
|
|
31326
31290
|
data["trackingId"] = this.trackingId;
|
|
31327
31291
|
data["fromLocationId"] = this.fromLocationId;
|
|
31328
31292
|
data["toLocationId"] = this.toLocationId;
|
|
31293
|
+
data["transportKind"] = this.transportKind;
|
|
31329
31294
|
data["comment"] = this.comment;
|
|
31330
31295
|
return data;
|
|
31331
31296
|
}
|
|
@@ -31344,7 +31309,6 @@ export class BookingTransportRequestDto {
|
|
|
31344
31309
|
}
|
|
31345
31310
|
init(_data) {
|
|
31346
31311
|
if (_data) {
|
|
31347
|
-
this.transportKind = _data["transportKind"];
|
|
31348
31312
|
if (Array.isArray(_data["items"])) {
|
|
31349
31313
|
this.items = [];
|
|
31350
31314
|
for (let item of _data["items"])
|
|
@@ -31360,7 +31324,6 @@ export class BookingTransportRequestDto {
|
|
|
31360
31324
|
}
|
|
31361
31325
|
toJSON(data) {
|
|
31362
31326
|
data = typeof data === 'object' ? data : {};
|
|
31363
|
-
data["transportKind"] = this.transportKind;
|
|
31364
31327
|
if (Array.isArray(this.items)) {
|
|
31365
31328
|
data["items"] = [];
|
|
31366
31329
|
for (let item of this.items)
|
|
@@ -31437,89 +31400,6 @@ export class BookingStatusUpdateDto {
|
|
|
31437
31400
|
return data;
|
|
31438
31401
|
}
|
|
31439
31402
|
}
|
|
31440
|
-
export class LocationSuggestionsDto {
|
|
31441
|
-
constructor(data) {
|
|
31442
|
-
if (data) {
|
|
31443
|
-
for (var property in data) {
|
|
31444
|
-
if (data.hasOwnProperty(property))
|
|
31445
|
-
this[property] = data[property];
|
|
31446
|
-
}
|
|
31447
|
-
}
|
|
31448
|
-
if (!data) {
|
|
31449
|
-
this.items = [];
|
|
31450
|
-
}
|
|
31451
|
-
}
|
|
31452
|
-
init(_data) {
|
|
31453
|
-
if (_data) {
|
|
31454
|
-
if (Array.isArray(_data["items"])) {
|
|
31455
|
-
this.items = [];
|
|
31456
|
-
for (let item of _data["items"])
|
|
31457
|
-
this.items.push(LocationSuggestionsItemDto.fromJS(item));
|
|
31458
|
-
}
|
|
31459
|
-
if (Array.isArray(_data["locationKindFilter"])) {
|
|
31460
|
-
this.locationKindFilter = [];
|
|
31461
|
-
for (let item of _data["locationKindFilter"])
|
|
31462
|
-
this.locationKindFilter.push(item);
|
|
31463
|
-
}
|
|
31464
|
-
if (Array.isArray(_data["locationProfiles"])) {
|
|
31465
|
-
this.locationProfiles = [];
|
|
31466
|
-
for (let item of _data["locationProfiles"])
|
|
31467
|
-
this.locationProfiles.push(item);
|
|
31468
|
-
}
|
|
31469
|
-
}
|
|
31470
|
-
}
|
|
31471
|
-
static fromJS(data) {
|
|
31472
|
-
data = typeof data === 'object' ? data : {};
|
|
31473
|
-
let result = new LocationSuggestionsDto();
|
|
31474
|
-
result.init(data);
|
|
31475
|
-
return result;
|
|
31476
|
-
}
|
|
31477
|
-
toJSON(data) {
|
|
31478
|
-
data = typeof data === 'object' ? data : {};
|
|
31479
|
-
if (Array.isArray(this.items)) {
|
|
31480
|
-
data["items"] = [];
|
|
31481
|
-
for (let item of this.items)
|
|
31482
|
-
data["items"].push(item.toJSON());
|
|
31483
|
-
}
|
|
31484
|
-
if (Array.isArray(this.locationKindFilter)) {
|
|
31485
|
-
data["locationKindFilter"] = [];
|
|
31486
|
-
for (let item of this.locationKindFilter)
|
|
31487
|
-
data["locationKindFilter"].push(item);
|
|
31488
|
-
}
|
|
31489
|
-
if (Array.isArray(this.locationProfiles)) {
|
|
31490
|
-
data["locationProfiles"] = [];
|
|
31491
|
-
for (let item of this.locationProfiles)
|
|
31492
|
-
data["locationProfiles"].push(item);
|
|
31493
|
-
}
|
|
31494
|
-
return data;
|
|
31495
|
-
}
|
|
31496
|
-
}
|
|
31497
|
-
export class LocationSuggestionsItemDto {
|
|
31498
|
-
constructor(data) {
|
|
31499
|
-
if (data) {
|
|
31500
|
-
for (var property in data) {
|
|
31501
|
-
if (data.hasOwnProperty(property))
|
|
31502
|
-
this[property] = data[property];
|
|
31503
|
-
}
|
|
31504
|
-
}
|
|
31505
|
-
}
|
|
31506
|
-
init(_data) {
|
|
31507
|
-
if (_data) {
|
|
31508
|
-
this.parcelId = _data["parcelId"];
|
|
31509
|
-
}
|
|
31510
|
-
}
|
|
31511
|
-
static fromJS(data) {
|
|
31512
|
-
data = typeof data === 'object' ? data : {};
|
|
31513
|
-
let result = new LocationSuggestionsItemDto();
|
|
31514
|
-
result.init(data);
|
|
31515
|
-
return result;
|
|
31516
|
-
}
|
|
31517
|
-
toJSON(data) {
|
|
31518
|
-
data = typeof data === 'object' ? data : {};
|
|
31519
|
-
data["parcelId"] = this.parcelId;
|
|
31520
|
-
return data;
|
|
31521
|
-
}
|
|
31522
|
-
}
|
|
31523
31403
|
export class MaterialDesciptionDto {
|
|
31524
31404
|
constructor(data) {
|
|
31525
31405
|
if (data) {
|
|
@@ -33237,71 +33117,6 @@ export class GenerateProductionOrderPdf {
|
|
|
33237
33117
|
return data;
|
|
33238
33118
|
}
|
|
33239
33119
|
}
|
|
33240
|
-
export class GeneratePrintableLabel {
|
|
33241
|
-
constructor(data) {
|
|
33242
|
-
if (data) {
|
|
33243
|
-
for (var property in data) {
|
|
33244
|
-
if (data.hasOwnProperty(property))
|
|
33245
|
-
this[property] = data[property];
|
|
33246
|
-
}
|
|
33247
|
-
}
|
|
33248
|
-
if (!data) {
|
|
33249
|
-
this.labelIds = [];
|
|
33250
|
-
}
|
|
33251
|
-
}
|
|
33252
|
-
init(_data) {
|
|
33253
|
-
if (_data) {
|
|
33254
|
-
if (Array.isArray(_data["labelIds"])) {
|
|
33255
|
-
this.labelIds = [];
|
|
33256
|
-
for (let item of _data["labelIds"])
|
|
33257
|
-
this.labelIds.push(LabelId.fromJS(item));
|
|
33258
|
-
}
|
|
33259
|
-
}
|
|
33260
|
-
}
|
|
33261
|
-
static fromJS(data) {
|
|
33262
|
-
data = typeof data === 'object' ? data : {};
|
|
33263
|
-
let result = new GeneratePrintableLabel();
|
|
33264
|
-
result.init(data);
|
|
33265
|
-
return result;
|
|
33266
|
-
}
|
|
33267
|
-
toJSON(data) {
|
|
33268
|
-
data = typeof data === 'object' ? data : {};
|
|
33269
|
-
if (Array.isArray(this.labelIds)) {
|
|
33270
|
-
data["labelIds"] = [];
|
|
33271
|
-
for (let item of this.labelIds)
|
|
33272
|
-
data["labelIds"].push(item.toJSON());
|
|
33273
|
-
}
|
|
33274
|
-
return data;
|
|
33275
|
-
}
|
|
33276
|
-
}
|
|
33277
|
-
export class LabelId {
|
|
33278
|
-
constructor(data) {
|
|
33279
|
-
if (data) {
|
|
33280
|
-
for (var property in data) {
|
|
33281
|
-
if (data.hasOwnProperty(property))
|
|
33282
|
-
this[property] = data[property];
|
|
33283
|
-
}
|
|
33284
|
-
}
|
|
33285
|
-
}
|
|
33286
|
-
init(_data) {
|
|
33287
|
-
if (_data) {
|
|
33288
|
-
this.parcelId = _data["parcelId"];
|
|
33289
|
-
this.trackingId = _data["trackingId"];
|
|
33290
|
-
}
|
|
33291
|
-
}
|
|
33292
|
-
static fromJS(data) {
|
|
33293
|
-
data = typeof data === 'object' ? data : {};
|
|
33294
|
-
let result = new LabelId();
|
|
33295
|
-
result.init(data);
|
|
33296
|
-
return result;
|
|
33297
|
-
}
|
|
33298
|
-
toJSON(data) {
|
|
33299
|
-
data = typeof data === 'object' ? data : {};
|
|
33300
|
-
data["parcelId"] = this.parcelId;
|
|
33301
|
-
data["trackingId"] = this.trackingId;
|
|
33302
|
-
return data;
|
|
33303
|
-
}
|
|
33304
|
-
}
|
|
33305
33120
|
export class PagedResultOfProductionScheduleOperationDto {
|
|
33306
33121
|
constructor(data) {
|
|
33307
33122
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -13011,7 +13011,7 @@ export interface IMoveLocationsClient {
|
|
|
13011
13011
|
|
|
13012
13012
|
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]>;
|
|
13013
13013
|
|
|
13014
|
-
suggestionsLocations(
|
|
13014
|
+
suggestionsLocations(locationProfiles: LocationProfileDto[] | null | undefined, count: number | undefined): Promise<LocationDto[]>;
|
|
13015
13015
|
}
|
|
13016
13016
|
|
|
13017
13017
|
export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocationsClient {
|
|
@@ -13071,17 +13071,19 @@ export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocat
|
|
|
13071
13071
|
return Promise.resolve<LocationDto[]>(null as any);
|
|
13072
13072
|
}
|
|
13073
13073
|
|
|
13074
|
-
suggestionsLocations(
|
|
13075
|
-
let url_ = this.baseUrl + "/move/locations/suggestions";
|
|
13074
|
+
suggestionsLocations(locationProfiles: LocationProfileDto[] | null | undefined, count: number | undefined): Promise<LocationDto[]> {
|
|
13075
|
+
let url_ = this.baseUrl + "/move/locations/suggestions?";
|
|
13076
|
+
if (locationProfiles !== undefined && locationProfiles !== null)
|
|
13077
|
+
locationProfiles && locationProfiles.forEach(item => { url_ += "locationProfiles=" + encodeURIComponent("" + item) + "&"; });
|
|
13078
|
+
if (count === null)
|
|
13079
|
+
throw new Error("The parameter 'count' cannot be null.");
|
|
13080
|
+
else if (count !== undefined)
|
|
13081
|
+
url_ += "count=" + encodeURIComponent("" + count) + "&";
|
|
13076
13082
|
url_ = url_.replace(/[?&]$/, "");
|
|
13077
13083
|
|
|
13078
|
-
const content_ = JSON.stringify(locationSuggestions);
|
|
13079
|
-
|
|
13080
13084
|
let options_: RequestInit = {
|
|
13081
|
-
|
|
13082
|
-
method: "POST",
|
|
13085
|
+
method: "GET",
|
|
13083
13086
|
headers: {
|
|
13084
|
-
"Content-Type": "application/json",
|
|
13085
13087
|
"Accept": "application/json"
|
|
13086
13088
|
}
|
|
13087
13089
|
};
|
|
@@ -14264,8 +14266,6 @@ export interface IMesProductionOrderClient {
|
|
|
14264
14266
|
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
|
|
14265
14267
|
|
|
14266
14268
|
getPrintableProductionOrders(request: GenerateProductionOrderPdf): Promise<DownloadDto>;
|
|
14267
|
-
|
|
14268
|
-
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
14269
14269
|
}
|
|
14270
14270
|
|
|
14271
14271
|
export class MesProductionOrderClient extends AuthorizedApiBase implements IMesProductionOrderClient {
|
|
@@ -14627,46 +14627,6 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
|
|
|
14627
14627
|
}
|
|
14628
14628
|
return Promise.resolve<DownloadDto>(null as any);
|
|
14629
14629
|
}
|
|
14630
|
-
|
|
14631
|
-
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto> {
|
|
14632
|
-
let url_ = this.baseUrl + "/mes/labels/printable";
|
|
14633
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
14634
|
-
|
|
14635
|
-
const content_ = JSON.stringify(request);
|
|
14636
|
-
|
|
14637
|
-
let options_: RequestInit = {
|
|
14638
|
-
body: content_,
|
|
14639
|
-
method: "POST",
|
|
14640
|
-
headers: {
|
|
14641
|
-
"Content-Type": "application/json",
|
|
14642
|
-
"Accept": "application/json"
|
|
14643
|
-
}
|
|
14644
|
-
};
|
|
14645
|
-
|
|
14646
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
14647
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
14648
|
-
}).then((_response: Response) => {
|
|
14649
|
-
return this.processGetPrintableLabels(_response);
|
|
14650
|
-
});
|
|
14651
|
-
}
|
|
14652
|
-
|
|
14653
|
-
protected processGetPrintableLabels(response: Response): Promise<DownloadDto> {
|
|
14654
|
-
const status = response.status;
|
|
14655
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
14656
|
-
if (status === 200) {
|
|
14657
|
-
return response.text().then((_responseText) => {
|
|
14658
|
-
let result200: any = null;
|
|
14659
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14660
|
-
result200 = DownloadDto.fromJS(resultData200);
|
|
14661
|
-
return result200;
|
|
14662
|
-
});
|
|
14663
|
-
} else if (status !== 200 && status !== 204) {
|
|
14664
|
-
return response.text().then((_responseText) => {
|
|
14665
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14666
|
-
});
|
|
14667
|
-
}
|
|
14668
|
-
return Promise.resolve<DownloadDto>(null as any);
|
|
14669
|
-
}
|
|
14670
14630
|
}
|
|
14671
14631
|
|
|
14672
14632
|
export interface IMesProductionScheduleClient {
|
|
@@ -38415,6 +38375,7 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
|
38415
38375
|
trackingId!: string;
|
|
38416
38376
|
fromLocationId!: string;
|
|
38417
38377
|
toLocationId!: string;
|
|
38378
|
+
transportKind!: TransportKindDto;
|
|
38418
38379
|
comment?: string | null;
|
|
38419
38380
|
|
|
38420
38381
|
constructor(data?: IBookingItemRequestDto) {
|
|
@@ -38432,6 +38393,7 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
|
38432
38393
|
this.trackingId = _data["trackingId"];
|
|
38433
38394
|
this.fromLocationId = _data["fromLocationId"];
|
|
38434
38395
|
this.toLocationId = _data["toLocationId"];
|
|
38396
|
+
this.transportKind = _data["transportKind"];
|
|
38435
38397
|
this.comment = _data["comment"];
|
|
38436
38398
|
}
|
|
38437
38399
|
}
|
|
@@ -38449,6 +38411,7 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
|
38449
38411
|
data["trackingId"] = this.trackingId;
|
|
38450
38412
|
data["fromLocationId"] = this.fromLocationId;
|
|
38451
38413
|
data["toLocationId"] = this.toLocationId;
|
|
38414
|
+
data["transportKind"] = this.transportKind;
|
|
38452
38415
|
data["comment"] = this.comment;
|
|
38453
38416
|
return data;
|
|
38454
38417
|
}
|
|
@@ -38459,11 +38422,11 @@ export interface IBookingItemRequestDto {
|
|
|
38459
38422
|
trackingId: string;
|
|
38460
38423
|
fromLocationId: string;
|
|
38461
38424
|
toLocationId: string;
|
|
38425
|
+
transportKind: TransportKindDto;
|
|
38462
38426
|
comment?: string | null;
|
|
38463
38427
|
}
|
|
38464
38428
|
|
|
38465
38429
|
export class BookingTransportRequestDto implements IBookingTransportRequestDto {
|
|
38466
|
-
transportKind!: TransportKindDto;
|
|
38467
38430
|
items!: BookingItemRequestDto[];
|
|
38468
38431
|
|
|
38469
38432
|
constructor(data?: IBookingTransportRequestDto) {
|
|
@@ -38480,7 +38443,6 @@ export class BookingTransportRequestDto implements IBookingTransportRequestDto {
|
|
|
38480
38443
|
|
|
38481
38444
|
init(_data?: any) {
|
|
38482
38445
|
if (_data) {
|
|
38483
|
-
this.transportKind = _data["transportKind"];
|
|
38484
38446
|
if (Array.isArray(_data["items"])) {
|
|
38485
38447
|
this.items = [] as any;
|
|
38486
38448
|
for (let item of _data["items"])
|
|
@@ -38498,7 +38460,6 @@ export class BookingTransportRequestDto implements IBookingTransportRequestDto {
|
|
|
38498
38460
|
|
|
38499
38461
|
toJSON(data?: any) {
|
|
38500
38462
|
data = typeof data === 'object' ? data : {};
|
|
38501
|
-
data["transportKind"] = this.transportKind;
|
|
38502
38463
|
if (Array.isArray(this.items)) {
|
|
38503
38464
|
data["items"] = [];
|
|
38504
38465
|
for (let item of this.items)
|
|
@@ -38509,7 +38470,6 @@ export class BookingTransportRequestDto implements IBookingTransportRequestDto {
|
|
|
38509
38470
|
}
|
|
38510
38471
|
|
|
38511
38472
|
export interface IBookingTransportRequestDto {
|
|
38512
|
-
transportKind: TransportKindDto;
|
|
38513
38473
|
items: BookingItemRequestDto[];
|
|
38514
38474
|
}
|
|
38515
38475
|
|
|
@@ -38619,113 +38579,6 @@ export interface IBookingStatusUpdateDto {
|
|
|
38619
38579
|
|
|
38620
38580
|
export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Environment" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack" | "User";
|
|
38621
38581
|
|
|
38622
|
-
export class LocationSuggestionsDto implements ILocationSuggestionsDto {
|
|
38623
|
-
items!: LocationSuggestionsItemDto[];
|
|
38624
|
-
locationKindFilter?: LocationKindDto[] | null;
|
|
38625
|
-
locationProfiles?: LocationProfileDto[] | null;
|
|
38626
|
-
|
|
38627
|
-
constructor(data?: ILocationSuggestionsDto) {
|
|
38628
|
-
if (data) {
|
|
38629
|
-
for (var property in data) {
|
|
38630
|
-
if (data.hasOwnProperty(property))
|
|
38631
|
-
(<any>this)[property] = (<any>data)[property];
|
|
38632
|
-
}
|
|
38633
|
-
}
|
|
38634
|
-
if (!data) {
|
|
38635
|
-
this.items = [];
|
|
38636
|
-
}
|
|
38637
|
-
}
|
|
38638
|
-
|
|
38639
|
-
init(_data?: any) {
|
|
38640
|
-
if (_data) {
|
|
38641
|
-
if (Array.isArray(_data["items"])) {
|
|
38642
|
-
this.items = [] as any;
|
|
38643
|
-
for (let item of _data["items"])
|
|
38644
|
-
this.items!.push(LocationSuggestionsItemDto.fromJS(item));
|
|
38645
|
-
}
|
|
38646
|
-
if (Array.isArray(_data["locationKindFilter"])) {
|
|
38647
|
-
this.locationKindFilter = [] as any;
|
|
38648
|
-
for (let item of _data["locationKindFilter"])
|
|
38649
|
-
this.locationKindFilter!.push(item);
|
|
38650
|
-
}
|
|
38651
|
-
if (Array.isArray(_data["locationProfiles"])) {
|
|
38652
|
-
this.locationProfiles = [] as any;
|
|
38653
|
-
for (let item of _data["locationProfiles"])
|
|
38654
|
-
this.locationProfiles!.push(item);
|
|
38655
|
-
}
|
|
38656
|
-
}
|
|
38657
|
-
}
|
|
38658
|
-
|
|
38659
|
-
static fromJS(data: any): LocationSuggestionsDto {
|
|
38660
|
-
data = typeof data === 'object' ? data : {};
|
|
38661
|
-
let result = new LocationSuggestionsDto();
|
|
38662
|
-
result.init(data);
|
|
38663
|
-
return result;
|
|
38664
|
-
}
|
|
38665
|
-
|
|
38666
|
-
toJSON(data?: any) {
|
|
38667
|
-
data = typeof data === 'object' ? data : {};
|
|
38668
|
-
if (Array.isArray(this.items)) {
|
|
38669
|
-
data["items"] = [];
|
|
38670
|
-
for (let item of this.items)
|
|
38671
|
-
data["items"].push(item.toJSON());
|
|
38672
|
-
}
|
|
38673
|
-
if (Array.isArray(this.locationKindFilter)) {
|
|
38674
|
-
data["locationKindFilter"] = [];
|
|
38675
|
-
for (let item of this.locationKindFilter)
|
|
38676
|
-
data["locationKindFilter"].push(item);
|
|
38677
|
-
}
|
|
38678
|
-
if (Array.isArray(this.locationProfiles)) {
|
|
38679
|
-
data["locationProfiles"] = [];
|
|
38680
|
-
for (let item of this.locationProfiles)
|
|
38681
|
-
data["locationProfiles"].push(item);
|
|
38682
|
-
}
|
|
38683
|
-
return data;
|
|
38684
|
-
}
|
|
38685
|
-
}
|
|
38686
|
-
|
|
38687
|
-
export interface ILocationSuggestionsDto {
|
|
38688
|
-
items: LocationSuggestionsItemDto[];
|
|
38689
|
-
locationKindFilter?: LocationKindDto[] | null;
|
|
38690
|
-
locationProfiles?: LocationProfileDto[] | null;
|
|
38691
|
-
}
|
|
38692
|
-
|
|
38693
|
-
export class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
|
|
38694
|
-
parcelId!: string;
|
|
38695
|
-
|
|
38696
|
-
constructor(data?: ILocationSuggestionsItemDto) {
|
|
38697
|
-
if (data) {
|
|
38698
|
-
for (var property in data) {
|
|
38699
|
-
if (data.hasOwnProperty(property))
|
|
38700
|
-
(<any>this)[property] = (<any>data)[property];
|
|
38701
|
-
}
|
|
38702
|
-
}
|
|
38703
|
-
}
|
|
38704
|
-
|
|
38705
|
-
init(_data?: any) {
|
|
38706
|
-
if (_data) {
|
|
38707
|
-
this.parcelId = _data["parcelId"];
|
|
38708
|
-
}
|
|
38709
|
-
}
|
|
38710
|
-
|
|
38711
|
-
static fromJS(data: any): LocationSuggestionsItemDto {
|
|
38712
|
-
data = typeof data === 'object' ? data : {};
|
|
38713
|
-
let result = new LocationSuggestionsItemDto();
|
|
38714
|
-
result.init(data);
|
|
38715
|
-
return result;
|
|
38716
|
-
}
|
|
38717
|
-
|
|
38718
|
-
toJSON(data?: any) {
|
|
38719
|
-
data = typeof data === 'object' ? data : {};
|
|
38720
|
-
data["parcelId"] = this.parcelId;
|
|
38721
|
-
return data;
|
|
38722
|
-
}
|
|
38723
|
-
}
|
|
38724
|
-
|
|
38725
|
-
export interface ILocationSuggestionsItemDto {
|
|
38726
|
-
parcelId: string;
|
|
38727
|
-
}
|
|
38728
|
-
|
|
38729
38582
|
export class MaterialDesciptionDto implements IMaterialDesciptionDto {
|
|
38730
38583
|
materialId!: string;
|
|
38731
38584
|
materialName!: string;
|
|
@@ -41299,93 +41152,6 @@ export interface IGenerateProductionOrderPdf {
|
|
|
41299
41152
|
|
|
41300
41153
|
export type ProductionOrderPdfType = "Rich" | "Compact";
|
|
41301
41154
|
|
|
41302
|
-
export class GeneratePrintableLabel implements IGeneratePrintableLabel {
|
|
41303
|
-
labelIds!: LabelId[];
|
|
41304
|
-
|
|
41305
|
-
constructor(data?: IGeneratePrintableLabel) {
|
|
41306
|
-
if (data) {
|
|
41307
|
-
for (var property in data) {
|
|
41308
|
-
if (data.hasOwnProperty(property))
|
|
41309
|
-
(<any>this)[property] = (<any>data)[property];
|
|
41310
|
-
}
|
|
41311
|
-
}
|
|
41312
|
-
if (!data) {
|
|
41313
|
-
this.labelIds = [];
|
|
41314
|
-
}
|
|
41315
|
-
}
|
|
41316
|
-
|
|
41317
|
-
init(_data?: any) {
|
|
41318
|
-
if (_data) {
|
|
41319
|
-
if (Array.isArray(_data["labelIds"])) {
|
|
41320
|
-
this.labelIds = [] as any;
|
|
41321
|
-
for (let item of _data["labelIds"])
|
|
41322
|
-
this.labelIds!.push(LabelId.fromJS(item));
|
|
41323
|
-
}
|
|
41324
|
-
}
|
|
41325
|
-
}
|
|
41326
|
-
|
|
41327
|
-
static fromJS(data: any): GeneratePrintableLabel {
|
|
41328
|
-
data = typeof data === 'object' ? data : {};
|
|
41329
|
-
let result = new GeneratePrintableLabel();
|
|
41330
|
-
result.init(data);
|
|
41331
|
-
return result;
|
|
41332
|
-
}
|
|
41333
|
-
|
|
41334
|
-
toJSON(data?: any) {
|
|
41335
|
-
data = typeof data === 'object' ? data : {};
|
|
41336
|
-
if (Array.isArray(this.labelIds)) {
|
|
41337
|
-
data["labelIds"] = [];
|
|
41338
|
-
for (let item of this.labelIds)
|
|
41339
|
-
data["labelIds"].push(item.toJSON());
|
|
41340
|
-
}
|
|
41341
|
-
return data;
|
|
41342
|
-
}
|
|
41343
|
-
}
|
|
41344
|
-
|
|
41345
|
-
export interface IGeneratePrintableLabel {
|
|
41346
|
-
labelIds: LabelId[];
|
|
41347
|
-
}
|
|
41348
|
-
|
|
41349
|
-
export class LabelId implements ILabelId {
|
|
41350
|
-
parcelId!: string;
|
|
41351
|
-
trackingId?: string | null;
|
|
41352
|
-
|
|
41353
|
-
constructor(data?: ILabelId) {
|
|
41354
|
-
if (data) {
|
|
41355
|
-
for (var property in data) {
|
|
41356
|
-
if (data.hasOwnProperty(property))
|
|
41357
|
-
(<any>this)[property] = (<any>data)[property];
|
|
41358
|
-
}
|
|
41359
|
-
}
|
|
41360
|
-
}
|
|
41361
|
-
|
|
41362
|
-
init(_data?: any) {
|
|
41363
|
-
if (_data) {
|
|
41364
|
-
this.parcelId = _data["parcelId"];
|
|
41365
|
-
this.trackingId = _data["trackingId"];
|
|
41366
|
-
}
|
|
41367
|
-
}
|
|
41368
|
-
|
|
41369
|
-
static fromJS(data: any): LabelId {
|
|
41370
|
-
data = typeof data === 'object' ? data : {};
|
|
41371
|
-
let result = new LabelId();
|
|
41372
|
-
result.init(data);
|
|
41373
|
-
return result;
|
|
41374
|
-
}
|
|
41375
|
-
|
|
41376
|
-
toJSON(data?: any) {
|
|
41377
|
-
data = typeof data === 'object' ? data : {};
|
|
41378
|
-
data["parcelId"] = this.parcelId;
|
|
41379
|
-
data["trackingId"] = this.trackingId;
|
|
41380
|
-
return data;
|
|
41381
|
-
}
|
|
41382
|
-
}
|
|
41383
|
-
|
|
41384
|
-
export interface ILabelId {
|
|
41385
|
-
parcelId: string;
|
|
41386
|
-
trackingId?: string | null;
|
|
41387
|
-
}
|
|
41388
|
-
|
|
41389
41155
|
export class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
|
|
41390
41156
|
results!: ProductionScheduleOperationDto[];
|
|
41391
41157
|
continuationToken?: string | null;
|