@ignos/api-client 20240906.0.10268 → 20240906.0.10275
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 +206 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +240 -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<void>;
|
|
249
|
+
getMoveUserSettings(): Promise<MoveAppSettings>;
|
|
250
|
+
setMoveUserSettings(settings: MoveAppSettings): Promise<void>;
|
|
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<void>;
|
|
262
|
+
protected processSetEngageUserSettings(response: Response): Promise<void>;
|
|
263
|
+
getMoveUserSettings(): Promise<MoveAppSettings>;
|
|
264
|
+
protected processGetMoveUserSettings(response: Response): Promise<MoveAppSettings>;
|
|
265
|
+
setMoveUserSettings(settings: MoveAppSettings): Promise<void>;
|
|
266
|
+
protected processSetMoveUserSettings(response: Response): Promise<void>;
|
|
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,160 @@ 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
|
+
}
|
|
1230
|
+
};
|
|
1231
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1232
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1233
|
+
}).then((_response) => {
|
|
1234
|
+
return this.processSetEngageUserSettings(_response);
|
|
1235
|
+
});
|
|
1236
|
+
}
|
|
1237
|
+
processSetEngageUserSettings(response) {
|
|
1238
|
+
const status = response.status;
|
|
1239
|
+
let _headers = {};
|
|
1240
|
+
if (response.headers && response.headers.forEach) {
|
|
1241
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
1242
|
+
}
|
|
1243
|
+
;
|
|
1244
|
+
if (status === 204) {
|
|
1245
|
+
return response.text().then((_responseText) => {
|
|
1246
|
+
return;
|
|
1247
|
+
});
|
|
1248
|
+
}
|
|
1249
|
+
else if (status !== 200 && status !== 204) {
|
|
1250
|
+
return response.text().then((_responseText) => {
|
|
1251
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1252
|
+
});
|
|
1253
|
+
}
|
|
1254
|
+
return Promise.resolve(null);
|
|
1255
|
+
}
|
|
1256
|
+
getMoveUserSettings() {
|
|
1257
|
+
let url_ = this.baseUrl + "/userappsettings/move";
|
|
1258
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1259
|
+
let options_ = {
|
|
1260
|
+
method: "GET",
|
|
1261
|
+
headers: {
|
|
1262
|
+
"Accept": "application/json"
|
|
1263
|
+
}
|
|
1264
|
+
};
|
|
1265
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1266
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1267
|
+
}).then((_response) => {
|
|
1268
|
+
return this.processGetMoveUserSettings(_response);
|
|
1269
|
+
});
|
|
1270
|
+
}
|
|
1271
|
+
processGetMoveUserSettings(response) {
|
|
1272
|
+
const status = response.status;
|
|
1273
|
+
let _headers = {};
|
|
1274
|
+
if (response.headers && response.headers.forEach) {
|
|
1275
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
1276
|
+
}
|
|
1277
|
+
;
|
|
1278
|
+
if (status === 200) {
|
|
1279
|
+
return response.text().then((_responseText) => {
|
|
1280
|
+
let result200 = null;
|
|
1281
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1282
|
+
result200 = MoveAppSettings.fromJS(resultData200);
|
|
1283
|
+
return result200;
|
|
1284
|
+
});
|
|
1285
|
+
}
|
|
1286
|
+
else if (status !== 200 && status !== 204) {
|
|
1287
|
+
return response.text().then((_responseText) => {
|
|
1288
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1289
|
+
});
|
|
1290
|
+
}
|
|
1291
|
+
return Promise.resolve(null);
|
|
1292
|
+
}
|
|
1293
|
+
setMoveUserSettings(settings) {
|
|
1294
|
+
let url_ = this.baseUrl + "/userappsettings/move";
|
|
1295
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1296
|
+
const content_ = JSON.stringify(settings);
|
|
1297
|
+
let options_ = {
|
|
1298
|
+
body: content_,
|
|
1299
|
+
method: "PUT",
|
|
1300
|
+
headers: {
|
|
1301
|
+
"Content-Type": "application/json",
|
|
1302
|
+
}
|
|
1303
|
+
};
|
|
1304
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1305
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1306
|
+
}).then((_response) => {
|
|
1307
|
+
return this.processSetMoveUserSettings(_response);
|
|
1308
|
+
});
|
|
1309
|
+
}
|
|
1310
|
+
processSetMoveUserSettings(response) {
|
|
1311
|
+
const status = response.status;
|
|
1312
|
+
let _headers = {};
|
|
1313
|
+
if (response.headers && response.headers.forEach) {
|
|
1314
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
1315
|
+
}
|
|
1316
|
+
;
|
|
1317
|
+
if (status === 204) {
|
|
1318
|
+
return response.text().then((_responseText) => {
|
|
1319
|
+
return;
|
|
1320
|
+
});
|
|
1321
|
+
}
|
|
1322
|
+
else if (status !== 200 && status !== 204) {
|
|
1323
|
+
return response.text().then((_responseText) => {
|
|
1324
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1325
|
+
});
|
|
1326
|
+
}
|
|
1327
|
+
return Promise.resolve(null);
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1176
1330
|
export class UploadClient extends AuthorizedApiBase {
|
|
1177
1331
|
constructor(configuration, baseUrl, http) {
|
|
1178
1332
|
super(configuration);
|
|
@@ -20346,6 +20500,58 @@ export class ListUsersRequest {
|
|
|
20346
20500
|
return data;
|
|
20347
20501
|
}
|
|
20348
20502
|
}
|
|
20503
|
+
export class EngageAppSettings {
|
|
20504
|
+
constructor(data) {
|
|
20505
|
+
if (data) {
|
|
20506
|
+
for (var property in data) {
|
|
20507
|
+
if (data.hasOwnProperty(property))
|
|
20508
|
+
this[property] = data[property];
|
|
20509
|
+
}
|
|
20510
|
+
}
|
|
20511
|
+
}
|
|
20512
|
+
init(_data) {
|
|
20513
|
+
if (_data) {
|
|
20514
|
+
this.includeDrawingInRouteCardPrint = _data["includeDrawingInRouteCardPrint"];
|
|
20515
|
+
}
|
|
20516
|
+
}
|
|
20517
|
+
static fromJS(data) {
|
|
20518
|
+
data = typeof data === 'object' ? data : {};
|
|
20519
|
+
let result = new EngageAppSettings();
|
|
20520
|
+
result.init(data);
|
|
20521
|
+
return result;
|
|
20522
|
+
}
|
|
20523
|
+
toJSON(data) {
|
|
20524
|
+
data = typeof data === 'object' ? data : {};
|
|
20525
|
+
data["includeDrawingInRouteCardPrint"] = this.includeDrawingInRouteCardPrint;
|
|
20526
|
+
return data;
|
|
20527
|
+
}
|
|
20528
|
+
}
|
|
20529
|
+
export class MoveAppSettings {
|
|
20530
|
+
constructor(data) {
|
|
20531
|
+
if (data) {
|
|
20532
|
+
for (var property in data) {
|
|
20533
|
+
if (data.hasOwnProperty(property))
|
|
20534
|
+
this[property] = data[property];
|
|
20535
|
+
}
|
|
20536
|
+
}
|
|
20537
|
+
}
|
|
20538
|
+
init(_data) {
|
|
20539
|
+
if (_data) {
|
|
20540
|
+
this.engageMoveAutoPrompt = _data["engageMoveAutoPrompt"];
|
|
20541
|
+
}
|
|
20542
|
+
}
|
|
20543
|
+
static fromJS(data) {
|
|
20544
|
+
data = typeof data === 'object' ? data : {};
|
|
20545
|
+
let result = new MoveAppSettings();
|
|
20546
|
+
result.init(data);
|
|
20547
|
+
return result;
|
|
20548
|
+
}
|
|
20549
|
+
toJSON(data) {
|
|
20550
|
+
data = typeof data === 'object' ? data : {};
|
|
20551
|
+
data["engageMoveAutoPrompt"] = this.engageMoveAutoPrompt;
|
|
20552
|
+
return data;
|
|
20553
|
+
}
|
|
20554
|
+
}
|
|
20349
20555
|
export class UploadInfoDto {
|
|
20350
20556
|
constructor(data) {
|
|
20351
20557
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -1310,6 +1310,173 @@ 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<void>;
|
|
1318
|
+
|
|
1319
|
+
getMoveUserSettings(): Promise<MoveAppSettings>;
|
|
1320
|
+
|
|
1321
|
+
setMoveUserSettings(settings: MoveAppSettings): Promise<void>;
|
|
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<void> {
|
|
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
|
+
}
|
|
1383
|
+
};
|
|
1384
|
+
|
|
1385
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1386
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1387
|
+
}).then((_response: Response) => {
|
|
1388
|
+
return this.processSetEngageUserSettings(_response);
|
|
1389
|
+
});
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
protected processSetEngageUserSettings(response: Response): Promise<void> {
|
|
1393
|
+
const status = response.status;
|
|
1394
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1395
|
+
if (status === 204) {
|
|
1396
|
+
return response.text().then((_responseText) => {
|
|
1397
|
+
return;
|
|
1398
|
+
});
|
|
1399
|
+
} else if (status !== 200 && status !== 204) {
|
|
1400
|
+
return response.text().then((_responseText) => {
|
|
1401
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1402
|
+
});
|
|
1403
|
+
}
|
|
1404
|
+
return Promise.resolve<void>(null as any);
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
getMoveUserSettings(): Promise<MoveAppSettings> {
|
|
1408
|
+
let url_ = this.baseUrl + "/userappsettings/move";
|
|
1409
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1410
|
+
|
|
1411
|
+
let options_: RequestInit = {
|
|
1412
|
+
method: "GET",
|
|
1413
|
+
headers: {
|
|
1414
|
+
"Accept": "application/json"
|
|
1415
|
+
}
|
|
1416
|
+
};
|
|
1417
|
+
|
|
1418
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1419
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1420
|
+
}).then((_response: Response) => {
|
|
1421
|
+
return this.processGetMoveUserSettings(_response);
|
|
1422
|
+
});
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
protected processGetMoveUserSettings(response: Response): Promise<MoveAppSettings> {
|
|
1426
|
+
const status = response.status;
|
|
1427
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1428
|
+
if (status === 200) {
|
|
1429
|
+
return response.text().then((_responseText) => {
|
|
1430
|
+
let result200: any = null;
|
|
1431
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1432
|
+
result200 = MoveAppSettings.fromJS(resultData200);
|
|
1433
|
+
return result200;
|
|
1434
|
+
});
|
|
1435
|
+
} else if (status !== 200 && status !== 204) {
|
|
1436
|
+
return response.text().then((_responseText) => {
|
|
1437
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1438
|
+
});
|
|
1439
|
+
}
|
|
1440
|
+
return Promise.resolve<MoveAppSettings>(null as any);
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
setMoveUserSettings(settings: MoveAppSettings): Promise<void> {
|
|
1444
|
+
let url_ = this.baseUrl + "/userappsettings/move";
|
|
1445
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1446
|
+
|
|
1447
|
+
const content_ = JSON.stringify(settings);
|
|
1448
|
+
|
|
1449
|
+
let options_: RequestInit = {
|
|
1450
|
+
body: content_,
|
|
1451
|
+
method: "PUT",
|
|
1452
|
+
headers: {
|
|
1453
|
+
"Content-Type": "application/json",
|
|
1454
|
+
}
|
|
1455
|
+
};
|
|
1456
|
+
|
|
1457
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1458
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1459
|
+
}).then((_response: Response) => {
|
|
1460
|
+
return this.processSetMoveUserSettings(_response);
|
|
1461
|
+
});
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
protected processSetMoveUserSettings(response: Response): Promise<void> {
|
|
1465
|
+
const status = response.status;
|
|
1466
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1467
|
+
if (status === 204) {
|
|
1468
|
+
return response.text().then((_responseText) => {
|
|
1469
|
+
return;
|
|
1470
|
+
});
|
|
1471
|
+
} else if (status !== 200 && status !== 204) {
|
|
1472
|
+
return response.text().then((_responseText) => {
|
|
1473
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1474
|
+
});
|
|
1475
|
+
}
|
|
1476
|
+
return Promise.resolve<void>(null as any);
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1313
1480
|
export interface IUploadClient {
|
|
1314
1481
|
|
|
1315
1482
|
createUploadInfo(): Promise<UploadInfoDto>;
|
|
@@ -22110,6 +22277,78 @@ export interface IListUsersRequest {
|
|
|
22110
22277
|
continuationToken?: string | null;
|
|
22111
22278
|
}
|
|
22112
22279
|
|
|
22280
|
+
export class EngageAppSettings implements IEngageAppSettings {
|
|
22281
|
+
includeDrawingInRouteCardPrint?: boolean;
|
|
22282
|
+
|
|
22283
|
+
constructor(data?: IEngageAppSettings) {
|
|
22284
|
+
if (data) {
|
|
22285
|
+
for (var property in data) {
|
|
22286
|
+
if (data.hasOwnProperty(property))
|
|
22287
|
+
(<any>this)[property] = (<any>data)[property];
|
|
22288
|
+
}
|
|
22289
|
+
}
|
|
22290
|
+
}
|
|
22291
|
+
|
|
22292
|
+
init(_data?: any) {
|
|
22293
|
+
if (_data) {
|
|
22294
|
+
this.includeDrawingInRouteCardPrint = _data["includeDrawingInRouteCardPrint"];
|
|
22295
|
+
}
|
|
22296
|
+
}
|
|
22297
|
+
|
|
22298
|
+
static fromJS(data: any): EngageAppSettings {
|
|
22299
|
+
data = typeof data === 'object' ? data : {};
|
|
22300
|
+
let result = new EngageAppSettings();
|
|
22301
|
+
result.init(data);
|
|
22302
|
+
return result;
|
|
22303
|
+
}
|
|
22304
|
+
|
|
22305
|
+
toJSON(data?: any) {
|
|
22306
|
+
data = typeof data === 'object' ? data : {};
|
|
22307
|
+
data["includeDrawingInRouteCardPrint"] = this.includeDrawingInRouteCardPrint;
|
|
22308
|
+
return data;
|
|
22309
|
+
}
|
|
22310
|
+
}
|
|
22311
|
+
|
|
22312
|
+
export interface IEngageAppSettings {
|
|
22313
|
+
includeDrawingInRouteCardPrint?: boolean;
|
|
22314
|
+
}
|
|
22315
|
+
|
|
22316
|
+
export class MoveAppSettings implements IMoveAppSettings {
|
|
22317
|
+
engageMoveAutoPrompt?: boolean;
|
|
22318
|
+
|
|
22319
|
+
constructor(data?: IMoveAppSettings) {
|
|
22320
|
+
if (data) {
|
|
22321
|
+
for (var property in data) {
|
|
22322
|
+
if (data.hasOwnProperty(property))
|
|
22323
|
+
(<any>this)[property] = (<any>data)[property];
|
|
22324
|
+
}
|
|
22325
|
+
}
|
|
22326
|
+
}
|
|
22327
|
+
|
|
22328
|
+
init(_data?: any) {
|
|
22329
|
+
if (_data) {
|
|
22330
|
+
this.engageMoveAutoPrompt = _data["engageMoveAutoPrompt"];
|
|
22331
|
+
}
|
|
22332
|
+
}
|
|
22333
|
+
|
|
22334
|
+
static fromJS(data: any): MoveAppSettings {
|
|
22335
|
+
data = typeof data === 'object' ? data : {};
|
|
22336
|
+
let result = new MoveAppSettings();
|
|
22337
|
+
result.init(data);
|
|
22338
|
+
return result;
|
|
22339
|
+
}
|
|
22340
|
+
|
|
22341
|
+
toJSON(data?: any) {
|
|
22342
|
+
data = typeof data === 'object' ? data : {};
|
|
22343
|
+
data["engageMoveAutoPrompt"] = this.engageMoveAutoPrompt;
|
|
22344
|
+
return data;
|
|
22345
|
+
}
|
|
22346
|
+
}
|
|
22347
|
+
|
|
22348
|
+
export interface IMoveAppSettings {
|
|
22349
|
+
engageMoveAutoPrompt?: boolean;
|
|
22350
|
+
}
|
|
22351
|
+
|
|
22113
22352
|
export class UploadInfoDto implements IUploadInfoDto {
|
|
22114
22353
|
baseUrl?: string | null;
|
|
22115
22354
|
key?: string | null;
|
|
@@ -38225,7 +38464,7 @@ export interface IBookingStatusUpdateDto {
|
|
|
38225
38464
|
deliveryExceptionComment?: string | null;
|
|
38226
38465
|
}
|
|
38227
38466
|
|
|
38228
|
-
export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack" | "User";
|
|
38467
|
+
export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Environment" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack" | "User";
|
|
38229
38468
|
|
|
38230
38469
|
export class LocationSuggestionsDto implements ILocationSuggestionsDto {
|
|
38231
38470
|
items!: LocationSuggestionsItemDto[];
|