@ignos/api-client 20240408.0.9087 → 20240422.0.9138
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 +43 -38
- package/lib/ignosportal-api.js +94 -44
- package/package.json +1 -1
- package/src/ignosportal-api.ts +134 -81
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1361,7 +1361,8 @@ export declare class MesDocumentsClient extends AuthorizedApiBase implements IMe
|
|
|
1361
1361
|
}
|
|
1362
1362
|
export interface IMesLinksClient {
|
|
1363
1363
|
addMesLink(request: AddMesLink): Promise<void>;
|
|
1364
|
-
listMesLinks(
|
|
1364
|
+
listMesLinks(workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]>;
|
|
1365
|
+
listUnmappedMesLinks(): Promise<MesLinkDto[]>;
|
|
1365
1366
|
updateMesLink(id: string, request: UpdateMesLink): Promise<FileResponse>;
|
|
1366
1367
|
deleteMesLink(id: string): Promise<void>;
|
|
1367
1368
|
}
|
|
@@ -1374,8 +1375,10 @@ export declare class MesLinksClient extends AuthorizedApiBase implements IMesLin
|
|
|
1374
1375
|
});
|
|
1375
1376
|
addMesLink(request: AddMesLink): Promise<void>;
|
|
1376
1377
|
protected processAddMesLink(response: Response): Promise<void>;
|
|
1377
|
-
listMesLinks(
|
|
1378
|
+
listMesLinks(workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]>;
|
|
1378
1379
|
protected processListMesLinks(response: Response): Promise<MesLinkDto[]>;
|
|
1380
|
+
listUnmappedMesLinks(): Promise<MesLinkDto[]>;
|
|
1381
|
+
protected processListUnmappedMesLinks(response: Response): Promise<MesLinkDto[]>;
|
|
1379
1382
|
updateMesLink(id: string, request: UpdateMesLink): Promise<FileResponse>;
|
|
1380
1383
|
protected processUpdateMesLink(response: Response): Promise<FileResponse>;
|
|
1381
1384
|
deleteMesLink(id: string): Promise<void>;
|
|
@@ -7522,17 +7525,18 @@ export declare class ProductionOrderBomDto implements IProductionOrderBomDto {
|
|
|
7522
7525
|
dimension?: string;
|
|
7523
7526
|
operation: number;
|
|
7524
7527
|
operationName?: string;
|
|
7525
|
-
warehouse?: string;
|
|
7526
|
-
fixedLocation?: string;
|
|
7528
|
+
warehouse?: string | null;
|
|
7529
|
+
fixedLocation?: string | null;
|
|
7527
7530
|
fixedLocations?: string[];
|
|
7528
7531
|
unit?: string;
|
|
7529
7532
|
quantityPerPart: number;
|
|
7530
7533
|
totalRequiredQuantity: number;
|
|
7531
7534
|
usedQuantity: number;
|
|
7532
7535
|
availableQuantity?: number | null;
|
|
7533
|
-
drawing?: DrawingDto;
|
|
7534
|
-
orderReference?: OrderReferenceDto;
|
|
7536
|
+
drawing?: DrawingDto | null;
|
|
7537
|
+
orderReference?: OrderReferenceDto | null;
|
|
7535
7538
|
status: MaterialStatus;
|
|
7539
|
+
availabilityDetails: InventoryDto[];
|
|
7536
7540
|
constructor(data?: IProductionOrderBomDto);
|
|
7537
7541
|
init(_data?: any): void;
|
|
7538
7542
|
static fromJS(data: any): ProductionOrderBomDto;
|
|
@@ -7545,17 +7549,38 @@ export interface IProductionOrderBomDto {
|
|
|
7545
7549
|
dimension?: string;
|
|
7546
7550
|
operation: number;
|
|
7547
7551
|
operationName?: string;
|
|
7548
|
-
warehouse?: string;
|
|
7549
|
-
fixedLocation?: string;
|
|
7552
|
+
warehouse?: string | null;
|
|
7553
|
+
fixedLocation?: string | null;
|
|
7550
7554
|
fixedLocations?: string[];
|
|
7551
7555
|
unit?: string;
|
|
7552
7556
|
quantityPerPart: number;
|
|
7553
7557
|
totalRequiredQuantity: number;
|
|
7554
7558
|
usedQuantity: number;
|
|
7555
7559
|
availableQuantity?: number | null;
|
|
7556
|
-
drawing?: DrawingDto;
|
|
7557
|
-
orderReference?: OrderReferenceDto;
|
|
7560
|
+
drawing?: DrawingDto | null;
|
|
7561
|
+
orderReference?: OrderReferenceDto | null;
|
|
7558
7562
|
status: MaterialStatus;
|
|
7563
|
+
availabilityDetails: InventoryDto[];
|
|
7564
|
+
}
|
|
7565
|
+
export declare class InventoryDto implements IInventoryDto {
|
|
7566
|
+
siteId: string;
|
|
7567
|
+
warehouseId: string;
|
|
7568
|
+
locationId: string;
|
|
7569
|
+
batchNumber?: string;
|
|
7570
|
+
vendorBatch?: string;
|
|
7571
|
+
available: number;
|
|
7572
|
+
constructor(data?: IInventoryDto);
|
|
7573
|
+
init(_data?: any): void;
|
|
7574
|
+
static fromJS(data: any): InventoryDto;
|
|
7575
|
+
toJSON(data?: any): any;
|
|
7576
|
+
}
|
|
7577
|
+
export interface IInventoryDto {
|
|
7578
|
+
siteId: string;
|
|
7579
|
+
warehouseId: string;
|
|
7580
|
+
locationId: string;
|
|
7581
|
+
batchNumber?: string;
|
|
7582
|
+
vendorBatch?: string;
|
|
7583
|
+
available: number;
|
|
7559
7584
|
}
|
|
7560
7585
|
export declare class PickListSuggestionDto implements IPickListSuggestionDto {
|
|
7561
7586
|
position?: string;
|
|
@@ -7566,7 +7591,7 @@ export declare class PickListSuggestionDto implements IPickListSuggestionDto {
|
|
|
7566
7591
|
warehouse?: string;
|
|
7567
7592
|
fixedLocation?: string;
|
|
7568
7593
|
unit?: string;
|
|
7569
|
-
orderReference?: OrderReferenceDto;
|
|
7594
|
+
orderReference?: OrderReferenceDto | null;
|
|
7570
7595
|
quantityPerPart: number;
|
|
7571
7596
|
totalRequiredQuantity: number;
|
|
7572
7597
|
usedQuantity: number;
|
|
@@ -7575,11 +7600,11 @@ export declare class PickListSuggestionDto implements IPickListSuggestionDto {
|
|
|
7575
7600
|
requiresBatchTracing: boolean;
|
|
7576
7601
|
proposedQuantity: number;
|
|
7577
7602
|
remainingQuantity: number;
|
|
7578
|
-
suggestedStartedQuantity?: InventoryDto;
|
|
7579
|
-
suggestedRemainingQuantity?: InventoryDto;
|
|
7603
|
+
suggestedStartedQuantity?: InventoryDto | null;
|
|
7604
|
+
suggestedRemainingQuantity?: InventoryDto | null;
|
|
7580
7605
|
available: InventoryDto[];
|
|
7581
7606
|
fixedLocations: string[];
|
|
7582
|
-
drawing?: DrawingDto;
|
|
7607
|
+
drawing?: DrawingDto | null;
|
|
7583
7608
|
constructor(data?: IPickListSuggestionDto);
|
|
7584
7609
|
init(_data?: any): void;
|
|
7585
7610
|
static fromJS(data: any): PickListSuggestionDto;
|
|
@@ -7594,7 +7619,7 @@ export interface IPickListSuggestionDto {
|
|
|
7594
7619
|
warehouse?: string;
|
|
7595
7620
|
fixedLocation?: string;
|
|
7596
7621
|
unit?: string;
|
|
7597
|
-
orderReference?: OrderReferenceDto;
|
|
7622
|
+
orderReference?: OrderReferenceDto | null;
|
|
7598
7623
|
quantityPerPart: number;
|
|
7599
7624
|
totalRequiredQuantity: number;
|
|
7600
7625
|
usedQuantity: number;
|
|
@@ -7603,31 +7628,11 @@ export interface IPickListSuggestionDto {
|
|
|
7603
7628
|
requiresBatchTracing: boolean;
|
|
7604
7629
|
proposedQuantity: number;
|
|
7605
7630
|
remainingQuantity: number;
|
|
7606
|
-
suggestedStartedQuantity?: InventoryDto;
|
|
7607
|
-
suggestedRemainingQuantity?: InventoryDto;
|
|
7631
|
+
suggestedStartedQuantity?: InventoryDto | null;
|
|
7632
|
+
suggestedRemainingQuantity?: InventoryDto | null;
|
|
7608
7633
|
available: InventoryDto[];
|
|
7609
7634
|
fixedLocations: string[];
|
|
7610
|
-
drawing?: DrawingDto;
|
|
7611
|
-
}
|
|
7612
|
-
export declare class InventoryDto implements IInventoryDto {
|
|
7613
|
-
siteId: string;
|
|
7614
|
-
warehouseId: string;
|
|
7615
|
-
locationId: string;
|
|
7616
|
-
batchNumber?: string;
|
|
7617
|
-
vendorBatch?: string;
|
|
7618
|
-
available: number;
|
|
7619
|
-
constructor(data?: IInventoryDto);
|
|
7620
|
-
init(_data?: any): void;
|
|
7621
|
-
static fromJS(data: any): InventoryDto;
|
|
7622
|
-
toJSON(data?: any): any;
|
|
7623
|
-
}
|
|
7624
|
-
export interface IInventoryDto {
|
|
7625
|
-
siteId: string;
|
|
7626
|
-
warehouseId: string;
|
|
7627
|
-
locationId: string;
|
|
7628
|
-
batchNumber?: string;
|
|
7629
|
-
vendorBatch?: string;
|
|
7630
|
-
available: number;
|
|
7635
|
+
drawing?: DrawingDto | null;
|
|
7631
7636
|
}
|
|
7632
7637
|
export declare class NonConformanceDto implements INonConformanceDto {
|
|
7633
7638
|
nonConformanceId: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//----------------------
|
|
2
2
|
// <auto-generated>
|
|
3
|
-
// Generated using the NSwag toolchain v14.0.
|
|
3
|
+
// Generated using the NSwag toolchain v14.0.7.0 (NJsonSchema v11.0.0.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
|
|
4
4
|
// </auto-generated>
|
|
5
5
|
//----------------------
|
|
6
6
|
/* tslint:disable */
|
|
@@ -11127,14 +11127,12 @@ export class MesLinksClient extends AuthorizedApiBase {
|
|
|
11127
11127
|
}
|
|
11128
11128
|
return Promise.resolve(null);
|
|
11129
11129
|
}
|
|
11130
|
-
listMesLinks(
|
|
11130
|
+
listMesLinks(workOrderId, operation) {
|
|
11131
11131
|
let url_ = this.baseUrl + "/mes/links?";
|
|
11132
|
-
if (
|
|
11133
|
-
url_ += "
|
|
11134
|
-
if (
|
|
11135
|
-
url_ += "
|
|
11136
|
-
if (operationId !== undefined && operationId !== null)
|
|
11137
|
-
url_ += "operationId=" + encodeURIComponent("" + operationId) + "&";
|
|
11132
|
+
if (workOrderId !== undefined && workOrderId !== null)
|
|
11133
|
+
url_ += "workOrderId=" + encodeURIComponent("" + workOrderId) + "&";
|
|
11134
|
+
if (operation !== undefined && operation !== null)
|
|
11135
|
+
url_ += "operation=" + encodeURIComponent("" + operation) + "&";
|
|
11138
11136
|
url_ = url_.replace(/[?&]$/, "");
|
|
11139
11137
|
let options_ = {
|
|
11140
11138
|
method: "GET",
|
|
@@ -11174,6 +11172,47 @@ export class MesLinksClient extends AuthorizedApiBase {
|
|
|
11174
11172
|
}
|
|
11175
11173
|
return Promise.resolve(null);
|
|
11176
11174
|
}
|
|
11175
|
+
listUnmappedMesLinks() {
|
|
11176
|
+
let url_ = this.baseUrl + "/mes/links/unmapped";
|
|
11177
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
11178
|
+
let options_ = {
|
|
11179
|
+
method: "GET",
|
|
11180
|
+
headers: {
|
|
11181
|
+
"Accept": "application/json"
|
|
11182
|
+
}
|
|
11183
|
+
};
|
|
11184
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11185
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
11186
|
+
}).then((_response) => {
|
|
11187
|
+
return this.processListUnmappedMesLinks(_response);
|
|
11188
|
+
});
|
|
11189
|
+
}
|
|
11190
|
+
processListUnmappedMesLinks(response) {
|
|
11191
|
+
const status = response.status;
|
|
11192
|
+
let _headers = {};
|
|
11193
|
+
if (response.headers && response.headers.forEach) {
|
|
11194
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
11195
|
+
}
|
|
11196
|
+
;
|
|
11197
|
+
if (status === 200) {
|
|
11198
|
+
return response.text().then((_responseText) => {
|
|
11199
|
+
let result200 = null;
|
|
11200
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
11201
|
+
if (Array.isArray(resultData200)) {
|
|
11202
|
+
result200 = [];
|
|
11203
|
+
for (let item of resultData200)
|
|
11204
|
+
result200.push(MesLinkDto.fromJS(item));
|
|
11205
|
+
}
|
|
11206
|
+
return result200;
|
|
11207
|
+
});
|
|
11208
|
+
}
|
|
11209
|
+
else if (status !== 200 && status !== 204) {
|
|
11210
|
+
return response.text().then((_responseText) => {
|
|
11211
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
11212
|
+
});
|
|
11213
|
+
}
|
|
11214
|
+
return Promise.resolve(null);
|
|
11215
|
+
}
|
|
11177
11216
|
updateMesLink(id, request) {
|
|
11178
11217
|
let url_ = this.baseUrl + "/mes/links/{id}";
|
|
11179
11218
|
if (id === undefined || id === null)
|
|
@@ -28220,6 +28259,7 @@ export class ProductionOrderBomDto {
|
|
|
28220
28259
|
}
|
|
28221
28260
|
if (!data) {
|
|
28222
28261
|
this.part = new PartDto();
|
|
28262
|
+
this.availabilityDetails = [];
|
|
28223
28263
|
}
|
|
28224
28264
|
}
|
|
28225
28265
|
init(_data) {
|
|
@@ -28245,6 +28285,11 @@ export class ProductionOrderBomDto {
|
|
|
28245
28285
|
this.drawing = _data["drawing"] ? DrawingDto.fromJS(_data["drawing"]) : undefined;
|
|
28246
28286
|
this.orderReference = _data["orderReference"] ? OrderReferenceDto.fromJS(_data["orderReference"]) : undefined;
|
|
28247
28287
|
this.status = _data["status"];
|
|
28288
|
+
if (Array.isArray(_data["availabilityDetails"])) {
|
|
28289
|
+
this.availabilityDetails = [];
|
|
28290
|
+
for (let item of _data["availabilityDetails"])
|
|
28291
|
+
this.availabilityDetails.push(InventoryDto.fromJS(item));
|
|
28292
|
+
}
|
|
28248
28293
|
}
|
|
28249
28294
|
}
|
|
28250
28295
|
static fromJS(data) {
|
|
@@ -28276,6 +28321,47 @@ export class ProductionOrderBomDto {
|
|
|
28276
28321
|
data["drawing"] = this.drawing ? this.drawing.toJSON() : undefined;
|
|
28277
28322
|
data["orderReference"] = this.orderReference ? this.orderReference.toJSON() : undefined;
|
|
28278
28323
|
data["status"] = this.status;
|
|
28324
|
+
if (Array.isArray(this.availabilityDetails)) {
|
|
28325
|
+
data["availabilityDetails"] = [];
|
|
28326
|
+
for (let item of this.availabilityDetails)
|
|
28327
|
+
data["availabilityDetails"].push(item.toJSON());
|
|
28328
|
+
}
|
|
28329
|
+
return data;
|
|
28330
|
+
}
|
|
28331
|
+
}
|
|
28332
|
+
export class InventoryDto {
|
|
28333
|
+
constructor(data) {
|
|
28334
|
+
if (data) {
|
|
28335
|
+
for (var property in data) {
|
|
28336
|
+
if (data.hasOwnProperty(property))
|
|
28337
|
+
this[property] = data[property];
|
|
28338
|
+
}
|
|
28339
|
+
}
|
|
28340
|
+
}
|
|
28341
|
+
init(_data) {
|
|
28342
|
+
if (_data) {
|
|
28343
|
+
this.siteId = _data["siteId"];
|
|
28344
|
+
this.warehouseId = _data["warehouseId"];
|
|
28345
|
+
this.locationId = _data["locationId"];
|
|
28346
|
+
this.batchNumber = _data["batchNumber"];
|
|
28347
|
+
this.vendorBatch = _data["vendorBatch"];
|
|
28348
|
+
this.available = _data["available"];
|
|
28349
|
+
}
|
|
28350
|
+
}
|
|
28351
|
+
static fromJS(data) {
|
|
28352
|
+
data = typeof data === 'object' ? data : {};
|
|
28353
|
+
let result = new InventoryDto();
|
|
28354
|
+
result.init(data);
|
|
28355
|
+
return result;
|
|
28356
|
+
}
|
|
28357
|
+
toJSON(data) {
|
|
28358
|
+
data = typeof data === 'object' ? data : {};
|
|
28359
|
+
data["siteId"] = this.siteId;
|
|
28360
|
+
data["warehouseId"] = this.warehouseId;
|
|
28361
|
+
data["locationId"] = this.locationId;
|
|
28362
|
+
data["batchNumber"] = this.batchNumber;
|
|
28363
|
+
data["vendorBatch"] = this.vendorBatch;
|
|
28364
|
+
data["available"] = this.available;
|
|
28279
28365
|
return data;
|
|
28280
28366
|
}
|
|
28281
28367
|
}
|
|
@@ -28368,42 +28454,6 @@ export class PickListSuggestionDto {
|
|
|
28368
28454
|
return data;
|
|
28369
28455
|
}
|
|
28370
28456
|
}
|
|
28371
|
-
export class InventoryDto {
|
|
28372
|
-
constructor(data) {
|
|
28373
|
-
if (data) {
|
|
28374
|
-
for (var property in data) {
|
|
28375
|
-
if (data.hasOwnProperty(property))
|
|
28376
|
-
this[property] = data[property];
|
|
28377
|
-
}
|
|
28378
|
-
}
|
|
28379
|
-
}
|
|
28380
|
-
init(_data) {
|
|
28381
|
-
if (_data) {
|
|
28382
|
-
this.siteId = _data["siteId"];
|
|
28383
|
-
this.warehouseId = _data["warehouseId"];
|
|
28384
|
-
this.locationId = _data["locationId"];
|
|
28385
|
-
this.batchNumber = _data["batchNumber"];
|
|
28386
|
-
this.vendorBatch = _data["vendorBatch"];
|
|
28387
|
-
this.available = _data["available"];
|
|
28388
|
-
}
|
|
28389
|
-
}
|
|
28390
|
-
static fromJS(data) {
|
|
28391
|
-
data = typeof data === 'object' ? data : {};
|
|
28392
|
-
let result = new InventoryDto();
|
|
28393
|
-
result.init(data);
|
|
28394
|
-
return result;
|
|
28395
|
-
}
|
|
28396
|
-
toJSON(data) {
|
|
28397
|
-
data = typeof data === 'object' ? data : {};
|
|
28398
|
-
data["siteId"] = this.siteId;
|
|
28399
|
-
data["warehouseId"] = this.warehouseId;
|
|
28400
|
-
data["locationId"] = this.locationId;
|
|
28401
|
-
data["batchNumber"] = this.batchNumber;
|
|
28402
|
-
data["vendorBatch"] = this.vendorBatch;
|
|
28403
|
-
data["available"] = this.available;
|
|
28404
|
-
return data;
|
|
28405
|
-
}
|
|
28406
|
-
}
|
|
28407
28457
|
export class NonConformanceDto {
|
|
28408
28458
|
constructor(data) {
|
|
28409
28459
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//----------------------
|
|
2
2
|
// <auto-generated>
|
|
3
|
-
// Generated using the NSwag toolchain v14.0.
|
|
3
|
+
// Generated using the NSwag toolchain v14.0.7.0 (NJsonSchema v11.0.0.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
|
|
4
4
|
// </auto-generated>
|
|
5
5
|
//----------------------
|
|
6
6
|
|
|
@@ -11847,7 +11847,9 @@ export interface IMesLinksClient {
|
|
|
11847
11847
|
|
|
11848
11848
|
addMesLink(request: AddMesLink): Promise<void>;
|
|
11849
11849
|
|
|
11850
|
-
listMesLinks(
|
|
11850
|
+
listMesLinks(workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]>;
|
|
11851
|
+
|
|
11852
|
+
listUnmappedMesLinks(): Promise<MesLinkDto[]>;
|
|
11851
11853
|
|
|
11852
11854
|
updateMesLink(id: string, request: UpdateMesLink): Promise<FileResponse>;
|
|
11853
11855
|
|
|
@@ -11901,14 +11903,12 @@ export class MesLinksClient extends AuthorizedApiBase implements IMesLinksClient
|
|
|
11901
11903
|
return Promise.resolve<void>(null as any);
|
|
11902
11904
|
}
|
|
11903
11905
|
|
|
11904
|
-
listMesLinks(
|
|
11906
|
+
listMesLinks(workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]> {
|
|
11905
11907
|
let url_ = this.baseUrl + "/mes/links?";
|
|
11906
|
-
if (
|
|
11907
|
-
url_ += "
|
|
11908
|
-
if (
|
|
11909
|
-
url_ += "
|
|
11910
|
-
if (operationId !== undefined && operationId !== null)
|
|
11911
|
-
url_ += "operationId=" + encodeURIComponent("" + operationId) + "&";
|
|
11908
|
+
if (workOrderId !== undefined && workOrderId !== null)
|
|
11909
|
+
url_ += "workOrderId=" + encodeURIComponent("" + workOrderId) + "&";
|
|
11910
|
+
if (operation !== undefined && operation !== null)
|
|
11911
|
+
url_ += "operation=" + encodeURIComponent("" + operation) + "&";
|
|
11912
11912
|
url_ = url_.replace(/[?&]$/, "");
|
|
11913
11913
|
|
|
11914
11914
|
let options_: RequestInit = {
|
|
@@ -11947,6 +11947,46 @@ export class MesLinksClient extends AuthorizedApiBase implements IMesLinksClient
|
|
|
11947
11947
|
return Promise.resolve<MesLinkDto[]>(null as any);
|
|
11948
11948
|
}
|
|
11949
11949
|
|
|
11950
|
+
listUnmappedMesLinks(): Promise<MesLinkDto[]> {
|
|
11951
|
+
let url_ = this.baseUrl + "/mes/links/unmapped";
|
|
11952
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
11953
|
+
|
|
11954
|
+
let options_: RequestInit = {
|
|
11955
|
+
method: "GET",
|
|
11956
|
+
headers: {
|
|
11957
|
+
"Accept": "application/json"
|
|
11958
|
+
}
|
|
11959
|
+
};
|
|
11960
|
+
|
|
11961
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11962
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
11963
|
+
}).then((_response: Response) => {
|
|
11964
|
+
return this.processListUnmappedMesLinks(_response);
|
|
11965
|
+
});
|
|
11966
|
+
}
|
|
11967
|
+
|
|
11968
|
+
protected processListUnmappedMesLinks(response: Response): Promise<MesLinkDto[]> {
|
|
11969
|
+
const status = response.status;
|
|
11970
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
11971
|
+
if (status === 200) {
|
|
11972
|
+
return response.text().then((_responseText) => {
|
|
11973
|
+
let result200: any = null;
|
|
11974
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
11975
|
+
if (Array.isArray(resultData200)) {
|
|
11976
|
+
result200 = [] as any;
|
|
11977
|
+
for (let item of resultData200)
|
|
11978
|
+
result200!.push(MesLinkDto.fromJS(item));
|
|
11979
|
+
}
|
|
11980
|
+
return result200;
|
|
11981
|
+
});
|
|
11982
|
+
} else if (status !== 200 && status !== 204) {
|
|
11983
|
+
return response.text().then((_responseText) => {
|
|
11984
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
11985
|
+
});
|
|
11986
|
+
}
|
|
11987
|
+
return Promise.resolve<MesLinkDto[]>(null as any);
|
|
11988
|
+
}
|
|
11989
|
+
|
|
11950
11990
|
updateMesLink(id: string, request: UpdateMesLink): Promise<FileResponse> {
|
|
11951
11991
|
let url_ = this.baseUrl + "/mes/links/{id}";
|
|
11952
11992
|
if (id === undefined || id === null)
|
|
@@ -34819,17 +34859,18 @@ export class ProductionOrderBomDto implements IProductionOrderBomDto {
|
|
|
34819
34859
|
dimension?: string;
|
|
34820
34860
|
operation!: number;
|
|
34821
34861
|
operationName?: string;
|
|
34822
|
-
warehouse?: string;
|
|
34823
|
-
fixedLocation?: string;
|
|
34862
|
+
warehouse?: string | null;
|
|
34863
|
+
fixedLocation?: string | null;
|
|
34824
34864
|
fixedLocations?: string[];
|
|
34825
34865
|
unit?: string;
|
|
34826
34866
|
quantityPerPart!: number;
|
|
34827
34867
|
totalRequiredQuantity!: number;
|
|
34828
34868
|
usedQuantity!: number;
|
|
34829
34869
|
availableQuantity?: number | null;
|
|
34830
|
-
drawing?: DrawingDto;
|
|
34831
|
-
orderReference?: OrderReferenceDto;
|
|
34870
|
+
drawing?: DrawingDto | null;
|
|
34871
|
+
orderReference?: OrderReferenceDto | null;
|
|
34832
34872
|
status!: MaterialStatus;
|
|
34873
|
+
availabilityDetails!: InventoryDto[];
|
|
34833
34874
|
|
|
34834
34875
|
constructor(data?: IProductionOrderBomDto) {
|
|
34835
34876
|
if (data) {
|
|
@@ -34840,6 +34881,7 @@ export class ProductionOrderBomDto implements IProductionOrderBomDto {
|
|
|
34840
34881
|
}
|
|
34841
34882
|
if (!data) {
|
|
34842
34883
|
this.part = new PartDto();
|
|
34884
|
+
this.availabilityDetails = [];
|
|
34843
34885
|
}
|
|
34844
34886
|
}
|
|
34845
34887
|
|
|
@@ -34866,6 +34908,11 @@ export class ProductionOrderBomDto implements IProductionOrderBomDto {
|
|
|
34866
34908
|
this.drawing = _data["drawing"] ? DrawingDto.fromJS(_data["drawing"]) : <any>undefined;
|
|
34867
34909
|
this.orderReference = _data["orderReference"] ? OrderReferenceDto.fromJS(_data["orderReference"]) : <any>undefined;
|
|
34868
34910
|
this.status = _data["status"];
|
|
34911
|
+
if (Array.isArray(_data["availabilityDetails"])) {
|
|
34912
|
+
this.availabilityDetails = [] as any;
|
|
34913
|
+
for (let item of _data["availabilityDetails"])
|
|
34914
|
+
this.availabilityDetails!.push(InventoryDto.fromJS(item));
|
|
34915
|
+
}
|
|
34869
34916
|
}
|
|
34870
34917
|
}
|
|
34871
34918
|
|
|
@@ -34899,6 +34946,11 @@ export class ProductionOrderBomDto implements IProductionOrderBomDto {
|
|
|
34899
34946
|
data["drawing"] = this.drawing ? this.drawing.toJSON() : <any>undefined;
|
|
34900
34947
|
data["orderReference"] = this.orderReference ? this.orderReference.toJSON() : <any>undefined;
|
|
34901
34948
|
data["status"] = this.status;
|
|
34949
|
+
if (Array.isArray(this.availabilityDetails)) {
|
|
34950
|
+
data["availabilityDetails"] = [];
|
|
34951
|
+
for (let item of this.availabilityDetails)
|
|
34952
|
+
data["availabilityDetails"].push(item.toJSON());
|
|
34953
|
+
}
|
|
34902
34954
|
return data;
|
|
34903
34955
|
}
|
|
34904
34956
|
}
|
|
@@ -34910,17 +34962,74 @@ export interface IProductionOrderBomDto {
|
|
|
34910
34962
|
dimension?: string;
|
|
34911
34963
|
operation: number;
|
|
34912
34964
|
operationName?: string;
|
|
34913
|
-
warehouse?: string;
|
|
34914
|
-
fixedLocation?: string;
|
|
34965
|
+
warehouse?: string | null;
|
|
34966
|
+
fixedLocation?: string | null;
|
|
34915
34967
|
fixedLocations?: string[];
|
|
34916
34968
|
unit?: string;
|
|
34917
34969
|
quantityPerPart: number;
|
|
34918
34970
|
totalRequiredQuantity: number;
|
|
34919
34971
|
usedQuantity: number;
|
|
34920
34972
|
availableQuantity?: number | null;
|
|
34921
|
-
drawing?: DrawingDto;
|
|
34922
|
-
orderReference?: OrderReferenceDto;
|
|
34973
|
+
drawing?: DrawingDto | null;
|
|
34974
|
+
orderReference?: OrderReferenceDto | null;
|
|
34923
34975
|
status: MaterialStatus;
|
|
34976
|
+
availabilityDetails: InventoryDto[];
|
|
34977
|
+
}
|
|
34978
|
+
|
|
34979
|
+
export class InventoryDto implements IInventoryDto {
|
|
34980
|
+
siteId!: string;
|
|
34981
|
+
warehouseId!: string;
|
|
34982
|
+
locationId!: string;
|
|
34983
|
+
batchNumber?: string;
|
|
34984
|
+
vendorBatch?: string;
|
|
34985
|
+
available!: number;
|
|
34986
|
+
|
|
34987
|
+
constructor(data?: IInventoryDto) {
|
|
34988
|
+
if (data) {
|
|
34989
|
+
for (var property in data) {
|
|
34990
|
+
if (data.hasOwnProperty(property))
|
|
34991
|
+
(<any>this)[property] = (<any>data)[property];
|
|
34992
|
+
}
|
|
34993
|
+
}
|
|
34994
|
+
}
|
|
34995
|
+
|
|
34996
|
+
init(_data?: any) {
|
|
34997
|
+
if (_data) {
|
|
34998
|
+
this.siteId = _data["siteId"];
|
|
34999
|
+
this.warehouseId = _data["warehouseId"];
|
|
35000
|
+
this.locationId = _data["locationId"];
|
|
35001
|
+
this.batchNumber = _data["batchNumber"];
|
|
35002
|
+
this.vendorBatch = _data["vendorBatch"];
|
|
35003
|
+
this.available = _data["available"];
|
|
35004
|
+
}
|
|
35005
|
+
}
|
|
35006
|
+
|
|
35007
|
+
static fromJS(data: any): InventoryDto {
|
|
35008
|
+
data = typeof data === 'object' ? data : {};
|
|
35009
|
+
let result = new InventoryDto();
|
|
35010
|
+
result.init(data);
|
|
35011
|
+
return result;
|
|
35012
|
+
}
|
|
35013
|
+
|
|
35014
|
+
toJSON(data?: any) {
|
|
35015
|
+
data = typeof data === 'object' ? data : {};
|
|
35016
|
+
data["siteId"] = this.siteId;
|
|
35017
|
+
data["warehouseId"] = this.warehouseId;
|
|
35018
|
+
data["locationId"] = this.locationId;
|
|
35019
|
+
data["batchNumber"] = this.batchNumber;
|
|
35020
|
+
data["vendorBatch"] = this.vendorBatch;
|
|
35021
|
+
data["available"] = this.available;
|
|
35022
|
+
return data;
|
|
35023
|
+
}
|
|
35024
|
+
}
|
|
35025
|
+
|
|
35026
|
+
export interface IInventoryDto {
|
|
35027
|
+
siteId: string;
|
|
35028
|
+
warehouseId: string;
|
|
35029
|
+
locationId: string;
|
|
35030
|
+
batchNumber?: string;
|
|
35031
|
+
vendorBatch?: string;
|
|
35032
|
+
available: number;
|
|
34924
35033
|
}
|
|
34925
35034
|
|
|
34926
35035
|
export class PickListSuggestionDto implements IPickListSuggestionDto {
|
|
@@ -34932,7 +35041,7 @@ export class PickListSuggestionDto implements IPickListSuggestionDto {
|
|
|
34932
35041
|
warehouse?: string;
|
|
34933
35042
|
fixedLocation?: string;
|
|
34934
35043
|
unit?: string;
|
|
34935
|
-
orderReference?: OrderReferenceDto;
|
|
35044
|
+
orderReference?: OrderReferenceDto | null;
|
|
34936
35045
|
quantityPerPart!: number;
|
|
34937
35046
|
totalRequiredQuantity!: number;
|
|
34938
35047
|
usedQuantity!: number;
|
|
@@ -34941,11 +35050,11 @@ export class PickListSuggestionDto implements IPickListSuggestionDto {
|
|
|
34941
35050
|
requiresBatchTracing!: boolean;
|
|
34942
35051
|
proposedQuantity!: number;
|
|
34943
35052
|
remainingQuantity!: number;
|
|
34944
|
-
suggestedStartedQuantity?: InventoryDto;
|
|
34945
|
-
suggestedRemainingQuantity?: InventoryDto;
|
|
35053
|
+
suggestedStartedQuantity?: InventoryDto | null;
|
|
35054
|
+
suggestedRemainingQuantity?: InventoryDto | null;
|
|
34946
35055
|
available!: InventoryDto[];
|
|
34947
35056
|
fixedLocations!: string[];
|
|
34948
|
-
drawing?: DrawingDto;
|
|
35057
|
+
drawing?: DrawingDto | null;
|
|
34949
35058
|
|
|
34950
35059
|
constructor(data?: IPickListSuggestionDto) {
|
|
34951
35060
|
if (data) {
|
|
@@ -35048,7 +35157,7 @@ export interface IPickListSuggestionDto {
|
|
|
35048
35157
|
warehouse?: string;
|
|
35049
35158
|
fixedLocation?: string;
|
|
35050
35159
|
unit?: string;
|
|
35051
|
-
orderReference?: OrderReferenceDto;
|
|
35160
|
+
orderReference?: OrderReferenceDto | null;
|
|
35052
35161
|
quantityPerPart: number;
|
|
35053
35162
|
totalRequiredQuantity: number;
|
|
35054
35163
|
usedQuantity: number;
|
|
@@ -35057,67 +35166,11 @@ export interface IPickListSuggestionDto {
|
|
|
35057
35166
|
requiresBatchTracing: boolean;
|
|
35058
35167
|
proposedQuantity: number;
|
|
35059
35168
|
remainingQuantity: number;
|
|
35060
|
-
suggestedStartedQuantity?: InventoryDto;
|
|
35061
|
-
suggestedRemainingQuantity?: InventoryDto;
|
|
35169
|
+
suggestedStartedQuantity?: InventoryDto | null;
|
|
35170
|
+
suggestedRemainingQuantity?: InventoryDto | null;
|
|
35062
35171
|
available: InventoryDto[];
|
|
35063
35172
|
fixedLocations: string[];
|
|
35064
|
-
drawing?: DrawingDto;
|
|
35065
|
-
}
|
|
35066
|
-
|
|
35067
|
-
export class InventoryDto implements IInventoryDto {
|
|
35068
|
-
siteId!: string;
|
|
35069
|
-
warehouseId!: string;
|
|
35070
|
-
locationId!: string;
|
|
35071
|
-
batchNumber?: string;
|
|
35072
|
-
vendorBatch?: string;
|
|
35073
|
-
available!: number;
|
|
35074
|
-
|
|
35075
|
-
constructor(data?: IInventoryDto) {
|
|
35076
|
-
if (data) {
|
|
35077
|
-
for (var property in data) {
|
|
35078
|
-
if (data.hasOwnProperty(property))
|
|
35079
|
-
(<any>this)[property] = (<any>data)[property];
|
|
35080
|
-
}
|
|
35081
|
-
}
|
|
35082
|
-
}
|
|
35083
|
-
|
|
35084
|
-
init(_data?: any) {
|
|
35085
|
-
if (_data) {
|
|
35086
|
-
this.siteId = _data["siteId"];
|
|
35087
|
-
this.warehouseId = _data["warehouseId"];
|
|
35088
|
-
this.locationId = _data["locationId"];
|
|
35089
|
-
this.batchNumber = _data["batchNumber"];
|
|
35090
|
-
this.vendorBatch = _data["vendorBatch"];
|
|
35091
|
-
this.available = _data["available"];
|
|
35092
|
-
}
|
|
35093
|
-
}
|
|
35094
|
-
|
|
35095
|
-
static fromJS(data: any): InventoryDto {
|
|
35096
|
-
data = typeof data === 'object' ? data : {};
|
|
35097
|
-
let result = new InventoryDto();
|
|
35098
|
-
result.init(data);
|
|
35099
|
-
return result;
|
|
35100
|
-
}
|
|
35101
|
-
|
|
35102
|
-
toJSON(data?: any) {
|
|
35103
|
-
data = typeof data === 'object' ? data : {};
|
|
35104
|
-
data["siteId"] = this.siteId;
|
|
35105
|
-
data["warehouseId"] = this.warehouseId;
|
|
35106
|
-
data["locationId"] = this.locationId;
|
|
35107
|
-
data["batchNumber"] = this.batchNumber;
|
|
35108
|
-
data["vendorBatch"] = this.vendorBatch;
|
|
35109
|
-
data["available"] = this.available;
|
|
35110
|
-
return data;
|
|
35111
|
-
}
|
|
35112
|
-
}
|
|
35113
|
-
|
|
35114
|
-
export interface IInventoryDto {
|
|
35115
|
-
siteId: string;
|
|
35116
|
-
warehouseId: string;
|
|
35117
|
-
locationId: string;
|
|
35118
|
-
batchNumber?: string;
|
|
35119
|
-
vendorBatch?: string;
|
|
35120
|
-
available: number;
|
|
35173
|
+
drawing?: DrawingDto | null;
|
|
35121
35174
|
}
|
|
35122
35175
|
|
|
35123
35176
|
export class NonConformanceDto implements INonConformanceDto {
|