@ignos/api-client 20260914.277.1 → 20260917.279.1-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 +7 -0
- package/lib/ignosportal-api.js +39 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +46 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -924,6 +924,7 @@ export interface IMrbClient {
|
|
|
924
924
|
createMrb(createMrb: CreateMrb): Promise<MrbInstanceJobDto>;
|
|
925
925
|
listRecentMrbIntances(): Promise<MrbInstanceDto[]>;
|
|
926
926
|
getMrbInstance(id: string): Promise<MrbInstanceDto>;
|
|
927
|
+
updateMrbInstanceNcInfo(id: string, request: UpdateMrbInstanceNcInfoRequest): Promise<void>;
|
|
927
928
|
listMrbInstanceRevisions(id: string): Promise<MrbInstanceRevisionDto[]>;
|
|
928
929
|
createMrbRevision(id: string, request: CreateMrbRevisionRequest): Promise<MrbInstanceJobDto>;
|
|
929
930
|
deleteMrbRevision(id: string, revisionId: number): Promise<void>;
|
|
@@ -991,6 +992,8 @@ export declare class MrbClient extends AuthorizedApiBase implements IMrbClient {
|
|
|
991
992
|
protected processListRecentMrbIntances(response: Response): Promise<MrbInstanceDto[]>;
|
|
992
993
|
getMrbInstance(id: string): Promise<MrbInstanceDto>;
|
|
993
994
|
protected processGetMrbInstance(response: Response): Promise<MrbInstanceDto>;
|
|
995
|
+
updateMrbInstanceNcInfo(id: string, request: UpdateMrbInstanceNcInfoRequest): Promise<void>;
|
|
996
|
+
protected processUpdateMrbInstanceNcInfo(response: Response): Promise<void>;
|
|
994
997
|
listMrbInstanceRevisions(id: string): Promise<MrbInstanceRevisionDto[]>;
|
|
995
998
|
protected processListMrbInstanceRevisions(response: Response): Promise<MrbInstanceRevisionDto[]>;
|
|
996
999
|
createMrbRevision(id: string, request: CreateMrbRevisionRequest): Promise<MrbInstanceJobDto>;
|
|
@@ -5065,6 +5068,7 @@ export interface MrbInstanceDto {
|
|
|
5065
5068
|
part?: MrbPartDto | null;
|
|
5066
5069
|
showSerialNumbersOnFrontPage?: boolean;
|
|
5067
5070
|
showSerialNumbersOnCoC?: boolean;
|
|
5071
|
+
ncInfo?: string | null;
|
|
5068
5072
|
}
|
|
5069
5073
|
export interface CustomerOrderLineTraceItemDto {
|
|
5070
5074
|
workOrder: string;
|
|
@@ -5107,6 +5111,9 @@ export interface MrbPartDto {
|
|
|
5107
5111
|
partName?: string | null;
|
|
5108
5112
|
partRevision?: string | null;
|
|
5109
5113
|
}
|
|
5114
|
+
export interface UpdateMrbInstanceNcInfoRequest {
|
|
5115
|
+
ncInfo?: string | null;
|
|
5116
|
+
}
|
|
5110
5117
|
export interface MrbInstanceJobDto {
|
|
5111
5118
|
jobId: string;
|
|
5112
5119
|
mrbInstanceId: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -7467,6 +7467,45 @@ export class MrbClient extends AuthorizedApiBase {
|
|
|
7467
7467
|
}
|
|
7468
7468
|
return Promise.resolve(null);
|
|
7469
7469
|
}
|
|
7470
|
+
updateMrbInstanceNcInfo(id, request) {
|
|
7471
|
+
let url_ = this.baseUrl + "/mrb/{id}/ncinfo";
|
|
7472
|
+
if (id === undefined || id === null)
|
|
7473
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
7474
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
7475
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
7476
|
+
const content_ = JSON.stringify(request);
|
|
7477
|
+
let options_ = {
|
|
7478
|
+
body: content_,
|
|
7479
|
+
method: "PUT",
|
|
7480
|
+
headers: {
|
|
7481
|
+
"Content-Type": "application/json",
|
|
7482
|
+
}
|
|
7483
|
+
};
|
|
7484
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
7485
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
7486
|
+
}).then((_response) => {
|
|
7487
|
+
return this.processUpdateMrbInstanceNcInfo(_response);
|
|
7488
|
+
});
|
|
7489
|
+
}
|
|
7490
|
+
processUpdateMrbInstanceNcInfo(response) {
|
|
7491
|
+
const status = response.status;
|
|
7492
|
+
let _headers = {};
|
|
7493
|
+
if (response.headers && response.headers.forEach) {
|
|
7494
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
7495
|
+
}
|
|
7496
|
+
;
|
|
7497
|
+
if (status === 204) {
|
|
7498
|
+
return response.text().then((_responseText) => {
|
|
7499
|
+
return;
|
|
7500
|
+
});
|
|
7501
|
+
}
|
|
7502
|
+
else if (status !== 200 && status !== 204) {
|
|
7503
|
+
return response.text().then((_responseText) => {
|
|
7504
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
7505
|
+
});
|
|
7506
|
+
}
|
|
7507
|
+
return Promise.resolve(null);
|
|
7508
|
+
}
|
|
7470
7509
|
listMrbInstanceRevisions(id) {
|
|
7471
7510
|
let url_ = this.baseUrl + "/mrb/{id}/revisions";
|
|
7472
7511
|
if (id === undefined || id === null)
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -7783,6 +7783,8 @@ export interface IMrbClient {
|
|
|
7783
7783
|
|
|
7784
7784
|
getMrbInstance(id: string): Promise<MrbInstanceDto>;
|
|
7785
7785
|
|
|
7786
|
+
updateMrbInstanceNcInfo(id: string, request: UpdateMrbInstanceNcInfoRequest): Promise<void>;
|
|
7787
|
+
|
|
7786
7788
|
listMrbInstanceRevisions(id: string): Promise<MrbInstanceRevisionDto[]>;
|
|
7787
7789
|
|
|
7788
7790
|
createMrbRevision(id: string, request: CreateMrbRevisionRequest): Promise<MrbInstanceJobDto>;
|
|
@@ -8025,6 +8027,45 @@ export class MrbClient extends AuthorizedApiBase implements IMrbClient {
|
|
|
8025
8027
|
return Promise.resolve<MrbInstanceDto>(null as any);
|
|
8026
8028
|
}
|
|
8027
8029
|
|
|
8030
|
+
updateMrbInstanceNcInfo(id: string, request: UpdateMrbInstanceNcInfoRequest): Promise<void> {
|
|
8031
|
+
let url_ = this.baseUrl + "/mrb/{id}/ncinfo";
|
|
8032
|
+
if (id === undefined || id === null)
|
|
8033
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
8034
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
8035
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
8036
|
+
|
|
8037
|
+
const content_ = JSON.stringify(request);
|
|
8038
|
+
|
|
8039
|
+
let options_: RequestInit = {
|
|
8040
|
+
body: content_,
|
|
8041
|
+
method: "PUT",
|
|
8042
|
+
headers: {
|
|
8043
|
+
"Content-Type": "application/json",
|
|
8044
|
+
}
|
|
8045
|
+
};
|
|
8046
|
+
|
|
8047
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
8048
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
8049
|
+
}).then((_response: Response) => {
|
|
8050
|
+
return this.processUpdateMrbInstanceNcInfo(_response);
|
|
8051
|
+
});
|
|
8052
|
+
}
|
|
8053
|
+
|
|
8054
|
+
protected processUpdateMrbInstanceNcInfo(response: Response): Promise<void> {
|
|
8055
|
+
const status = response.status;
|
|
8056
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
8057
|
+
if (status === 204) {
|
|
8058
|
+
return response.text().then((_responseText) => {
|
|
8059
|
+
return;
|
|
8060
|
+
});
|
|
8061
|
+
} else if (status !== 200 && status !== 204) {
|
|
8062
|
+
return response.text().then((_responseText) => {
|
|
8063
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
8064
|
+
});
|
|
8065
|
+
}
|
|
8066
|
+
return Promise.resolve<void>(null as any);
|
|
8067
|
+
}
|
|
8068
|
+
|
|
8028
8069
|
listMrbInstanceRevisions(id: string): Promise<MrbInstanceRevisionDto[]> {
|
|
8029
8070
|
let url_ = this.baseUrl + "/mrb/{id}/revisions";
|
|
8030
8071
|
if (id === undefined || id === null)
|
|
@@ -34156,6 +34197,7 @@ export interface MrbInstanceDto {
|
|
|
34156
34197
|
part?: MrbPartDto | null;
|
|
34157
34198
|
showSerialNumbersOnFrontPage?: boolean;
|
|
34158
34199
|
showSerialNumbersOnCoC?: boolean;
|
|
34200
|
+
ncInfo?: string | null;
|
|
34159
34201
|
}
|
|
34160
34202
|
|
|
34161
34203
|
export interface CustomerOrderLineTraceItemDto {
|
|
@@ -34207,6 +34249,10 @@ export interface MrbPartDto {
|
|
|
34207
34249
|
partRevision?: string | null;
|
|
34208
34250
|
}
|
|
34209
34251
|
|
|
34252
|
+
export interface UpdateMrbInstanceNcInfoRequest {
|
|
34253
|
+
ncInfo?: string | null;
|
|
34254
|
+
}
|
|
34255
|
+
|
|
34210
34256
|
export interface MrbInstanceJobDto {
|
|
34211
34257
|
jobId: string;
|
|
34212
34258
|
mrbInstanceId: string;
|