@ignos/api-client 20260319.80.1 → 20260319.82.1
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 +20 -8
- package/lib/ignosportal-api.js +36 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +55 -8
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2327,6 +2327,7 @@ export interface IMesLinksClient {
|
|
|
2327
2327
|
listUnmappedMesLinks(): Promise<MesLinkDto[]>;
|
|
2328
2328
|
updateMesLink(id: string, request: UpdateMesLink): Promise<FileResponse>;
|
|
2329
2329
|
deleteMesLink(id: string): Promise<void>;
|
|
2330
|
+
getMesLinkPlaceholders(): Promise<MesLinkPlaceholdersDto>;
|
|
2330
2331
|
}
|
|
2331
2332
|
export declare class MesLinksClient extends AuthorizedApiBase implements IMesLinksClient {
|
|
2332
2333
|
private http;
|
|
@@ -2344,6 +2345,8 @@ export declare class MesLinksClient extends AuthorizedApiBase implements IMesLin
|
|
|
2344
2345
|
protected processUpdateMesLink(response: Response): Promise<FileResponse>;
|
|
2345
2346
|
deleteMesLink(id: string): Promise<void>;
|
|
2346
2347
|
protected processDeleteMesLink(response: Response): Promise<void>;
|
|
2348
|
+
getMesLinkPlaceholders(): Promise<MesLinkPlaceholdersDto>;
|
|
2349
|
+
protected processGetMesLinkPlaceholders(response: Response): Promise<MesLinkPlaceholdersDto>;
|
|
2347
2350
|
}
|
|
2348
2351
|
export interface IMesOrMoveClient {
|
|
2349
2352
|
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
@@ -6828,10 +6831,11 @@ export interface EngineeringChangeOrdersDto {
|
|
|
6828
6831
|
engineeringChangeOrders?: EngineeringChangeOrderDto[];
|
|
6829
6832
|
}
|
|
6830
6833
|
export interface AddMesLink {
|
|
6831
|
-
uri?: string
|
|
6832
|
-
name?: string
|
|
6834
|
+
uri?: string;
|
|
6835
|
+
name?: string;
|
|
6833
6836
|
type?: MesLinkTypeDto;
|
|
6834
|
-
|
|
6837
|
+
openInNewTab?: boolean;
|
|
6838
|
+
description?: string | null;
|
|
6835
6839
|
}
|
|
6836
6840
|
export type MesLinkTypeDto = "Static" | "Operation" | "WorkOrder";
|
|
6837
6841
|
export interface MesLinkDto {
|
|
@@ -6839,14 +6843,22 @@ export interface MesLinkDto {
|
|
|
6839
6843
|
uri?: string;
|
|
6840
6844
|
name?: string;
|
|
6841
6845
|
type?: MesLinkTypeDto;
|
|
6842
|
-
|
|
6846
|
+
openInNewTab?: boolean;
|
|
6847
|
+
description?: string | null;
|
|
6843
6848
|
}
|
|
6844
6849
|
export interface UpdateMesLink {
|
|
6845
|
-
id?: string
|
|
6846
|
-
uri?: string
|
|
6847
|
-
name?: string
|
|
6850
|
+
id?: string;
|
|
6851
|
+
uri?: string;
|
|
6852
|
+
name?: string;
|
|
6848
6853
|
type?: MesLinkTypeDto;
|
|
6849
|
-
|
|
6854
|
+
openInNewTab?: boolean;
|
|
6855
|
+
description?: string | null;
|
|
6856
|
+
displayBeforeId?: string | null;
|
|
6857
|
+
}
|
|
6858
|
+
export interface MesLinkPlaceholdersDto {
|
|
6859
|
+
static: string[];
|
|
6860
|
+
workOrder: string[];
|
|
6861
|
+
operation: string[];
|
|
6850
6862
|
}
|
|
6851
6863
|
export interface GeneratePrintableLabel {
|
|
6852
6864
|
labelIds: LabelId[];
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -19028,6 +19028,42 @@ export class MesLinksClient extends AuthorizedApiBase {
|
|
|
19028
19028
|
}
|
|
19029
19029
|
return Promise.resolve(null);
|
|
19030
19030
|
}
|
|
19031
|
+
getMesLinkPlaceholders() {
|
|
19032
|
+
let url_ = this.baseUrl + "/mes/links/placeholders";
|
|
19033
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
19034
|
+
let options_ = {
|
|
19035
|
+
method: "GET",
|
|
19036
|
+
headers: {
|
|
19037
|
+
"Accept": "application/json"
|
|
19038
|
+
}
|
|
19039
|
+
};
|
|
19040
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19041
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
19042
|
+
}).then((_response) => {
|
|
19043
|
+
return this.processGetMesLinkPlaceholders(_response);
|
|
19044
|
+
});
|
|
19045
|
+
}
|
|
19046
|
+
processGetMesLinkPlaceholders(response) {
|
|
19047
|
+
const status = response.status;
|
|
19048
|
+
let _headers = {};
|
|
19049
|
+
if (response.headers && response.headers.forEach) {
|
|
19050
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
19051
|
+
}
|
|
19052
|
+
;
|
|
19053
|
+
if (status === 200) {
|
|
19054
|
+
return response.text().then((_responseText) => {
|
|
19055
|
+
let result200 = null;
|
|
19056
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19057
|
+
return result200;
|
|
19058
|
+
});
|
|
19059
|
+
}
|
|
19060
|
+
else if (status !== 200 && status !== 204) {
|
|
19061
|
+
return response.text().then((_responseText) => {
|
|
19062
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19063
|
+
});
|
|
19064
|
+
}
|
|
19065
|
+
return Promise.resolve(null);
|
|
19066
|
+
}
|
|
19031
19067
|
}
|
|
19032
19068
|
export class MesOrMoveClient extends AuthorizedApiBase {
|
|
19033
19069
|
constructor(configuration, baseUrl, http) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -20160,6 +20160,8 @@ export interface IMesLinksClient {
|
|
|
20160
20160
|
updateMesLink(id: string, request: UpdateMesLink): Promise<FileResponse>;
|
|
20161
20161
|
|
|
20162
20162
|
deleteMesLink(id: string): Promise<void>;
|
|
20163
|
+
|
|
20164
|
+
getMesLinkPlaceholders(): Promise<MesLinkPlaceholdersDto>;
|
|
20163
20165
|
}
|
|
20164
20166
|
|
|
20165
20167
|
export class MesLinksClient extends AuthorizedApiBase implements IMesLinksClient {
|
|
@@ -20365,6 +20367,41 @@ export class MesLinksClient extends AuthorizedApiBase implements IMesLinksClient
|
|
|
20365
20367
|
}
|
|
20366
20368
|
return Promise.resolve<void>(null as any);
|
|
20367
20369
|
}
|
|
20370
|
+
|
|
20371
|
+
getMesLinkPlaceholders(): Promise<MesLinkPlaceholdersDto> {
|
|
20372
|
+
let url_ = this.baseUrl + "/mes/links/placeholders";
|
|
20373
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
20374
|
+
|
|
20375
|
+
let options_: RequestInit = {
|
|
20376
|
+
method: "GET",
|
|
20377
|
+
headers: {
|
|
20378
|
+
"Accept": "application/json"
|
|
20379
|
+
}
|
|
20380
|
+
};
|
|
20381
|
+
|
|
20382
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
20383
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
20384
|
+
}).then((_response: Response) => {
|
|
20385
|
+
return this.processGetMesLinkPlaceholders(_response);
|
|
20386
|
+
});
|
|
20387
|
+
}
|
|
20388
|
+
|
|
20389
|
+
protected processGetMesLinkPlaceholders(response: Response): Promise<MesLinkPlaceholdersDto> {
|
|
20390
|
+
const status = response.status;
|
|
20391
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
20392
|
+
if (status === 200) {
|
|
20393
|
+
return response.text().then((_responseText) => {
|
|
20394
|
+
let result200: any = null;
|
|
20395
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MesLinkPlaceholdersDto;
|
|
20396
|
+
return result200;
|
|
20397
|
+
});
|
|
20398
|
+
} else if (status !== 200 && status !== 204) {
|
|
20399
|
+
return response.text().then((_responseText) => {
|
|
20400
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
20401
|
+
});
|
|
20402
|
+
}
|
|
20403
|
+
return Promise.resolve<MesLinkPlaceholdersDto>(null as any);
|
|
20404
|
+
}
|
|
20368
20405
|
}
|
|
20369
20406
|
|
|
20370
20407
|
export interface IMesOrMoveClient {
|
|
@@ -32636,10 +32673,11 @@ export interface EngineeringChangeOrdersDto {
|
|
|
32636
32673
|
}
|
|
32637
32674
|
|
|
32638
32675
|
export interface AddMesLink {
|
|
32639
|
-
uri?: string
|
|
32640
|
-
name?: string
|
|
32676
|
+
uri?: string;
|
|
32677
|
+
name?: string;
|
|
32641
32678
|
type?: MesLinkTypeDto;
|
|
32642
|
-
|
|
32679
|
+
openInNewTab?: boolean;
|
|
32680
|
+
description?: string | null;
|
|
32643
32681
|
}
|
|
32644
32682
|
|
|
32645
32683
|
export type MesLinkTypeDto = "Static" | "Operation" | "WorkOrder";
|
|
@@ -32649,15 +32687,24 @@ export interface MesLinkDto {
|
|
|
32649
32687
|
uri?: string;
|
|
32650
32688
|
name?: string;
|
|
32651
32689
|
type?: MesLinkTypeDto;
|
|
32652
|
-
|
|
32690
|
+
openInNewTab?: boolean;
|
|
32691
|
+
description?: string | null;
|
|
32653
32692
|
}
|
|
32654
32693
|
|
|
32655
32694
|
export interface UpdateMesLink {
|
|
32656
|
-
id?: string
|
|
32657
|
-
uri?: string
|
|
32658
|
-
name?: string
|
|
32695
|
+
id?: string;
|
|
32696
|
+
uri?: string;
|
|
32697
|
+
name?: string;
|
|
32659
32698
|
type?: MesLinkTypeDto;
|
|
32660
|
-
|
|
32699
|
+
openInNewTab?: boolean;
|
|
32700
|
+
description?: string | null;
|
|
32701
|
+
displayBeforeId?: string | null;
|
|
32702
|
+
}
|
|
32703
|
+
|
|
32704
|
+
export interface MesLinkPlaceholdersDto {
|
|
32705
|
+
static: string[];
|
|
32706
|
+
workOrder: string[];
|
|
32707
|
+
operation: string[];
|
|
32661
32708
|
}
|
|
32662
32709
|
|
|
32663
32710
|
export interface GeneratePrintableLabel {
|