@ignos/api-client 20250508.0.11681 → 20250513.0.11698-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ignosportal-api.d.ts +19 -2
- package/lib/ignosportal-api.js +102 -5
- package/package.json +1 -1
- package/src/ignosportal-api.ts +120 -6
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1326,7 +1326,8 @@ export interface ICncSetupFixturesClient {
|
|
|
1326
1326
|
getFixture(fixtureId: string): Promise<FixtureDto>;
|
|
1327
1327
|
createFixture(update: FixtureCreateDto): Promise<FixtureDto>;
|
|
1328
1328
|
updateFixtures(update: FixtureUpdateDto[]): Promise<FixtureDto[]>;
|
|
1329
|
-
operationAddFixture(
|
|
1329
|
+
operationAddFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
|
|
1330
|
+
operationRemoveFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
|
|
1330
1331
|
}
|
|
1331
1332
|
export declare class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSetupFixturesClient {
|
|
1332
1333
|
private http;
|
|
@@ -1343,8 +1344,10 @@ export declare class CncSetupFixturesClient extends AuthorizedApiBase implements
|
|
|
1343
1344
|
protected processCreateFixture(response: Response): Promise<FixtureDto>;
|
|
1344
1345
|
updateFixtures(update: FixtureUpdateDto[]): Promise<FixtureDto[]>;
|
|
1345
1346
|
protected processUpdateFixtures(response: Response): Promise<FixtureDto[]>;
|
|
1346
|
-
operationAddFixture(
|
|
1347
|
+
operationAddFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
|
|
1347
1348
|
protected processOperationAddFixture(response: Response): Promise<CncMachineOperationDto>;
|
|
1349
|
+
operationRemoveFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
|
|
1350
|
+
protected processOperationRemoveFixture(response: Response): Promise<CncMachineOperationDto>;
|
|
1348
1351
|
}
|
|
1349
1352
|
export interface IOperatorCalculatorsClient {
|
|
1350
1353
|
/**
|
|
@@ -8212,6 +8215,8 @@ export interface IFixtureLastUsedOperationDto {
|
|
|
8212
8215
|
export type GripSideDto = "NotApplicable" | "Inside" | "Outside";
|
|
8213
8216
|
export declare class ListFixtures implements IListFixtures {
|
|
8214
8217
|
pageSize?: number | null;
|
|
8218
|
+
fixtureIdFilter?: string[] | null;
|
|
8219
|
+
fixtureGroupIdFilter?: string[] | null;
|
|
8215
8220
|
fixtureTypeFilter?: FixtureTypeDto[] | null;
|
|
8216
8221
|
deletedFilter?: FixtureDeletedDto | null;
|
|
8217
8222
|
approvedFilter?: FixtureApprovedDto | null;
|
|
@@ -8223,6 +8228,8 @@ export declare class ListFixtures implements IListFixtures {
|
|
|
8223
8228
|
}
|
|
8224
8229
|
export interface IListFixtures {
|
|
8225
8230
|
pageSize?: number | null;
|
|
8231
|
+
fixtureIdFilter?: string[] | null;
|
|
8232
|
+
fixtureGroupIdFilter?: string[] | null;
|
|
8226
8233
|
fixtureTypeFilter?: FixtureTypeDto[] | null;
|
|
8227
8234
|
deletedFilter?: FixtureDeletedDto | null;
|
|
8228
8235
|
approvedFilter?: FixtureApprovedDto | null;
|
|
@@ -10469,6 +10476,7 @@ export declare class ListProductionScheduleOperationsRequest implements IListPro
|
|
|
10469
10476
|
bomPartNumber?: string | null;
|
|
10470
10477
|
bomPartName?: string | null;
|
|
10471
10478
|
bomPartSearchText?: string | null;
|
|
10479
|
+
orderReference?: string | null;
|
|
10472
10480
|
workOrderIds?: string[] | null;
|
|
10473
10481
|
partNumbers?: string[] | null;
|
|
10474
10482
|
partNames?: string[] | null;
|
|
@@ -10479,6 +10487,7 @@ export declare class ListProductionScheduleOperationsRequest implements IListPro
|
|
|
10479
10487
|
bomPartNumbers?: string[] | null;
|
|
10480
10488
|
bomPartNames?: string[] | null;
|
|
10481
10489
|
bomPartSearchTexts?: string[] | null;
|
|
10490
|
+
orderReferences?: string[] | null;
|
|
10482
10491
|
availableWork?: boolean | null;
|
|
10483
10492
|
operationStatuses?: OperationStatusDto[] | null;
|
|
10484
10493
|
after?: Date | null;
|
|
@@ -10502,6 +10511,7 @@ export interface IListProductionScheduleOperationsRequest {
|
|
|
10502
10511
|
bomPartNumber?: string | null;
|
|
10503
10512
|
bomPartName?: string | null;
|
|
10504
10513
|
bomPartSearchText?: string | null;
|
|
10514
|
+
orderReference?: string | null;
|
|
10505
10515
|
workOrderIds?: string[] | null;
|
|
10506
10516
|
partNumbers?: string[] | null;
|
|
10507
10517
|
partNames?: string[] | null;
|
|
@@ -10512,6 +10522,7 @@ export interface IListProductionScheduleOperationsRequest {
|
|
|
10512
10522
|
bomPartNumbers?: string[] | null;
|
|
10513
10523
|
bomPartNames?: string[] | null;
|
|
10514
10524
|
bomPartSearchTexts?: string[] | null;
|
|
10525
|
+
orderReferences?: string[] | null;
|
|
10515
10526
|
availableWork?: boolean | null;
|
|
10516
10527
|
operationStatuses?: OperationStatusDto[] | null;
|
|
10517
10528
|
after?: Date | null;
|
|
@@ -10528,6 +10539,7 @@ export declare class ProductionScheduleFiltersDto implements IProductionSchedule
|
|
|
10528
10539
|
bomPartNumbers?: FilterValueWithQuantity[];
|
|
10529
10540
|
bomPartNames?: FilterValueWithQuantity[];
|
|
10530
10541
|
bomPartSearchTexts?: FilterValueWithQuantity[];
|
|
10542
|
+
orderReferences?: FilterValueWithQuantity[];
|
|
10531
10543
|
operationsWithAvailableWork?: number;
|
|
10532
10544
|
operationStatuses?: OperationStatusFilterWithQuantity[];
|
|
10533
10545
|
lastOperation?: Date | null;
|
|
@@ -10548,6 +10560,7 @@ export interface IProductionScheduleFiltersDto {
|
|
|
10548
10560
|
bomPartNumbers?: FilterValueWithQuantity[];
|
|
10549
10561
|
bomPartNames?: FilterValueWithQuantity[];
|
|
10550
10562
|
bomPartSearchTexts?: FilterValueWithQuantity[];
|
|
10563
|
+
orderReferences?: FilterValueWithQuantity[];
|
|
10551
10564
|
operationsWithAvailableWork?: number;
|
|
10552
10565
|
operationStatuses?: OperationStatusFilterWithQuantity[];
|
|
10553
10566
|
lastOperation?: Date | null;
|
|
@@ -10588,6 +10601,7 @@ export declare class GetAvailableProductionScheduleFiltersRequest implements IGe
|
|
|
10588
10601
|
bomPartNumber?: string | null;
|
|
10589
10602
|
bomPartName?: string | null;
|
|
10590
10603
|
bomPartSearchText?: string | null;
|
|
10604
|
+
orderReference?: string | null;
|
|
10591
10605
|
workOrderIds?: string[] | null;
|
|
10592
10606
|
partNumbers?: string[] | null;
|
|
10593
10607
|
partNames?: string[] | null;
|
|
@@ -10598,6 +10612,7 @@ export declare class GetAvailableProductionScheduleFiltersRequest implements IGe
|
|
|
10598
10612
|
bomPartNumbers?: string[] | null;
|
|
10599
10613
|
bomPartNames?: string[] | null;
|
|
10600
10614
|
bomPartSearchTexts?: string[] | null;
|
|
10615
|
+
orderReferences?: string[] | null;
|
|
10601
10616
|
availableWork?: boolean | null;
|
|
10602
10617
|
operationStatuses?: OperationStatusDto[] | null;
|
|
10603
10618
|
after?: Date | null;
|
|
@@ -10618,6 +10633,7 @@ export interface IGetAvailableProductionScheduleFiltersRequest {
|
|
|
10618
10633
|
bomPartNumber?: string | null;
|
|
10619
10634
|
bomPartName?: string | null;
|
|
10620
10635
|
bomPartSearchText?: string | null;
|
|
10636
|
+
orderReference?: string | null;
|
|
10621
10637
|
workOrderIds?: string[] | null;
|
|
10622
10638
|
partNumbers?: string[] | null;
|
|
10623
10639
|
partNames?: string[] | null;
|
|
@@ -10628,6 +10644,7 @@ export interface IGetAvailableProductionScheduleFiltersRequest {
|
|
|
10628
10644
|
bomPartNumbers?: string[] | null;
|
|
10629
10645
|
bomPartNames?: string[] | null;
|
|
10630
10646
|
bomPartSearchTexts?: string[] | null;
|
|
10647
|
+
orderReferences?: string[] | null;
|
|
10631
10648
|
availableWork?: boolean | null;
|
|
10632
10649
|
operationStatuses?: OperationStatusDto[] | null;
|
|
10633
10650
|
after?: Date | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -11365,18 +11365,18 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
11365
11365
|
}
|
|
11366
11366
|
return Promise.resolve(null);
|
|
11367
11367
|
}
|
|
11368
|
-
operationAddFixture(
|
|
11369
|
-
let url_ = this.baseUrl + "/fixtures/
|
|
11370
|
-
if (fixtureId === undefined || fixtureId === null)
|
|
11371
|
-
throw new Error("The parameter 'fixtureId' must be defined.");
|
|
11372
|
-
url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
|
|
11368
|
+
operationAddFixture(operationId, fixtureIds) {
|
|
11369
|
+
let url_ = this.baseUrl + "/fixtures/operation/{operationId}";
|
|
11373
11370
|
if (operationId === undefined || operationId === null)
|
|
11374
11371
|
throw new Error("The parameter 'operationId' must be defined.");
|
|
11375
11372
|
url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
|
|
11376
11373
|
url_ = url_.replace(/[?&]$/, "");
|
|
11374
|
+
const content_ = JSON.stringify(fixtureIds);
|
|
11377
11375
|
let options_ = {
|
|
11376
|
+
body: content_,
|
|
11378
11377
|
method: "POST",
|
|
11379
11378
|
headers: {
|
|
11379
|
+
"Content-Type": "application/json",
|
|
11380
11380
|
"Accept": "application/json"
|
|
11381
11381
|
}
|
|
11382
11382
|
};
|
|
@@ -11408,6 +11408,49 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
11408
11408
|
}
|
|
11409
11409
|
return Promise.resolve(null);
|
|
11410
11410
|
}
|
|
11411
|
+
operationRemoveFixture(operationId, fixtureIds) {
|
|
11412
|
+
let url_ = this.baseUrl + "/fixtures/operation/{operationId}";
|
|
11413
|
+
if (operationId === undefined || operationId === null)
|
|
11414
|
+
throw new Error("The parameter 'operationId' must be defined.");
|
|
11415
|
+
url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
|
|
11416
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
11417
|
+
const content_ = JSON.stringify(fixtureIds);
|
|
11418
|
+
let options_ = {
|
|
11419
|
+
body: content_,
|
|
11420
|
+
method: "DELETE",
|
|
11421
|
+
headers: {
|
|
11422
|
+
"Content-Type": "application/json",
|
|
11423
|
+
"Accept": "application/json"
|
|
11424
|
+
}
|
|
11425
|
+
};
|
|
11426
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11427
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
11428
|
+
}).then((_response) => {
|
|
11429
|
+
return this.processOperationRemoveFixture(_response);
|
|
11430
|
+
});
|
|
11431
|
+
}
|
|
11432
|
+
processOperationRemoveFixture(response) {
|
|
11433
|
+
const status = response.status;
|
|
11434
|
+
let _headers = {};
|
|
11435
|
+
if (response.headers && response.headers.forEach) {
|
|
11436
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
11437
|
+
}
|
|
11438
|
+
;
|
|
11439
|
+
if (status === 200) {
|
|
11440
|
+
return response.text().then((_responseText) => {
|
|
11441
|
+
let result200 = null;
|
|
11442
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
11443
|
+
result200 = CncMachineOperationDto.fromJS(resultData200);
|
|
11444
|
+
return result200;
|
|
11445
|
+
});
|
|
11446
|
+
}
|
|
11447
|
+
else if (status !== 200 && status !== 204) {
|
|
11448
|
+
return response.text().then((_responseText) => {
|
|
11449
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
11450
|
+
});
|
|
11451
|
+
}
|
|
11452
|
+
return Promise.resolve(null);
|
|
11453
|
+
}
|
|
11411
11454
|
}
|
|
11412
11455
|
export class OperatorCalculatorsClient extends AuthorizedApiBase {
|
|
11413
11456
|
constructor(configuration, baseUrl, http) {
|
|
@@ -32945,6 +32988,16 @@ export class ListFixtures {
|
|
|
32945
32988
|
init(_data) {
|
|
32946
32989
|
if (_data) {
|
|
32947
32990
|
this.pageSize = _data["pageSize"];
|
|
32991
|
+
if (Array.isArray(_data["fixtureIdFilter"])) {
|
|
32992
|
+
this.fixtureIdFilter = [];
|
|
32993
|
+
for (let item of _data["fixtureIdFilter"])
|
|
32994
|
+
this.fixtureIdFilter.push(item);
|
|
32995
|
+
}
|
|
32996
|
+
if (Array.isArray(_data["fixtureGroupIdFilter"])) {
|
|
32997
|
+
this.fixtureGroupIdFilter = [];
|
|
32998
|
+
for (let item of _data["fixtureGroupIdFilter"])
|
|
32999
|
+
this.fixtureGroupIdFilter.push(item);
|
|
33000
|
+
}
|
|
32948
33001
|
if (Array.isArray(_data["fixtureTypeFilter"])) {
|
|
32949
33002
|
this.fixtureTypeFilter = [];
|
|
32950
33003
|
for (let item of _data["fixtureTypeFilter"])
|
|
@@ -32964,6 +33017,16 @@ export class ListFixtures {
|
|
|
32964
33017
|
toJSON(data) {
|
|
32965
33018
|
data = typeof data === 'object' ? data : {};
|
|
32966
33019
|
data["pageSize"] = this.pageSize;
|
|
33020
|
+
if (Array.isArray(this.fixtureIdFilter)) {
|
|
33021
|
+
data["fixtureIdFilter"] = [];
|
|
33022
|
+
for (let item of this.fixtureIdFilter)
|
|
33023
|
+
data["fixtureIdFilter"].push(item);
|
|
33024
|
+
}
|
|
33025
|
+
if (Array.isArray(this.fixtureGroupIdFilter)) {
|
|
33026
|
+
data["fixtureGroupIdFilter"] = [];
|
|
33027
|
+
for (let item of this.fixtureGroupIdFilter)
|
|
33028
|
+
data["fixtureGroupIdFilter"].push(item);
|
|
33029
|
+
}
|
|
32967
33030
|
if (Array.isArray(this.fixtureTypeFilter)) {
|
|
32968
33031
|
data["fixtureTypeFilter"] = [];
|
|
32969
33032
|
for (let item of this.fixtureTypeFilter)
|
|
@@ -37523,6 +37586,7 @@ export class ListProductionScheduleOperationsRequest {
|
|
|
37523
37586
|
this.bomPartNumber = _data["bomPartNumber"];
|
|
37524
37587
|
this.bomPartName = _data["bomPartName"];
|
|
37525
37588
|
this.bomPartSearchText = _data["bomPartSearchText"];
|
|
37589
|
+
this.orderReference = _data["orderReference"];
|
|
37526
37590
|
if (Array.isArray(_data["workOrderIds"])) {
|
|
37527
37591
|
this.workOrderIds = [];
|
|
37528
37592
|
for (let item of _data["workOrderIds"])
|
|
@@ -37573,6 +37637,11 @@ export class ListProductionScheduleOperationsRequest {
|
|
|
37573
37637
|
for (let item of _data["bomPartSearchTexts"])
|
|
37574
37638
|
this.bomPartSearchTexts.push(item);
|
|
37575
37639
|
}
|
|
37640
|
+
if (Array.isArray(_data["orderReferences"])) {
|
|
37641
|
+
this.orderReferences = [];
|
|
37642
|
+
for (let item of _data["orderReferences"])
|
|
37643
|
+
this.orderReferences.push(item);
|
|
37644
|
+
}
|
|
37576
37645
|
this.availableWork = _data["availableWork"];
|
|
37577
37646
|
if (Array.isArray(_data["operationStatuses"])) {
|
|
37578
37647
|
this.operationStatuses = [];
|
|
@@ -37604,6 +37673,7 @@ export class ListProductionScheduleOperationsRequest {
|
|
|
37604
37673
|
data["bomPartNumber"] = this.bomPartNumber;
|
|
37605
37674
|
data["bomPartName"] = this.bomPartName;
|
|
37606
37675
|
data["bomPartSearchText"] = this.bomPartSearchText;
|
|
37676
|
+
data["orderReference"] = this.orderReference;
|
|
37607
37677
|
if (Array.isArray(this.workOrderIds)) {
|
|
37608
37678
|
data["workOrderIds"] = [];
|
|
37609
37679
|
for (let item of this.workOrderIds)
|
|
@@ -37654,6 +37724,11 @@ export class ListProductionScheduleOperationsRequest {
|
|
|
37654
37724
|
for (let item of this.bomPartSearchTexts)
|
|
37655
37725
|
data["bomPartSearchTexts"].push(item);
|
|
37656
37726
|
}
|
|
37727
|
+
if (Array.isArray(this.orderReferences)) {
|
|
37728
|
+
data["orderReferences"] = [];
|
|
37729
|
+
for (let item of this.orderReferences)
|
|
37730
|
+
data["orderReferences"].push(item);
|
|
37731
|
+
}
|
|
37657
37732
|
data["availableWork"] = this.availableWork;
|
|
37658
37733
|
if (Array.isArray(this.operationStatuses)) {
|
|
37659
37734
|
data["operationStatuses"] = [];
|
|
@@ -37726,6 +37801,11 @@ export class ProductionScheduleFiltersDto {
|
|
|
37726
37801
|
for (let item of _data["bomPartSearchTexts"])
|
|
37727
37802
|
this.bomPartSearchTexts.push(FilterValueWithQuantity.fromJS(item));
|
|
37728
37803
|
}
|
|
37804
|
+
if (Array.isArray(_data["orderReferences"])) {
|
|
37805
|
+
this.orderReferences = [];
|
|
37806
|
+
for (let item of _data["orderReferences"])
|
|
37807
|
+
this.orderReferences.push(FilterValueWithQuantity.fromJS(item));
|
|
37808
|
+
}
|
|
37729
37809
|
this.operationsWithAvailableWork = _data["operationsWithAvailableWork"];
|
|
37730
37810
|
if (Array.isArray(_data["operationStatuses"])) {
|
|
37731
37811
|
this.operationStatuses = [];
|
|
@@ -37794,6 +37874,11 @@ export class ProductionScheduleFiltersDto {
|
|
|
37794
37874
|
for (let item of this.bomPartSearchTexts)
|
|
37795
37875
|
data["bomPartSearchTexts"].push(item.toJSON());
|
|
37796
37876
|
}
|
|
37877
|
+
if (Array.isArray(this.orderReferences)) {
|
|
37878
|
+
data["orderReferences"] = [];
|
|
37879
|
+
for (let item of this.orderReferences)
|
|
37880
|
+
data["orderReferences"].push(item.toJSON());
|
|
37881
|
+
}
|
|
37797
37882
|
data["operationsWithAvailableWork"] = this.operationsWithAvailableWork;
|
|
37798
37883
|
if (Array.isArray(this.operationStatuses)) {
|
|
37799
37884
|
data["operationStatuses"] = [];
|
|
@@ -37882,6 +37967,7 @@ export class GetAvailableProductionScheduleFiltersRequest {
|
|
|
37882
37967
|
this.bomPartNumber = _data["bomPartNumber"];
|
|
37883
37968
|
this.bomPartName = _data["bomPartName"];
|
|
37884
37969
|
this.bomPartSearchText = _data["bomPartSearchText"];
|
|
37970
|
+
this.orderReference = _data["orderReference"];
|
|
37885
37971
|
if (Array.isArray(_data["workOrderIds"])) {
|
|
37886
37972
|
this.workOrderIds = [];
|
|
37887
37973
|
for (let item of _data["workOrderIds"])
|
|
@@ -37932,6 +38018,11 @@ export class GetAvailableProductionScheduleFiltersRequest {
|
|
|
37932
38018
|
for (let item of _data["bomPartSearchTexts"])
|
|
37933
38019
|
this.bomPartSearchTexts.push(item);
|
|
37934
38020
|
}
|
|
38021
|
+
if (Array.isArray(_data["orderReferences"])) {
|
|
38022
|
+
this.orderReferences = [];
|
|
38023
|
+
for (let item of _data["orderReferences"])
|
|
38024
|
+
this.orderReferences.push(item);
|
|
38025
|
+
}
|
|
37935
38026
|
this.availableWork = _data["availableWork"];
|
|
37936
38027
|
if (Array.isArray(_data["operationStatuses"])) {
|
|
37937
38028
|
this.operationStatuses = [];
|
|
@@ -37960,6 +38051,7 @@ export class GetAvailableProductionScheduleFiltersRequest {
|
|
|
37960
38051
|
data["bomPartNumber"] = this.bomPartNumber;
|
|
37961
38052
|
data["bomPartName"] = this.bomPartName;
|
|
37962
38053
|
data["bomPartSearchText"] = this.bomPartSearchText;
|
|
38054
|
+
data["orderReference"] = this.orderReference;
|
|
37963
38055
|
if (Array.isArray(this.workOrderIds)) {
|
|
37964
38056
|
data["workOrderIds"] = [];
|
|
37965
38057
|
for (let item of this.workOrderIds)
|
|
@@ -38010,6 +38102,11 @@ export class GetAvailableProductionScheduleFiltersRequest {
|
|
|
38010
38102
|
for (let item of this.bomPartSearchTexts)
|
|
38011
38103
|
data["bomPartSearchTexts"].push(item);
|
|
38012
38104
|
}
|
|
38105
|
+
if (Array.isArray(this.orderReferences)) {
|
|
38106
|
+
data["orderReferences"] = [];
|
|
38107
|
+
for (let item of this.orderReferences)
|
|
38108
|
+
data["orderReferences"].push(item);
|
|
38109
|
+
}
|
|
38013
38110
|
data["availableWork"] = this.availableWork;
|
|
38014
38111
|
if (Array.isArray(this.operationStatuses)) {
|
|
38015
38112
|
data["operationStatuses"] = [];
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -11941,7 +11941,9 @@ export interface ICncSetupFixturesClient {
|
|
|
11941
11941
|
|
|
11942
11942
|
updateFixtures(update: FixtureUpdateDto[]): Promise<FixtureDto[]>;
|
|
11943
11943
|
|
|
11944
|
-
operationAddFixture(
|
|
11944
|
+
operationAddFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
|
|
11945
|
+
|
|
11946
|
+
operationRemoveFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
|
|
11945
11947
|
}
|
|
11946
11948
|
|
|
11947
11949
|
export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSetupFixturesClient {
|
|
@@ -12118,19 +12120,20 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
|
|
|
12118
12120
|
return Promise.resolve<FixtureDto[]>(null as any);
|
|
12119
12121
|
}
|
|
12120
12122
|
|
|
12121
|
-
operationAddFixture(
|
|
12122
|
-
let url_ = this.baseUrl + "/fixtures/
|
|
12123
|
-
if (fixtureId === undefined || fixtureId === null)
|
|
12124
|
-
throw new Error("The parameter 'fixtureId' must be defined.");
|
|
12125
|
-
url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
|
|
12123
|
+
operationAddFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto> {
|
|
12124
|
+
let url_ = this.baseUrl + "/fixtures/operation/{operationId}";
|
|
12126
12125
|
if (operationId === undefined || operationId === null)
|
|
12127
12126
|
throw new Error("The parameter 'operationId' must be defined.");
|
|
12128
12127
|
url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
|
|
12129
12128
|
url_ = url_.replace(/[?&]$/, "");
|
|
12130
12129
|
|
|
12130
|
+
const content_ = JSON.stringify(fixtureIds);
|
|
12131
|
+
|
|
12131
12132
|
let options_: RequestInit = {
|
|
12133
|
+
body: content_,
|
|
12132
12134
|
method: "POST",
|
|
12133
12135
|
headers: {
|
|
12136
|
+
"Content-Type": "application/json",
|
|
12134
12137
|
"Accept": "application/json"
|
|
12135
12138
|
}
|
|
12136
12139
|
};
|
|
@@ -12159,6 +12162,49 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
|
|
|
12159
12162
|
}
|
|
12160
12163
|
return Promise.resolve<CncMachineOperationDto>(null as any);
|
|
12161
12164
|
}
|
|
12165
|
+
|
|
12166
|
+
operationRemoveFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto> {
|
|
12167
|
+
let url_ = this.baseUrl + "/fixtures/operation/{operationId}";
|
|
12168
|
+
if (operationId === undefined || operationId === null)
|
|
12169
|
+
throw new Error("The parameter 'operationId' must be defined.");
|
|
12170
|
+
url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
|
|
12171
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
12172
|
+
|
|
12173
|
+
const content_ = JSON.stringify(fixtureIds);
|
|
12174
|
+
|
|
12175
|
+
let options_: RequestInit = {
|
|
12176
|
+
body: content_,
|
|
12177
|
+
method: "DELETE",
|
|
12178
|
+
headers: {
|
|
12179
|
+
"Content-Type": "application/json",
|
|
12180
|
+
"Accept": "application/json"
|
|
12181
|
+
}
|
|
12182
|
+
};
|
|
12183
|
+
|
|
12184
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12185
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
12186
|
+
}).then((_response: Response) => {
|
|
12187
|
+
return this.processOperationRemoveFixture(_response);
|
|
12188
|
+
});
|
|
12189
|
+
}
|
|
12190
|
+
|
|
12191
|
+
protected processOperationRemoveFixture(response: Response): Promise<CncMachineOperationDto> {
|
|
12192
|
+
const status = response.status;
|
|
12193
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12194
|
+
if (status === 200) {
|
|
12195
|
+
return response.text().then((_responseText) => {
|
|
12196
|
+
let result200: any = null;
|
|
12197
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12198
|
+
result200 = CncMachineOperationDto.fromJS(resultData200);
|
|
12199
|
+
return result200;
|
|
12200
|
+
});
|
|
12201
|
+
} else if (status !== 200 && status !== 204) {
|
|
12202
|
+
return response.text().then((_responseText) => {
|
|
12203
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12204
|
+
});
|
|
12205
|
+
}
|
|
12206
|
+
return Promise.resolve<CncMachineOperationDto>(null as any);
|
|
12207
|
+
}
|
|
12162
12208
|
}
|
|
12163
12209
|
|
|
12164
12210
|
export interface IOperatorCalculatorsClient {
|
|
@@ -40043,6 +40089,8 @@ export type GripSideDto = "NotApplicable" | "Inside" | "Outside";
|
|
|
40043
40089
|
|
|
40044
40090
|
export class ListFixtures implements IListFixtures {
|
|
40045
40091
|
pageSize?: number | null;
|
|
40092
|
+
fixtureIdFilter?: string[] | null;
|
|
40093
|
+
fixtureGroupIdFilter?: string[] | null;
|
|
40046
40094
|
fixtureTypeFilter?: FixtureTypeDto[] | null;
|
|
40047
40095
|
deletedFilter?: FixtureDeletedDto | null;
|
|
40048
40096
|
approvedFilter?: FixtureApprovedDto | null;
|
|
@@ -40060,6 +40108,16 @@ export class ListFixtures implements IListFixtures {
|
|
|
40060
40108
|
init(_data?: any) {
|
|
40061
40109
|
if (_data) {
|
|
40062
40110
|
this.pageSize = _data["pageSize"];
|
|
40111
|
+
if (Array.isArray(_data["fixtureIdFilter"])) {
|
|
40112
|
+
this.fixtureIdFilter = [] as any;
|
|
40113
|
+
for (let item of _data["fixtureIdFilter"])
|
|
40114
|
+
this.fixtureIdFilter!.push(item);
|
|
40115
|
+
}
|
|
40116
|
+
if (Array.isArray(_data["fixtureGroupIdFilter"])) {
|
|
40117
|
+
this.fixtureGroupIdFilter = [] as any;
|
|
40118
|
+
for (let item of _data["fixtureGroupIdFilter"])
|
|
40119
|
+
this.fixtureGroupIdFilter!.push(item);
|
|
40120
|
+
}
|
|
40063
40121
|
if (Array.isArray(_data["fixtureTypeFilter"])) {
|
|
40064
40122
|
this.fixtureTypeFilter = [] as any;
|
|
40065
40123
|
for (let item of _data["fixtureTypeFilter"])
|
|
@@ -40081,6 +40139,16 @@ export class ListFixtures implements IListFixtures {
|
|
|
40081
40139
|
toJSON(data?: any) {
|
|
40082
40140
|
data = typeof data === 'object' ? data : {};
|
|
40083
40141
|
data["pageSize"] = this.pageSize;
|
|
40142
|
+
if (Array.isArray(this.fixtureIdFilter)) {
|
|
40143
|
+
data["fixtureIdFilter"] = [];
|
|
40144
|
+
for (let item of this.fixtureIdFilter)
|
|
40145
|
+
data["fixtureIdFilter"].push(item);
|
|
40146
|
+
}
|
|
40147
|
+
if (Array.isArray(this.fixtureGroupIdFilter)) {
|
|
40148
|
+
data["fixtureGroupIdFilter"] = [];
|
|
40149
|
+
for (let item of this.fixtureGroupIdFilter)
|
|
40150
|
+
data["fixtureGroupIdFilter"].push(item);
|
|
40151
|
+
}
|
|
40084
40152
|
if (Array.isArray(this.fixtureTypeFilter)) {
|
|
40085
40153
|
data["fixtureTypeFilter"] = [];
|
|
40086
40154
|
for (let item of this.fixtureTypeFilter)
|
|
@@ -40095,6 +40163,8 @@ export class ListFixtures implements IListFixtures {
|
|
|
40095
40163
|
|
|
40096
40164
|
export interface IListFixtures {
|
|
40097
40165
|
pageSize?: number | null;
|
|
40166
|
+
fixtureIdFilter?: string[] | null;
|
|
40167
|
+
fixtureGroupIdFilter?: string[] | null;
|
|
40098
40168
|
fixtureTypeFilter?: FixtureTypeDto[] | null;
|
|
40099
40169
|
deletedFilter?: FixtureDeletedDto | null;
|
|
40100
40170
|
approvedFilter?: FixtureApprovedDto | null;
|
|
@@ -46873,6 +46943,7 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
|
|
|
46873
46943
|
bomPartNumber?: string | null;
|
|
46874
46944
|
bomPartName?: string | null;
|
|
46875
46945
|
bomPartSearchText?: string | null;
|
|
46946
|
+
orderReference?: string | null;
|
|
46876
46947
|
workOrderIds?: string[] | null;
|
|
46877
46948
|
partNumbers?: string[] | null;
|
|
46878
46949
|
partNames?: string[] | null;
|
|
@@ -46883,6 +46954,7 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
|
|
|
46883
46954
|
bomPartNumbers?: string[] | null;
|
|
46884
46955
|
bomPartNames?: string[] | null;
|
|
46885
46956
|
bomPartSearchTexts?: string[] | null;
|
|
46957
|
+
orderReferences?: string[] | null;
|
|
46886
46958
|
availableWork?: boolean | null;
|
|
46887
46959
|
operationStatuses?: OperationStatusDto[] | null;
|
|
46888
46960
|
after?: Date | null;
|
|
@@ -46912,6 +46984,7 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
|
|
|
46912
46984
|
this.bomPartNumber = _data["bomPartNumber"];
|
|
46913
46985
|
this.bomPartName = _data["bomPartName"];
|
|
46914
46986
|
this.bomPartSearchText = _data["bomPartSearchText"];
|
|
46987
|
+
this.orderReference = _data["orderReference"];
|
|
46915
46988
|
if (Array.isArray(_data["workOrderIds"])) {
|
|
46916
46989
|
this.workOrderIds = [] as any;
|
|
46917
46990
|
for (let item of _data["workOrderIds"])
|
|
@@ -46962,6 +47035,11 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
|
|
|
46962
47035
|
for (let item of _data["bomPartSearchTexts"])
|
|
46963
47036
|
this.bomPartSearchTexts!.push(item);
|
|
46964
47037
|
}
|
|
47038
|
+
if (Array.isArray(_data["orderReferences"])) {
|
|
47039
|
+
this.orderReferences = [] as any;
|
|
47040
|
+
for (let item of _data["orderReferences"])
|
|
47041
|
+
this.orderReferences!.push(item);
|
|
47042
|
+
}
|
|
46965
47043
|
this.availableWork = _data["availableWork"];
|
|
46966
47044
|
if (Array.isArray(_data["operationStatuses"])) {
|
|
46967
47045
|
this.operationStatuses = [] as any;
|
|
@@ -46995,6 +47073,7 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
|
|
|
46995
47073
|
data["bomPartNumber"] = this.bomPartNumber;
|
|
46996
47074
|
data["bomPartName"] = this.bomPartName;
|
|
46997
47075
|
data["bomPartSearchText"] = this.bomPartSearchText;
|
|
47076
|
+
data["orderReference"] = this.orderReference;
|
|
46998
47077
|
if (Array.isArray(this.workOrderIds)) {
|
|
46999
47078
|
data["workOrderIds"] = [];
|
|
47000
47079
|
for (let item of this.workOrderIds)
|
|
@@ -47045,6 +47124,11 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
|
|
|
47045
47124
|
for (let item of this.bomPartSearchTexts)
|
|
47046
47125
|
data["bomPartSearchTexts"].push(item);
|
|
47047
47126
|
}
|
|
47127
|
+
if (Array.isArray(this.orderReferences)) {
|
|
47128
|
+
data["orderReferences"] = [];
|
|
47129
|
+
for (let item of this.orderReferences)
|
|
47130
|
+
data["orderReferences"].push(item);
|
|
47131
|
+
}
|
|
47048
47132
|
data["availableWork"] = this.availableWork;
|
|
47049
47133
|
if (Array.isArray(this.operationStatuses)) {
|
|
47050
47134
|
data["operationStatuses"] = [];
|
|
@@ -47071,6 +47155,7 @@ export interface IListProductionScheduleOperationsRequest {
|
|
|
47071
47155
|
bomPartNumber?: string | null;
|
|
47072
47156
|
bomPartName?: string | null;
|
|
47073
47157
|
bomPartSearchText?: string | null;
|
|
47158
|
+
orderReference?: string | null;
|
|
47074
47159
|
workOrderIds?: string[] | null;
|
|
47075
47160
|
partNumbers?: string[] | null;
|
|
47076
47161
|
partNames?: string[] | null;
|
|
@@ -47081,6 +47166,7 @@ export interface IListProductionScheduleOperationsRequest {
|
|
|
47081
47166
|
bomPartNumbers?: string[] | null;
|
|
47082
47167
|
bomPartNames?: string[] | null;
|
|
47083
47168
|
bomPartSearchTexts?: string[] | null;
|
|
47169
|
+
orderReferences?: string[] | null;
|
|
47084
47170
|
availableWork?: boolean | null;
|
|
47085
47171
|
operationStatuses?: OperationStatusDto[] | null;
|
|
47086
47172
|
after?: Date | null;
|
|
@@ -47098,6 +47184,7 @@ export class ProductionScheduleFiltersDto implements IProductionScheduleFiltersD
|
|
|
47098
47184
|
bomPartNumbers?: FilterValueWithQuantity[];
|
|
47099
47185
|
bomPartNames?: FilterValueWithQuantity[];
|
|
47100
47186
|
bomPartSearchTexts?: FilterValueWithQuantity[];
|
|
47187
|
+
orderReferences?: FilterValueWithQuantity[];
|
|
47101
47188
|
operationsWithAvailableWork?: number;
|
|
47102
47189
|
operationStatuses?: OperationStatusFilterWithQuantity[];
|
|
47103
47190
|
lastOperation?: Date | null;
|
|
@@ -47164,6 +47251,11 @@ export class ProductionScheduleFiltersDto implements IProductionScheduleFiltersD
|
|
|
47164
47251
|
for (let item of _data["bomPartSearchTexts"])
|
|
47165
47252
|
this.bomPartSearchTexts!.push(FilterValueWithQuantity.fromJS(item));
|
|
47166
47253
|
}
|
|
47254
|
+
if (Array.isArray(_data["orderReferences"])) {
|
|
47255
|
+
this.orderReferences = [] as any;
|
|
47256
|
+
for (let item of _data["orderReferences"])
|
|
47257
|
+
this.orderReferences!.push(FilterValueWithQuantity.fromJS(item));
|
|
47258
|
+
}
|
|
47167
47259
|
this.operationsWithAvailableWork = _data["operationsWithAvailableWork"];
|
|
47168
47260
|
if (Array.isArray(_data["operationStatuses"])) {
|
|
47169
47261
|
this.operationStatuses = [] as any;
|
|
@@ -47234,6 +47326,11 @@ export class ProductionScheduleFiltersDto implements IProductionScheduleFiltersD
|
|
|
47234
47326
|
for (let item of this.bomPartSearchTexts)
|
|
47235
47327
|
data["bomPartSearchTexts"].push(item.toJSON());
|
|
47236
47328
|
}
|
|
47329
|
+
if (Array.isArray(this.orderReferences)) {
|
|
47330
|
+
data["orderReferences"] = [];
|
|
47331
|
+
for (let item of this.orderReferences)
|
|
47332
|
+
data["orderReferences"].push(item.toJSON());
|
|
47333
|
+
}
|
|
47237
47334
|
data["operationsWithAvailableWork"] = this.operationsWithAvailableWork;
|
|
47238
47335
|
if (Array.isArray(this.operationStatuses)) {
|
|
47239
47336
|
data["operationStatuses"] = [];
|
|
@@ -47257,6 +47354,7 @@ export interface IProductionScheduleFiltersDto {
|
|
|
47257
47354
|
bomPartNumbers?: FilterValueWithQuantity[];
|
|
47258
47355
|
bomPartNames?: FilterValueWithQuantity[];
|
|
47259
47356
|
bomPartSearchTexts?: FilterValueWithQuantity[];
|
|
47357
|
+
orderReferences?: FilterValueWithQuantity[];
|
|
47260
47358
|
operationsWithAvailableWork?: number;
|
|
47261
47359
|
operationStatuses?: OperationStatusFilterWithQuantity[];
|
|
47262
47360
|
lastOperation?: Date | null;
|
|
@@ -47354,6 +47452,7 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
|
|
|
47354
47452
|
bomPartNumber?: string | null;
|
|
47355
47453
|
bomPartName?: string | null;
|
|
47356
47454
|
bomPartSearchText?: string | null;
|
|
47455
|
+
orderReference?: string | null;
|
|
47357
47456
|
workOrderIds?: string[] | null;
|
|
47358
47457
|
partNumbers?: string[] | null;
|
|
47359
47458
|
partNames?: string[] | null;
|
|
@@ -47364,6 +47463,7 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
|
|
|
47364
47463
|
bomPartNumbers?: string[] | null;
|
|
47365
47464
|
bomPartNames?: string[] | null;
|
|
47366
47465
|
bomPartSearchTexts?: string[] | null;
|
|
47466
|
+
orderReferences?: string[] | null;
|
|
47367
47467
|
availableWork?: boolean | null;
|
|
47368
47468
|
operationStatuses?: OperationStatusDto[] | null;
|
|
47369
47469
|
after?: Date | null;
|
|
@@ -47390,6 +47490,7 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
|
|
|
47390
47490
|
this.bomPartNumber = _data["bomPartNumber"];
|
|
47391
47491
|
this.bomPartName = _data["bomPartName"];
|
|
47392
47492
|
this.bomPartSearchText = _data["bomPartSearchText"];
|
|
47493
|
+
this.orderReference = _data["orderReference"];
|
|
47393
47494
|
if (Array.isArray(_data["workOrderIds"])) {
|
|
47394
47495
|
this.workOrderIds = [] as any;
|
|
47395
47496
|
for (let item of _data["workOrderIds"])
|
|
@@ -47440,6 +47541,11 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
|
|
|
47440
47541
|
for (let item of _data["bomPartSearchTexts"])
|
|
47441
47542
|
this.bomPartSearchTexts!.push(item);
|
|
47442
47543
|
}
|
|
47544
|
+
if (Array.isArray(_data["orderReferences"])) {
|
|
47545
|
+
this.orderReferences = [] as any;
|
|
47546
|
+
for (let item of _data["orderReferences"])
|
|
47547
|
+
this.orderReferences!.push(item);
|
|
47548
|
+
}
|
|
47443
47549
|
this.availableWork = _data["availableWork"];
|
|
47444
47550
|
if (Array.isArray(_data["operationStatuses"])) {
|
|
47445
47551
|
this.operationStatuses = [] as any;
|
|
@@ -47470,6 +47576,7 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
|
|
|
47470
47576
|
data["bomPartNumber"] = this.bomPartNumber;
|
|
47471
47577
|
data["bomPartName"] = this.bomPartName;
|
|
47472
47578
|
data["bomPartSearchText"] = this.bomPartSearchText;
|
|
47579
|
+
data["orderReference"] = this.orderReference;
|
|
47473
47580
|
if (Array.isArray(this.workOrderIds)) {
|
|
47474
47581
|
data["workOrderIds"] = [];
|
|
47475
47582
|
for (let item of this.workOrderIds)
|
|
@@ -47520,6 +47627,11 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
|
|
|
47520
47627
|
for (let item of this.bomPartSearchTexts)
|
|
47521
47628
|
data["bomPartSearchTexts"].push(item);
|
|
47522
47629
|
}
|
|
47630
|
+
if (Array.isArray(this.orderReferences)) {
|
|
47631
|
+
data["orderReferences"] = [];
|
|
47632
|
+
for (let item of this.orderReferences)
|
|
47633
|
+
data["orderReferences"].push(item);
|
|
47634
|
+
}
|
|
47523
47635
|
data["availableWork"] = this.availableWork;
|
|
47524
47636
|
if (Array.isArray(this.operationStatuses)) {
|
|
47525
47637
|
data["operationStatuses"] = [];
|
|
@@ -47543,6 +47655,7 @@ export interface IGetAvailableProductionScheduleFiltersRequest {
|
|
|
47543
47655
|
bomPartNumber?: string | null;
|
|
47544
47656
|
bomPartName?: string | null;
|
|
47545
47657
|
bomPartSearchText?: string | null;
|
|
47658
|
+
orderReference?: string | null;
|
|
47546
47659
|
workOrderIds?: string[] | null;
|
|
47547
47660
|
partNumbers?: string[] | null;
|
|
47548
47661
|
partNames?: string[] | null;
|
|
@@ -47553,6 +47666,7 @@ export interface IGetAvailableProductionScheduleFiltersRequest {
|
|
|
47553
47666
|
bomPartNumbers?: string[] | null;
|
|
47554
47667
|
bomPartNames?: string[] | null;
|
|
47555
47668
|
bomPartSearchTexts?: string[] | null;
|
|
47669
|
+
orderReferences?: string[] | null;
|
|
47556
47670
|
availableWork?: boolean | null;
|
|
47557
47671
|
operationStatuses?: OperationStatusDto[] | null;
|
|
47558
47672
|
after?: Date | null;
|