@ignos/api-client 20240429.0.9174 → 20240430.0.9189
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 +99 -94
- package/lib/ignosportal-api.js +54 -46
- package/package.json +1 -1
- package/src/ignosportal-api.ts +153 -139
package/lib/ignosportal-api.js
CHANGED
|
@@ -5395,7 +5395,7 @@ export class LocateBookingClient extends AuthorizedApiBase {
|
|
|
5395
5395
|
return response.text().then((_responseText) => {
|
|
5396
5396
|
let result200 = null;
|
|
5397
5397
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5398
|
-
result200 =
|
|
5398
|
+
result200 = BookingResponseDto.fromJS(resultData200);
|
|
5399
5399
|
return result200;
|
|
5400
5400
|
});
|
|
5401
5401
|
}
|
|
@@ -5435,7 +5435,7 @@ export class LocateBookingClient extends AuthorizedApiBase {
|
|
|
5435
5435
|
return response.text().then((_responseText) => {
|
|
5436
5436
|
let result200 = null;
|
|
5437
5437
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5438
|
-
result200 =
|
|
5438
|
+
result200 = BookingResponseListDto.fromJS(resultData200);
|
|
5439
5439
|
return result200;
|
|
5440
5440
|
});
|
|
5441
5441
|
}
|
|
@@ -5475,7 +5475,7 @@ export class LocateBookingClient extends AuthorizedApiBase {
|
|
|
5475
5475
|
return response.text().then((_responseText) => {
|
|
5476
5476
|
let result200 = null;
|
|
5477
5477
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5478
|
-
result200 =
|
|
5478
|
+
result200 = BookingResponseDto.fromJS(resultData200);
|
|
5479
5479
|
return result200;
|
|
5480
5480
|
});
|
|
5481
5481
|
}
|
|
@@ -5518,7 +5518,7 @@ export class LocateBookingClient extends AuthorizedApiBase {
|
|
|
5518
5518
|
return response.text().then((_responseText) => {
|
|
5519
5519
|
let result200 = null;
|
|
5520
5520
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5521
|
-
result200 =
|
|
5521
|
+
result200 = BookingResponseDto.fromJS(resultData200);
|
|
5522
5522
|
return result200;
|
|
5523
5523
|
});
|
|
5524
5524
|
}
|
|
@@ -5558,7 +5558,7 @@ export class LocateBookingClient extends AuthorizedApiBase {
|
|
|
5558
5558
|
return response.text().then((_responseText) => {
|
|
5559
5559
|
let result200 = null;
|
|
5560
5560
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5561
|
-
result200 =
|
|
5561
|
+
result200 = BookingResponseDto.fromJS(resultData200);
|
|
5562
5562
|
return result200;
|
|
5563
5563
|
});
|
|
5564
5564
|
}
|
|
@@ -5598,7 +5598,7 @@ export class LocateBookingClient extends AuthorizedApiBase {
|
|
|
5598
5598
|
return response.text().then((_responseText) => {
|
|
5599
5599
|
let result200 = null;
|
|
5600
5600
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5601
|
-
result200 =
|
|
5601
|
+
result200 = BookingResponseDto.fromJS(resultData200);
|
|
5602
5602
|
return result200;
|
|
5603
5603
|
});
|
|
5604
5604
|
}
|
|
@@ -5638,7 +5638,7 @@ export class LocateBookingClient extends AuthorizedApiBase {
|
|
|
5638
5638
|
return response.text().then((_responseText) => {
|
|
5639
5639
|
let result200 = null;
|
|
5640
5640
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5641
|
-
result200 =
|
|
5641
|
+
result200 = BookingResponseDto.fromJS(resultData200);
|
|
5642
5642
|
return result200;
|
|
5643
5643
|
});
|
|
5644
5644
|
}
|
|
@@ -5657,10 +5657,14 @@ export class LocateLocationsClient extends AuthorizedApiBase {
|
|
|
5657
5657
|
this.http = http ? http : window;
|
|
5658
5658
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
5659
5659
|
}
|
|
5660
|
-
searchLocations(input, orderId) {
|
|
5660
|
+
searchLocations(input, locationKinds, orderId) {
|
|
5661
5661
|
let url_ = this.baseUrl + "/locate/locations/search?";
|
|
5662
5662
|
if (input !== undefined && input !== null)
|
|
5663
5663
|
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
5664
|
+
if (locationKinds === null)
|
|
5665
|
+
throw new Error("The parameter 'locationKinds' cannot be null.");
|
|
5666
|
+
else if (locationKinds !== undefined)
|
|
5667
|
+
locationKinds && locationKinds.forEach(item => { url_ += "locationKinds=" + encodeURIComponent("" + item) + "&"; });
|
|
5664
5668
|
if (orderId !== undefined && orderId !== null)
|
|
5665
5669
|
url_ += "orderId=" + encodeURIComponent("" + orderId) + "&";
|
|
5666
5670
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -5690,7 +5694,7 @@ export class LocateLocationsClient extends AuthorizedApiBase {
|
|
|
5690
5694
|
if (Array.isArray(resultData200)) {
|
|
5691
5695
|
result200 = [];
|
|
5692
5696
|
for (let item of resultData200)
|
|
5693
|
-
result200.push(
|
|
5697
|
+
result200.push(LocationDto.fromJS(item));
|
|
5694
5698
|
}
|
|
5695
5699
|
return result200;
|
|
5696
5700
|
});
|
|
@@ -5703,15 +5707,15 @@ export class LocateLocationsClient extends AuthorizedApiBase {
|
|
|
5703
5707
|
return Promise.resolve(null);
|
|
5704
5708
|
}
|
|
5705
5709
|
}
|
|
5706
|
-
export class
|
|
5710
|
+
export class LocateOrdersClient extends AuthorizedApiBase {
|
|
5707
5711
|
constructor(configuration, baseUrl, http) {
|
|
5708
5712
|
super(configuration);
|
|
5709
5713
|
this.jsonParseReviver = undefined;
|
|
5710
5714
|
this.http = http ? http : window;
|
|
5711
5715
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
5712
5716
|
}
|
|
5713
|
-
|
|
5714
|
-
let url_ = this.baseUrl + "/locate/
|
|
5717
|
+
searchOrders(input, orderId) {
|
|
5718
|
+
let url_ = this.baseUrl + "/locate/orders/search?";
|
|
5715
5719
|
if (input !== undefined && input !== null)
|
|
5716
5720
|
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
5717
5721
|
if (orderId !== undefined && orderId !== null)
|
|
@@ -5726,10 +5730,10 @@ export class LocatePartsClient extends AuthorizedApiBase {
|
|
|
5726
5730
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5727
5731
|
return this.http.fetch(url_, transformedOptions_);
|
|
5728
5732
|
}).then((_response) => {
|
|
5729
|
-
return this.
|
|
5733
|
+
return this.processSearchOrders(_response);
|
|
5730
5734
|
});
|
|
5731
5735
|
}
|
|
5732
|
-
|
|
5736
|
+
processSearchOrders(response) {
|
|
5733
5737
|
const status = response.status;
|
|
5734
5738
|
let _headers = {};
|
|
5735
5739
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5743,7 +5747,7 @@ export class LocatePartsClient extends AuthorizedApiBase {
|
|
|
5743
5747
|
if (Array.isArray(resultData200)) {
|
|
5744
5748
|
result200 = [];
|
|
5745
5749
|
for (let item of resultData200)
|
|
5746
|
-
result200.push(
|
|
5750
|
+
result200.push(LocateOrderDto.fromJS(item));
|
|
5747
5751
|
}
|
|
5748
5752
|
return result200;
|
|
5749
5753
|
});
|
|
@@ -5792,7 +5796,7 @@ export class LocateTrackingClient extends AuthorizedApiBase {
|
|
|
5792
5796
|
return response.text().then((_responseText) => {
|
|
5793
5797
|
let result200 = null;
|
|
5794
5798
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5795
|
-
result200 =
|
|
5799
|
+
result200 = TrackingHistoryDto.fromJS(resultData200);
|
|
5796
5800
|
return result200;
|
|
5797
5801
|
});
|
|
5798
5802
|
}
|
|
@@ -5835,7 +5839,7 @@ export class LocateTrackingClient extends AuthorizedApiBase {
|
|
|
5835
5839
|
return response.text().then((_responseText) => {
|
|
5836
5840
|
let result200 = null;
|
|
5837
5841
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5838
|
-
result200 =
|
|
5842
|
+
result200 = TrackingEventsDto.fromJS(resultData200);
|
|
5839
5843
|
return result200;
|
|
5840
5844
|
});
|
|
5841
5845
|
}
|
|
@@ -5881,7 +5885,7 @@ export class LocateTrackingClient extends AuthorizedApiBase {
|
|
|
5881
5885
|
return response.text().then((_responseText) => {
|
|
5882
5886
|
let result200 = null;
|
|
5883
5887
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5884
|
-
result200 =
|
|
5888
|
+
result200 = TrackingEventsDto.fromJS(resultData200);
|
|
5885
5889
|
return result200;
|
|
5886
5890
|
});
|
|
5887
5891
|
}
|
|
@@ -24097,7 +24101,7 @@ export class CreateResourceWithMachine {
|
|
|
24097
24101
|
return data;
|
|
24098
24102
|
}
|
|
24099
24103
|
}
|
|
24100
|
-
export class
|
|
24104
|
+
export class BookingResponseDto {
|
|
24101
24105
|
constructor(data) {
|
|
24102
24106
|
if (data) {
|
|
24103
24107
|
for (var property in data) {
|
|
@@ -24128,7 +24132,7 @@ export class LocateBookingResponseDto {
|
|
|
24128
24132
|
}
|
|
24129
24133
|
static fromJS(data) {
|
|
24130
24134
|
data = typeof data === 'object' ? data : {};
|
|
24131
|
-
let result = new
|
|
24135
|
+
let result = new BookingResponseDto();
|
|
24132
24136
|
result.init(data);
|
|
24133
24137
|
return result;
|
|
24134
24138
|
}
|
|
@@ -24153,7 +24157,7 @@ export class LocateBookingResponseDto {
|
|
|
24153
24157
|
return data;
|
|
24154
24158
|
}
|
|
24155
24159
|
}
|
|
24156
|
-
export class
|
|
24160
|
+
export class BookingRequestDto {
|
|
24157
24161
|
constructor(data) {
|
|
24158
24162
|
if (data) {
|
|
24159
24163
|
for (var property in data) {
|
|
@@ -24182,7 +24186,7 @@ export class LocateBookingRequestDto {
|
|
|
24182
24186
|
}
|
|
24183
24187
|
static fromJS(data) {
|
|
24184
24188
|
data = typeof data === 'object' ? data : {};
|
|
24185
|
-
let result = new
|
|
24189
|
+
let result = new BookingRequestDto();
|
|
24186
24190
|
result.init(data);
|
|
24187
24191
|
return result;
|
|
24188
24192
|
}
|
|
@@ -24205,7 +24209,7 @@ export class LocateBookingRequestDto {
|
|
|
24205
24209
|
return data;
|
|
24206
24210
|
}
|
|
24207
24211
|
}
|
|
24208
|
-
export class
|
|
24212
|
+
export class BookingResponseListDto {
|
|
24209
24213
|
constructor(data) {
|
|
24210
24214
|
if (data) {
|
|
24211
24215
|
for (var property in data) {
|
|
@@ -24222,14 +24226,14 @@ export class LocateBookingResponseListDto {
|
|
|
24222
24226
|
if (Array.isArray(_data["results"])) {
|
|
24223
24227
|
this.results = [];
|
|
24224
24228
|
for (let item of _data["results"])
|
|
24225
|
-
this.results.push(
|
|
24229
|
+
this.results.push(BookingResponseDto.fromJS(item));
|
|
24226
24230
|
}
|
|
24227
24231
|
this.continuationToken = _data["continuationToken"];
|
|
24228
24232
|
}
|
|
24229
24233
|
}
|
|
24230
24234
|
static fromJS(data) {
|
|
24231
24235
|
data = typeof data === 'object' ? data : {};
|
|
24232
|
-
let result = new
|
|
24236
|
+
let result = new BookingResponseListDto();
|
|
24233
24237
|
result.init(data);
|
|
24234
24238
|
return result;
|
|
24235
24239
|
}
|
|
@@ -24244,7 +24248,7 @@ export class LocateBookingResponseListDto {
|
|
|
24244
24248
|
return data;
|
|
24245
24249
|
}
|
|
24246
24250
|
}
|
|
24247
|
-
export class
|
|
24251
|
+
export class BookingRequestListDto {
|
|
24248
24252
|
constructor(data) {
|
|
24249
24253
|
if (data) {
|
|
24250
24254
|
for (var property in data) {
|
|
@@ -24260,7 +24264,7 @@ export class LocateBookingRequestListDto {
|
|
|
24260
24264
|
}
|
|
24261
24265
|
static fromJS(data) {
|
|
24262
24266
|
data = typeof data === 'object' ? data : {};
|
|
24263
|
-
let result = new
|
|
24267
|
+
let result = new BookingRequestListDto();
|
|
24264
24268
|
result.init(data);
|
|
24265
24269
|
return result;
|
|
24266
24270
|
}
|
|
@@ -24270,7 +24274,7 @@ export class LocateBookingRequestListDto {
|
|
|
24270
24274
|
return data;
|
|
24271
24275
|
}
|
|
24272
24276
|
}
|
|
24273
|
-
export class
|
|
24277
|
+
export class LocationDto {
|
|
24274
24278
|
constructor(data) {
|
|
24275
24279
|
if (data) {
|
|
24276
24280
|
for (var property in data) {
|
|
@@ -24282,23 +24286,27 @@ export class LocateLocationDto {
|
|
|
24282
24286
|
init(_data) {
|
|
24283
24287
|
if (_data) {
|
|
24284
24288
|
this.locationId = _data["locationId"];
|
|
24285
|
-
this.
|
|
24289
|
+
this.locationName = _data["locationName"];
|
|
24290
|
+
this.kind = _data["kind"];
|
|
24291
|
+
this.profile = _data["profile"];
|
|
24286
24292
|
}
|
|
24287
24293
|
}
|
|
24288
24294
|
static fromJS(data) {
|
|
24289
24295
|
data = typeof data === 'object' ? data : {};
|
|
24290
|
-
let result = new
|
|
24296
|
+
let result = new LocationDto();
|
|
24291
24297
|
result.init(data);
|
|
24292
24298
|
return result;
|
|
24293
24299
|
}
|
|
24294
24300
|
toJSON(data) {
|
|
24295
24301
|
data = typeof data === 'object' ? data : {};
|
|
24296
24302
|
data["locationId"] = this.locationId;
|
|
24297
|
-
data["
|
|
24303
|
+
data["locationName"] = this.locationName;
|
|
24304
|
+
data["kind"] = this.kind;
|
|
24305
|
+
data["profile"] = this.profile;
|
|
24298
24306
|
return data;
|
|
24299
24307
|
}
|
|
24300
24308
|
}
|
|
24301
|
-
export class
|
|
24309
|
+
export class LocateOrderDto {
|
|
24302
24310
|
constructor(data) {
|
|
24303
24311
|
if (data) {
|
|
24304
24312
|
for (var property in data) {
|
|
@@ -24316,7 +24324,7 @@ export class LocatePartsDto {
|
|
|
24316
24324
|
}
|
|
24317
24325
|
static fromJS(data) {
|
|
24318
24326
|
data = typeof data === 'object' ? data : {};
|
|
24319
|
-
let result = new
|
|
24327
|
+
let result = new LocateOrderDto();
|
|
24320
24328
|
result.init(data);
|
|
24321
24329
|
return result;
|
|
24322
24330
|
}
|
|
@@ -24328,7 +24336,7 @@ export class LocatePartsDto {
|
|
|
24328
24336
|
return data;
|
|
24329
24337
|
}
|
|
24330
24338
|
}
|
|
24331
|
-
export class
|
|
24339
|
+
export class TrackingHistoryDto {
|
|
24332
24340
|
constructor(data) {
|
|
24333
24341
|
if (data) {
|
|
24334
24342
|
for (var property in data) {
|
|
@@ -24347,13 +24355,13 @@ export class LocateTrackingHistoryDto {
|
|
|
24347
24355
|
if (Array.isArray(_data["trackingEvents"])) {
|
|
24348
24356
|
this.trackingEvents = [];
|
|
24349
24357
|
for (let item of _data["trackingEvents"])
|
|
24350
|
-
this.trackingEvents.push(
|
|
24358
|
+
this.trackingEvents.push(TrackingEventsDto.fromJS(item));
|
|
24351
24359
|
}
|
|
24352
24360
|
}
|
|
24353
24361
|
}
|
|
24354
24362
|
static fromJS(data) {
|
|
24355
24363
|
data = typeof data === 'object' ? data : {};
|
|
24356
|
-
let result = new
|
|
24364
|
+
let result = new TrackingHistoryDto();
|
|
24357
24365
|
result.init(data);
|
|
24358
24366
|
return result;
|
|
24359
24367
|
}
|
|
@@ -24369,7 +24377,7 @@ export class LocateTrackingHistoryDto {
|
|
|
24369
24377
|
return data;
|
|
24370
24378
|
}
|
|
24371
24379
|
}
|
|
24372
|
-
export class
|
|
24380
|
+
export class TrackingEventsDto {
|
|
24373
24381
|
constructor(data) {
|
|
24374
24382
|
if (data) {
|
|
24375
24383
|
for (var property in data) {
|
|
@@ -24385,7 +24393,7 @@ export class LocateTrackingEventsDto {
|
|
|
24385
24393
|
this.createdBy = _data["createdBy"];
|
|
24386
24394
|
this.updated = _data["updated"] ? new Date(_data["updated"].toString()) : undefined;
|
|
24387
24395
|
this.updatedBy = _data["updatedBy"];
|
|
24388
|
-
this.
|
|
24396
|
+
this.locationId = _data["locationId"];
|
|
24389
24397
|
this.active = _data["active"];
|
|
24390
24398
|
this.trackingInfo = _data["trackingInfo"];
|
|
24391
24399
|
this.pallets = _data["pallets"];
|
|
@@ -24393,7 +24401,7 @@ export class LocateTrackingEventsDto {
|
|
|
24393
24401
|
}
|
|
24394
24402
|
static fromJS(data) {
|
|
24395
24403
|
data = typeof data === 'object' ? data : {};
|
|
24396
|
-
let result = new
|
|
24404
|
+
let result = new TrackingEventsDto();
|
|
24397
24405
|
result.init(data);
|
|
24398
24406
|
return result;
|
|
24399
24407
|
}
|
|
@@ -24404,14 +24412,14 @@ export class LocateTrackingEventsDto {
|
|
|
24404
24412
|
data["createdBy"] = this.createdBy;
|
|
24405
24413
|
data["updated"] = this.updated ? this.updated.toISOString() : undefined;
|
|
24406
24414
|
data["updatedBy"] = this.updatedBy;
|
|
24407
|
-
data["
|
|
24415
|
+
data["locationId"] = this.locationId;
|
|
24408
24416
|
data["active"] = this.active;
|
|
24409
24417
|
data["trackingInfo"] = this.trackingInfo;
|
|
24410
24418
|
data["pallets"] = this.pallets;
|
|
24411
24419
|
return data;
|
|
24412
24420
|
}
|
|
24413
24421
|
}
|
|
24414
|
-
export class
|
|
24422
|
+
export class TrackingUpdateDto {
|
|
24415
24423
|
constructor(data) {
|
|
24416
24424
|
if (data) {
|
|
24417
24425
|
for (var property in data) {
|
|
@@ -24430,7 +24438,7 @@ export class LocateTrackingUpdateDto {
|
|
|
24430
24438
|
}
|
|
24431
24439
|
static fromJS(data) {
|
|
24432
24440
|
data = typeof data === 'object' ? data : {};
|
|
24433
|
-
let result = new
|
|
24441
|
+
let result = new TrackingUpdateDto();
|
|
24434
24442
|
result.init(data);
|
|
24435
24443
|
return result;
|
|
24436
24444
|
}
|
|
@@ -32920,9 +32928,9 @@ export class WorkOrderAttachmentDto {
|
|
|
32920
32928
|
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
32921
32929
|
this.modifiedBy = _data["modifiedBy"];
|
|
32922
32930
|
this.modified = _data["modified"] ? new Date(_data["modified"].toString()) : undefined;
|
|
32923
|
-
this.notes = _data["notes"];
|
|
32924
32931
|
this.name = _data["name"];
|
|
32925
|
-
this.
|
|
32932
|
+
this.notes = _data["notes"];
|
|
32933
|
+
this.attachmentType = _data["attachmentType"];
|
|
32926
32934
|
}
|
|
32927
32935
|
}
|
|
32928
32936
|
static fromJS(data) {
|
|
@@ -32937,9 +32945,9 @@ export class WorkOrderAttachmentDto {
|
|
|
32937
32945
|
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
32938
32946
|
data["modifiedBy"] = this.modifiedBy;
|
|
32939
32947
|
data["modified"] = this.modified ? this.modified.toISOString() : undefined;
|
|
32940
|
-
data["notes"] = this.notes;
|
|
32941
32948
|
data["name"] = this.name;
|
|
32942
|
-
data["
|
|
32949
|
+
data["notes"] = this.notes;
|
|
32950
|
+
data["attachmentType"] = this.attachmentType;
|
|
32943
32951
|
return data;
|
|
32944
32952
|
}
|
|
32945
32953
|
}
|