@ignos/api-client 20260604.145.1-alpha → 20260607.147.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/AuthorizedApiBase.js +9 -5
- package/lib/ignosportal-api.d.ts +63 -4
- package/lib/ignosportal-api.js +123 -5
- package/package.json +1 -1
- package/src/AuthorizedApiBase.ts +8 -5
- package/src/ignosportal-api.ts +183 -9
package/lib/AuthorizedApiBase.js
CHANGED
|
@@ -13,11 +13,15 @@ export class AuthorizedApiBase {
|
|
|
13
13
|
this.jsonParseReviver = (_, value) => {
|
|
14
14
|
// Matches starts with "2025-12-09T13:19:39"
|
|
15
15
|
// Will also match "2025-12-09T13:19:39.4576289+00:00"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
if (typeof value !== "string")
|
|
17
|
+
return value;
|
|
18
|
+
const regex = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/;
|
|
19
|
+
if (!regex.test(value))
|
|
20
|
+
return value;
|
|
21
|
+
const date = new Date(value);
|
|
22
|
+
// Prevent values like "2025-12-09T13:19:39.4576289+00:00 bla bla bla" from being parsed as Date
|
|
23
|
+
// (values not starting with an ISO date-time are already filtered out by the regex above)
|
|
24
|
+
return isNaN(date.getTime()) ? value : date;
|
|
21
25
|
};
|
|
22
26
|
this.config = config;
|
|
23
27
|
}
|
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1087,6 +1087,7 @@ export interface IMeasuringToolsClient {
|
|
|
1087
1087
|
createMeasuringToolSubType(typeId: string, request: CreateMeasuringToolSubTypeRequest): Promise<MeasuringToolSubTypeDto>;
|
|
1088
1088
|
updateMeasuringToolSubType(typeId: string, id: string, request: UpdateMeasuringToolSubTypeRequest): Promise<MeasuringToolSubTypeDto>;
|
|
1089
1089
|
deleteMeasuringToolSubType(typeId: string, id: string): Promise<void>;
|
|
1090
|
+
seedTypesAndSubTypes(): Promise<void>;
|
|
1090
1091
|
listMeasuringUnits(): Promise<MeasuringUnitDto[]>;
|
|
1091
1092
|
createMeasuringUnit(request: CreateMeasuringUnit): Promise<MeasuringUnitDto>;
|
|
1092
1093
|
deleteMeasuringUnit(id: string): Promise<void>;
|
|
@@ -1149,6 +1150,8 @@ export declare class MeasuringToolsClient extends AuthorizedApiBase implements I
|
|
|
1149
1150
|
protected processUpdateMeasuringToolSubType(response: Response): Promise<MeasuringToolSubTypeDto>;
|
|
1150
1151
|
deleteMeasuringToolSubType(typeId: string, id: string): Promise<void>;
|
|
1151
1152
|
protected processDeleteMeasuringToolSubType(response: Response): Promise<void>;
|
|
1153
|
+
seedTypesAndSubTypes(): Promise<void>;
|
|
1154
|
+
protected processSeedTypesAndSubTypes(response: Response): Promise<void>;
|
|
1152
1155
|
listMeasuringUnits(): Promise<MeasuringUnitDto[]>;
|
|
1153
1156
|
protected processListMeasuringUnits(response: Response): Promise<MeasuringUnitDto[]>;
|
|
1154
1157
|
createMeasuringUnit(request: CreateMeasuringUnit): Promise<MeasuringUnitDto>;
|
|
@@ -2686,6 +2689,21 @@ export declare class InspectMatchPurchaseOrderClient extends AuthorizedApiBase i
|
|
|
2686
2689
|
getPurchaseOrderLineDetails(purchaseOrder: string, lineNumber: number): Promise<PurchaseOrderMaterialLineDetailsDto>;
|
|
2687
2690
|
protected processGetPurchaseOrderLineDetails(response: Response): Promise<PurchaseOrderMaterialLineDetailsDto>;
|
|
2688
2691
|
}
|
|
2692
|
+
export interface IInspectMatchSettingsClient {
|
|
2693
|
+
getSettings(): Promise<ImaMatchSettingsDto>;
|
|
2694
|
+
updateSettings(settings: ImaUpdateMatchSettingsDto): Promise<ImaMatchSettingsDto>;
|
|
2695
|
+
}
|
|
2696
|
+
export declare class InspectMatchSettingsClient extends AuthorizedApiBase implements IInspectMatchSettingsClient {
|
|
2697
|
+
private http;
|
|
2698
|
+
private baseUrl;
|
|
2699
|
+
constructor(configuration: IApiClientConfig, baseUrl?: string, http?: {
|
|
2700
|
+
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
2701
|
+
});
|
|
2702
|
+
getSettings(): Promise<ImaMatchSettingsDto>;
|
|
2703
|
+
protected processGetSettings(response: Response): Promise<ImaMatchSettingsDto>;
|
|
2704
|
+
updateSettings(settings: ImaUpdateMatchSettingsDto): Promise<ImaMatchSettingsDto>;
|
|
2705
|
+
protected processUpdateSettings(response: Response): Promise<ImaMatchSettingsDto>;
|
|
2706
|
+
}
|
|
2689
2707
|
export interface IInspectMatchSpecificationsAdminClient {
|
|
2690
2708
|
createSpecification(createRequestDto: ImaCreateSpecificationRequestDto): Promise<ImaSpecificationDto>;
|
|
2691
2709
|
copySpecification(id: string, version: number | null | undefined, copyDto: ImaCopySpecificationRequestDto): Promise<ImaSpecificationDto>;
|
|
@@ -3443,10 +3461,11 @@ export interface CurrentCustomerDto {
|
|
|
3443
3461
|
logoUrl?: string | null;
|
|
3444
3462
|
}
|
|
3445
3463
|
export interface AvailableTenantDto {
|
|
3446
|
-
tenantId
|
|
3447
|
-
name
|
|
3448
|
-
|
|
3449
|
-
|
|
3464
|
+
tenantId: string;
|
|
3465
|
+
name: string;
|
|
3466
|
+
customerName: string;
|
|
3467
|
+
environment: TenantEnvironmentDto;
|
|
3468
|
+
isRecommended: boolean;
|
|
3450
3469
|
}
|
|
3451
3470
|
export type TenantEnvironmentDto = "Prod" | "QA" | "Test" | "Dev";
|
|
3452
3471
|
export interface GuestLoginInfoDto {
|
|
@@ -8398,6 +8417,46 @@ export interface PurchaseOrderMaterialSearchResultsDto {
|
|
|
8398
8417
|
export interface PurchaseOrderMaterialLinesDto {
|
|
8399
8418
|
lines: number[];
|
|
8400
8419
|
}
|
|
8420
|
+
export interface ImaMatchSettingsDto {
|
|
8421
|
+
columns: ImaMatchSettingsColumnsDto;
|
|
8422
|
+
}
|
|
8423
|
+
export interface ImaMatchSettingsColumnsDto {
|
|
8424
|
+
fileName: boolean;
|
|
8425
|
+
purchaseOrder: boolean;
|
|
8426
|
+
line: boolean;
|
|
8427
|
+
vendorBatch: boolean;
|
|
8428
|
+
part: boolean;
|
|
8429
|
+
drawing: boolean;
|
|
8430
|
+
heat: boolean;
|
|
8431
|
+
certificateType: boolean;
|
|
8432
|
+
specification: boolean;
|
|
8433
|
+
generatedReport: boolean;
|
|
8434
|
+
project: boolean;
|
|
8435
|
+
customerOrder: boolean;
|
|
8436
|
+
workOrder: boolean;
|
|
8437
|
+
date: boolean;
|
|
8438
|
+
status: boolean;
|
|
8439
|
+
}
|
|
8440
|
+
export interface ImaUpdateMatchSettingsDto {
|
|
8441
|
+
columns: ImaUpdateMatchSettingsColumnsDto;
|
|
8442
|
+
}
|
|
8443
|
+
export interface ImaUpdateMatchSettingsColumnsDto {
|
|
8444
|
+
fileName: boolean;
|
|
8445
|
+
purchaseOrder: boolean;
|
|
8446
|
+
line: boolean;
|
|
8447
|
+
vendorBatch: boolean;
|
|
8448
|
+
part: boolean;
|
|
8449
|
+
drawing: boolean;
|
|
8450
|
+
heat: boolean;
|
|
8451
|
+
certificateType: boolean;
|
|
8452
|
+
specification: boolean;
|
|
8453
|
+
generatedReport: boolean;
|
|
8454
|
+
project: boolean;
|
|
8455
|
+
customerOrder: boolean;
|
|
8456
|
+
workOrder: boolean;
|
|
8457
|
+
date: boolean;
|
|
8458
|
+
status: boolean;
|
|
8459
|
+
}
|
|
8401
8460
|
export interface ImaSpecificationDto extends ImaCdfEntityReadBase {
|
|
8402
8461
|
specificationId: string;
|
|
8403
8462
|
version: number;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -20,11 +20,15 @@ export class AuthorizedApiBase {
|
|
|
20
20
|
this.jsonParseReviver = (_, value) => {
|
|
21
21
|
// Matches starts with "2025-12-09T13:19:39"
|
|
22
22
|
// Will also match "2025-12-09T13:19:39.4576289+00:00"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
if (typeof value !== "string")
|
|
24
|
+
return value;
|
|
25
|
+
const regex = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/;
|
|
26
|
+
if (!regex.test(value))
|
|
27
|
+
return value;
|
|
28
|
+
const date = new Date(value);
|
|
29
|
+
// Prevent values like "2025-12-09T13:19:39.4576289+00:00 bla bla bla" from being parsed as Date
|
|
30
|
+
// (values not starting with an ISO date-time are already filtered out by the regex above)
|
|
31
|
+
return isNaN(date.getTime()) ? value : date;
|
|
28
32
|
};
|
|
29
33
|
this.config = config;
|
|
30
34
|
}
|
|
@@ -8935,6 +8939,38 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
8935
8939
|
}
|
|
8936
8940
|
return Promise.resolve(null);
|
|
8937
8941
|
}
|
|
8942
|
+
seedTypesAndSubTypes() {
|
|
8943
|
+
let url_ = this.baseUrl + "/measuringtools/types/seed";
|
|
8944
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
8945
|
+
let options_ = {
|
|
8946
|
+
method: "POST",
|
|
8947
|
+
headers: {}
|
|
8948
|
+
};
|
|
8949
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
8950
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
8951
|
+
}).then((_response) => {
|
|
8952
|
+
return this.processSeedTypesAndSubTypes(_response);
|
|
8953
|
+
});
|
|
8954
|
+
}
|
|
8955
|
+
processSeedTypesAndSubTypes(response) {
|
|
8956
|
+
const status = response.status;
|
|
8957
|
+
let _headers = {};
|
|
8958
|
+
if (response.headers && response.headers.forEach) {
|
|
8959
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
8960
|
+
}
|
|
8961
|
+
;
|
|
8962
|
+
if (status === 204) {
|
|
8963
|
+
return response.text().then((_responseText) => {
|
|
8964
|
+
return;
|
|
8965
|
+
});
|
|
8966
|
+
}
|
|
8967
|
+
else if (status !== 200 && status !== 204) {
|
|
8968
|
+
return response.text().then((_responseText) => {
|
|
8969
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
8970
|
+
});
|
|
8971
|
+
}
|
|
8972
|
+
return Promise.resolve(null);
|
|
8973
|
+
}
|
|
8938
8974
|
listMeasuringUnits() {
|
|
8939
8975
|
let url_ = this.baseUrl + "/measuringtools/units";
|
|
8940
8976
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -22288,6 +22324,88 @@ export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase {
|
|
|
22288
22324
|
return Promise.resolve(null);
|
|
22289
22325
|
}
|
|
22290
22326
|
}
|
|
22327
|
+
export class InspectMatchSettingsClient extends AuthorizedApiBase {
|
|
22328
|
+
constructor(configuration, baseUrl, http) {
|
|
22329
|
+
super(configuration);
|
|
22330
|
+
this.http = http ? http : window;
|
|
22331
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
22332
|
+
}
|
|
22333
|
+
getSettings() {
|
|
22334
|
+
let url_ = this.baseUrl + "/inspect/match/settings";
|
|
22335
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22336
|
+
let options_ = {
|
|
22337
|
+
method: "GET",
|
|
22338
|
+
headers: {
|
|
22339
|
+
"Accept": "application/json"
|
|
22340
|
+
}
|
|
22341
|
+
};
|
|
22342
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22343
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22344
|
+
}).then((_response) => {
|
|
22345
|
+
return this.processGetSettings(_response);
|
|
22346
|
+
});
|
|
22347
|
+
}
|
|
22348
|
+
processGetSettings(response) {
|
|
22349
|
+
const status = response.status;
|
|
22350
|
+
let _headers = {};
|
|
22351
|
+
if (response.headers && response.headers.forEach) {
|
|
22352
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22353
|
+
}
|
|
22354
|
+
;
|
|
22355
|
+
if (status === 200) {
|
|
22356
|
+
return response.text().then((_responseText) => {
|
|
22357
|
+
let result200 = null;
|
|
22358
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22359
|
+
return result200;
|
|
22360
|
+
});
|
|
22361
|
+
}
|
|
22362
|
+
else if (status !== 200 && status !== 204) {
|
|
22363
|
+
return response.text().then((_responseText) => {
|
|
22364
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22365
|
+
});
|
|
22366
|
+
}
|
|
22367
|
+
return Promise.resolve(null);
|
|
22368
|
+
}
|
|
22369
|
+
updateSettings(settings) {
|
|
22370
|
+
let url_ = this.baseUrl + "/inspect/match/settings";
|
|
22371
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22372
|
+
const content_ = JSON.stringify(settings);
|
|
22373
|
+
let options_ = {
|
|
22374
|
+
body: content_,
|
|
22375
|
+
method: "PUT",
|
|
22376
|
+
headers: {
|
|
22377
|
+
"Content-Type": "application/json",
|
|
22378
|
+
"Accept": "application/json"
|
|
22379
|
+
}
|
|
22380
|
+
};
|
|
22381
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22382
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22383
|
+
}).then((_response) => {
|
|
22384
|
+
return this.processUpdateSettings(_response);
|
|
22385
|
+
});
|
|
22386
|
+
}
|
|
22387
|
+
processUpdateSettings(response) {
|
|
22388
|
+
const status = response.status;
|
|
22389
|
+
let _headers = {};
|
|
22390
|
+
if (response.headers && response.headers.forEach) {
|
|
22391
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22392
|
+
}
|
|
22393
|
+
;
|
|
22394
|
+
if (status === 200) {
|
|
22395
|
+
return response.text().then((_responseText) => {
|
|
22396
|
+
let result200 = null;
|
|
22397
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22398
|
+
return result200;
|
|
22399
|
+
});
|
|
22400
|
+
}
|
|
22401
|
+
else if (status !== 200 && status !== 204) {
|
|
22402
|
+
return response.text().then((_responseText) => {
|
|
22403
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22404
|
+
});
|
|
22405
|
+
}
|
|
22406
|
+
return Promise.resolve(null);
|
|
22407
|
+
}
|
|
22408
|
+
}
|
|
22291
22409
|
export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase {
|
|
22292
22410
|
constructor(configuration, baseUrl, http) {
|
|
22293
22411
|
super(configuration);
|
package/package.json
CHANGED
package/src/AuthorizedApiBase.ts
CHANGED
|
@@ -33,12 +33,15 @@ export class AuthorizedApiBase {
|
|
|
33
33
|
protected jsonParseReviver = (_: any, value: any) => {
|
|
34
34
|
// Matches starts with "2025-12-09T13:19:39"
|
|
35
35
|
// Will also match "2025-12-09T13:19:39.4576289+00:00"
|
|
36
|
-
|
|
36
|
+
if (typeof value !== "string") return value;
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
38
|
+
const regex = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/;
|
|
39
|
+
if (!regex.test(value)) return value;
|
|
41
40
|
|
|
42
|
-
|
|
41
|
+
const date = new Date(value);
|
|
42
|
+
|
|
43
|
+
// Prevent values like "2025-12-09T13:19:39.4576289+00:00 bla bla bla" from being parsed as Date
|
|
44
|
+
// (values not starting with an ISO date-time are already filtered out by the regex above)
|
|
45
|
+
return isNaN(date.getTime()) ? value : date;
|
|
43
46
|
};
|
|
44
47
|
}
|
package/src/ignosportal-api.ts
CHANGED
|
@@ -29,13 +29,16 @@ export class AuthorizedApiBase {
|
|
|
29
29
|
protected jsonParseReviver = (_: any, value: any) => {
|
|
30
30
|
// Matches starts with "2025-12-09T13:19:39"
|
|
31
31
|
// Will also match "2025-12-09T13:19:39.4576289+00:00"
|
|
32
|
-
|
|
32
|
+
if (typeof value !== "string") return value;
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
const regex = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/;
|
|
35
|
+
if (!regex.test(value)) return value;
|
|
36
|
+
|
|
37
|
+
const date = new Date(value);
|
|
37
38
|
|
|
38
|
-
|
|
39
|
+
// Prevent values like "2025-12-09T13:19:39.4576289+00:00 bla bla bla" from being parsed as Date
|
|
40
|
+
// (values not starting with an ISO date-time are already filtered out by the regex above)
|
|
41
|
+
return isNaN(date.getTime()) ? value : date;
|
|
39
42
|
};
|
|
40
43
|
}
|
|
41
44
|
|
|
@@ -8827,6 +8830,8 @@ export interface IMeasuringToolsClient {
|
|
|
8827
8830
|
|
|
8828
8831
|
deleteMeasuringToolSubType(typeId: string, id: string): Promise<void>;
|
|
8829
8832
|
|
|
8833
|
+
seedTypesAndSubTypes(): Promise<void>;
|
|
8834
|
+
|
|
8830
8835
|
listMeasuringUnits(): Promise<MeasuringUnitDto[]>;
|
|
8831
8836
|
|
|
8832
8837
|
createMeasuringUnit(request: CreateMeasuringUnit): Promise<MeasuringUnitDto>;
|
|
@@ -9599,6 +9604,38 @@ export class MeasuringToolsClient extends AuthorizedApiBase implements IMeasurin
|
|
|
9599
9604
|
return Promise.resolve<void>(null as any);
|
|
9600
9605
|
}
|
|
9601
9606
|
|
|
9607
|
+
seedTypesAndSubTypes(): Promise<void> {
|
|
9608
|
+
let url_ = this.baseUrl + "/measuringtools/types/seed";
|
|
9609
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
9610
|
+
|
|
9611
|
+
let options_: RequestInit = {
|
|
9612
|
+
method: "POST",
|
|
9613
|
+
headers: {
|
|
9614
|
+
}
|
|
9615
|
+
};
|
|
9616
|
+
|
|
9617
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
9618
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
9619
|
+
}).then((_response: Response) => {
|
|
9620
|
+
return this.processSeedTypesAndSubTypes(_response);
|
|
9621
|
+
});
|
|
9622
|
+
}
|
|
9623
|
+
|
|
9624
|
+
protected processSeedTypesAndSubTypes(response: Response): Promise<void> {
|
|
9625
|
+
const status = response.status;
|
|
9626
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
9627
|
+
if (status === 204) {
|
|
9628
|
+
return response.text().then((_responseText) => {
|
|
9629
|
+
return;
|
|
9630
|
+
});
|
|
9631
|
+
} else if (status !== 200 && status !== 204) {
|
|
9632
|
+
return response.text().then((_responseText) => {
|
|
9633
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
9634
|
+
});
|
|
9635
|
+
}
|
|
9636
|
+
return Promise.resolve<void>(null as any);
|
|
9637
|
+
}
|
|
9638
|
+
|
|
9602
9639
|
listMeasuringUnits(): Promise<MeasuringUnitDto[]> {
|
|
9603
9640
|
let url_ = this.baseUrl + "/measuringtools/units";
|
|
9604
9641
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -23835,6 +23872,98 @@ export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase implement
|
|
|
23835
23872
|
}
|
|
23836
23873
|
}
|
|
23837
23874
|
|
|
23875
|
+
export interface IInspectMatchSettingsClient {
|
|
23876
|
+
|
|
23877
|
+
getSettings(): Promise<ImaMatchSettingsDto>;
|
|
23878
|
+
|
|
23879
|
+
updateSettings(settings: ImaUpdateMatchSettingsDto): Promise<ImaMatchSettingsDto>;
|
|
23880
|
+
}
|
|
23881
|
+
|
|
23882
|
+
export class InspectMatchSettingsClient extends AuthorizedApiBase implements IInspectMatchSettingsClient {
|
|
23883
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
23884
|
+
private baseUrl: string;
|
|
23885
|
+
|
|
23886
|
+
constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
23887
|
+
super(configuration);
|
|
23888
|
+
this.http = http ? http : window as any;
|
|
23889
|
+
this.baseUrl = baseUrl ?? "";
|
|
23890
|
+
}
|
|
23891
|
+
|
|
23892
|
+
getSettings(): Promise<ImaMatchSettingsDto> {
|
|
23893
|
+
let url_ = this.baseUrl + "/inspect/match/settings";
|
|
23894
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
23895
|
+
|
|
23896
|
+
let options_: RequestInit = {
|
|
23897
|
+
method: "GET",
|
|
23898
|
+
headers: {
|
|
23899
|
+
"Accept": "application/json"
|
|
23900
|
+
}
|
|
23901
|
+
};
|
|
23902
|
+
|
|
23903
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23904
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
23905
|
+
}).then((_response: Response) => {
|
|
23906
|
+
return this.processGetSettings(_response);
|
|
23907
|
+
});
|
|
23908
|
+
}
|
|
23909
|
+
|
|
23910
|
+
protected processGetSettings(response: Response): Promise<ImaMatchSettingsDto> {
|
|
23911
|
+
const status = response.status;
|
|
23912
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
23913
|
+
if (status === 200) {
|
|
23914
|
+
return response.text().then((_responseText) => {
|
|
23915
|
+
let result200: any = null;
|
|
23916
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaMatchSettingsDto;
|
|
23917
|
+
return result200;
|
|
23918
|
+
});
|
|
23919
|
+
} else if (status !== 200 && status !== 204) {
|
|
23920
|
+
return response.text().then((_responseText) => {
|
|
23921
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23922
|
+
});
|
|
23923
|
+
}
|
|
23924
|
+
return Promise.resolve<ImaMatchSettingsDto>(null as any);
|
|
23925
|
+
}
|
|
23926
|
+
|
|
23927
|
+
updateSettings(settings: ImaUpdateMatchSettingsDto): Promise<ImaMatchSettingsDto> {
|
|
23928
|
+
let url_ = this.baseUrl + "/inspect/match/settings";
|
|
23929
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
23930
|
+
|
|
23931
|
+
const content_ = JSON.stringify(settings);
|
|
23932
|
+
|
|
23933
|
+
let options_: RequestInit = {
|
|
23934
|
+
body: content_,
|
|
23935
|
+
method: "PUT",
|
|
23936
|
+
headers: {
|
|
23937
|
+
"Content-Type": "application/json",
|
|
23938
|
+
"Accept": "application/json"
|
|
23939
|
+
}
|
|
23940
|
+
};
|
|
23941
|
+
|
|
23942
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23943
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
23944
|
+
}).then((_response: Response) => {
|
|
23945
|
+
return this.processUpdateSettings(_response);
|
|
23946
|
+
});
|
|
23947
|
+
}
|
|
23948
|
+
|
|
23949
|
+
protected processUpdateSettings(response: Response): Promise<ImaMatchSettingsDto> {
|
|
23950
|
+
const status = response.status;
|
|
23951
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
23952
|
+
if (status === 200) {
|
|
23953
|
+
return response.text().then((_responseText) => {
|
|
23954
|
+
let result200: any = null;
|
|
23955
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaMatchSettingsDto;
|
|
23956
|
+
return result200;
|
|
23957
|
+
});
|
|
23958
|
+
} else if (status !== 200 && status !== 204) {
|
|
23959
|
+
return response.text().then((_responseText) => {
|
|
23960
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23961
|
+
});
|
|
23962
|
+
}
|
|
23963
|
+
return Promise.resolve<ImaMatchSettingsDto>(null as any);
|
|
23964
|
+
}
|
|
23965
|
+
}
|
|
23966
|
+
|
|
23838
23967
|
export interface IInspectMatchSpecificationsAdminClient {
|
|
23839
23968
|
|
|
23840
23969
|
createSpecification(createRequestDto: ImaCreateSpecificationRequestDto): Promise<ImaSpecificationDto>;
|
|
@@ -30186,10 +30315,11 @@ export interface CurrentCustomerDto {
|
|
|
30186
30315
|
}
|
|
30187
30316
|
|
|
30188
30317
|
export interface AvailableTenantDto {
|
|
30189
|
-
tenantId
|
|
30190
|
-
name
|
|
30191
|
-
|
|
30192
|
-
|
|
30318
|
+
tenantId: string;
|
|
30319
|
+
name: string;
|
|
30320
|
+
customerName: string;
|
|
30321
|
+
environment: TenantEnvironmentDto;
|
|
30322
|
+
isRecommended: boolean;
|
|
30193
30323
|
}
|
|
30194
30324
|
|
|
30195
30325
|
export type TenantEnvironmentDto = "Prod" | "QA" | "Test" | "Dev";
|
|
@@ -35836,6 +35966,50 @@ export interface PurchaseOrderMaterialLinesDto {
|
|
|
35836
35966
|
lines: number[];
|
|
35837
35967
|
}
|
|
35838
35968
|
|
|
35969
|
+
export interface ImaMatchSettingsDto {
|
|
35970
|
+
columns: ImaMatchSettingsColumnsDto;
|
|
35971
|
+
}
|
|
35972
|
+
|
|
35973
|
+
export interface ImaMatchSettingsColumnsDto {
|
|
35974
|
+
fileName: boolean;
|
|
35975
|
+
purchaseOrder: boolean;
|
|
35976
|
+
line: boolean;
|
|
35977
|
+
vendorBatch: boolean;
|
|
35978
|
+
part: boolean;
|
|
35979
|
+
drawing: boolean;
|
|
35980
|
+
heat: boolean;
|
|
35981
|
+
certificateType: boolean;
|
|
35982
|
+
specification: boolean;
|
|
35983
|
+
generatedReport: boolean;
|
|
35984
|
+
project: boolean;
|
|
35985
|
+
customerOrder: boolean;
|
|
35986
|
+
workOrder: boolean;
|
|
35987
|
+
date: boolean;
|
|
35988
|
+
status: boolean;
|
|
35989
|
+
}
|
|
35990
|
+
|
|
35991
|
+
export interface ImaUpdateMatchSettingsDto {
|
|
35992
|
+
columns: ImaUpdateMatchSettingsColumnsDto;
|
|
35993
|
+
}
|
|
35994
|
+
|
|
35995
|
+
export interface ImaUpdateMatchSettingsColumnsDto {
|
|
35996
|
+
fileName: boolean;
|
|
35997
|
+
purchaseOrder: boolean;
|
|
35998
|
+
line: boolean;
|
|
35999
|
+
vendorBatch: boolean;
|
|
36000
|
+
part: boolean;
|
|
36001
|
+
drawing: boolean;
|
|
36002
|
+
heat: boolean;
|
|
36003
|
+
certificateType: boolean;
|
|
36004
|
+
specification: boolean;
|
|
36005
|
+
generatedReport: boolean;
|
|
36006
|
+
project: boolean;
|
|
36007
|
+
customerOrder: boolean;
|
|
36008
|
+
workOrder: boolean;
|
|
36009
|
+
date: boolean;
|
|
36010
|
+
status: boolean;
|
|
36011
|
+
}
|
|
36012
|
+
|
|
35839
36013
|
export interface ImaSpecificationDto extends ImaCdfEntityReadBase {
|
|
35840
36014
|
specificationId: string;
|
|
35841
36015
|
version: number;
|