@ignos/api-client 20250130.0.11051 → 20250203.0.11065-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 +35 -4
- package/lib/ignosportal-api.js +126 -3
- package/package.json +1 -1
- package/src/ignosportal-api.ts +158 -6
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -808,6 +808,7 @@ export declare class KpiAdminClient extends AuthorizedApiBase implements IKpiAdm
|
|
|
808
808
|
}
|
|
809
809
|
export interface IKpiClient {
|
|
810
810
|
getMachineKpi(machineExternalId: string | undefined, startDate: Date | undefined, endDate: Date | undefined): Promise<MachineKpiDto[]>;
|
|
811
|
+
getMachineDailyUptime(machineExternalId: string | undefined, date: Date | undefined): Promise<MachineDailyUptimeDto>;
|
|
811
812
|
}
|
|
812
813
|
export declare class KpiClient extends AuthorizedApiBase implements IKpiClient {
|
|
813
814
|
private http;
|
|
@@ -818,6 +819,8 @@ export declare class KpiClient extends AuthorizedApiBase implements IKpiClient {
|
|
|
818
819
|
});
|
|
819
820
|
getMachineKpi(machineExternalId: string | undefined, startDate: Date | undefined, endDate: Date | undefined): Promise<MachineKpiDto[]>;
|
|
820
821
|
protected processGetMachineKpi(response: Response): Promise<MachineKpiDto[]>;
|
|
822
|
+
getMachineDailyUptime(machineExternalId: string | undefined, date: Date | undefined): Promise<MachineDailyUptimeDto>;
|
|
823
|
+
protected processGetMachineDailyUptime(response: Response): Promise<MachineDailyUptimeDto>;
|
|
821
824
|
}
|
|
822
825
|
export interface IMachinesClient {
|
|
823
826
|
listMachines(onlyConnectedMachines: boolean | undefined): Promise<MachineDto[]>;
|
|
@@ -1816,7 +1819,7 @@ export declare class MesProductionOrderClient extends AuthorizedApiBase implemen
|
|
|
1816
1819
|
protected processListProductionOrderActivities(response: Response): Promise<ProductionOrderOperationActivityDto[]>;
|
|
1817
1820
|
}
|
|
1818
1821
|
export interface IMesProductionScheduleClient {
|
|
1819
|
-
listProductionScheduleOperations(resourceGroup: string | null | undefined, resourceId: string | null | undefined, pageSize: number | undefined, continuationToken: string | null | undefined, workOrderId: string | null | undefined, projectId: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, material: string | null | undefined): Promise<PagedResultOfProductionScheduleOperationDto>;
|
|
1822
|
+
listProductionScheduleOperations(resourceGroup: string | null | undefined, resourceId: string | null | undefined, departmentNumber: string | null | undefined, pageSize: number | undefined, continuationToken: string | null | undefined, workOrderId: string | null | undefined, projectId: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, material: string | null | undefined): Promise<PagedResultOfProductionScheduleOperationDto>;
|
|
1820
1823
|
postListProductionScheduleOperations(request: ListProductionScheduleOperationsRequest | undefined): Promise<PagedResultOfProductionScheduleOperationDto>;
|
|
1821
1824
|
getAvailableProductionScheduleFilters(request: GetAvailableProductionScheduleFiltersRequest | undefined): Promise<ProductionScheduleFiltersDto>;
|
|
1822
1825
|
listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto>;
|
|
@@ -1831,7 +1834,7 @@ export declare class MesProductionScheduleClient extends AuthorizedApiBase imple
|
|
|
1831
1834
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
1832
1835
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
1833
1836
|
});
|
|
1834
|
-
listProductionScheduleOperations(resourceGroup: string | null | undefined, resourceId: string | null | undefined, pageSize: number | undefined, continuationToken: string | null | undefined, workOrderId: string | null | undefined, projectId: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, material: string | null | undefined): Promise<PagedResultOfProductionScheduleOperationDto>;
|
|
1837
|
+
listProductionScheduleOperations(resourceGroup: string | null | undefined, resourceId: string | null | undefined, departmentNumber: string | null | undefined, pageSize: number | undefined, continuationToken: string | null | undefined, workOrderId: string | null | undefined, projectId: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, material: string | null | undefined): Promise<PagedResultOfProductionScheduleOperationDto>;
|
|
1835
1838
|
protected processListProductionScheduleOperations(response: Response): Promise<PagedResultOfProductionScheduleOperationDto>;
|
|
1836
1839
|
postListProductionScheduleOperations(request: ListProductionScheduleOperationsRequest | undefined): Promise<PagedResultOfProductionScheduleOperationDto>;
|
|
1837
1840
|
protected processPostListProductionScheduleOperations(response: Response): Promise<PagedResultOfProductionScheduleOperationDto>;
|
|
@@ -5616,8 +5619,8 @@ export interface IUpdateCalenderCapacity {
|
|
|
5616
5619
|
}
|
|
5617
5620
|
export declare class MachineKpiDto implements IMachineKpiDto {
|
|
5618
5621
|
date?: Date;
|
|
5619
|
-
hoursCapacity?: number;
|
|
5620
5622
|
uptime?: number;
|
|
5623
|
+
capacity?: number;
|
|
5621
5624
|
utilizationGoal?: number;
|
|
5622
5625
|
constructor(data?: IMachineKpiDto);
|
|
5623
5626
|
init(_data?: any): void;
|
|
@@ -5626,10 +5629,36 @@ export declare class MachineKpiDto implements IMachineKpiDto {
|
|
|
5626
5629
|
}
|
|
5627
5630
|
export interface IMachineKpiDto {
|
|
5628
5631
|
date?: Date;
|
|
5629
|
-
hoursCapacity?: number;
|
|
5630
5632
|
uptime?: number;
|
|
5633
|
+
capacity?: number;
|
|
5631
5634
|
utilizationGoal?: number;
|
|
5632
5635
|
}
|
|
5636
|
+
export declare class MachineDailyUptimeDto implements IMachineDailyUptimeDto {
|
|
5637
|
+
date?: Date;
|
|
5638
|
+
historicUptimeDataPoints?: MachineDailyUptimePointDto[] | null;
|
|
5639
|
+
todayUptimeDataPoints?: MachineDailyUptimePointDto[] | null;
|
|
5640
|
+
constructor(data?: IMachineDailyUptimeDto);
|
|
5641
|
+
init(_data?: any): void;
|
|
5642
|
+
static fromJS(data: any): MachineDailyUptimeDto;
|
|
5643
|
+
toJSON(data?: any): any;
|
|
5644
|
+
}
|
|
5645
|
+
export interface IMachineDailyUptimeDto {
|
|
5646
|
+
date?: Date;
|
|
5647
|
+
historicUptimeDataPoints?: MachineDailyUptimePointDto[] | null;
|
|
5648
|
+
todayUptimeDataPoints?: MachineDailyUptimePointDto[] | null;
|
|
5649
|
+
}
|
|
5650
|
+
export declare class MachineDailyUptimePointDto implements IMachineDailyUptimePointDto {
|
|
5651
|
+
date?: Date;
|
|
5652
|
+
uptime?: number;
|
|
5653
|
+
constructor(data?: IMachineDailyUptimePointDto);
|
|
5654
|
+
init(_data?: any): void;
|
|
5655
|
+
static fromJS(data: any): MachineDailyUptimePointDto;
|
|
5656
|
+
toJSON(data?: any): any;
|
|
5657
|
+
}
|
|
5658
|
+
export interface IMachineDailyUptimePointDto {
|
|
5659
|
+
date?: Date;
|
|
5660
|
+
uptime?: number;
|
|
5661
|
+
}
|
|
5633
5662
|
export declare class MachineDto implements IMachineDto {
|
|
5634
5663
|
id: number;
|
|
5635
5664
|
externalId: string;
|
|
@@ -10081,6 +10110,7 @@ export type MaterialPickStatus = "NotRequired" | "NotStarted" | "Started" | "Com
|
|
|
10081
10110
|
export declare class ListProductionScheduleOperationsRequest implements IListProductionScheduleOperationsRequest {
|
|
10082
10111
|
resourceGroup?: string | null;
|
|
10083
10112
|
resourceId?: string | null;
|
|
10113
|
+
departmentNumber?: string | null;
|
|
10084
10114
|
pageSize?: number;
|
|
10085
10115
|
continuationToken?: string | null;
|
|
10086
10116
|
workOrderId?: string | null;
|
|
@@ -10113,6 +10143,7 @@ export declare class ListProductionScheduleOperationsRequest implements IListPro
|
|
|
10113
10143
|
export interface IListProductionScheduleOperationsRequest {
|
|
10114
10144
|
resourceGroup?: string | null;
|
|
10115
10145
|
resourceId?: string | null;
|
|
10146
|
+
departmentNumber?: string | null;
|
|
10116
10147
|
pageSize?: number;
|
|
10117
10148
|
continuationToken?: string | null;
|
|
10118
10149
|
workOrderId?: string | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -6170,6 +6170,51 @@ export class KpiClient extends AuthorizedApiBase {
|
|
|
6170
6170
|
}
|
|
6171
6171
|
return Promise.resolve(null);
|
|
6172
6172
|
}
|
|
6173
|
+
getMachineDailyUptime(machineExternalId, date) {
|
|
6174
|
+
let url_ = this.baseUrl + "/kpi/daily-uptime?";
|
|
6175
|
+
if (machineExternalId === null)
|
|
6176
|
+
throw new Error("The parameter 'machineExternalId' cannot be null.");
|
|
6177
|
+
else if (machineExternalId !== undefined)
|
|
6178
|
+
url_ += "machineExternalId=" + encodeURIComponent("" + machineExternalId) + "&";
|
|
6179
|
+
if (date === null)
|
|
6180
|
+
throw new Error("The parameter 'date' cannot be null.");
|
|
6181
|
+
else if (date !== undefined)
|
|
6182
|
+
url_ += "date=" + encodeURIComponent(date ? "" + date.toISOString() : "") + "&";
|
|
6183
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6184
|
+
let options_ = {
|
|
6185
|
+
method: "GET",
|
|
6186
|
+
headers: {
|
|
6187
|
+
"Accept": "application/json"
|
|
6188
|
+
}
|
|
6189
|
+
};
|
|
6190
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6191
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6192
|
+
}).then((_response) => {
|
|
6193
|
+
return this.processGetMachineDailyUptime(_response);
|
|
6194
|
+
});
|
|
6195
|
+
}
|
|
6196
|
+
processGetMachineDailyUptime(response) {
|
|
6197
|
+
const status = response.status;
|
|
6198
|
+
let _headers = {};
|
|
6199
|
+
if (response.headers && response.headers.forEach) {
|
|
6200
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
6201
|
+
}
|
|
6202
|
+
;
|
|
6203
|
+
if (status === 200) {
|
|
6204
|
+
return response.text().then((_responseText) => {
|
|
6205
|
+
let result200 = null;
|
|
6206
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6207
|
+
result200 = MachineDailyUptimeDto.fromJS(resultData200);
|
|
6208
|
+
return result200;
|
|
6209
|
+
});
|
|
6210
|
+
}
|
|
6211
|
+
else if (status !== 200 && status !== 204) {
|
|
6212
|
+
return response.text().then((_responseText) => {
|
|
6213
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6214
|
+
});
|
|
6215
|
+
}
|
|
6216
|
+
return Promise.resolve(null);
|
|
6217
|
+
}
|
|
6173
6218
|
}
|
|
6174
6219
|
export class MachinesClient extends AuthorizedApiBase {
|
|
6175
6220
|
constructor(configuration, baseUrl, http) {
|
|
@@ -14773,12 +14818,14 @@ export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
|
14773
14818
|
this.http = http ? http : window;
|
|
14774
14819
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
14775
14820
|
}
|
|
14776
|
-
listProductionScheduleOperations(resourceGroup, resourceId, pageSize, continuationToken, workOrderId, projectId, partNumber, partName, material) {
|
|
14821
|
+
listProductionScheduleOperations(resourceGroup, resourceId, departmentNumber, pageSize, continuationToken, workOrderId, projectId, partNumber, partName, material) {
|
|
14777
14822
|
let url_ = this.baseUrl + "/mes/productionschedule?";
|
|
14778
14823
|
if (resourceGroup !== undefined && resourceGroup !== null)
|
|
14779
14824
|
url_ += "resourceGroup=" + encodeURIComponent("" + resourceGroup) + "&";
|
|
14780
14825
|
if (resourceId !== undefined && resourceId !== null)
|
|
14781
14826
|
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
14827
|
+
if (departmentNumber !== undefined && departmentNumber !== null)
|
|
14828
|
+
url_ += "departmentNumber=" + encodeURIComponent("" + departmentNumber) + "&";
|
|
14782
14829
|
if (pageSize === null)
|
|
14783
14830
|
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
14784
14831
|
else if (pageSize !== undefined)
|
|
@@ -27313,8 +27360,8 @@ export class MachineKpiDto {
|
|
|
27313
27360
|
init(_data) {
|
|
27314
27361
|
if (_data) {
|
|
27315
27362
|
this.date = _data["date"] ? new Date(_data["date"].toString()) : undefined;
|
|
27316
|
-
this.hoursCapacity = _data["hoursCapacity"];
|
|
27317
27363
|
this.uptime = _data["uptime"];
|
|
27364
|
+
this.capacity = _data["capacity"];
|
|
27318
27365
|
this.utilizationGoal = _data["utilizationGoal"];
|
|
27319
27366
|
}
|
|
27320
27367
|
}
|
|
@@ -27327,12 +27374,86 @@ export class MachineKpiDto {
|
|
|
27327
27374
|
toJSON(data) {
|
|
27328
27375
|
data = typeof data === 'object' ? data : {};
|
|
27329
27376
|
data["date"] = this.date ? this.date.toISOString() : undefined;
|
|
27330
|
-
data["hoursCapacity"] = this.hoursCapacity;
|
|
27331
27377
|
data["uptime"] = this.uptime;
|
|
27378
|
+
data["capacity"] = this.capacity;
|
|
27332
27379
|
data["utilizationGoal"] = this.utilizationGoal;
|
|
27333
27380
|
return data;
|
|
27334
27381
|
}
|
|
27335
27382
|
}
|
|
27383
|
+
export class MachineDailyUptimeDto {
|
|
27384
|
+
constructor(data) {
|
|
27385
|
+
if (data) {
|
|
27386
|
+
for (var property in data) {
|
|
27387
|
+
if (data.hasOwnProperty(property))
|
|
27388
|
+
this[property] = data[property];
|
|
27389
|
+
}
|
|
27390
|
+
}
|
|
27391
|
+
}
|
|
27392
|
+
init(_data) {
|
|
27393
|
+
if (_data) {
|
|
27394
|
+
this.date = _data["date"] ? new Date(_data["date"].toString()) : undefined;
|
|
27395
|
+
if (Array.isArray(_data["historicUptimeDataPoints"])) {
|
|
27396
|
+
this.historicUptimeDataPoints = [];
|
|
27397
|
+
for (let item of _data["historicUptimeDataPoints"])
|
|
27398
|
+
this.historicUptimeDataPoints.push(MachineDailyUptimePointDto.fromJS(item));
|
|
27399
|
+
}
|
|
27400
|
+
if (Array.isArray(_data["todayUptimeDataPoints"])) {
|
|
27401
|
+
this.todayUptimeDataPoints = [];
|
|
27402
|
+
for (let item of _data["todayUptimeDataPoints"])
|
|
27403
|
+
this.todayUptimeDataPoints.push(MachineDailyUptimePointDto.fromJS(item));
|
|
27404
|
+
}
|
|
27405
|
+
}
|
|
27406
|
+
}
|
|
27407
|
+
static fromJS(data) {
|
|
27408
|
+
data = typeof data === 'object' ? data : {};
|
|
27409
|
+
let result = new MachineDailyUptimeDto();
|
|
27410
|
+
result.init(data);
|
|
27411
|
+
return result;
|
|
27412
|
+
}
|
|
27413
|
+
toJSON(data) {
|
|
27414
|
+
data = typeof data === 'object' ? data : {};
|
|
27415
|
+
data["date"] = this.date ? this.date.toISOString() : undefined;
|
|
27416
|
+
if (Array.isArray(this.historicUptimeDataPoints)) {
|
|
27417
|
+
data["historicUptimeDataPoints"] = [];
|
|
27418
|
+
for (let item of this.historicUptimeDataPoints)
|
|
27419
|
+
data["historicUptimeDataPoints"].push(item.toJSON());
|
|
27420
|
+
}
|
|
27421
|
+
if (Array.isArray(this.todayUptimeDataPoints)) {
|
|
27422
|
+
data["todayUptimeDataPoints"] = [];
|
|
27423
|
+
for (let item of this.todayUptimeDataPoints)
|
|
27424
|
+
data["todayUptimeDataPoints"].push(item.toJSON());
|
|
27425
|
+
}
|
|
27426
|
+
return data;
|
|
27427
|
+
}
|
|
27428
|
+
}
|
|
27429
|
+
export class MachineDailyUptimePointDto {
|
|
27430
|
+
constructor(data) {
|
|
27431
|
+
if (data) {
|
|
27432
|
+
for (var property in data) {
|
|
27433
|
+
if (data.hasOwnProperty(property))
|
|
27434
|
+
this[property] = data[property];
|
|
27435
|
+
}
|
|
27436
|
+
}
|
|
27437
|
+
}
|
|
27438
|
+
init(_data) {
|
|
27439
|
+
if (_data) {
|
|
27440
|
+
this.date = _data["date"] ? new Date(_data["date"].toString()) : undefined;
|
|
27441
|
+
this.uptime = _data["uptime"];
|
|
27442
|
+
}
|
|
27443
|
+
}
|
|
27444
|
+
static fromJS(data) {
|
|
27445
|
+
data = typeof data === 'object' ? data : {};
|
|
27446
|
+
let result = new MachineDailyUptimePointDto();
|
|
27447
|
+
result.init(data);
|
|
27448
|
+
return result;
|
|
27449
|
+
}
|
|
27450
|
+
toJSON(data) {
|
|
27451
|
+
data = typeof data === 'object' ? data : {};
|
|
27452
|
+
data["date"] = this.date ? this.date.toISOString() : undefined;
|
|
27453
|
+
data["uptime"] = this.uptime;
|
|
27454
|
+
return data;
|
|
27455
|
+
}
|
|
27456
|
+
}
|
|
27336
27457
|
export class MachineDto {
|
|
27337
27458
|
constructor(data) {
|
|
27338
27459
|
if (data) {
|
|
@@ -36223,6 +36344,7 @@ export class ListProductionScheduleOperationsRequest {
|
|
|
36223
36344
|
if (_data) {
|
|
36224
36345
|
this.resourceGroup = _data["resourceGroup"];
|
|
36225
36346
|
this.resourceId = _data["resourceId"];
|
|
36347
|
+
this.departmentNumber = _data["departmentNumber"];
|
|
36226
36348
|
this.pageSize = _data["pageSize"];
|
|
36227
36349
|
this.continuationToken = _data["continuationToken"];
|
|
36228
36350
|
this.workOrderId = _data["workOrderId"];
|
|
@@ -36303,6 +36425,7 @@ export class ListProductionScheduleOperationsRequest {
|
|
|
36303
36425
|
data = typeof data === 'object' ? data : {};
|
|
36304
36426
|
data["resourceGroup"] = this.resourceGroup;
|
|
36305
36427
|
data["resourceId"] = this.resourceId;
|
|
36428
|
+
data["departmentNumber"] = this.departmentNumber;
|
|
36306
36429
|
data["pageSize"] = this.pageSize;
|
|
36307
36430
|
data["continuationToken"] = this.continuationToken;
|
|
36308
36431
|
data["workOrderId"] = this.workOrderId;
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -6561,6 +6561,8 @@ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient
|
|
|
6561
6561
|
export interface IKpiClient {
|
|
6562
6562
|
|
|
6563
6563
|
getMachineKpi(machineExternalId: string | undefined, startDate: Date | undefined, endDate: Date | undefined): Promise<MachineKpiDto[]>;
|
|
6564
|
+
|
|
6565
|
+
getMachineDailyUptime(machineExternalId: string | undefined, date: Date | undefined): Promise<MachineDailyUptimeDto>;
|
|
6564
6566
|
}
|
|
6565
6567
|
|
|
6566
6568
|
export class KpiClient extends AuthorizedApiBase implements IKpiClient {
|
|
@@ -6625,6 +6627,50 @@ export class KpiClient extends AuthorizedApiBase implements IKpiClient {
|
|
|
6625
6627
|
}
|
|
6626
6628
|
return Promise.resolve<MachineKpiDto[]>(null as any);
|
|
6627
6629
|
}
|
|
6630
|
+
|
|
6631
|
+
getMachineDailyUptime(machineExternalId: string | undefined, date: Date | undefined): Promise<MachineDailyUptimeDto> {
|
|
6632
|
+
let url_ = this.baseUrl + "/kpi/daily-uptime?";
|
|
6633
|
+
if (machineExternalId === null)
|
|
6634
|
+
throw new Error("The parameter 'machineExternalId' cannot be null.");
|
|
6635
|
+
else if (machineExternalId !== undefined)
|
|
6636
|
+
url_ += "machineExternalId=" + encodeURIComponent("" + machineExternalId) + "&";
|
|
6637
|
+
if (date === null)
|
|
6638
|
+
throw new Error("The parameter 'date' cannot be null.");
|
|
6639
|
+
else if (date !== undefined)
|
|
6640
|
+
url_ += "date=" + encodeURIComponent(date ? "" + date.toISOString() : "") + "&";
|
|
6641
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6642
|
+
|
|
6643
|
+
let options_: RequestInit = {
|
|
6644
|
+
method: "GET",
|
|
6645
|
+
headers: {
|
|
6646
|
+
"Accept": "application/json"
|
|
6647
|
+
}
|
|
6648
|
+
};
|
|
6649
|
+
|
|
6650
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6651
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6652
|
+
}).then((_response: Response) => {
|
|
6653
|
+
return this.processGetMachineDailyUptime(_response);
|
|
6654
|
+
});
|
|
6655
|
+
}
|
|
6656
|
+
|
|
6657
|
+
protected processGetMachineDailyUptime(response: Response): Promise<MachineDailyUptimeDto> {
|
|
6658
|
+
const status = response.status;
|
|
6659
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6660
|
+
if (status === 200) {
|
|
6661
|
+
return response.text().then((_responseText) => {
|
|
6662
|
+
let result200: any = null;
|
|
6663
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6664
|
+
result200 = MachineDailyUptimeDto.fromJS(resultData200);
|
|
6665
|
+
return result200;
|
|
6666
|
+
});
|
|
6667
|
+
} else if (status !== 200 && status !== 204) {
|
|
6668
|
+
return response.text().then((_responseText) => {
|
|
6669
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6670
|
+
});
|
|
6671
|
+
}
|
|
6672
|
+
return Promise.resolve<MachineDailyUptimeDto>(null as any);
|
|
6673
|
+
}
|
|
6628
6674
|
}
|
|
6629
6675
|
|
|
6630
6676
|
export interface IMachinesClient {
|
|
@@ -15795,7 +15841,7 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
|
|
|
15795
15841
|
|
|
15796
15842
|
export interface IMesProductionScheduleClient {
|
|
15797
15843
|
|
|
15798
|
-
listProductionScheduleOperations(resourceGroup: string | null | undefined, resourceId: string | null | undefined, pageSize: number | undefined, continuationToken: string | null | undefined, workOrderId: string | null | undefined, projectId: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, material: string | null | undefined): Promise<PagedResultOfProductionScheduleOperationDto>;
|
|
15844
|
+
listProductionScheduleOperations(resourceGroup: string | null | undefined, resourceId: string | null | undefined, departmentNumber: string | null | undefined, pageSize: number | undefined, continuationToken: string | null | undefined, workOrderId: string | null | undefined, projectId: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, material: string | null | undefined): Promise<PagedResultOfProductionScheduleOperationDto>;
|
|
15799
15845
|
|
|
15800
15846
|
postListProductionScheduleOperations(request: ListProductionScheduleOperationsRequest | undefined): Promise<PagedResultOfProductionScheduleOperationDto>;
|
|
15801
15847
|
|
|
@@ -15821,12 +15867,14 @@ export class MesProductionScheduleClient extends AuthorizedApiBase implements IM
|
|
|
15821
15867
|
this.baseUrl = baseUrl ?? "";
|
|
15822
15868
|
}
|
|
15823
15869
|
|
|
15824
|
-
listProductionScheduleOperations(resourceGroup: string | null | undefined, resourceId: string | null | undefined, pageSize: number | undefined, continuationToken: string | null | undefined, workOrderId: string | null | undefined, projectId: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, material: string | null | undefined): Promise<PagedResultOfProductionScheduleOperationDto> {
|
|
15870
|
+
listProductionScheduleOperations(resourceGroup: string | null | undefined, resourceId: string | null | undefined, departmentNumber: string | null | undefined, pageSize: number | undefined, continuationToken: string | null | undefined, workOrderId: string | null | undefined, projectId: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, material: string | null | undefined): Promise<PagedResultOfProductionScheduleOperationDto> {
|
|
15825
15871
|
let url_ = this.baseUrl + "/mes/productionschedule?";
|
|
15826
15872
|
if (resourceGroup !== undefined && resourceGroup !== null)
|
|
15827
15873
|
url_ += "resourceGroup=" + encodeURIComponent("" + resourceGroup) + "&";
|
|
15828
15874
|
if (resourceId !== undefined && resourceId !== null)
|
|
15829
15875
|
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
15876
|
+
if (departmentNumber !== undefined && departmentNumber !== null)
|
|
15877
|
+
url_ += "departmentNumber=" + encodeURIComponent("" + departmentNumber) + "&";
|
|
15830
15878
|
if (pageSize === null)
|
|
15831
15879
|
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
15832
15880
|
else if (pageSize !== undefined)
|
|
@@ -31822,8 +31870,8 @@ export interface IUpdateCalenderCapacity {
|
|
|
31822
31870
|
|
|
31823
31871
|
export class MachineKpiDto implements IMachineKpiDto {
|
|
31824
31872
|
date?: Date;
|
|
31825
|
-
hoursCapacity?: number;
|
|
31826
31873
|
uptime?: number;
|
|
31874
|
+
capacity?: number;
|
|
31827
31875
|
utilizationGoal?: number;
|
|
31828
31876
|
|
|
31829
31877
|
constructor(data?: IMachineKpiDto) {
|
|
@@ -31838,8 +31886,8 @@ export class MachineKpiDto implements IMachineKpiDto {
|
|
|
31838
31886
|
init(_data?: any) {
|
|
31839
31887
|
if (_data) {
|
|
31840
31888
|
this.date = _data["date"] ? new Date(_data["date"].toString()) : <any>undefined;
|
|
31841
|
-
this.hoursCapacity = _data["hoursCapacity"];
|
|
31842
31889
|
this.uptime = _data["uptime"];
|
|
31890
|
+
this.capacity = _data["capacity"];
|
|
31843
31891
|
this.utilizationGoal = _data["utilizationGoal"];
|
|
31844
31892
|
}
|
|
31845
31893
|
}
|
|
@@ -31854,8 +31902,8 @@ export class MachineKpiDto implements IMachineKpiDto {
|
|
|
31854
31902
|
toJSON(data?: any) {
|
|
31855
31903
|
data = typeof data === 'object' ? data : {};
|
|
31856
31904
|
data["date"] = this.date ? this.date.toISOString() : <any>undefined;
|
|
31857
|
-
data["hoursCapacity"] = this.hoursCapacity;
|
|
31858
31905
|
data["uptime"] = this.uptime;
|
|
31906
|
+
data["capacity"] = this.capacity;
|
|
31859
31907
|
data["utilizationGoal"] = this.utilizationGoal;
|
|
31860
31908
|
return data;
|
|
31861
31909
|
}
|
|
@@ -31863,11 +31911,111 @@ export class MachineKpiDto implements IMachineKpiDto {
|
|
|
31863
31911
|
|
|
31864
31912
|
export interface IMachineKpiDto {
|
|
31865
31913
|
date?: Date;
|
|
31866
|
-
hoursCapacity?: number;
|
|
31867
31914
|
uptime?: number;
|
|
31915
|
+
capacity?: number;
|
|
31868
31916
|
utilizationGoal?: number;
|
|
31869
31917
|
}
|
|
31870
31918
|
|
|
31919
|
+
export class MachineDailyUptimeDto implements IMachineDailyUptimeDto {
|
|
31920
|
+
date?: Date;
|
|
31921
|
+
historicUptimeDataPoints?: MachineDailyUptimePointDto[] | null;
|
|
31922
|
+
todayUptimeDataPoints?: MachineDailyUptimePointDto[] | null;
|
|
31923
|
+
|
|
31924
|
+
constructor(data?: IMachineDailyUptimeDto) {
|
|
31925
|
+
if (data) {
|
|
31926
|
+
for (var property in data) {
|
|
31927
|
+
if (data.hasOwnProperty(property))
|
|
31928
|
+
(<any>this)[property] = (<any>data)[property];
|
|
31929
|
+
}
|
|
31930
|
+
}
|
|
31931
|
+
}
|
|
31932
|
+
|
|
31933
|
+
init(_data?: any) {
|
|
31934
|
+
if (_data) {
|
|
31935
|
+
this.date = _data["date"] ? new Date(_data["date"].toString()) : <any>undefined;
|
|
31936
|
+
if (Array.isArray(_data["historicUptimeDataPoints"])) {
|
|
31937
|
+
this.historicUptimeDataPoints = [] as any;
|
|
31938
|
+
for (let item of _data["historicUptimeDataPoints"])
|
|
31939
|
+
this.historicUptimeDataPoints!.push(MachineDailyUptimePointDto.fromJS(item));
|
|
31940
|
+
}
|
|
31941
|
+
if (Array.isArray(_data["todayUptimeDataPoints"])) {
|
|
31942
|
+
this.todayUptimeDataPoints = [] as any;
|
|
31943
|
+
for (let item of _data["todayUptimeDataPoints"])
|
|
31944
|
+
this.todayUptimeDataPoints!.push(MachineDailyUptimePointDto.fromJS(item));
|
|
31945
|
+
}
|
|
31946
|
+
}
|
|
31947
|
+
}
|
|
31948
|
+
|
|
31949
|
+
static fromJS(data: any): MachineDailyUptimeDto {
|
|
31950
|
+
data = typeof data === 'object' ? data : {};
|
|
31951
|
+
let result = new MachineDailyUptimeDto();
|
|
31952
|
+
result.init(data);
|
|
31953
|
+
return result;
|
|
31954
|
+
}
|
|
31955
|
+
|
|
31956
|
+
toJSON(data?: any) {
|
|
31957
|
+
data = typeof data === 'object' ? data : {};
|
|
31958
|
+
data["date"] = this.date ? this.date.toISOString() : <any>undefined;
|
|
31959
|
+
if (Array.isArray(this.historicUptimeDataPoints)) {
|
|
31960
|
+
data["historicUptimeDataPoints"] = [];
|
|
31961
|
+
for (let item of this.historicUptimeDataPoints)
|
|
31962
|
+
data["historicUptimeDataPoints"].push(item.toJSON());
|
|
31963
|
+
}
|
|
31964
|
+
if (Array.isArray(this.todayUptimeDataPoints)) {
|
|
31965
|
+
data["todayUptimeDataPoints"] = [];
|
|
31966
|
+
for (let item of this.todayUptimeDataPoints)
|
|
31967
|
+
data["todayUptimeDataPoints"].push(item.toJSON());
|
|
31968
|
+
}
|
|
31969
|
+
return data;
|
|
31970
|
+
}
|
|
31971
|
+
}
|
|
31972
|
+
|
|
31973
|
+
export interface IMachineDailyUptimeDto {
|
|
31974
|
+
date?: Date;
|
|
31975
|
+
historicUptimeDataPoints?: MachineDailyUptimePointDto[] | null;
|
|
31976
|
+
todayUptimeDataPoints?: MachineDailyUptimePointDto[] | null;
|
|
31977
|
+
}
|
|
31978
|
+
|
|
31979
|
+
export class MachineDailyUptimePointDto implements IMachineDailyUptimePointDto {
|
|
31980
|
+
date?: Date;
|
|
31981
|
+
uptime?: number;
|
|
31982
|
+
|
|
31983
|
+
constructor(data?: IMachineDailyUptimePointDto) {
|
|
31984
|
+
if (data) {
|
|
31985
|
+
for (var property in data) {
|
|
31986
|
+
if (data.hasOwnProperty(property))
|
|
31987
|
+
(<any>this)[property] = (<any>data)[property];
|
|
31988
|
+
}
|
|
31989
|
+
}
|
|
31990
|
+
}
|
|
31991
|
+
|
|
31992
|
+
init(_data?: any) {
|
|
31993
|
+
if (_data) {
|
|
31994
|
+
this.date = _data["date"] ? new Date(_data["date"].toString()) : <any>undefined;
|
|
31995
|
+
this.uptime = _data["uptime"];
|
|
31996
|
+
}
|
|
31997
|
+
}
|
|
31998
|
+
|
|
31999
|
+
static fromJS(data: any): MachineDailyUptimePointDto {
|
|
32000
|
+
data = typeof data === 'object' ? data : {};
|
|
32001
|
+
let result = new MachineDailyUptimePointDto();
|
|
32002
|
+
result.init(data);
|
|
32003
|
+
return result;
|
|
32004
|
+
}
|
|
32005
|
+
|
|
32006
|
+
toJSON(data?: any) {
|
|
32007
|
+
data = typeof data === 'object' ? data : {};
|
|
32008
|
+
data["date"] = this.date ? this.date.toISOString() : <any>undefined;
|
|
32009
|
+
data["uptime"] = this.uptime;
|
|
32010
|
+
return data;
|
|
32011
|
+
}
|
|
32012
|
+
}
|
|
32013
|
+
|
|
32014
|
+
export interface IMachineDailyUptimePointDto {
|
|
32015
|
+
date?: Date;
|
|
32016
|
+
uptime?: number;
|
|
32017
|
+
}
|
|
32018
|
+
|
|
31871
32019
|
export class MachineDto implements IMachineDto {
|
|
31872
32020
|
id!: number;
|
|
31873
32021
|
externalId!: string;
|
|
@@ -45216,6 +45364,7 @@ export type MaterialPickStatus = "NotRequired" | "NotStarted" | "Started" | "Com
|
|
|
45216
45364
|
export class ListProductionScheduleOperationsRequest implements IListProductionScheduleOperationsRequest {
|
|
45217
45365
|
resourceGroup?: string | null;
|
|
45218
45366
|
resourceId?: string | null;
|
|
45367
|
+
departmentNumber?: string | null;
|
|
45219
45368
|
pageSize?: number;
|
|
45220
45369
|
continuationToken?: string | null;
|
|
45221
45370
|
workOrderId?: string | null;
|
|
@@ -45254,6 +45403,7 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
|
|
|
45254
45403
|
if (_data) {
|
|
45255
45404
|
this.resourceGroup = _data["resourceGroup"];
|
|
45256
45405
|
this.resourceId = _data["resourceId"];
|
|
45406
|
+
this.departmentNumber = _data["departmentNumber"];
|
|
45257
45407
|
this.pageSize = _data["pageSize"];
|
|
45258
45408
|
this.continuationToken = _data["continuationToken"];
|
|
45259
45409
|
this.workOrderId = _data["workOrderId"];
|
|
@@ -45336,6 +45486,7 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
|
|
|
45336
45486
|
data = typeof data === 'object' ? data : {};
|
|
45337
45487
|
data["resourceGroup"] = this.resourceGroup;
|
|
45338
45488
|
data["resourceId"] = this.resourceId;
|
|
45489
|
+
data["departmentNumber"] = this.departmentNumber;
|
|
45339
45490
|
data["pageSize"] = this.pageSize;
|
|
45340
45491
|
data["continuationToken"] = this.continuationToken;
|
|
45341
45492
|
data["workOrderId"] = this.workOrderId;
|
|
@@ -45411,6 +45562,7 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
|
|
|
45411
45562
|
export interface IListProductionScheduleOperationsRequest {
|
|
45412
45563
|
resourceGroup?: string | null;
|
|
45413
45564
|
resourceId?: string | null;
|
|
45565
|
+
departmentNumber?: string | null;
|
|
45414
45566
|
pageSize?: number;
|
|
45415
45567
|
continuationToken?: string | null;
|
|
45416
45568
|
workOrderId?: string | null;
|