@ignos/api-client 20260521.132.1 → 20260526.134.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.
@@ -619,15 +619,14 @@ export declare class KpiAdminResourceClient extends AuthorizedApiBase implements
619
619
  protected processUpdateCalendarSettings(response: Response): Promise<CalendarSettingsDto>;
620
620
  }
621
621
  export interface IKpiCalendarClient {
622
- listCalendarDefinitions(): Promise<CalendarDefinitionDto[]>;
622
+ listCalendarDefinitions(): Promise<CalendarDefinitionsDto>;
623
623
  createCalendarDefinition(request: CreateCalendarDefinition): Promise<CalendarDefinitionDto>;
624
624
  updateCalendarDefinition(id: string, request: UpdateCalendarDefinitionRequest): Promise<CalendarDefinitionDto>;
625
- deleteCalendarDefinition(id: string): Promise<FileResponse>;
625
+ deleteCalendarDefinition(id: string): Promise<void>;
626
626
  listResourceCalendarPeriods(): Promise<ResourceCalendarPeriodSchedulesDto>;
627
- addResourceCalendarPeriod(request: AddResourceCalendarPeriod): Promise<ResourceCalendarPeriodDto>;
627
+ addResourceCalendarPeriods(request: AddResourceCalendarPeriod): Promise<ResourceCalendarPeriodDto[]>;
628
628
  deleteResourceCalendarPeriods(request: DeleteResourceCalendarPeriod): Promise<FileResponse>;
629
629
  updateResourceCalendarPeriod(resourceExternalId: string, effectiveFrom: string, request: UpdateResourceCalendarPeriodRequest): Promise<ResourceCalendarPeriodDto>;
630
- bulkAddResourceCalendarPeriods(request: BulkAddResourceCalendarPeriods): Promise<ResourceCalendarPeriodDto[]>;
631
630
  copyResourceCalendarPeriod(sourceResourceExternalId: string, sourceEffectiveFrom: string, request: CopyResourceCalendarPeriodRequest): Promise<ResourceCalendarPeriodDto>;
632
631
  migrateCapacityToSchedules(): Promise<MigrationResultDto>;
633
632
  }
@@ -637,24 +636,22 @@ export declare class KpiCalendarClient extends AuthorizedApiBase implements IKpi
637
636
  constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
638
637
  fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
639
638
  });
640
- listCalendarDefinitions(): Promise<CalendarDefinitionDto[]>;
641
- protected processListCalendarDefinitions(response: Response): Promise<CalendarDefinitionDto[]>;
639
+ listCalendarDefinitions(): Promise<CalendarDefinitionsDto>;
640
+ protected processListCalendarDefinitions(response: Response): Promise<CalendarDefinitionsDto>;
642
641
  createCalendarDefinition(request: CreateCalendarDefinition): Promise<CalendarDefinitionDto>;
643
642
  protected processCreateCalendarDefinition(response: Response): Promise<CalendarDefinitionDto>;
644
643
  updateCalendarDefinition(id: string, request: UpdateCalendarDefinitionRequest): Promise<CalendarDefinitionDto>;
645
644
  protected processUpdateCalendarDefinition(response: Response): Promise<CalendarDefinitionDto>;
646
- deleteCalendarDefinition(id: string): Promise<FileResponse>;
647
- protected processDeleteCalendarDefinition(response: Response): Promise<FileResponse>;
645
+ deleteCalendarDefinition(id: string): Promise<void>;
646
+ protected processDeleteCalendarDefinition(response: Response): Promise<void>;
648
647
  listResourceCalendarPeriods(): Promise<ResourceCalendarPeriodSchedulesDto>;
649
648
  protected processListResourceCalendarPeriods(response: Response): Promise<ResourceCalendarPeriodSchedulesDto>;
650
- addResourceCalendarPeriod(request: AddResourceCalendarPeriod): Promise<ResourceCalendarPeriodDto>;
651
- protected processAddResourceCalendarPeriod(response: Response): Promise<ResourceCalendarPeriodDto>;
649
+ addResourceCalendarPeriods(request: AddResourceCalendarPeriod): Promise<ResourceCalendarPeriodDto[]>;
650
+ protected processAddResourceCalendarPeriods(response: Response): Promise<ResourceCalendarPeriodDto[]>;
652
651
  deleteResourceCalendarPeriods(request: DeleteResourceCalendarPeriod): Promise<FileResponse>;
