@ignos/api-client 20260521.132.1 → 20260521.133.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.
@@ -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>;
@@ -4165,6 +4162,10 @@ export interface UpdateCalendarSettingsCommand {
4165
4162
  holidayHours?: number;
4166
4163
  defaultPerformancePercent?: number | null;
4167
4164
  }
4165
+ export interface CalendarDefinitionsDto {
4166
+ active: CalendarDefinitionDto[];
4167
+ archived: CalendarDefinitionDto[];
4168
+ }
4168
4169
  export interface CalendarDefinitionDto {
4169
4170
  id: string;
4170
4171
  name: string;
@@ -4173,6 +4174,7 @@ export interface CalendarDefinitionDto {
4173
4174
  };
4174
4175
  created?: Date | null;
4175
4176
  updatedBy?: string | null;
4177
+ isArchived?: boolean;
4176
4178
  }
4177
4179
  export interface CreateCalendarDefinition {
4178
4180
  name: string;
@@ -4185,6 +4187,7 @@ export interface UpdateCalendarDefinitionRequest {
4185
4187
  hoursPerWeekday?: {
4186
4188
  [key in DayOfWeek]?: number;
4187
4189
  } | null;
4190
+ unarchive?: boolean | null;
4188
4191
  }
4189
4192
  export interface ResourceCalendarPeriodSchedulesDto {
4190
4193
  groups: ResourceCalendarPeriodGroupDto[];
@@ -4209,7 +4212,7 @@ export interface ResourceCalendarPeriodDto {
4209
4212
  comment?: string | null;
4210
4213
  }
4211
4214
  export interface AddResourceCalendarPeriod {
4212
- resourceExternalId: string;
4215
+ resourceExternalIds: string[];
4213
4216
  calendarDefinitionId: string;
4214
4217
  effectiveFrom: string;
4215
4218
  targetPercent: number;
@@ -4228,13 +4231,6 @@ export interface PeriodKey {
4228
4231
  resourceExternalId: string;
4229
4232
  effectiveFrom: string;
4230
4233
  }
4231
- export interface BulkAddResourceCalendarPeriods {
4232
- resourceExternalIds: string[];
4233
- calendarDefinitionId: string;
4234
- effectiveFrom: string;
4235
- targetPercent: number;
4236
- comment?: string | null;
4237
- }
4238
4234
  export interface CopyResourceCalendarPeriodRequest {
4239
4235
  targetResourceExternalId: string;
4240
4236
  effectiveFrom: string;
@@ -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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20260521.132.1",
3
+ "version": "20260521.133.1",
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)
@@ -31035,12 +30986,18 @@ export interface UpdateCalendarSettingsCommand {
31035
30986
  defaultPerformancePercent?: number | null;
31036
30987
  }
31037
30988
 
30989
+ export interface CalendarDefinitionsDto {
30990
+ active: CalendarDefinitionDto[];
30991
+ archived: CalendarDefinitionDto[];
30992
+ }
30993
+
31038
30994
  export interface CalendarDefinitionDto {
31039
30995
  id: string;
31040
30996
  name: string;
31041
30997
  hoursPerWeekday: { [key in DayOfWeek]?: number; };
31042
30998
  created?: Date | null;
31043
30999
  updatedBy?: string | null;
31000
+ isArchived?: boolean;
31044
31001
  }
31045
31002
 
31046
31003
  export interface CreateCalendarDefinition {
@@ -31051,6 +31008,7 @@ export interface CreateCalendarDefinition {
31051
31008
  export interface UpdateCalendarDefinitionRequest {
31052
31009
  name?: string | null;
31053
31010
  hoursPerWeekday?: { [key in DayOfWeek]?: number; } | null;
31011
+ unarchive?: boolean | null;
31054
31012
  }
31055
31013
 
31056
31014
  export interface ResourceCalendarPeriodSchedulesDto {
@@ -31080,7 +31038,7 @@ export interface ResourceCalendarPeriodDto {
31080
31038
  }
31081
31039
 
31082
31040
  export interface AddResourceCalendarPeriod {
31083
- resourceExternalId: string;
31041
+ resourceExternalIds: string[];
31084
31042
  calendarDefinitionId: string;
31085
31043
  effectiveFrom: string;
31086
31044
  targetPercent: number;
@@ -31103,14 +31061,6 @@ export interface PeriodKey {
31103
31061
  effectiveFrom: string;
31104
31062
  }
31105
31063
 
31106
- export interface BulkAddResourceCalendarPeriods {
31107
- resourceExternalIds: string[];
31108
- calendarDefinitionId: string;
31109
- effectiveFrom: string;
31110
- targetPercent: number;
31111
- comment?: string | null;
31112
- }
31113
-
31114
31064
  export interface CopyResourceCalendarPeriodRequest {
31115
31065
  targetResourceExternalId: string;
31116
31066
  effectiveFrom: string;