@ignos/api-client 20240422.0.9140 → 20240424.0.9152
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 +6 -4
- package/lib/ignosportal-api.js +10 -10
- package/package.json +1 -1
- package/src/ignosportal-api.ts +14 -12
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -747,7 +747,7 @@ export declare class LocatePartsClient extends AuthorizedApiBase implements ILoc
|
|
|
747
747
|
export interface ILocateTrackingClient {
|
|
748
748
|
listTrackingHistory(orderId: string): Promise<LocateTrackingHistoryDto>;
|
|
749
749
|
createTrackingEvent(orderId: string, locateTrackingUpdate: LocateTrackingUpdateDto): Promise<LocateTrackingEventsDto>;
|
|
750
|
-
updateTrackingEvent(orderId: string, trackingEventId: number
|
|
750
|
+
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: LocateTrackingUpdateDto): Promise<LocateTrackingEventsDto>;
|
|
751
751
|
createLabel(orderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
752
752
|
}
|
|
753
753
|
export declare class LocateTrackingClient extends AuthorizedApiBase implements ILocateTrackingClient {
|
|
@@ -761,7 +761,7 @@ export declare class LocateTrackingClient extends AuthorizedApiBase implements I
|
|
|
761
761
|
protected processListTrackingHistory(response: Response): Promise<LocateTrackingHistoryDto>;
|
|
762
762
|
createTrackingEvent(orderId: string, locateTrackingUpdate: LocateTrackingUpdateDto): Promise<LocateTrackingEventsDto>;
|
|
763
763
|
protected processCreateTrackingEvent(response: Response): Promise<LocateTrackingEventsDto>;
|
|
764
|
-
updateTrackingEvent(orderId: string, trackingEventId: number
|
|
764
|
+
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: LocateTrackingUpdateDto): Promise<LocateTrackingEventsDto>;
|
|
765
765
|
protected processUpdateTrackingEvent(response: Response): Promise<LocateTrackingEventsDto>;
|
|
766
766
|
createLabel(orderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
767
767
|
protected processCreateLabel(response: Response): Promise<FileResponse>;
|
|
@@ -1706,7 +1706,7 @@ export declare class MesDocumentsClient extends AuthorizedApiBase implements IMe
|
|
|
1706
1706
|
}
|
|
1707
1707
|
export interface IMesLinksClient {
|
|
1708
1708
|
addMesLink(request: AddMesLink): Promise<void>;
|
|
1709
|
-
listMesLinks(workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]>;
|
|
1709
|
+
listMesLinks(types: MesLinkTypeDto[] | null | undefined, workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]>;
|
|
1710
1710
|
listUnmappedMesLinks(): Promise<MesLinkDto[]>;
|
|
1711
1711
|
updateMesLink(id: string, request: UpdateMesLink): Promise<FileResponse>;
|
|
1712
1712
|
deleteMesLink(id: string): Promise<void>;
|
|
@@ -1720,7 +1720,7 @@ export declare class MesLinksClient extends AuthorizedApiBase implements IMesLin
|
|
|
1720
1720
|
});
|
|
1721
1721
|
addMesLink(request: AddMesLink): Promise<void>;
|
|
1722
1722
|
protected processAddMesLink(response: Response): Promise<void>;
|
|
1723
|
-
listMesLinks(workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]>;
|
|
1723
|
+
listMesLinks(types: MesLinkTypeDto[] | null | undefined, workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]>;
|
|
1724
1724
|
protected processListMesLinks(response: Response): Promise<MesLinkDto[]>;
|
|
1725
1725
|
listUnmappedMesLinks(): Promise<MesLinkDto[]>;
|
|
1726
1726
|
protected processListUnmappedMesLinks(response: Response): Promise<MesLinkDto[]>;
|
|
@@ -5205,6 +5205,7 @@ export interface ILocateBookingRequestListDto {
|
|
|
5205
5205
|
continuationToken?: string | null;
|
|
5206
5206
|
}
|
|
5207
5207
|
export declare class LocateLocationDto implements ILocateLocationDto {
|
|
5208
|
+
locationId: string;
|
|
5208
5209
|
location: string;
|
|
5209
5210
|
constructor(data?: ILocateLocationDto);
|
|
5210
5211
|
init(_data?: any): void;
|
|
@@ -5212,6 +5213,7 @@ export declare class LocateLocationDto implements ILocateLocationDto {
|
|
|
5212
5213
|
toJSON(data?: any): any;
|
|
5213
5214
|
}
|
|
5214
5215
|
export interface ILocateLocationDto {
|
|
5216
|
+
locationId: string;
|
|
5215
5217
|
location: string;
|
|
5216
5218
|
}
|
|
5217
5219
|
export declare class LocatePartsDto implements ILocatePartsDto {
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -5846,18 +5846,14 @@ export class LocateTrackingClient extends AuthorizedApiBase {
|
|
|
5846
5846
|
}
|
|
5847
5847
|
return Promise.resolve(null);
|
|
5848
5848
|
}
|
|
5849
|
-
updateTrackingEvent(orderId, trackingEventId,
|
|
5850
|
-
let url_ = this.baseUrl + "/locate/tracking/{orderId}/{
|
|
5849
|
+
updateTrackingEvent(orderId, trackingEventId, locateTrackingUpdate) {
|
|
5850
|
+
let url_ = this.baseUrl + "/locate/tracking/{orderId}/{trackingEventId}";
|
|
5851
5851
|
if (orderId === undefined || orderId === null)
|
|
5852
5852
|
throw new Error("The parameter 'orderId' must be defined.");
|
|
5853
5853
|
url_ = url_.replace("{orderId}", encodeURIComponent("" + orderId));
|
|
5854
|
-
if (
|
|
5855
|
-
throw new Error("The parameter '
|
|
5856
|
-
url_ = url_.replace("{
|
|
5857
|
-
if (trackingEventId === null)
|
|
5858
|
-
throw new Error("The parameter 'trackingEventId' cannot be null.");
|
|
5859
|
-
else if (trackingEventId !== undefined)
|
|
5860
|
-
url_ += "trackingEventId=" + encodeURIComponent("" + trackingEventId) + "&";
|
|
5854
|
+
if (trackingEventId === undefined || trackingEventId === null)
|
|
5855
|
+
throw new Error("The parameter 'trackingEventId' must be defined.");
|
|
5856
|
+
url_ = url_.replace("{trackingEventId}", encodeURIComponent("" + trackingEventId));
|
|
5861
5857
|
url_ = url_.replace(/[?&]$/, "");
|
|
5862
5858
|
const content_ = JSON.stringify(locateTrackingUpdate);
|
|
5863
5859
|
let options_ = {
|
|
@@ -15143,8 +15139,10 @@ export class MesLinksClient extends AuthorizedApiBase {
|
|
|
15143
15139
|
}
|
|
15144
15140
|
return Promise.resolve(null);
|
|
15145
15141
|
}
|
|
15146
|
-
listMesLinks(workOrderId, operation) {
|
|
15142
|
+
listMesLinks(types, workOrderId, operation) {
|
|
15147
15143
|
let url_ = this.baseUrl + "/mes/links?";
|
|
15144
|
+
if (types !== undefined && types !== null)
|
|
15145
|
+
types && types.forEach(item => { url_ += "types=" + encodeURIComponent("" + item) + "&"; });
|
|
15148
15146
|
if (workOrderId !== undefined && workOrderId !== null)
|
|
15149
15147
|
url_ += "workOrderId=" + encodeURIComponent("" + workOrderId) + "&";
|
|
15150
15148
|
if (operation !== undefined && operation !== null)
|
|
@@ -24281,6 +24279,7 @@ export class LocateLocationDto {
|
|
|
24281
24279
|
}
|
|
24282
24280
|
init(_data) {
|
|
24283
24281
|
if (_data) {
|
|
24282
|
+
this.locationId = _data["locationId"];
|
|
24284
24283
|
this.location = _data["location"];
|
|
24285
24284
|
}
|
|
24286
24285
|
}
|
|
@@ -24292,6 +24291,7 @@ export class LocateLocationDto {
|
|
|
24292
24291
|
}
|
|
24293
24292
|
toJSON(data) {
|
|
24294
24293
|
data = typeof data === 'object' ? data : {};
|
|
24294
|
+
data["locationId"] = this.locationId;
|
|
24295
24295
|
data["location"] = this.location;
|
|
24296
24296
|
return data;
|
|
24297
24297
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -6169,7 +6169,7 @@ export interface ILocateTrackingClient {
|
|
|
6169
6169
|
|
|
6170
6170
|
createTrackingEvent(orderId: string, locateTrackingUpdate: LocateTrackingUpdateDto): Promise<LocateTrackingEventsDto>;
|
|
6171
6171
|
|
|
6172
|
-
updateTrackingEvent(orderId: string, trackingEventId: number
|
|
6172
|
+
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: LocateTrackingUpdateDto): Promise<LocateTrackingEventsDto>;
|
|
6173
6173
|
|
|
6174
6174
|
createLabel(orderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
6175
6175
|
}
|
|
@@ -6267,18 +6267,14 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6267
6267
|
return Promise.resolve<LocateTrackingEventsDto>(null as any);
|
|
6268
6268
|
}
|
|
6269
6269
|
|
|
6270
|
-
updateTrackingEvent(orderId: string, trackingEventId: number
|
|
6271
|
-
let url_ = this.baseUrl + "/locate/tracking/{orderId}/{
|
|
6270
|
+
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: LocateTrackingUpdateDto): Promise<LocateTrackingEventsDto> {
|
|
6271
|
+
let url_ = this.baseUrl + "/locate/tracking/{orderId}/{trackingEventId}";
|
|
6272
6272
|
if (orderId === undefined || orderId === null)
|
|
6273
6273
|
throw new Error("The parameter 'orderId' must be defined.");
|
|
6274
6274
|
url_ = url_.replace("{orderId}", encodeURIComponent("" + orderId));
|
|
6275
|
-
if (
|
|
6276
|
-
throw new Error("The parameter '
|
|
6277
|
-
url_ = url_.replace("{
|
|
6278
|
-
if (trackingEventId === null)
|
|
6279
|
-
throw new Error("The parameter 'trackingEventId' cannot be null.");
|
|
6280
|
-
else if (trackingEventId !== undefined)
|
|
6281
|
-
url_ += "trackingEventId=" + encodeURIComponent("" + trackingEventId) + "&";
|
|
6275
|
+
if (trackingEventId === undefined || trackingEventId === null)
|
|
6276
|
+
throw new Error("The parameter 'trackingEventId' must be defined.");
|
|
6277
|
+
url_ = url_.replace("{trackingEventId}", encodeURIComponent("" + trackingEventId));
|
|
6282
6278
|
url_ = url_.replace(/[?&]$/, "");
|
|
6283
6279
|
|
|
6284
6280
|
const content_ = JSON.stringify(locateTrackingUpdate);
|
|
@@ -16047,7 +16043,7 @@ export interface IMesLinksClient {
|
|
|
16047
16043
|
|
|
16048
16044
|
addMesLink(request: AddMesLink): Promise<void>;
|
|
16049
16045
|
|
|
16050
|
-
listMesLinks(workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]>;
|
|
16046
|
+
listMesLinks(types: MesLinkTypeDto[] | null | undefined, workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]>;
|
|
16051
16047
|
|
|
16052
16048
|
listUnmappedMesLinks(): Promise<MesLinkDto[]>;
|
|
16053
16049
|
|
|
@@ -16103,8 +16099,10 @@ export class MesLinksClient extends AuthorizedApiBase implements IMesLinksClient
|
|
|
16103
16099
|
return Promise.resolve<void>(null as any);
|
|
16104
16100
|
}
|
|
16105
16101
|
|
|
16106
|
-
listMesLinks(workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]> {
|
|
16102
|
+
listMesLinks(types: MesLinkTypeDto[] | null | undefined, workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]> {
|
|
16107
16103
|
let url_ = this.baseUrl + "/mes/links?";
|
|
16104
|
+
if (types !== undefined && types !== null)
|
|
16105
|
+
types && types.forEach(item => { url_ += "types=" + encodeURIComponent("" + item) + "&"; });
|
|
16108
16106
|
if (workOrderId !== undefined && workOrderId !== null)
|
|
16109
16107
|
url_ += "workOrderId=" + encodeURIComponent("" + workOrderId) + "&";
|
|
16110
16108
|
if (operation !== undefined && operation !== null)
|
|
@@ -28525,6 +28523,7 @@ export interface ILocateBookingRequestListDto {
|
|
|
28525
28523
|
}
|
|
28526
28524
|
|
|
28527
28525
|
export class LocateLocationDto implements ILocateLocationDto {
|
|
28526
|
+
locationId!: string;
|
|
28528
28527
|
location!: string;
|
|
28529
28528
|
|
|
28530
28529
|
constructor(data?: ILocateLocationDto) {
|
|
@@ -28538,6 +28537,7 @@ export class LocateLocationDto implements ILocateLocationDto {
|
|
|
28538
28537
|
|
|
28539
28538
|
init(_data?: any) {
|
|
28540
28539
|
if (_data) {
|
|
28540
|
+
this.locationId = _data["locationId"];
|
|
28541
28541
|
this.location = _data["location"];
|
|
28542
28542
|
}
|
|
28543
28543
|
}
|
|
@@ -28551,12 +28551,14 @@ export class LocateLocationDto implements ILocateLocationDto {
|
|
|
28551
28551
|
|
|
28552
28552
|
toJSON(data?: any) {
|
|
28553
28553
|
data = typeof data === 'object' ? data : {};
|
|
28554
|
+
data["locationId"] = this.locationId;
|
|
28554
28555
|
data["location"] = this.location;
|
|
28555
28556
|
return data;
|
|
28556
28557
|
}
|
|
28557
28558
|
}
|
|
28558
28559
|
|
|
28559
28560
|
export interface ILocateLocationDto {
|
|
28561
|
+
locationId: string;
|
|
28560
28562
|
location: string;
|
|
28561
28563
|
}
|
|
28562
28564
|
|