653
652
  protected processDeleteResourceCalendarPeriods(response: Response): Promise<FileResponse>;
654
653
  updateResourceCalendarPeriod(resourceExternalId: string, effectiveFrom: string, request: UpdateResourceCalendarPeriodRequest): Promise<ResourceCalendarPeriodDto>;
655
654
  protected processUpdateResourceCalendarPeriod(response: Response): Promise<ResourceCalendarPeriodDto>;
656
- bulkAddResourceCalendarPeriods(request: BulkAddResourceCalendarPeriods): Promise<ResourceCalendarPeriodDto[]>;
657
- protected processBulkAddResourceCalendarPeriods(response: Response): Promise<ResourceCalendarPeriodDto[]>;
658
655
  copyResourceCalendarPeriod(sourceResourceExternalId: string, sourceEffectiveFrom: string, request: CopyResourceCalendarPeriodRequest): Promise<ResourceCalendarPeriodDto>;
659
656
  protected processCopyResourceCalendarPeriod(response: Response): Promise<ResourceCalendarPeriodDto>;
660
657
  migrateCapacityToSchedules(): Promise<MigrationResultDto>;
@@ -2663,6 +2660,7 @@ export interface IInspectMatchMaterialChecksClient {
2663
2660
  getMaterialCheck(id: string): Promise<ImaMaterialCheckDto>;
2664
2661
  listMaterialChecks(request: ImaMaterialChecksPageRequestDto): Promise<PagedResultOfImaMaterialCheckLiteDto>;
2665
2662
  processMaterialCertificate(certificatesRequest: ProcessMaterialCertificate): Promise<void>;
2663
+ generateReport(request: ImaMaterialChecksReportRequestDto): Promise<DownloadDto>;
2666
2664
  }
2667
2665
  export declare class InspectMatchMaterialChecksClient extends AuthorizedApiBase implements IInspectMatchMaterialChecksClient {
2668
2666
  private http;
@@ -2676,6 +2674,8 @@ export declare class InspectMatchMaterialChecksClient extends AuthorizedApiBase
2676
2674
  protected processListMaterialChecks(response: Response): Promise<PagedResultOfImaMaterialCheckLiteDto>;
2677
2675
  processMaterialCertificate(certificatesRequest: ProcessMaterialCertificate): Promise<void>;
2678
2676
  protected processProcessMaterialCertificate(response: Response): Promise<void>;
2677
+ generateReport(request: ImaMaterialChecksReportRequestDto): Promise<DownloadDto>;
2678
+ protected processGenerateReport(response: Response): Promise<DownloadDto>;
2679
2679
  }
