@ignos/api-client 20240905.0.10262 → 20240906.0.10273
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 +90 -1
- package/lib/ignosportal-api.js +362 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +440 -1
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -243,6 +243,28 @@ export declare class UsersClient extends AuthorizedApiBase implements IUsersClie
|
|
|
243
243
|
postListUsers(request: ListUsersRequest | undefined): Promise<PagedResultOfUserDto>;
|
|
244
244
|
protected processPostListUsers(response: Response): Promise<PagedResultOfUserDto>;
|
|
245
245
|
}
|
|
246
|
+
export interface IUserAppSettingsClient {
|
|
247
|
+
getEngageUserSettings(): Promise<EngageAppSettings>;
|
|
248
|
+
setEngageUserSettings(settings: EngageAppSettings): Promise<FileResponse>;
|
|
249
|
+
getMoveUserSettings(): Promise<MoveAppSettings>;
|
|
250
|
+
setMoveUserSettings(settings: MoveAppSettings): Promise<FileResponse>;
|
|
251
|
+
}
|
|
252
|
+
export declare class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
|
|
253
|
+
private http;
|
|
254
|
+
private baseUrl;
|
|
255
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
256
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
257
|
+
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
258
|
+
});
|
|
259
|
+
getEngageUserSettings(): Promise<EngageAppSettings>;
|
|
260
|
+
protected processGetEngageUserSettings(response: Response): Promise<EngageAppSettings>;
|
|
261
|
+
setEngageUserSettings(settings: EngageAppSettings): Promise<FileResponse>;
|
|
262
|
+
protected processSetEngageUserSettings(response: Response): Promise<FileResponse>;
|
|
263
|
+
getMoveUserSettings(): Promise<MoveAppSettings>;
|
|
264
|
+
protected processGetMoveUserSettings(response: Response): Promise<MoveAppSettings>;
|
|
265
|
+
setMoveUserSettings(settings: MoveAppSettings): Promise<FileResponse>;
|
|
266
|
+
protected processSetMoveUserSettings(response: Response): Promise<FileResponse>;
|
|
267
|
+
}
|
|
246
268
|
export interface IUploadClient {
|
|
247
269
|
createUploadInfo(): Promise<UploadInfoDto>;
|
|
248
270
|
}
|
|
@@ -1504,6 +1526,7 @@ export declare class MoveParcelsClient extends AuthorizedApiBase implements IMov
|
|
|
1504
1526
|
}
|
|
1505
1527
|
export interface IMoveTrackingClient {
|
|
1506
1528
|
listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingParcelListDto>;
|
|
1529
|
+
listTrackingHistoryFlattened(request: TrackingRequestListDto): Promise<TrackingParcelFlattenedListDto>;
|
|
1507
1530
|
getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
|
|
1508
1531
|
getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
|
|
1509
1532
|
listParcelTrackingHistory(trackingParcelList: TrackingParcelRequestListDto): Promise<TrackingParcelDto[]>;
|
|
@@ -1522,6 +1545,8 @@ export declare class MoveTrackingClient extends AuthorizedApiBase implements IMo
|
|
|
1522
1545
|
});
|
|
1523
1546
|
listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingParcelListDto>;
|
|
1524
1547
|
protected processListTrackingHistory(response: Response): Promise<TrackingParcelListDto>;
|
|
1548
|
+
listTrackingHistoryFlattened(request: TrackingRequestListDto): Promise<TrackingParcelFlattenedListDto>;
|
|
1549
|
+
protected processListTrackingHistoryFlattened(response: Response): Promise<TrackingParcelFlattenedListDto>;
|
|
1525
1550
|
getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
|
|
1526
1551
|
protected processGetTrackingHistory(response: Response): Promise<TrackingParcelDto>;
|
|
1527
1552
|
getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
|
|
@@ -2793,6 +2818,26 @@ export interface IListUsersRequest {
|
|
|
2793
2818
|
filter?: string | null;
|
|
2794
2819
|
continuationToken?: string | null;
|
|
2795
2820
|
}
|
|
2821
|
+
export declare class EngageAppSettings implements IEngageAppSettings {
|
|
2822
|
+
includeDrawingInRouteCardPrint?: boolean;
|
|
2823
|
+
constructor(data?: IEngageAppSettings);
|
|
2824
|
+
init(_data?: any): void;
|
|
2825
|
+
static fromJS(data: any): EngageAppSettings;
|
|
2826
|
+
toJSON(data?: any): any;
|
|
2827
|
+
}
|
|
2828
|
+
export interface IEngageAppSettings {
|
|
2829
|
+
includeDrawingInRouteCardPrint?: boolean;
|
|
2830
|
+
}
|
|
2831
|
+
export declare class MoveAppSettings implements IMoveAppSettings {
|
|
2832
|
+
engageMoveAutoPrompt?: boolean;
|
|
2833
|
+
constructor(data?: IMoveAppSettings);
|
|
2834
|
+
init(_data?: any): void;
|
|
2835
|
+
static fromJS(data: any): MoveAppSettings;
|
|
2836
|
+
toJSON(data?: any): any;
|
|
2837
|
+
}
|
|
2838
|
+
export interface IMoveAppSettings {
|
|
2839
|
+
engageMoveAutoPrompt?: boolean;
|
|
2840
|
+
}
|
|
2796
2841
|
export declare class UploadInfoDto implements IUploadInfoDto {
|
|
2797
2842
|
baseUrl?: string | null;
|
|
2798
2843
|
key?: string | null;
|
|
@@ -8125,7 +8170,7 @@ export interface IBookingStatusUpdateDto {
|
|
|
8125
8170
|
deliveryExceptionToLocationId?: string | null;
|
|
8126
8171
|
deliveryExceptionComment?: string | null;
|
|
8127
8172
|
}
|
|
8128
|
-
export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack" | "User";
|
|
8173
|
+
export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Environment" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack" | "User";
|
|
8129
8174
|
export declare class LocationSuggestionsDto implements ILocationSuggestionsDto {
|
|
8130
8175
|
items: LocationSuggestionsItemDto[];
|
|
8131
8176
|
locationKindFilter?: LocationKindDto[] | null;
|
|
@@ -8312,6 +8357,50 @@ export interface ITrackingRequestListDto {
|
|
|
8312
8357
|
includeActiveBookings?: boolean;
|
|
8313
8358
|
continuationToken?: string | null;
|
|
8314
8359
|
}
|
|
8360
|
+
export declare class TrackingParcelFlattenedListDto implements ITrackingParcelFlattenedListDto {
|
|
8361
|
+
results: TrackingHistoryFlattenedDto[];
|
|
8362
|
+
continuationToken?: string | null;
|
|
8363
|
+
constructor(data?: ITrackingParcelFlattenedListDto);
|
|
8364
|
+
init(_data?: any): void;
|
|
8365
|
+
static fromJS(data: any): TrackingParcelFlattenedListDto;
|
|
8366
|
+
toJSON(data?: any): any;
|
|
8367
|
+
}
|
|
8368
|
+
export interface ITrackingParcelFlattenedListDto {
|
|
8369
|
+
results: TrackingHistoryFlattenedDto[];
|
|
8370
|
+
continuationToken?: string | null;
|
|
8371
|
+
}
|
|
8372
|
+
export declare class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto {
|
|
8373
|
+
parcelId: string;
|
|
8374
|
+
parcelKind: ParcelKindDto;
|
|
8375
|
+
partName?: string | null;
|
|
8376
|
+
partNumber?: string | null;
|
|
8377
|
+
quantity?: number | null;
|
|
8378
|
+
material?: string | null;
|
|
8379
|
+
covered?: MaterialCoveredDto | null;
|
|
8380
|
+
trackingId: string;
|
|
8381
|
+
palletNumber: number;
|
|
8382
|
+
activeBooking?: boolean | null;
|
|
8383
|
+
currentTracking?: TrackingEventDto | null;
|
|
8384
|
+
trackingEvents: TrackingEventDto[];
|
|
8385
|
+
constructor(data?: ITrackingHistoryFlattenedDto);
|
|
8386
|
+
init(_data?: any): void;
|
|
8387
|
+
static fromJS(data: any): TrackingHistoryFlattenedDto;
|
|
8388
|
+
toJSON(data?: any): any;
|
|
8389
|
+
}
|
|
8390
|
+
export interface ITrackingHistoryFlattenedDto {
|
|
8391
|
+
parcelId: string;
|
|
8392
|
+
parcelKind: ParcelKindDto;
|
|
8393
|
+
partName?: string | null;
|
|
8394
|
+
partNumber?: string | null;
|
|
8395
|
+
quantity?: number | null;
|
|
8396
|
+
material?: string | null;
|
|
8397
|
+
covered?: MaterialCoveredDto | null;
|
|
8398
|
+
trackingId: string;
|
|
8399
|
+
palletNumber: number;
|
|
8400
|
+
activeBooking?: boolean | null;
|
|
8401
|
+
currentTracking?: TrackingEventDto | null;
|
|
8402
|
+
trackingEvents: TrackingEventDto[];
|
|
8403
|
+
}
|
|
8315
8404
|
export declare class TrackingParcelRequestListDto implements ITrackingParcelRequestListDto {
|
|
8316
8405
|
parcelIds: string[];
|
|
8317
8406
|
includeActiveBookings: boolean;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -1173,6 +1173,178 @@ export class UsersClient extends AuthorizedApiBase {
|
|
|
1173
1173
|
return Promise.resolve(null);
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
|
+
export class UserAppSettingsClient extends AuthorizedApiBase {
|
|
1177
|
+
constructor(configuration, baseUrl, http) {
|
|
1178
|
+
super(configuration);
|
|
1179
|
+
this.jsonParseReviver = undefined;
|
|
1180
|
+
this.http = http ? http : window;
|
|
1181
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
1182
|
+
}
|
|
1183
|
+
getEngageUserSettings() {
|
|
1184
|
+
let url_ = this.baseUrl + "/userappsettings/engage";
|
|
1185
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1186
|
+
let options_ = {
|
|
1187
|
+
method: "GET",
|
|
1188
|
+
headers: {
|
|
1189
|
+
"Accept": "application/json"
|
|
1190
|
+
}
|
|
1191
|
+
};
|
|
1192
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1193
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1194
|
+
}).then((_response) => {
|
|
1195
|
+
return this.processGetEngageUserSettings(_response);
|
|
1196
|
+
});
|
|
1197
|
+
}
|
|
1198
|
+
processGetEngageUserSettings(response) {
|
|
1199
|
+
const status = response.status;
|
|
1200
|
+
let _headers = {};
|
|
1201
|
+
if (response.headers && response.headers.forEach) {
|
|
1202
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
1203
|
+
}
|
|
1204
|
+
;
|
|
1205
|
+
if (status === 200) {
|
|
1206
|
+
return response.text().then((_responseText) => {
|
|
1207
|
+
let result200 = null;
|
|
1208
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1209
|
+
result200 = EngageAppSettings.fromJS(resultData200);
|
|
1210
|
+
return result200;
|
|
1211
|
+
});
|
|
1212
|
+
}
|
|
1213
|
+
else if (status !== 200 && status !== 204) {
|
|
1214
|
+
return response.text().then((_responseText) => {
|
|
1215
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1216
|
+
});
|
|
1217
|
+
}
|
|
1218
|
+
return Promise.resolve(null);
|
|
1219
|
+
}
|
|
1220
|
+
setEngageUserSettings(settings) {
|
|
1221
|
+
let url_ = this.baseUrl + "/userappsettings/engage";
|
|
1222
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1223
|
+
const content_ = JSON.stringify(settings);
|
|
1224
|
+
let options_ = {
|
|
1225
|
+
body: content_,
|
|
1226
|
+
method: "PUT",
|
|
1227
|
+
headers: {
|
|
1228
|
+
"Content-Type": "application/json",
|
|
1229
|
+
"Accept": "application/octet-stream"
|
|
1230
|
+
}
|
|
1231
|
+
};
|
|
1232
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1233
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1234
|
+
}).then((_response) => {
|
|
1235
|
+
return this.processSetEngageUserSettings(_response);
|
|
1236
|
+
});
|
|
1237
|
+
}
|
|
1238
|
+
processSetEngageUserSettings(response) {
|
|
1239
|
+
const status = response.status;
|
|
1240
|
+
let _headers = {};
|
|
1241
|
+
if (response.headers && response.headers.forEach) {
|
|
1242
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
1243
|
+
}
|
|
1244
|
+
;
|
|
1245
|
+
if (status === 200 || status === 206) {
|
|
1246
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
1247
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
1248
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
1249
|
+
if (fileName) {
|
|
1250
|
+
fileName = decodeURIComponent(fileName);
|
|
1251
|
+
}
|
|
1252
|
+
else {
|
|
1253
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
1254
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
1255
|
+
}
|
|
1256
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
1257
|
+
}
|
|
1258
|
+
else if (status !== 200 && status !== 204) {
|
|
1259
|
+
return response.text().then((_responseText) => {
|
|
1260
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1261
|
+
});
|
|
1262
|
+
}
|
|
1263
|
+
return Promise.resolve(null);
|
|
1264
|
+
}
|
|
1265
|
+
getMoveUserSettings() {
|
|
1266
|
+
let url_ = this.baseUrl + "/userappsettings/move";
|
|
1267
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1268
|
+
let options_ = {
|
|
1269
|
+
method: "GET",
|
|
1270
|
+
headers: {
|
|
1271
|
+
"Accept": "application/json"
|
|
1272
|
+
}
|
|
1273
|
+
};
|
|
1274
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1275
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1276
|
+
}).then((_response) => {
|
|
1277
|
+
return this.processGetMoveUserSettings(_response);
|
|
1278
|
+
});
|
|
1279
|
+
}
|
|
1280
|
+
processGetMoveUserSettings(response) {
|
|
1281
|
+
const status = response.status;
|
|
1282
|
+
let _headers = {};
|
|
1283
|
+
if (response.headers && response.headers.forEach) {
|
|
1284
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
1285
|
+
}
|
|
1286
|
+
;
|
|
1287
|
+
if (status === 200) {
|
|
1288
|
+
return response.text().then((_responseText) => {
|
|
1289
|
+
let result200 = null;
|
|
1290
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1291
|
+
result200 = MoveAppSettings.fromJS(resultData200);
|
|
1292
|
+
return result200;
|
|
1293
|
+
});
|
|
1294
|
+
}
|
|
1295
|
+
else if (status !== 200 && status !== 204) {
|
|
1296
|
+
return response.text().then((_responseText) => {
|
|
1297
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1298
|
+
});
|
|
1299
|
+
}
|
|
1300
|
+
return Promise.resolve(null);
|
|
1301
|
+
}
|
|
1302
|
+
setMoveUserSettings(settings) {
|
|
1303
|
+
let url_ = this.baseUrl + "/userappsettings/move";
|
|
1304
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1305
|
+
const content_ = JSON.stringify(settings);
|
|
1306
|
+
let options_ = {
|
|
1307
|
+
body: content_,
|
|
1308
|
+
method: "PUT",
|
|
1309
|
+
headers: {
|
|
1310
|
+
"Content-Type": "application/json",
|
|
1311
|
+
"Accept": "application/octet-stream"
|
|
1312
|
+
}
|
|
1313
|
+
};
|
|
1314
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1315
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1316
|
+
}).then((_response) => {
|
|
1317
|
+
return this.processSetMoveUserSettings(_response);
|
|
1318
|
+
});
|
|
1319
|
+
}
|
|
1320
|
+
processSetMoveUserSettings(response) {
|
|
1321
|
+
const status = response.status;
|
|
1322
|
+
let _headers = {};
|
|
1323
|
+
if (response.headers && response.headers.forEach) {
|
|
1324
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
1325
|
+
}
|
|
1326
|
+
;
|
|
1327
|
+
if (status === 200 || status === 206) {
|
|
1328
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
1329
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
1330
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
1331
|
+
if (fileName) {
|
|
1332
|
+
fileName = decodeURIComponent(fileName);
|
|
1333
|
+
}
|
|
1334
|
+
else {
|
|
1335
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
1336
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
1337
|
+
}
|
|
1338
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
1339
|
+
}
|
|
1340
|
+
else if (status !== 200 && status !== 204) {
|
|
1341
|
+
return response.text().then((_responseText) => {
|
|
1342
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1343
|
+
});
|
|
1344
|
+
}
|
|
1345
|
+
return Promise.resolve(null);
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1176
1348
|
export class UploadClient extends AuthorizedApiBase {
|
|
1177
1349
|
constructor(configuration, baseUrl, http) {
|
|
1178
1350
|
super(configuration);
|
|
@@ -12378,6 +12550,46 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
12378
12550
|
}
|
|
12379
12551
|
return Promise.resolve(null);
|
|
12380
12552
|
}
|
|
12553
|
+
listTrackingHistoryFlattened(request) {
|
|
12554
|
+
let url_ = this.baseUrl + "/move/tracking/list/flattened";
|
|
12555
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
12556
|
+
const content_ = JSON.stringify(request);
|
|
12557
|
+
let options_ = {
|
|
12558
|
+
body: content_,
|
|
12559
|
+
method: "POST",
|
|
12560
|
+
headers: {
|
|
12561
|
+
"Content-Type": "application/json",
|
|
12562
|
+
"Accept": "application/json"
|
|
12563
|
+
}
|
|
12564
|
+
};
|
|
12565
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12566
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
12567
|
+
}).then((_response) => {
|
|
12568
|
+
return this.processListTrackingHistoryFlattened(_response);
|
|
12569
|
+
});
|
|
12570
|
+
}
|
|
12571
|
+
processListTrackingHistoryFlattened(response) {
|
|
12572
|
+
const status = response.status;
|
|
12573
|
+
let _headers = {};
|
|
12574
|
+
if (response.headers && response.headers.forEach) {
|
|
12575
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
12576
|
+
}
|
|
12577
|
+
;
|
|
12578
|
+
if (status === 200) {
|
|
12579
|
+
return response.text().then((_responseText) => {
|
|
12580
|
+
let result200 = null;
|
|
12581
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12582
|
+
result200 = TrackingParcelFlattenedListDto.fromJS(resultData200);
|
|
12583
|
+
return result200;
|
|
12584
|
+
});
|
|
12585
|
+
}
|
|
12586
|
+
else if (status !== 200 && status !== 204) {
|
|
12587
|
+
return response.text().then((_responseText) => {
|
|
12588
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12589
|
+
});
|
|
12590
|
+
}
|
|
12591
|
+
return Promise.resolve(null);
|
|
12592
|
+
}
|
|
12381
12593
|
getTrackingHistory(trackingId, includeActiveBookings) {
|
|
12382
12594
|
let url_ = this.baseUrl + "/move/tracking/{trackingId}?";
|
|
12383
12595
|
if (trackingId === undefined || trackingId === null)
|
|
@@ -20306,6 +20518,58 @@ export class ListUsersRequest {
|
|
|
20306
20518
|
return data;
|
|
20307
20519
|
}
|
|
20308
20520
|
}
|
|
20521
|
+
export class EngageAppSettings {
|
|
20522
|
+
constructor(data) {
|
|
20523
|
+
if (data) {
|
|
20524
|
+
for (var property in data) {
|
|
20525
|
+
if (data.hasOwnProperty(property))
|
|
20526
|
+
this[property] = data[property];
|
|
20527
|
+
}
|
|
20528
|
+
}
|
|
20529
|
+
}
|
|
20530
|
+
init(_data) {
|
|
20531
|
+
if (_data) {
|
|
20532
|
+
this.includeDrawingInRouteCardPrint = _data["includeDrawingInRouteCardPrint"];
|
|
20533
|
+
}
|
|
20534
|
+
}
|
|
20535
|
+
static fromJS(data) {
|
|
20536
|
+
data = typeof data === 'object' ? data : {};
|
|
20537
|
+
let result = new EngageAppSettings();
|
|
20538
|
+
result.init(data);
|
|
20539
|
+
return result;
|
|
20540
|
+
}
|
|
20541
|
+
toJSON(data) {
|
|
20542
|
+
data = typeof data === 'object' ? data : {};
|
|
20543
|
+
data["includeDrawingInRouteCardPrint"] = this.includeDrawingInRouteCardPrint;
|
|
20544
|
+
return data;
|
|
20545
|
+
}
|
|
20546
|
+
}
|
|
20547
|
+
export class MoveAppSettings {
|
|
20548
|
+
constructor(data) {
|
|
20549
|
+
if (data) {
|
|
20550
|
+
for (var property in data) {
|
|
20551
|
+
if (data.hasOwnProperty(property))
|
|
20552
|
+
this[property] = data[property];
|
|
20553
|
+
}
|
|
20554
|
+
}
|
|
20555
|
+
}
|
|
20556
|
+
init(_data) {
|
|
20557
|
+
if (_data) {
|
|
20558
|
+
this.engageMoveAutoPrompt = _data["engageMoveAutoPrompt"];
|
|
20559
|
+
}
|
|
20560
|
+
}
|
|
20561
|
+
static fromJS(data) {
|
|
20562
|
+
data = typeof data === 'object' ? data : {};
|
|
20563
|
+
let result = new MoveAppSettings();
|
|
20564
|
+
result.init(data);
|
|
20565
|
+
return result;
|
|
20566
|
+
}
|
|
20567
|
+
toJSON(data) {
|
|
20568
|
+
data = typeof data === 'object' ? data : {};
|
|
20569
|
+
data["engageMoveAutoPrompt"] = this.engageMoveAutoPrompt;
|
|
20570
|
+
return data;
|
|
20571
|
+
}
|
|
20572
|
+
}
|
|
20309
20573
|
export class UploadInfoDto {
|
|
20310
20574
|
constructor(data) {
|
|
20311
20575
|
if (data) {
|
|
@@ -31532,6 +31796,104 @@ export class TrackingRequestListDto {
|
|
|
31532
31796
|
return data;
|
|
31533
31797
|
}
|
|
31534
31798
|
}
|
|
31799
|
+
export class TrackingParcelFlattenedListDto {
|
|
31800
|
+
constructor(data) {
|
|
31801
|
+
if (data) {
|
|
31802
|
+
for (var property in data) {
|
|
31803
|
+
if (data.hasOwnProperty(property))
|
|
31804
|
+
this[property] = data[property];
|
|
31805
|
+
}
|
|
31806
|
+
}
|
|
31807
|
+
if (!data) {
|
|
31808
|
+
this.results = [];
|
|
31809
|
+
}
|
|
31810
|
+
}
|
|
31811
|
+
init(_data) {
|
|
31812
|
+
if (_data) {
|
|
31813
|
+
if (Array.isArray(_data["results"])) {
|
|
31814
|
+
this.results = [];
|
|
31815
|
+
for (let item of _data["results"])
|
|
31816
|
+
this.results.push(TrackingHistoryFlattenedDto.fromJS(item));
|
|
31817
|
+
}
|
|
31818
|
+
this.continuationToken = _data["continuationToken"];
|
|
31819
|
+
}
|
|
31820
|
+
}
|
|
31821
|
+
static fromJS(data) {
|
|
31822
|
+
data = typeof data === 'object' ? data : {};
|
|
31823
|
+
let result = new TrackingParcelFlattenedListDto();
|
|
31824
|
+
result.init(data);
|
|
31825
|
+
return result;
|
|
31826
|
+
}
|
|
31827
|
+
toJSON(data) {
|
|
31828
|
+
data = typeof data === 'object' ? data : {};
|
|
31829
|
+
if (Array.isArray(this.results)) {
|
|
31830
|
+
data["results"] = [];
|
|
31831
|
+
for (let item of this.results)
|
|
31832
|
+
data["results"].push(item.toJSON());
|
|
31833
|
+
}
|
|
31834
|
+
data["continuationToken"] = this.continuationToken;
|
|
31835
|
+
return data;
|
|
31836
|
+
}
|
|
31837
|
+
}
|
|
31838
|
+
export class TrackingHistoryFlattenedDto {
|
|
31839
|
+
constructor(data) {
|
|
31840
|
+
if (data) {
|
|
31841
|
+
for (var property in data) {
|
|
31842
|
+
if (data.hasOwnProperty(property))
|
|
31843
|
+
this[property] = data[property];
|
|
31844
|
+
}
|
|
31845
|
+
}
|
|
31846
|
+
if (!data) {
|
|
31847
|
+
this.trackingEvents = [];
|
|
31848
|
+
}
|
|
31849
|
+
}
|
|
31850
|
+
init(_data) {
|
|
31851
|
+
if (_data) {
|
|
31852
|
+
this.parcelId = _data["parcelId"];
|
|
31853
|
+
this.parcelKind = _data["parcelKind"];
|
|
31854
|
+
this.partName = _data["partName"];
|
|
31855
|
+
this.partNumber = _data["partNumber"];
|
|
31856
|
+
this.quantity = _data["quantity"];
|
|
31857
|
+
this.material = _data["material"];
|
|
31858
|
+
this.covered = _data["covered"];
|
|
31859
|
+
this.trackingId = _data["trackingId"];
|
|
31860
|
+
this.palletNumber = _data["palletNumber"];
|
|
31861
|
+
this.activeBooking = _data["activeBooking"];
|
|
31862
|
+
this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : undefined;
|
|
31863
|
+
if (Array.isArray(_data["trackingEvents"])) {
|
|
31864
|
+
this.trackingEvents = [];
|
|
31865
|
+
for (let item of _data["trackingEvents"])
|
|
31866
|
+
this.trackingEvents.push(TrackingEventDto.fromJS(item));
|
|
31867
|
+
}
|
|
31868
|
+
}
|
|
31869
|
+
}
|
|
31870
|
+
static fromJS(data) {
|
|
31871
|
+
data = typeof data === 'object' ? data : {};
|
|
31872
|
+
let result = new TrackingHistoryFlattenedDto();
|
|
31873
|
+
result.init(data);
|
|
31874
|
+
return result;
|
|
31875
|
+
}
|
|
31876
|
+
toJSON(data) {
|
|
31877
|
+
data = typeof data === 'object' ? data : {};
|
|
31878
|
+
data["parcelId"] = this.parcelId;
|
|
31879
|
+
data["parcelKind"] = this.parcelKind;
|
|
31880
|
+
data["partName"] = this.partName;
|
|
31881
|
+
data["partNumber"] = this.partNumber;
|
|
31882
|
+
data["quantity"] = this.quantity;
|
|
31883
|
+
data["material"] = this.material;
|
|
31884
|
+
data["covered"] = this.covered;
|
|
31885
|
+
data["trackingId"] = this.trackingId;
|
|
31886
|
+
data["palletNumber"] = this.palletNumber;
|
|
31887
|
+
data["activeBooking"] = this.activeBooking;
|
|
31888
|
+
data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : undefined;
|
|
31889
|
+
if (Array.isArray(this.trackingEvents)) {
|
|
31890
|
+
data["trackingEvents"] = [];
|
|
31891
|
+
for (let item of this.trackingEvents)
|
|
31892
|
+
data["trackingEvents"].push(item.toJSON());
|
|
31893
|
+
}
|
|
31894
|
+
return data;
|
|
31895
|
+
}
|
|
31896
|
+
}
|
|
31535
31897
|
export class TrackingParcelRequestListDto {
|
|
31536
31898
|
constructor(data) {
|
|
31537
31899
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -1310,6 +1310,189 @@ export class UsersClient extends AuthorizedApiBase implements IUsersClient {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
}
|
|
1312
1312
|
|
|
1313
|
+
export interface IUserAppSettingsClient {
|
|
1314
|
+
|
|
1315
|
+
getEngageUserSettings(): Promise<EngageAppSettings>;
|
|
1316
|
+
|
|
1317
|
+
setEngageUserSettings(settings: EngageAppSettings): Promise<FileResponse>;
|
|
1318
|
+
|
|
1319
|
+
getMoveUserSettings(): Promise<MoveAppSettings>;
|
|
1320
|
+
|
|
1321
|
+
setMoveUserSettings(settings: MoveAppSettings): Promise<FileResponse>;
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
export class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
|
|
1325
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
1326
|
+
private baseUrl: string;
|
|
1327
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
1328
|
+
|
|
1329
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
1330
|
+
super(configuration);
|
|
1331
|
+
this.http = http ? http : window as any;
|
|
1332
|
+
this.baseUrl = baseUrl ?? "";
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
getEngageUserSettings(): Promise<EngageAppSettings> {
|
|
1336
|
+
let url_ = this.baseUrl + "/userappsettings/engage";
|
|
1337
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1338
|
+
|
|
1339
|
+
let options_: RequestInit = {
|
|
1340
|
+
method: "GET",
|
|
1341
|
+
headers: {
|
|
1342
|
+
"Accept": "application/json"
|
|
1343
|
+
}
|
|
1344
|
+
};
|
|
1345
|
+
|
|
1346
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1347
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1348
|
+
}).then((_response: Response) => {
|
|
1349
|
+
return this.processGetEngageUserSettings(_response);
|
|
1350
|
+
});
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
protected processGetEngageUserSettings(response: Response): Promise<EngageAppSettings> {
|
|
1354
|
+
const status = response.status;
|
|
1355
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1356
|
+
if (status === 200) {
|
|
1357
|
+
return response.text().then((_responseText) => {
|
|
1358
|
+
let result200: any = null;
|
|
1359
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1360
|
+
result200 = EngageAppSettings.fromJS(resultData200);
|
|
1361
|
+
return result200;
|
|
1362
|
+
});
|
|
1363
|
+
} else if (status !== 200 && status !== 204) {
|
|
1364
|
+
return response.text().then((_responseText) => {
|
|
1365
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1366
|
+
});
|
|
1367
|
+
}
|
|
1368
|
+
return Promise.resolve<EngageAppSettings>(null as any);
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
setEngageUserSettings(settings: EngageAppSettings): Promise<FileResponse> {
|
|
1372
|
+
let url_ = this.baseUrl + "/userappsettings/engage";
|
|
1373
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1374
|
+
|
|
1375
|
+
const content_ = JSON.stringify(settings);
|
|
1376
|
+
|
|
1377
|
+
let options_: RequestInit = {
|
|
1378
|
+
body: content_,
|
|
1379
|
+
method: "PUT",
|
|
1380
|
+
headers: {
|
|
1381
|
+
"Content-Type": "application/json",
|
|
1382
|
+
"Accept": "application/octet-stream"
|
|
1383
|
+
}
|
|
1384
|
+
};
|
|
1385
|
+
|
|
1386
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1387
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1388
|
+
}).then((_response: Response) => {
|
|
1389
|
+
return this.processSetEngageUserSettings(_response);
|
|
1390
|
+
});
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
protected processSetEngageUserSettings(response: Response): Promise<FileResponse> {
|
|
1394
|
+
const status = response.status;
|
|
1395
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1396
|
+
if (status === 200 || status === 206) {
|
|
1397
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
1398
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
1399
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
1400
|
+
if (fileName) {
|
|
1401
|
+
fileName = decodeURIComponent(fileName);
|
|
1402
|
+
} else {
|
|
1403
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
1404
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
1405
|
+
}
|
|
1406
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
1407
|
+
} else if (status !== 200 && status !== 204) {
|
|
1408
|
+
return response.text().then((_responseText) => {
|
|
1409
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1410
|
+
});
|
|
1411
|
+
}
|
|
1412
|
+
return Promise.resolve<FileResponse>(null as any);
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
getMoveUserSettings(): Promise<MoveAppSettings> {
|
|
1416
|
+
let url_ = this.baseUrl + "/userappsettings/move";
|
|
1417
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1418
|
+
|
|
1419
|
+
let options_: RequestInit = {
|
|
1420
|
+
method: "GET",
|
|
1421
|
+
headers: {
|
|
1422
|
+
"Accept": "application/json"
|
|
1423
|
+
}
|
|
1424
|
+
};
|
|
1425
|
+
|
|
1426
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1427
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1428
|
+
}).then((_response: Response) => {
|
|
1429
|
+
return this.processGetMoveUserSettings(_response);
|
|
1430
|
+
});
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
protected processGetMoveUserSettings(response: Response): Promise<MoveAppSettings> {
|
|
1434
|
+
const status = response.status;
|
|
1435
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1436
|
+
if (status === 200) {
|
|
1437
|
+
return response.text().then((_responseText) => {
|
|
1438
|
+
let result200: any = null;
|
|
1439
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1440
|
+
result200 = MoveAppSettings.fromJS(resultData200);
|
|
1441
|
+
return result200;
|
|
1442
|
+
});
|
|
1443
|
+
} else if (status !== 200 && status !== 204) {
|
|
1444
|
+
return response.text().then((_responseText) => {
|
|
1445
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1446
|
+
});
|
|
1447
|
+
}
|
|
1448
|
+
return Promise.resolve<MoveAppSettings>(null as any);
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
setMoveUserSettings(settings: MoveAppSettings): Promise<FileResponse> {
|
|
1452
|
+
let url_ = this.baseUrl + "/userappsettings/move";
|
|
1453
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1454
|
+
|
|
1455
|
+
const content_ = JSON.stringify(settings);
|
|
1456
|
+
|
|
1457
|
+
let options_: RequestInit = {
|
|
1458
|
+
body: content_,
|
|
1459
|
+
method: "PUT",
|
|
1460
|
+
headers: {
|
|
1461
|
+
"Content-Type": "application/json",
|
|
1462
|
+
"Accept": "application/octet-stream"
|
|
1463
|
+
}
|
|
1464
|
+
};
|
|
1465
|
+
|
|
1466
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1467
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1468
|
+
}).then((_response: Response) => {
|
|
1469
|
+
return this.processSetMoveUserSettings(_response);
|
|
1470
|
+
});
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
protected processSetMoveUserSettings(response: Response): Promise<FileResponse> {
|
|
1474
|
+
const status = response.status;
|
|
1475
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1476
|
+
if (status === 200 || status === 206) {
|
|
1477
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
1478
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
1479
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
1480
|
+
if (fileName) {
|
|
1481
|
+
fileName = decodeURIComponent(fileName);
|
|
1482
|
+
} else {
|
|
1483
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
1484
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
1485
|
+
}
|
|
1486
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
1487
|
+
} else if (status !== 200 && status !== 204) {
|
|
1488
|
+
return response.text().then((_responseText) => {
|
|
1489
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1490
|
+
});
|
|
1491
|
+
}
|
|
1492
|
+
return Promise.resolve<FileResponse>(null as any);
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1313
1496
|
export interface IUploadClient {
|
|
1314
1497
|
|
|
1315
1498
|
createUploadInfo(): Promise<UploadInfoDto>;
|
|
@@ -13182,6 +13365,8 @@ export interface IMoveTrackingClient {
|
|
|
13182
13365
|
|
|
13183
13366
|
listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingParcelListDto>;
|
|
13184
13367
|
|
|
13368
|
+
listTrackingHistoryFlattened(request: TrackingRequestListDto): Promise<TrackingParcelFlattenedListDto>;
|
|
13369
|
+
|
|
13185
13370
|
getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
|
|
13186
13371
|
|
|
13187
13372
|
getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
|
|
@@ -13250,6 +13435,46 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
13250
13435
|
return Promise.resolve<TrackingParcelListDto>(null as any);
|
|
13251
13436
|
}
|
|
13252
13437
|
|
|
13438
|
+
listTrackingHistoryFlattened(request: TrackingRequestListDto): Promise<TrackingParcelFlattenedListDto> {
|
|
13439
|
+
let url_ = this.baseUrl + "/move/tracking/list/flattened";
|
|
13440
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
13441
|
+
|
|
13442
|
+
const content_ = JSON.stringify(request);
|
|
13443
|
+
|
|
13444
|
+
let options_: RequestInit = {
|
|
13445
|
+
body: content_,
|
|
13446
|
+
method: "POST",
|
|
13447
|
+
headers: {
|
|
13448
|
+
"Content-Type": "application/json",
|
|
13449
|
+
"Accept": "application/json"
|
|
13450
|
+
}
|
|
13451
|
+
};
|
|
13452
|
+
|
|
13453
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
13454
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
13455
|
+
}).then((_response: Response) => {
|
|
13456
|
+
return this.processListTrackingHistoryFlattened(_response);
|
|
13457
|
+
});
|
|
13458
|
+
}
|
|
13459
|
+
|
|
13460
|
+
protected processListTrackingHistoryFlattened(response: Response): Promise<TrackingParcelFlattenedListDto> {
|
|
13461
|
+
const status = response.status;
|
|
13462
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
13463
|
+
if (status === 200) {
|
|
13464
|
+
return response.text().then((_responseText) => {
|
|
13465
|
+
let result200: any = null;
|
|
13466
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13467
|
+
result200 = TrackingParcelFlattenedListDto.fromJS(resultData200);
|
|
13468
|
+
return result200;
|
|
13469
|
+
});
|
|
13470
|
+
} else if (status !== 200 && status !== 204) {
|
|
13471
|
+
return response.text().then((_responseText) => {
|
|
13472
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
13473
|
+
});
|
|
13474
|
+
}
|
|
13475
|
+
return Promise.resolve<TrackingParcelFlattenedListDto>(null as any);
|
|
13476
|
+
}
|
|
13477
|
+
|
|
13253
13478
|
getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto> {
|
|
13254
13479
|
let url_ = this.baseUrl + "/move/tracking/{trackingId}?";
|
|
13255
13480
|
if (trackingId === undefined || trackingId === null)
|
|
@@ -22068,6 +22293,78 @@ export interface IListUsersRequest {
|
|
|
22068
22293
|
continuationToken?: string | null;
|
|
22069
22294
|
}
|
|
22070
22295
|
|
|
22296
|
+
export class EngageAppSettings implements IEngageAppSettings {
|
|
22297
|
+
includeDrawingInRouteCardPrint?: boolean;
|
|
22298
|
+
|
|
22299
|
+
constructor(data?: IEngageAppSettings) {
|
|
22300
|
+
if (data) {
|
|
22301
|
+
for (var property in data) {
|
|
22302
|
+
if (data.hasOwnProperty(property))
|
|
22303
|
+
(<any>this)[property] = (<any>data)[property];
|
|
22304
|
+
}
|
|
22305
|
+
}
|
|
22306
|
+
}
|
|
22307
|
+
|
|
22308
|
+
init(_data?: any) {
|
|
22309
|
+
if (_data) {
|
|
22310
|
+
this.includeDrawingInRouteCardPrint = _data["includeDrawingInRouteCardPrint"];
|
|
22311
|
+
}
|
|
22312
|
+
}
|
|
22313
|
+
|
|
22314
|
+
static fromJS(data: any): EngageAppSettings {
|
|
22315
|
+
data = typeof data === 'object' ? data : {};
|
|
22316
|
+
let result = new EngageAppSettings();
|
|
22317
|
+
result.init(data);
|
|
22318
|
+
return result;
|
|
22319
|
+
}
|
|
22320
|
+
|
|
22321
|
+
toJSON(data?: any) {
|
|
22322
|
+
data = typeof data === 'object' ? data : {};
|
|
22323
|
+
data["includeDrawingInRouteCardPrint"] = this.includeDrawingInRouteCardPrint;
|
|
22324
|
+
return data;
|
|
22325
|
+
}
|
|
22326
|
+
}
|
|
22327
|
+
|
|
22328
|
+
export interface IEngageAppSettings {
|
|
22329
|
+
includeDrawingInRouteCardPrint?: boolean;
|
|
22330
|
+
}
|
|
22331
|
+
|
|
22332
|
+
export class MoveAppSettings implements IMoveAppSettings {
|
|
22333
|
+
engageMoveAutoPrompt?: boolean;
|
|
22334
|
+
|
|
22335
|
+
constructor(data?: IMoveAppSettings) {
|
|
22336
|
+
if (data) {
|
|
22337
|
+
for (var property in data) {
|
|
22338
|
+
if (data.hasOwnProperty(property))
|
|
22339
|
+
(<any>this)[property] = (<any>data)[property];
|
|
22340
|
+
}
|
|
22341
|
+
}
|
|
22342
|
+
}
|
|
22343
|
+
|
|
22344
|
+
init(_data?: any) {
|
|
22345
|
+
if (_data) {
|
|
22346
|
+
this.engageMoveAutoPrompt = _data["engageMoveAutoPrompt"];
|
|
22347
|
+
}
|
|
22348
|
+
}
|
|
22349
|
+
|
|
22350
|
+
static fromJS(data: any): MoveAppSettings {
|
|
22351
|
+
data = typeof data === 'object' ? data : {};
|
|
22352
|
+
let result = new MoveAppSettings();
|
|
22353
|
+
result.init(data);
|
|
22354
|
+
return result;
|
|
22355
|
+
}
|
|
22356
|
+
|
|
22357
|
+
toJSON(data?: any) {
|
|
22358
|
+
data = typeof data === 'object' ? data : {};
|
|
22359
|
+
data["engageMoveAutoPrompt"] = this.engageMoveAutoPrompt;
|
|
22360
|
+
return data;
|
|
22361
|
+
}
|
|
22362
|
+
}
|
|
22363
|
+
|
|
22364
|
+
export interface IMoveAppSettings {
|
|
22365
|
+
engageMoveAutoPrompt?: boolean;
|
|
22366
|
+
}
|
|
22367
|
+
|
|
22071
22368
|
export class UploadInfoDto implements IUploadInfoDto {
|
|
22072
22369
|
baseUrl?: string | null;
|
|
22073
22370
|
key?: string | null;
|
|
@@ -38183,7 +38480,7 @@ export interface IBookingStatusUpdateDto {
|
|
|
38183
38480
|
deliveryExceptionComment?: string | null;
|
|
38184
38481
|
}
|
|
38185
38482
|
|
|
38186
|
-
export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack" | "User";
|
|
38483
|
+
export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Environment" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack" | "User";
|
|
38187
38484
|
|
|
38188
38485
|
export class LocationSuggestionsDto implements ILocationSuggestionsDto {
|
|
38189
38486
|
items!: LocationSuggestionsItemDto[];
|
|
@@ -38844,6 +39141,148 @@ export interface ITrackingRequestListDto {
|
|
|
38844
39141
|
continuationToken?: string | null;
|
|
38845
39142
|
}
|
|
38846
39143
|
|
|
39144
|
+
export class TrackingParcelFlattenedListDto implements ITrackingParcelFlattenedListDto {
|
|
39145
|
+
results!: TrackingHistoryFlattenedDto[];
|
|
39146
|
+
continuationToken?: string | null;
|
|
39147
|
+
|
|
39148
|
+
constructor(data?: ITrackingParcelFlattenedListDto) {
|
|
39149
|
+
if (data) {
|
|
39150
|
+
for (var property in data) {
|
|
39151
|
+
if (data.hasOwnProperty(property))
|
|
39152
|
+
(<any>this)[property] = (<any>data)[property];
|
|
39153
|
+
}
|
|
39154
|
+
}
|
|
39155
|
+
if (!data) {
|
|
39156
|
+
this.results = [];
|
|
39157
|
+
}
|
|
39158
|
+
}
|
|
39159
|
+
|
|
39160
|
+
init(_data?: any) {
|
|
39161
|
+
if (_data) {
|
|
39162
|
+
if (Array.isArray(_data["results"])) {
|
|
39163
|
+
this.results = [] as any;
|
|
39164
|
+
for (let item of _data["results"])
|
|
39165
|
+
this.results!.push(TrackingHistoryFlattenedDto.fromJS(item));
|
|
39166
|
+
}
|
|
39167
|
+
this.continuationToken = _data["continuationToken"];
|
|
39168
|
+
}
|
|
39169
|
+
}
|
|
39170
|
+
|
|
39171
|
+
static fromJS(data: any): TrackingParcelFlattenedListDto {
|
|
39172
|
+
data = typeof data === 'object' ? data : {};
|
|
39173
|
+
let result = new TrackingParcelFlattenedListDto();
|
|
39174
|
+
result.init(data);
|
|
39175
|
+
return result;
|
|
39176
|
+
}
|
|
39177
|
+
|
|
39178
|
+
toJSON(data?: any) {
|
|
39179
|
+
data = typeof data === 'object' ? data : {};
|
|
39180
|
+
if (Array.isArray(this.results)) {
|
|
39181
|
+
data["results"] = [];
|
|
39182
|
+
for (let item of this.results)
|
|
39183
|
+
data["results"].push(item.toJSON());
|
|
39184
|
+
}
|
|
39185
|
+
data["continuationToken"] = this.continuationToken;
|
|
39186
|
+
return data;
|
|
39187
|
+
}
|
|
39188
|
+
}
|
|
39189
|
+
|
|
39190
|
+
export interface ITrackingParcelFlattenedListDto {
|
|
39191
|
+
results: TrackingHistoryFlattenedDto[];
|
|
39192
|
+
continuationToken?: string | null;
|
|
39193
|
+
}
|
|
39194
|
+
|
|
39195
|
+
export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto {
|
|
39196
|
+
parcelId!: string;
|
|
39197
|
+
parcelKind!: ParcelKindDto;
|
|
39198
|
+
partName?: string | null;
|
|
39199
|
+
partNumber?: string | null;
|
|
39200
|
+
quantity?: number | null;
|
|
39201
|
+
material?: string | null;
|
|
39202
|
+
covered?: MaterialCoveredDto | null;
|
|
39203
|
+
trackingId!: string;
|
|
39204
|
+
palletNumber!: number;
|
|
39205
|
+
activeBooking?: boolean | null;
|
|
39206
|
+
currentTracking?: TrackingEventDto | null;
|
|
39207
|
+
trackingEvents!: TrackingEventDto[];
|
|
39208
|
+
|
|
39209
|
+
constructor(data?: ITrackingHistoryFlattenedDto) {
|
|
39210
|
+
if (data) {
|
|
39211
|
+
for (var property in data) {
|
|
39212
|
+
if (data.hasOwnProperty(property))
|
|
39213
|
+
(<any>this)[property] = (<any>data)[property];
|
|
39214
|
+
}
|
|
39215
|
+
}
|
|
39216
|
+
if (!data) {
|
|
39217
|
+
this.trackingEvents = [];
|
|
39218
|
+
}
|
|
39219
|
+
}
|
|
39220
|
+
|
|
39221
|
+
init(_data?: any) {
|
|
39222
|
+
if (_data) {
|
|
39223
|
+
this.parcelId = _data["parcelId"];
|
|
39224
|
+
this.parcelKind = _data["parcelKind"];
|
|
39225
|
+
this.partName = _data["partName"];
|
|
39226
|
+
this.partNumber = _data["partNumber"];
|
|
39227
|
+
this.quantity = _data["quantity"];
|
|
39228
|
+
this.material = _data["material"];
|
|
39229
|
+
this.covered = _data["covered"];
|
|
39230
|
+
this.trackingId = _data["trackingId"];
|
|
39231
|
+
this.palletNumber = _data["palletNumber"];
|
|
39232
|
+
this.activeBooking = _data["activeBooking"];
|
|
39233
|
+
this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : <any>undefined;
|
|
39234
|
+
if (Array.isArray(_data["trackingEvents"])) {
|
|
39235
|
+
this.trackingEvents = [] as any;
|
|
39236
|
+
for (let item of _data["trackingEvents"])
|
|
39237
|
+
this.trackingEvents!.push(TrackingEventDto.fromJS(item));
|
|
39238
|
+
}
|
|
39239
|
+
}
|
|
39240
|
+
}
|
|
39241
|
+
|
|
39242
|
+
static fromJS(data: any): TrackingHistoryFlattenedDto {
|
|
39243
|
+
data = typeof data === 'object' ? data : {};
|
|
39244
|
+
let result = new TrackingHistoryFlattenedDto();
|
|
39245
|
+
result.init(data);
|
|
39246
|
+
return result;
|
|
39247
|
+
}
|
|
39248
|
+
|
|
39249
|
+
toJSON(data?: any) {
|
|
39250
|
+
data = typeof data === 'object' ? data : {};
|
|
39251
|
+
data["parcelId"] = this.parcelId;
|
|
39252
|
+
data["parcelKind"] = this.parcelKind;
|
|
39253
|
+
data["partName"] = this.partName;
|
|
39254
|
+
data["partNumber"] = this.partNumber;
|
|
39255
|
+
data["quantity"] = this.quantity;
|
|
39256
|
+
data["material"] = this.material;
|
|
39257
|
+
data["covered"] = this.covered;
|
|
39258
|
+
data["trackingId"] = this.trackingId;
|
|
39259
|
+
data["palletNumber"] = this.palletNumber;
|
|
39260
|
+
data["activeBooking"] = this.activeBooking;
|
|
39261
|
+
data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : <any>undefined;
|
|
39262
|
+
if (Array.isArray(this.trackingEvents)) {
|
|
39263
|
+
data["trackingEvents"] = [];
|
|
39264
|
+
for (let item of this.trackingEvents)
|
|
39265
|
+
data["trackingEvents"].push(item.toJSON());
|
|
39266
|
+
}
|
|
39267
|
+
return data;
|
|
39268
|
+
}
|
|
39269
|
+
}
|
|
39270
|
+
|
|
39271
|
+
export interface ITrackingHistoryFlattenedDto {
|
|
39272
|
+
parcelId: string;
|
|
39273
|
+
parcelKind: ParcelKindDto;
|
|
39274
|
+
partName?: string | null;
|
|
39275
|
+
partNumber?: string | null;
|
|
39276
|
+
quantity?: number | null;
|
|
39277
|
+
material?: string | null;
|
|
39278
|
+
covered?: MaterialCoveredDto | null;
|
|
39279
|
+
trackingId: string;
|
|
39280
|
+
palletNumber: number;
|
|
39281
|
+
activeBooking?: boolean | null;
|
|
39282
|
+
currentTracking?: TrackingEventDto | null;
|
|
39283
|
+
trackingEvents: TrackingEventDto[];
|
|
39284
|
+
}
|
|
39285
|
+
|
|
38847
39286
|
export class TrackingParcelRequestListDto implements ITrackingParcelRequestListDto {
|
|
38848
39287
|
parcelIds!: string[];
|
|
38849
39288
|
includeActiveBookings!: boolean;
|