@ignos/api-client 20241125.0.10760 → 20241202.0.10790
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 +50 -33
- package/lib/ignosportal-api.js +153 -113
- package/package.json +1 -1
- package/src/ignosportal-api.ts +195 -145
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -349,10 +349,10 @@ export declare class SustainabilityClient extends AuthorizedApiBase implements I
|
|
|
349
349
|
protected processCreateCustomerOrderLineGhgReport(response: Response): Promise<DownloadDto>;
|
|
350
350
|
}
|
|
351
351
|
export interface IMachineAlarmsClient {
|
|
352
|
-
listMachineAlarms(alarmType: MachineAlarmType | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, limit: number | undefined, continuationToken: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined): Promise<PagedResultOfMachineAlarmDto>;
|
|
352
|
+
listMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, limit: number | undefined, continuationToken: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined): Promise<PagedResultOfMachineAlarmDto>;
|
|
353
353
|
listAlarmsPerMachine(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSummaryDto[]>;
|
|
354
354
|
listAlarmSeverityOccurrences(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSeverityOccurenceDto[]>;
|
|
355
|
-
countMachineAlarms(alarmType: MachineAlarmType | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined): Promise<MachineAlarmCountDto>;
|
|
355
|
+
countMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined): Promise<MachineAlarmCountDto>;
|
|
356
356
|
getMachineAlarmDetails(id: number): Promise<MachineAlarmDetailsDto>;
|
|
357
357
|
}
|
|
358
358
|
export declare class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAlarmsClient {
|
|
@@ -362,13 +362,13 @@ export declare class MachineAlarmsClient extends AuthorizedApiBase implements IM
|
|
|
362
362
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
363
363
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
364
364
|
});
|
|
365
|
-
listMachineAlarms(alarmType: MachineAlarmType | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, limit: number | undefined, continuationToken: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined): Promise<PagedResultOfMachineAlarmDto>;
|
|
365
|
+
listMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, limit: number | undefined, continuationToken: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined): Promise<PagedResultOfMachineAlarmDto>;
|
|
366
366
|
protected processListMachineAlarms(response: Response): Promise<PagedResultOfMachineAlarmDto>;
|
|
367
367
|
listAlarmsPerMachine(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSummaryDto[]>;
|
|
368
368
|
protected processListAlarmsPerMachine(response: Response): Promise<MachineAlarmSummaryDto[]>;
|
|
369
369
|
listAlarmSeverityOccurrences(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSeverityOccurenceDto[]>;
|
|
370
370
|
protected processListAlarmSeverityOccurrences(response: Response): Promise<MachineAlarmSeverityOccurenceDto[]>;
|
|
371
|
-
countMachineAlarms(alarmType: MachineAlarmType | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined): Promise<MachineAlarmCountDto>;
|
|
371
|
+
countMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined): Promise<MachineAlarmCountDto>;
|
|
372
372
|
protected processCountMachineAlarms(response: Response): Promise<MachineAlarmCountDto>;
|
|
373
373
|
getMachineAlarmDetails(id: number): Promise<MachineAlarmDetailsDto>;
|
|
374
374
|
protected processGetMachineAlarmDetails(response: Response): Promise<MachineAlarmDetailsDto>;
|
|
@@ -1674,6 +1674,19 @@ export declare class MesLinksClient extends AuthorizedApiBase implements IMesLin
|
|
|
1674
1674
|
deleteMesLink(id: string): Promise<void>;
|
|
1675
1675
|
protected processDeleteMesLink(response: Response): Promise<void>;
|
|
1676
1676
|
}
|
|
1677
|
+
export interface IMesOrMoveClient {
|
|
1678
|
+
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
1679
|
+
}
|
|
1680
|
+
export declare class MesOrMoveClient extends AuthorizedApiBase implements IMesOrMoveClient {
|
|
1681
|
+
private http;
|
|
1682
|
+
private baseUrl;
|
|
1683
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
1684
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
1685
|
+
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
1686
|
+
});
|
|
1687
|
+
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
1688
|
+
protected processGetPrintableLabels(response: Response): Promise<DownloadDto>;
|
|
1689
|
+
}
|
|
1677
1690
|
export interface IMesProductionOrderClient {
|
|
1678
1691
|
getProductionOrder(id: string): Promise<ProductionOrderDto>;
|
|
1679
1692
|
getProductionOrderBom(id: string, operation: number | null | undefined): Promise<ProductionOrderBomDto[]>;
|
|
@@ -1683,7 +1696,6 @@ export interface IMesProductionOrderClient {
|
|
|
1683
1696
|
getProductionOrderBomNonConformances(id: string): Promise<NonConformanceDto[]>;
|
|
1684
1697
|
postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
|
|
1685
1698
|
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
|
|
1686
|
-
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
1687
1699
|
}
|
|
1688
1700
|
export declare class MesProductionOrderClient extends AuthorizedApiBase implements IMesProductionOrderClient {
|
|
1689
1701
|
private http;
|
|
@@ -1708,8 +1720,6 @@ export declare class MesProductionOrderClient extends AuthorizedApiBase implemen
|
|
|
1708
1720
|
protected processPostMaterialPickList(response: Response): Promise<MaterialPickListResultDto>;
|
|
1709
1721
|
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
|
|
1710
1722
|
protected processListProductionOrderActivities(response: Response): Promise<ProductionOrderOperationActivityDto[]>;
|
|
1711
|
-
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
1712
|
-
protected processGetPrintableLabels(response: Response): Promise<DownloadDto>;
|
|
1713
1723
|
}
|
|
1714
1724
|
export interface IMesProductionScheduleClient {
|
|
1715
1725
|
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>;
|
|
@@ -2297,6 +2307,10 @@ export interface IWorkordersClient {
|
|
|
2297
2307
|
* Update start time and/or end time of an existing work order operation event
|
|
2298
2308
|
*/
|
|
2299
2309
|
updateWorkorderOperationEventTimestamps(eventId: string, request: UpdateWorkorderOperationEventTimestamps): Promise<void>;
|
|
2310
|
+
/**
|
|
2311
|
+
* Delete existing work order operation event.
|
|
2312
|
+
*/
|
|
2313
|
+
deleteWorkorderOperationEventById(eventId: string): Promise<void>;
|
|
2300
2314
|
/**
|
|
2301
2315
|
* Filter work order operation events
|
|
2302
2316
|
*/
|
|
@@ -2413,6 +2427,11 @@ export declare class WorkordersClient extends AuthorizedApiBase implements IWork
|
|
|
2413
2427
|
*/
|
|
2414
2428
|
updateWorkorderOperationEventTimestamps(eventId: string, request: UpdateWorkorderOperationEventTimestamps): Promise<void>;
|
|
2415
2429
|
protected processUpdateWorkorderOperationEventTimestamps(response: Response): Promise<void>;
|
|
2430
|
+
/**
|
|
2431
|
+
* Delete existing work order operation event.
|
|
2432
|
+
*/
|
|
2433
|
+
deleteWorkorderOperationEventById(eventId: string): Promise<void>;
|
|
2434
|
+
protected processDeleteWorkorderOperationEventById(response: Response): Promise<void>;
|
|
2416
2435
|
/**
|
|
2417
2436
|
* Filter work order operation events
|
|
2418
2437
|
*/
|
|
@@ -8702,6 +8721,28 @@ export interface IUpdateMesLink {
|
|
|
8702
8721
|
type?: MesLinkTypeDto;
|
|
8703
8722
|
companyId?: string | null;
|
|
8704
8723
|
}
|
|
8724
|
+
export declare class GeneratePrintableLabel implements IGeneratePrintableLabel {
|
|
8725
|
+
labelIds: LabelId[];
|
|
8726
|
+
constructor(data?: IGeneratePrintableLabel);
|
|
8727
|
+
init(_data?: any): void;
|
|
8728
|
+
static fromJS(data: any): GeneratePrintableLabel;
|
|
8729
|
+
toJSON(data?: any): any;
|
|
8730
|
+
}
|
|
8731
|
+
export interface IGeneratePrintableLabel {
|
|
8732
|
+
labelIds: LabelId[];
|
|
8733
|
+
}
|
|
8734
|
+
export declare class LabelId implements ILabelId {
|
|
8735
|
+
parcelId: string;
|
|
8736
|
+
trackingId?: string | null;
|
|
8737
|
+
constructor(data?: ILabelId);
|
|
8738
|
+
init(_data?: any): void;
|
|
8739
|
+
static fromJS(data: any): LabelId;
|
|
8740
|
+
toJSON(data?: any): any;
|
|
8741
|
+
}
|
|
8742
|
+
export interface ILabelId {
|
|
8743
|
+
parcelId: string;
|
|
8744
|
+
trackingId?: string | null;
|
|
8745
|
+
}
|
|
8705
8746
|
export declare class ProductionOrderDto implements IProductionOrderDto {
|
|
8706
8747
|
id: string;
|
|
8707
8748
|
companyId: string;
|
|
@@ -9199,28 +9240,6 @@ export interface IProductionOrderOperationActivityDto {
|
|
|
9199
9240
|
workType: WorkTypeDto;
|
|
9200
9241
|
}
|
|
9201
9242
|
export type WorkTypeDto = "None" | "Production" | "Setup";
|
|
9202
|
-
export declare class GeneratePrintableLabel implements IGeneratePrintableLabel {
|
|
9203
|
-
labelIds: LabelId[];
|
|
9204
|
-
constructor(data?: IGeneratePrintableLabel);
|
|
9205
|
-
init(_data?: any): void;
|
|
9206
|
-
static fromJS(data: any): GeneratePrintableLabel;
|
|
9207
|
-
toJSON(data?: any): any;
|
|
9208
|
-
}
|
|
9209
|
-
export interface IGeneratePrintableLabel {
|
|
9210
|
-
labelIds: LabelId[];
|
|
9211
|
-
}
|
|
9212
|
-
export declare class LabelId implements ILabelId {
|
|
9213
|
-
parcelId: string;
|
|
9214
|
-
trackingId?: string | null;
|
|
9215
|
-
constructor(data?: ILabelId);
|
|
9216
|
-
init(_data?: any): void;
|
|
9217
|
-
static fromJS(data: any): LabelId;
|
|
9218
|
-
toJSON(data?: any): any;
|
|
9219
|
-
}
|
|
9220
|
-
export interface ILabelId {
|
|
9221
|
-
parcelId: string;
|
|
9222
|
-
trackingId?: string | null;
|
|
9223
|
-
}
|
|
9224
9243
|
export declare class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
|
|
9225
9244
|
results: ProductionScheduleOperationDto[];
|
|
9226
9245
|
continuationToken?: string | null;
|
|
@@ -9645,7 +9664,6 @@ export interface IStoppedWorkDto {
|
|
|
9645
9664
|
}
|
|
9646
9665
|
export declare class StartOperations implements IStartOperations {
|
|
9647
9666
|
operations: StartOperationDto[];
|
|
9648
|
-
workType?: WorkTypeDto | null;
|
|
9649
9667
|
constructor(data?: IStartOperations);
|
|
9650
9668
|
init(_data?: any): void;
|
|
9651
9669
|
static fromJS(data: any): StartOperations;
|
|
@@ -9653,14 +9671,13 @@ export declare class StartOperations implements IStartOperations {
|
|
|
9653
9671
|
}
|
|
9654
9672
|
export interface IStartOperations {
|
|
9655
9673
|
operations: StartOperationDto[];
|
|
9656
|
-
workType?: WorkTypeDto | null;
|
|
9657
9674
|
}
|
|
9658
9675
|
export declare class StartOperationDto implements IStartOperationDto {
|
|
9659
9676
|
workOrder: string;
|
|
9660
9677
|
operationNumber: number;
|
|
9661
9678
|
startedQuantity?: number | null;
|
|
9662
9679
|
resource: string;
|
|
9663
|
-
workType
|
|
9680
|
+
workType: WorkTypeDto;
|
|
9664
9681
|
constructor(data?: IStartOperationDto);
|
|
9665
9682
|
init(_data?: any): void;
|
|
9666
9683
|
static fromJS(data: any): StartOperationDto;
|
|
@@ -9671,7 +9688,7 @@ export interface IStartOperationDto {
|
|
|
9671
9688
|
operationNumber: number;
|
|
9672
9689
|
startedQuantity?: number | null;
|
|
9673
9690
|
resource: string;
|
|
9674
|
-
workType
|
|
9691
|
+
workType: WorkTypeDto;
|
|
9675
9692
|
}
|
|
9676
9693
|
export declare class ReportOperationProgress implements IReportOperationProgress {
|
|
9677
9694
|
operations: ReportOperationProgressDto[];
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -1816,9 +1816,7 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
|
|
|
1816
1816
|
}
|
|
1817
1817
|
listMachineAlarms(alarmType, assetId, startTime, endTime, subType, nativeCode, nativeSeverity, name, sequence, limit, continuationToken, orderBy, sortDirection) {
|
|
1818
1818
|
let url_ = this.baseUrl + "/machinealarms?";
|
|
1819
|
-
if (alarmType
|
|
1820
|
-
throw new Error("The parameter 'alarmType' cannot be null.");
|
|
1821
|
-
else if (alarmType !== undefined)
|
|
1819
|
+
if (alarmType !== undefined && alarmType !== null)
|
|
1822
1820
|
url_ += "alarmType=" + encodeURIComponent("" + alarmType) + "&";
|
|
1823
1821
|
if (assetId === null)
|
|
1824
1822
|
throw new Error("The parameter 'assetId' cannot be null.");
|
|
@@ -1981,9 +1979,7 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
|
|
|
1981
1979
|
}
|
|
1982
1980
|
countMachineAlarms(alarmType, assetId, startTime, endTime, subType, nativeCode, nativeSeverity, name, sequence) {
|
|
1983
1981
|
let url_ = this.baseUrl + "/machinealarms/alarmcount?";
|
|
1984
|
-
if (alarmType
|
|
1985
|
-
throw new Error("The parameter 'alarmType' cannot be null.");
|
|
1986
|
-
else if (alarmType !== undefined)
|
|
1982
|
+
if (alarmType !== undefined && alarmType !== null)
|
|
1987
1983
|
url_ += "alarmType=" + encodeURIComponent("" + alarmType) + "&";
|
|
1988
1984
|
if (assetId === null)
|
|
1989
1985
|
throw new Error("The parameter 'assetId' cannot be null.");
|
|
@@ -13539,6 +13535,54 @@ export class MesLinksClient extends AuthorizedApiBase {
|
|
|
13539
13535
|
return Promise.resolve(null);
|
|
13540
13536
|
}
|
|
13541
13537
|
}
|
|
13538
|
+
export class MesOrMoveClient extends AuthorizedApiBase {
|
|
13539
|
+
constructor(configuration, baseUrl, http) {
|
|
13540
|
+
super(configuration);
|
|
13541
|
+
this.jsonParseReviver = undefined;
|
|
13542
|
+
this.http = http ? http : window;
|
|
13543
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
13544
|
+
}
|
|
13545
|
+
getPrintableLabels(request) {
|
|
13546
|
+
let url_ = this.baseUrl + "/mes/labels/printable";
|
|
13547
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
13548
|
+
const content_ = JSON.stringify(request);
|
|
13549
|
+
let options_ = {
|
|
13550
|
+
body: content_,
|
|
13551
|
+
method: "POST",
|
|
13552
|
+
headers: {
|
|
13553
|
+
"Content-Type": "application/json",
|
|
13554
|
+
"Accept": "application/json"
|
|
13555
|
+
}
|
|
13556
|
+
};
|
|
13557
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
13558
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
13559
|
+
}).then((_response) => {
|
|
13560
|
+
return this.processGetPrintableLabels(_response);
|
|
13561
|
+
});
|
|
13562
|
+
}
|
|
13563
|
+
processGetPrintableLabels(response) {
|
|
13564
|
+
const status = response.status;
|
|
13565
|
+
let _headers = {};
|
|
13566
|
+
if (response.headers && response.headers.forEach) {
|
|
13567
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
13568
|
+
}
|
|
13569
|
+
;
|
|
13570
|
+
if (status === 200) {
|
|
13571
|
+
return response.text().then((_responseText) => {
|
|
13572
|
+
let result200 = null;
|
|
13573
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13574
|
+
result200 = DownloadDto.fromJS(resultData200);
|
|
13575
|
+
return result200;
|
|
13576
|
+
});
|
|
13577
|
+
}
|
|
13578
|
+
else if (status !== 200 && status !== 204) {
|
|
13579
|
+
return response.text().then((_responseText) => {
|
|
13580
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
13581
|
+
});
|
|
13582
|
+
}
|
|
13583
|
+
return Promise.resolve(null);
|
|
13584
|
+
}
|
|
13585
|
+
}
|
|
13542
13586
|
export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
13543
13587
|
constructor(configuration, baseUrl, http) {
|
|
13544
13588
|
super(configuration);
|
|
@@ -13904,46 +13948,6 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
13904
13948
|
}
|
|
13905
13949
|
return Promise.resolve(null);
|
|
13906
13950
|
}
|
|
13907
|
-
getPrintableLabels(request) {
|
|
13908
|
-
let url_ = this.baseUrl + "/mes/labels/printable";
|
|
13909
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
13910
|
-
const content_ = JSON.stringify(request);
|
|
13911
|
-
let options_ = {
|
|
13912
|
-
body: content_,
|
|
13913
|
-
method: "POST",
|
|
13914
|
-
headers: {
|
|
13915
|
-
"Content-Type": "application/json",
|
|
13916
|
-
"Accept": "application/json"
|
|
13917
|
-
}
|
|
13918
|
-
};
|
|
13919
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
13920
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
13921
|
-
}).then((_response) => {
|
|
13922
|
-
return this.processGetPrintableLabels(_response);
|
|
13923
|
-
});
|
|
13924
|
-
}
|
|
13925
|
-
processGetPrintableLabels(response) {
|
|
13926
|
-
const status = response.status;
|
|
13927
|
-
let _headers = {};
|
|
13928
|
-
if (response.headers && response.headers.forEach) {
|
|
13929
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
13930
|
-
}
|
|
13931
|
-
;
|
|
13932
|
-
if (status === 200) {
|
|
13933
|
-
return response.text().then((_responseText) => {
|
|
13934
|
-
let result200 = null;
|
|
13935
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13936
|
-
result200 = DownloadDto.fromJS(resultData200);
|
|
13937
|
-
return result200;
|
|
13938
|
-
});
|
|
13939
|
-
}
|
|
13940
|
-
else if (status !== 200 && status !== 204) {
|
|
13941
|
-
return response.text().then((_responseText) => {
|
|
13942
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
13943
|
-
});
|
|
13944
|
-
}
|
|
13945
|
-
return Promise.resolve(null);
|
|
13946
|
-
}
|
|
13947
13951
|
}
|
|
13948
13952
|
export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
13949
13953
|
constructor(configuration, baseUrl, http) {
|
|
@@ -19720,6 +19724,44 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
19720
19724
|
}
|
|
19721
19725
|
return Promise.resolve(null);
|
|
19722
19726
|
}
|
|
19727
|
+
/**
|
|
19728
|
+
* Delete existing work order operation event.
|
|
19729
|
+
*/
|
|
19730
|
+
deleteWorkorderOperationEventById(eventId) {
|
|
19731
|
+
let url_ = this.baseUrl + "/erp/workorders/operations/events/{eventId}";
|
|
19732
|
+
if (eventId === undefined || eventId === null)
|
|
19733
|
+
throw new Error("The parameter 'eventId' must be defined.");
|
|
19734
|
+
url_ = url_.replace("{eventId}", encodeURIComponent("" + eventId));
|
|
19735
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
19736
|
+
let options_ = {
|
|
19737
|
+
method: "DELETE",
|
|
19738
|
+
headers: {}
|
|
19739
|
+
};
|
|
19740
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19741
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
19742
|
+
}).then((_response) => {
|
|
19743
|
+
return this.processDeleteWorkorderOperationEventById(_response);
|
|
19744
|
+
});
|
|
19745
|
+
}
|
|
19746
|
+
processDeleteWorkorderOperationEventById(response) {
|
|
19747
|
+
const status = response.status;
|
|
19748
|
+
let _headers = {};
|
|
19749
|
+
if (response.headers && response.headers.forEach) {
|
|
19750
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
19751
|
+
}
|
|
19752
|
+
;
|
|
19753
|
+
if (status === 204) {
|
|
19754
|
+
return response.text().then((_responseText) => {
|
|
19755
|
+
return;
|
|
19756
|
+
});
|
|
19757
|
+
}
|
|
19758
|
+
else if (status !== 200 && status !== 204) {
|
|
19759
|
+
return response.text().then((_responseText) => {
|
|
19760
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19761
|
+
});
|
|
19762
|
+
}
|
|
19763
|
+
return Promise.resolve(null);
|
|
19764
|
+
}
|
|
19723
19765
|
/**
|
|
19724
19766
|
* Filter work order operation events
|
|
19725
19767
|
*/
|
|
@@ -32770,6 +32812,71 @@ export class UpdateMesLink {
|
|
|
32770
32812
|
return data;
|
|
32771
32813
|
}
|
|
32772
32814
|
}
|
|
32815
|
+
export class GeneratePrintableLabel {
|
|
32816
|
+
constructor(data) {
|
|
32817
|
+
if (data) {
|
|
32818
|
+
for (var property in data) {
|
|
32819
|
+
if (data.hasOwnProperty(property))
|
|
32820
|
+
this[property] = data[property];
|
|
32821
|
+
}
|
|
32822
|
+
}
|
|
32823
|
+
if (!data) {
|
|
32824
|
+
this.labelIds = [];
|
|
32825
|
+
}
|
|
32826
|
+
}
|
|
32827
|
+
init(_data) {
|
|
32828
|
+
if (_data) {
|
|
32829
|
+
if (Array.isArray(_data["labelIds"])) {
|
|
32830
|
+
this.labelIds = [];
|
|
32831
|
+
for (let item of _data["labelIds"])
|
|
32832
|
+
this.labelIds.push(LabelId.fromJS(item));
|
|
32833
|
+
}
|
|
32834
|
+
}
|
|
32835
|
+
}
|
|
32836
|
+
static fromJS(data) {
|
|
32837
|
+
data = typeof data === 'object' ? data : {};
|
|
32838
|
+
let result = new GeneratePrintableLabel();
|
|
32839
|
+
result.init(data);
|
|
32840
|
+
return result;
|
|
32841
|
+
}
|
|
32842
|
+
toJSON(data) {
|
|
32843
|
+
data = typeof data === 'object' ? data : {};
|
|
32844
|
+
if (Array.isArray(this.labelIds)) {
|
|
32845
|
+
data["labelIds"] = [];
|
|
32846
|
+
for (let item of this.labelIds)
|
|
32847
|
+
data["labelIds"].push(item.toJSON());
|
|
32848
|
+
}
|
|
32849
|
+
return data;
|
|
32850
|
+
}
|
|
32851
|
+
}
|
|
32852
|
+
export class LabelId {
|
|
32853
|
+
constructor(data) {
|
|
32854
|
+
if (data) {
|
|
32855
|
+
for (var property in data) {
|
|
32856
|
+
if (data.hasOwnProperty(property))
|
|
32857
|
+
this[property] = data[property];
|
|
32858
|
+
}
|
|
32859
|
+
}
|
|
32860
|
+
}
|
|
32861
|
+
init(_data) {
|
|
32862
|
+
if (_data) {
|
|
32863
|
+
this.parcelId = _data["parcelId"];
|
|
32864
|
+
this.trackingId = _data["trackingId"];
|
|
32865
|
+
}
|
|
32866
|
+
}
|
|
32867
|
+
static fromJS(data) {
|
|
32868
|
+
data = typeof data === 'object' ? data : {};
|
|
32869
|
+
let result = new LabelId();
|
|
32870
|
+
result.init(data);
|
|
32871
|
+
return result;
|
|
32872
|
+
}
|
|
32873
|
+
toJSON(data) {
|
|
32874
|
+
data = typeof data === 'object' ? data : {};
|
|
32875
|
+
data["parcelId"] = this.parcelId;
|
|
32876
|
+
data["trackingId"] = this.trackingId;
|
|
32877
|
+
return data;
|
|
32878
|
+
}
|
|
32879
|
+
}
|
|
32773
32880
|
export class ProductionOrderDto {
|
|
32774
32881
|
constructor(data) {
|
|
32775
32882
|
if (data) {
|
|
@@ -33646,71 +33753,6 @@ export class ProductionOrderOperationActivityDto {
|
|
|
33646
33753
|
return data;
|
|
33647
33754
|
}
|
|
33648
33755
|
}
|
|
33649
|
-
export class GeneratePrintableLabel {
|
|
33650
|
-
constructor(data) {
|
|
33651
|
-
if (data) {
|
|
33652
|
-
for (var property in data) {
|
|
33653
|
-
if (data.hasOwnProperty(property))
|
|
33654
|
-
this[property] = data[property];
|
|
33655
|
-
}
|
|
33656
|
-
}
|
|
33657
|
-
if (!data) {
|
|
33658
|
-
this.labelIds = [];
|
|
33659
|
-
}
|
|
33660
|
-
}
|
|
33661
|
-
init(_data) {
|
|
33662
|
-
if (_data) {
|
|
33663
|
-
if (Array.isArray(_data["labelIds"])) {
|
|
33664
|
-
this.labelIds = [];
|
|
33665
|
-
for (let item of _data["labelIds"])
|
|
33666
|
-
this.labelIds.push(LabelId.fromJS(item));
|
|
33667
|
-
}
|
|
33668
|
-
}
|
|
33669
|
-
}
|
|
33670
|
-
static fromJS(data) {
|
|
33671
|
-
data = typeof data === 'object' ? data : {};
|
|
33672
|
-
let result = new GeneratePrintableLabel();
|
|
33673
|
-
result.init(data);
|
|
33674
|
-
return result;
|
|
33675
|
-
}
|
|
33676
|
-
toJSON(data) {
|
|
33677
|
-
data = typeof data === 'object' ? data : {};
|
|
33678
|
-
if (Array.isArray(this.labelIds)) {
|
|
33679
|
-
data["labelIds"] = [];
|
|
33680
|
-
for (let item of this.labelIds)
|
|
33681
|
-
data["labelIds"].push(item.toJSON());
|
|
33682
|
-
}
|
|
33683
|
-
return data;
|
|
33684
|
-
}
|
|
33685
|
-
}
|
|
33686
|
-
export class LabelId {
|
|
33687
|
-
constructor(data) {
|
|
33688
|
-
if (data) {
|
|
33689
|
-
for (var property in data) {
|
|
33690
|
-
if (data.hasOwnProperty(property))
|
|
33691
|
-
this[property] = data[property];
|
|
33692
|
-
}
|
|
33693
|
-
}
|
|
33694
|
-
}
|
|
33695
|
-
init(_data) {
|
|
33696
|
-
if (_data) {
|
|
33697
|
-
this.parcelId = _data["parcelId"];
|
|
33698
|
-
this.trackingId = _data["trackingId"];
|
|
33699
|
-
}
|
|
33700
|
-
}
|
|
33701
|
-
static fromJS(data) {
|
|
33702
|
-
data = typeof data === 'object' ? data : {};
|
|
33703
|
-
let result = new LabelId();
|
|
33704
|
-
result.init(data);
|
|
33705
|
-
return result;
|
|
33706
|
-
}
|
|
33707
|
-
toJSON(data) {
|
|
33708
|
-
data = typeof data === 'object' ? data : {};
|
|
33709
|
-
data["parcelId"] = this.parcelId;
|
|
33710
|
-
data["trackingId"] = this.trackingId;
|
|
33711
|
-
return data;
|
|
33712
|
-
}
|
|
33713
|
-
}
|
|
33714
33756
|
export class PagedResultOfProductionScheduleOperationDto {
|
|
33715
33757
|
constructor(data) {
|
|
33716
33758
|
if (data) {
|
|
@@ -34680,7 +34722,6 @@ export class StartOperations {
|
|
|
34680
34722
|
for (let item of _data["operations"])
|
|
34681
34723
|
this.operations.push(StartOperationDto.fromJS(item));
|
|
34682
34724
|
}
|
|
34683
|
-
this.workType = _data["workType"];
|
|
34684
34725
|
}
|
|
34685
34726
|
}
|
|
34686
34727
|
static fromJS(data) {
|
|
@@ -34696,7 +34737,6 @@ export class StartOperations {
|
|
|
34696
34737
|
for (let item of this.operations)
|
|
34697
34738
|
data["operations"].push(item.toJSON());
|
|
34698
34739
|
}
|
|
34699
|
-
data["workType"] = this.workType;
|
|
34700
34740
|
return data;
|
|
34701
34741
|
}
|
|
34702
34742
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -2010,13 +2010,13 @@ export class SustainabilityClient extends AuthorizedApiBase implements ISustaina
|
|
|
2010
2010
|
|
|
2011
2011
|
export interface IMachineAlarmsClient {
|
|
2012
2012
|
|
|
2013
|
-
listMachineAlarms(alarmType: MachineAlarmType | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, limit: number | undefined, continuationToken: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined): Promise<PagedResultOfMachineAlarmDto>;
|
|
2013
|
+
listMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, limit: number | undefined, continuationToken: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined): Promise<PagedResultOfMachineAlarmDto>;
|
|
2014
2014
|
|
|
2015
2015
|
listAlarmsPerMachine(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSummaryDto[]>;
|
|
2016
2016
|
|
|
2017
2017
|
listAlarmSeverityOccurrences(startTime: Date | undefined, endTime: Date | null | undefined): Promise<MachineAlarmSeverityOccurenceDto[]>;
|
|
2018
2018
|
|
|
2019
|
-
countMachineAlarms(alarmType: MachineAlarmType | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined): Promise<MachineAlarmCountDto>;
|
|
2019
|
+
countMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined): Promise<MachineAlarmCountDto>;
|
|
2020
2020
|
|
|
2021
2021
|
getMachineAlarmDetails(id: number): Promise<MachineAlarmDetailsDto>;
|
|
2022
2022
|
}
|
|
@@ -2032,11 +2032,9 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
|
|
|
2032
2032
|
this.baseUrl = baseUrl ?? "";
|
|
2033
2033
|
}
|
|
2034
2034
|
|
|
2035
|
-
listMachineAlarms(alarmType: MachineAlarmType | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, limit: number | undefined, continuationToken: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined): Promise<PagedResultOfMachineAlarmDto> {
|
|
2035
|
+
listMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined, limit: number | undefined, continuationToken: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined): Promise<PagedResultOfMachineAlarmDto> {
|
|
2036
2036
|
let url_ = this.baseUrl + "/machinealarms?";
|
|
2037
|
-
if (alarmType
|
|
2038
|
-
throw new Error("The parameter 'alarmType' cannot be null.");
|
|
2039
|
-
else if (alarmType !== undefined)
|
|
2037
|
+
if (alarmType !== undefined && alarmType !== null)
|
|
2040
2038
|
url_ += "alarmType=" + encodeURIComponent("" + alarmType) + "&";
|
|
2041
2039
|
if (assetId === null)
|
|
2042
2040
|
throw new Error("The parameter 'assetId' cannot be null.");
|
|
@@ -2194,11 +2192,9 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
|
|
|
2194
2192
|
return Promise.resolve<MachineAlarmSeverityOccurenceDto[]>(null as any);
|
|
2195
2193
|
}
|
|
2196
2194
|
|
|
2197
|
-
countMachineAlarms(alarmType: MachineAlarmType | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined): Promise<MachineAlarmCountDto> {
|
|
2195
|
+
countMachineAlarms(alarmType: MachineAlarmType | null | undefined, assetId: number | undefined, startTime: Date | undefined, endTime: Date | null | undefined, subType: string | null | undefined, nativeCode: string | null | undefined, nativeSeverity: number | null | undefined, name: string | null | undefined, sequence: string | null | undefined): Promise<MachineAlarmCountDto> {
|
|
2198
2196
|
let url_ = this.baseUrl + "/machinealarms/alarmcount?";
|
|
2199
|
-
if (alarmType
|
|
2200
|
-
throw new Error("The parameter 'alarmType' cannot be null.");
|
|
2201
|
-
else if (alarmType !== undefined)
|
|
2197
|
+
if (alarmType !== undefined && alarmType !== null)
|
|
2202
2198
|
url_ += "alarmType=" + encodeURIComponent("" + alarmType) + "&";
|
|
2203
2199
|
if (assetId === null)
|
|
2204
2200
|
throw new Error("The parameter 'assetId' cannot be null.");
|
|
@@ -14488,6 +14484,63 @@ export class MesLinksClient extends AuthorizedApiBase implements IMesLinksClient
|
|
|
14488
14484
|
}
|
|
14489
14485
|
}
|
|
14490
14486
|
|
|
14487
|
+
export interface IMesOrMoveClient {
|
|
14488
|
+
|
|
14489
|
+
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
14490
|
+
}
|
|
14491
|
+
|
|
14492
|
+
export class MesOrMoveClient extends AuthorizedApiBase implements IMesOrMoveClient {
|
|
14493
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
14494
|
+
private baseUrl: string;
|
|
14495
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
14496
|
+
|
|
14497
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
14498
|
+
super(configuration);
|
|
14499
|
+
this.http = http ? http : window as any;
|
|
14500
|
+
this.baseUrl = baseUrl ?? "";
|
|
14501
|
+
}
|
|
14502
|
+
|
|
14503
|
+
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto> {
|
|
14504
|
+
let url_ = this.baseUrl + "/mes/labels/printable";
|
|
14505
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14506
|
+
|
|
14507
|
+
const content_ = JSON.stringify(request);
|
|
14508
|
+
|
|
14509
|
+
let options_: RequestInit = {
|
|
14510
|
+
body: content_,
|
|
14511
|
+
method: "POST",
|
|
14512
|
+
headers: {
|
|
14513
|
+
"Content-Type": "application/json",
|
|
14514
|
+
"Accept": "application/json"
|
|
14515
|
+
}
|
|
14516
|
+
};
|
|
14517
|
+
|
|
14518
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
14519
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
14520
|
+
}).then((_response: Response) => {
|
|
14521
|
+
return this.processGetPrintableLabels(_response);
|
|
14522
|
+
});
|
|
14523
|
+
}
|
|
14524
|
+
|
|
14525
|
+
protected processGetPrintableLabels(response: Response): Promise<DownloadDto> {
|
|
14526
|
+
const status = response.status;
|
|
14527
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
14528
|
+
if (status === 200) {
|
|
14529
|
+
return response.text().then((_responseText) => {
|
|
14530
|
+
let result200: any = null;
|
|
14531
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14532
|
+
result200 = DownloadDto.fromJS(resultData200);
|
|
14533
|
+
return result200;
|
|
14534
|
+
});
|
|
14535
|
+
} else if (status !== 200 && status !== 204) {
|
|
14536
|
+
return response.text().then((_responseText) => {
|
|
14537
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14538
|
+
});
|
|
14539
|
+
}
|
|
14540
|
+
return Promise.resolve<DownloadDto>(null as any);
|
|
14541
|
+
}
|
|
14542
|
+
}
|
|
14543
|
+
|
|
14491
14544
|
export interface IMesProductionOrderClient {
|
|
14492
14545
|
|
|
14493
14546
|
getProductionOrder(id: string): Promise<ProductionOrderDto>;
|
|
@@ -14505,8 +14558,6 @@ export interface IMesProductionOrderClient {
|
|
|
14505
14558
|
postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
|
|
14506
14559
|
|
|
14507
14560
|
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
|
|
14508
|
-
|
|
14509
|
-
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
14510
14561
|
}
|
|
14511
14562
|
|
|
14512
14563
|
export class MesProductionOrderClient extends AuthorizedApiBase implements IMesProductionOrderClient {
|
|
@@ -14871,46 +14922,6 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
|
|
|
14871
14922
|
}
|
|
14872
14923
|
return Promise.resolve<ProductionOrderOperationActivityDto[]>(null as any);
|
|
14873
14924
|
}
|
|
14874
|
-
|
|
14875
|
-
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto> {
|
|
14876
|
-
let url_ = this.baseUrl + "/mes/labels/printable";
|
|
14877
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
14878
|
-
|
|
14879
|
-
const content_ = JSON.stringify(request);
|
|
14880
|
-
|
|
14881
|
-
let options_: RequestInit = {
|
|
14882
|
-
body: content_,
|
|
14883
|
-
method: "POST",
|
|
14884
|
-
headers: {
|
|
14885
|
-
"Content-Type": "application/json",
|
|
14886
|
-
"Accept": "application/json"
|
|
14887
|
-
}
|
|
14888
|
-
};
|
|
14889
|
-
|
|
14890
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
14891
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
14892
|
-
}).then((_response: Response) => {
|
|
14893
|
-
return this.processGetPrintableLabels(_response);
|
|
14894
|
-
});
|
|
14895
|
-
}
|
|
14896
|
-
|
|
14897
|
-
protected processGetPrintableLabels(response: Response): Promise<DownloadDto> {
|
|
14898
|
-
const status = response.status;
|
|
14899
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
14900
|
-
if (status === 200) {
|
|
14901
|
-
return response.text().then((_responseText) => {
|
|
14902
|
-
let result200: any = null;
|
|
14903
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14904
|
-
result200 = DownloadDto.fromJS(resultData200);
|
|
14905
|
-
return result200;
|
|
14906
|
-
});
|
|
14907
|
-
} else if (status !== 200 && status !== 204) {
|
|
14908
|
-
return response.text().then((_responseText) => {
|
|
14909
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14910
|
-
});
|
|
14911
|
-
}
|
|
14912
|
-
return Promise.resolve<DownloadDto>(null as any);
|
|
14913
|
-
}
|
|
14914
14925
|
}
|
|
14915
14926
|
|
|
14916
14927
|
export interface IMesProductionScheduleClient {
|
|
@@ -20184,6 +20195,11 @@ export interface IWorkordersClient {
|
|
|
20184
20195
|
*/
|
|
20185
20196
|
updateWorkorderOperationEventTimestamps(eventId: string, request: UpdateWorkorderOperationEventTimestamps): Promise<void>;
|
|
20186
20197
|
|
|
20198
|
+
/**
|
|
20199
|
+
* Delete existing work order operation event.
|
|
20200
|
+
*/
|
|
20201
|
+
deleteWorkorderOperationEventById(eventId: string): Promise<void>;
|
|
20202
|
+
|
|
20187
20203
|
/**
|
|
20188
20204
|
* Filter work order operation events
|
|
20189
20205
|
*/
|
|
@@ -21081,6 +21097,44 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
21081
21097
|
return Promise.resolve<void>(null as any);
|
|
21082
21098
|
}
|
|
21083
21099
|
|
|
21100
|
+
/**
|
|
21101
|
+
* Delete existing work order operation event.
|
|
21102
|
+
*/
|
|
21103
|
+
deleteWorkorderOperationEventById(eventId: string): Promise<void> {
|
|
21104
|
+
let url_ = this.baseUrl + "/erp/workorders/operations/events/{eventId}";
|
|
21105
|
+
if (eventId === undefined || eventId === null)
|
|
21106
|
+
throw new Error("The parameter 'eventId' must be defined.");
|
|
21107
|
+
url_ = url_.replace("{eventId}", encodeURIComponent("" + eventId));
|
|
21108
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
21109
|
+
|
|
21110
|
+
let options_: RequestInit = {
|
|
21111
|
+
method: "DELETE",
|
|
21112
|
+
headers: {
|
|
21113
|
+
}
|
|
21114
|
+
};
|
|
21115
|
+
|
|
21116
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21117
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
21118
|
+
}).then((_response: Response) => {
|
|
21119
|
+
return this.processDeleteWorkorderOperationEventById(_response);
|
|
21120
|
+
});
|
|
21121
|
+
}
|
|
21122
|
+
|
|
21123
|
+
protected processDeleteWorkorderOperationEventById(response: Response): Promise<void> {
|
|
21124
|
+
const status = response.status;
|
|
21125
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
21126
|
+
if (status === 204) {
|
|
21127
|
+
return response.text().then((_responseText) => {
|
|
21128
|
+
return;
|
|
21129
|
+
});
|
|
21130
|
+
} else if (status !== 200 && status !== 204) {
|
|
21131
|
+
return response.text().then((_responseText) => {
|
|
21132
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21133
|
+
});
|
|
21134
|
+
}
|
|
21135
|
+
return Promise.resolve<void>(null as any);
|
|
21136
|
+
}
|
|
21137
|
+
|
|
21084
21138
|
/**
|
|
21085
21139
|
* Filter work order operation events
|
|
21086
21140
|
*/
|
|
@@ -40439,6 +40493,93 @@ export interface IUpdateMesLink {
|
|
|
40439
40493
|
companyId?: string | null;
|
|
40440
40494
|
}
|
|
40441
40495
|
|
|
40496
|
+
export class GeneratePrintableLabel implements IGeneratePrintableLabel {
|
|
40497
|
+
labelIds!: LabelId[];
|
|
40498
|
+
|
|
40499
|
+
constructor(data?: IGeneratePrintableLabel) {
|
|
40500
|
+
if (data) {
|
|
40501
|
+
for (var property in data) {
|
|
40502
|
+
if (data.hasOwnProperty(property))
|
|
40503
|
+
(<any>this)[property] = (<any>data)[property];
|
|
40504
|
+
}
|
|
40505
|
+
}
|
|
40506
|
+
if (!data) {
|
|
40507
|
+
this.labelIds = [];
|
|
40508
|
+
}
|
|
40509
|
+
}
|
|
40510
|
+
|
|
40511
|
+
init(_data?: any) {
|
|
40512
|
+
if (_data) {
|
|
40513
|
+
if (Array.isArray(_data["labelIds"])) {
|
|
40514
|
+
this.labelIds = [] as any;
|
|
40515
|
+
for (let item of _data["labelIds"])
|
|
40516
|
+
this.labelIds!.push(LabelId.fromJS(item));
|
|
40517
|
+
}
|
|
40518
|
+
}
|
|
40519
|
+
}
|
|
40520
|
+
|
|
40521
|
+
static fromJS(data: any): GeneratePrintableLabel {
|
|
40522
|
+
data = typeof data === 'object' ? data : {};
|
|
40523
|
+
let result = new GeneratePrintableLabel();
|
|
40524
|
+
result.init(data);
|
|
40525
|
+
return result;
|
|
40526
|
+
}
|
|
40527
|
+
|
|
40528
|
+
toJSON(data?: any) {
|
|
40529
|
+
data = typeof data === 'object' ? data : {};
|
|
40530
|
+
if (Array.isArray(this.labelIds)) {
|
|
40531
|
+
data["labelIds"] = [];
|
|
40532
|
+
for (let item of this.labelIds)
|
|
40533
|
+
data["labelIds"].push(item.toJSON());
|
|
40534
|
+
}
|
|
40535
|
+
return data;
|
|
40536
|
+
}
|
|
40537
|
+
}
|
|
40538
|
+
|
|
40539
|
+
export interface IGeneratePrintableLabel {
|
|
40540
|
+
labelIds: LabelId[];
|
|
40541
|
+
}
|
|
40542
|
+
|
|
40543
|
+
export class LabelId implements ILabelId {
|
|
40544
|
+
parcelId!: string;
|
|
40545
|
+
trackingId?: string | null;
|
|
40546
|
+
|
|
40547
|
+
constructor(data?: ILabelId) {
|
|
40548
|
+
if (data) {
|
|
40549
|
+
for (var property in data) {
|
|
40550
|
+
if (data.hasOwnProperty(property))
|
|
40551
|
+
(<any>this)[property] = (<any>data)[property];
|
|
40552
|
+
}
|
|
40553
|
+
}
|
|
40554
|
+
}
|
|
40555
|
+
|
|
40556
|
+
init(_data?: any) {
|
|
40557
|
+
if (_data) {
|
|
40558
|
+
this.parcelId = _data["parcelId"];
|
|
40559
|
+
this.trackingId = _data["trackingId"];
|
|
40560
|
+
}
|
|
40561
|
+
}
|
|
40562
|
+
|
|
40563
|
+
static fromJS(data: any): LabelId {
|
|
40564
|
+
data = typeof data === 'object' ? data : {};
|
|
40565
|
+
let result = new LabelId();
|
|
40566
|
+
result.init(data);
|
|
40567
|
+
return result;
|
|
40568
|
+
}
|
|
40569
|
+
|
|
40570
|
+
toJSON(data?: any) {
|
|
40571
|
+
data = typeof data === 'object' ? data : {};
|
|
40572
|
+
data["parcelId"] = this.parcelId;
|
|
40573
|
+
data["trackingId"] = this.trackingId;
|
|
40574
|
+
return data;
|
|
40575
|
+
}
|
|
40576
|
+
}
|
|
40577
|
+
|
|
40578
|
+
export interface ILabelId {
|
|
40579
|
+
parcelId: string;
|
|
40580
|
+
trackingId?: string | null;
|
|
40581
|
+
}
|
|
40582
|
+
|
|
40442
40583
|
export class ProductionOrderDto implements IProductionOrderDto {
|
|
40443
40584
|
id!: string;
|
|
40444
40585
|
companyId!: string;
|
|
@@ -41815,93 +41956,6 @@ export interface IProductionOrderOperationActivityDto {
|
|
|
41815
41956
|
|
|
41816
41957
|
export type WorkTypeDto = "None" | "Production" | "Setup";
|
|
41817
41958
|
|
|
41818
|
-
export class GeneratePrintableLabel implements IGeneratePrintableLabel {
|
|
41819
|
-
labelIds!: LabelId[];
|
|
41820
|
-
|
|
41821
|
-
constructor(data?: IGeneratePrintableLabel) {
|
|
41822
|
-
if (data) {
|
|
41823
|
-
for (var property in data) {
|
|
41824
|
-
if (data.hasOwnProperty(property))
|
|
41825
|
-
(<any>this)[property] = (<any>data)[property];
|
|
41826
|
-
}
|
|
41827
|
-
}
|
|
41828
|
-
if (!data) {
|
|
41829
|
-
this.labelIds = [];
|
|
41830
|
-
}
|
|
41831
|
-
}
|
|
41832
|
-
|
|
41833
|
-
init(_data?: any) {
|
|
41834
|
-
if (_data) {
|
|
41835
|
-
if (Array.isArray(_data["labelIds"])) {
|
|
41836
|
-
this.labelIds = [] as any;
|
|
41837
|
-
for (let item of _data["labelIds"])
|
|
41838
|
-
this.labelIds!.push(LabelId.fromJS(item));
|
|
41839
|
-
}
|
|
41840
|
-
}
|
|
41841
|
-
}
|
|
41842
|
-
|
|
41843
|
-
static fromJS(data: any): GeneratePrintableLabel {
|
|
41844
|
-
data = typeof data === 'object' ? data : {};
|
|
41845
|
-
let result = new GeneratePrintableLabel();
|
|
41846
|
-
result.init(data);
|
|
41847
|
-
return result;
|
|
41848
|
-
}
|
|
41849
|
-
|
|
41850
|
-
toJSON(data?: any) {
|
|
41851
|
-
data = typeof data === 'object' ? data : {};
|
|
41852
|
-
if (Array.isArray(this.labelIds)) {
|
|
41853
|
-
data["labelIds"] = [];
|
|
41854
|
-
for (let item of this.labelIds)
|
|
41855
|
-
data["labelIds"].push(item.toJSON());
|
|
41856
|
-
}
|
|
41857
|
-
return data;
|
|
41858
|
-
}
|
|
41859
|
-
}
|
|
41860
|
-
|
|
41861
|
-
export interface IGeneratePrintableLabel {
|
|
41862
|
-
labelIds: LabelId[];
|
|
41863
|
-
}
|
|
41864
|
-
|
|
41865
|
-
export class LabelId implements ILabelId {
|
|
41866
|
-
parcelId!: string;
|
|
41867
|
-
trackingId?: string | null;
|
|
41868
|
-
|
|
41869
|
-
constructor(data?: ILabelId) {
|
|
41870
|
-
if (data) {
|
|
41871
|
-
for (var property in data) {
|
|
41872
|
-
if (data.hasOwnProperty(property))
|
|
41873
|
-
(<any>this)[property] = (<any>data)[property];
|
|
41874
|
-
}
|
|
41875
|
-
}
|
|
41876
|
-
}
|
|
41877
|
-
|
|
41878
|
-
init(_data?: any) {
|
|
41879
|
-
if (_data) {
|
|
41880
|
-
this.parcelId = _data["parcelId"];
|
|
41881
|
-
this.trackingId = _data["trackingId"];
|
|
41882
|
-
}
|
|
41883
|
-
}
|
|
41884
|
-
|
|
41885
|
-
static fromJS(data: any): LabelId {
|
|
41886
|
-
data = typeof data === 'object' ? data : {};
|
|
41887
|
-
let result = new LabelId();
|
|
41888
|
-
result.init(data);
|
|
41889
|
-
return result;
|
|
41890
|
-
}
|
|
41891
|
-
|
|
41892
|
-
toJSON(data?: any) {
|
|
41893
|
-
data = typeof data === 'object' ? data : {};
|
|
41894
|
-
data["parcelId"] = this.parcelId;
|
|
41895
|
-
data["trackingId"] = this.trackingId;
|
|
41896
|
-
return data;
|
|
41897
|
-
}
|
|
41898
|
-
}
|
|
41899
|
-
|
|
41900
|
-
export interface ILabelId {
|
|
41901
|
-
parcelId: string;
|
|
41902
|
-
trackingId?: string | null;
|
|
41903
|
-
}
|
|
41904
|
-
|
|
41905
41959
|
export class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
|
|
41906
41960
|
results!: ProductionScheduleOperationDto[];
|
|
41907
41961
|
continuationToken?: string | null;
|
|
@@ -43278,7 +43332,6 @@ export interface IStoppedWorkDto {
|
|
|
43278
43332
|
|
|
43279
43333
|
export class StartOperations implements IStartOperations {
|
|
43280
43334
|
operations!: StartOperationDto[];
|
|
43281
|
-
workType?: WorkTypeDto | null;
|
|
43282
43335
|
|
|
43283
43336
|
constructor(data?: IStartOperations) {
|
|
43284
43337
|
if (data) {
|
|
@@ -43299,7 +43352,6 @@ export class StartOperations implements IStartOperations {
|
|
|
43299
43352
|
for (let item of _data["operations"])
|
|
43300
43353
|
this.operations!.push(StartOperationDto.fromJS(item));
|
|
43301
43354
|
}
|
|
43302
|
-
this.workType = _data["workType"];
|
|
43303
43355
|
}
|
|
43304
43356
|
}
|
|
43305
43357
|
|
|
@@ -43317,14 +43369,12 @@ export class StartOperations implements IStartOperations {
|
|
|
43317
43369
|
for (let item of this.operations)
|
|
43318
43370
|
data["operations"].push(item.toJSON());
|
|
43319
43371
|
}
|
|
43320
|
-
data["workType"] = this.workType;
|
|
43321
43372
|
return data;
|
|
43322
43373
|
}
|
|
43323
43374
|
}
|
|
43324
43375
|
|
|
43325
43376
|
export interface IStartOperations {
|
|
43326
43377
|
operations: StartOperationDto[];
|
|
43327
|
-
workType?: WorkTypeDto | null;
|
|
43328
43378
|
}
|
|
43329
43379
|
|
|
43330
43380
|
export class StartOperationDto implements IStartOperationDto {
|
|
@@ -43332,7 +43382,7 @@ export class StartOperationDto implements IStartOperationDto {
|
|
|
43332
43382
|
operationNumber!: number;
|
|
43333
43383
|
startedQuantity?: number | null;
|
|
43334
43384
|
resource!: string;
|
|
43335
|
-
workType
|
|
43385
|
+
workType!: WorkTypeDto;
|
|
43336
43386
|
|
|
43337
43387
|
constructor(data?: IStartOperationDto) {
|
|
43338
43388
|
if (data) {
|
|
@@ -43376,7 +43426,7 @@ export interface IStartOperationDto {
|
|
|
43376
43426
|
operationNumber: number;
|
|
43377
43427
|
startedQuantity?: number | null;
|
|
43378
43428
|
resource: string;
|
|
43379
|
-
workType
|
|
43429
|
+
workType: WorkTypeDto;
|
|
43380
43430
|
}
|
|
43381
43431
|
|
|
43382
43432
|
export class ReportOperationProgress implements IReportOperationProgress {
|