@ignos/api-client 20260330.96.1 → 20260401.98.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 +84 -36
- package/lib/ignosportal-api.js +128 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +217 -41
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2633,6 +2633,24 @@ export declare class InspectMatchCertificateTypesClient extends AuthorizedApiBas
|
|
|
2633
2633
|
releaseMaterialCertificateType(id: string, version: number | null | undefined): Promise<ImaCertificateTypeDto>;
|
|
2634
2634
|
protected processReleaseMaterialCertificateType(response: Response): Promise<ImaCertificateTypeDto>;
|
|
2635
2635
|
}
|
|
2636
|
+
export interface IInspectMatchPurchaseOrderClient {
|
|
2637
|
+
searchPurchaseOrders(input: string | undefined): Promise<PurchaseOrderMaterialSearchResultsDto>;
|
|
2638
|
+
getPurchaseOrderLines(purchaseOrder: string): Promise<PurchaseOrderMaterialLinesDto>;
|
|
2639
|
+
getPurchaseOrderLineDetails(purchaseOrder: string, lineNumber: number): Promise<PurchaseOrderMaterialLineDetailsDto>;
|
|
2640
|
+
}
|
|
2641
|
+
export declare class InspectMatchPurchaseOrderClient extends AuthorizedApiBase implements IInspectMatchPurchaseOrderClient {
|
|
2642
|
+
private http;
|
|
2643
|
+
private baseUrl;
|
|
2644
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
2645
|
+
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
2646
|
+
});
|
|
2647
|
+
searchPurchaseOrders(input: string | undefined): Promise<PurchaseOrderMaterialSearchResultsDto>;
|
|
2648
|
+
protected processSearchPurchaseOrders(response: Response): Promise<PurchaseOrderMaterialSearchResultsDto>;
|
|
2649
|
+
getPurchaseOrderLines(purchaseOrder: string): Promise<PurchaseOrderMaterialLinesDto>;
|
|
2650
|
+
protected processGetPurchaseOrderLines(response: Response): Promise<PurchaseOrderMaterialLinesDto>;
|
|
2651
|
+
getPurchaseOrderLineDetails(purchaseOrder: string, lineNumber: number): Promise<PurchaseOrderMaterialLineDetailsDto>;
|
|
2652
|
+
protected processGetPurchaseOrderLineDetails(response: Response): Promise<PurchaseOrderMaterialLineDetailsDto>;
|
|
2653
|
+
}
|
|
2636
2654
|
export interface IInspectMatchSpecificationsClient {
|
|
2637
2655
|
listSpecifications(): Promise<ImaSpecificationLiteDto[]>;
|
|
2638
2656
|
getSpecification(id: string, version: number | null | undefined): Promise<ImaSpecificationDto>;
|
|
@@ -3396,35 +3414,12 @@ export interface BuildingFloorDto {
|
|
|
3396
3414
|
description?: string | null;
|
|
3397
3415
|
featureCollection: FeatureCollection;
|
|
3398
3416
|
}
|
|
3399
|
-
export interface
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
export interface FeatureCollection extends GeoJSONObject {
|
|
3405
|
-
type?: GeoJSONObjectType;
|
|
3406
|
-
features?: Feature[] | null;
|
|
3407
|
-
}
|
|
3408
|
-
export type GeoJSONObjectType = "Point" | "MultiPoint" | "LineString" | "MultiLineString" | "Polygon" | "MultiPolygon" | "GeometryCollection" | "Feature" | "FeatureCollection";
|
|
3409
|
-
export interface FeatureOfIGeometryObjectAndIDictionaryOfStringAndObject extends GeoJSONObject {
|
|
3410
|
-
type?: GeoJSONObjectType;
|
|
3411
|
-
id?: string | null;
|
|
3412
|
-
geometry?: IGeometryObject | null;
|
|
3413
|
-
properties?: {
|
|
3414
|
-
[key: string]: any;
|
|
3415
|
-
} | null;
|
|
3416
|
-
}
|
|
3417
|
-
export interface FeatureOfIGeometryObject extends FeatureOfIGeometryObjectAndIDictionaryOfStringAndObject {
|
|
3418
|
-
}
|
|
3419
|
-
export interface Feature extends FeatureOfIGeometryObject {
|
|
3420
|
-
}
|
|
3421
|
-
export interface IGeometryObject {
|
|
3422
|
-
type?: GeoJSONObjectType;
|
|
3423
|
-
}
|
|
3424
|
-
export interface ICRSObject {
|
|
3425
|
-
type?: CRSType;
|
|
3417
|
+
export interface FeatureCollection {
|
|
3418
|
+
type: FeatureCollectionType;
|
|
3419
|
+
features: Features[];
|
|
3420
|
+
bbox?: number[];
|
|
3421
|
+
[key: string]: any;
|
|
3426
3422
|
}
|
|
3427
|
-
export type CRSType = 0 | 1 | 2;
|
|
3428
3423
|
export interface CreateBuildingFloor {
|
|
3429
3424
|
name?: string;
|
|
3430
3425
|
floor?: string;
|
|
@@ -3472,14 +3467,11 @@ export interface FactoryDto {
|
|
|
3472
3467
|
companyId?: string | null;
|
|
3473
3468
|
centerPoint: Point;
|
|
3474
3469
|
}
|
|
3475
|
-
export interface Point
|
|
3476
|
-
type
|
|
3477
|
-
coordinates
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
altitude?: number | null;
|
|
3481
|
-
latitude?: number;
|
|
3482
|
-
longitude?: number;
|
|
3470
|
+
export interface Point {
|
|
3471
|
+
type: PointType;
|
|
3472
|
+
coordinates: number[];
|
|
3473
|
+
bbox?: number[];
|
|
3474
|
+
[key: string]: any;
|
|
3483
3475
|
}
|
|
3484
3476
|
export interface UpdateFactory {
|
|
3485
3477
|
centerPoint?: Point;
|
|
@@ -8146,6 +8138,44 @@ export interface ImaCertificateTypeDocumentTypesRequirementsUpdateDto {
|
|
|
8146
8138
|
microExaminationReport?: boolean | null;
|
|
8147
8139
|
radiologicalReport?: boolean | null;
|
|
8148
8140
|
}
|
|
8141
|
+
export interface PurchaseOrderMaterialSearchResultsDto {
|
|
8142
|
+
purchaseOrders: string[];
|
|
8143
|
+
}
|
|
8144
|
+
export interface PurchaseOrderMaterialLinesDto {
|
|
8145
|
+
lines: number[];
|
|
8146
|
+
}
|
|
8147
|
+
export interface PurchaseOrderMaterialLineDetailsDto {
|
|
8148
|
+
companyId: string;
|
|
8149
|
+
vendorName?: string | null;
|
|
8150
|
+
goNumber?: string | null;
|
|
8151
|
+
part?: Part | null;
|
|
8152
|
+
purchaseOrder: string;
|
|
8153
|
+
lineNumber?: number | null;
|
|
8154
|
+
dimension?: string | null;
|
|
8155
|
+
vendorBatches: string[];
|
|
8156
|
+
mdsCodeFl?: string | null;
|
|
8157
|
+
typeOfCertificate?: string | null;
|
|
8158
|
+
}
|
|
8159
|
+
export interface Part {
|
|
8160
|
+
partNumber?: string;
|
|
8161
|
+
partRevision?: string | null;
|
|
8162
|
+
partName?: string | null;
|
|
8163
|
+
customerPartNumber?: string | null;
|
|
8164
|
+
customerPartRevision?: string | null;
|
|
8165
|
+
customerPartName?: string | null;
|
|
8166
|
+
vendorPartNumber?: string | null;
|
|
8167
|
+
drawing?: string | null;
|
|
8168
|
+
drawingRevision?: string | null;
|
|
8169
|
+
drawingReference?: string | null;
|
|
8170
|
+
material?: string | null;
|
|
8171
|
+
planner?: User | null;
|
|
8172
|
+
}
|
|
8173
|
+
export interface User {
|
|
8174
|
+
id?: string | null;
|
|
8175
|
+
fullName?: string | null;
|
|
8176
|
+
upn?: string | null;
|
|
8177
|
+
email?: string | null;
|
|
8178
|
+
}
|
|
8149
8179
|
export interface ImaSpecificationLiteDto extends ImaCdfEntityReadBase {
|
|
8150
8180
|
specificationId: string;
|
|
8151
8181
|
version: number;
|
|
@@ -9350,6 +9380,24 @@ export interface SetDiscussionLastReadRequest {
|
|
|
9350
9380
|
operationId?: string | null;
|
|
9351
9381
|
resourceId?: string | null;
|
|
9352
9382
|
}
|
|
9383
|
+
export type FeatureCollectionType = "FeatureCollection";
|
|
9384
|
+
export interface Features {
|
|
9385
|
+
type: FeaturesType;
|
|
9386
|
+
id?: number;
|
|
9387
|
+
properties: any | null;
|
|
9388
|
+
geometry: Geometry | null;
|
|
9389
|
+
bbox?: number[];
|
|
9390
|
+
[key: string]: any;
|
|
9391
|
+
}
|
|
9392
|
+
export type PointType = "Point";
|
|
9393
|
+
export type FeaturesType = "Feature";
|
|
9394
|
+
export interface Geometry {
|
|
9395
|
+
type: GeometryType;
|
|
9396
|
+
coordinates: number[];
|
|
9397
|
+
bbox?: number[];
|
|
9398
|
+
[key: string]: any;
|
|
9399
|
+
}
|
|
9400
|
+
export type GeometryType = "Point";
|
|
9353
9401
|
export interface FileParameter {
|
|
9354
9402
|
data: any;
|
|
9355
9403
|
fileName: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -21572,6 +21572,134 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase {
|
|
|
21572
21572
|
return Promise.resolve(null);
|
|
21573
21573
|
}
|
|
21574
21574
|
}
|
|
21575
|
+
export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase {
|
|
21576
|
+
constructor(configuration, baseUrl, http) {
|
|
21577
|
+
super(configuration);
|
|
21578
|
+
this.http = http ? http : window;
|
|
21579
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
21580
|
+
}
|
|
21581
|
+
searchPurchaseOrders(input) {
|
|
21582
|
+
let url_ = this.baseUrl + "/inspect/match/purchase-order/search?";
|
|
21583
|
+
if (input === null)
|
|
21584
|
+
throw new globalThis.Error("The parameter 'input' cannot be null.");
|
|
21585
|
+
else if (input !== undefined)
|
|
21586
|
+
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
21587
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
21588
|
+
let options_ = {
|
|
21589
|
+
method: "GET",
|
|
21590
|
+
headers: {
|
|
21591
|
+
"Accept": "application/json"
|
|
21592
|
+
}
|
|
21593
|
+
};
|
|
21594
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21595
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
21596
|
+
}).then((_response) => {
|
|
21597
|
+
return this.processSearchPurchaseOrders(_response);
|
|
21598
|
+
});
|
|
21599
|
+
}
|
|
21600
|
+
processSearchPurchaseOrders(response) {
|
|
21601
|
+
const status = response.status;
|
|
21602
|
+
let _headers = {};
|
|
21603
|
+
if (response.headers && response.headers.forEach) {
|
|
21604
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21605
|
+
}
|
|
21606
|
+
;
|
|
21607
|
+
if (status === 200) {
|
|
21608
|
+
return response.text().then((_responseText) => {
|
|
21609
|
+
let result200 = null;
|
|
21610
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21611
|
+
return result200;
|
|
21612
|
+
});
|
|
21613
|
+
}
|
|
21614
|
+
else if (status !== 200 && status !== 204) {
|
|
21615
|
+
return response.text().then((_responseText) => {
|
|
21616
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21617
|
+
});
|
|
21618
|
+
}
|
|
21619
|
+
return Promise.resolve(null);
|
|
21620
|
+
}
|
|
21621
|
+
getPurchaseOrderLines(purchaseOrder) {
|
|
21622
|
+
let url_ = this.baseUrl + "/inspect/match/purchase-order/lines/{purchaseOrder}";
|
|
21623
|
+
if (purchaseOrder === undefined || purchaseOrder === null)
|
|
21624
|
+
throw new globalThis.Error("The parameter 'purchaseOrder' must be defined.");
|
|
21625
|
+
url_ = url_.replace("{purchaseOrder}", encodeURIComponent("" + purchaseOrder));
|
|
21626
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
21627
|
+
let options_ = {
|
|
21628
|
+
method: "GET",
|
|
21629
|
+
headers: {
|
|
21630
|
+
"Accept": "application/json"
|
|
21631
|
+
}
|
|
21632
|
+
};
|
|
21633
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21634
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
21635
|
+
}).then((_response) => {
|
|
21636
|
+
return this.processGetPurchaseOrderLines(_response);
|
|
21637
|
+
});
|
|
21638
|
+
}
|
|
21639
|
+
processGetPurchaseOrderLines(response) {
|
|
21640
|
+
const status = response.status;
|
|
21641
|
+
let _headers = {};
|
|
21642
|
+
if (response.headers && response.headers.forEach) {
|
|
21643
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21644
|
+
}
|
|
21645
|
+
;
|
|
21646
|
+
if (status === 200) {
|
|
21647
|
+
return response.text().then((_responseText) => {
|
|
21648
|
+
let result200 = null;
|
|
21649
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21650
|
+
return result200;
|
|
21651
|
+
});
|
|
21652
|
+
}
|
|
21653
|
+
else if (status !== 200 && status !== 204) {
|
|
21654
|
+
return response.text().then((_responseText) => {
|
|
21655
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21656
|
+
});
|
|
21657
|
+
}
|
|
21658
|
+
return Promise.resolve(null);
|
|
21659
|
+
}
|
|
21660
|
+
getPurchaseOrderLineDetails(purchaseOrder, lineNumber) {
|
|
21661
|
+
let url_ = this.baseUrl + "/inspect/match/purchase-order/line-details/{purchaseOrder}/{lineNumber}";
|
|
21662
|
+
if (purchaseOrder === undefined || purchaseOrder === null)
|
|
21663
|
+
throw new globalThis.Error("The parameter 'purchaseOrder' must be defined.");
|
|
21664
|
+
url_ = url_.replace("{purchaseOrder}", encodeURIComponent("" + purchaseOrder));
|
|
21665
|
+
if (lineNumber === undefined || lineNumber === null)
|
|
21666
|
+
throw new globalThis.Error("The parameter 'lineNumber' must be defined.");
|
|
21667
|
+
url_ = url_.replace("{lineNumber}", encodeURIComponent("" + lineNumber));
|
|
21668
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
21669
|
+
let options_ = {
|
|
21670
|
+
method: "GET",
|
|
21671
|
+
headers: {
|
|
21672
|
+
"Accept": "application/json"
|
|
21673
|
+
}
|
|
21674
|
+
};
|
|
21675
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21676
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
21677
|
+
}).then((_response) => {
|
|
21678
|
+
return this.processGetPurchaseOrderLineDetails(_response);
|
|
21679
|
+
});
|
|
21680
|
+
}
|
|
21681
|
+
processGetPurchaseOrderLineDetails(response) {
|
|
21682
|
+
const status = response.status;
|
|
21683
|
+
let _headers = {};
|
|
21684
|
+
if (response.headers && response.headers.forEach) {
|
|
21685
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21686
|
+
}
|
|
21687
|
+
;
|
|
21688
|
+
if (status === 200) {
|
|
21689
|
+
return response.text().then((_responseText) => {
|
|
21690
|
+
let result200 = null;
|
|
21691
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21692
|
+
return result200;
|
|
21693
|
+
});
|
|
21694
|
+
}
|
|
21695
|
+
else if (status !== 200 && status !== 204) {
|
|
21696
|
+
return response.text().then((_responseText) => {
|
|
21697
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21698
|
+
});
|
|
21699
|
+
}
|
|
21700
|
+
return Promise.resolve(null);
|
|
21701
|
+
}
|
|
21702
|
+
}
|
|
21575
21703
|
export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
21576
21704
|
constructor(configuration, baseUrl, http) {
|
|
21577
21705
|
super(configuration);
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -23081,6 +23081,144 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase implem
|
|
|
23081
23081
|
}
|
|
23082
23082
|
}
|
|
23083
23083
|
|
|
23084
|
+
export interface IInspectMatchPurchaseOrderClient {
|
|
23085
|
+
|
|
23086
|
+
searchPurchaseOrders(input: string | undefined): Promise<PurchaseOrderMaterialSearchResultsDto>;
|
|
23087
|
+
|
|
23088
|
+
getPurchaseOrderLines(purchaseOrder: string): Promise<PurchaseOrderMaterialLinesDto>;
|
|
23089
|
+
|
|
23090
|
+
getPurchaseOrderLineDetails(purchaseOrder: string, lineNumber: number): Promise<PurchaseOrderMaterialLineDetailsDto>;
|
|
23091
|
+
}
|
|
23092
|
+
|
|
23093
|
+
export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase implements IInspectMatchPurchaseOrderClient {
|
|
23094
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
23095
|
+
private baseUrl: string;
|
|
23096
|
+
|
|
23097
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
23098
|
+
super(configuration);
|
|
23099
|
+
this.http = http ? http : window as any;
|
|
23100
|
+
this.baseUrl = baseUrl ?? "";
|
|
23101
|
+
}
|
|
23102
|
+
|
|
23103
|
+
searchPurchaseOrders(input: string | undefined): Promise<PurchaseOrderMaterialSearchResultsDto> {
|
|
23104
|
+
let url_ = this.baseUrl + "/inspect/match/purchase-order/search?";
|
|
23105
|
+
if (input === null)
|
|
23106
|
+
throw new globalThis.Error("The parameter 'input' cannot be null.");
|
|
23107
|
+
else if (input !== undefined)
|
|
23108
|
+
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
23109
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
23110
|
+
|
|
23111
|
+
let options_: RequestInit = {
|
|
23112
|
+
method: "GET",
|
|
23113
|
+
headers: {
|
|
23114
|
+
"Accept": "application/json"
|
|
23115
|
+
}
|
|
23116
|
+
};
|
|
23117
|
+
|
|
23118
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23119
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
23120
|
+
}).then((_response: Response) => {
|
|
23121
|
+
return this.processSearchPurchaseOrders(_response);
|
|
23122
|
+
});
|
|
23123
|
+
}
|
|
23124
|
+
|
|
23125
|
+
protected processSearchPurchaseOrders(response: Response): Promise<PurchaseOrderMaterialSearchResultsDto> {
|
|
23126
|
+
const status = response.status;
|
|
23127
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
23128
|
+
if (status === 200) {
|
|
23129
|
+
return response.text().then((_responseText) => {
|
|
23130
|
+
let result200: any = null;
|
|
23131
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PurchaseOrderMaterialSearchResultsDto;
|
|
23132
|
+
return result200;
|
|
23133
|
+
});
|
|
23134
|
+
} else if (status !== 200 && status !== 204) {
|
|
23135
|
+
return response.text().then((_responseText) => {
|
|
23136
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23137
|
+
});
|
|
23138
|
+
}
|
|
23139
|
+
return Promise.resolve<PurchaseOrderMaterialSearchResultsDto>(null as any);
|
|
23140
|
+
}
|
|
23141
|
+
|
|
23142
|
+
getPurchaseOrderLines(purchaseOrder: string): Promise<PurchaseOrderMaterialLinesDto> {
|
|
23143
|
+
let url_ = this.baseUrl + "/inspect/match/purchase-order/lines/{purchaseOrder}";
|
|
23144
|
+
if (purchaseOrder === undefined || purchaseOrder === null)
|
|
23145
|
+
throw new globalThis.Error("The parameter 'purchaseOrder' must be defined.");
|
|
23146
|
+
url_ = url_.replace("{purchaseOrder}", encodeURIComponent("" + purchaseOrder));
|
|
23147
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
23148
|
+
|
|
23149
|
+
let options_: RequestInit = {
|
|
23150
|
+
method: "GET",
|
|
23151
|
+
headers: {
|
|
23152
|
+
"Accept": "application/json"
|
|
23153
|
+
}
|
|
23154
|
+
};
|
|
23155
|
+
|
|
23156
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23157
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
23158
|
+
}).then((_response: Response) => {
|
|
23159
|
+
return this.processGetPurchaseOrderLines(_response);
|
|
23160
|
+
});
|
|
23161
|
+
}
|
|
23162
|
+
|
|
23163
|
+
protected processGetPurchaseOrderLines(response: Response): Promise<PurchaseOrderMaterialLinesDto> {
|
|
23164
|
+
const status = response.status;
|
|
23165
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
23166
|
+
if (status === 200) {
|
|
23167
|
+
return response.text().then((_responseText) => {
|
|
23168
|
+
let result200: any = null;
|
|
23169
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PurchaseOrderMaterialLinesDto;
|
|
23170
|
+
return result200;
|
|
23171
|
+
});
|
|
23172
|
+
} else if (status !== 200 && status !== 204) {
|
|
23173
|
+
return response.text().then((_responseText) => {
|
|
23174
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23175
|
+
});
|
|
23176
|
+
}
|
|
23177
|
+
return Promise.resolve<PurchaseOrderMaterialLinesDto>(null as any);
|
|
23178
|
+
}
|
|
23179
|
+
|
|
23180
|
+
getPurchaseOrderLineDetails(purchaseOrder: string, lineNumber: number): Promise<PurchaseOrderMaterialLineDetailsDto> {
|
|
23181
|
+
let url_ = this.baseUrl + "/inspect/match/purchase-order/line-details/{purchaseOrder}/{lineNumber}";
|
|
23182
|
+
if (purchaseOrder === undefined || purchaseOrder === null)
|
|
23183
|
+
throw new globalThis.Error("The parameter 'purchaseOrder' must be defined.");
|
|
23184
|
+
url_ = url_.replace("{purchaseOrder}", encodeURIComponent("" + purchaseOrder));
|
|
23185
|
+
if (lineNumber === undefined || lineNumber === null)
|
|
23186
|
+
throw new globalThis.Error("The parameter 'lineNumber' must be defined.");
|
|
23187
|
+
url_ = url_.replace("{lineNumber}", encodeURIComponent("" + lineNumber));
|
|
23188
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
23189
|
+
|
|
23190
|
+
let options_: RequestInit = {
|
|
23191
|
+
method: "GET",
|
|
23192
|
+
headers: {
|
|
23193
|
+
"Accept": "application/json"
|
|
23194
|
+
}
|
|
23195
|
+
};
|
|
23196
|
+
|
|
23197
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23198
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
23199
|
+
}).then((_response: Response) => {
|
|
23200
|
+
return this.processGetPurchaseOrderLineDetails(_response);
|
|
23201
|
+
});
|
|
23202
|
+
}
|
|
23203
|
+
|
|
23204
|
+
protected processGetPurchaseOrderLineDetails(response: Response): Promise<PurchaseOrderMaterialLineDetailsDto> {
|
|
23205
|
+
const status = response.status;
|
|
23206
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
23207
|
+
if (status === 200) {
|
|
23208
|
+
return response.text().then((_responseText) => {
|
|
23209
|
+
let result200: any = null;
|
|
23210
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as PurchaseOrderMaterialLineDetailsDto;
|
|
23211
|
+
return result200;
|
|
23212
|
+
});
|
|
23213
|
+
} else if (status !== 200 && status !== 204) {
|
|
23214
|
+
return response.text().then((_responseText) => {
|
|
23215
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23216
|
+
});
|
|
23217
|
+
}
|
|
23218
|
+
return Promise.resolve<PurchaseOrderMaterialLineDetailsDto>(null as any);
|
|
23219
|
+
}
|
|
23220
|
+
}
|
|
23221
|
+
|
|
23084
23222
|
export interface IInspectMatchSpecificationsClient {
|
|
23085
23223
|
|
|
23086
23224
|
listSpecifications(): Promise<ImaSpecificationLiteDto[]>;
|
|
@@ -29436,42 +29574,14 @@ export interface BuildingFloorDto {
|
|
|
29436
29574
|
featureCollection: FeatureCollection;
|
|
29437
29575
|
}
|
|
29438
29576
|
|
|
29439
|
-
export interface
|
|
29440
|
-
|
|
29441
|
-
|
|
29442
|
-
|
|
29443
|
-
}
|
|
29444
|
-
|
|
29445
|
-
export interface FeatureCollection extends GeoJSONObject {
|
|
29446
|
-
type?: GeoJSONObjectType;
|
|
29447
|
-
features?: Feature[] | null;
|
|
29448
|
-
}
|
|
29449
|
-
|
|
29450
|
-
export type GeoJSONObjectType = "Point" | "MultiPoint" | "LineString" | "MultiLineString" | "Polygon" | "MultiPolygon" | "GeometryCollection" | "Feature" | "FeatureCollection";
|
|
29577
|
+
export interface FeatureCollection {
|
|
29578
|
+
type: FeatureCollectionType;
|
|
29579
|
+
features: Features[];
|
|
29580
|
+
bbox?: number[];
|
|
29451
29581
|
|
|
29452
|
-
|
|
29453
|
-
type?: GeoJSONObjectType;
|
|
29454
|
-
id?: string | null;
|
|
29455
|
-
geometry?: IGeometryObject | null;
|
|
29456
|
-
properties?: { [key: string]: any; } | null;
|
|
29457
|
-
}
|
|
29458
|
-
|
|
29459
|
-
export interface FeatureOfIGeometryObject extends FeatureOfIGeometryObjectAndIDictionaryOfStringAndObject {
|
|
29460
|
-
}
|
|
29461
|
-
|
|
29462
|
-
export interface Feature extends FeatureOfIGeometryObject {
|
|
29463
|
-
}
|
|
29464
|
-
|
|
29465
|
-
export interface IGeometryObject {
|
|
29466
|
-
type?: GeoJSONObjectType;
|
|
29467
|
-
}
|
|
29468
|
-
|
|
29469
|
-
export interface ICRSObject {
|
|
29470
|
-
type?: CRSType;
|
|
29582
|
+
[key: string]: any;
|
|
29471
29583
|
}
|
|
29472
29584
|
|
|
29473
|
-
export type CRSType = 0 | 1 | 2;
|
|
29474
|
-
|
|
29475
29585
|
export interface CreateBuildingFloor {
|
|
29476
29586
|
name?: string;
|
|
29477
29587
|
floor?: string;
|
|
@@ -29528,15 +29638,12 @@ export interface FactoryDto {
|
|
|
29528
29638
|
centerPoint: Point;
|
|
29529
29639
|
}
|
|
29530
29640
|
|
|
29531
|
-
export interface Point
|
|
29532
|
-
type
|
|
29533
|
-
coordinates
|
|
29534
|
-
|
|
29641
|
+
export interface Point {
|
|
29642
|
+
type: PointType;
|
|
29643
|
+
coordinates: number[];
|
|
29644
|
+
bbox?: number[];
|
|
29535
29645
|
|
|
29536
|
-
|
|
29537
|
-
altitude?: number | null;
|
|
29538
|
-
latitude?: number;
|
|
29539
|
-
longitude?: number;
|
|
29646
|
+
[key: string]: any;
|
|
29540
29647
|
}
|
|
29541
29648
|
|
|
29542
29649
|
export interface UpdateFactory {
|
|
@@ -34854,6 +34961,49 @@ export interface ImaCertificateTypeDocumentTypesRequirementsUpdateDto {
|
|
|
34854
34961
|
radiologicalReport?: boolean | null;
|
|
34855
34962
|
}
|
|
34856
34963
|
|
|
34964
|
+
export interface PurchaseOrderMaterialSearchResultsDto {
|
|
34965
|
+
purchaseOrders: string[];
|
|
34966
|
+
}
|
|
34967
|
+
|
|
34968
|
+
export interface PurchaseOrderMaterialLinesDto {
|
|
34969
|
+
lines: number[];
|
|
34970
|
+
}
|
|
34971
|
+
|
|
34972
|
+
export interface PurchaseOrderMaterialLineDetailsDto {
|
|
34973
|
+
companyId: string;
|
|
34974
|
+
vendorName?: string | null;
|
|
34975
|
+
goNumber?: string | null;
|
|
34976
|
+
part?: Part | null;
|
|
34977
|
+
purchaseOrder: string;
|
|
34978
|
+
lineNumber?: number | null;
|
|
34979
|
+
dimension?: string | null;
|
|
34980
|
+
vendorBatches: string[];
|
|
34981
|
+
mdsCodeFl?: string | null;
|
|
34982
|
+
typeOfCertificate?: string | null;
|
|
34983
|
+
}
|
|
34984
|
+
|
|
34985
|
+
export interface Part {
|
|
34986
|
+
partNumber?: string;
|
|
34987
|
+
partRevision?: string | null;
|
|
34988
|
+
partName?: string | null;
|
|
34989
|
+
customerPartNumber?: string | null;
|
|
34990
|
+
customerPartRevision?: string | null;
|
|
34991
|
+
customerPartName?: string | null;
|
|
34992
|
+
vendorPartNumber?: string | null;
|
|
34993
|
+
drawing?: string | null;
|
|
34994
|
+
drawingRevision?: string | null;
|
|
34995
|
+
drawingReference?: string | null;
|
|
34996
|
+
material?: string | null;
|
|
34997
|
+
planner?: User | null;
|
|
34998
|
+
}
|
|
34999
|
+
|
|
35000
|
+
export interface User {
|
|
35001
|
+
id?: string | null;
|
|
35002
|
+
fullName?: string | null;
|
|
35003
|
+
upn?: string | null;
|
|
35004
|
+
email?: string | null;
|
|
35005
|
+
}
|
|
35006
|
+
|
|
34857
35007
|
export interface ImaSpecificationLiteDto extends ImaCdfEntityReadBase {
|
|
34858
35008
|
specificationId: string;
|
|
34859
35009
|
version: number;
|
|
@@ -36217,6 +36367,32 @@ export interface SetDiscussionLastReadRequest {
|
|
|
36217
36367
|
resourceId?: string | null;
|
|
36218
36368
|
}
|
|
36219
36369
|
|
|
36370
|
+
export type FeatureCollectionType = "FeatureCollection";
|
|
36371
|
+
|
|
36372
|
+
export interface Features {
|
|
36373
|
+
type: FeaturesType;
|
|
36374
|
+
id?: number;
|
|
36375
|
+
properties: any | null;
|
|
36376
|
+
geometry: Geometry | null;
|
|
36377
|
+
bbox?: number[];
|
|
36378
|
+
|
|
36379
|
+
[key: string]: any;
|
|
36380
|
+
}
|
|
36381
|
+
|
|
36382
|
+
export type PointType = "Point";
|
|
36383
|
+
|
|
36384
|
+
export type FeaturesType = "Feature";
|
|
36385
|
+
|
|
36386
|
+
export interface Geometry {
|
|
36387
|
+
type: GeometryType;
|
|
36388
|
+
coordinates: number[];
|
|
36389
|
+
bbox?: number[];
|
|
36390
|
+
|
|
36391
|
+
[key: string]: any;
|
|
36392
|
+
}
|
|
36393
|
+
|
|
36394
|
+
export type GeometryType = "Point";
|
|
36395
|
+
|
|
36220
36396
|
export interface FileParameter {
|
|
36221
36397
|
data: any;
|
|
36222
36398
|
fileName: string;
|