@ignos/api-client 20240906.0.10268 → 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 +43 -1
- package/lib/ignosportal-api.js +224 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +256 -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
|
}
|
|
@@ -2796,6 +2818,26 @@ export interface IListUsersRequest {
|
|
|
2796
2818
|
filter?: string | null;
|
|
2797
2819
|
continuationToken?: string | null;
|
|
2798
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
|
+
}
|
|
2799
2841
|
export declare class UploadInfoDto implements IUploadInfoDto {
|
|
2800
2842
|
baseUrl?: string | null;
|
|
2801
2843
|
key?: string | null;
|
|
@@ -8128,7 +8170,7 @@ export interface IBookingStatusUpdateDto {
|
|
|
8128
8170
|
deliveryExceptionToLocationId?: string | null;
|
|
8129
8171
|
deliveryExceptionComment?: string | null;
|
|
8130
8172
|
}
|
|
8131
|
-
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";
|
|
8132
8174
|
export declare class LocationSuggestionsDto implements ILocationSuggestionsDto {
|
|
8133
8175
|
items: LocationSuggestionsItemDto[];
|
|
8134
8176
|
locationKindFilter?: LocationKindDto[] | null;
|
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);
|
|
@@ -20346,6 +20518,58 @@ export class ListUsersRequest {
|
|
|
20346
20518
|
return data;
|
|
20347
20519
|
}
|
|
20348
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
|
+
}
|
|
20349
20573
|
export class UploadInfoDto {
|
|
20350
20574
|
constructor(data) {
|
|
20351
20575
|
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>;
|
|
@@ -22110,6 +22293,78 @@ export interface IListUsersRequest {
|
|
|
22110
22293
|
continuationToken?: string | null;
|
|
22111
22294
|
}
|
|
22112
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
|
+
|
|
22113
22368
|
export class UploadInfoDto implements IUploadInfoDto {
|
|
22114
22369
|
baseUrl?: string | null;
|
|
22115
22370
|
key?: string | null;
|
|
@@ -38225,7 +38480,7 @@ export interface IBookingStatusUpdateDto {
|
|
|
38225
38480
|
deliveryExceptionComment?: string | null;
|
|
38226
38481
|
}
|
|
38227
38482
|
|
|
38228
|
-
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";
|
|
38229
38484
|
|
|
38230
38485
|
export class LocationSuggestionsDto implements ILocationSuggestionsDto {
|
|
38231
38486
|
items!: LocationSuggestionsItemDto[];
|