@ignos/api-client 20250508.0.11681 → 20250509.0.11689
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ignosportal-api.d.ts +9 -2
- package/lib/ignosportal-api.js +68 -5
- package/package.json +1 -1
- package/src/ignosportal-api.ts +76 -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;
|
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)
|
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;
|