@ignos/api-client 20240820.0.10076 → 20240828.0.10152
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 +176 -53
- package/lib/ignosportal-api.js +417 -75
- package/package.json +1 -1
- package/src/ignosportal-api.ts +584 -129
package/lib/ignosportal-api.js
CHANGED
|
@@ -12274,7 +12274,7 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
12274
12274
|
return response.text().then((_responseText) => {
|
|
12275
12275
|
let result200 = null;
|
|
12276
12276
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12277
|
-
result200 =
|
|
12277
|
+
result200 = TrackingParcelListDto.fromJS(resultData200);
|
|
12278
12278
|
return result200;
|
|
12279
12279
|
});
|
|
12280
12280
|
}
|
|
@@ -12318,7 +12318,7 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
12318
12318
|
return response.text().then((_responseText) => {
|
|
12319
12319
|
let result200 = null;
|
|
12320
12320
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12321
|
-
result200 =
|
|
12321
|
+
result200 = TrackingParcelDto.fromJS(resultData200);
|
|
12322
12322
|
return result200;
|
|
12323
12323
|
});
|
|
12324
12324
|
}
|
|
@@ -18002,6 +18002,139 @@ export class CustomerOrdersClient extends AuthorizedApiBase {
|
|
|
18002
18002
|
return Promise.resolve(null);
|
|
18003
18003
|
}
|
|
18004
18004
|
}
|
|
18005
|
+
export class ErpUsersClient extends AuthorizedApiBase {
|
|
18006
|
+
constructor(configuration, baseUrl, http) {
|
|
18007
|
+
super(configuration);
|
|
18008
|
+
this.jsonParseReviver = undefined;
|
|
18009
|
+
this.http = http ? http : window;
|
|
18010
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
18011
|
+
}
|
|
18012
|
+
listUsers(request) {
|
|
18013
|
+
let url_ = this.baseUrl + "/erp/users/list";
|
|
18014
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18015
|
+
const content_ = JSON.stringify(request);
|
|
18016
|
+
let options_ = {
|
|
18017
|
+
body: content_,
|
|
18018
|
+
method: "POST",
|
|
18019
|
+
headers: {
|
|
18020
|
+
"Content-Type": "application/json",
|
|
18021
|
+
"Accept": "application/json"
|
|
18022
|
+
}
|
|
18023
|
+
};
|
|
18024
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18025
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18026
|
+
}).then((_response) => {
|
|
18027
|
+
return this.processListUsers(_response);
|
|
18028
|
+
});
|
|
18029
|
+
}
|
|
18030
|
+
processListUsers(response) {
|
|
18031
|
+
const status = response.status;
|
|
18032
|
+
let _headers = {};
|
|
18033
|
+
if (response.headers && response.headers.forEach) {
|
|
18034
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
18035
|
+
}
|
|
18036
|
+
;
|
|
18037
|
+
if (status === 200) {
|
|
18038
|
+
return response.text().then((_responseText) => {
|
|
18039
|
+
let result200 = null;
|
|
18040
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18041
|
+
result200 = PagedResultOfErpUserDto.fromJS(resultData200);
|
|
18042
|
+
return result200;
|
|
18043
|
+
});
|
|
18044
|
+
}
|
|
18045
|
+
else if (status !== 200 && status !== 204) {
|
|
18046
|
+
return response.text().then((_responseText) => {
|
|
18047
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18048
|
+
});
|
|
18049
|
+
}
|
|
18050
|
+
return Promise.resolve(null);
|
|
18051
|
+
}
|
|
18052
|
+
}
|
|
18053
|
+
export class ProductionPoolsClient extends AuthorizedApiBase {
|
|
18054
|
+
constructor(configuration, baseUrl, http) {
|
|
18055
|
+
super(configuration);
|
|
18056
|
+
this.jsonParseReviver = undefined;
|
|
18057
|
+
this.http = http ? http : window;
|
|
18058
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
18059
|
+
}
|
|
18060
|
+
listProductionPools() {
|
|
18061
|
+
let url_ = this.baseUrl + "/erp/productionpools";
|
|
18062
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18063
|
+
let options_ = {
|
|
18064
|
+
method: "GET",
|
|
18065
|
+
headers: {
|
|
18066
|
+
"Accept": "application/json"
|
|
18067
|
+
}
|
|
18068
|
+
};
|
|
18069
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18070
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18071
|
+
}).then((_response) => {
|
|
18072
|
+
return this.processListProductionPools(_response);
|
|
18073
|
+
});
|
|
18074
|
+
}
|
|
18075
|
+
processListProductionPools(response) {
|
|
18076
|
+
const status = response.status;
|
|
18077
|
+
let _headers = {};
|
|
18078
|
+
if (response.headers && response.headers.forEach) {
|
|
18079
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
18080
|
+
}
|
|
18081
|
+
;
|
|
18082
|
+
if (status === 200) {
|
|
18083
|
+
return response.text().then((_responseText) => {
|
|
18084
|
+
let result200 = null;
|
|
18085
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
18086
|
+
if (Array.isArray(resultData200)) {
|
|
18087
|
+
result200 = [];
|
|
18088
|
+
for (let item of resultData200)
|
|
18089
|
+
result200.push(ProductionPoolDto.fromJS(item));
|
|
18090
|
+
}
|
|
18091
|
+
return result200;
|
|
18092
|
+
});
|
|
18093
|
+
}
|
|
18094
|
+
else if (status !== 200 && status !== 204) {
|
|
18095
|
+
return response.text().then((_responseText) => {
|
|
18096
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18097
|
+
});
|
|
18098
|
+
}
|
|
18099
|
+
return Promise.resolve(null);
|
|
18100
|
+
}
|
|
18101
|
+
setProductionPoolContactPerson(request) {
|
|
18102
|
+
let url_ = this.baseUrl + "/erp/productionpools";
|
|
18103
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
18104
|
+
const content_ = JSON.stringify(request);
|
|
18105
|
+
let options_ = {
|
|
18106
|
+
body: content_,
|
|
18107
|
+
method: "PATCH",
|
|
18108
|
+
headers: {
|
|
18109
|
+
"Content-Type": "application/json",
|
|
18110
|
+
}
|
|
18111
|
+
};
|
|
18112
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
18113
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
18114
|
+
}).then((_response) => {
|
|
18115
|
+
return this.processSetProductionPoolContactPerson(_response);
|
|
18116
|
+
});
|
|
18117
|
+
}
|
|
18118
|
+
processSetProductionPoolContactPerson(response) {
|
|
18119
|
+
const status = response.status;
|
|
18120
|
+
let _headers = {};
|
|
18121
|
+
if (response.headers && response.headers.forEach) {
|
|
18122
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
18123
|
+
}
|
|
18124
|
+
;
|
|
18125
|
+
if (status === 200) {
|
|
18126
|
+
return response.text().then((_responseText) => {
|
|
18127
|
+
return;
|
|
18128
|
+
});
|
|
18129
|
+
}
|
|
18130
|
+
else if (status !== 200 && status !== 204) {
|
|
18131
|
+
return response.text().then((_responseText) => {
|
|
18132
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
18133
|
+
});
|
|
18134
|
+
}
|
|
18135
|
+
return Promise.resolve(null);
|
|
18136
|
+
}
|
|
18137
|
+
}
|
|
18005
18138
|
export class ResourcesClient extends AuthorizedApiBase {
|
|
18006
18139
|
constructor(configuration, baseUrl, http) {
|
|
18007
18140
|
super(configuration);
|
|
@@ -30284,7 +30417,7 @@ export class BookingDto {
|
|
|
30284
30417
|
}
|
|
30285
30418
|
}
|
|
30286
30419
|
if (!data) {
|
|
30287
|
-
this.
|
|
30420
|
+
this.parcels = [];
|
|
30288
30421
|
this.fromLocation = new LocationDto();
|
|
30289
30422
|
this.toLocation = new LocationDto();
|
|
30290
30423
|
}
|
|
@@ -30295,10 +30428,10 @@ export class BookingDto {
|
|
|
30295
30428
|
this.parcelKind = _data["parcelKind"];
|
|
30296
30429
|
this.transportKind = _data["transportKind"];
|
|
30297
30430
|
this.status = _data["status"];
|
|
30298
|
-
if (Array.isArray(_data["
|
|
30299
|
-
this.
|
|
30300
|
-
for (let item of _data["
|
|
30301
|
-
this.
|
|
30431
|
+
if (Array.isArray(_data["parcels"])) {
|
|
30432
|
+
this.parcels = [];
|
|
30433
|
+
for (let item of _data["parcels"])
|
|
30434
|
+
this.parcels.push(BookingParcelDto.fromJS(item));
|
|
30302
30435
|
}
|
|
30303
30436
|
this.fromLocation = _data["fromLocation"] ? LocationDto.fromJS(_data["fromLocation"]) : new LocationDto();
|
|
30304
30437
|
this.toLocation = _data["toLocation"] ? LocationDto.fromJS(_data["toLocation"]) : new LocationDto();
|
|
@@ -30324,10 +30457,10 @@ export class BookingDto {
|
|
|
30324
30457
|
data["parcelKind"] = this.parcelKind;
|
|
30325
30458
|
data["transportKind"] = this.transportKind;
|
|
30326
30459
|
data["status"] = this.status;
|
|
30327
|
-
if (Array.isArray(this.
|
|
30328
|
-
data["
|
|
30329
|
-
for (let item of this.
|
|
30330
|
-
data["
|
|
30460
|
+
if (Array.isArray(this.parcels)) {
|
|
30461
|
+
data["parcels"] = [];
|
|
30462
|
+
for (let item of this.parcels)
|
|
30463
|
+
data["parcels"].push(item.toJSON());
|
|
30331
30464
|
}
|
|
30332
30465
|
data["fromLocation"] = this.fromLocation ? this.fromLocation.toJSON() : undefined;
|
|
30333
30466
|
data["toLocation"] = this.toLocation ? this.toLocation.toJSON() : undefined;
|
|
@@ -30342,7 +30475,7 @@ export class BookingDto {
|
|
|
30342
30475
|
return data;
|
|
30343
30476
|
}
|
|
30344
30477
|
}
|
|
30345
|
-
export class
|
|
30478
|
+
export class BookingParcelDto {
|
|
30346
30479
|
constructor(data) {
|
|
30347
30480
|
if (data) {
|
|
30348
30481
|
for (var property in data) {
|
|
@@ -30353,13 +30486,57 @@ export class BookingItemDto {
|
|
|
30353
30486
|
}
|
|
30354
30487
|
init(_data) {
|
|
30355
30488
|
if (_data) {
|
|
30356
|
-
this.trackingId = _data["trackingId"];
|
|
30357
|
-
this.palletNumber = _data["palletNumber"];
|
|
30358
30489
|
this.parcelId = _data["parcelId"];
|
|
30359
30490
|
this.parcelKind = _data["parcelKind"];
|
|
30491
|
+
this.partName = _data["partName"];
|
|
30492
|
+
this.partNumber = _data["partNumber"];
|
|
30493
|
+
this.quantity = _data["quantity"];
|
|
30360
30494
|
this.material = _data["material"];
|
|
30361
|
-
this.comment = _data["comment"];
|
|
30362
30495
|
this.covered = _data["covered"];
|
|
30496
|
+
if (Array.isArray(_data["items"])) {
|
|
30497
|
+
this.items = [];
|
|
30498
|
+
for (let item of _data["items"])
|
|
30499
|
+
this.items.push(BookingItemDto.fromJS(item));
|
|
30500
|
+
}
|
|
30501
|
+
}
|
|
30502
|
+
}
|
|
30503
|
+
static fromJS(data) {
|
|
30504
|
+
data = typeof data === 'object' ? data : {};
|
|
30505
|
+
let result = new BookingParcelDto();
|
|
30506
|
+
result.init(data);
|
|
30507
|
+
return result;
|
|
30508
|
+
}
|
|
30509
|
+
toJSON(data) {
|
|
30510
|
+
data = typeof data === 'object' ? data : {};
|
|
30511
|
+
data["parcelId"] = this.parcelId;
|
|
30512
|
+
data["parcelKind"] = this.parcelKind;
|
|
30513
|
+
data["partName"] = this.partName;
|
|
30514
|
+
data["partNumber"] = this.partNumber;
|
|
30515
|
+
data["quantity"] = this.quantity;
|
|
30516
|
+
data["material"] = this.material;
|
|
30517
|
+
data["covered"] = this.covered;
|
|
30518
|
+
if (Array.isArray(this.items)) {
|
|
30519
|
+
data["items"] = [];
|
|
30520
|
+
for (let item of this.items)
|
|
30521
|
+
data["items"].push(item.toJSON());
|
|
30522
|
+
}
|
|
30523
|
+
return data;
|
|
30524
|
+
}
|
|
30525
|
+
}
|
|
30526
|
+
export class BookingItemDto {
|
|
30527
|
+
constructor(data) {
|
|
30528
|
+
if (data) {
|
|
30529
|
+
for (var property in data) {
|
|
30530
|
+
if (data.hasOwnProperty(property))
|
|
30531
|
+
this[property] = data[property];
|
|
30532
|
+
}
|
|
30533
|
+
}
|
|
30534
|
+
}
|
|
30535
|
+
init(_data) {
|
|
30536
|
+
if (_data) {
|
|
30537
|
+
this.trackingId = _data["trackingId"];
|
|
30538
|
+
this.palletNumber = _data["palletNumber"];
|
|
30539
|
+
this.comment = _data["comment"];
|
|
30363
30540
|
this.toLocationOverride = _data["toLocationOverride"] ? LocationDto.fromJS(_data["toLocationOverride"]) : undefined;
|
|
30364
30541
|
}
|
|
30365
30542
|
}
|
|
@@ -30373,11 +30550,7 @@ export class BookingItemDto {
|
|
|
30373
30550
|
data = typeof data === 'object' ? data : {};
|
|
30374
30551
|
data["trackingId"] = this.trackingId;
|
|
30375
30552
|
data["palletNumber"] = this.palletNumber;
|
|
30376
|
-
data["parcelId"] = this.parcelId;
|
|
30377
|
-
data["parcelKind"] = this.parcelKind;
|
|
30378
|
-
data["material"] = this.material;
|
|
30379
30553
|
data["comment"] = this.comment;
|
|
30380
|
-
data["covered"] = this.covered;
|
|
30381
30554
|
data["toLocationOverride"] = this.toLocationOverride ? this.toLocationOverride.toJSON() : undefined;
|
|
30382
30555
|
return data;
|
|
30383
30556
|
}
|
|
@@ -30959,7 +31132,7 @@ export class SearchParcelItemDto {
|
|
|
30959
31132
|
return data;
|
|
30960
31133
|
}
|
|
30961
31134
|
}
|
|
30962
|
-
export class
|
|
31135
|
+
export class TrackingParcelListDto {
|
|
30963
31136
|
constructor(data) {
|
|
30964
31137
|
if (data) {
|
|
30965
31138
|
for (var property in data) {
|
|
@@ -30976,14 +31149,14 @@ export class TrackingHistoryListDto {
|
|
|
30976
31149
|
if (Array.isArray(_data["results"])) {
|
|
30977
31150
|
this.results = [];
|
|
30978
31151
|
for (let item of _data["results"])
|
|
30979
|
-
this.results.push(
|
|
31152
|
+
this.results.push(TrackingParcelDto.fromJS(item));
|
|
30980
31153
|
}
|
|
30981
31154
|
this.continuationToken = _data["continuationToken"];
|
|
30982
31155
|
}
|
|
30983
31156
|
}
|
|
30984
31157
|
static fromJS(data) {
|
|
30985
31158
|
data = typeof data === 'object' ? data : {};
|
|
30986
|
-
let result = new
|
|
31159
|
+
let result = new TrackingParcelListDto();
|
|
30987
31160
|
result.init(data);
|
|
30988
31161
|
return result;
|
|
30989
31162
|
}
|
|
@@ -30998,6 +31171,57 @@ export class TrackingHistoryListDto {
|
|
|
30998
31171
|
return data;
|
|
30999
31172
|
}
|
|
31000
31173
|
}
|
|
31174
|
+
export class TrackingParcelDto {
|
|
31175
|
+
constructor(data) {
|
|
31176
|
+
if (data) {
|
|
31177
|
+
for (var property in data) {
|
|
31178
|
+
if (data.hasOwnProperty(property))
|
|
31179
|
+
this[property] = data[property];
|
|
31180
|
+
}
|
|
31181
|
+
}
|
|
31182
|
+
if (!data) {
|
|
31183
|
+
this.items = [];
|
|
31184
|
+
}
|
|
31185
|
+
}
|
|
31186
|
+
init(_data) {
|
|
31187
|
+
if (_data) {
|
|
31188
|
+
this.parcelId = _data["parcelId"];
|
|
31189
|
+
this.parcelKind = _data["parcelKind"];
|
|
31190
|
+
this.partName = _data["partName"];
|
|
31191
|
+
this.partNumber = _data["partNumber"];
|
|
31192
|
+
this.quantity = _data["quantity"];
|
|
31193
|
+
this.material = _data["material"];
|
|
31194
|
+
this.covered = _data["covered"];
|
|
31195
|
+
if (Array.isArray(_data["items"])) {
|
|
31196
|
+
this.items = [];
|
|
31197
|
+
for (let item of _data["items"])
|
|
31198
|
+
this.items.push(TrackingHistoryDto.fromJS(item));
|
|
31199
|
+
}
|
|
31200
|
+
}
|
|
31201
|
+
}
|
|
31202
|
+
static fromJS(data) {
|
|
31203
|
+
data = typeof data === 'object' ? data : {};
|
|
31204
|
+
let result = new TrackingParcelDto();
|
|
31205
|
+
result.init(data);
|
|
31206
|
+
return result;
|
|
31207
|
+
}
|
|
31208
|
+
toJSON(data) {
|
|
31209
|
+
data = typeof data === 'object' ? data : {};
|
|
31210
|
+
data["parcelId"] = this.parcelId;
|
|
31211
|
+
data["parcelKind"] = this.parcelKind;
|
|
31212
|
+
data["partName"] = this.partName;
|
|
31213
|
+
data["partNumber"] = this.partNumber;
|
|
31214
|
+
data["quantity"] = this.quantity;
|
|
31215
|
+
data["material"] = this.material;
|
|
31216
|
+
data["covered"] = this.covered;
|
|
31217
|
+
if (Array.isArray(this.items)) {
|
|
31218
|
+
data["items"] = [];
|
|
31219
|
+
for (let item of this.items)
|
|
31220
|
+
data["items"].push(item.toJSON());
|
|
31221
|
+
}
|
|
31222
|
+
return data;
|
|
31223
|
+
}
|
|
31224
|
+
}
|
|
31001
31225
|
export class TrackingHistoryDto {
|
|
31002
31226
|
constructor(data) {
|
|
31003
31227
|
if (data) {
|
|
@@ -31014,16 +31238,13 @@ export class TrackingHistoryDto {
|
|
|
31014
31238
|
if (_data) {
|
|
31015
31239
|
this.trackingId = _data["trackingId"];
|
|
31016
31240
|
this.palletNumber = _data["palletNumber"];
|
|
31017
|
-
this.
|
|
31018
|
-
this.parcelId = _data["parcelId"];
|
|
31241
|
+
this.activeBooking = _data["activeBooking"];
|
|
31019
31242
|
this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : undefined;
|
|
31020
31243
|
if (Array.isArray(_data["trackingEvents"])) {
|
|
31021
31244
|
this.trackingEvents = [];
|
|
31022
31245
|
for (let item of _data["trackingEvents"])
|
|
31023
31246
|
this.trackingEvents.push(TrackingEventDto.fromJS(item));
|
|
31024
31247
|
}
|
|
31025
|
-
this.material = _data["material"];
|
|
31026
|
-
this.activeBooking = _data["activeBooking"];
|
|
31027
31248
|
}
|
|
31028
31249
|
}
|
|
31029
31250
|
static fromJS(data) {
|
|
@@ -31036,16 +31257,13 @@ export class TrackingHistoryDto {
|
|
|
31036
31257
|
data = typeof data === 'object' ? data : {};
|
|
31037
31258
|
data["trackingId"] = this.trackingId;
|
|
31038
31259
|
data["palletNumber"] = this.palletNumber;
|
|
31039
|
-
data["
|
|
31040
|
-
data["parcelId"] = this.parcelId;
|
|
31260
|
+
data["activeBooking"] = this.activeBooking;
|
|
31041
31261
|
data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : undefined;
|
|
31042
31262
|
if (Array.isArray(this.trackingEvents)) {
|
|
31043
31263
|
data["trackingEvents"] = [];
|
|
31044
31264
|
for (let item of this.trackingEvents)
|
|
31045
31265
|
data["trackingEvents"].push(item.toJSON());
|
|
31046
31266
|
}
|
|
31047
|
-
data["material"] = this.material;
|
|
31048
|
-
data["activeBooking"] = this.activeBooking;
|
|
31049
31267
|
return data;
|
|
31050
31268
|
}
|
|
31051
31269
|
}
|
|
@@ -31169,50 +31387,7 @@ export class TrackingRequestListDto {
|
|
|
31169
31387
|
return data;
|
|
31170
31388
|
}
|
|
31171
31389
|
}
|
|
31172
|
-
export class
|
|
31173
|
-
constructor(data) {
|
|
31174
|
-
if (data) {
|
|
31175
|
-
for (var property in data) {
|
|
31176
|
-
if (data.hasOwnProperty(property))
|
|
31177
|
-
this[property] = data[property];
|
|
31178
|
-
}
|
|
31179
|
-
}
|
|
31180
|
-
if (!data) {
|
|
31181
|
-
this.trackingHistory = [];
|
|
31182
|
-
}
|
|
31183
|
-
}
|
|
31184
|
-
init(_data) {
|
|
31185
|
-
if (_data) {
|
|
31186
|
-
this.parcelId = _data["parcelId"];
|
|
31187
|
-
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined;
|
|
31188
|
-
if (Array.isArray(_data["trackingHistory"])) {
|
|
31189
|
-
this.trackingHistory = [];
|
|
31190
|
-
for (let item of _data["trackingHistory"])
|
|
31191
|
-
this.trackingHistory.push(TrackingHistoryDto.fromJS(item));
|
|
31192
|
-
}
|
|
31193
|
-
this.covered = _data["covered"];
|
|
31194
|
-
}
|
|
31195
|
-
}
|
|
31196
|
-
static fromJS(data) {
|
|
31197
|
-
data = typeof data === 'object' ? data : {};
|
|
31198
|
-
let result = new TrackingParcelDto();
|
|
31199
|
-
result.init(data);
|
|
31200
|
-
return result;
|
|
31201
|
-
}
|
|
31202
|
-
toJSON(data) {
|
|
31203
|
-
data = typeof data === 'object' ? data : {};
|
|
31204
|
-
data["parcelId"] = this.parcelId;
|
|
31205
|
-
data["part"] = this.part ? this.part.toJSON() : undefined;
|
|
31206
|
-
if (Array.isArray(this.trackingHistory)) {
|
|
31207
|
-
data["trackingHistory"] = [];
|
|
31208
|
-
for (let item of this.trackingHistory)
|
|
31209
|
-
data["trackingHistory"].push(item.toJSON());
|
|
31210
|
-
}
|
|
31211
|
-
data["covered"] = this.covered;
|
|
31212
|
-
return data;
|
|
31213
|
-
}
|
|
31214
|
-
}
|
|
31215
|
-
export class TrackingParcelListDto {
|
|
31390
|
+
export class TrackingParcelRequestListDto {
|
|
31216
31391
|
constructor(data) {
|
|
31217
31392
|
if (data) {
|
|
31218
31393
|
for (var property in data) {
|
|
@@ -31236,7 +31411,7 @@ export class TrackingParcelListDto {
|
|
|
31236
31411
|
}
|
|
31237
31412
|
static fromJS(data) {
|
|
31238
31413
|
data = typeof data === 'object' ? data : {};
|
|
31239
|
-
let result = new
|
|
31414
|
+
let result = new TrackingParcelRequestListDto();
|
|
31240
31415
|
result.init(data);
|
|
31241
31416
|
return result;
|
|
31242
31417
|
}
|
|
@@ -38211,6 +38386,173 @@ export class CreateCustomerMapping {
|
|
|
38211
38386
|
return data;
|
|
38212
38387
|
}
|
|
38213
38388
|
}
|
|
38389
|
+
export class PagedResultOfErpUserDto {
|
|
38390
|
+
constructor(data) {
|
|
38391
|
+
if (data) {
|
|
38392
|
+
for (var property in data) {
|
|
38393
|
+
if (data.hasOwnProperty(property))
|
|
38394
|
+
this[property] = data[property];
|
|
38395
|
+
}
|
|
38396
|
+
}
|
|
38397
|
+
if (!data) {
|
|
38398
|
+
this.results = [];
|
|
38399
|
+
}
|
|
38400
|
+
}
|
|
38401
|
+
init(_data) {
|
|
38402
|
+
if (_data) {
|
|
38403
|
+
if (Array.isArray(_data["results"])) {
|
|
38404
|
+
this.results = [];
|
|
38405
|
+
for (let item of _data["results"])
|
|
38406
|
+
this.results.push(ErpUserDto.fromJS(item));
|
|
38407
|
+
}
|
|
38408
|
+
this.continuationToken = _data["continuationToken"];
|
|
38409
|
+
}
|
|
38410
|
+
}
|
|
38411
|
+
static fromJS(data) {
|
|
38412
|
+
data = typeof data === 'object' ? data : {};
|
|
38413
|
+
let result = new PagedResultOfErpUserDto();
|
|
38414
|
+
result.init(data);
|
|
38415
|
+
return result;
|
|
38416
|
+
}
|
|
38417
|
+
toJSON(data) {
|
|
38418
|
+
data = typeof data === 'object' ? data : {};
|
|
38419
|
+
if (Array.isArray(this.results)) {
|
|
38420
|
+
data["results"] = [];
|
|
38421
|
+
for (let item of this.results)
|
|
38422
|
+
data["results"].push(item.toJSON());
|
|
38423
|
+
}
|
|
38424
|
+
data["continuationToken"] = this.continuationToken;
|
|
38425
|
+
return data;
|
|
38426
|
+
}
|
|
38427
|
+
}
|
|
38428
|
+
export class ErpUserDto {
|
|
38429
|
+
constructor(data) {
|
|
38430
|
+
if (data) {
|
|
38431
|
+
for (var property in data) {
|
|
38432
|
+
if (data.hasOwnProperty(property))
|
|
38433
|
+
this[property] = data[property];
|
|
38434
|
+
}
|
|
38435
|
+
}
|
|
38436
|
+
}
|
|
38437
|
+
init(_data) {
|
|
38438
|
+
if (_data) {
|
|
38439
|
+
this.azureAdObjectId = _data["azureAdObjectId"];
|
|
38440
|
+
this.name = _data["name"];
|
|
38441
|
+
this.upn = _data["upn"];
|
|
38442
|
+
this.companyId = _data["companyId"];
|
|
38443
|
+
this.userSelectedCompanyId = _data["userSelectedCompanyId"];
|
|
38444
|
+
this.personnelNumber = _data["personnelNumber"];
|
|
38445
|
+
this.badgeId = _data["badgeId"];
|
|
38446
|
+
this.email = _data["email"];
|
|
38447
|
+
}
|
|
38448
|
+
}
|
|
38449
|
+
static fromJS(data) {
|
|
38450
|
+
data = typeof data === 'object' ? data : {};
|
|
38451
|
+
let result = new ErpUserDto();
|
|
38452
|
+
result.init(data);
|
|
38453
|
+
return result;
|
|
38454
|
+
}
|
|
38455
|
+
toJSON(data) {
|
|
38456
|
+
data = typeof data === 'object' ? data : {};
|
|
38457
|
+
data["azureAdObjectId"] = this.azureAdObjectId;
|
|
38458
|
+
data["name"] = this.name;
|
|
38459
|
+
data["upn"] = this.upn;
|
|
38460
|
+
data["companyId"] = this.companyId;
|
|
38461
|
+
data["userSelectedCompanyId"] = this.userSelectedCompanyId;
|
|
38462
|
+
data["personnelNumber"] = this.personnelNumber;
|
|
38463
|
+
data["badgeId"] = this.badgeId;
|
|
38464
|
+
data["email"] = this.email;
|
|
38465
|
+
return data;
|
|
38466
|
+
}
|
|
38467
|
+
}
|
|
38468
|
+
export class ListErpUsers {
|
|
38469
|
+
constructor(data) {
|
|
38470
|
+
if (data) {
|
|
38471
|
+
for (var property in data) {
|
|
38472
|
+
if (data.hasOwnProperty(property))
|
|
38473
|
+
this[property] = data[property];
|
|
38474
|
+
}
|
|
38475
|
+
}
|
|
38476
|
+
}
|
|
38477
|
+
init(_data) {
|
|
38478
|
+
if (_data) {
|
|
38479
|
+
this.pageSize = _data["pageSize"];
|
|
38480
|
+
this.filter = _data["filter"];
|
|
38481
|
+
this.continuationToken = _data["continuationToken"];
|
|
38482
|
+
}
|
|
38483
|
+
}
|
|
38484
|
+
static fromJS(data) {
|
|
38485
|
+
data = typeof data === 'object' ? data : {};
|
|
38486
|
+
let result = new ListErpUsers();
|
|
38487
|
+
result.init(data);
|
|
38488
|
+
return result;
|
|
38489
|
+
}
|
|
38490
|
+
toJSON(data) {
|
|
38491
|
+
data = typeof data === 'object' ? data : {};
|
|
38492
|
+
data["pageSize"] = this.pageSize;
|
|
38493
|
+
data["filter"] = this.filter;
|
|
38494
|
+
data["continuationToken"] = this.continuationToken;
|
|
38495
|
+
return data;
|
|
38496
|
+
}
|
|
38497
|
+
}
|
|
38498
|
+
export class ProductionPoolDto {
|
|
38499
|
+
constructor(data) {
|
|
38500
|
+
if (data) {
|
|
38501
|
+
for (var property in data) {
|
|
38502
|
+
if (data.hasOwnProperty(property))
|
|
38503
|
+
this[property] = data[property];
|
|
38504
|
+
}
|
|
38505
|
+
}
|
|
38506
|
+
}
|
|
38507
|
+
init(_data) {
|
|
38508
|
+
if (_data) {
|
|
38509
|
+
this.name = _data["name"];
|
|
38510
|
+
this.contactPersonUpn = _data["contactPersonUpn"];
|
|
38511
|
+
this.id = _data["id"];
|
|
38512
|
+
}
|
|
38513
|
+
}
|
|
38514
|
+
static fromJS(data) {
|
|
38515
|
+
data = typeof data === 'object' ? data : {};
|
|
38516
|
+
let result = new ProductionPoolDto();
|
|
38517
|
+
result.init(data);
|
|
38518
|
+
return result;
|
|
38519
|
+
}
|
|
38520
|
+
toJSON(data) {
|
|
38521
|
+
data = typeof data === 'object' ? data : {};
|
|
38522
|
+
data["name"] = this.name;
|
|
38523
|
+
data["contactPersonUpn"] = this.contactPersonUpn;
|
|
38524
|
+
data["id"] = this.id;
|
|
38525
|
+
return data;
|
|
38526
|
+
}
|
|
38527
|
+
}
|
|
38528
|
+
export class SetProductionPoolContactPerson {
|
|
38529
|
+
constructor(data) {
|
|
38530
|
+
if (data) {
|
|
38531
|
+
for (var property in data) {
|
|
38532
|
+
if (data.hasOwnProperty(property))
|
|
38533
|
+
this[property] = data[property];
|
|
38534
|
+
}
|
|
38535
|
+
}
|
|
38536
|
+
}
|
|
38537
|
+
init(_data) {
|
|
38538
|
+
if (_data) {
|
|
38539
|
+
this.poolId = _data["poolId"];
|
|
38540
|
+
this.contactPersonUpn = _data["contactPersonUpn"];
|
|
38541
|
+
}
|
|
38542
|
+
}
|
|
38543
|
+
static fromJS(data) {
|
|
38544
|
+
data = typeof data === 'object' ? data : {};
|
|
38545
|
+
let result = new SetProductionPoolContactPerson();
|
|
38546
|
+
result.init(data);
|
|
38547
|
+
return result;
|
|
38548
|
+
}
|
|
38549
|
+
toJSON(data) {
|
|
38550
|
+
data = typeof data === 'object' ? data : {};
|
|
38551
|
+
data["poolId"] = this.poolId;
|
|
38552
|
+
data["contactPersonUpn"] = this.contactPersonUpn;
|
|
38553
|
+
return data;
|
|
38554
|
+
}
|
|
38555
|
+
}
|
|
38214
38556
|
export class UpsertWorkorder {
|
|
38215
38557
|
constructor(data) {
|
|
38216
38558
|
if (data) {
|