@ignos/api-client 20250702.0.12045-alpha → 20250703.0.12052-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 +77 -24
- package/lib/ignosportal-api.js +205 -18
- package/package.json +1 -1
- package/src/ignosportal-api.ts +268 -38
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -787,8 +787,10 @@ export declare class DowntimeReasonsClient extends AuthorizedApiBase implements
|
|
|
787
787
|
export interface IKpiAdminClient {
|
|
788
788
|
getMachineCapacityAdmin(): Promise<MachineGroupCapacityDto[]>;
|
|
789
789
|
updateMachineCapacityAdmin(request: UpdateMachinesCapacity): Promise<MachineCapacityDto>;
|
|
790
|
-
|
|
791
|
-
|
|
790
|
+
getCalendarCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalendarDayDto[]>;
|
|
791
|
+
updateCalendarCapacityAdmin(request: UpdateCalendarCapacity): Promise<CalendarCapacityDto>;
|
|
792
|
+
getCalendarSettings(): Promise<CalendarSettingsDto>;
|
|
793
|
+
updateCalendarSettings(cmd: UpdateCalendarSettingsCommand): Promise<CalendarSettingsDto>;
|
|
792
794
|
}
|
|
793
795
|
export declare class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient {
|
|
794
796
|
private http;
|
|
@@ -801,10 +803,14 @@ export declare class KpiAdminClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
801
803
|
protected processGetMachineCapacityAdmin(response: Response): Promise<MachineGroupCapacityDto[]>;
|
|
802
804
|
updateMachineCapacityAdmin(request: UpdateMachinesCapacity): Promise<MachineCapacityDto>;
|
|
803
805
|
protected processUpdateMachineCapacityAdmin(response: Response): Promise<MachineCapacityDto>;
|
|
804
|
-
|
|
805
|
-
protected
|
|
806
|
-
|
|
807
|
-
protected
|
|
806
|
+
getCalendarCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalendarDayDto[]>;
|
|
807
|
+
protected processGetCalendarCapacityAdmin(response: Response): Promise<CalendarDayDto[]>;
|
|
808
|
+
updateCalendarCapacityAdmin(request: UpdateCalendarCapacity): Promise<CalendarCapacityDto>;
|
|
809
|
+
protected processUpdateCalendarCapacityAdmin(response: Response): Promise<CalendarCapacityDto>;
|
|
810
|
+
getCalendarSettings(): Promise<CalendarSettingsDto>;
|
|
811
|
+
protected processGetCalendarSettings(response: Response): Promise<CalendarSettingsDto>;
|
|
812
|
+
updateCalendarSettings(cmd: UpdateCalendarSettingsCommand): Promise<CalendarSettingsDto>;
|
|
813
|
+
protected processUpdateCalendarSettings(response: Response): Promise<CalendarSettingsDto>;
|
|
808
814
|
}
|
|
809
815
|
export interface IKpiClient {
|
|
810
816
|
getMachineKpi(machineExternalId: string | undefined, previousPeriodStartDate: Date | undefined, startDate: Date | undefined, endDate: Date | undefined, utcOffset: number | undefined): Promise<MachineKpiDto>;
|
|
@@ -5851,30 +5857,81 @@ export interface IUpdateMachinesCapacity {
|
|
|
5851
5857
|
utilizationPercent?: number | null;
|
|
5852
5858
|
capacity?: MachineCapacitySettingsDto[] | null;
|
|
5853
5859
|
}
|
|
5854
|
-
export declare class
|
|
5860
|
+
export declare class CalendarDayDto implements ICalendarDayDto {
|
|
5855
5861
|
date?: Date;
|
|
5856
|
-
dayCapacity?:
|
|
5857
|
-
|
|
5862
|
+
dayCapacity?: CalendarDayCapacityDto;
|
|
5863
|
+
capacityHours?: number;
|
|
5864
|
+
constructor(data?: ICalendarDayDto);
|
|
5858
5865
|
init(_data?: any): void;
|
|
5859
|
-
static fromJS(data: any):
|
|
5866
|
+
static fromJS(data: any): CalendarDayDto;
|
|
5860
5867
|
toJSON(data?: any): any;
|
|
5861
5868
|
}
|
|
5862
|
-
export interface
|
|
5869
|
+
export interface ICalendarDayDto {
|
|
5863
5870
|
date?: Date;
|
|
5864
|
-
dayCapacity?:
|
|
5871
|
+
dayCapacity?: CalendarDayCapacityDto;
|
|
5872
|
+
capacityHours?: number;
|
|
5865
5873
|
}
|
|
5866
|
-
export type
|
|
5867
|
-
export declare class
|
|
5874
|
+
export type CalendarDayCapacityDto = "WorkingDay" | "HalfDay" | "Holiday";
|
|
5875
|
+
export declare class CalendarCapacityDto implements ICalendarCapacityDto {
|
|
5868
5876
|
date?: Date;
|
|
5869
|
-
dayCapacity?:
|
|
5870
|
-
constructor(data?:
|
|
5877
|
+
dayCapacity?: CalendarDayCapacityDto;
|
|
5878
|
+
constructor(data?: ICalendarCapacityDto);
|
|
5871
5879
|
init(_data?: any): void;
|
|
5872
|
-
static fromJS(data: any):
|
|
5880
|
+
static fromJS(data: any): CalendarCapacityDto;
|
|
5873
5881
|
toJSON(data?: any): any;
|
|
5874
5882
|
}
|
|
5875
|
-
export interface
|
|
5883
|
+
export interface ICalendarCapacityDto {
|
|
5876
5884
|
date?: Date;
|
|
5877
|
-
dayCapacity?:
|
|
5885
|
+
dayCapacity?: CalendarDayCapacityDto;
|
|
5886
|
+
}
|
|
5887
|
+
export declare class UpdateCalendarCapacity implements IUpdateCalendarCapacity {
|
|
5888
|
+
date?: Date;
|
|
5889
|
+
dayCapacity?: CalendarDayCapacityDto;
|
|
5890
|
+
constructor(data?: IUpdateCalendarCapacity);
|
|
5891
|
+
init(_data?: any): void;
|
|
5892
|
+
static fromJS(data: any): UpdateCalendarCapacity;
|
|
5893
|
+
toJSON(data?: any): any;
|
|
5894
|
+
}
|
|
5895
|
+
export interface IUpdateCalendarCapacity {
|
|
5896
|
+
date?: Date;
|
|
5897
|
+
dayCapacity?: CalendarDayCapacityDto;
|
|
5898
|
+
}
|
|
5899
|
+
export declare class CalendarSettingsDto implements ICalendarSettingsDto {
|
|
5900
|
+
defaultHoursPerWeekday?: {
|
|
5901
|
+
[key in DayOfWeek]?: number;
|
|
5902
|
+
};
|
|
5903
|
+
halfDayHours?: number;
|
|
5904
|
+
holidayHours?: number;
|
|
5905
|
+
constructor(data?: ICalendarSettingsDto);
|
|
5906
|
+
init(_data?: any): void;
|
|
5907
|
+
static fromJS(data: any): CalendarSettingsDto;
|
|
5908
|
+
toJSON(data?: any): any;
|
|
5909
|
+
}
|
|
5910
|
+
export interface ICalendarSettingsDto {
|
|
5911
|
+
defaultHoursPerWeekday?: {
|
|
5912
|
+
[key in DayOfWeek]?: number;
|
|
5913
|
+
};
|
|
5914
|
+
halfDayHours?: number;
|
|
5915
|
+
holidayHours?: number;
|
|
5916
|
+
}
|
|
5917
|
+
export type DayOfWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
5918
|
+
export declare class UpdateCalendarSettingsCommand implements IUpdateCalendarSettingsCommand {
|
|
5919
|
+
defaultHoursPerWeekday?: {
|
|
5920
|
+
[key in DayOfWeek]?: number;
|
|
5921
|
+
};
|
|
5922
|
+
halfDayHours?: number;
|
|
5923
|
+
holidayHours?: number;
|
|
5924
|
+
constructor(data?: IUpdateCalendarSettingsCommand);
|
|
5925
|
+
init(_data?: any): void;
|
|
5926
|
+
static fromJS(data: any): UpdateCalendarSettingsCommand;
|
|
5927
|
+
toJSON(data?: any): any;
|
|
5928
|
+
}
|
|
5929
|
+
export interface IUpdateCalendarSettingsCommand {
|
|
5930
|
+
defaultHoursPerWeekday?: {
|
|
5931
|
+
[key in DayOfWeek]?: number;
|
|
5932
|
+
};
|
|
5933
|
+
halfDayHours?: number;
|
|
5934
|
+
holidayHours?: number;
|
|
5878
5935
|
}
|
|
5879
5936
|
export declare class MachineKpiDto implements IMachineKpiDto {
|
|
5880
5937
|
uptimeToNow: number;
|
|
@@ -11707,7 +11764,6 @@ export declare class MeasurementFormGroupedElementDto implements IMeasurementFor
|
|
|
11707
11764
|
machiningDimension?: number | null;
|
|
11708
11765
|
nominalInch?: number | null;
|
|
11709
11766
|
isValid: boolean;
|
|
11710
|
-
validationErrorMessage?: string | null;
|
|
11711
11767
|
constructor(data?: IMeasurementFormGroupedElementDto);
|
|
11712
11768
|
init(_data?: any): void;
|
|
11713
11769
|
static fromJS(data: any): MeasurementFormGroupedElementDto;
|
|
@@ -11753,9 +11809,8 @@ export interface IMeasurementFormGroupedElementDto {
|
|
|
11753
11809
|
machiningDimension?: number | null;
|
|
11754
11810
|
nominalInch?: number | null;
|
|
11755
11811
|
isValid: boolean;
|
|
11756
|
-
validationErrorMessage?: string | null;
|
|
11757
11812
|
}
|
|
11758
|
-
export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "
|
|
11813
|
+
export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "None";
|
|
11759
11814
|
export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
|
|
11760
11815
|
export type BonusType = "None" | "Positive" | "PositiveAndNegative";
|
|
11761
11816
|
export declare class MeasurementFormLinkedSchemaDto implements IMeasurementFormLinkedSchemaDto {
|
|
@@ -11897,7 +11952,6 @@ export declare class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroup
|
|
|
11897
11952
|
includeInCustomerDocumentation: boolean;
|
|
11898
11953
|
canCopy?: boolean | null;
|
|
11899
11954
|
isDocumentedExternally: boolean;
|
|
11900
|
-
coatingThickness?: number | null;
|
|
11901
11955
|
constructor(data?: IUpdateSchemaGroupedElementDto);
|
|
11902
11956
|
init(_data?: any): void;
|
|
11903
11957
|
static fromJS(data: any): UpdateSchemaGroupedElementDto;
|
|
@@ -11910,7 +11964,6 @@ export interface IUpdateSchemaGroupedElementDto {
|
|
|
11910
11964
|
includeInCustomerDocumentation: boolean;
|
|
11911
11965
|
canCopy?: boolean | null;
|
|
11912
11966
|
isDocumentedExternally: boolean;
|
|
11913
|
-
coatingThickness?: number | null;
|
|
11914
11967
|
}
|
|
11915
11968
|
export declare class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedElementRowDto {
|
|
11916
11969
|
id: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -6020,8 +6020,8 @@ export class KpiAdminClient extends AuthorizedApiBase {
|
|
|
6020
6020
|
}
|
|
6021
6021
|
return Promise.resolve(null);
|
|
6022
6022
|
}
|
|
6023
|
-
|
|
6024
|
-
let url_ = this.baseUrl + "/kpiadmin/
|
|
6023
|
+
getCalendarCapacityAdmin(startDate, endDate) {
|
|
6024
|
+
let url_ = this.baseUrl + "/kpiadmin/calendar?";
|
|
6025
6025
|
if (startDate === null)
|
|
6026
6026
|
throw new Error("The parameter 'startDate' cannot be null.");
|
|
6027
6027
|
else if (startDate !== undefined)
|
|
@@ -6040,10 +6040,10 @@ export class KpiAdminClient extends AuthorizedApiBase {
|
|
|
6040
6040
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6041
6041
|
return this.http.fetch(url_, transformedOptions_);
|
|
6042
6042
|
}).then((_response) => {
|
|
6043
|
-
return this.
|
|
6043
|
+
return this.processGetCalendarCapacityAdmin(_response);
|
|
6044
6044
|
});
|
|
6045
6045
|
}
|
|
6046
|
-
|
|
6046
|
+
processGetCalendarCapacityAdmin(response) {
|
|
6047
6047
|
const status = response.status;
|
|
6048
6048
|
let _headers = {};
|
|
6049
6049
|
if (response.headers && response.headers.forEach) {
|
|
@@ -6057,7 +6057,7 @@ export class KpiAdminClient extends AuthorizedApiBase {
|
|
|
6057
6057
|
if (Array.isArray(resultData200)) {
|
|
6058
6058
|
result200 = [];
|
|
6059
6059
|
for (let item of resultData200)
|
|
6060
|
-
result200.push(
|
|
6060
|
+
result200.push(CalendarDayDto.fromJS(item));
|
|
6061
6061
|
}
|
|
6062
6062
|
return result200;
|
|
6063
6063
|
});
|
|
@@ -6069,8 +6069,8 @@ export class KpiAdminClient extends AuthorizedApiBase {
|
|
|
6069
6069
|
}
|
|
6070
6070
|
return Promise.resolve(null);
|
|
6071
6071
|
}
|
|
6072
|
-
|
|
6073
|
-
let url_ = this.baseUrl + "/kpiadmin/
|
|
6072
|
+
updateCalendarCapacityAdmin(request) {
|
|
6073
|
+
let url_ = this.baseUrl + "/kpiadmin/calendar";
|
|
6074
6074
|
url_ = url_.replace(/[?&]$/, "");
|
|
6075
6075
|
const content_ = JSON.stringify(request);
|
|
6076
6076
|
let options_ = {
|
|
@@ -6084,10 +6084,10 @@ export class KpiAdminClient extends AuthorizedApiBase {
|
|
|
6084
6084
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6085
6085
|
return this.http.fetch(url_, transformedOptions_);
|
|
6086
6086
|
}).then((_response) => {
|
|
6087
|
-
return this.
|
|
6087
|
+
return this.processUpdateCalendarCapacityAdmin(_response);
|
|
6088
6088
|
});
|
|
6089
6089
|
}
|
|
6090
|
-
|
|
6090
|
+
processUpdateCalendarCapacityAdmin(response) {
|
|
6091
6091
|
const status = response.status;
|
|
6092
6092
|
let _headers = {};
|
|
6093
6093
|
if (response.headers && response.headers.forEach) {
|
|
@@ -6098,7 +6098,84 @@ export class KpiAdminClient extends AuthorizedApiBase {
|
|
|
6098
6098
|
return response.text().then((_responseText) => {
|
|
6099
6099
|
let result200 = null;
|
|
6100
6100
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6101
|
-
result200 =
|
|
6101
|
+
result200 = CalendarCapacityDto.fromJS(resultData200);
|
|
6102
|
+
return result200;
|
|
6103
|
+
});
|
|
6104
|
+
}
|
|
6105
|
+
else if (status !== 200 && status !== 204) {
|
|
6106
|
+
return response.text().then((_responseText) => {
|
|
6107
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6108
|
+
});
|
|
6109
|
+
}
|
|
6110
|
+
return Promise.resolve(null);
|
|
6111
|
+
}
|
|
6112
|
+
getCalendarSettings() {
|
|
6113
|
+
let url_ = this.baseUrl + "/kpiadmin/calendar/settings";
|
|
6114
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6115
|
+
let options_ = {
|
|
6116
|
+
method: "GET",
|
|
6117
|
+
headers: {
|
|
6118
|
+
"Accept": "application/json"
|
|
6119
|
+
}
|
|
6120
|
+
};
|
|
6121
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6122
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6123
|
+
}).then((_response) => {
|
|
6124
|
+
return this.processGetCalendarSettings(_response);
|
|
6125
|
+
});
|
|
6126
|
+
}
|
|
6127
|
+
processGetCalendarSettings(response) {
|
|
6128
|
+
const status = response.status;
|
|
6129
|
+
let _headers = {};
|
|
6130
|
+
if (response.headers && response.headers.forEach) {
|
|
6131
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
6132
|
+
}
|
|
6133
|
+
;
|
|
6134
|
+
if (status === 200) {
|
|
6135
|
+
return response.text().then((_responseText) => {
|
|
6136
|
+
let result200 = null;
|
|
6137
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6138
|
+
result200 = CalendarSettingsDto.fromJS(resultData200);
|
|
6139
|
+
return result200;
|
|
6140
|
+
});
|
|
6141
|
+
}
|
|
6142
|
+
else if (status !== 200 && status !== 204) {
|
|
6143
|
+
return response.text().then((_responseText) => {
|
|
6144
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6145
|
+
});
|
|
6146
|
+
}
|
|
6147
|
+
return Promise.resolve(null);
|
|
6148
|
+
}
|
|
6149
|
+
updateCalendarSettings(cmd) {
|
|
6150
|
+
let url_ = this.baseUrl + "/kpiadmin/calendar/settings";
|
|
6151
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6152
|
+
const content_ = JSON.stringify(cmd);
|
|
6153
|
+
let options_ = {
|
|
6154
|
+
body: content_,
|
|
6155
|
+
method: "PUT",
|
|
6156
|
+
headers: {
|
|
6157
|
+
"Content-Type": "application/json",
|
|
6158
|
+
"Accept": "application/json"
|
|
6159
|
+
}
|
|
6160
|
+
};
|
|
6161
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6162
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6163
|
+
}).then((_response) => {
|
|
6164
|
+
return this.processUpdateCalendarSettings(_response);
|
|
6165
|
+
});
|
|
6166
|
+
}
|
|
6167
|
+
processUpdateCalendarSettings(response) {
|
|
6168
|
+
const status = response.status;
|
|
6169
|
+
let _headers = {};
|
|
6170
|
+
if (response.headers && response.headers.forEach) {
|
|
6171
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
6172
|
+
}
|
|
6173
|
+
;
|
|
6174
|
+
if (status === 200) {
|
|
6175
|
+
return response.text().then((_responseText) => {
|
|
6176
|
+
let result200 = null;
|
|
6177
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6178
|
+
result200 = CalendarSettingsDto.fromJS(resultData200);
|
|
6102
6179
|
return result200;
|
|
6103
6180
|
});
|
|
6104
6181
|
}
|
|
@@ -29224,7 +29301,7 @@ export class UpdateMachinesCapacity {
|
|
|
29224
29301
|
return data;
|
|
29225
29302
|
}
|
|
29226
29303
|
}
|
|
29227
|
-
export class
|
|
29304
|
+
export class CalendarDayDto {
|
|
29228
29305
|
constructor(data) {
|
|
29229
29306
|
if (data) {
|
|
29230
29307
|
for (var property in data) {
|
|
@@ -29237,11 +29314,12 @@ export class CalenderCapacityDto {
|
|
|
29237
29314
|
if (_data) {
|
|
29238
29315
|
this.date = _data["date"] ? new Date(_data["date"].toString()) : undefined;
|
|
29239
29316
|
this.dayCapacity = _data["dayCapacity"];
|
|
29317
|
+
this.capacityHours = _data["capacityHours"];
|
|
29240
29318
|
}
|
|
29241
29319
|
}
|
|
29242
29320
|
static fromJS(data) {
|
|
29243
29321
|
data = typeof data === 'object' ? data : {};
|
|
29244
|
-
let result = new
|
|
29322
|
+
let result = new CalendarDayDto();
|
|
29245
29323
|
result.init(data);
|
|
29246
29324
|
return result;
|
|
29247
29325
|
}
|
|
@@ -29249,10 +29327,11 @@ export class CalenderCapacityDto {
|
|
|
29249
29327
|
data = typeof data === 'object' ? data : {};
|
|
29250
29328
|
data["date"] = this.date ? this.date.toISOString() : undefined;
|
|
29251
29329
|
data["dayCapacity"] = this.dayCapacity;
|
|
29330
|
+
data["capacityHours"] = this.capacityHours;
|
|
29252
29331
|
return data;
|
|
29253
29332
|
}
|
|
29254
29333
|
}
|
|
29255
|
-
export class
|
|
29334
|
+
export class CalendarCapacityDto {
|
|
29256
29335
|
constructor(data) {
|
|
29257
29336
|
if (data) {
|
|
29258
29337
|
for (var property in data) {
|
|
@@ -29269,7 +29348,7 @@ export class UpdateCalenderCapacity {
|
|
|
29269
29348
|
}
|
|
29270
29349
|
static fromJS(data) {
|
|
29271
29350
|
data = typeof data === 'object' ? data : {};
|
|
29272
|
-
let result = new
|
|
29351
|
+
let result = new CalendarCapacityDto();
|
|
29273
29352
|
result.init(data);
|
|
29274
29353
|
return result;
|
|
29275
29354
|
}
|
|
@@ -29280,6 +29359,118 @@ export class UpdateCalenderCapacity {
|
|
|
29280
29359
|
return data;
|
|
29281
29360
|
}
|
|
29282
29361
|
}
|
|
29362
|
+
export class UpdateCalendarCapacity {
|
|
29363
|
+
constructor(data) {
|
|
29364
|
+
if (data) {
|
|
29365
|
+
for (var property in data) {
|
|
29366
|
+
if (data.hasOwnProperty(property))
|
|
29367
|
+
this[property] = data[property];
|
|
29368
|
+
}
|
|
29369
|
+
}
|
|
29370
|
+
}
|
|
29371
|
+
init(_data) {
|
|
29372
|
+
if (_data) {
|
|
29373
|
+
this.date = _data["date"] ? new Date(_data["date"].toString()) : undefined;
|
|
29374
|
+
this.dayCapacity = _data["dayCapacity"];
|
|
29375
|
+
}
|
|
29376
|
+
}
|
|
29377
|
+
static fromJS(data) {
|
|
29378
|
+
data = typeof data === 'object' ? data : {};
|
|
29379
|
+
let result = new UpdateCalendarCapacity();
|
|
29380
|
+
result.init(data);
|
|
29381
|
+
return result;
|
|
29382
|
+
}
|
|
29383
|
+
toJSON(data) {
|
|
29384
|
+
data = typeof data === 'object' ? data : {};
|
|
29385
|
+
data["date"] = this.date ? this.date.toISOString() : undefined;
|
|
29386
|
+
data["dayCapacity"] = this.dayCapacity;
|
|
29387
|
+
return data;
|
|
29388
|
+
}
|
|
29389
|
+
}
|
|
29390
|
+
export class CalendarSettingsDto {
|
|
29391
|
+
constructor(data) {
|
|
29392
|
+
if (data) {
|
|
29393
|
+
for (var property in data) {
|
|
29394
|
+
if (data.hasOwnProperty(property))
|
|
29395
|
+
this[property] = data[property];
|
|
29396
|
+
}
|
|
29397
|
+
}
|
|
29398
|
+
}
|
|
29399
|
+
init(_data) {
|
|
29400
|
+
if (_data) {
|
|
29401
|
+
if (_data["defaultHoursPerWeekday"]) {
|
|
29402
|
+
this.defaultHoursPerWeekday = {};
|
|
29403
|
+
for (let key in _data["defaultHoursPerWeekday"]) {
|
|
29404
|
+
if (_data["defaultHoursPerWeekday"].hasOwnProperty(key))
|
|
29405
|
+
this.defaultHoursPerWeekday[key] = _data["defaultHoursPerWeekday"][key];
|
|
29406
|
+
}
|
|
29407
|
+
}
|
|
29408
|
+
this.halfDayHours = _data["halfDayHours"];
|
|
29409
|
+
this.holidayHours = _data["holidayHours"];
|
|
29410
|
+
}
|
|
29411
|
+
}
|
|
29412
|
+
static fromJS(data) {
|
|
29413
|
+
data = typeof data === 'object' ? data : {};
|
|
29414
|
+
let result = new CalendarSettingsDto();
|
|
29415
|
+
result.init(data);
|
|
29416
|
+
return result;
|
|
29417
|
+
}
|
|
29418
|
+
toJSON(data) {
|
|
29419
|
+
data = typeof data === 'object' ? data : {};
|
|
29420
|
+
if (this.defaultHoursPerWeekday) {
|
|
29421
|
+
data["defaultHoursPerWeekday"] = {};
|
|
29422
|
+
for (let key in this.defaultHoursPerWeekday) {
|
|
29423
|
+
if (this.defaultHoursPerWeekday.hasOwnProperty(key))
|
|
29424
|
+
data["defaultHoursPerWeekday"][key] = this.defaultHoursPerWeekday[key];
|
|
29425
|
+
}
|
|
29426
|
+
}
|
|
29427
|
+
data["halfDayHours"] = this.halfDayHours;
|
|
29428
|
+
data["holidayHours"] = this.holidayHours;
|
|
29429
|
+
return data;
|
|
29430
|
+
}
|
|
29431
|
+
}
|
|
29432
|
+
export class UpdateCalendarSettingsCommand {
|
|
29433
|
+
constructor(data) {
|
|
29434
|
+
if (data) {
|
|
29435
|
+
for (var property in data) {
|
|
29436
|
+
if (data.hasOwnProperty(property))
|
|
29437
|
+
this[property] = data[property];
|
|
29438
|
+
}
|
|
29439
|
+
}
|
|
29440
|
+
}
|
|
29441
|
+
init(_data) {
|
|
29442
|
+
if (_data) {
|
|
29443
|
+
if (_data["defaultHoursPerWeekday"]) {
|
|
29444
|
+
this.defaultHoursPerWeekday = {};
|
|
29445
|
+
for (let key in _data["defaultHoursPerWeekday"]) {
|
|
29446
|
+
if (_data["defaultHoursPerWeekday"].hasOwnProperty(key))
|
|
29447
|
+
this.defaultHoursPerWeekday[key] = _data["defaultHoursPerWeekday"][key];
|
|
29448
|
+
}
|
|
29449
|
+
}
|
|
29450
|
+
this.halfDayHours = _data["halfDayHours"];
|
|
29451
|
+
this.holidayHours = _data["holidayHours"];
|
|
29452
|
+
}
|
|
29453
|
+
}
|
|
29454
|
+
static fromJS(data) {
|
|
29455
|
+
data = typeof data === 'object' ? data : {};
|
|
29456
|
+
let result = new UpdateCalendarSettingsCommand();
|
|
29457
|
+
result.init(data);
|
|
29458
|
+
return result;
|
|
29459
|
+
}
|
|
29460
|
+
toJSON(data) {
|
|
29461
|
+
data = typeof data === 'object' ? data : {};
|
|
29462
|
+
if (this.defaultHoursPerWeekday) {
|
|
29463
|
+
data["defaultHoursPerWeekday"] = {};
|
|
29464
|
+
for (let key in this.defaultHoursPerWeekday) {
|
|
29465
|
+
if (this.defaultHoursPerWeekday.hasOwnProperty(key))
|
|
29466
|
+
data["defaultHoursPerWeekday"][key] = this.defaultHoursPerWeekday[key];
|
|
29467
|
+
}
|
|
29468
|
+
}
|
|
29469
|
+
data["halfDayHours"] = this.halfDayHours;
|
|
29470
|
+
data["holidayHours"] = this.holidayHours;
|
|
29471
|
+
return data;
|
|
29472
|
+
}
|
|
29473
|
+
}
|
|
29283
29474
|
export class MachineKpiDto {
|
|
29284
29475
|
constructor(data) {
|
|
29285
29476
|
if (data) {
|
|
@@ -41070,7 +41261,6 @@ export class MeasurementFormGroupedElementDto {
|
|
|
41070
41261
|
this.machiningDimension = _data["machiningDimension"];
|
|
41071
41262
|
this.nominalInch = _data["nominalInch"];
|
|
41072
41263
|
this.isValid = _data["isValid"];
|
|
41073
|
-
this.validationErrorMessage = _data["validationErrorMessage"];
|
|
41074
41264
|
}
|
|
41075
41265
|
}
|
|
41076
41266
|
static fromJS(data) {
|
|
@@ -41120,7 +41310,6 @@ export class MeasurementFormGroupedElementDto {
|
|
|
41120
41310
|
data["machiningDimension"] = this.machiningDimension;
|
|
41121
41311
|
data["nominalInch"] = this.nominalInch;
|
|
41122
41312
|
data["isValid"] = this.isValid;
|
|
41123
|
-
data["validationErrorMessage"] = this.validationErrorMessage;
|
|
41124
41313
|
return data;
|
|
41125
41314
|
}
|
|
41126
41315
|
}
|
|
@@ -41391,7 +41580,6 @@ export class UpdateSchemaGroupedElementDto {
|
|
|
41391
41580
|
this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
|
|
41392
41581
|
this.canCopy = _data["canCopy"];
|
|
41393
41582
|
this.isDocumentedExternally = _data["isDocumentedExternally"];
|
|
41394
|
-
this.coatingThickness = _data["coatingThickness"];
|
|
41395
41583
|
}
|
|
41396
41584
|
}
|
|
41397
41585
|
static fromJS(data) {
|
|
@@ -41408,7 +41596,6 @@ export class UpdateSchemaGroupedElementDto {
|
|
|
41408
41596
|
data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
|
|
41409
41597
|
data["canCopy"] = this.canCopy;
|
|
41410
41598
|
data["isDocumentedExternally"] = this.isDocumentedExternally;
|
|
41411
|
-
data["coatingThickness"] = this.coatingThickness;
|
|
41412
41599
|
return data;
|
|
41413
41600
|
}
|
|
41414
41601
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -6373,9 +6373,13 @@ export interface IKpiAdminClient {
|
|
|
6373
6373
|
|
|
6374
6374
|
updateMachineCapacityAdmin(request: UpdateMachinesCapacity): Promise<MachineCapacityDto>;
|
|
6375
6375
|
|
|
6376
|
-
|
|
6376
|
+
getCalendarCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalendarDayDto[]>;
|
|
6377
6377
|
|
|
6378
|
-
|
|
6378
|
+
updateCalendarCapacityAdmin(request: UpdateCalendarCapacity): Promise<CalendarCapacityDto>;
|
|
6379
|
+
|
|
6380
|
+
getCalendarSettings(): Promise<CalendarSettingsDto>;
|
|
6381
|
+
|
|
6382
|
+
updateCalendarSettings(cmd: UpdateCalendarSettingsCommand): Promise<CalendarSettingsDto>;
|
|
6379
6383
|
}
|
|
6380
6384
|
|
|
6381
6385
|
export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient {
|
|
@@ -6469,8 +6473,8 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
|
|
|
6469
6473
|
return Promise.resolve<MachineCapacityDto>(null as any);
|
|
6470
6474
|
}
|
|
6471
6475
|
|
|
6472
|
-
|
|
6473
|
-
let url_ = this.baseUrl + "/kpiadmin/
|
|
6476
|
+
getCalendarCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalendarDayDto[]> {
|
|
6477
|
+
let url_ = this.baseUrl + "/kpiadmin/calendar?";
|
|
6474
6478
|
if (startDate === null)
|
|
6475
6479
|
throw new Error("The parameter 'startDate' cannot be null.");
|
|
6476
6480
|
else if (startDate !== undefined)
|
|
@@ -6491,11 +6495,11 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
|
|
|
6491
6495
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6492
6496
|
return this.http.fetch(url_, transformedOptions_);
|
|
6493
6497
|
}).then((_response: Response) => {
|
|
6494
|
-
return this.
|
|
6498
|
+
return this.processGetCalendarCapacityAdmin(_response);
|
|
6495
6499
|
});
|
|
6496
6500
|
}
|
|
6497
6501
|
|
|
6498
|
-
protected
|
|
6502
|
+
protected processGetCalendarCapacityAdmin(response: Response): Promise<CalendarDayDto[]> {
|
|
6499
6503
|
const status = response.status;
|
|
6500
6504
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6501
6505
|
if (status === 200) {
|
|
@@ -6505,7 +6509,7 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
|
|
|
6505
6509
|
if (Array.isArray(resultData200)) {
|
|
6506
6510
|
result200 = [] as any;
|
|
6507
6511
|
for (let item of resultData200)
|
|
6508
|
-
result200!.push(
|
|
6512
|
+
result200!.push(CalendarDayDto.fromJS(item));
|
|
6509
6513
|
}
|
|
6510
6514
|
return result200;
|
|
6511
6515
|
});
|
|
@@ -6514,11 +6518,11 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
|
|
|
6514
6518
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6515
6519
|
});
|
|
6516
6520
|
}
|
|
6517
|
-
return Promise.resolve<
|
|
6521
|
+
return Promise.resolve<CalendarDayDto[]>(null as any);
|
|
6518
6522
|
}
|
|
6519
6523
|
|
|
6520
|
-
|
|
6521
|
-
let url_ = this.baseUrl + "/kpiadmin/
|
|
6524
|
+
updateCalendarCapacityAdmin(request: UpdateCalendarCapacity): Promise<CalendarCapacityDto> {
|
|
6525
|
+
let url_ = this.baseUrl + "/kpiadmin/calendar";
|
|
6522
6526
|
url_ = url_.replace(/[?&]$/, "");
|
|
6523
6527
|
|
|
6524
6528
|
const content_ = JSON.stringify(request);
|
|
@@ -6535,18 +6539,94 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
|
|
|
6535
6539
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6536
6540
|
return this.http.fetch(url_, transformedOptions_);
|
|
6537
6541
|
}).then((_response: Response) => {
|
|
6538
|
-
return this.
|
|
6542
|
+
return this.processUpdateCalendarCapacityAdmin(_response);
|
|
6543
|
+
});
|
|
6544
|
+
}
|
|
6545
|
+
|
|
6546
|
+
protected processUpdateCalendarCapacityAdmin(response: Response): Promise<CalendarCapacityDto> {
|
|
6547
|
+
const status = response.status;
|
|
6548
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6549
|
+
if (status === 200) {
|
|
6550
|
+
return response.text().then((_responseText) => {
|
|
6551
|
+
let result200: any = null;
|
|
6552
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6553
|
+
result200 = CalendarCapacityDto.fromJS(resultData200);
|
|
6554
|
+
return result200;
|
|
6555
|
+
});
|
|
6556
|
+
} else if (status !== 200 && status !== 204) {
|
|
6557
|
+
return response.text().then((_responseText) => {
|
|
6558
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6559
|
+
});
|
|
6560
|
+
}
|
|
6561
|
+
return Promise.resolve<CalendarCapacityDto>(null as any);
|
|
6562
|
+
}
|
|
6563
|
+
|
|
6564
|
+
getCalendarSettings(): Promise<CalendarSettingsDto> {
|
|
6565
|
+
let url_ = this.baseUrl + "/kpiadmin/calendar/settings";
|
|
6566
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6567
|
+
|
|
6568
|
+
let options_: RequestInit = {
|
|
6569
|
+
method: "GET",
|
|
6570
|
+
headers: {
|
|
6571
|
+
"Accept": "application/json"
|
|
6572
|
+
}
|
|
6573
|
+
};
|
|
6574
|
+
|
|
6575
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6576
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6577
|
+
}).then((_response: Response) => {
|
|
6578
|
+
return this.processGetCalendarSettings(_response);
|
|
6579
|
+
});
|
|
6580
|
+
}
|
|
6581
|
+
|
|
6582
|
+
protected processGetCalendarSettings(response: Response): Promise<CalendarSettingsDto> {
|
|
6583
|
+
const status = response.status;
|
|
6584
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6585
|
+
if (status === 200) {
|
|
6586
|
+
return response.text().then((_responseText) => {
|
|
6587
|
+
let result200: any = null;
|
|
6588
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6589
|
+
result200 = CalendarSettingsDto.fromJS(resultData200);
|
|
6590
|
+
return result200;
|
|
6591
|
+
});
|
|
6592
|
+
} else if (status !== 200 && status !== 204) {
|
|
6593
|
+
return response.text().then((_responseText) => {
|
|
6594
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6595
|
+
});
|
|
6596
|
+
}
|
|
6597
|
+
return Promise.resolve<CalendarSettingsDto>(null as any);
|
|
6598
|
+
}
|
|
6599
|
+
|
|
6600
|
+
updateCalendarSettings(cmd: UpdateCalendarSettingsCommand): Promise<CalendarSettingsDto> {
|
|
6601
|
+
let url_ = this.baseUrl + "/kpiadmin/calendar/settings";
|
|
6602
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6603
|
+
|
|
6604
|
+
const content_ = JSON.stringify(cmd);
|
|
6605
|
+
|
|
6606
|
+
let options_: RequestInit = {
|
|
6607
|
+
body: content_,
|
|
6608
|
+
method: "PUT",
|
|
6609
|
+
headers: {
|
|
6610
|
+
"Content-Type": "application/json",
|
|
6611
|
+
"Accept": "application/json"
|
|
6612
|
+
}
|
|
6613
|
+
};
|
|
6614
|
+
|
|
6615
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6616
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6617
|
+
}).then((_response: Response) => {
|
|
6618
|
+
return this.processUpdateCalendarSettings(_response);
|
|
6539
6619
|
});
|
|
6540
6620
|
}
|
|
6541
6621
|
|
|
6542
|
-
protected
|
|
6622
|
+
protected processUpdateCalendarSettings(response: Response): Promise<CalendarSettingsDto> {
|
|
6543
6623
|
const status = response.status;
|
|
6544
6624
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6545
6625
|
if (status === 200) {
|
|
6546
6626
|
return response.text().then((_responseText) => {
|
|
6547
6627
|
let result200: any = null;
|
|
6548
6628
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6549
|
-
result200 =
|
|
6629
|
+
result200 = CalendarSettingsDto.fromJS(resultData200);
|
|
6550
6630
|
return result200;
|
|
6551
6631
|
});
|
|
6552
6632
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -6554,7 +6634,7 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
|
|
|
6554
6634
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6555
6635
|
});
|
|
6556
6636
|
}
|
|
6557
|
-
return Promise.resolve<
|
|
6637
|
+
return Promise.resolve<CalendarSettingsDto>(null as any);
|
|
6558
6638
|
}
|
|
6559
6639
|
}
|
|
6560
6640
|
|
|
@@ -33895,11 +33975,12 @@ export interface IUpdateMachinesCapacity {
|
|
|
33895
33975
|
capacity?: MachineCapacitySettingsDto[] | null;
|
|
33896
33976
|
}
|
|
33897
33977
|
|
|
33898
|
-
export class
|
|
33978
|
+
export class CalendarDayDto implements ICalendarDayDto {
|
|
33899
33979
|
date?: Date;
|
|
33900
|
-
dayCapacity?:
|
|
33980
|
+
dayCapacity?: CalendarDayCapacityDto;
|
|
33981
|
+
capacityHours?: number;
|
|
33901
33982
|
|
|
33902
|
-
constructor(data?:
|
|
33983
|
+
constructor(data?: ICalendarDayDto) {
|
|
33903
33984
|
if (data) {
|
|
33904
33985
|
for (var property in data) {
|
|
33905
33986
|
if (data.hasOwnProperty(property))
|
|
@@ -33912,12 +33993,13 @@ export class CalenderCapacityDto implements ICalenderCapacityDto {
|
|
|
33912
33993
|
if (_data) {
|
|
33913
33994
|
this.date = _data["date"] ? new Date(_data["date"].toString()) : <any>undefined;
|
|
33914
33995
|
this.dayCapacity = _data["dayCapacity"];
|
|
33996
|
+
this.capacityHours = _data["capacityHours"];
|
|
33915
33997
|
}
|
|
33916
33998
|
}
|
|
33917
33999
|
|
|
33918
|
-
static fromJS(data: any):
|
|
34000
|
+
static fromJS(data: any): CalendarDayDto {
|
|
33919
34001
|
data = typeof data === 'object' ? data : {};
|
|
33920
|
-
let result = new
|
|
34002
|
+
let result = new CalendarDayDto();
|
|
33921
34003
|
result.init(data);
|
|
33922
34004
|
return result;
|
|
33923
34005
|
}
|
|
@@ -33926,22 +34008,64 @@ export class CalenderCapacityDto implements ICalenderCapacityDto {
|
|
|
33926
34008
|
data = typeof data === 'object' ? data : {};
|
|
33927
34009
|
data["date"] = this.date ? this.date.toISOString() : <any>undefined;
|
|
33928
34010
|
data["dayCapacity"] = this.dayCapacity;
|
|
34011
|
+
data["capacityHours"] = this.capacityHours;
|
|
33929
34012
|
return data;
|
|
33930
34013
|
}
|
|
33931
34014
|
}
|
|
33932
34015
|
|
|
33933
|
-
export interface
|
|
34016
|
+
export interface ICalendarDayDto {
|
|
33934
34017
|
date?: Date;
|
|
33935
|
-
dayCapacity?:
|
|
34018
|
+
dayCapacity?: CalendarDayCapacityDto;
|
|
34019
|
+
capacityHours?: number;
|
|
34020
|
+
}
|
|
34021
|
+
|
|
34022
|
+
export type CalendarDayCapacityDto = "WorkingDay" | "HalfDay" | "Holiday";
|
|
34023
|
+
|
|
34024
|
+
export class CalendarCapacityDto implements ICalendarCapacityDto {
|
|
34025
|
+
date?: Date;
|
|
34026
|
+
dayCapacity?: CalendarDayCapacityDto;
|
|
34027
|
+
|
|
34028
|
+
constructor(data?: ICalendarCapacityDto) {
|
|
34029
|
+
if (data) {
|
|
34030
|
+
for (var property in data) {
|
|
34031
|
+
if (data.hasOwnProperty(property))
|
|
34032
|
+
(<any>this)[property] = (<any>data)[property];
|
|
34033
|
+
}
|
|
34034
|
+
}
|
|
34035
|
+
}
|
|
34036
|
+
|
|
34037
|
+
init(_data?: any) {
|
|
34038
|
+
if (_data) {
|
|
34039
|
+
this.date = _data["date"] ? new Date(_data["date"].toString()) : <any>undefined;
|
|
34040
|
+
this.dayCapacity = _data["dayCapacity"];
|
|
34041
|
+
}
|
|
34042
|
+
}
|
|
34043
|
+
|
|
34044
|
+
static fromJS(data: any): CalendarCapacityDto {
|
|
34045
|
+
data = typeof data === 'object' ? data : {};
|
|
34046
|
+
let result = new CalendarCapacityDto();
|
|
34047
|
+
result.init(data);
|
|
34048
|
+
return result;
|
|
34049
|
+
}
|
|
34050
|
+
|
|
34051
|
+
toJSON(data?: any) {
|
|
34052
|
+
data = typeof data === 'object' ? data : {};
|
|
34053
|
+
data["date"] = this.date ? this.date.toISOString() : <any>undefined;
|
|
34054
|
+
data["dayCapacity"] = this.dayCapacity;
|
|
34055
|
+
return data;
|
|
34056
|
+
}
|
|
33936
34057
|
}
|
|
33937
34058
|
|
|
33938
|
-
export
|
|
34059
|
+
export interface ICalendarCapacityDto {
|
|
34060
|
+
date?: Date;
|
|
34061
|
+
dayCapacity?: CalendarDayCapacityDto;
|
|
34062
|
+
}
|
|
33939
34063
|
|
|
33940
|
-
export class
|
|
34064
|
+
export class UpdateCalendarCapacity implements IUpdateCalendarCapacity {
|
|
33941
34065
|
date?: Date;
|
|
33942
|
-
dayCapacity?:
|
|
34066
|
+
dayCapacity?: CalendarDayCapacityDto;
|
|
33943
34067
|
|
|
33944
|
-
constructor(data?:
|
|
34068
|
+
constructor(data?: IUpdateCalendarCapacity) {
|
|
33945
34069
|
if (data) {
|
|
33946
34070
|
for (var property in data) {
|
|
33947
34071
|
if (data.hasOwnProperty(property))
|
|
@@ -33957,9 +34081,9 @@ export class UpdateCalenderCapacity implements IUpdateCalenderCapacity {
|
|
|
33957
34081
|
}
|
|
33958
34082
|
}
|
|
33959
34083
|
|
|
33960
|
-
static fromJS(data: any):
|
|
34084
|
+
static fromJS(data: any): UpdateCalendarCapacity {
|
|
33961
34085
|
data = typeof data === 'object' ? data : {};
|
|
33962
|
-
let result = new
|
|
34086
|
+
let result = new UpdateCalendarCapacity();
|
|
33963
34087
|
result.init(data);
|
|
33964
34088
|
return result;
|
|
33965
34089
|
}
|
|
@@ -33972,9 +34096,123 @@ export class UpdateCalenderCapacity implements IUpdateCalenderCapacity {
|
|
|
33972
34096
|
}
|
|
33973
34097
|
}
|
|
33974
34098
|
|
|
33975
|
-
export interface
|
|
34099
|
+
export interface IUpdateCalendarCapacity {
|
|
33976
34100
|
date?: Date;
|
|
33977
|
-
dayCapacity?:
|
|
34101
|
+
dayCapacity?: CalendarDayCapacityDto;
|
|
34102
|
+
}
|
|
34103
|
+
|
|
34104
|
+
export class CalendarSettingsDto implements ICalendarSettingsDto {
|
|
34105
|
+
defaultHoursPerWeekday?: { [key in DayOfWeek]?: number; };
|
|
34106
|
+
halfDayHours?: number;
|
|
34107
|
+
holidayHours?: number;
|
|
34108
|
+
|
|
34109
|
+
constructor(data?: ICalendarSettingsDto) {
|
|
34110
|
+
if (data) {
|
|
34111
|
+
for (var property in data) {
|
|
34112
|
+
if (data.hasOwnProperty(property))
|
|
34113
|
+
(<any>this)[property] = (<any>data)[property];
|
|
34114
|
+
}
|
|
34115
|
+
}
|
|
34116
|
+
}
|
|
34117
|
+
|
|
34118
|
+
init(_data?: any) {
|
|
34119
|
+
if (_data) {
|
|
34120
|
+
if (_data["defaultHoursPerWeekday"]) {
|
|
34121
|
+
this.defaultHoursPerWeekday = {} as any;
|
|
34122
|
+
for (let key in _data["defaultHoursPerWeekday"]) {
|
|
34123
|
+
if (_data["defaultHoursPerWeekday"].hasOwnProperty(key))
|
|
34124
|
+
(<any>this.defaultHoursPerWeekday)![key] = _data["defaultHoursPerWeekday"][key];
|
|
34125
|
+
}
|
|
34126
|
+
}
|
|
34127
|
+
this.halfDayHours = _data["halfDayHours"];
|
|
34128
|
+
this.holidayHours = _data["holidayHours"];
|
|
34129
|
+
}
|
|
34130
|
+
}
|
|
34131
|
+
|
|
34132
|
+
static fromJS(data: any): CalendarSettingsDto {
|
|
34133
|
+
data = typeof data === 'object' ? data : {};
|
|
34134
|
+
let result = new CalendarSettingsDto();
|
|
34135
|
+
result.init(data);
|
|
34136
|
+
return result;
|
|
34137
|
+
}
|
|
34138
|
+
|
|
34139
|
+
toJSON(data?: any) {
|
|
34140
|
+
data = typeof data === 'object' ? data : {};
|
|
34141
|
+
if (this.defaultHoursPerWeekday) {
|
|
34142
|
+
data["defaultHoursPerWeekday"] = {};
|
|
34143
|
+
for (let key in this.defaultHoursPerWeekday) {
|
|
34144
|
+
if (this.defaultHoursPerWeekday.hasOwnProperty(key))
|
|
34145
|
+
(<any>data["defaultHoursPerWeekday"])[key] = (<any>this.defaultHoursPerWeekday)[key];
|
|
34146
|
+
}
|
|
34147
|
+
}
|
|
34148
|
+
data["halfDayHours"] = this.halfDayHours;
|
|
34149
|
+
data["holidayHours"] = this.holidayHours;
|
|
34150
|
+
return data;
|
|
34151
|
+
}
|
|
34152
|
+
}
|
|
34153
|
+
|
|
34154
|
+
export interface ICalendarSettingsDto {
|
|
34155
|
+
defaultHoursPerWeekday?: { [key in DayOfWeek]?: number; };
|
|
34156
|
+
halfDayHours?: number;
|
|
34157
|
+
holidayHours?: number;
|
|
34158
|
+
}
|
|
34159
|
+
|
|
34160
|
+
export type DayOfWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
34161
|
+
|
|
34162
|
+
export class UpdateCalendarSettingsCommand implements IUpdateCalendarSettingsCommand {
|
|
34163
|
+
defaultHoursPerWeekday?: { [key in DayOfWeek]?: number; };
|
|
34164
|
+
halfDayHours?: number;
|
|
34165
|
+
holidayHours?: number;
|
|
34166
|
+
|
|
34167
|
+
constructor(data?: IUpdateCalendarSettingsCommand) {
|
|
34168
|
+
if (data) {
|
|
34169
|
+
for (var property in data) {
|
|
34170
|
+
if (data.hasOwnProperty(property))
|
|
34171
|
+
(<any>this)[property] = (<any>data)[property];
|
|
34172
|
+
}
|
|
34173
|
+
}
|
|
34174
|
+
}
|
|
34175
|
+
|
|
34176
|
+
init(_data?: any) {
|
|
34177
|
+
if (_data) {
|
|
34178
|
+
if (_data["defaultHoursPerWeekday"]) {
|
|
34179
|
+
this.defaultHoursPerWeekday = {} as any;
|
|
34180
|
+
for (let key in _data["defaultHoursPerWeekday"]) {
|
|
34181
|
+
if (_data["defaultHoursPerWeekday"].hasOwnProperty(key))
|
|
34182
|
+
(<any>this.defaultHoursPerWeekday)![key] = _data["defaultHoursPerWeekday"][key];
|
|
34183
|
+
}
|
|
34184
|
+
}
|
|
34185
|
+
this.halfDayHours = _data["halfDayHours"];
|
|
34186
|
+
this.holidayHours = _data["holidayHours"];
|
|
34187
|
+
}
|
|
34188
|
+
}
|
|
34189
|
+
|
|
34190
|
+
static fromJS(data: any): UpdateCalendarSettingsCommand {
|
|
34191
|
+
data = typeof data === 'object' ? data : {};
|
|
34192
|
+
let result = new UpdateCalendarSettingsCommand();
|
|
34193
|
+
result.init(data);
|
|
34194
|
+
return result;
|
|
34195
|
+
}
|
|
34196
|
+
|
|
34197
|
+
toJSON(data?: any) {
|
|
34198
|
+
data = typeof data === 'object' ? data : {};
|
|
34199
|
+
if (this.defaultHoursPerWeekday) {
|
|
34200
|
+
data["defaultHoursPerWeekday"] = {};
|
|
34201
|
+
for (let key in this.defaultHoursPerWeekday) {
|
|
34202
|
+
if (this.defaultHoursPerWeekday.hasOwnProperty(key))
|
|
34203
|
+
(<any>data["defaultHoursPerWeekday"])[key] = (<any>this.defaultHoursPerWeekday)[key];
|
|
34204
|
+
}
|
|
34205
|
+
}
|
|
34206
|
+
data["halfDayHours"] = this.halfDayHours;
|
|
34207
|
+
data["holidayHours"] = this.holidayHours;
|
|
34208
|
+
return data;
|
|
34209
|
+
}
|
|
34210
|
+
}
|
|
34211
|
+
|
|
34212
|
+
export interface IUpdateCalendarSettingsCommand {
|
|
34213
|
+
defaultHoursPerWeekday?: { [key in DayOfWeek]?: number; };
|
|
34214
|
+
halfDayHours?: number;
|
|
34215
|
+
holidayHours?: number;
|
|
33978
34216
|
}
|
|
33979
34217
|
|
|
33980
34218
|
export class MachineKpiDto implements IMachineKpiDto {
|
|
@@ -51577,7 +51815,6 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
|
|
|
51577
51815
|
machiningDimension?: number | null;
|
|
51578
51816
|
nominalInch?: number | null;
|
|
51579
51817
|
isValid!: boolean;
|
|
51580
|
-
validationErrorMessage?: string | null;
|
|
51581
51818
|
|
|
51582
51819
|
constructor(data?: IMeasurementFormGroupedElementDto) {
|
|
51583
51820
|
if (data) {
|
|
@@ -51629,7 +51866,6 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
|
|
|
51629
51866
|
this.machiningDimension = _data["machiningDimension"];
|
|
51630
51867
|
this.nominalInch = _data["nominalInch"];
|
|
51631
51868
|
this.isValid = _data["isValid"];
|
|
51632
|
-
this.validationErrorMessage = _data["validationErrorMessage"];
|
|
51633
51869
|
}
|
|
51634
51870
|
}
|
|
51635
51871
|
|
|
@@ -51681,7 +51917,6 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
|
|
|
51681
51917
|
data["machiningDimension"] = this.machiningDimension;
|
|
51682
51918
|
data["nominalInch"] = this.nominalInch;
|
|
51683
51919
|
data["isValid"] = this.isValid;
|
|
51684
|
-
data["validationErrorMessage"] = this.validationErrorMessage;
|
|
51685
51920
|
return data;
|
|
51686
51921
|
}
|
|
51687
51922
|
}
|
|
@@ -51726,10 +51961,9 @@ export interface IMeasurementFormGroupedElementDto {
|
|
|
51726
51961
|
machiningDimension?: number | null;
|
|
51727
51962
|
nominalInch?: number | null;
|
|
51728
51963
|
isValid: boolean;
|
|
51729
|
-
validationErrorMessage?: string | null;
|
|
51730
51964
|
}
|
|
51731
51965
|
|
|
51732
|
-
export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "
|
|
51966
|
+
export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "None";
|
|
51733
51967
|
|
|
51734
51968
|
export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
|
|
51735
51969
|
|
|
@@ -52124,7 +52358,6 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
|
|
|
52124
52358
|
includeInCustomerDocumentation!: boolean;
|
|
52125
52359
|
canCopy?: boolean | null;
|
|
52126
52360
|
isDocumentedExternally!: boolean;
|
|
52127
|
-
coatingThickness?: number | null;
|
|
52128
52361
|
|
|
52129
52362
|
constructor(data?: IUpdateSchemaGroupedElementDto) {
|
|
52130
52363
|
if (data) {
|
|
@@ -52143,7 +52376,6 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
|
|
|
52143
52376
|
this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
|
|
52144
52377
|
this.canCopy = _data["canCopy"];
|
|
52145
52378
|
this.isDocumentedExternally = _data["isDocumentedExternally"];
|
|
52146
|
-
this.coatingThickness = _data["coatingThickness"];
|
|
52147
52379
|
}
|
|
52148
52380
|
}
|
|
52149
52381
|
|
|
@@ -52162,7 +52394,6 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
|
|
|
52162
52394
|
data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
|
|
52163
52395
|
data["canCopy"] = this.canCopy;
|
|
52164
52396
|
data["isDocumentedExternally"] = this.isDocumentedExternally;
|
|
52165
|
-
data["coatingThickness"] = this.coatingThickness;
|
|
52166
52397
|
return data;
|
|
52167
52398
|
}
|
|
52168
52399
|
}
|
|
@@ -52174,7 +52405,6 @@ export interface IUpdateSchemaGroupedElementDto {
|
|
|
52174
52405
|
includeInCustomerDocumentation: boolean;
|
|
52175
52406
|
canCopy?: boolean | null;
|
|
52176
52407
|
isDocumentedExternally: boolean;
|
|
52177
|
-
coatingThickness?: number | null;
|
|
52178
52408
|
}
|
|
52179
52409
|
|
|
52180
52410
|
export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedElementRowDto {
|