@ignos/api-client 20260605.146.1 → 20260608.148.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 {
@@ -4208,6 +4223,9 @@ export interface ShiftSettingsPeriodDto {
4208
4223
  effectiveTo?: string | null;
4209
4224
  targetPercent: number;
4210
4225
  comment?: string | null;
4226
+ hoursPerWeekday: {
4227
+ [key in DayOfWeek]?: number;
4228
+ };
4211
4229
  }
4212
4230
  export interface AddShiftSettingPeriods {
4213
4231
  resourceExternalIds: string[];
@@ -4354,7 +4372,6 @@ export interface PartDto {
4354
4372
  drawingRevision?: string | null;
4355
4373
  material?: string | null;
4356
4374
  planner?: UserDto | null;
4357
- documentRequirements?: string[] | null;
4358
4375
  }
4359
4376
  export interface WorkorderCustomerOrderReferenceDto {
4360
4377
  customerOrder?: string | null;
@@ -7669,6 +7686,7 @@ export interface WorkorderDto {
7669
7686
  project?: WorkOrderProjectDto | null;
7670
7687
  planner?: UserDto | null;
7671
7688
  projectLeader?: UserDto | null;
7689
+ documentRequirements?: string[];
7672
7690
  }
7673
7691
  export interface WorkorderOperationDto {
7674
7692
  operation: number;
@@ -7700,6 +7718,7 @@ export interface WorkorderMaterialDto {
7700
7718
  usedQuantity: number;
7701
7719
  unit: string;
7702
7720
  traceType: TraceType;
7721
+ documentRequirements?: string[];
7703
7722
  }
7704
7723
  export interface ListOrderScheduleRequest {
7705
7724
  projectId?: string | null;
@@ -8388,7 +8407,6 @@ export interface Part {
8388
8407
  drawingReference?: string | null;
8389
8408
  material?: string | null;
8390
8409
  planner?: User | null;
8391
- documentRequirements?: string[];
8392
8410
  }
8393
8411
  export interface User {
8394
8412
  id?: string | null;
@@ -8402,6 +8420,46 @@ export interface PurchaseOrderMaterialSearchResultsDto {
8402
8420
  export interface PurchaseOrderMaterialLinesDto {
8403
8421
  lines: number[];
8404
8422
  }
8423
+ export interface ImaMatchSettingsDto {
8424
+ columns: ImaMatchSettingsColumnsDto;
8425
+ }
8426
+ export interface ImaMatchSettingsColumnsDto {
8427
+ fileName: boolean;
8428
+ purchaseOrder: boolean;
8429
+ line: boolean;
8430
+ vendorBatch: boolean;
8431
+ part: boolean;
8432
+ drawing: boolean;
8433
+ heat: boolean;
8434
+ certificateType: boolean;
8435
+ specification: boolean;
8436
+ generatedReport: boolean;
8437
+ project: boolean;
8438
+ customerOrder: boolean;
8439
+ workOrder: boolean;
8440
+ date: boolean;
8441
+ status: boolean;
8442
+ }
8443
+ export interface ImaUpdateMatchSettingsDto {
8444
+ columns: ImaUpdateMatchSettingsColumnsDto;
8445
+ }
8446
+ export interface ImaUpdateMatchSettingsColumnsDto {
8447
+ fileName: boolean;
8448
+ purchaseOrder: boolean;
8449
+ line: boolean;
8450
+ vendorBatch: boolean;
8451
+ part: boolean;
8452
+ drawing: boolean;
8453
+ heat: boolean;
8454
+ certificateType: boolean;
8455
+ specification: boolean;
8456
+ generatedReport: boolean;
8457
+ project: boolean;
8458
+ customerOrder: boolean;
8459
+ workOrder: boolean;
8460
+ date: boolean;
8461
+ status: boolean;
8462
+ }
8405
8463
  export interface ImaSpecificationDto extends ImaCdfEntityReadBase {
8406
8464
  specificationId: string;
8407
8465
  version: number;
@@ -9337,7 +9395,8 @@ export interface CustomerOrderLineDto {
9337
9395
  status: CustomerOrderLineStatus;
9338
9396
  part: PartDto;
9339
9397
  deliveryDate?: Date | null;
9340
- workorderHiearchy: WorkorderHierarchyDto[];
9398
+ workorderHierarchy: WorkorderHierarchyDto[];
9399
+ workorderHiearchy?: WorkorderHierarchyDto[] | null;
9341
9400
  }
9342
9401
  export type CustomerOrderLineStatus = "Draft" | "Ready" | "Ongoing" | "Completed" | "Deleted";
9343
9402
  export interface WorkorderHierarchyDto {
@@ -9435,6 +9494,7 @@ export interface UpsertWorkorderV2 {
9435
9494
  endDate?: Date | null;
9436
9495
  bomPosition?: string | null;
9437
9496
  traceType?: TraceType | null;
9497
+ documentRequirements?: string[];
9438
9498
  }
9439
9499
  export interface UpsertWorkOrderConsumptionsRequest {
9440
9500
  materialConsumptions: MaterialConsumptionDto[];
@@ -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": "20260608.148.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";
@@ -31104,6 +31196,7 @@ export interface ShiftSettingsPeriodDto {
31104
31196
  effectiveTo?: string | null;
31105
31197
  targetPercent: number;
31106
31198
  comment?: string | null;
31199
+ hoursPerWeekday: { [key in DayOfWeek]?: number; };
31107
31200
  }
31108
31201
 
31109
31202
  export interface AddShiftSettingPeriods {
@@ -31274,7 +31367,6 @@ export interface PartDto {
31274
31367
  drawingRevision?: string | null;
31275
31368
  material?: string | null;
31276
31369
  planner?: UserDto | null;
31277
- documentRequirements?: string[] | null;
31278
31370
  }
31279
31371
 
31280
31372
  export interface WorkorderCustomerOrderReferenceDto {
@@ -35045,6 +35137,7 @@ export interface WorkorderDto {
35045
35137
  project?: WorkOrderProjectDto | null;
35046
35138
  planner?: UserDto | null;
35047
35139
  projectLeader?: UserDto | null;
35140
+ documentRequirements?: string[];
35048
35141
  }
35049
35142
 
35050
35143
  export interface WorkorderOperationDto {
@@ -35078,6 +35171,7 @@ export interface WorkorderMaterialDto {
35078
35171
  usedQuantity: number;
35079
35172
  unit: string;
35080
35173
  traceType: TraceType;
35174
+ documentRequirements?: string[];
35081
35175
  }
35082
35176
 
35083
35177
  export interface ListOrderScheduleRequest {
@@ -35856,7 +35950,6 @@ export interface Part {
35856
35950
  drawingReference?: string | null;
35857
35951
  material?: string | null;
35858
35952
  planner?: User | null;
35859
- documentRequirements?: string[];
35860
35953
  }
35861
35954
 
35862
35955
  export interface User {
@@ -35874,6 +35967,50 @@ export interface PurchaseOrderMaterialLinesDto {
35874
35967
  lines: number[];
35875
35968
  }
35876
35969
 
35970
+ export interface ImaMatchSettingsDto {
35971
+ columns: ImaMatchSettingsColumnsDto;
35972
+ }
35973
+
35974
+ export interface ImaMatchSettingsColumnsDto {
35975
+ fileName: boolean;
35976
+ purchaseOrder: boolean;
35977
+ line: boolean;
35978
+ vendorBatch: boolean;
35979
+ part: boolean;
35980
+ drawing: boolean;
35981
+ heat: boolean;
35982
+ certificateType: boolean;
35983
+ specification: boolean;
35984
+ generatedReport: boolean;
35985
+ project: boolean;
35986
+ customerOrder: boolean;
35987
+ workOrder: boolean;
35988
+ date: boolean;
35989
+ status: boolean;
35990
+ }
35991
+
35992
+ export interface ImaUpdateMatchSettingsDto {
35993
+ columns: ImaUpdateMatchSettingsColumnsDto;
35994
+ }
35995
+
35996
+ export interface ImaUpdateMatchSettingsColumnsDto {
35997
+ fileName: boolean;
35998
+ purchaseOrder: boolean;
35999
+ line: boolean;
36000
+ vendorBatch: boolean;
36001
+ part: boolean;
36002
+ drawing: boolean;
36003
+ heat: boolean;
36004
+ certificateType: boolean;
36005
+ specification: boolean;
36006
+ generatedReport: boolean;
36007
+ project: boolean;
36008
+ customerOrder: boolean;
36009
+ workOrder: boolean;
36010
+ date: boolean;
36011
+ status: boolean;
36012
+ }
36013
+
35877
36014
  export interface ImaSpecificationDto extends ImaCdfEntityReadBase {
35878
36015
  specificationId: string;
35879
36016
  version: number;
@@ -36927,7 +37064,8 @@ export interface CustomerOrderLineDto {
36927
37064
  status: CustomerOrderLineStatus;
36928
37065
  part: PartDto;
36929
37066
  deliveryDate?: Date | null;
36930
- workorderHiearchy: WorkorderHierarchyDto[];
37067
+ workorderHierarchy: WorkorderHierarchyDto[];
37068
+ workorderHiearchy?: WorkorderHierarchyDto[] | null;
36931
37069
  }
36932
37070
 
36933
37071
  export type CustomerOrderLineStatus = "Draft" | "Ready" | "Ongoing" | "Completed" | "Deleted";
@@ -37041,6 +37179,7 @@ export interface UpsertWorkorderV2 {
37041
37179
  endDate?: Date | null;
37042
37180
  bomPosition?: string | null;
37043
37181
  traceType?: TraceType | null;
37182
+ documentRequirements?: string[];
37044
37183
  }
37045
37184
 
37046
37185
  export interface UpsertWorkOrderConsumptionsRequest {