@ignos/api-client 20260605.146.1 → 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.
@@ -2689,6 +2689,21 @@ export declare class InspectMatchPurchaseOrderClient extends AuthorizedApiBase i
2689
2689
  getPurchaseOrderLineDetails(purchaseOrder: string, lineNumber: number): Promise<PurchaseOrderMaterialLineDetailsDto>;
2690
2690
  protected processGetPurchaseOrderLineDetails(response: Response): Promise<PurchaseOrderMaterialLineDetailsDto>;
2691
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
+ }
2692
2707
  export interface IInspectMatchSpecificationsAdminClient {
2693
2708
  createSpecification(createRequestDto: ImaCreateSpecificationRequestDto): Promise<ImaSpecificationDto>;
2694
2709
  copySpecification(id: string, version: number | null | undefined, copyDto: ImaCopySpecificationRequestDto): Promise<ImaSpecificationDto>;
@@ -3446,11 +3461,11 @@ export interface CurrentCustomerDto {
3446
3461
  logoUrl?: string | null;
3447
3462
  }
3448
3463
  export interface AvailableTenantDto {
3449
- tenantId?: string;
3450
- name?: string | null;
3451
- customerName?: string;
3452
- environment?: TenantEnvironmentDto;
3453
- isRecommended?: boolean;
3464
+ tenantId: string;
3465
+ name: string;
3466
+ customerName: string;
3467
+ environment: TenantEnvironmentDto;
3468
+ isRecommended: boolean;
3454
3469
  }
3455
3470
  export type TenantEnvironmentDto = "Prod" | "QA" | "Test" | "Dev";
3456
3471
  export interface GuestLoginInfoDto {
@@ -8402,6 +8417,46 @@ export interface PurchaseOrderMaterialSearchResultsDto {
8402
8417
  export interface PurchaseOrderMaterialLinesDto {
8403
8418
  lines: number[];
8404
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
+ }
8405
8460
  export interface ImaSpecificationDto extends ImaCdfEntityReadBase {
8406
8461
  specificationId: string;
8407
8462
  version: number;
@@ -22324,6 +22324,88 @@ export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase {
22324
22324
  return Promise.resolve(null);
22325
22325
  }
22326
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
+ }
22327
22409
  export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase {
22328
22410
  constructor(configuration, baseUrl, http) {
22329
22411
  super(configuration);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20260605.146.1",
3
+ "version": "20260607.147.1",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -23872,6 +23872,98 @@ export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase implement
23872
23872
  }
23873
23873
  }
23874
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
+
23875
23967
  export interface IInspectMatchSpecificationsAdminClient {
23876
23968
 
23877
23969
  createSpecification(createRequestDto: ImaCreateSpecificationRequestDto): Promise<ImaSpecificationDto>;
@@ -30223,11 +30315,11 @@ export interface CurrentCustomerDto {
30223
30315
  }
30224
30316
 
30225
30317
  export interface AvailableTenantDto {
30226
- tenantId?: string;
30227
- name?: string | null;
30228
- customerName?: string;
30229
- environment?: TenantEnvironmentDto;
30230
- isRecommended?: boolean;
30318
+ tenantId: string;
30319
+ name: string;
30320
+ customerName: string;
30321
+ environment: TenantEnvironmentDto;
30322
+ isRecommended: boolean;
30231
30323
  }
30232
30324
 
30233
30325
  export type TenantEnvironmentDto = "Prod" | "QA" | "Test" | "Dev";
@@ -35874,6 +35966,50 @@ export interface PurchaseOrderMaterialLinesDto {
35874
35966
  lines: number[];
35875
35967
  }
35876
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
+
35877
36013
  export interface ImaSpecificationDto extends ImaCdfEntityReadBase {
35878
36014
  specificationId: string;
35879
36015
  version: number;