2680
2680
  export interface IInspectMatchPurchaseOrderClient {
2681
2681
  searchPurchaseOrders(input: string | undefined): Promise<PurchaseOrderMaterialSearchResultsDto>;
@@ -4165,6 +4165,10 @@ export interface UpdateCalendarSettingsCommand {
4165
4165
  holidayHours?: number;
4166
4166
  defaultPerformancePercent?: number | null;
4167
4167
  }
4168
+ export interface CalendarDefinitionsDto {
4169
+ active: CalendarDefinitionDto[];
4170
+ archived: CalendarDefinitionDto[];
4171
+ }
4168
4172
  export interface CalendarDefinitionDto {
4169
4173
  id: string;
4170
4174
  name: string;
@@ -4173,6 +4177,7 @@ export interface CalendarDefinitionDto {
4173
4177
  };
4174
4178
  created?: Date | null;
4175
4179
  updatedBy?: string | null;
4180
+ isArchived?: boolean;
4176
4181
  }
4177
4182
  export interface CreateCalendarDefinition {
4178
4183
  name: string;
@@ -4185,6 +4190,7 @@ export interface UpdateCalendarDefinitionRequest {
4185
4190
  hoursPerWeekday?: {
4186
4191
  [key in DayOfWeek]?: number;
4187
4192
  } | null;
4193
+ unarchive?: boolean | null;
4188
4194
  }
4189
4195
  export interface ResourceCalendarPeriodSchedulesDto {
4190
4196
  groups: ResourceCalendarPeriodGroupDto[];
@@ -4209,7 +4215,7 @@ export interface ResourceCalendarPeriodDto {
4209
4215
  comment?: string | null;
4210
4216
  }
4211
4217
  export interface AddResourceCalendarPeriod {
4212
- resourceExternalId: string;
4218
+ resourceExternalIds: string[];
4213
4219
  calendarDefinitionId: string;
4214
4220
  effectiveFrom: string;
4215
4221
  targetPercent: number;
@@ -4228,13 +4234,6 @@ export interface PeriodKey {
4228
4234
  resourceExternalId: string;
4229
4235
  effectiveFrom: string;
4230
4236
  }
4231
- export interface BulkAddResourceCalendarPeriods {
4232
- resourceExternalIds: string[];
4233
- calendarDefinitionId: string;
4234
- effectiveFrom: string;
4235
- targetPercent: number;
4236
- comment?: string | null;
4237
- }
4238
4237
  export interface CopyResourceCalendarPeriodRequest {
4239
4238
  targetResourceExternalId: string;
4240
4239
  effectiveFrom: string;
@@ -8334,11 +8333,9 @@ export interface ProcessMaterialCertificate {
8334
8333
  export interface UploadFileCdfDto {
8335
8334
  id: number;
8336
8335
  }
8337
- export interface PurchaseOrderMaterialSearchResultsDto {
8338
- purchaseOrders: string[];
8339
- }
8340
- export interface PurchaseOrderMaterialLinesDto {
8341
- lines: number[];
8336
+ export interface ImaMaterialChecksReportRequestDto {
8337
+ materialCheck?: ImaMaterialCheckDto;
8338
+ purchaseOrder?: PurchaseOrderMaterialLineDetailsDto;
8342
8339
  }
8343
8340
  export interface PurchaseOrderMaterialLineDetailsDto {
8344
8341
  companyId: string;
@@ -8373,6 +8370,12 @@ export interface User {
8373
8370
  upn?: string | null;
8374
8371
  email?: string | null;
8375
8372
  }
8373
+ export interface PurchaseOrderMaterialSearchResultsDto {
8374
+ purchaseOrders: string[];
8375
+ }
8376
+ export interface PurchaseOrderMaterialLinesDto {
8377
+ lines: number[];
8378
+ }
8376
8379
  export interface ImaSpecificationDto extends ImaCdfEntityReadBase {
8377
8380
  specificationId: string;
8378
8381
  version: number;
@@ -4647,9 +4647,7 @@ export class KpiCalendarClient extends AuthorizedApiBase {
4647
4647
  url_ = url_.replace(/[?&]$/, "");
4648
4648
  let options_ = {
4649
4649
  method: "DELETE",
4650
- headers: {
4651
- "Accept": "application/octet-stream"
4652
- }
4650
+ headers: {}
4653
4651
  };
4654
4652
  return this.transformOptions(options_).then(transformedOptions_ => {
4655
4653
  return this.http.fetch(url_, transformedOptions_);
@@ -4664,18 +4662,10 @@ export class KpiCalendarClient extends AuthorizedApiBase {
4664
4662
  response.headers.forEach((v, k) => _headers[k] = v);
4665
4663
  }
4666
4664
  ;
4667
- if (status === 200 || status === 206) {
4668
- const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
4669
- let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
4670
- let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
4671
- if (fileName) {
4672
- fileName = decodeURIComponent(fileName);
4673
- }
4674
- else {
4675
- fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
4676
- fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
4677
- }
4678
- return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
4665
+ if (status === 204) {
4666
+ return response.text().then((_responseText) => {
4667
+ return;
4668
+ });
4679
4669
  }
4680
4670
  else if (status !== 200 && status !== 204) {
4681
4671
  return response.text().then((_responseText) => {
@@ -4720,7 +4710,7 @@ export class KpiCalendarClient extends AuthorizedApiBase {
4720
4710
  }
4721
4711
  return Promise.resolve(null);
4722
4712
  }
4723
- addResourceCalendarPeriod(request) {
4713
+ addResourceCalendarPeriods(request) {
4724
4714
  let url_ = this.baseUrl + "/resources/kpi/calendar-periods";
4725
4715
  url_ = url_.replace(/[?&]$/, "");
4726
4716
  const content_ = JSON.stringify(request);
@@ -4735,10 +4725,10 @@ export class KpiCalendarClient extends AuthorizedApiBase {
4735
4725
  return this.transformOptions(options_).then(transformedOptions_ => {
4736
4726
  return this.http.fetch(url_, transformedOptions_);
4737
4727
  }).then((_response) => {
4738
- return this.processAddResourceCalendarPeriod(_response);
4728
+ return this.processAddResourceCalendarPeriods(_response);
4739
4729
  });
4740
4730
  }
4741
- processAddResourceCalendarPeriod(response) {
4731
+ processAddResourceCalendarPeriods(response) {
4742
4732
  const status = response.status;
4743
4733
  let _headers = {};
4744
4734
  if (response.headers && response.headers.forEach) {
@@ -4849,45 +4839,6 @@ export class KpiCalendarClient extends AuthorizedApiBase {
4849
4839
  }
4850
4840
  return Promise.resolve(null);
4851
4841
  }
4852
- bulkAddResourceCalendarPeriods(request) {
4853
- let url_ = this.baseUrl + "/resources/kpi/calendar-periods/bulk";
4854
- url_ = url_.replace(/[?&]$/, "");
4855
- const content_ = JSON.stringify(request);
4856
- let options_ = {
4857
- body: content_,
4858
- method: "POST",
4859
- headers: {
4860
- "Content-Type": "application/json",
4861
- "Accept": "application/json"
4862
- }
4863
- };
4864
- return this.transformOptions(options_).then(transformedOptions_ => {
4865
- return this.http.fetch(url_, transformedOptions_);
4866
- }).then((_response) => {
4867
- return this.processBulkAddResourceCalendarPeriods(_response);
4868
- });
4869
- }
4870
- processBulkAddResourceCalendarPeriods(response) {
4871
- const status = response.status;
4872
- let _headers = {};
4873
- if (response.headers && response.headers.forEach) {
4874
- response.headers.forEach((v, k) => _headers[k] = v);
4875
- }
4876
- ;
4877
- if (status === 200) {
4878
- return response.text().then((_responseText) => {
4879
- let result200 = null;
4880
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
4881
- return result200;
4882
- });
4883
- }
4884
- else if (status !== 200 && status !== 204) {
4885
- return response.text().then((_responseText) => {
4886
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4887
- });
4888
- }
4889
- return Promise.resolve(null);
4890
- }
4891
4842
  copyResourceCalendarPeriod(sourceResourceExternalId, sourceEffectiveFrom, request) {
4892
4843
  let url_ = this.baseUrl + "/resources/kpi/calendar-periods/{sourceResourceExternalId}/{sourceEffectiveFrom}/copy";
4893
4844
  if (sourceResourceExternalId === undefined || sourceResourceExternalId === null)
@@ -22173,6 +22124,45 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase {
22173
22124
  }
22174
22125
  return Promise.resolve(null);
22175
22126
  }
22127
+ generateReport(request) {
22128
+ let url_ = this.baseUrl + "/inspect/match/material-checks/generate-report";
22129
+ url_ = url_.replace(/[?&]$/, "");
22130
+ const content_ = JSON.stringify(request);
22131
+ let options_ = {
22132
+ body: content_,
22133
+ method: "POST",
22134
+ headers: {
22135
+ "Content-Type": "application/json",
22136
+ "Accept": "application/json"
22137
+ }
22138
+ };
22139
+ return this.transformOptions(options_).then(transformedOptions_ => {
22140
+ return this.http.fetch(url_, transformedOptions_);
22141
+ }).then((_response) => {
22142
+ return this.processGenerateReport(_response);
22143
+ });
22144
+ }
22145
+ processGenerateReport(response) {
22146
+ const status = response.status;
22147
+ let _headers = {};
22148
+ if (response.headers && response.headers.forEach) {
22149
+ response.headers.forEach((v, k) => _headers[k] = v);
22150
+ }
22151
+ ;
22152
+ if (status === 200) {
22153
+ return response.text().then((_responseText) => {
22154
+ let result200 = null;
22155
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22156
+ return result200;
22157
+ });
22158
+ }
22159
+ else if (status !== 200 && status !== 204) {
22160
+ return response.text().then((_responseText) => {
22161
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22162
+ });
22163
+ }
22164
+ return Promise.resolve(null);
22165
+ }
22176
22166
  }
22177
22167
  export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase {
22178
22168
  constructor(configuration, baseUrl, http) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20260521.132.1",
3
+ "version": "20260526.134.1-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -4878,24 +4878,22 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
4878
4878
 
4879
4879
  export interface IKpiCalendarClient {
4880
4880
 
4881
- listCalendarDefinitions(): Promise<CalendarDefinitionDto[]>;
4881
+ listCalendarDefinitions(): Promise<CalendarDefinitionsDto>;
4882
4882
 
4883
4883
  createCalendarDefinition(request: CreateCalendarDefinition): Promise<CalendarDefinitionDto>;
4884
4884
 
4885
4885
  updateCalendarDefinition(id: string, request: UpdateCalendarDefinitionRequest): Promise<CalendarDefinitionDto>;
4886
4886
 
4887
- deleteCalendarDefinition(id: string): Promise<FileResponse>;
4887
+ deleteCalendarDefinition(id: string): Promise<void>;
4888
4888
 
4889
4889
  listResourceCalendarPeriods(): Promise<ResourceCalendarPeriodSchedulesDto>;
4890
4890
 
4891
- addResourceCalendarPeriod(request: AddResourceCalendarPeriod): Promise<ResourceCalendarPeriodDto>;
4891
+ addResourceCalendarPeriods(request: AddResourceCalendarPeriod): Promise<ResourceCalendarPeriodDto[]>;
4892
4892
 
4893
4893
  deleteResourceCalendarPeriods(request: DeleteResourceCalendarPeriod): Promise<FileResponse>;
4894
4894
 
4895
4895
  updateResourceCalendarPeriod(resourceExternalId: string, effectiveFrom: string, request: UpdateResourceCalendarPeriodRequest): Promise<ResourceCalendarPeriodDto>;
4896
4896
 
4897
- bulkAddResourceCalendarPeriods(request: BulkAddResourceCalendarPeriods): Promise<ResourceCalendarPeriodDto[]>;
4898
-
4899
4897
  copyResourceCalendarPeriod(sourceResourceExternalId: string, sourceEffectiveFrom: string, request: CopyResourceCalendarPeriodRequest): Promise<ResourceCalendarPeriodDto>;
4900
4898
 
4901
4899
  migrateCapacityToSchedules(): Promise<MigrationResultDto>;
@@ -4911,7 +4909,7 @@ export class KpiCalendarClient extends AuthorizedApiBase implements IKpiCalendar
4911
4909
  this.baseUrl = baseUrl ?? "";
4912
4910
  }
4913
4911
 
4914
- listCalendarDefinitions(): Promise<CalendarDefinitionDto[]> {
4912
+ listCalendarDefinitions(): Promise<CalendarDefinitionsDto> {
4915
4913
  let url_ = this.baseUrl + "/resources/kpi/calendar-definitions";
4916
4914
  url_ = url_.replace(/[?&]$/, "");
4917
4915
 
@@ -4929,13 +4927,13 @@ export class KpiCalendarClient extends AuthorizedApiBase implements IKpiCalendar
4929
4927
  });
4930
4928
  }
4931
4929
 
4932
- protected processListCalendarDefinitions(response: Response): Promise<CalendarDefinitionDto[]> {
4930
+ protected processListCalendarDefinitions(response: Response): Promise<CalendarDefinitionsDto> {
4933
4931
  const status = response.status;
4934
4932
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
4935
4933
  if (status === 200) {
4936
4934
  return response.text().then((_responseText) => {
4937
4935
  let result200: any = null;
4938
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as CalendarDefinitionDto[];
4936
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as CalendarDefinitionsDto;
4939
4937
  return result200;
4940
4938
  });
4941
4939
  } else if (status !== 200 && status !== 204) {
@@ -4943,7 +4941,7 @@ export class KpiCalendarClient extends AuthorizedApiBase implements IKpiCalendar
4943
4941
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4944
4942
  });
4945
4943
  }
4946
- return Promise.resolve<CalendarDefinitionDto[]>(null as any);
4944
+ return Promise.resolve<CalendarDefinitionsDto>(null as any);
4947
4945
  }
4948
4946
 
4949
4947
  createCalendarDefinition(request: CreateCalendarDefinition): Promise<CalendarDefinitionDto> {
@@ -5027,7 +5025,7 @@ export class KpiCalendarClient extends AuthorizedApiBase implements IKpiCalendar
5027
5025
  return Promise.resolve<CalendarDefinitionDto>(null as any);
5028
5026
  }
5029
5027
 
5030
- deleteCalendarDefinition(id: string): Promise<FileResponse> {
5028
+ deleteCalendarDefinition(id: string): Promise<void> {
5031
5029
  let url_ = this.baseUrl + "/resources/kpi/calendar-definitions/{id}";
5032
5030
  if (id === undefined || id === null)
5033
5031
  throw new globalThis.Error("The parameter 'id' must be defined.");
@@ -5037,7 +5035,6 @@ export class KpiCalendarClient extends AuthorizedApiBase implements IKpiCalendar
5037
5035
  let options_: RequestInit = {
5038
5036
  method: "DELETE",
5039
5037
  headers: {
5040
- "Accept": "application/octet-stream"
5041
5038
  }
5042
5039
  };
5043
5040
 
@@ -5048,26 +5045,19 @@ export class KpiCalendarClient extends AuthorizedApiBase implements IKpiCalendar
5048
5045
  });
5049
5046
  }
5050
5047
 
5051
- protected processDeleteCalendarDefinition(response: Response): Promise<FileResponse> {
5048
+ protected processDeleteCalendarDefinition(response: Response): Promise<void> {
5052
5049
  const status = response.status;
5053
5050
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
5054
- if (status === 200 || status === 206) {
5055
- const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
5056
- let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
5057
- let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
5058
- if (fileName) {
5059
- fileName = decodeURIComponent(fileName);
5060
- } else {
5061
- fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
5062
- fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
5063
- }
5064
- return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
5051
+ if (status === 204) {
5052
+ return response.text().then((_responseText) => {
5053
+ return;
5054
+ });
5065
5055
  } else if (status !== 200 && status !== 204) {
5066
5056
  return response.text().then((_responseText) => {
5067
5057
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5068
5058
  });
5069
5059
  }
5070
- return Promise.resolve<FileResponse>(null as any);
5060
+ return Promise.resolve<void>(null as any);
5071
5061
  }
5072
5062
 
5073
5063
  listResourceCalendarPeriods(): Promise<ResourceCalendarPeriodSchedulesDto> {
@@ -5105,7 +5095,7 @@ export class KpiCalendarClient extends AuthorizedApiBase implements IKpiCalendar
5105
5095
  return Promise.resolve<ResourceCalendarPeriodSchedulesDto>(null as any);
5106
5096
  }
5107
5097
 
5108
- addResourceCalendarPeriod(request: AddResourceCalendarPeriod): Promise<ResourceCalendarPeriodDto> {
5098
+ addResourceCalendarPeriods(request: AddResourceCalendarPeriod): Promise<ResourceCalendarPeriodDto[]> {
5109
5099
  let url_ = this.baseUrl + "/resources/kpi/calendar-periods";
5110
5100
  url_ = url_.replace(/[?&]$/, "");
5111
5101
 
@@ -5123,17 +5113,17 @@ export class KpiCalendarClient extends AuthorizedApiBase implements IKpiCalendar
5123
5113
  return this.transformOptions(options_).then(transformedOptions_ => {
5124
5114
  return this.http.fetch(url_, transformedOptions_);
5125
5115
  }).then((_response: Response) => {
5126
- return this.processAddResourceCalendarPeriod(_response);
5116
+ return this.processAddResourceCalendarPeriods(_response);
5127
5117
  });
5128
5118
  }
5129
5119
 
5130
- protected processAddResourceCalendarPeriod(response: Response): Promise<ResourceCalendarPeriodDto> {
5120
+ protected processAddResourceCalendarPeriods(response: Response): Promise<ResourceCalendarPeriodDto[]> {
5131
5121
  const status = response.status;
5132
5122
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
5133
5123
  if (status === 200) {
5134
5124
  return response.text().then((_responseText) => {
5135
5125
  let result200: any = null;
5136
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ResourceCalendarPeriodDto;
5126
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ResourceCalendarPeriodDto[];
5137
5127
  return result200;
5138
5128
  });
5139
5129
  } else if (status !== 200 && status !== 204) {
@@ -5141,7 +5131,7 @@ export class KpiCalendarClient extends AuthorizedApiBase implements IKpiCalendar
5141
5131
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5142
5132
  });
5143
5133
  }
5144
- return Promise.resolve<ResourceCalendarPeriodDto>(null as any);
5134
+ return Promise.resolve<ResourceCalendarPeriodDto[]>(null as any);
5145
5135
  }
5146
5136
 
5147
5137
  deleteResourceCalendarPeriods(request: DeleteResourceCalendarPeriod): Promise<FileResponse> {
@@ -5233,45 +5223,6 @@ export class KpiCalendarClient extends AuthorizedApiBase implements IKpiCalendar
5233
5223
  return Promise.resolve<ResourceCalendarPeriodDto>(null as any);
5234
5224
  }
5235
5225
 
5236
- bulkAddResourceCalendarPeriods(request: BulkAddResourceCalendarPeriods): Promise<ResourceCalendarPeriodDto[]> {
5237
- let url_ = this.baseUrl + "/resources/kpi/calendar-periods/bulk";
5238
- url_ = url_.replace(/[?&]$/, "");
5239
-
5240
- const content_ = JSON.stringify(request);
5241
-
5242
- let options_: RequestInit = {
5243
- body: content_,
5244
- method: "POST",
5245
- headers: {
5246
- "Content-Type": "application/json",
5247
- "Accept": "application/json"
5248
- }
5249
- };
5250
-
5251
- return this.transformOptions(options_).then(transformedOptions_ => {
5252
- return this.http.fetch(url_, transformedOptions_);
5253
- }).then((_response: Response) => {
5254
- return this.processBulkAddResourceCalendarPeriods(_response);
5255
- });
5256
- }
5257
-
5258
- protected processBulkAddResourceCalendarPeriods(response: Response): Promise<ResourceCalendarPeriodDto[]> {
5259
- const status = response.status;
5260
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
5261
- if (status === 200) {
5262
- return response.text().then((_responseText) => {
5263
- let result200: any = null;
5264
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ResourceCalendarPeriodDto[];
5265
- return result200;
5266
- });
5267
- } else if (status !== 200 && status !== 204) {
5268
- return response.text().then((_responseText) => {
5269
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5270
- });
5271
- }
5272
- return Promise.resolve<ResourceCalendarPeriodDto[]>(null as any);
5273
- }
5274
-
5275
5226
  copyResourceCalendarPeriod(sourceResourceExternalId: string, sourceEffectiveFrom: string, request: CopyResourceCalendarPeriodRequest): Promise<ResourceCalendarPeriodDto> {
5276
5227
  let url_ = this.baseUrl + "/resources/kpi/calendar-periods/{sourceResourceExternalId}/{sourceEffectiveFrom}/copy";
5277
5228
  if (sourceResourceExternalId === undefined || sourceResourceExternalId === null)
@@ -23589,6 +23540,8 @@ export interface IInspectMatchMaterialChecksClient {
23589
23540
  listMaterialChecks(request: ImaMaterialChecksPageRequestDto): Promise<PagedResultOfImaMaterialCheckLiteDto>;
23590
23541
 
23591
23542
  processMaterialCertificate(certificatesRequest: ProcessMaterialCertificate): Promise<void>;
23543
+
23544
+ generateReport(request: ImaMaterialChecksReportRequestDto): Promise<DownloadDto>;
23592
23545
  }
23593
23546
 
23594
23547
  export class InspectMatchMaterialChecksClient extends AuthorizedApiBase implements IInspectMatchMaterialChecksClient {
@@ -23713,6 +23666,45 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase implemen
23713
23666
  }
23714
23667
  return Promise.resolve<void>(null as any);
23715
23668
  }
23669
+
23670
+ generateReport(request: ImaMaterialChecksReportRequestDto): Promise<DownloadDto> {
23671
+ let url_ = this.baseUrl + "/inspect/match/material-checks/generate-report";
23672
+ url_ = url_.replace(/[?&]$/, "");
23673
+
23674
+ const content_ = JSON.stringify(request);
23675
+
23676
+ let options_: RequestInit = {
23677
+ body: content_,
23678
+ method: "POST",
23679
+ headers: {
23680
+ "Content-Type": "application/json",
23681
+ "Accept": "application/json"
23682
+ }
23683
+ };
23684
+
23685
+ return this.transformOptions(options_).then(transformedOptions_ => {
23686
+ return this.http.fetch(url_, transformedOptions_);
23687
+ }).then((_response: Response) => {
23688
+ return this.processGenerateReport(_response);
23689
+ });
23690
+ }
23691
+
23692
+ protected processGenerateReport(response: Response): Promise<DownloadDto> {
23693
+ const status = response.status;
23694
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
23695
+ if (status === 200) {
23696
+ return response.text().then((_responseText) => {
23697
+ let result200: any = null;
23698
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as DownloadDto;
23699
+ return result200;
23700
+ });
23701
+ } else if (status !== 200 && status !== 204) {
23702
+ return response.text().then((_responseText) => {
23703
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
23704
+ });
23705
+ }
23706
+ return Promise.resolve<DownloadDto>(null as any);
23707
+ }
23716
23708
  }
23717
23709
 
23718
23710
  export interface IInspectMatchPurchaseOrderClient {
@@ -31035,12 +31027,18 @@ export interface UpdateCalendarSettingsCommand {
31035
31027
  defaultPerformancePercent?: number | null;
31036
31028
  }
31037
31029
 
31030
+ export interface CalendarDefinitionsDto {
31031
+ active: CalendarDefinitionDto[];
31032
+ archived: CalendarDefinitionDto[];
31033
+ }
31034
+
31038
31035
  export interface CalendarDefinitionDto {
31039
31036
  id: string;
31040
31037
  name: string;
31041
31038
  hoursPerWeekday: { [key in DayOfWeek]?: number; };
31042
31039
  created?: Date | null;
31043
31040
  updatedBy?: string | null;
31041
+ isArchived?: boolean;
31044
31042
  }
31045
31043
 
31046
31044
  export interface CreateCalendarDefinition {
@@ -31051,6 +31049,7 @@ export interface CreateCalendarDefinition {
31051
31049
  export interface UpdateCalendarDefinitionRequest {
31052
31050
  name?: string | null;
31053
31051
  hoursPerWeekday?: { [key in DayOfWeek]?: number; } | null;
31052
+ unarchive?: boolean | null;
31054
31053
  }
31055
31054
 
31056
31055
  export interface ResourceCalendarPeriodSchedulesDto {
@@ -31080,7 +31079,7 @@ export interface ResourceCalendarPeriodDto {
31080
31079
  }
31081
31080
 
31082
31081
  export interface AddResourceCalendarPeriod {
31083
- resourceExternalId: string;
31082
+ resourceExternalIds: string[];
31084
31083
  calendarDefinitionId: string;
31085
31084
  effectiveFrom: string;
31086
31085
  targetPercent: number;
@@ -31103,14 +31102,6 @@ export interface PeriodKey {
31103
31102
  effectiveFrom: string;
31104
31103
  }
31105
31104
 
31106
- export interface BulkAddResourceCalendarPeriods {
31107
- resourceExternalIds: string[];
31108
- calendarDefinitionId: string;
31109
- effectiveFrom: string;
31110
- targetPercent: number;
31111
- comment?: string | null;
31112
- }
31113
-
31114
31105
  export interface CopyResourceCalendarPeriodRequest {
31115
31106
  targetResourceExternalId: string;
31116
31107
  effectiveFrom: string;
@@ -35772,12 +35763,9 @@ export interface UploadFileCdfDto {
35772
35763
  id: number;
35773
35764
  }
35774
35765
 
35775
- export interface PurchaseOrderMaterialSearchResultsDto {
35776
- purchaseOrders: string[];
35777
- }
35778
-
35779
- export interface PurchaseOrderMaterialLinesDto {
35780
- lines: number[];
35766
+ export interface ImaMaterialChecksReportRequestDto {
35767
+ materialCheck?: ImaMaterialCheckDto;
35768
+ purchaseOrder?: PurchaseOrderMaterialLineDetailsDto;
35781
35769
  }
35782
35770
 
35783
35771
  export interface PurchaseOrderMaterialLineDetailsDto {
@@ -35816,6 +35804,14 @@ export interface User {
35816
35804
  email?: string | null;
35817
35805
  }
35818
35806
 
35807
+ export interface PurchaseOrderMaterialSearchResultsDto {
35808
+ purchaseOrders: string[];
35809
+ }
35810
+
35811
+ export interface PurchaseOrderMaterialLinesDto {
35812
+ lines: number[];
35813
+ }
35814
+
35819
35815
  export interface ImaSpecificationDto extends ImaCdfEntityReadBase {
35820
35816
  specificationId: string;
35821
35817
  version: number;