@ignos/api-client 20260527.135.1 → 20260527.136.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.
- package/lib/ignosportal-api.d.ts +81 -57
- package/lib/ignosportal-api.js +92 -40
- package/package.json +1 -1
- package/src/ignosportal-api.ts +175 -102
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -598,16 +598,6 @@ export interface IKpiAdminResourceClient {
|
|
|
598
598
|
updateCalendarCapacityAdmin(request: UpdateCalendarCapacity): Promise<CalendarCapacityDto>;
|
|
599
599
|
getCalendarSettings(): Promise<CalendarSettingsDto>;
|
|
600
600
|
updateCalendarSettings(cmd: UpdateCalendarSettingsCommand): Promise<CalendarSettingsDto>;
|
|
601
|
-
listShiftPlans(): Promise<ShiftPlansDto>;
|
|
602
|
-
createShiftPlan(request: CreateShiftPlan): Promise<ShiftPlanDto>;
|
|
603
|
-
updateShiftPlan(id: string, request: UpdateShiftPlanRequest): Promise<ShiftPlanDto>;
|
|
604
|
-
deleteShiftPlan(id: string): Promise<void>;
|
|
605
|
-
listShiftSettingPeriods(): Promise<ShiftSettingsDto>;
|
|
606
|
-
addShiftSettingPeriods(request: AddShiftSettingPeriods): Promise<ShiftSettingsPeriodDto[]>;
|
|
607
|
-
deleteShiftSettingPeriods(request: DeleteShiftSettingsPeriod): Promise<FileResponse>;
|
|
608
|
-
updateShiftSettingsPeriod(resourceExternalId: string, effectiveFrom: string, request: UpdateShiftSettingsPeriodRequest): Promise<ShiftSettingsPeriodDto>;
|
|
609
|
-
copyShiftSettingsPeriod(sourceResourceExternalId: string, sourceEffectiveFrom: string, request: CopyShiftSettingsPeriodRequest): Promise<ShiftSettingsPeriodDto>;
|
|
610
|
-
migrateCapacityToSettings(): Promise<MigrationResultDto>;
|
|
611
601
|
}
|
|
612
602
|
export declare class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdminResourceClient {
|
|
613
603
|
private http;
|
|
@@ -627,26 +617,45 @@ export declare class KpiAdminResourceClient extends AuthorizedApiBase implements
|
|
|
627
617
|
protected processGetCalendarSettings(response: Response): Promise<CalendarSettingsDto>;
|
|
628
618
|
updateCalendarSettings(cmd: UpdateCalendarSettingsCommand): Promise<CalendarSettingsDto>;
|
|
629
619
|
protected processUpdateCalendarSettings(response: Response): Promise<CalendarSettingsDto>;
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
620
|
+
}
|
|
621
|
+
export interface IKpiCalendarClient {
|
|
622
|
+
listCalendarDefinitions(): Promise<CalendarDefinitionsDto>;
|
|
623
|
+
createCalendarDefinition(request: CreateCalendarDefinition): Promise<CalendarDefinitionDto>;
|
|
624
|
+
updateCalendarDefinition(id: string, request: UpdateCalendarDefinitionRequest): Promise<CalendarDefinitionDto>;
|
|
625
|
+
deleteCalendarDefinition(id: string): Promise<void>;
|
|
626
|
+
listResourceCalendarPeriods(): Promise<ResourceCalendarPeriodSchedulesDto>;
|
|
627
|
+
addResourceCalendarPeriods(request: AddResourceCalendarPeriod): Promise<ResourceCalendarPeriodDto[]>;
|
|
628
|
+
deleteResourceCalendarPeriods(request: DeleteResourceCalendarPeriod): Promise<FileResponse>;
|
|
629
|
+
updateResourceCalendarPeriod(resourceExternalId: string, effectiveFrom: string, request: UpdateResourceCalendarPeriodRequest): Promise<ResourceCalendarPeriodDto>;
|
|
630
|
+
copyResourceCalendarPeriod(sourceResourceExternalId: string, sourceEffectiveFrom: string, request: CopyResourceCalendarPeriodRequest): Promise<ResourceCalendarPeriodDto>;
|
|
631
|
+
migrateCapacityToSchedules(): Promise<MigrationResultDto>;
|
|
632
|
+
}
|
|
633
|
+
export declare class KpiCalendarClient extends AuthorizedApiBase implements IKpiCalendarClient {
|
|
634
|
+
private http;
|
|
635
|
+
private baseUrl;
|
|
636
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
637
|
+
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
638
|
+
});
|
|
639
|
+
listCalendarDefinitions(): Promise<CalendarDefinitionsDto>;
|
|
640
|
+
protected processListCalendarDefinitions(response: Response): Promise<CalendarDefinitionsDto>;
|
|
641
|
+
createCalendarDefinition(request: CreateCalendarDefinition): Promise<CalendarDefinitionDto>;
|
|
642
|
+
protected processCreateCalendarDefinition(response: Response): Promise<CalendarDefinitionDto>;
|
|
643
|
+
updateCalendarDefinition(id: string, request: UpdateCalendarDefinitionRequest): Promise<CalendarDefinitionDto>;
|
|
644
|
+
protected processUpdateCalendarDefinition(response: Response): Promise<CalendarDefinitionDto>;
|
|
645
|
+
deleteCalendarDefinition(id: string): Promise<void>;
|
|
646
|
+
protected processDeleteCalendarDefinition(response: Response): Promise<void>;
|
|
647
|
+
listResourceCalendarPeriods(): Promise<ResourceCalendarPeriodSchedulesDto>;
|
|
648
|
+
protected processListResourceCalendarPeriods(response: Response): Promise<ResourceCalendarPeriodSchedulesDto>;
|
|
649
|
+
addResourceCalendarPeriods(request: AddResourceCalendarPeriod): Promise<ResourceCalendarPeriodDto[]>;
|
|
650
|
+
protected processAddResourceCalendarPeriods(response: Response): Promise<ResourceCalendarPeriodDto[]>;
|
|
651
|
+
deleteResourceCalendarPeriods(request: DeleteResourceCalendarPeriod): Promise<FileResponse>;
|
|
652
|
+
protected processDeleteResourceCalendarPeriods(response: Response): Promise<FileResponse>;
|
|
653
|
+
updateResourceCalendarPeriod(resourceExternalId: string, effectiveFrom: string, request: UpdateResourceCalendarPeriodRequest): Promise<ResourceCalendarPeriodDto>;
|
|
654
|
+
protected processUpdateResourceCalendarPeriod(response: Response): Promise<ResourceCalendarPeriodDto>;
|
|
655
|
+
copyResourceCalendarPeriod(sourceResourceExternalId: string, sourceEffectiveFrom: string, request: CopyResourceCalendarPeriodRequest): Promise<ResourceCalendarPeriodDto>;
|
|
656
|
+
protected processCopyResourceCalendarPeriod(response: Response): Promise<ResourceCalendarPeriodDto>;
|
|
657
|
+
migrateCapacityToSchedules(): Promise<MigrationResultDto>;
|
|
658
|
+
protected processMigrateCapacityToSchedules(response: Response): Promise<MigrationResultDto>;
|
|
650
659
|
}
|
|
651
660
|
export interface IKpiResourceClient {
|
|
652
661
|
getResourceKpi(resourceExternalId: string | undefined, previousPeriodStartDate: Date | undefined, startDate: Date | undefined, endDate: Date | undefined, utcOffset: number | undefined): Promise<ResourceKpiDto>;
|
|
@@ -2651,6 +2660,7 @@ export interface IInspectMatchMaterialChecksClient {
|
|
|
2651
2660
|
getMaterialCheck(id: string): Promise<ImaMaterialCheckDto>;
|
|
2652
2661
|
listMaterialChecks(request: ImaMaterialChecksPageRequestDto): Promise<PagedResultOfImaMaterialCheckLiteDto>;
|
|
2653
2662
|
processMaterialCertificate(certificatesRequest: ProcessMaterialCertificate): Promise<void>;
|
|
2663
|
+
generateReport(request: ImaMaterialChecksReportRequestDto): Promise<FileResponse>;
|
|
2654
2664
|
}
|
|
2655
2665
|
export declare class InspectMatchMaterialChecksClient extends AuthorizedApiBase implements IInspectMatchMaterialChecksClient {
|
|
2656
2666
|
private http;
|
|
@@ -2664,6 +2674,8 @@ export declare class InspectMatchMaterialChecksClient extends AuthorizedApiBase
|
|
|
2664
2674
|
protected processListMaterialChecks(response: Response): Promise<PagedResultOfImaMaterialCheckLiteDto>;
|
|
2665
2675
|
processMaterialCertificate(certificatesRequest: ProcessMaterialCertificate): Promise<void>;
|
|
2666
2676
|
protected processProcessMaterialCertificate(response: Response): Promise<void>;
|
|
2677
|
+
generateReport(request: ImaMaterialChecksReportRequestDto): Promise<FileResponse>;
|
|
2678
|
+
protected processGenerateReport(response: Response): Promise<FileResponse>;
|
|
2667
2679
|
}
|
|
2668
2680
|
export interface IInspectMatchPurchaseOrderClient {
|
|
2669
2681
|
searchPurchaseOrders(input: string | undefined): Promise<PurchaseOrderMaterialSearchResultsDto>;
|
|
@@ -4153,11 +4165,11 @@ export interface UpdateCalendarSettingsCommand {
|
|
|
4153
4165
|
holidayHours?: number;
|
|
4154
4166
|
defaultPerformancePercent?: number | null;
|
|
4155
4167
|
}
|
|
4156
|
-
export interface
|
|
4157
|
-
active:
|
|
4158
|
-
archived:
|
|
4168
|
+
export interface CalendarDefinitionsDto {
|
|
4169
|
+
active: CalendarDefinitionDto[];
|
|
4170
|
+
archived: CalendarDefinitionDto[];
|
|
4159
4171
|
}
|
|
4160
|
-
export interface
|
|
4172
|
+
export interface CalendarDefinitionDto {
|
|
4161
4173
|
id: string;
|
|
4162
4174
|
name: string;
|
|
4163
4175
|
hoursPerWeekday: {
|
|
@@ -4167,62 +4179,62 @@ export interface ShiftPlanDto {
|
|
|
4167
4179
|
updatedBy?: string | null;
|
|
4168
4180
|
isArchived?: boolean;
|
|
4169
4181
|
}
|
|
4170
|
-
export interface
|
|
4182
|
+
export interface CreateCalendarDefinition {
|
|
4171
4183
|
name: string;
|
|
4172
4184
|
hoursPerWeekday: {
|
|
4173
4185
|
[key in DayOfWeek]?: number;
|
|
4174
4186
|
};
|
|
4175
4187
|
}
|
|
4176
|
-
export interface
|
|
4188
|
+
export interface UpdateCalendarDefinitionRequest {
|
|
4177
4189
|
name?: string | null;
|
|
4178
4190
|
hoursPerWeekday?: {
|
|
4179
4191
|
[key in DayOfWeek]?: number;
|
|
4180
4192
|
} | null;
|
|
4181
4193
|
unarchive?: boolean | null;
|
|
4182
4194
|
}
|
|
4183
|
-
export interface
|
|
4184
|
-
groups:
|
|
4185
|
-
ungroupedResources:
|
|
4195
|
+
export interface ResourceCalendarPeriodSchedulesDto {
|
|
4196
|
+
groups: ResourceCalendarPeriodGroupDto[];
|
|
4197
|
+
ungroupedResources: ResourceCalendarPeriodsDto[];
|
|
4186
4198
|
}
|
|
4187
|
-
export interface
|
|
4199
|
+
export interface ResourceCalendarPeriodGroupDto {
|
|
4188
4200
|
resourceGroupName: string;
|
|
4189
|
-
resources:
|
|
4201
|
+
resources: ResourceCalendarPeriodsDto[];
|
|
4190
4202
|
}
|
|
4191
|
-
export interface
|
|
4203
|
+
export interface ResourceCalendarPeriodsDto {
|
|
4192
4204
|
resourceExternalId: string;
|
|
4193
4205
|
resourceName: string;
|
|
4194
|
-
periods:
|
|
4206
|
+
periods: ResourceCalendarPeriodDto[];
|
|
4195
4207
|
}
|
|
4196
|
-
export interface
|
|
4208
|
+
export interface ResourceCalendarPeriodDto {
|
|
4197
4209
|
resourceExternalId: string;
|
|
4198
|
-
|
|
4199
|
-
|
|
4210
|
+
calendarDefinitionId: string;
|
|
4211
|
+
calendarDefinitionName: string;
|
|
4200
4212
|
effectiveFrom: string;
|
|
4201
4213
|
effectiveTo?: string | null;
|
|
4202
4214
|
targetPercent: number;
|
|
4203
4215
|
comment?: string | null;
|
|
4204
4216
|
}
|
|
4205
|
-
export interface
|
|
4217
|
+
export interface AddResourceCalendarPeriod {
|
|
4206
4218
|
resourceExternalIds: string[];
|
|
4207
|
-
|
|
4219
|
+
calendarDefinitionId: string;
|
|
4208
4220
|
effectiveFrom: string;
|
|
4209
4221
|
targetPercent: number;
|
|
4210
4222
|
comment?: string | null;
|
|
4211
4223
|
}
|
|
4212
|
-
export interface
|
|
4213
|
-
|
|
4224
|
+
export interface UpdateResourceCalendarPeriodRequest {
|
|
4225
|
+
calendarDefinitionId?: string | null;
|
|
4214
4226
|
targetPercent?: number | null;
|
|
4215
4227
|
newEffectiveFrom?: string | null;
|
|
4216
4228
|
comment?: string | null;
|
|
4217
4229
|
}
|
|
4218
|
-
export interface
|
|
4230
|
+
export interface DeleteResourceCalendarPeriod {
|
|
4219
4231
|
periods: PeriodKey[];
|
|
4220
4232
|
}
|
|
4221
4233
|
export interface PeriodKey {
|
|
4222
4234
|
resourceExternalId: string;
|
|
4223
4235
|
effectiveFrom: string;
|
|
4224
4236
|
}
|
|
4225
|
-
export interface
|
|
4237
|
+
export interface CopyResourceCalendarPeriodRequest {
|
|
4226
4238
|
targetResourceExternalId: string;
|
|
4227
4239
|
effectiveFrom: string;
|
|
4228
4240
|
}
|
|
@@ -7982,6 +7994,10 @@ export interface ImaMaterialCheckDto {
|
|
|
7982
7994
|
updatedById: string;
|
|
7983
7995
|
updatedByName: string;
|
|
7984
7996
|
isDeleted: boolean;
|
|
7997
|
+
reportCreatedBy?: string | null;
|
|
7998
|
+
reportCreatedById?: string | null;
|
|
7999
|
+
reportCreatedByName?: string | null;
|
|
8000
|
+
reportCreated?: Date | null;
|
|
7985
8001
|
certificateTypeResults: ImaCertificateTypeResultsDto;
|
|
7986
8002
|
specificationResults: ImaSpecificationResultsDto;
|
|
7987
8003
|
}
|
|
@@ -8280,6 +8296,10 @@ export interface ImaMaterialCheckLiteDto {
|
|
|
8280
8296
|
updatedById: string;
|
|
8281
8297
|
updatedByName: string;
|
|
8282
8298
|
isDeleted?: boolean;
|
|
8299
|
+
reportCreatedBy?: string | null;
|
|
8300
|
+
reportCreatedById?: string | null;
|
|
8301
|
+
reportCreatedByName?: string | null;
|
|
8302
|
+
reportCreated?: Date | null;
|
|
8283
8303
|
}
|
|
8284
8304
|
export interface ImaMaterialChecksPageRequestDto {
|
|
8285
8305
|
pageSize?: number | null;
|
|
@@ -8321,11 +8341,9 @@ export interface ProcessMaterialCertificate {
|
|
|
8321
8341
|
export interface UploadFileCdfDto {
|
|
8322
8342
|
id: number;
|
|
8323
8343
|
}
|
|
8324
|
-
export interface
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
export interface PurchaseOrderMaterialLinesDto {
|
|
8328
|
-
lines: number[];
|
|
8344
|
+
export interface ImaMaterialChecksReportRequestDto {
|
|
8345
|
+
materialCheck?: ImaMaterialCheckDto;
|
|
8346
|
+
purchaseOrder?: PurchaseOrderMaterialLineDetailsDto | null;
|
|
8329
8347
|
}
|
|
8330
8348
|
export interface PurchaseOrderMaterialLineDetailsDto {
|
|
8331
8349
|
companyId: string;
|
|
@@ -8360,6 +8378,12 @@ export interface User {
|
|
|
8360
8378
|
upn?: string | null;
|
|
8361
8379
|
email?: string | null;
|
|
8362
8380
|
}
|
|
8381
|
+
export interface PurchaseOrderMaterialSearchResultsDto {
|
|
8382
|
+
purchaseOrders: string[];
|
|
8383
|
+
}
|
|
8384
|
+
export interface PurchaseOrderMaterialLinesDto {
|
|
8385
|
+
lines: number[];
|
|
8386
|
+
}
|
|
8363
8387
|
export interface ImaSpecificationDto extends ImaCdfEntityReadBase {
|
|
8364
8388
|
specificationId: string;
|
|
8365
8389
|
version: number;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -4515,8 +4515,15 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4515
4515
|
}
|
|
4516
4516
|
return Promise.resolve(null);
|
|
4517
4517
|
}
|
|
4518
|
-
|
|
4519
|
-
|
|
4518
|
+
}
|
|
4519
|
+
export class KpiCalendarClient extends AuthorizedApiBase {
|
|
4520
|
+
constructor(configuration, baseUrl, http) {
|
|
4521
|
+
super(configuration);
|
|
4522
|
+
this.http = http ? http : window;
|
|
4523
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
4524
|
+
}
|
|
4525
|
+
listCalendarDefinitions() {
|
|
4526
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-definitions";
|
|
4520
4527
|
url_ = url_.replace(/[?&]$/, "");
|
|
4521
4528
|
let options_ = {
|
|
4522
4529
|
method: "GET",
|
|
@@ -4527,10 +4534,10 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4527
4534
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4528
4535
|
return this.http.fetch(url_, transformedOptions_);
|
|
4529
4536
|
}).then((_response) => {
|
|
4530
|
-
return this.
|
|
4537
|
+
return this.processListCalendarDefinitions(_response);
|
|
4531
4538
|
});
|
|
4532
4539
|
}
|
|
4533
|
-
|
|
4540
|
+
processListCalendarDefinitions(response) {
|
|
4534
4541
|
const status = response.status;
|
|
4535
4542
|
let _headers = {};
|
|
4536
4543
|
if (response.headers && response.headers.forEach) {
|
|
@@ -4551,8 +4558,8 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4551
4558
|
}
|
|
4552
4559
|
return Promise.resolve(null);
|
|
4553
4560
|
}
|
|
4554
|
-
|
|
4555
|
-
let url_ = this.baseUrl + "/
|
|
4561
|
+
createCalendarDefinition(request) {
|
|
4562
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-definitions";
|
|
4556
4563
|
url_ = url_.replace(/[?&]$/, "");
|
|
4557
4564
|
const content_ = JSON.stringify(request);
|
|
4558
4565
|
let options_ = {
|
|
@@ -4566,10 +4573,10 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4566
4573
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4567
4574
|
return this.http.fetch(url_, transformedOptions_);
|
|
4568
4575
|
}).then((_response) => {
|
|
4569
|
-
return this.
|
|
4576
|
+
return this.processCreateCalendarDefinition(_response);
|
|
4570
4577
|
});
|
|
4571
4578
|
}
|
|
4572
|
-
|
|
4579
|
+
processCreateCalendarDefinition(response) {
|
|
4573
4580
|
const status = response.status;
|
|
4574
4581
|
let _headers = {};
|
|
4575
4582
|
if (response.headers && response.headers.forEach) {
|
|
@@ -4590,8 +4597,8 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4590
4597
|
}
|
|
4591
4598
|
return Promise.resolve(null);
|
|
4592
4599
|
}
|
|
4593
|
-
|
|
4594
|
-
let url_ = this.baseUrl + "/
|
|
4600
|
+
updateCalendarDefinition(id, request) {
|
|
4601
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-definitions/{id}";
|
|
4595
4602
|
if (id === undefined || id === null)
|
|
4596
4603
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4597
4604
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -4608,10 +4615,10 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4608
4615
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4609
4616
|
return this.http.fetch(url_, transformedOptions_);
|
|
4610
4617
|
}).then((_response) => {
|
|
4611
|
-
return this.
|
|
4618
|
+
return this.processUpdateCalendarDefinition(_response);
|
|
4612
4619
|
});
|
|
4613
4620
|
}
|
|
4614
|
-
|
|
4621
|
+
processUpdateCalendarDefinition(response) {
|
|
4615
4622
|
const status = response.status;
|
|
4616
4623
|
let _headers = {};
|
|
4617
4624
|
if (response.headers && response.headers.forEach) {
|
|
@@ -4632,8 +4639,8 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4632
4639
|
}
|
|
4633
4640
|
return Promise.resolve(null);
|
|
4634
4641
|
}
|
|
4635
|
-
|
|
4636
|
-
let url_ = this.baseUrl + "/
|
|
4642
|
+
deleteCalendarDefinition(id) {
|
|
4643
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-definitions/{id}";
|
|
4637
4644
|
if (id === undefined || id === null)
|
|
4638
4645
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4639
4646
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -4645,10 +4652,10 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4645
4652
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4646
4653
|
return this.http.fetch(url_, transformedOptions_);
|
|
4647
4654
|
}).then((_response) => {
|
|
4648
|
-
return this.
|
|
4655
|
+
return this.processDeleteCalendarDefinition(_response);
|
|
4649
4656
|
});
|
|
4650
4657
|
}
|
|
4651
|
-
|
|
4658
|
+
processDeleteCalendarDefinition(response) {
|
|
4652
4659
|
const status = response.status;
|
|
4653
4660
|
let _headers = {};
|
|
4654
4661
|
if (response.headers && response.headers.forEach) {
|
|
@@ -4667,8 +4674,8 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4667
4674
|
}
|
|
4668
4675
|
return Promise.resolve(null);
|
|
4669
4676
|
}
|
|
4670
|
-
|
|
4671
|
-
let url_ = this.baseUrl + "/
|
|
4677
|
+
listResourceCalendarPeriods() {
|
|
4678
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods";
|
|
4672
4679
|
url_ = url_.replace(/[?&]$/, "");
|
|
4673
4680
|
let options_ = {
|
|
4674
4681
|
method: "GET",
|
|
@@ -4679,10 +4686,10 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4679
4686
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4680
4687
|
return this.http.fetch(url_, transformedOptions_);
|
|
4681
4688
|
}).then((_response) => {
|
|
4682
|
-
return this.
|
|
4689
|
+
return this.processListResourceCalendarPeriods(_response);
|
|
4683
4690
|
});
|
|
4684
4691
|
}
|
|
4685
|
-
|
|
4692
|
+
processListResourceCalendarPeriods(response) {
|
|
4686
4693
|
const status = response.status;
|
|
4687
4694
|
let _headers = {};
|
|
4688
4695
|
if (response.headers && response.headers.forEach) {
|
|
@@ -4703,8 +4710,8 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4703
4710
|
}
|
|
4704
4711
|
return Promise.resolve(null);
|
|
4705
4712
|
}
|
|
4706
|
-
|
|
4707
|
-
let url_ = this.baseUrl + "/
|
|
4713
|
+
addResourceCalendarPeriods(request) {
|
|
4714
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods";
|
|
4708
4715
|
url_ = url_.replace(/[?&]$/, "");
|
|
4709
4716
|
const content_ = JSON.stringify(request);
|
|
4710
4717
|
let options_ = {
|
|
@@ -4718,10 +4725,10 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4718
4725
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4719
4726
|
return this.http.fetch(url_, transformedOptions_);
|
|
4720
4727
|
}).then((_response) => {
|
|
4721
|
-
return this.
|
|
4728
|
+
return this.processAddResourceCalendarPeriods(_response);
|
|
4722
4729
|
});
|
|
4723
4730
|
}
|
|
4724
|
-
|
|
4731
|
+
processAddResourceCalendarPeriods(response) {
|
|
4725
4732
|
const status = response.status;
|
|
4726
4733
|
let _headers = {};
|
|
4727
4734
|
if (response.headers && response.headers.forEach) {
|
|
@@ -4742,8 +4749,8 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4742
4749
|
}
|
|
4743
4750
|
return Promise.resolve(null);
|
|
4744
4751
|
}
|
|
4745
|
-
|
|
4746
|
-
let url_ = this.baseUrl + "/
|
|
4752
|
+
deleteResourceCalendarPeriods(request) {
|
|
4753
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods";
|
|
4747
4754
|
url_ = url_.replace(/[?&]$/, "");
|
|
4748
4755
|
const content_ = JSON.stringify(request);
|
|
4749
4756
|
let options_ = {
|
|
@@ -4757,10 +4764,10 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4757
4764
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4758
4765
|
return this.http.fetch(url_, transformedOptions_);
|
|
4759
4766
|
}).then((_response) => {
|
|
4760
|
-
return this.
|
|
4767
|
+
return this.processDeleteResourceCalendarPeriods(_response);
|
|
4761
4768
|
});
|
|
4762
4769
|
}
|
|
4763
|
-
|
|
4770
|
+
processDeleteResourceCalendarPeriods(response) {
|
|
4764
4771
|
const status = response.status;
|
|
4765
4772
|
let _headers = {};
|
|
4766
4773
|
if (response.headers && response.headers.forEach) {
|
|
@@ -4787,8 +4794,8 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4787
4794
|
}
|
|
4788
4795
|
return Promise.resolve(null);
|
|
4789
4796
|
}
|
|
4790
|
-
|
|
4791
|
-
let url_ = this.baseUrl + "/
|
|
4797
|
+
updateResourceCalendarPeriod(resourceExternalId, effectiveFrom, request) {
|
|
4798
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods/{resourceExternalId}/{effectiveFrom}";
|
|
4792
4799
|
if (resourceExternalId === undefined || resourceExternalId === null)
|
|
4793
4800
|
throw new globalThis.Error("The parameter 'resourceExternalId' must be defined.");
|
|
4794
4801
|
url_ = url_.replace("{resourceExternalId}", encodeURIComponent("" + resourceExternalId));
|
|
@@ -4808,10 +4815,10 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4808
4815
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4809
4816
|
return this.http.fetch(url_, transformedOptions_);
|
|
4810
4817
|
}).then((_response) => {
|
|
4811
|
-
return this.
|
|
4818
|
+
return this.processUpdateResourceCalendarPeriod(_response);
|
|
4812
4819
|
});
|
|
4813
4820
|
}
|
|
4814
|
-
|
|
4821
|
+
processUpdateResourceCalendarPeriod(response) {
|
|
4815
4822
|
const status = response.status;
|
|
4816
4823
|
let _headers = {};
|
|
4817
4824
|
if (response.headers && response.headers.forEach) {
|
|
@@ -4832,8 +4839,8 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4832
4839
|
}
|
|
4833
4840
|
return Promise.resolve(null);
|
|
4834
4841
|
}
|
|
4835
|
-
|
|
4836
|
-
let url_ = this.baseUrl + "/
|
|
4842
|
+
copyResourceCalendarPeriod(sourceResourceExternalId, sourceEffectiveFrom, request) {
|
|
4843
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods/{sourceResourceExternalId}/{sourceEffectiveFrom}/copy";
|
|
4837
4844
|
if (sourceResourceExternalId === undefined || sourceResourceExternalId === null)
|
|
4838
4845
|
throw new globalThis.Error("The parameter 'sourceResourceExternalId' must be defined.");
|
|
4839
4846
|
url_ = url_.replace("{sourceResourceExternalId}", encodeURIComponent("" + sourceResourceExternalId));
|
|
@@ -4853,10 +4860,10 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4853
4860
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4854
4861
|
return this.http.fetch(url_, transformedOptions_);
|
|
4855
4862
|
}).then((_response) => {
|
|
4856
|
-
return this.
|
|
4863
|
+
return this.processCopyResourceCalendarPeriod(_response);
|
|
4857
4864
|
});
|
|
4858
4865
|
}
|
|
4859
|
-
|
|
4866
|
+
processCopyResourceCalendarPeriod(response) {
|
|
4860
4867
|
const status = response.status;
|
|
4861
4868
|
let _headers = {};
|
|
4862
4869
|
if (response.headers && response.headers.forEach) {
|
|
@@ -4877,8 +4884,8 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4877
4884
|
}
|
|
4878
4885
|
return Promise.resolve(null);
|
|
4879
4886
|
}
|
|
4880
|
-
|
|
4881
|
-
let url_ = this.baseUrl + "/
|
|
4887
|
+
migrateCapacityToSchedules() {
|
|
4888
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods/migrate-capacity";
|
|
4882
4889
|
url_ = url_.replace(/[?&]$/, "");
|
|
4883
4890
|
let options_ = {
|
|
4884
4891
|
method: "POST",
|
|
@@ -4889,10 +4896,10 @@ export class KpiAdminResourceClient extends AuthorizedApiBase {
|
|
|
4889
4896
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4890
4897
|
return this.http.fetch(url_, transformedOptions_);
|
|
4891
4898
|
}).then((_response) => {
|
|
4892
|
-
return this.
|
|
4899
|
+
return this.processMigrateCapacityToSchedules(_response);
|
|
4893
4900
|
});
|
|
4894
4901
|
}
|
|
4895
|
-
|
|
4902
|
+
processMigrateCapacityToSchedules(response) {
|
|
4896
4903
|
const status = response.status;
|
|
4897
4904
|
let _headers = {};
|
|
4898
4905
|
if (response.headers && response.headers.forEach) {
|
|
@@ -22117,6 +22124,51 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase {
|
|
|
22117
22124
|
}
|
|
22118
22125
|
return Promise.resolve(null);
|
|
22119
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/octet-stream"
|
|
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 || status === 206) {
|
|
22153
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
22154
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
22155
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
22156
|
+
if (fileName) {
|
|
22157
|
+
fileName = decodeURIComponent(fileName);
|
|
22158
|
+
}
|
|
22159
|
+
else {
|
|
22160
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
22161
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
22162
|
+
}
|
|
22163
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
22164
|
+
}
|
|
22165
|
+
else if (status !== 200 && status !== 204) {
|
|
22166
|
+
return response.text().then((_responseText) => {
|
|
22167
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22168
|
+
});
|
|
22169
|
+
}
|
|
22170
|
+
return Promise.resolve(null);
|
|
22171
|
+
}
|
|
22120
22172
|
}
|
|
22121
22173
|
export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase {
|
|
22122
22174
|
constructor(configuration, baseUrl, http) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -4633,26 +4633,6 @@ export interface IKpiAdminResourceClient {
|
|
|
4633
4633
|
getCalendarSettings(): Promise<CalendarSettingsDto>;
|
|
4634
4634
|
|
|
4635
4635
|
updateCalendarSettings(cmd: UpdateCalendarSettingsCommand): Promise<CalendarSettingsDto>;
|
|
4636
|
-
|
|
4637
|
-
listShiftPlans(): Promise<ShiftPlansDto>;
|
|
4638
|
-
|
|
4639
|
-
createShiftPlan(request: CreateShiftPlan): Promise<ShiftPlanDto>;
|
|
4640
|
-
|
|
4641
|
-
updateShiftPlan(id: string, request: UpdateShiftPlanRequest): Promise<ShiftPlanDto>;
|
|
4642
|
-
|
|
4643
|
-
deleteShiftPlan(id: string): Promise<void>;
|
|
4644
|
-
|
|
4645
|
-
listShiftSettingPeriods(): Promise<ShiftSettingsDto>;
|
|
4646
|
-
|
|
4647
|
-
addShiftSettingPeriods(request: AddShiftSettingPeriods): Promise<ShiftSettingsPeriodDto[]>;
|
|
4648
|
-
|
|
4649
|
-
deleteShiftSettingPeriods(request: DeleteShiftSettingsPeriod): Promise<FileResponse>;
|
|
4650
|
-
|
|
4651
|
-
updateShiftSettingsPeriod(resourceExternalId: string, effectiveFrom: string, request: UpdateShiftSettingsPeriodRequest): Promise<ShiftSettingsPeriodDto>;
|
|
4652
|
-
|
|
4653
|
-
copyShiftSettingsPeriod(sourceResourceExternalId: string, sourceEffectiveFrom: string, request: CopyShiftSettingsPeriodRequest): Promise<ShiftSettingsPeriodDto>;
|
|
4654
|
-
|
|
4655
|
-
migrateCapacityToSettings(): Promise<MigrationResultDto>;
|
|
4656
4636
|
}
|
|
4657
4637
|
|
|
4658
4638
|
export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdminResourceClient {
|
|
@@ -4894,9 +4874,43 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
4894
4874
|
}
|
|
4895
4875
|
return Promise.resolve<CalendarSettingsDto>(null as any);
|
|
4896
4876
|
}
|
|
4877
|
+
}
|
|
4878
|
+
|
|
4879
|
+
export interface IKpiCalendarClient {
|
|
4880
|
+
|
|
4881
|
+
listCalendarDefinitions(): Promise<CalendarDefinitionsDto>;
|
|
4882
|
+
|
|
4883
|
+
createCalendarDefinition(request: CreateCalendarDefinition): Promise<CalendarDefinitionDto>;
|
|
4884
|
+
|
|
4885
|
+
updateCalendarDefinition(id: string, request: UpdateCalendarDefinitionRequest): Promise<CalendarDefinitionDto>;
|
|
4886
|
+
|
|
4887
|
+
deleteCalendarDefinition(id: string): Promise<void>;
|
|
4888
|
+
|
|
4889
|
+
listResourceCalendarPeriods(): Promise<ResourceCalendarPeriodSchedulesDto>;
|
|
4890
|
+
|
|
4891
|
+
addResourceCalendarPeriods(request: AddResourceCalendarPeriod): Promise<ResourceCalendarPeriodDto[]>;
|
|
4892
|
+
|
|
4893
|
+
deleteResourceCalendarPeriods(request: DeleteResourceCalendarPeriod): Promise<FileResponse>;
|
|
4894
|
+
|
|
4895
|
+
updateResourceCalendarPeriod(resourceExternalId: string, effectiveFrom: string, request: UpdateResourceCalendarPeriodRequest): Promise<ResourceCalendarPeriodDto>;
|
|
4896
|
+
|
|
4897
|
+
copyResourceCalendarPeriod(sourceResourceExternalId: string, sourceEffectiveFrom: string, request: CopyResourceCalendarPeriodRequest): Promise<ResourceCalendarPeriodDto>;
|
|
4898
|
+
|
|
4899
|
+
migrateCapacityToSchedules(): Promise<MigrationResultDto>;
|
|
4900
|
+
}
|
|
4901
|
+
|
|
4902
|
+
export class KpiCalendarClient extends AuthorizedApiBase implements IKpiCalendarClient {
|
|
4903
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
4904
|
+
private baseUrl: string;
|
|
4905
|
+
|
|
4906
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
4907
|
+
super(configuration);
|
|
4908
|
+
this.http = http ? http : window as any;
|
|
4909
|
+
this.baseUrl = baseUrl ?? "";
|
|
4910
|
+
}
|
|
4897
4911
|
|
|
4898
|
-
|
|
4899
|
-
let url_ = this.baseUrl + "/
|
|
4912
|
+
listCalendarDefinitions(): Promise<CalendarDefinitionsDto> {
|
|
4913
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-definitions";
|
|
4900
4914
|
url_ = url_.replace(/[?&]$/, "");
|
|
4901
4915
|
|
|
4902
4916
|
let options_: RequestInit = {
|
|
@@ -4909,17 +4923,17 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
4909
4923
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4910
4924
|
return this.http.fetch(url_, transformedOptions_);
|
|
4911
4925
|
}).then((_response: Response) => {
|
|
4912
|
-
return this.
|
|
4926
|
+
return this.processListCalendarDefinitions(_response);
|
|
4913
4927
|
});
|
|
4914
4928
|
}
|
|
4915
4929
|
|
|
4916
|
-
protected
|
|
4930
|
+
protected processListCalendarDefinitions(response: Response): Promise<CalendarDefinitionsDto> {
|
|
4917
4931
|
const status = response.status;
|
|
4918
4932
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
4919
4933
|
if (status === 200) {
|
|
4920
4934
|
return response.text().then((_responseText) => {
|
|
4921
4935
|
let result200: any = null;
|
|
4922
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as
|
|
4936
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as CalendarDefinitionsDto;
|
|
4923
4937
|
return result200;
|
|
4924
4938
|
});
|
|
4925
4939
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -4927,11 +4941,11 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
4927
4941
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4928
4942
|
});
|
|
4929
4943
|
}
|
|
4930
|
-
return Promise.resolve<
|
|
4944
|
+
return Promise.resolve<CalendarDefinitionsDto>(null as any);
|
|
4931
4945
|
}
|
|
4932
4946
|
|
|
4933
|
-
|
|
4934
|
-
let url_ = this.baseUrl + "/
|
|
4947
|
+
createCalendarDefinition(request: CreateCalendarDefinition): Promise<CalendarDefinitionDto> {
|
|
4948
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-definitions";
|
|
4935
4949
|
url_ = url_.replace(/[?&]$/, "");
|
|
4936
4950
|
|
|
4937
4951
|
const content_ = JSON.stringify(request);
|
|
@@ -4948,17 +4962,17 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
4948
4962
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4949
4963
|
return this.http.fetch(url_, transformedOptions_);
|
|
4950
4964
|
}).then((_response: Response) => {
|
|
4951
|
-
return this.
|
|
4965
|
+
return this.processCreateCalendarDefinition(_response);
|
|
4952
4966
|
});
|
|
4953
4967
|
}
|
|
4954
4968
|
|
|
4955
|
-
protected
|
|
4969
|
+
protected processCreateCalendarDefinition(response: Response): Promise<CalendarDefinitionDto> {
|
|
4956
4970
|
const status = response.status;
|
|
4957
4971
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
4958
4972
|
if (status === 200) {
|
|
4959
4973
|
return response.text().then((_responseText) => {
|
|
4960
4974
|
let result200: any = null;
|
|
4961
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as
|
|
4975
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as CalendarDefinitionDto;
|
|
4962
4976
|
return result200;
|
|
4963
4977
|
});
|
|
4964
4978
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -4966,11 +4980,11 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
4966
4980
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4967
4981
|
});
|
|
4968
4982
|
}
|
|
4969
|
-
return Promise.resolve<
|
|
4983
|
+
return Promise.resolve<CalendarDefinitionDto>(null as any);
|
|
4970
4984
|
}
|
|
4971
4985
|
|
|
4972
|
-
|
|
4973
|
-
let url_ = this.baseUrl + "/
|
|
4986
|
+
updateCalendarDefinition(id: string, request: UpdateCalendarDefinitionRequest): Promise<CalendarDefinitionDto> {
|
|
4987
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-definitions/{id}";
|
|
4974
4988
|
if (id === undefined || id === null)
|
|
4975
4989
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
4976
4990
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -4990,17 +5004,17 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
4990
5004
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4991
5005
|
return this.http.fetch(url_, transformedOptions_);
|
|
4992
5006
|
}).then((_response: Response) => {
|
|
4993
|
-
return this.
|
|
5007
|
+
return this.processUpdateCalendarDefinition(_response);
|
|
4994
5008
|
});
|
|
4995
5009
|
}
|
|
4996
5010
|
|
|
4997
|
-
protected
|
|
5011
|
+
protected processUpdateCalendarDefinition(response: Response): Promise<CalendarDefinitionDto> {
|
|
4998
5012
|
const status = response.status;
|
|
4999
5013
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5000
5014
|
if (status === 200) {
|
|
5001
5015
|
return response.text().then((_responseText) => {
|
|
5002
5016
|
let result200: any = null;
|
|
5003
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as
|
|
5017
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as CalendarDefinitionDto;
|
|
5004
5018
|
return result200;
|
|
5005
5019
|
});
|
|
5006
5020
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -5008,11 +5022,11 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
5008
5022
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5009
5023
|
});
|
|
5010
5024
|
}
|
|
5011
|
-
return Promise.resolve<
|
|
5025
|
+
return Promise.resolve<CalendarDefinitionDto>(null as any);
|
|
5012
5026
|
}
|
|
5013
5027
|
|
|
5014
|
-
|
|
5015
|
-
let url_ = this.baseUrl + "/
|
|
5028
|
+
deleteCalendarDefinition(id: string): Promise<void> {
|
|
5029
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-definitions/{id}";
|
|
5016
5030
|
if (id === undefined || id === null)
|
|
5017
5031
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
5018
5032
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -5027,11 +5041,11 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
5027
5041
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5028
5042
|
return this.http.fetch(url_, transformedOptions_);
|
|
5029
5043
|
}).then((_response: Response) => {
|
|
5030
|
-
return this.
|
|
5044
|
+
return this.processDeleteCalendarDefinition(_response);
|
|
5031
5045
|
});
|
|
5032
5046
|
}
|
|
5033
5047
|
|
|
5034
|
-
protected
|
|
5048
|
+
protected processDeleteCalendarDefinition(response: Response): Promise<void> {
|
|
5035
5049
|
const status = response.status;
|
|
5036
5050
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5037
5051
|
if (status === 204) {
|
|
@@ -5046,8 +5060,8 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
5046
5060
|
return Promise.resolve<void>(null as any);
|
|
5047
5061
|
}
|
|
5048
5062
|
|
|
5049
|
-
|
|
5050
|
-
let url_ = this.baseUrl + "/
|
|
5063
|
+
listResourceCalendarPeriods(): Promise<ResourceCalendarPeriodSchedulesDto> {
|
|
5064
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods";
|
|
5051
5065
|
url_ = url_.replace(/[?&]$/, "");
|
|
5052
5066
|
|
|
5053
5067
|
let options_: RequestInit = {
|
|
@@ -5060,17 +5074,17 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
5060
5074
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5061
5075
|
return this.http.fetch(url_, transformedOptions_);
|
|
5062
5076
|
}).then((_response: Response) => {
|
|
5063
|
-
return this.
|
|
5077
|
+
return this.processListResourceCalendarPeriods(_response);
|
|
5064
5078
|
});
|
|
5065
5079
|
}
|
|
5066
5080
|
|
|
5067
|
-
protected
|
|
5081
|
+
protected processListResourceCalendarPeriods(response: Response): Promise<ResourceCalendarPeriodSchedulesDto> {
|
|
5068
5082
|
const status = response.status;
|
|
5069
5083
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5070
5084
|
if (status === 200) {
|
|
5071
5085
|
return response.text().then((_responseText) => {
|
|
5072
5086
|
let result200: any = null;
|
|
5073
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as
|
|
5087
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ResourceCalendarPeriodSchedulesDto;
|
|
5074
5088
|
return result200;
|
|
5075
5089
|
});
|
|
5076
5090
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -5078,11 +5092,11 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
5078
5092
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5079
5093
|
});
|
|
5080
5094
|
}
|
|
5081
|
-
return Promise.resolve<
|
|
5095
|
+
return Promise.resolve<ResourceCalendarPeriodSchedulesDto>(null as any);
|
|
5082
5096
|
}
|
|
5083
5097
|
|
|
5084
|
-
|
|
5085
|
-
let url_ = this.baseUrl + "/
|
|
5098
|
+
addResourceCalendarPeriods(request: AddResourceCalendarPeriod): Promise<ResourceCalendarPeriodDto[]> {
|
|
5099
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods";
|
|
5086
5100
|
url_ = url_.replace(/[?&]$/, "");
|
|
5087
5101
|
|
|
5088
5102
|
const content_ = JSON.stringify(request);
|
|
@@ -5099,17 +5113,17 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
5099
5113
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5100
5114
|
return this.http.fetch(url_, transformedOptions_);
|
|
5101
5115
|
}).then((_response: Response) => {
|
|
5102
|
-
return this.
|
|
5116
|
+
return this.processAddResourceCalendarPeriods(_response);
|
|
5103
5117
|
});
|
|
5104
5118
|
}
|
|
5105
5119
|
|
|
5106
|
-
protected
|
|
5120
|
+
protected processAddResourceCalendarPeriods(response: Response): Promise<ResourceCalendarPeriodDto[]> {
|
|
5107
5121
|
const status = response.status;
|
|
5108
5122
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5109
5123
|
if (status === 200) {
|
|
5110
5124
|
return response.text().then((_responseText) => {
|
|
5111
5125
|
let result200: any = null;
|
|
5112
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as
|
|
5126
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ResourceCalendarPeriodDto[];
|
|
5113
5127
|
return result200;
|
|
5114
5128
|
});
|
|
5115
5129
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -5117,11 +5131,11 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
5117
5131
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5118
5132
|
});
|
|
5119
5133
|
}
|
|
5120
|
-
return Promise.resolve<
|
|
5134
|
+
return Promise.resolve<ResourceCalendarPeriodDto[]>(null as any);
|
|
5121
5135
|
}
|
|
5122
5136
|
|
|
5123
|
-
|
|
5124
|
-
let url_ = this.baseUrl + "/
|
|
5137
|
+
deleteResourceCalendarPeriods(request: DeleteResourceCalendarPeriod): Promise<FileResponse> {
|
|
5138
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods";
|
|
5125
5139
|
url_ = url_.replace(/[?&]$/, "");
|
|
5126
5140
|
|
|
5127
5141
|
const content_ = JSON.stringify(request);
|
|
@@ -5138,11 +5152,11 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
5138
5152
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5139
5153
|
return this.http.fetch(url_, transformedOptions_);
|
|
5140
5154
|
}).then((_response: Response) => {
|
|
5141
|
-
return this.
|
|
5155
|
+
return this.processDeleteResourceCalendarPeriods(_response);
|
|
5142
5156
|
});
|
|
5143
5157
|
}
|
|
5144
5158
|
|
|
5145
|
-
protected
|
|
5159
|
+
protected processDeleteResourceCalendarPeriods(response: Response): Promise<FileResponse> {
|
|
5146
5160
|
const status = response.status;
|
|
5147
5161
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5148
5162
|
if (status === 200 || status === 206) {
|
|
@@ -5164,8 +5178,8 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
5164
5178
|
return Promise.resolve<FileResponse>(null as any);
|
|
5165
5179
|
}
|
|
5166
5180
|
|
|
5167
|
-
|
|
5168
|
-
let url_ = this.baseUrl + "/
|
|
5181
|
+
updateResourceCalendarPeriod(resourceExternalId: string, effectiveFrom: string, request: UpdateResourceCalendarPeriodRequest): Promise<ResourceCalendarPeriodDto> {
|
|
5182
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods/{resourceExternalId}/{effectiveFrom}";
|
|
5169
5183
|
if (resourceExternalId === undefined || resourceExternalId === null)
|
|
5170
5184
|
throw new globalThis.Error("The parameter 'resourceExternalId' must be defined.");
|
|
5171
5185
|
url_ = url_.replace("{resourceExternalId}", encodeURIComponent("" + resourceExternalId));
|
|
@@ -5188,17 +5202,17 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
5188
5202
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5189
5203
|
return this.http.fetch(url_, transformedOptions_);
|
|
5190
5204
|
}).then((_response: Response) => {
|
|
5191
|
-
return this.
|
|
5205
|
+
return this.processUpdateResourceCalendarPeriod(_response);
|
|
5192
5206
|
});
|
|
5193
5207
|
}
|
|
5194
5208
|
|
|
5195
|
-
protected
|
|
5209
|
+
protected processUpdateResourceCalendarPeriod(response: Response): Promise<ResourceCalendarPeriodDto> {
|
|
5196
5210
|
const status = response.status;
|
|
5197
5211
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5198
5212
|
if (status === 200) {
|
|
5199
5213
|
return response.text().then((_responseText) => {
|
|
5200
5214
|
let result200: any = null;
|
|
5201
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as
|
|
5215
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ResourceCalendarPeriodDto;
|
|
5202
5216
|
return result200;
|
|
5203
5217
|
});
|
|
5204
5218
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -5206,11 +5220,11 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
5206
5220
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5207
5221
|
});
|
|
5208
5222
|
}
|
|
5209
|
-
return Promise.resolve<
|
|
5223
|
+
return Promise.resolve<ResourceCalendarPeriodDto>(null as any);
|
|
5210
5224
|
}
|
|
5211
5225
|
|
|
5212
|
-
|
|
5213
|
-
let url_ = this.baseUrl + "/
|
|
5226
|
+
copyResourceCalendarPeriod(sourceResourceExternalId: string, sourceEffectiveFrom: string, request: CopyResourceCalendarPeriodRequest): Promise<ResourceCalendarPeriodDto> {
|
|
5227
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods/{sourceResourceExternalId}/{sourceEffectiveFrom}/copy";
|
|
5214
5228
|
if (sourceResourceExternalId === undefined || sourceResourceExternalId === null)
|
|
5215
5229
|
throw new globalThis.Error("The parameter 'sourceResourceExternalId' must be defined.");
|
|
5216
5230
|
url_ = url_.replace("{sourceResourceExternalId}", encodeURIComponent("" + sourceResourceExternalId));
|
|
@@ -5233,17 +5247,17 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
5233
5247
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5234
5248
|
return this.http.fetch(url_, transformedOptions_);
|
|
5235
5249
|
}).then((_response: Response) => {
|
|
5236
|
-
return this.
|
|
5250
|
+
return this.processCopyResourceCalendarPeriod(_response);
|
|
5237
5251
|
});
|
|
5238
5252
|
}
|
|
5239
5253
|
|
|
5240
|
-
protected
|
|
5254
|
+
protected processCopyResourceCalendarPeriod(response: Response): Promise<ResourceCalendarPeriodDto> {
|
|
5241
5255
|
const status = response.status;
|
|
5242
5256
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5243
5257
|
if (status === 200) {
|
|
5244
5258
|
return response.text().then((_responseText) => {
|
|
5245
5259
|
let result200: any = null;
|
|
5246
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as
|
|
5260
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ResourceCalendarPeriodDto;
|
|
5247
5261
|
return result200;
|
|
5248
5262
|
});
|
|
5249
5263
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -5251,11 +5265,11 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
5251
5265
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5252
5266
|
});
|
|
5253
5267
|
}
|
|
5254
|
-
return Promise.resolve<
|
|
5268
|
+
return Promise.resolve<ResourceCalendarPeriodDto>(null as any);
|
|
5255
5269
|
}
|
|
5256
5270
|
|
|
5257
|
-
|
|
5258
|
-
let url_ = this.baseUrl + "/
|
|
5271
|
+
migrateCapacityToSchedules(): Promise<MigrationResultDto> {
|
|
5272
|
+
let url_ = this.baseUrl + "/resources/kpi/calendar-periods/migrate-capacity";
|
|
5259
5273
|
url_ = url_.replace(/[?&]$/, "");
|
|
5260
5274
|
|
|
5261
5275
|
let options_: RequestInit = {
|
|
@@ -5268,11 +5282,11 @@ export class KpiAdminResourceClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
5268
5282
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5269
5283
|
return this.http.fetch(url_, transformedOptions_);
|
|
5270
5284
|
}).then((_response: Response) => {
|
|
5271
|
-
return this.
|
|
5285
|
+
return this.processMigrateCapacityToSchedules(_response);
|
|
5272
5286
|
});
|
|
5273
5287
|
}
|
|
5274
5288
|
|
|
5275
|
-
protected
|
|
5289
|
+
protected processMigrateCapacityToSchedules(response: Response): Promise<MigrationResultDto> {
|
|
5276
5290
|
const status = response.status;
|
|
5277
5291
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5278
5292
|
if (status === 200) {
|
|
@@ -23526,6 +23540,8 @@ export interface IInspectMatchMaterialChecksClient {
|
|
|
23526
23540
|
listMaterialChecks(request: ImaMaterialChecksPageRequestDto): Promise<PagedResultOfImaMaterialCheckLiteDto>;
|
|
23527
23541
|
|
|
23528
23542
|
processMaterialCertificate(certificatesRequest: ProcessMaterialCertificate): Promise<void>;
|
|
23543
|
+
|
|
23544
|
+
generateReport(request: ImaMaterialChecksReportRequestDto): Promise<FileResponse>;
|
|
23529
23545
|
}
|
|
23530
23546
|
|
|
23531
23547
|
export class InspectMatchMaterialChecksClient extends AuthorizedApiBase implements IInspectMatchMaterialChecksClient {
|
|
@@ -23650,6 +23666,50 @@ export class InspectMatchMaterialChecksClient extends AuthorizedApiBase implemen
|
|
|
23650
23666
|
}
|
|
23651
23667
|
return Promise.resolve<void>(null as any);
|
|
23652
23668
|
}
|
|
23669
|
+
|
|
23670
|
+
generateReport(request: ImaMaterialChecksReportRequestDto): Promise<FileResponse> {
|
|
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/octet-stream"
|
|
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<FileResponse> {
|
|
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 || status === 206) {
|
|
23696
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
23697
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
23698
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
23699
|
+
if (fileName) {
|
|
23700
|
+
fileName = decodeURIComponent(fileName);
|
|
23701
|
+
} else {
|
|
23702
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
23703
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
23704
|
+
}
|
|
23705
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
23706
|
+
} else if (status !== 200 && status !== 204) {
|
|
23707
|
+
return response.text().then((_responseText) => {
|
|
23708
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23709
|
+
});
|
|
23710
|
+
}
|
|
23711
|
+
return Promise.resolve<FileResponse>(null as any);
|
|
23712
|
+
}
|
|
23653
23713
|
}
|
|
23654
23714
|
|
|
23655
23715
|
export interface IInspectMatchPurchaseOrderClient {
|
|
@@ -30972,12 +31032,12 @@ export interface UpdateCalendarSettingsCommand {
|
|
|
30972
31032
|
defaultPerformancePercent?: number | null;
|
|
30973
31033
|
}
|
|
30974
31034
|
|
|
30975
|
-
export interface
|
|
30976
|
-
active:
|
|
30977
|
-
archived:
|
|
31035
|
+
export interface CalendarDefinitionsDto {
|
|
31036
|
+
active: CalendarDefinitionDto[];
|
|
31037
|
+
archived: CalendarDefinitionDto[];
|
|
30978
31038
|
}
|
|
30979
31039
|
|
|
30980
|
-
export interface
|
|
31040
|
+
export interface CalendarDefinitionDto {
|
|
30981
31041
|
id: string;
|
|
30982
31042
|
name: string;
|
|
30983
31043
|
hoursPerWeekday: { [key in DayOfWeek]?: number; };
|
|
@@ -30986,59 +31046,59 @@ export interface ShiftPlanDto {
|
|
|
30986
31046
|
isArchived?: boolean;
|
|
30987
31047
|
}
|
|
30988
31048
|
|
|
30989
|
-
export interface
|
|
31049
|
+
export interface CreateCalendarDefinition {
|
|
30990
31050
|
name: string;
|
|
30991
31051
|
hoursPerWeekday: { [key in DayOfWeek]?: number; };
|
|
30992
31052
|
}
|
|
30993
31053
|
|
|
30994
|
-
export interface
|
|
31054
|
+
export interface UpdateCalendarDefinitionRequest {
|
|
30995
31055
|
name?: string | null;
|
|
30996
31056
|
hoursPerWeekday?: { [key in DayOfWeek]?: number; } | null;
|
|
30997
31057
|
unarchive?: boolean | null;
|
|
30998
31058
|
}
|
|
30999
31059
|
|
|
31000
|
-
export interface
|
|
31001
|
-
groups:
|
|
31002
|
-
ungroupedResources:
|
|
31060
|
+
export interface ResourceCalendarPeriodSchedulesDto {
|
|
31061
|
+
groups: ResourceCalendarPeriodGroupDto[];
|
|
31062
|
+
ungroupedResources: ResourceCalendarPeriodsDto[];
|
|
31003
31063
|
}
|
|
31004
31064
|
|
|
31005
|
-
export interface
|
|
31065
|
+
export interface ResourceCalendarPeriodGroupDto {
|
|
31006
31066
|
resourceGroupName: string;
|
|
31007
|
-
resources:
|
|
31067
|
+
resources: ResourceCalendarPeriodsDto[];
|
|
31008
31068
|
}
|
|
31009
31069
|
|
|
31010
|
-
export interface
|
|
31070
|
+
export interface ResourceCalendarPeriodsDto {
|
|
31011
31071
|
resourceExternalId: string;
|
|
31012
31072
|
resourceName: string;
|
|
31013
|
-
periods:
|
|
31073
|
+
periods: ResourceCalendarPeriodDto[];
|
|
31014
31074
|
}
|
|
31015
31075
|
|
|
31016
|
-
export interface
|
|
31076
|
+
export interface ResourceCalendarPeriodDto {
|
|
31017
31077
|
resourceExternalId: string;
|
|
31018
|
-
|
|
31019
|
-
|
|
31078
|
+
calendarDefinitionId: string;
|
|
31079
|
+
calendarDefinitionName: string;
|
|
31020
31080
|
effectiveFrom: string;
|
|
31021
31081
|
effectiveTo?: string | null;
|
|
31022
31082
|
targetPercent: number;
|
|
31023
31083
|
comment?: string | null;
|
|
31024
31084
|
}
|
|
31025
31085
|
|
|
31026
|
-
export interface
|
|
31086
|
+
export interface AddResourceCalendarPeriod {
|
|
31027
31087
|
resourceExternalIds: string[];
|
|
31028
|
-
|
|
31088
|
+
calendarDefinitionId: string;
|
|
31029
31089
|
effectiveFrom: string;
|
|
31030
31090
|
targetPercent: number;
|
|
31031
31091
|
comment?: string | null;
|
|
31032
31092
|
}
|
|
31033
31093
|
|
|
31034
|
-
export interface
|
|
31035
|
-
|
|
31094
|
+
export interface UpdateResourceCalendarPeriodRequest {
|
|
31095
|
+
calendarDefinitionId?: string | null;
|
|
31036
31096
|
targetPercent?: number | null;
|
|
31037
31097
|
newEffectiveFrom?: string | null;
|
|
31038
31098
|
comment?: string | null;
|
|
31039
31099
|
}
|
|
31040
31100
|
|
|
31041
|
-
export interface
|
|
31101
|
+
export interface DeleteResourceCalendarPeriod {
|
|
31042
31102
|
periods: PeriodKey[];
|
|
31043
31103
|
}
|
|
31044
31104
|
|
|
@@ -31047,7 +31107,7 @@ export interface PeriodKey {
|
|
|
31047
31107
|
effectiveFrom: string;
|
|
31048
31108
|
}
|
|
31049
31109
|
|
|
31050
|
-
export interface
|
|
31110
|
+
export interface CopyResourceCalendarPeriodRequest {
|
|
31051
31111
|
targetResourceExternalId: string;
|
|
31052
31112
|
effectiveFrom: string;
|
|
31053
31113
|
}
|
|
@@ -35321,6 +35381,10 @@ export interface ImaMaterialCheckDto {
|
|
|
35321
35381
|
updatedById: string;
|
|
35322
35382
|
updatedByName: string;
|
|
35323
35383
|
isDeleted: boolean;
|
|
35384
|
+
reportCreatedBy?: string | null;
|
|
35385
|
+
reportCreatedById?: string | null;
|
|
35386
|
+
reportCreatedByName?: string | null;
|
|
35387
|
+
reportCreated?: Date | null;
|
|
35324
35388
|
certificateTypeResults: ImaCertificateTypeResultsDto;
|
|
35325
35389
|
specificationResults: ImaSpecificationResultsDto;
|
|
35326
35390
|
}
|
|
@@ -35660,6 +35724,10 @@ export interface ImaMaterialCheckLiteDto {
|
|
|
35660
35724
|
updatedById: string;
|
|
35661
35725
|
updatedByName: string;
|
|
35662
35726
|
isDeleted?: boolean;
|
|
35727
|
+
reportCreatedBy?: string | null;
|
|
35728
|
+
reportCreatedById?: string | null;
|
|
35729
|
+
reportCreatedByName?: string | null;
|
|
35730
|
+
reportCreated?: Date | null;
|
|
35663
35731
|
}
|
|
35664
35732
|
|
|
35665
35733
|
export interface ImaMaterialChecksPageRequestDto {
|
|
@@ -35708,12 +35776,9 @@ export interface UploadFileCdfDto {
|
|
|
35708
35776
|
id: number;
|
|
35709
35777
|
}
|
|
35710
35778
|
|
|
35711
|
-
export interface
|
|
35712
|
-
|
|
35713
|
-
|
|
35714
|
-
|
|
35715
|
-
export interface PurchaseOrderMaterialLinesDto {
|
|
35716
|
-
lines: number[];
|
|
35779
|
+
export interface ImaMaterialChecksReportRequestDto {
|
|
35780
|
+
materialCheck?: ImaMaterialCheckDto;
|
|
35781
|
+
purchaseOrder?: PurchaseOrderMaterialLineDetailsDto | null;
|
|
35717
35782
|
}
|
|
35718
35783
|
|
|
35719
35784
|
export interface PurchaseOrderMaterialLineDetailsDto {
|
|
@@ -35752,6 +35817,14 @@ export interface User {
|
|
|
35752
35817
|
email?: string | null;
|
|
35753
35818
|
}
|
|
35754
35819
|
|
|
35820
|
+
export interface PurchaseOrderMaterialSearchResultsDto {
|
|
35821
|
+
purchaseOrders: string[];
|
|
35822
|
+
}
|
|
35823
|
+
|
|
35824
|
+
export interface PurchaseOrderMaterialLinesDto {
|
|
35825
|
+
lines: number[];
|
|
35826
|
+
}
|
|
35827
|
+
|
|
35755
35828
|
export interface ImaSpecificationDto extends ImaCdfEntityReadBase {
|
|
35756
35829
|
specificationId: string;
|
|
35757
35830
|
version: number;
|