@ignos/api-client 20250604.0.11868 → 20250605.0.11876
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 +11 -6
- package/lib/ignosportal-api.js +44 -6
- package/package.json +1 -1
- package/src/ignosportal-api.ts +54 -12
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1325,6 +1325,7 @@ export interface ICncSetupFixturesClient {
|
|
|
1325
1325
|
listFixtures(request: ListFixtures): Promise<FixtureListDto>;
|
|
1326
1326
|
getFixture(fixtureId: string): Promise<FixtureDto>;
|
|
1327
1327
|
createFixture(update: FixtureCreateDto): Promise<FixtureDto>;
|
|
1328
|
+
deleteFixture(fixtureIds: string[]): Promise<void>;
|
|
1328
1329
|
updateFixtures(update: FixtureUpdateDto[]): Promise<FixtureDto[]>;
|
|
1329
1330
|
getFixtureInterfaceSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
|
|
1330
1331
|
getFixtureLocationSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
|
|
@@ -1350,6 +1351,8 @@ export declare class CncSetupFixturesClient extends AuthorizedApiBase implements
|
|
|
1350
1351
|
protected processGetFixture(response: Response): Promise<FixtureDto>;
|
|
1351
1352
|
createFixture(update: FixtureCreateDto): Promise<FixtureDto>;
|
|
1352
1353
|
protected processCreateFixture(response: Response): Promise<FixtureDto>;
|
|
1354
|
+
deleteFixture(fixtureIds: string[]): Promise<void>;
|
|
1355
|
+
protected processDeleteFixture(response: Response): Promise<void>;
|
|
1353
1356
|
updateFixtures(update: FixtureUpdateDto[]): Promise<FixtureDto[]>;
|
|
1354
1357
|
protected processUpdateFixtures(response: Response): Promise<FixtureDto[]>;
|
|
1355
1358
|
getFixtureInterfaceSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
|
|
@@ -8258,7 +8261,8 @@ export declare class FixtureDto implements IFixtureDto {
|
|
|
8258
8261
|
approved?: boolean;
|
|
8259
8262
|
drawing?: string | null;
|
|
8260
8263
|
drawingRev?: string | null;
|
|
8261
|
-
|
|
8264
|
+
sourceMachineId?: string | null;
|
|
8265
|
+
sourceMachineName?: string | null;
|
|
8262
8266
|
location?: string | null;
|
|
8263
8267
|
type?: FixtureTypeDto;
|
|
8264
8268
|
interface?: string | null;
|
|
@@ -8288,7 +8292,8 @@ export interface IFixtureDto {
|
|
|
8288
8292
|
approved?: boolean;
|
|
8289
8293
|
drawing?: string | null;
|
|
8290
8294
|
drawingRev?: string | null;
|
|
8291
|
-
|
|
8295
|
+
sourceMachineId?: string | null;
|
|
8296
|
+
sourceMachineName?: string | null;
|
|
8292
8297
|
location?: string | null;
|
|
8293
8298
|
type?: FixtureTypeDto;
|
|
8294
8299
|
interface?: string | null;
|
|
@@ -8448,7 +8453,7 @@ export declare class FixtureCreateDto implements IFixtureCreateDto {
|
|
|
8448
8453
|
approved?: boolean;
|
|
8449
8454
|
drawing?: string | null;
|
|
8450
8455
|
drawingRev?: string | null;
|
|
8451
|
-
|
|
8456
|
+
sourceMachineId?: string | null;
|
|
8452
8457
|
location?: string | null;
|
|
8453
8458
|
type?: FixtureTypeDto;
|
|
8454
8459
|
interface?: string | null;
|
|
@@ -8473,7 +8478,7 @@ export interface IFixtureCreateDto {
|
|
|
8473
8478
|
approved?: boolean;
|
|
8474
8479
|
drawing?: string | null;
|
|
8475
8480
|
drawingRev?: string | null;
|
|
8476
|
-
|
|
8481
|
+
sourceMachineId?: string | null;
|
|
8477
8482
|
location?: string | null;
|
|
8478
8483
|
type?: FixtureTypeDto;
|
|
8479
8484
|
interface?: string | null;
|
|
@@ -8495,7 +8500,7 @@ export declare class FixtureUpdateDto implements IFixtureUpdateDto {
|
|
|
8495
8500
|
approved?: boolean;
|
|
8496
8501
|
drawing?: string | null;
|
|
8497
8502
|
drawingRev?: string | null;
|
|
8498
|
-
|
|
8503
|
+
sourceMachineId?: string | null;
|
|
8499
8504
|
location?: string | null;
|
|
8500
8505
|
type?: FixtureTypeDto;
|
|
8501
8506
|
interface?: string | null;
|
|
@@ -8521,7 +8526,7 @@ export interface IFixtureUpdateDto {
|
|
|
8521
8526
|
approved?: boolean;
|
|
8522
8527
|
drawing?: string | null;
|
|
8523
8528
|
drawingRev?: string | null;
|
|
8524
|
-
|
|
8529
|
+
sourceMachineId?: string | null;
|
|
8525
8530
|
location?: string | null;
|
|
8526
8531
|
type?: FixtureTypeDto;
|
|
8527
8532
|
interface?: string | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -11321,6 +11321,42 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
11321
11321
|
}
|
|
11322
11322
|
return Promise.resolve(null);
|
|
11323
11323
|
}
|
|
11324
|
+
deleteFixture(fixtureIds) {
|
|
11325
|
+
let url_ = this.baseUrl + "/fixtures";
|
|
11326
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
11327
|
+
const content_ = JSON.stringify(fixtureIds);
|
|
11328
|
+
let options_ = {
|
|
11329
|
+
body: content_,
|
|
11330
|
+
method: "DELETE",
|
|
11331
|
+
headers: {
|
|
11332
|
+
"Content-Type": "application/json",
|
|
11333
|
+
}
|
|
11334
|
+
};
|
|
11335
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11336
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
11337
|
+
}).then((_response) => {
|
|
11338
|
+
return this.processDeleteFixture(_response);
|
|
11339
|
+
});
|
|
11340
|
+
}
|
|
11341
|
+
processDeleteFixture(response) {
|
|
11342
|
+
const status = response.status;
|
|
11343
|
+
let _headers = {};
|
|
11344
|
+
if (response.headers && response.headers.forEach) {
|
|
11345
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
11346
|
+
}
|
|
11347
|
+
;
|
|
11348
|
+
if (status === 204) {
|
|
11349
|
+
return response.text().then((_responseText) => {
|
|
11350
|
+
return;
|
|
11351
|
+
});
|
|
11352
|
+
}
|
|
11353
|
+
else if (status !== 200 && status !== 204) {
|
|
11354
|
+
return response.text().then((_responseText) => {
|
|
11355
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
11356
|
+
});
|
|
11357
|
+
}
|
|
11358
|
+
return Promise.resolve(null);
|
|
11359
|
+
}
|
|
11324
11360
|
updateFixtures(update) {
|
|
11325
11361
|
let url_ = this.baseUrl + "/fixtures";
|
|
11326
11362
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -33761,7 +33797,8 @@ export class FixtureDto {
|
|
|
33761
33797
|
this.approved = _data["approved"];
|
|
33762
33798
|
this.drawing = _data["drawing"];
|
|
33763
33799
|
this.drawingRev = _data["drawingRev"];
|
|
33764
|
-
this.
|
|
33800
|
+
this.sourceMachineId = _data["sourceMachineId"];
|
|
33801
|
+
this.sourceMachineName = _data["sourceMachineName"];
|
|
33765
33802
|
this.location = _data["location"];
|
|
33766
33803
|
this.type = _data["type"];
|
|
33767
33804
|
this.interface = _data["interface"];
|
|
@@ -33803,7 +33840,8 @@ export class FixtureDto {
|
|
|
33803
33840
|
data["approved"] = this.approved;
|
|
33804
33841
|
data["drawing"] = this.drawing;
|
|
33805
33842
|
data["drawingRev"] = this.drawingRev;
|
|
33806
|
-
data["
|
|
33843
|
+
data["sourceMachineId"] = this.sourceMachineId;
|
|
33844
|
+
data["sourceMachineName"] = this.sourceMachineName;
|
|
33807
33845
|
data["location"] = this.location;
|
|
33808
33846
|
data["type"] = this.type;
|
|
33809
33847
|
data["interface"] = this.interface;
|
|
@@ -34093,7 +34131,7 @@ export class FixtureCreateDto {
|
|
|
34093
34131
|
this.approved = _data["approved"];
|
|
34094
34132
|
this.drawing = _data["drawing"];
|
|
34095
34133
|
this.drawingRev = _data["drawingRev"];
|
|
34096
|
-
this.
|
|
34134
|
+
this.sourceMachineId = _data["sourceMachineId"];
|
|
34097
34135
|
this.location = _data["location"];
|
|
34098
34136
|
this.type = _data["type"];
|
|
34099
34137
|
this.interface = _data["interface"];
|
|
@@ -34122,7 +34160,7 @@ export class FixtureCreateDto {
|
|
|
34122
34160
|
data["approved"] = this.approved;
|
|
34123
34161
|
data["drawing"] = this.drawing;
|
|
34124
34162
|
data["drawingRev"] = this.drawingRev;
|
|
34125
|
-
data["
|
|
34163
|
+
data["sourceMachineId"] = this.sourceMachineId;
|
|
34126
34164
|
data["location"] = this.location;
|
|
34127
34165
|
data["type"] = this.type;
|
|
34128
34166
|
data["interface"] = this.interface;
|
|
@@ -34156,7 +34194,7 @@ export class FixtureUpdateDto {
|
|
|
34156
34194
|
this.approved = _data["approved"];
|
|
34157
34195
|
this.drawing = _data["drawing"];
|
|
34158
34196
|
this.drawingRev = _data["drawingRev"];
|
|
34159
|
-
this.
|
|
34197
|
+
this.sourceMachineId = _data["sourceMachineId"];
|
|
34160
34198
|
this.location = _data["location"];
|
|
34161
34199
|
this.type = _data["type"];
|
|
34162
34200
|
this.interface = _data["interface"];
|
|
@@ -34186,7 +34224,7 @@ export class FixtureUpdateDto {
|
|
|
34186
34224
|
data["approved"] = this.approved;
|
|
34187
34225
|
data["drawing"] = this.drawing;
|
|
34188
34226
|
data["drawingRev"] = this.drawingRev;
|
|
34189
|
-
data["
|
|
34227
|
+
data["sourceMachineId"] = this.sourceMachineId;
|
|
34190
34228
|
data["location"] = this.location;
|
|
34191
34229
|
data["type"] = this.type;
|
|
34192
34230
|
data["interface"] = this.interface;
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -11939,6 +11939,8 @@ export interface ICncSetupFixturesClient {
|
|
|
11939
11939
|
|
|
11940
11940
|
createFixture(update: FixtureCreateDto): Promise<FixtureDto>;
|
|
11941
11941
|
|
|
11942
|
+
deleteFixture(fixtureIds: string[]): Promise<void>;
|
|
11943
|
+
|
|
11942
11944
|
updateFixtures(update: FixtureUpdateDto[]): Promise<FixtureDto[]>;
|
|
11943
11945
|
|
|
11944
11946
|
getFixtureInterfaceSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
|
|
@@ -12092,6 +12094,42 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
|
|
|
12092
12094
|
return Promise.resolve<FixtureDto>(null as any);
|
|
12093
12095
|
}
|
|
12094
12096
|
|
|
12097
|
+
deleteFixture(fixtureIds: string[]): Promise<void> {
|
|
12098
|
+
let url_ = this.baseUrl + "/fixtures";
|
|
12099
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
12100
|
+
|
|
12101
|
+
const content_ = JSON.stringify(fixtureIds);
|
|
12102
|
+
|
|
12103
|
+
let options_: RequestInit = {
|
|
12104
|
+
body: content_,
|
|
12105
|
+
method: "DELETE",
|
|
12106
|
+
headers: {
|
|
12107
|
+
"Content-Type": "application/json",
|
|
12108
|
+
}
|
|
12109
|
+
};
|
|
12110
|
+
|
|
12111
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12112
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
12113
|
+
}).then((_response: Response) => {
|
|
12114
|
+
return this.processDeleteFixture(_response);
|
|
12115
|
+
});
|
|
12116
|
+
}
|
|
12117
|
+
|
|
12118
|
+
protected processDeleteFixture(response: Response): Promise<void> {
|
|
12119
|
+
const status = response.status;
|
|
12120
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12121
|
+
if (status === 204) {
|
|
12122
|
+
return response.text().then((_responseText) => {
|
|
12123
|
+
return;
|
|
12124
|
+
});
|
|
12125
|
+
} else if (status !== 200 && status !== 204) {
|
|
12126
|
+
return response.text().then((_responseText) => {
|
|
12127
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12128
|
+
});
|
|
12129
|
+
}
|
|
12130
|
+
return Promise.resolve<void>(null as any);
|
|
12131
|
+
}
|
|
12132
|
+
|
|
12095
12133
|
updateFixtures(update: FixtureUpdateDto[]): Promise<FixtureDto[]> {
|
|
12096
12134
|
let url_ = this.baseUrl + "/fixtures";
|
|
12097
12135
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -40837,7 +40875,8 @@ export class FixtureDto implements IFixtureDto {
|
|
|
40837
40875
|
approved?: boolean;
|
|
40838
40876
|
drawing?: string | null;
|
|
40839
40877
|
drawingRev?: string | null;
|
|
40840
|
-
|
|
40878
|
+
sourceMachineId?: string | null;
|
|
40879
|
+
sourceMachineName?: string | null;
|
|
40841
40880
|
location?: string | null;
|
|
40842
40881
|
type?: FixtureTypeDto;
|
|
40843
40882
|
interface?: string | null;
|
|
@@ -40881,7 +40920,8 @@ export class FixtureDto implements IFixtureDto {
|
|
|
40881
40920
|
this.approved = _data["approved"];
|
|
40882
40921
|
this.drawing = _data["drawing"];
|
|
40883
40922
|
this.drawingRev = _data["drawingRev"];
|
|
40884
|
-
this.
|
|
40923
|
+
this.sourceMachineId = _data["sourceMachineId"];
|
|
40924
|
+
this.sourceMachineName = _data["sourceMachineName"];
|
|
40885
40925
|
this.location = _data["location"];
|
|
40886
40926
|
this.type = _data["type"];
|
|
40887
40927
|
this.interface = _data["interface"];
|
|
@@ -40925,7 +40965,8 @@ export class FixtureDto implements IFixtureDto {
|
|
|
40925
40965
|
data["approved"] = this.approved;
|
|
40926
40966
|
data["drawing"] = this.drawing;
|
|
40927
40967
|
data["drawingRev"] = this.drawingRev;
|
|
40928
|
-
data["
|
|
40968
|
+
data["sourceMachineId"] = this.sourceMachineId;
|
|
40969
|
+
data["sourceMachineName"] = this.sourceMachineName;
|
|
40929
40970
|
data["location"] = this.location;
|
|
40930
40971
|
data["type"] = this.type;
|
|
40931
40972
|
data["interface"] = this.interface;
|
|
@@ -40958,7 +40999,8 @@ export interface IFixtureDto {
|
|
|
40958
40999
|
approved?: boolean;
|
|
40959
41000
|
drawing?: string | null;
|
|
40960
41001
|
drawingRev?: string | null;
|
|
40961
|
-
|
|
41002
|
+
sourceMachineId?: string | null;
|
|
41003
|
+
sourceMachineName?: string | null;
|
|
40962
41004
|
location?: string | null;
|
|
40963
41005
|
type?: FixtureTypeDto;
|
|
40964
41006
|
interface?: string | null;
|
|
@@ -41377,7 +41419,7 @@ export class FixtureCreateDto implements IFixtureCreateDto {
|
|
|
41377
41419
|
approved?: boolean;
|
|
41378
41420
|
drawing?: string | null;
|
|
41379
41421
|
drawingRev?: string | null;
|
|
41380
|
-
|
|
41422
|
+
sourceMachineId?: string | null;
|
|
41381
41423
|
location?: string | null;
|
|
41382
41424
|
type?: FixtureTypeDto;
|
|
41383
41425
|
interface?: string | null;
|
|
@@ -41408,7 +41450,7 @@ export class FixtureCreateDto implements IFixtureCreateDto {
|
|
|
41408
41450
|
this.approved = _data["approved"];
|
|
41409
41451
|
this.drawing = _data["drawing"];
|
|
41410
41452
|
this.drawingRev = _data["drawingRev"];
|
|
41411
|
-
this.
|
|
41453
|
+
this.sourceMachineId = _data["sourceMachineId"];
|
|
41412
41454
|
this.location = _data["location"];
|
|
41413
41455
|
this.type = _data["type"];
|
|
41414
41456
|
this.interface = _data["interface"];
|
|
@@ -41439,7 +41481,7 @@ export class FixtureCreateDto implements IFixtureCreateDto {
|
|
|
41439
41481
|
data["approved"] = this.approved;
|
|
41440
41482
|
data["drawing"] = this.drawing;
|
|
41441
41483
|
data["drawingRev"] = this.drawingRev;
|
|
41442
|
-
data["
|
|
41484
|
+
data["sourceMachineId"] = this.sourceMachineId;
|
|
41443
41485
|
data["location"] = this.location;
|
|
41444
41486
|
data["type"] = this.type;
|
|
41445
41487
|
data["interface"] = this.interface;
|
|
@@ -41463,7 +41505,7 @@ export interface IFixtureCreateDto {
|
|
|
41463
41505
|
approved?: boolean;
|
|
41464
41506
|
drawing?: string | null;
|
|
41465
41507
|
drawingRev?: string | null;
|
|
41466
|
-
|
|
41508
|
+
sourceMachineId?: string | null;
|
|
41467
41509
|
location?: string | null;
|
|
41468
41510
|
type?: FixtureTypeDto;
|
|
41469
41511
|
interface?: string | null;
|
|
@@ -41486,7 +41528,7 @@ export class FixtureUpdateDto implements IFixtureUpdateDto {
|
|
|
41486
41528
|
approved?: boolean;
|
|
41487
41529
|
drawing?: string | null;
|
|
41488
41530
|
drawingRev?: string | null;
|
|
41489
|
-
|
|
41531
|
+
sourceMachineId?: string | null;
|
|
41490
41532
|
location?: string | null;
|
|
41491
41533
|
type?: FixtureTypeDto;
|
|
41492
41534
|
interface?: string | null;
|
|
@@ -41518,7 +41560,7 @@ export class FixtureUpdateDto implements IFixtureUpdateDto {
|
|
|
41518
41560
|
this.approved = _data["approved"];
|
|
41519
41561
|
this.drawing = _data["drawing"];
|
|
41520
41562
|
this.drawingRev = _data["drawingRev"];
|
|
41521
|
-
this.
|
|
41563
|
+
this.sourceMachineId = _data["sourceMachineId"];
|
|
41522
41564
|
this.location = _data["location"];
|
|
41523
41565
|
this.type = _data["type"];
|
|
41524
41566
|
this.interface = _data["interface"];
|
|
@@ -41550,7 +41592,7 @@ export class FixtureUpdateDto implements IFixtureUpdateDto {
|
|
|
41550
41592
|
data["approved"] = this.approved;
|
|
41551
41593
|
data["drawing"] = this.drawing;
|
|
41552
41594
|
data["drawingRev"] = this.drawingRev;
|
|
41553
|
-
data["
|
|
41595
|
+
data["sourceMachineId"] = this.sourceMachineId;
|
|
41554
41596
|
data["location"] = this.location;
|
|
41555
41597
|
data["type"] = this.type;
|
|
41556
41598
|
data["interface"] = this.interface;
|
|
@@ -41575,7 +41617,7 @@ export interface IFixtureUpdateDto {
|
|
|
41575
41617
|
approved?: boolean;
|
|
41576
41618
|
drawing?: string | null;
|
|
41577
41619
|
drawingRev?: string | null;
|
|
41578
|
-
|
|
41620
|
+
sourceMachineId?: string | null;
|
|
41579
41621
|
location?: string | null;
|
|
41580
41622
|
type?: FixtureTypeDto;
|
|
41581
41623
|
interface?: string | null;
|