@ignos/api-client 20240702.0.9720 → 20240703.0.9731
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 +3 -3
- package/lib/ignosportal-api.js +8 -13
- package/package.json +1 -1
- package/src/ignosportal-api.ts +12 -16
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1579,7 +1579,7 @@ export interface IMoveTrackingClient {
|
|
|
1579
1579
|
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
1580
1580
|
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
1581
1581
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
1582
|
-
createLabel(trackingIds: string[]): Promise<
|
|
1582
|
+
createLabel(trackingIds: string[]): Promise<DownloadDto>;
|
|
1583
1583
|
}
|
|
1584
1584
|
export declare class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
|
|
1585
1585
|
private http;
|
|
@@ -1602,8 +1602,8 @@ export declare class MoveTrackingClient extends AuthorizedApiBase implements IMo
|
|
|
1602
1602
|
protected processCreateTrackingHistory(response: Response): Promise<TrackingHistoryDto[]>;
|
|
1603
1603
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
1604
1604
|
protected processDeleteTrackingHistory(response: Response): Promise<void>;
|
|
1605
|
-
createLabel(trackingIds: string[]): Promise<
|
|
1606
|
-
protected processCreateLabel(response: Response): Promise<
|
|
1605
|
+
createLabel(trackingIds: string[]): Promise<DownloadDto>;
|
|
1606
|
+
protected processCreateLabel(response: Response): Promise<DownloadDto>;
|
|
1607
1607
|
}
|
|
1608
1608
|
export interface IMoveWorkOrdersClient {
|
|
1609
1609
|
searchWorkOrders(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchWorkOrderDto[]>;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -13267,7 +13267,7 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
13267
13267
|
method: "POST",
|
|
13268
13268
|
headers: {
|
|
13269
13269
|
"Content-Type": "application/json",
|
|
13270
|
-
"Accept": "application/
|
|
13270
|
+
"Accept": "application/json"
|
|
13271
13271
|
}
|
|
13272
13272
|
};
|
|
13273
13273
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
@@ -13283,18 +13283,13 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
13283
13283
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
13284
13284
|
}
|
|
13285
13285
|
;
|
|
13286
|
-
if (status === 200
|
|
13287
|
-
|
|
13288
|
-
|
|
13289
|
-
|
|
13290
|
-
|
|
13291
|
-
|
|
13292
|
-
}
|
|
13293
|
-
else {
|
|
13294
|
-
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
13295
|
-
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
13296
|
-
}
|
|
13297
|
-
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
13286
|
+
if (status === 200) {
|
|
13287
|
+
return response.text().then((_responseText) => {
|
|
13288
|
+
let result200 = null;
|
|
13289
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13290
|
+
result200 = DownloadDto.fromJS(resultData200);
|
|
13291
|
+
return result200;
|
|
13292
|
+
});
|
|
13298
13293
|
}
|
|
13299
13294
|
else if (status !== 200 && status !== 204) {
|
|
13300
13295
|
return response.text().then((_responseText) => {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -13866,7 +13866,7 @@ export interface IMoveTrackingClient {
|
|
|
13866
13866
|
|
|
13867
13867
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
13868
13868
|
|
|
13869
|
-
createLabel(trackingIds: string[]): Promise<
|
|
13869
|
+
createLabel(trackingIds: string[]): Promise<DownloadDto>;
|
|
13870
13870
|
}
|
|
13871
13871
|
|
|
13872
13872
|
export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
|
|
@@ -14165,7 +14165,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
14165
14165
|
return Promise.resolve<void>(null as any);
|
|
14166
14166
|
}
|
|
14167
14167
|
|
|
14168
|
-
createLabel(trackingIds: string[]): Promise<
|
|
14168
|
+
createLabel(trackingIds: string[]): Promise<DownloadDto> {
|
|
14169
14169
|
let url_ = this.baseUrl + "/move/tracking/label";
|
|
14170
14170
|
url_ = url_.replace(/[?&]$/, "");
|
|
14171
14171
|
|
|
@@ -14176,7 +14176,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
14176
14176
|
method: "POST",
|
|
14177
14177
|
headers: {
|
|
14178
14178
|
"Content-Type": "application/json",
|
|
14179
|
-
"Accept": "application/
|
|
14179
|
+
"Accept": "application/json"
|
|
14180
14180
|
}
|
|
14181
14181
|
};
|
|
14182
14182
|
|
|
@@ -14187,26 +14187,22 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
14187
14187
|
});
|
|
14188
14188
|
}
|
|
14189
14189
|
|
|
14190
|
-
protected processCreateLabel(response: Response): Promise<
|
|
14190
|
+
protected processCreateLabel(response: Response): Promise<DownloadDto> {
|
|
14191
14191
|
const status = response.status;
|
|
14192
14192
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
14193
|
-
if (status === 200
|
|
14194
|
-
|
|
14195
|
-
let
|
|
14196
|
-
let
|
|
14197
|
-
|
|
14198
|
-
|
|
14199
|
-
}
|
|
14200
|
-
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
14201
|
-
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
14202
|
-
}
|
|
14203
|
-
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
14193
|
+
if (status === 200) {
|
|
14194
|
+
return response.text().then((_responseText) => {
|
|
14195
|
+
let result200: any = null;
|
|
14196
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14197
|
+
result200 = DownloadDto.fromJS(resultData200);
|
|
14198
|
+
return result200;
|
|
14199
|
+
});
|
|
14204
14200
|
} else if (status !== 200 && status !== 204) {
|
|
14205
14201
|
return response.text().then((_responseText) => {
|
|
14206
14202
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14207
14203
|
});
|
|
14208
14204
|
}
|
|
14209
|
-
return Promise.resolve<
|
|
14205
|
+
return Promise.resolve<DownloadDto>(null as any);
|
|
14210
14206
|
}
|
|
14211
14207
|
}
|
|
14212
14208
|
|