@ignos/api-client 20241112.0.10701 → 20241126.0.10771
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 +65 -36
- package/lib/ignosportal-api.js +229 -154
- package/package.json +1 -1
- package/src/ignosportal-api.ts +285 -185
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -754,6 +754,7 @@ export interface IMachinesClient {
|
|
|
754
754
|
createMachineWithoutResource(request: CreateMachineWithoutResource): Promise<void>;
|
|
755
755
|
createResourceWithoutMachine(request: CreateResourceWithoutMachine): Promise<void>;
|
|
756
756
|
createResourceWithMachine(request: CreateResourceWithMachine): Promise<void>;
|
|
757
|
+
createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void>;
|
|
757
758
|
}
|
|
758
759
|
export declare class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
|
|
759
760
|
private http;
|
|
@@ -794,6 +795,8 @@ export declare class MachinesClient extends AuthorizedApiBase implements IMachin
|
|
|
794
795
|
protected processCreateResourceWithoutMachine(response: Response): Promise<void>;
|
|
795
796
|
createResourceWithMachine(request: CreateResourceWithMachine): Promise<void>;
|
|
796
797
|
protected processCreateResourceWithMachine(response: Response): Promise<void>;
|
|
798
|
+
createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void>;
|
|
799
|
+
protected processCreateResourceInResourceGroup(response: Response): Promise<void>;
|
|
797
800
|
}
|
|
798
801
|
export interface ILinksClient {
|
|
799
802
|
getAllLinks(scope: string | null | undefined): Promise<LinkDto[]>;
|
|
@@ -1472,10 +1475,6 @@ export interface IMoveBookingClient {
|
|
|
1472
1475
|
getParcelBooking(parcelId: string): Promise<BookingDto[]>;
|
|
1473
1476
|
updateBooking(bookingRequest: BookingUpdateDto): Promise<BookingDto>;
|
|
1474
1477
|
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]>;
|
|
1475
|
-
/**
|
|
1476
|
-
* @deprecated
|
|
1477
|
-
*/
|
|
1478
|
-
createBookingTransport2(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]>;
|
|
1479
1478
|
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto[]>;
|
|
1480
1479
|
updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
|
|
1481
1480
|
}
|
|
@@ -1496,11 +1495,6 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
|
|
|
1496
1495
|
protected processUpdateBooking(response: Response): Promise<BookingDto>;
|
|
1497
1496
|
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]>;
|
|
1498
1497
|
protected processCreateBookingTransport(response: Response): Promise<BookingDto[]>;
|
|
1499
|
-
/**
|
|
1500
|
-
* @deprecated
|
|
1501
|
-
*/
|
|
1502
|
-
createBookingTransport2(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]>;
|
|
1503
|
-
protected processCreateBookingTransport2(response: Response): Promise<BookingDto[]>;
|
|
1504
1498
|
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto[]>;
|
|
1505
1499
|
protected processCreateBookingGeneral(response: Response): Promise<BookingDto[]>;
|
|
1506
1500
|
updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
|
|
@@ -1680,6 +1674,19 @@ export declare class MesLinksClient extends AuthorizedApiBase implements IMesLin
|
|
|
1680
1674
|
deleteMesLink(id: string): Promise<void>;
|
|
1681
1675
|
protected processDeleteMesLink(response: Response): Promise<void>;
|
|
1682
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
|
+
}
|
|
1683
1690
|
export interface IMesProductionOrderClient {
|
|
1684
1691
|
getProductionOrder(id: string): Promise<ProductionOrderDto>;
|
|
1685
1692
|
getProductionOrderBom(id: string, operation: number | null | undefined): Promise<ProductionOrderBomDto[]>;
|
|
@@ -1689,7 +1696,6 @@ export interface IMesProductionOrderClient {
|
|
|
1689
1696
|
getProductionOrderBomNonConformances(id: string): Promise<NonConformanceDto[]>;
|
|
1690
1697
|
postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
|
|
1691
1698
|
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
|
|
1692
|
-
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
1693
1699
|
}
|
|
1694
1700
|
export declare class MesProductionOrderClient extends AuthorizedApiBase implements IMesProductionOrderClient {
|
|
1695
1701
|
private http;
|
|
@@ -1714,8 +1720,6 @@ export declare class MesProductionOrderClient extends AuthorizedApiBase implemen
|
|
|
1714
1720
|
protected processPostMaterialPickList(response: Response): Promise<MaterialPickListResultDto>;
|
|
1715
1721
|
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
|
|
1716
1722
|
protected processListProductionOrderActivities(response: Response): Promise<ProductionOrderOperationActivityDto[]>;
|
|
1717
|
-
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
1718
|
-
protected processGetPrintableLabels(response: Response): Promise<DownloadDto>;
|
|
1719
1723
|
}
|
|
1720
1724
|
export interface IMesProductionScheduleClient {
|
|
1721
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>;
|
|
@@ -2303,6 +2307,10 @@ export interface IWorkordersClient {
|
|
|
2303
2307
|
* Update start time and/or end time of an existing work order operation event
|
|
2304
2308
|
*/
|
|
2305
2309
|
updateWorkorderOperationEventTimestamps(eventId: string, request: UpdateWorkorderOperationEventTimestamps): Promise<void>;
|
|
2310
|
+
/**
|
|
2311
|
+
* Delete existing work order operation event.
|
|
2312
|
+
*/
|
|
2313
|
+
deleteWorkorderOperationEventById(eventId: string): Promise<void>;
|
|
2306
2314
|
/**
|
|
2307
2315
|
* Filter work order operation events
|
|
2308
2316
|
*/
|
|
@@ -2419,6 +2427,11 @@ export declare class WorkordersClient extends AuthorizedApiBase implements IWork
|
|
|
2419
2427
|
*/
|
|
2420
2428
|
updateWorkorderOperationEventTimestamps(eventId: string, request: UpdateWorkorderOperationEventTimestamps): Promise<void>;
|
|
2421
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>;
|
|
2422
2435
|
/**
|
|
2423
2436
|
* Filter work order operation events
|
|
2424
2437
|
*/
|
|
@@ -5167,7 +5180,7 @@ export declare class MachineDto implements IMachineDto {
|
|
|
5167
5180
|
name: string;
|
|
5168
5181
|
description?: string | null;
|
|
5169
5182
|
type?: string | null;
|
|
5170
|
-
|
|
5183
|
+
workOrderAssetExternalIds?: string[];
|
|
5171
5184
|
hasLiveMachineState: boolean;
|
|
5172
5185
|
companyId?: string | null;
|
|
5173
5186
|
resourceId: string;
|
|
@@ -5182,7 +5195,7 @@ export interface IMachineDto {
|
|
|
5182
5195
|
name: string;
|
|
5183
5196
|
description?: string | null;
|
|
5184
5197
|
type?: string | null;
|
|
5185
|
-
|
|
5198
|
+
workOrderAssetExternalIds?: string[];
|
|
5186
5199
|
hasLiveMachineState: boolean;
|
|
5187
5200
|
companyId?: string | null;
|
|
5188
5201
|
resourceId: string;
|
|
@@ -5625,6 +5638,22 @@ export interface ICreateResourceWithMachine {
|
|
|
5625
5638
|
year?: string | null;
|
|
5626
5639
|
model?: string | null;
|
|
5627
5640
|
}
|
|
5641
|
+
export declare class CreateResourceInResourceGroup implements ICreateResourceInResourceGroup {
|
|
5642
|
+
id: string;
|
|
5643
|
+
resourceGroupId: string;
|
|
5644
|
+
name: string;
|
|
5645
|
+
description?: string | null;
|
|
5646
|
+
constructor(data?: ICreateResourceInResourceGroup);
|
|
5647
|
+
init(_data?: any): void;
|
|
5648
|
+
static fromJS(data: any): CreateResourceInResourceGroup;
|
|
5649
|
+
toJSON(data?: any): any;
|
|
5650
|
+
}
|
|
5651
|
+
export interface ICreateResourceInResourceGroup {
|
|
5652
|
+
id: string;
|
|
5653
|
+
resourceGroupId: string;
|
|
5654
|
+
name: string;
|
|
5655
|
+
description?: string | null;
|
|
5656
|
+
}
|
|
5628
5657
|
export declare class LinkDto implements ILinkDto {
|
|
5629
5658
|
id: string;
|
|
5630
5659
|
uri: string;
|
|
@@ -8692,6 +8721,28 @@ export interface IUpdateMesLink {
|
|
|
8692
8721
|
type?: MesLinkTypeDto;
|
|
8693
8722
|
companyId?: string | null;
|
|
8694
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
|
+
}
|
|
8695
8746
|
export declare class ProductionOrderDto implements IProductionOrderDto {
|
|
8696
8747
|
id: string;
|
|
8697
8748
|
companyId: string;
|
|
@@ -9189,28 +9240,6 @@ export interface IProductionOrderOperationActivityDto {
|
|
|
9189
9240
|
workType: WorkTypeDto;
|
|
9190
9241
|
}
|
|
9191
9242
|
export type WorkTypeDto = "None" | "Production" | "Setup";
|
|
9192
|
-
export declare class GeneratePrintableLabel implements IGeneratePrintableLabel {
|
|
9193
|
-
labelIds: LabelId[];
|
|
9194
|
-
constructor(data?: IGeneratePrintableLabel);
|
|
9195
|
-
init(_data?: any): void;
|
|
9196
|
-
static fromJS(data: any): GeneratePrintableLabel;
|
|
9197
|
-
toJSON(data?: any): any;
|
|
9198
|
-
}
|
|
9199
|
-
export interface IGeneratePrintableLabel {
|
|
9200
|
-
labelIds: LabelId[];
|
|
9201
|
-
}
|
|
9202
|
-
export declare class LabelId implements ILabelId {
|
|
9203
|
-
parcelId: string;
|
|
9204
|
-
trackingId?: string | null;
|
|
9205
|
-
constructor(data?: ILabelId);
|
|
9206
|
-
init(_data?: any): void;
|
|
9207
|
-
static fromJS(data: any): LabelId;
|
|
9208
|
-
toJSON(data?: any): any;
|
|
9209
|
-
}
|
|
9210
|
-
export interface ILabelId {
|
|
9211
|
-
parcelId: string;
|
|
9212
|
-
trackingId?: string | null;
|
|
9213
|
-
}
|
|
9214
9243
|
export declare class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
|
|
9215
9244
|
results: ProductionScheduleOperationDto[];
|
|
9216
9245
|
continuationToken?: string | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -6176,6 +6176,42 @@ export class MachinesClient extends AuthorizedApiBase {
|
|
|
6176
6176
|
}
|
|
6177
6177
|
return Promise.resolve(null);
|
|
6178
6178
|
}
|
|
6179
|
+
createResourceInResourceGroup(request) {
|
|
6180
|
+
let url_ = this.baseUrl + "/machines/resource-in-resource-group";
|
|
6181
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6182
|
+
const content_ = JSON.stringify(request);
|
|
6183
|
+
let options_ = {
|
|
6184
|
+
body: content_,
|
|
6185
|
+
method: "POST",
|
|
6186
|
+
headers: {
|
|
6187
|
+
"Content-Type": "application/json",
|
|
6188
|
+
}
|
|
6189
|
+
};
|
|
6190
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6191
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6192
|
+
}).then((_response) => {
|
|
6193
|
+
return this.processCreateResourceInResourceGroup(_response);
|
|
6194
|
+
});
|
|
6195
|
+
}
|
|
6196
|
+
processCreateResourceInResourceGroup(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 === 204) {
|
|
6204
|
+
return response.text().then((_responseText) => {
|
|
6205
|
+
return;
|
|
6206
|
+
});
|
|
6207
|
+
}
|
|
6208
|
+
else if (status !== 200 && status !== 204) {
|
|
6209
|
+
return response.text().then((_responseText) => {
|
|
6210
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6211
|
+
});
|
|
6212
|
+
}
|
|
6213
|
+
return Promise.resolve(null);
|
|
6214
|
+
}
|
|
6179
6215
|
}
|
|
6180
6216
|
export class LinksClient extends AuthorizedApiBase {
|
|
6181
6217
|
constructor(configuration, baseUrl, http) {
|
|
@@ -12179,53 +12215,6 @@ export class MoveBookingClient extends AuthorizedApiBase {
|
|
|
12179
12215
|
}
|
|
12180
12216
|
return Promise.resolve(null);
|
|
12181
12217
|
}
|
|
12182
|
-
/**
|
|
12183
|
-
* @deprecated
|
|
12184
|
-
*/
|
|
12185
|
-
createBookingTransport2(bookingRequest) {
|
|
12186
|
-
let url_ = this.baseUrl + "/move/booking/transport2";
|
|
12187
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
12188
|
-
const content_ = JSON.stringify(bookingRequest);
|
|
12189
|
-
let options_ = {
|
|
12190
|
-
body: content_,
|
|
12191
|
-
method: "POST",
|
|
12192
|
-
headers: {
|
|
12193
|
-
"Content-Type": "application/json",
|
|
12194
|
-
"Accept": "application/json"
|
|
12195
|
-
}
|
|
12196
|
-
};
|
|
12197
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12198
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
12199
|
-
}).then((_response) => {
|
|
12200
|
-
return this.processCreateBookingTransport2(_response);
|
|
12201
|
-
});
|
|
12202
|
-
}
|
|
12203
|
-
processCreateBookingTransport2(response) {
|
|
12204
|
-
const status = response.status;
|
|
12205
|
-
let _headers = {};
|
|
12206
|
-
if (response.headers && response.headers.forEach) {
|
|
12207
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
12208
|
-
}
|
|
12209
|
-
;
|
|
12210
|
-
if (status === 200) {
|
|
12211
|
-
return response.text().then((_responseText) => {
|
|
12212
|
-
let result200 = null;
|
|
12213
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12214
|
-
if (Array.isArray(resultData200)) {
|
|
12215
|
-
result200 = [];
|
|
12216
|
-
for (let item of resultData200)
|
|
12217
|
-
result200.push(BookingDto.fromJS(item));
|
|
12218
|
-
}
|
|
12219
|
-
return result200;
|
|
12220
|
-
});
|
|
12221
|
-
}
|
|
12222
|
-
else if (status !== 200 && status !== 204) {
|
|
12223
|
-
return response.text().then((_responseText) => {
|
|
12224
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12225
|
-
});
|
|
12226
|
-
}
|
|
12227
|
-
return Promise.resolve(null);
|
|
12228
|
-
}
|
|
12229
12218
|
createBookingGeneral(bookingRequest) {
|
|
12230
12219
|
let url_ = this.baseUrl + "/move/booking/general";
|
|
12231
12220
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -13550,6 +13539,54 @@ export class MesLinksClient extends AuthorizedApiBase {
|
|
|
13550
13539
|
return Promise.resolve(null);
|
|
13551
13540
|
}
|
|
13552
13541
|
}
|
|
13542
|
+
export class MesOrMoveClient extends AuthorizedApiBase {
|
|
13543
|
+
constructor(configuration, baseUrl, http) {
|
|
13544
|
+
super(configuration);
|
|
13545
|
+
this.jsonParseReviver = undefined;
|
|
13546
|
+
this.http = http ? http : window;
|
|
13547
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
13548
|
+
}
|
|
13549
|
+
getPrintableLabels(request) {
|
|
13550
|
+
let url_ = this.baseUrl + "/mes/labels/printable";
|
|
13551
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
13552
|
+
const content_ = JSON.stringify(request);
|
|
13553
|
+
let options_ = {
|
|
13554
|
+
body: content_,
|
|
13555
|
+
method: "POST",
|
|
13556
|
+
headers: {
|
|
13557
|
+
"Content-Type": "application/json",
|
|
13558
|
+
"Accept": "application/json"
|
|
13559
|
+
}
|
|
13560
|
+
};
|
|
13561
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
13562
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
13563
|
+
}).then((_response) => {
|
|
13564
|
+
return this.processGetPrintableLabels(_response);
|
|
13565
|
+
});
|
|
13566
|
+
}
|
|
13567
|
+
processGetPrintableLabels(response) {
|
|
13568
|
+
const status = response.status;
|
|
13569
|
+
let _headers = {};
|
|
13570
|
+
if (response.headers && response.headers.forEach) {
|
|
13571
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
13572
|
+
}
|
|
13573
|
+
;
|
|
13574
|
+
if (status === 200) {
|
|
13575
|
+
return response.text().then((_responseText) => {
|
|
13576
|
+
let result200 = null;
|
|
13577
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13578
|
+
result200 = DownloadDto.fromJS(resultData200);
|
|
13579
|
+
return result200;
|
|
13580
|
+
});
|
|
13581
|
+
}
|
|
13582
|
+
else if (status !== 200 && status !== 204) {
|
|
13583
|
+
return response.text().then((_responseText) => {
|
|
13584
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
13585
|
+
});
|
|
13586
|
+
}
|
|
13587
|
+
return Promise.resolve(null);
|
|
13588
|
+
}
|
|
13589
|
+
}
|
|
13553
13590
|
export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
13554
13591
|
constructor(configuration, baseUrl, http) {
|
|
13555
13592
|
super(configuration);
|
|
@@ -13915,46 +13952,6 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
13915
13952
|
}
|
|
13916
13953
|
return Promise.resolve(null);
|
|
13917
13954
|
}
|
|
13918
|
-
getPrintableLabels(request) {
|
|
13919
|
-
let url_ = this.baseUrl + "/mes/labels/printable";
|
|
13920
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
13921
|
-
const content_ = JSON.stringify(request);
|
|
13922
|
-
let options_ = {
|
|
13923
|
-
body: content_,
|
|
13924
|
-
method: "POST",
|
|
13925
|
-
headers: {
|
|
13926
|
-
"Content-Type": "application/json",
|
|
13927
|
-
"Accept": "application/json"
|
|
13928
|
-
}
|
|
13929
|
-
};
|
|
13930
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
13931
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
13932
|
-
}).then((_response) => {
|
|
13933
|
-
return this.processGetPrintableLabels(_response);
|
|
13934
|
-
});
|
|
13935
|
-
}
|
|
13936
|
-
processGetPrintableLabels(response) {
|
|
13937
|
-
const status = response.status;
|
|
13938
|
-
let _headers = {};
|
|
13939
|
-
if (response.headers && response.headers.forEach) {
|
|
13940
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
13941
|
-
}
|
|
13942
|
-
;
|
|
13943
|
-
if (status === 200) {
|
|
13944
|
-
return response.text().then((_responseText) => {
|
|
13945
|
-
let result200 = null;
|
|
13946
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13947
|
-
result200 = DownloadDto.fromJS(resultData200);
|
|
13948
|
-
return result200;
|
|
13949
|
-
});
|
|
13950
|
-
}
|
|
13951
|
-
else if (status !== 200 && status !== 204) {
|
|
13952
|
-
return response.text().then((_responseText) => {
|
|
13953
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
13954
|
-
});
|
|
13955
|
-
}
|
|
13956
|
-
return Promise.resolve(null);
|
|
13957
|
-
}
|
|
13958
13955
|
}
|
|
13959
13956
|
export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
13960
13957
|
constructor(configuration, baseUrl, http) {
|
|
@@ -19731,6 +19728,44 @@ export class WorkordersClient extends AuthorizedApiBase {
|
|
|
19731
19728
|
}
|
|
19732
19729
|
return Promise.resolve(null);
|
|
19733
19730
|
}
|
|
19731
|
+
/**
|
|
19732
|
+
* Delete existing work order operation event.
|
|
19733
|
+
*/
|
|
19734
|
+
deleteWorkorderOperationEventById(eventId) {
|
|
19735
|
+
let url_ = this.baseUrl + "/erp/workorders/operations/events/{eventId}";
|
|
19736
|
+
if (eventId === undefined || eventId === null)
|
|
19737
|
+
throw new Error("The parameter 'eventId' must be defined.");
|
|
19738
|
+
url_ = url_.replace("{eventId}", encodeURIComponent("" + eventId));
|
|
19739
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
19740
|
+
let options_ = {
|
|
19741
|
+
method: "DELETE",
|
|
19742
|
+
headers: {}
|
|
19743
|
+
};
|
|
19744
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19745
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
19746
|
+
}).then((_response) => {
|
|
19747
|
+
return this.processDeleteWorkorderOperationEventById(_response);
|
|
19748
|
+
});
|
|
19749
|
+
}
|
|
19750
|
+
processDeleteWorkorderOperationEventById(response) {
|
|
19751
|
+
const status = response.status;
|
|
19752
|
+
let _headers = {};
|
|
19753
|
+
if (response.headers && response.headers.forEach) {
|
|
19754
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
19755
|
+
}
|
|
19756
|
+
;
|
|
19757
|
+
if (status === 204) {
|
|
19758
|
+
return response.text().then((_responseText) => {
|
|
19759
|
+
return;
|
|
19760
|
+
});
|
|
19761
|
+
}
|
|
19762
|
+
else if (status !== 200 && status !== 204) {
|
|
19763
|
+
return response.text().then((_responseText) => {
|
|
19764
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19765
|
+
});
|
|
19766
|
+
}
|
|
19767
|
+
return Promise.resolve(null);
|
|
19768
|
+
}
|
|
19734
19769
|
/**
|
|
19735
19770
|
* Filter work order operation events
|
|
19736
19771
|
*/
|
|
@@ -25628,7 +25663,11 @@ export class MachineDto {
|
|
|
25628
25663
|
this.name = _data["name"];
|
|
25629
25664
|
this.description = _data["description"];
|
|
25630
25665
|
this.type = _data["type"];
|
|
25631
|
-
|
|
25666
|
+
if (Array.isArray(_data["workOrderAssetExternalIds"])) {
|
|
25667
|
+
this.workOrderAssetExternalIds = [];
|
|
25668
|
+
for (let item of _data["workOrderAssetExternalIds"])
|
|
25669
|
+
this.workOrderAssetExternalIds.push(item);
|
|
25670
|
+
}
|
|
25632
25671
|
this.hasLiveMachineState = _data["hasLiveMachineState"];
|
|
25633
25672
|
this.companyId = _data["companyId"];
|
|
25634
25673
|
this.resourceId = _data["resourceId"];
|
|
@@ -25647,7 +25686,11 @@ export class MachineDto {
|
|
|
25647
25686
|
data["name"] = this.name;
|
|
25648
25687
|
data["description"] = this.description;
|
|
25649
25688
|
data["type"] = this.type;
|
|
25650
|
-
|
|
25689
|
+
if (Array.isArray(this.workOrderAssetExternalIds)) {
|
|
25690
|
+
data["workOrderAssetExternalIds"] = [];
|
|
25691
|
+
for (let item of this.workOrderAssetExternalIds)
|
|
25692
|
+
data["workOrderAssetExternalIds"].push(item);
|
|
25693
|
+
}
|
|
25651
25694
|
data["hasLiveMachineState"] = this.hasLiveMachineState;
|
|
25652
25695
|
data["companyId"] = this.companyId;
|
|
25653
25696
|
data["resourceId"] = this.resourceId;
|
|
@@ -26622,6 +26665,38 @@ export class CreateResourceWithMachine {
|
|
|
26622
26665
|
return data;
|
|
26623
26666
|
}
|
|
26624
26667
|
}
|
|
26668
|
+
export class CreateResourceInResourceGroup {
|
|
26669
|
+
constructor(data) {
|
|
26670
|
+
if (data) {
|
|
26671
|
+
for (var property in data) {
|
|
26672
|
+
if (data.hasOwnProperty(property))
|
|
26673
|
+
this[property] = data[property];
|
|
26674
|
+
}
|
|
26675
|
+
}
|
|
26676
|
+
}
|
|
26677
|
+
init(_data) {
|
|
26678
|
+
if (_data) {
|
|
26679
|
+
this.id = _data["id"];
|
|
26680
|
+
this.resourceGroupId = _data["resourceGroupId"];
|
|
26681
|
+
this.name = _data["name"];
|
|
26682
|
+
this.description = _data["description"];
|
|
26683
|
+
}
|
|
26684
|
+
}
|
|
26685
|
+
static fromJS(data) {
|
|
26686
|
+
data = typeof data === 'object' ? data : {};
|
|
26687
|
+
let result = new CreateResourceInResourceGroup();
|
|
26688
|
+
result.init(data);
|
|
26689
|
+
return result;
|
|
26690
|
+
}
|
|
26691
|
+
toJSON(data) {
|
|
26692
|
+
data = typeof data === 'object' ? data : {};
|
|
26693
|
+
data["id"] = this.id;
|
|
26694
|
+
data["resourceGroupId"] = this.resourceGroupId;
|
|
26695
|
+
data["name"] = this.name;
|
|
26696
|
+
data["description"] = this.description;
|
|
26697
|
+
return data;
|
|
26698
|
+
}
|
|
26699
|
+
}
|
|
26625
26700
|
export class LinkDto {
|
|
26626
26701
|
constructor(data) {
|
|
26627
26702
|
if (data) {
|
|
@@ -32741,6 +32816,71 @@ export class UpdateMesLink {
|
|
|
32741
32816
|
return data;
|
|
32742
32817
|
}
|
|
32743
32818
|
}
|
|
32819
|
+
export class GeneratePrintableLabel {
|
|
32820
|
+
constructor(data) {
|
|
32821
|
+
if (data) {
|
|
32822
|
+
for (var property in data) {
|
|
32823
|
+
if (data.hasOwnProperty(property))
|
|
32824
|
+
this[property] = data[property];
|
|
32825
|
+
}
|
|
32826
|
+
}
|
|
32827
|
+
if (!data) {
|
|
32828
|
+
this.labelIds = [];
|
|
32829
|
+
}
|
|
32830
|
+
}
|
|
32831
|
+
init(_data) {
|
|
32832
|
+
if (_data) {
|
|
32833
|
+
if (Array.isArray(_data["labelIds"])) {
|
|
32834
|
+
this.labelIds = [];
|
|
32835
|
+
for (let item of _data["labelIds"])
|
|
32836
|
+
this.labelIds.push(LabelId.fromJS(item));
|
|
32837
|
+
}
|
|
32838
|
+
}
|
|
32839
|
+
}
|
|
32840
|
+
static fromJS(data) {
|
|
32841
|
+
data = typeof data === 'object' ? data : {};
|
|
32842
|
+
let result = new GeneratePrintableLabel();
|
|
32843
|
+
result.init(data);
|
|
32844
|
+
return result;
|
|
32845
|
+
}
|
|
32846
|
+
toJSON(data) {
|
|
32847
|
+
data = typeof data === 'object' ? data : {};
|
|
32848
|
+
if (Array.isArray(this.labelIds)) {
|
|
32849
|
+
data["labelIds"] = [];
|
|
32850
|
+
for (let item of this.labelIds)
|
|
32851
|
+
data["labelIds"].push(item.toJSON());
|
|
32852
|
+
}
|
|
32853
|
+
return data;
|
|
32854
|
+
}
|
|
32855
|
+
}
|
|
32856
|
+
export class LabelId {
|
|
32857
|
+
constructor(data) {
|
|
32858
|
+
if (data) {
|
|
32859
|
+
for (var property in data) {
|
|
32860
|
+
if (data.hasOwnProperty(property))
|
|
32861
|
+
this[property] = data[property];
|
|
32862
|
+
}
|
|
32863
|
+
}
|
|
32864
|
+
}
|
|
32865
|
+
init(_data) {
|
|
32866
|
+
if (_data) {
|
|
32867
|
+
this.parcelId = _data["parcelId"];
|
|
32868
|
+
this.trackingId = _data["trackingId"];
|
|
32869
|
+
}
|
|
32870
|
+
}
|
|
32871
|
+
static fromJS(data) {
|
|
32872
|
+
data = typeof data === 'object' ? data : {};
|
|
32873
|
+
let result = new LabelId();
|
|
32874
|
+
result.init(data);
|
|
32875
|
+
return result;
|
|
32876
|
+
}
|
|
32877
|
+
toJSON(data) {
|
|
32878
|
+
data = typeof data === 'object' ? data : {};
|
|
32879
|
+
data["parcelId"] = this.parcelId;
|
|
32880
|
+
data["trackingId"] = this.trackingId;
|
|
32881
|
+
return data;
|
|
32882
|
+
}
|
|
32883
|
+
}
|
|
32744
32884
|
export class ProductionOrderDto {
|
|
32745
32885
|
constructor(data) {
|
|
32746
32886
|
if (data) {
|
|
@@ -33617,71 +33757,6 @@ export class ProductionOrderOperationActivityDto {
|
|
|
33617
33757
|
return data;
|
|
33618
33758
|
}
|
|
33619
33759
|
}
|
|
33620
|
-
export class GeneratePrintableLabel {
|
|
33621
|
-
constructor(data) {
|
|
33622
|
-
if (data) {
|
|
33623
|
-
for (var property in data) {
|
|
33624
|
-
if (data.hasOwnProperty(property))
|
|
33625
|
-
this[property] = data[property];
|
|
33626
|
-
}
|
|
33627
|
-
}
|
|
33628
|
-
if (!data) {
|
|
33629
|
-
this.labelIds = [];
|
|
33630
|
-
}
|
|
33631
|
-
}
|
|
33632
|
-
init(_data) {
|
|
33633
|
-
if (_data) {
|
|
33634
|
-
if (Array.isArray(_data["labelIds"])) {
|
|
33635
|
-
this.labelIds = [];
|
|
33636
|
-
for (let item of _data["labelIds"])
|
|
33637
|
-
this.labelIds.push(LabelId.fromJS(item));
|
|
33638
|
-
}
|
|
33639
|
-
}
|
|
33640
|
-
}
|
|
33641
|
-
static fromJS(data) {
|
|
33642
|
-
data = typeof data === 'object' ? data : {};
|
|
33643
|
-
let result = new GeneratePrintableLabel();
|
|
33644
|
-
result.init(data);
|
|
33645
|
-
return result;
|
|
33646
|
-
}
|
|
33647
|
-
toJSON(data) {
|
|
33648
|
-
data = typeof data === 'object' ? data : {};
|
|
33649
|
-
if (Array.isArray(this.labelIds)) {
|
|
33650
|
-
data["labelIds"] = [];
|
|
33651
|
-
for (let item of this.labelIds)
|
|
33652
|
-
data["labelIds"].push(item.toJSON());
|
|
33653
|
-
}
|
|
33654
|
-
return data;
|
|
33655
|
-
}
|
|
33656
|
-
}
|
|
33657
|
-
export class LabelId {
|
|
33658
|
-
constructor(data) {
|
|
33659
|
-
if (data) {
|
|
33660
|
-
for (var property in data) {
|
|
33661
|
-
if (data.hasOwnProperty(property))
|
|
33662
|
-
this[property] = data[property];
|
|
33663
|
-
}
|
|
33664
|
-
}
|
|
33665
|
-
}
|
|
33666
|
-
init(_data) {
|
|
33667
|
-
if (_data) {
|
|
33668
|
-
this.parcelId = _data["parcelId"];
|
|
33669
|
-
this.trackingId = _data["trackingId"];
|
|
33670
|
-
}
|
|
33671
|
-
}
|
|
33672
|
-
static fromJS(data) {
|
|
33673
|
-
data = typeof data === 'object' ? data : {};
|
|
33674
|
-
let result = new LabelId();
|
|
33675
|
-
result.init(data);
|
|
33676
|
-
return result;
|
|
33677
|
-
}
|
|
33678
|
-
toJSON(data) {
|
|
33679
|
-
data = typeof data === 'object' ? data : {};
|
|
33680
|
-
data["parcelId"] = this.parcelId;
|
|
33681
|
-
data["trackingId"] = this.trackingId;
|
|
33682
|
-
return data;
|
|
33683
|
-
}
|
|
33684
|
-
}
|
|
33685
33760
|
export class PagedResultOfProductionScheduleOperationDto {
|
|
33686
33761
|
constructor(data) {
|
|
33687
33762
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -5976,6 +5976,8 @@ export interface IMachinesClient {
|
|
|
5976
5976
|
createResourceWithoutMachine(request: CreateResourceWithoutMachine): Promise<void>;
|
|
5977
5977
|
|
|
5978
5978
|
createResourceWithMachine(request: CreateResourceWithMachine): Promise<void>;
|
|
5979
|
+
|
|
5980
|
+
createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void>;
|
|
5979
5981
|
}
|
|
5980
5982
|
|
|
5981
5983
|
export class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
|
|
@@ -6613,6 +6615,42 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
6613
6615
|
}
|
|
6614
6616
|
return Promise.resolve<void>(null as any);
|
|
6615
6617
|
}
|
|
6618
|
+
|
|
6619
|
+
createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void> {
|
|
6620
|
+
let url_ = this.baseUrl + "/machines/resource-in-resource-group";
|
|
6621
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6622
|
+
|
|
6623
|
+
const content_ = JSON.stringify(request);
|
|
6624
|
+
|
|
6625
|
+
let options_: RequestInit = {
|
|
6626
|
+
body: content_,
|
|
6627
|
+
method: "POST",
|
|
6628
|
+
headers: {
|
|
6629
|
+
"Content-Type": "application/json",
|
|
6630
|
+
}
|
|
6631
|
+
};
|
|
6632
|
+
|
|
6633
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6634
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6635
|
+
}).then((_response: Response) => {
|
|
6636
|
+
return this.processCreateResourceInResourceGroup(_response);
|
|
6637
|
+
});
|
|
6638
|
+
}
|
|
6639
|
+
|
|
6640
|
+
protected processCreateResourceInResourceGroup(response: Response): Promise<void> {
|
|
6641
|
+
const status = response.status;
|
|
6642
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6643
|
+
if (status === 204) {
|
|
6644
|
+
return response.text().then((_responseText) => {
|
|
6645
|
+
return;
|
|
6646
|
+
});
|
|
6647
|
+
} else if (status !== 200 && status !== 204) {
|
|
6648
|
+
return response.text().then((_responseText) => {
|
|
6649
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6650
|
+
});
|
|
6651
|
+
}
|
|
6652
|
+
return Promise.resolve<void>(null as any);
|
|
6653
|
+
}
|
|
6616
6654
|
}
|
|
6617
6655
|
|
|
6618
6656
|
export interface ILinksClient {
|
|
@@ -12798,11 +12836,6 @@ export interface IMoveBookingClient {
|
|
|
12798
12836
|
|
|
12799
12837
|
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]>;
|
|
12800
12838
|
|
|
12801
|
-
/**
|
|
12802
|
-
* @deprecated
|
|
12803
|
-
*/
|
|
12804
|
-
createBookingTransport2(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]>;
|
|
12805
|
-
|
|
12806
12839
|
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto[]>;
|
|
12807
12840
|
|
|
12808
12841
|
updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
|
|
@@ -13025,53 +13058,6 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
|
|
|
13025
13058
|
return Promise.resolve<BookingDto[]>(null as any);
|
|
13026
13059
|
}
|
|
13027
13060
|
|
|
13028
|
-
/**
|
|
13029
|
-
* @deprecated
|
|
13030
|
-
*/
|
|
13031
|
-
createBookingTransport2(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]> {
|
|
13032
|
-
let url_ = this.baseUrl + "/move/booking/transport2";
|
|
13033
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
13034
|
-
|
|
13035
|
-
const content_ = JSON.stringify(bookingRequest);
|
|
13036
|
-
|
|
13037
|
-
let options_: RequestInit = {
|
|
13038
|
-
body: content_,
|
|
13039
|
-
method: "POST",
|
|
13040
|
-
headers: {
|
|
13041
|
-
"Content-Type": "application/json",
|
|
13042
|
-
"Accept": "application/json"
|
|
13043
|
-
}
|
|
13044
|
-
};
|
|
13045
|
-
|
|
13046
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
13047
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
13048
|
-
}).then((_response: Response) => {
|
|
13049
|
-
return this.processCreateBookingTransport2(_response);
|
|
13050
|
-
});
|
|
13051
|
-
}
|
|
13052
|
-
|
|
13053
|
-
protected processCreateBookingTransport2(response: Response): Promise<BookingDto[]> {
|
|
13054
|
-
const status = response.status;
|
|
13055
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
13056
|
-
if (status === 200) {
|
|
13057
|
-
return response.text().then((_responseText) => {
|
|
13058
|
-
let result200: any = null;
|
|
13059
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13060
|
-
if (Array.isArray(resultData200)) {
|
|
13061
|
-
result200 = [] as any;
|
|
13062
|
-
for (let item of resultData200)
|
|
13063
|
-
result200!.push(BookingDto.fromJS(item));
|
|
13064
|
-
}
|
|
13065
|
-
return result200;
|
|
13066
|
-
});
|
|
13067
|
-
} else if (status !== 200 && status !== 204) {
|
|
13068
|
-
return response.text().then((_responseText) => {
|
|
13069
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
13070
|
-
});
|
|
13071
|
-
}
|
|
13072
|
-
return Promise.resolve<BookingDto[]>(null as any);
|
|
13073
|
-
}
|
|
13074
|
-
|
|
13075
13061
|
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto[]> {
|
|
13076
13062
|
let url_ = this.baseUrl + "/move/booking/general";
|
|
13077
13063
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -14502,6 +14488,63 @@ export class MesLinksClient extends AuthorizedApiBase implements IMesLinksClient
|
|
|
14502
14488
|
}
|
|
14503
14489
|
}
|
|
14504
14490
|
|
|
14491
|
+
export interface IMesOrMoveClient {
|
|
14492
|
+
|
|
14493
|
+
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
14494
|
+
}
|
|
14495
|
+
|
|
14496
|
+
export class MesOrMoveClient extends AuthorizedApiBase implements IMesOrMoveClient {
|
|
14497
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
14498
|
+
private baseUrl: string;
|
|
14499
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
14500
|
+
|
|
14501
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
14502
|
+
super(configuration);
|
|
14503
|
+
this.http = http ? http : window as any;
|
|
14504
|
+
this.baseUrl = baseUrl ?? "";
|
|
14505
|
+
}
|
|
14506
|
+
|
|
14507
|
+
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto> {
|
|
14508
|
+
let url_ = this.baseUrl + "/mes/labels/printable";
|
|
14509
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
14510
|
+
|
|
14511
|
+
const content_ = JSON.stringify(request);
|
|
14512
|
+
|
|
14513
|
+
let options_: RequestInit = {
|
|
14514
|
+
body: content_,
|
|
14515
|
+
method: "POST",
|
|
14516
|
+
headers: {
|
|
14517
|
+
"Content-Type": "application/json",
|
|
14518
|
+
"Accept": "application/json"
|
|
14519
|
+
}
|
|
14520
|
+
};
|
|
14521
|
+
|
|
14522
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
14523
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
14524
|
+
}).then((_response: Response) => {
|
|
14525
|
+
return this.processGetPrintableLabels(_response);
|
|
14526
|
+
});
|
|
14527
|
+
}
|
|
14528
|
+
|
|
14529
|
+
protected processGetPrintableLabels(response: Response): Promise<DownloadDto> {
|
|
14530
|
+
const status = response.status;
|
|
14531
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
14532
|
+
if (status === 200) {
|
|
14533
|
+
return response.text().then((_responseText) => {
|
|
14534
|
+
let result200: any = null;
|
|
14535
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14536
|
+
result200 = DownloadDto.fromJS(resultData200);
|
|
14537
|
+
return result200;
|
|
14538
|
+
});
|
|
14539
|
+
} else if (status !== 200 && status !== 204) {
|
|
14540
|
+
return response.text().then((_responseText) => {
|
|
14541
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14542
|
+
});
|
|
14543
|
+
}
|
|
14544
|
+
return Promise.resolve<DownloadDto>(null as any);
|
|
14545
|
+
}
|
|
14546
|
+
}
|
|
14547
|
+
|
|
14505
14548
|
export interface IMesProductionOrderClient {
|
|
14506
14549
|
|
|
14507
14550
|
getProductionOrder(id: string): Promise<ProductionOrderDto>;
|
|
@@ -14519,8 +14562,6 @@ export interface IMesProductionOrderClient {
|
|
|
14519
14562
|
postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
|
|
14520
14563
|
|
|
14521
14564
|
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
|
|
14522
|
-
|
|
14523
|
-
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
|
|
14524
14565
|
}
|
|
14525
14566
|
|
|
14526
14567
|
export class MesProductionOrderClient extends AuthorizedApiBase implements IMesProductionOrderClient {
|
|
@@ -14885,46 +14926,6 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
|
|
|
14885
14926
|
}
|
|
14886
14927
|
return Promise.resolve<ProductionOrderOperationActivityDto[]>(null as any);
|
|
14887
14928
|
}
|
|
14888
|
-
|
|
14889
|
-
getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto> {
|
|
14890
|
-
let url_ = this.baseUrl + "/mes/labels/printable";
|
|
14891
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
14892
|
-
|
|
14893
|
-
const content_ = JSON.stringify(request);
|
|
14894
|
-
|
|
14895
|
-
let options_: RequestInit = {
|
|
14896
|
-
body: content_,
|
|
14897
|
-
method: "POST",
|
|
14898
|
-
headers: {
|
|
14899
|
-
"Content-Type": "application/json",
|
|
14900
|
-
"Accept": "application/json"
|
|
14901
|
-
}
|
|
14902
|
-
};
|
|
14903
|
-
|
|
14904
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
14905
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
14906
|
-
}).then((_response: Response) => {
|
|
14907
|
-
return this.processGetPrintableLabels(_response);
|
|
14908
|
-
});
|
|
14909
|
-
}
|
|
14910
|
-
|
|
14911
|
-
protected processGetPrintableLabels(response: Response): Promise<DownloadDto> {
|
|
14912
|
-
const status = response.status;
|
|
14913
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
14914
|
-
if (status === 200) {
|
|
14915
|
-
return response.text().then((_responseText) => {
|
|
14916
|
-
let result200: any = null;
|
|
14917
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14918
|
-
result200 = DownloadDto.fromJS(resultData200);
|
|
14919
|
-
return result200;
|
|
14920
|
-
});
|
|
14921
|
-
} else if (status !== 200 && status !== 204) {
|
|
14922
|
-
return response.text().then((_responseText) => {
|
|
14923
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14924
|
-
});
|
|
14925
|
-
}
|
|
14926
|
-
return Promise.resolve<DownloadDto>(null as any);
|
|
14927
|
-
}
|
|
14928
14929
|
}
|
|
14929
14930
|
|
|
14930
14931
|
export interface IMesProductionScheduleClient {
|
|
@@ -20198,6 +20199,11 @@ export interface IWorkordersClient {
|
|
|
20198
20199
|
*/
|
|
20199
20200
|
updateWorkorderOperationEventTimestamps(eventId: string, request: UpdateWorkorderOperationEventTimestamps): Promise<void>;
|
|
20200
20201
|
|
|
20202
|
+
/**
|
|
20203
|
+
* Delete existing work order operation event.
|
|
20204
|
+
*/
|
|
20205
|
+
deleteWorkorderOperationEventById(eventId: string): Promise<void>;
|
|
20206
|
+
|
|
20201
20207
|
/**
|
|
20202
20208
|
* Filter work order operation events
|
|
20203
20209
|
*/
|
|
@@ -21095,6 +21101,44 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
21095
21101
|
return Promise.resolve<void>(null as any);
|
|
21096
21102
|
}
|
|
21097
21103
|
|
|
21104
|
+
/**
|
|
21105
|
+
* Delete existing work order operation event.
|
|
21106
|
+
*/
|
|
21107
|
+
deleteWorkorderOperationEventById(eventId: string): Promise<void> {
|
|
21108
|
+
let url_ = this.baseUrl + "/erp/workorders/operations/events/{eventId}";
|
|
21109
|
+
if (eventId === undefined || eventId === null)
|
|
21110
|
+
throw new Error("The parameter 'eventId' must be defined.");
|
|
21111
|
+
url_ = url_.replace("{eventId}", encodeURIComponent("" + eventId));
|
|
21112
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
21113
|
+
|
|
21114
|
+
let options_: RequestInit = {
|
|
21115
|
+
method: "DELETE",
|
|
21116
|
+
headers: {
|
|
21117
|
+
}
|
|
21118
|
+
};
|
|
21119
|
+
|
|
21120
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21121
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
21122
|
+
}).then((_response: Response) => {
|
|
21123
|
+
return this.processDeleteWorkorderOperationEventById(_response);
|
|
21124
|
+
});
|
|
21125
|
+
}
|
|
21126
|
+
|
|
21127
|
+
protected processDeleteWorkorderOperationEventById(response: Response): Promise<void> {
|
|
21128
|
+
const status = response.status;
|
|
21129
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
21130
|
+
if (status === 204) {
|
|
21131
|
+
return response.text().then((_responseText) => {
|
|
21132
|
+
return;
|
|
21133
|
+
});
|
|
21134
|
+
} else if (status !== 200 && status !== 204) {
|
|
21135
|
+
return response.text().then((_responseText) => {
|
|
21136
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21137
|
+
});
|
|
21138
|
+
}
|
|
21139
|
+
return Promise.resolve<void>(null as any);
|
|
21140
|
+
}
|
|
21141
|
+
|
|
21098
21142
|
/**
|
|
21099
21143
|
* Filter work order operation events
|
|
21100
21144
|
*/
|
|
@@ -29728,7 +29772,7 @@ export class MachineDto implements IMachineDto {
|
|
|
29728
29772
|
name!: string;
|
|
29729
29773
|
description?: string | null;
|
|
29730
29774
|
type?: string | null;
|
|
29731
|
-
|
|
29775
|
+
workOrderAssetExternalIds?: string[];
|
|
29732
29776
|
hasLiveMachineState!: boolean;
|
|
29733
29777
|
companyId?: string | null;
|
|
29734
29778
|
resourceId!: string;
|
|
@@ -29749,7 +29793,11 @@ export class MachineDto implements IMachineDto {
|
|
|
29749
29793
|
this.name = _data["name"];
|
|
29750
29794
|
this.description = _data["description"];
|
|
29751
29795
|
this.type = _data["type"];
|
|
29752
|
-
|
|
29796
|
+
if (Array.isArray(_data["workOrderAssetExternalIds"])) {
|
|
29797
|
+
this.workOrderAssetExternalIds = [] as any;
|
|
29798
|
+
for (let item of _data["workOrderAssetExternalIds"])
|
|
29799
|
+
this.workOrderAssetExternalIds!.push(item);
|
|
29800
|
+
}
|
|
29753
29801
|
this.hasLiveMachineState = _data["hasLiveMachineState"];
|
|
29754
29802
|
this.companyId = _data["companyId"];
|
|
29755
29803
|
this.resourceId = _data["resourceId"];
|
|
@@ -29770,7 +29818,11 @@ export class MachineDto implements IMachineDto {
|
|
|
29770
29818
|
data["name"] = this.name;
|
|
29771
29819
|
data["description"] = this.description;
|
|
29772
29820
|
data["type"] = this.type;
|
|
29773
|
-
|
|
29821
|
+
if (Array.isArray(this.workOrderAssetExternalIds)) {
|
|
29822
|
+
data["workOrderAssetExternalIds"] = [];
|
|
29823
|
+
for (let item of this.workOrderAssetExternalIds)
|
|
29824
|
+
data["workOrderAssetExternalIds"].push(item);
|
|
29825
|
+
}
|
|
29774
29826
|
data["hasLiveMachineState"] = this.hasLiveMachineState;
|
|
29775
29827
|
data["companyId"] = this.companyId;
|
|
29776
29828
|
data["resourceId"] = this.resourceId;
|
|
@@ -29784,7 +29836,7 @@ export interface IMachineDto {
|
|
|
29784
29836
|
name: string;
|
|
29785
29837
|
description?: string | null;
|
|
29786
29838
|
type?: string | null;
|
|
29787
|
-
|
|
29839
|
+
workOrderAssetExternalIds?: string[];
|
|
29788
29840
|
hasLiveMachineState: boolean;
|
|
29789
29841
|
companyId?: string | null;
|
|
29790
29842
|
resourceId: string;
|
|
@@ -31196,6 +31248,54 @@ export interface ICreateResourceWithMachine {
|
|
|
31196
31248
|
model?: string | null;
|
|
31197
31249
|
}
|
|
31198
31250
|
|
|
31251
|
+
export class CreateResourceInResourceGroup implements ICreateResourceInResourceGroup {
|
|
31252
|
+
id!: string;
|
|
31253
|
+
resourceGroupId!: string;
|
|
31254
|
+
name!: string;
|
|
31255
|
+
description?: string | null;
|
|
31256
|
+
|
|
31257
|
+
constructor(data?: ICreateResourceInResourceGroup) {
|
|
31258
|
+
if (data) {
|
|
31259
|
+
for (var property in data) {
|
|
31260
|
+
if (data.hasOwnProperty(property))
|
|
31261
|
+
(<any>this)[property] = (<any>data)[property];
|
|
31262
|
+
}
|
|
31263
|
+
}
|
|
31264
|
+
}
|
|
31265
|
+
|
|
31266
|
+
init(_data?: any) {
|
|
31267
|
+
if (_data) {
|
|
31268
|
+
this.id = _data["id"];
|
|
31269
|
+
this.resourceGroupId = _data["resourceGroupId"];
|
|
31270
|
+
this.name = _data["name"];
|
|
31271
|
+
this.description = _data["description"];
|
|
31272
|
+
}
|
|
31273
|
+
}
|
|
31274
|
+
|
|
31275
|
+
static fromJS(data: any): CreateResourceInResourceGroup {
|
|
31276
|
+
data = typeof data === 'object' ? data : {};
|
|
31277
|
+
let result = new CreateResourceInResourceGroup();
|
|
31278
|
+
result.init(data);
|
|
31279
|
+
return result;
|
|
31280
|
+
}
|
|
31281
|
+
|
|
31282
|
+
toJSON(data?: any) {
|
|
31283
|
+
data = typeof data === 'object' ? data : {};
|
|
31284
|
+
data["id"] = this.id;
|
|
31285
|
+
data["resourceGroupId"] = this.resourceGroupId;
|
|
31286
|
+
data["name"] = this.name;
|
|
31287
|
+
data["description"] = this.description;
|
|
31288
|
+
return data;
|
|
31289
|
+
}
|
|
31290
|
+
}
|
|
31291
|
+
|
|
31292
|
+
export interface ICreateResourceInResourceGroup {
|
|
31293
|
+
id: string;
|
|
31294
|
+
resourceGroupId: string;
|
|
31295
|
+
name: string;
|
|
31296
|
+
description?: string | null;
|
|
31297
|
+
}
|
|
31298
|
+
|
|
31199
31299
|
export class LinkDto implements ILinkDto {
|
|
31200
31300
|
id!: string;
|
|
31201
31301
|
uri!: string;
|
|
@@ -40397,6 +40497,93 @@ export interface IUpdateMesLink {
|
|
|
40397
40497
|
companyId?: string | null;
|
|
40398
40498
|
}
|
|
40399
40499
|
|
|
40500
|
+
export class GeneratePrintableLabel implements IGeneratePrintableLabel {
|
|
40501
|
+
labelIds!: LabelId[];
|
|
40502
|
+
|
|
40503
|
+
constructor(data?: IGeneratePrintableLabel) {
|
|
40504
|
+
if (data) {
|
|
40505
|
+
for (var property in data) {
|
|
40506
|
+
if (data.hasOwnProperty(property))
|
|
40507
|
+
(<any>this)[property] = (<any>data)[property];
|
|
40508
|
+
}
|
|
40509
|
+
}
|
|
40510
|
+
if (!data) {
|
|
40511
|
+
this.labelIds = [];
|
|
40512
|
+
}
|
|
40513
|
+
}
|
|
40514
|
+
|
|
40515
|
+
init(_data?: any) {
|
|
40516
|
+
if (_data) {
|
|
40517
|
+
if (Array.isArray(_data["labelIds"])) {
|
|
40518
|
+
this.labelIds = [] as any;
|
|
40519
|
+
for (let item of _data["labelIds"])
|
|
40520
|
+
this.labelIds!.push(LabelId.fromJS(item));
|
|
40521
|
+
}
|
|
40522
|
+
}
|
|
40523
|
+
}
|
|
40524
|
+
|
|
40525
|
+
static fromJS(data: any): GeneratePrintableLabel {
|
|
40526
|
+
data = typeof data === 'object' ? data : {};
|
|
40527
|
+
let result = new GeneratePrintableLabel();
|
|
40528
|
+
result.init(data);
|
|
40529
|
+
return result;
|
|
40530
|
+
}
|
|
40531
|
+
|
|
40532
|
+
toJSON(data?: any) {
|
|
40533
|
+
data = typeof data === 'object' ? data : {};
|
|
40534
|
+
if (Array.isArray(this.labelIds)) {
|
|
40535
|
+
data["labelIds"] = [];
|
|
40536
|
+
for (let item of this.labelIds)
|
|
40537
|
+
data["labelIds"].push(item.toJSON());
|
|
40538
|
+
}
|
|
40539
|
+
return data;
|
|
40540
|
+
}
|
|
40541
|
+
}
|
|
40542
|
+
|
|
40543
|
+
export interface IGeneratePrintableLabel {
|
|
40544
|
+
labelIds: LabelId[];
|
|
40545
|
+
}
|
|
40546
|
+
|
|
40547
|
+
export class LabelId implements ILabelId {
|
|
40548
|
+
parcelId!: string;
|
|
40549
|
+
trackingId?: string | null;
|
|
40550
|
+
|
|
40551
|
+
constructor(data?: ILabelId) {
|
|
40552
|
+
if (data) {
|
|
40553
|
+
for (var property in data) {
|
|
40554
|
+
if (data.hasOwnProperty(property))
|
|
40555
|
+
(<any>this)[property] = (<any>data)[property];
|
|
40556
|
+
}
|
|
40557
|
+
}
|
|
40558
|
+
}
|
|
40559
|
+
|
|
40560
|
+
init(_data?: any) {
|
|
40561
|
+
if (_data) {
|
|
40562
|
+
this.parcelId = _data["parcelId"];
|
|
40563
|
+
this.trackingId = _data["trackingId"];
|
|
40564
|
+
}
|
|
40565
|
+
}
|
|
40566
|
+
|
|
40567
|
+
static fromJS(data: any): LabelId {
|
|
40568
|
+
data = typeof data === 'object' ? data : {};
|
|
40569
|
+
let result = new LabelId();
|
|
40570
|
+
result.init(data);
|
|
40571
|
+
return result;
|
|
40572
|
+
}
|
|
40573
|
+
|
|
40574
|
+
toJSON(data?: any) {
|
|
40575
|
+
data = typeof data === 'object' ? data : {};
|
|
40576
|
+
data["parcelId"] = this.parcelId;
|
|
40577
|
+
data["trackingId"] = this.trackingId;
|
|
40578
|
+
return data;
|
|
40579
|
+
}
|
|
40580
|
+
}
|
|
40581
|
+
|
|
40582
|
+
export interface ILabelId {
|
|
40583
|
+
parcelId: string;
|
|
40584
|
+
trackingId?: string | null;
|
|
40585
|
+
}
|
|
40586
|
+
|
|
40400
40587
|
export class ProductionOrderDto implements IProductionOrderDto {
|
|
40401
40588
|
id!: string;
|
|
40402
40589
|
companyId!: string;
|
|
@@ -41773,93 +41960,6 @@ export interface IProductionOrderOperationActivityDto {
|
|
|
41773
41960
|
|
|
41774
41961
|
export type WorkTypeDto = "None" | "Production" | "Setup";
|
|
41775
41962
|
|
|
41776
|
-
export class GeneratePrintableLabel implements IGeneratePrintableLabel {
|
|
41777
|
-
labelIds!: LabelId[];
|
|
41778
|
-
|
|
41779
|
-
constructor(data?: IGeneratePrintableLabel) {
|
|
41780
|
-
if (data) {
|
|
41781
|
-
for (var property in data) {
|
|
41782
|
-
if (data.hasOwnProperty(property))
|
|
41783
|
-
(<any>this)[property] = (<any>data)[property];
|
|
41784
|
-
}
|
|
41785
|
-
}
|
|
41786
|
-
if (!data) {
|
|
41787
|
-
this.labelIds = [];
|
|
41788
|
-
}
|
|
41789
|
-
}
|
|
41790
|
-
|
|
41791
|
-
init(_data?: any) {
|
|
41792
|
-
if (_data) {
|
|
41793
|
-
if (Array.isArray(_data["labelIds"])) {
|
|
41794
|
-
this.labelIds = [] as any;
|
|
41795
|
-
for (let item of _data["labelIds"])
|
|
41796
|
-
this.labelIds!.push(LabelId.fromJS(item));
|
|
41797
|
-
}
|
|
41798
|
-
}
|
|
41799
|
-
}
|
|
41800
|
-
|
|
41801
|
-
static fromJS(data: any): GeneratePrintableLabel {
|
|
41802
|
-
data = typeof data === 'object' ? data : {};
|
|
41803
|
-
let result = new GeneratePrintableLabel();
|
|
41804
|
-
result.init(data);
|
|
41805
|
-
return result;
|
|
41806
|
-
}
|
|
41807
|
-
|
|
41808
|
-
toJSON(data?: any) {
|
|
41809
|
-
data = typeof data === 'object' ? data : {};
|
|
41810
|
-
if (Array.isArray(this.labelIds)) {
|
|
41811
|
-
data["labelIds"] = [];
|
|
41812
|
-
for (let item of this.labelIds)
|
|
41813
|
-
data["labelIds"].push(item.toJSON());
|
|
41814
|
-
}
|
|
41815
|
-
return data;
|
|
41816
|
-
}
|
|
41817
|
-
}
|
|
41818
|
-
|
|
41819
|
-
export interface IGeneratePrintableLabel {
|
|
41820
|
-
labelIds: LabelId[];
|
|
41821
|
-
}
|
|
41822
|
-
|
|
41823
|
-
export class LabelId implements ILabelId {
|
|
41824
|
-
parcelId!: string;
|
|
41825
|
-
trackingId?: string | null;
|
|
41826
|
-
|
|
41827
|
-
constructor(data?: ILabelId) {
|
|
41828
|
-
if (data) {
|
|
41829
|
-
for (var property in data) {
|
|
41830
|
-
if (data.hasOwnProperty(property))
|
|
41831
|
-
(<any>this)[property] = (<any>data)[property];
|
|
41832
|
-
}
|
|
41833
|
-
}
|
|
41834
|
-
}
|
|
41835
|
-
|
|
41836
|
-
init(_data?: any) {
|
|
41837
|
-
if (_data) {
|
|
41838
|
-
this.parcelId = _data["parcelId"];
|
|
41839
|
-
this.trackingId = _data["trackingId"];
|
|
41840
|
-
}
|
|
41841
|
-
}
|
|
41842
|
-
|
|
41843
|
-
static fromJS(data: any): LabelId {
|
|
41844
|
-
data = typeof data === 'object' ? data : {};
|
|
41845
|
-
let result = new LabelId();
|
|
41846
|
-
result.init(data);
|
|
41847
|
-
return result;
|
|
41848
|
-
}
|
|
41849
|
-
|
|
41850
|
-
toJSON(data?: any) {
|
|
41851
|
-
data = typeof data === 'object' ? data : {};
|
|
41852
|
-
data["parcelId"] = this.parcelId;
|
|
41853
|
-
data["trackingId"] = this.trackingId;
|
|
41854
|
-
return data;
|
|
41855
|
-
}
|
|
41856
|
-
}
|
|
41857
|
-
|
|
41858
|
-
export interface ILabelId {
|
|
41859
|
-
parcelId: string;
|
|
41860
|
-
trackingId?: string | null;
|
|
41861
|
-
}
|
|
41862
|
-
|
|
41863
41963
|
export class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
|
|
41864
41964
|
results!: ProductionScheduleOperationDto[];
|
|
41865
41965
|
continuationToken?: string | null;
|