@ignos/api-client 20240408.0.9087 → 20240412.0.9109
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 +5 -2
- package/lib/ignosportal-api.js +46 -7
- package/package.json +1 -1
- package/src/ignosportal-api.ts +48 -8
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>;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -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)
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -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)
|