@ignos/api-client 20240528.0.9349 → 20240529.0.9369

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.
@@ -3456,7 +3456,7 @@ export class TraceClient extends AuthorizedApiBase {
3456
3456
  return Promise.resolve(null);
3457
3457
  }
3458
3458
  }
3459
- export class BookingClient extends AuthorizedApiBase {
3459
+ export class MoveBookingClient extends AuthorizedApiBase {
3460
3460
  constructor(configuration, baseUrl, http) {
3461
3461
  super(configuration);
3462
3462
  this.jsonParseReviver = undefined;
@@ -3492,7 +3492,7 @@ export class BookingClient extends AuthorizedApiBase {
3492
3492
  return response.text().then((_responseText) => {
3493
3493
  let result200 = null;
3494
3494
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3495
- result200 = BookingResponseListDto.fromJS(resultData200);
3495
+ result200 = BookingListDto.fromJS(resultData200);
3496
3496
  return result200;
3497
3497
  });
3498
3498
  }
@@ -3532,7 +3532,7 @@ export class BookingClient extends AuthorizedApiBase {
3532
3532
  return response.text().then((_responseText) => {
3533
3533
  let result200 = null;
3534
3534
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3535
- result200 = BookingResponseDto.fromJS(resultData200);
3535
+ result200 = BookingDto.fromJS(resultData200);
3536
3536
  return result200;
3537
3537
  });
3538
3538
  }
@@ -3555,6 +3555,7 @@ export class BookingClient extends AuthorizedApiBase {
3555
3555
  method: "PUT",
3556
3556
  headers: {
3557
3557
  "Content-Type": "application/json",
3558
+ "Accept": "application/json"
3558
3559
  }
3559
3560
  };
3560
3561
  return this.transformOptions(options_).then(transformedOptions_ => {
@@ -3570,9 +3571,12 @@ export class BookingClient extends AuthorizedApiBase {
3570
3571
  response.headers.forEach((v, k) => _headers[k] = v);
3571
3572
  }
3572
3573
  ;
3573
- if (status === 204) {
3574
+ if (status === 200) {
3574
3575
  return response.text().then((_responseText) => {
3575
- return;
3576
+ let result200 = null;
3577
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3578
+ result200 = BookingDto.fromJS(resultData200);
3579
+ return result200;
3576
3580
  });
3577
3581
  }
3578
3582
  else if (status !== 200 && status !== 204) {
@@ -3591,6 +3595,7 @@ export class BookingClient extends AuthorizedApiBase {
3591
3595
  method: "POST",
3592
3596
  headers: {
3593
3597
  "Content-Type": "application/json",
3598
+ "Accept": "application/json"
3594
3599
  }
3595
3600
  };
3596
3601
  return this.transformOptions(options_).then(transformedOptions_ => {
@@ -3606,9 +3611,12 @@ export class BookingClient extends AuthorizedApiBase {
3606
3611
  response.headers.forEach((v, k) => _headers[k] = v);
3607
3612
  }
3608
3613
  ;
3609
- if (status === 204) {
3614
+ if (status === 200) {
3610
3615
  return response.text().then((_responseText) => {
3611
- return;
3616
+ let result200 = null;
3617
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3618
+ result200 = BookingDto.fromJS(resultData200);
3619
+ return result200;
3612
3620
  });
3613
3621
  }
3614
3622
  else if (status !== 200 && status !== 204) {
@@ -3627,6 +3635,7 @@ export class BookingClient extends AuthorizedApiBase {
3627
3635
  method: "POST",
3628
3636
  headers: {
3629
3637
  "Content-Type": "application/json",
3638
+ "Accept": "application/json"
3630
3639
  }
3631
3640
  };
3632
3641
  return this.transformOptions(options_).then(transformedOptions_ => {
@@ -3642,9 +3651,12 @@ export class BookingClient extends AuthorizedApiBase {
3642
3651
  response.headers.forEach((v, k) => _headers[k] = v);
3643
3652
  }
3644
3653
  ;
3645
- if (status === 204) {
3654
+ if (status === 200) {
3646
3655
  return response.text().then((_responseText) => {
3647
- return;
3656
+ let result200 = null;
3657
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3658
+ result200 = BookingDto.fromJS(resultData200);
3659
+ return result200;
3648
3660
  });
3649
3661
  }
3650
3662
  else if (status !== 200 && status !== 204) {
@@ -3663,6 +3675,7 @@ export class BookingClient extends AuthorizedApiBase {
3663
3675
  method: "POST",
3664
3676
  headers: {
3665
3677
  "Content-Type": "application/json",
3678
+ "Accept": "application/json"
3666
3679
  }
3667
3680
  };
3668
3681
  return this.transformOptions(options_).then(transformedOptions_ => {
@@ -3678,9 +3691,12 @@ export class BookingClient extends AuthorizedApiBase {
3678
3691
  response.headers.forEach((v, k) => _headers[k] = v);
3679
3692
  }
3680
3693
  ;
3681
- if (status === 204) {
3694
+ if (status === 200) {
3682
3695
  return response.text().then((_responseText) => {
3683
- return;
3696
+ let result200 = null;
3697
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3698
+ result200 = BookingDto.fromJS(resultData200);
3699
+ return result200;
3684
3700
  });
3685
3701
  }
3686
3702
  else if (status !== 200 && status !== 204) {
@@ -3699,6 +3715,7 @@ export class BookingClient extends AuthorizedApiBase {
3699
3715
  method: "POST",
3700
3716
  headers: {
3701
3717
  "Content-Type": "application/json",
3718
+ "Accept": "application/json"
3702
3719
  }
3703
3720
  };
3704
3721
  return this.transformOptions(options_).then(transformedOptions_ => {
@@ -3714,9 +3731,12 @@ export class BookingClient extends AuthorizedApiBase {
3714
3731
  response.headers.forEach((v, k) => _headers[k] = v);
3715
3732
  }
3716
3733
  ;
3717
- if (status === 204) {
3734
+ if (status === 200) {
3718
3735
  return response.text().then((_responseText) => {
3719
- return;
3736
+ let result200 = null;
3737
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3738
+ result200 = BookingDto.fromJS(resultData200);
3739
+ return result200;
3720
3740
  });
3721
3741
  }
3722
3742
  else if (status !== 200 && status !== 204) {
@@ -3727,7 +3747,7 @@ export class BookingClient extends AuthorizedApiBase {
3727
3747
  return Promise.resolve(null);
3728
3748
  }
3729
3749
  }
3730
- export class LocationsClient extends AuthorizedApiBase {
3750
+ export class MoveLocationsClient extends AuthorizedApiBase {
3731
3751
  constructor(configuration, baseUrl, http) {
3732
3752
  super(configuration);
3733
3753
  this.jsonParseReviver = undefined;
@@ -3829,7 +3849,7 @@ export class LocationsClient extends AuthorizedApiBase {
3829
3849
  return Promise.resolve(null);
3830
3850
  }
3831
3851
  }
3832
- export class TrackingClient extends AuthorizedApiBase {
3852
+ export class MoveTrackingClient extends AuthorizedApiBase {
3833
3853
  constructor(configuration, baseUrl, http) {
3834
3854
  super(configuration);
3835
3855
  this.jsonParseReviver = undefined;
@@ -4074,7 +4094,7 @@ export class TrackingClient extends AuthorizedApiBase {
4074
4094
  return Promise.resolve(null);
4075
4095
  }
4076
4096
  }
4077
- export class WorkOrdersClient extends AuthorizedApiBase {
4097
+ export class MoveWorkOrdersClient extends AuthorizedApiBase {
4078
4098
  constructor(configuration, baseUrl, http) {
4079
4099
  super(configuration);
4080
4100
  this.jsonParseReviver = undefined;
@@ -7807,6 +7827,46 @@ export class CncFileTransferClient extends AuthorizedApiBase {
7807
7827
  }
7808
7828
  return Promise.resolve(null);
7809
7829
  }
7830
+ startCamTransferToMachineFromTempUpload(request) {
7831
+ let url_ = this.baseUrl + "/cncfiletransfer/transfers/tempcamfile";
7832
+ url_ = url_.replace(/[?&]$/, "");
7833
+ const content_ = JSON.stringify(request);
7834
+ let options_ = {
7835
+ body: content_,
7836
+ method: "POST",
7837
+ headers: {
7838
+ "Content-Type": "application/json",
7839
+ "Accept": "application/json"
7840
+ }
7841
+ };
7842
+ return this.transformOptions(options_).then(transformedOptions_ => {
7843
+ return this.http.fetch(url_, transformedOptions_);
7844
+ }).then((_response) => {
7845
+ return this.processStartCamTransferToMachineFromTempUpload(_response);
7846
+ });
7847
+ }
7848
+ processStartCamTransferToMachineFromTempUpload(response) {
7849
+ const status = response.status;
7850
+ let _headers = {};
7851
+ if (response.headers && response.headers.forEach) {
7852
+ response.headers.forEach((v, k) => _headers[k] = v);
7853
+ }
7854
+ ;
7855
+ if (status === 200) {
7856
+ return response.text().then((_responseText) => {
7857
+ let result200 = null;
7858
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
7859
+ result200 = CncMachineTransferDto.fromJS(resultData200);
7860
+ return result200;
7861
+ });
7862
+ }
7863
+ else if (status !== 200 && status !== 204) {
7864
+ return response.text().then((_responseText) => {
7865
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
7866
+ });
7867
+ }
7868
+ return Promise.resolve(null);
7869
+ }
7810
7870
  }
7811
7871
  export class CncSetupAgentClient extends AuthorizedApiBase {
7812
7872
  constructor(configuration, baseUrl, http) {
@@ -22093,7 +22153,7 @@ export class ListTraceWorkordersRequest {
22093
22153
  return data;
22094
22154
  }
22095
22155
  }
22096
- export class BookingResponseListDto {
22156
+ export class BookingListDto {
22097
22157
  constructor(data) {
22098
22158
  if (data) {
22099
22159
  for (var property in data) {
@@ -22110,14 +22170,14 @@ export class BookingResponseListDto {
22110
22170
  if (Array.isArray(_data["results"])) {
22111
22171
  this.results = [];
22112
22172
  for (let item of _data["results"])
22113
- this.results.push(BookingResponseDto.fromJS(item));
22173
+ this.results.push(BookingDto.fromJS(item));
22114
22174
  }
22115
22175
  this.continuationToken = _data["continuationToken"];
22116
22176
  }
22117
22177
  }
22118
22178
  static fromJS(data) {
22119
22179
  data = typeof data === 'object' ? data : {};
22120
- let result = new BookingResponseListDto();
22180
+ let result = new BookingListDto();
22121
22181
  result.init(data);
22122
22182
  return result;
22123
22183
  }
@@ -22132,7 +22192,7 @@ export class BookingResponseListDto {
22132
22192
  return data;
22133
22193
  }
22134
22194
  }
22135
- export class BookingResponseDto {
22195
+ export class BookingDto {
22136
22196
  constructor(data) {
22137
22197
  if (data) {
22138
22198
  for (var property in data) {
@@ -22142,24 +22202,32 @@ export class BookingResponseDto {
22142
22202
  }
22143
22203
  if (!data) {
22144
22204
  this.items = [];
22205
+ this.fromLocation = new LocationDto();
22206
+ this.toLocation = new LocationDto();
22145
22207
  }
22146
22208
  }
22147
22209
  init(_data) {
22148
22210
  if (_data) {
22149
22211
  this.bookingId = _data["bookingId"];
22150
22212
  this.bookingType = _data["bookingType"];
22213
+ this.status = _data["status"];
22151
22214
  if (Array.isArray(_data["items"])) {
22152
22215
  this.items = [];
22153
22216
  for (let item of _data["items"])
22154
- this.items.push(BookingItemResponseDto.fromJS(item));
22217
+ this.items.push(BookingItemDto.fromJS(item));
22155
22218
  }
22156
- this.fromLocationId = _data["fromLocationId"];
22157
- this.toLocationId = _data["toLocationId"];
22219
+ this.fromLocation = _data["fromLocation"] ? LocationDto.fromJS(_data["fromLocation"]) : new LocationDto();
22220
+ this.toLocation = _data["toLocation"] ? LocationDto.fromJS(_data["toLocation"]) : new LocationDto();
22221
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
22222
+ this.createdBy = _data["createdBy"];
22223
+ this.createdById = _data["createdById"];
22224
+ this.updatedBy = _data["updatedBy"];
22225
+ this.updatedById = _data["updatedById"];
22158
22226
  }
22159
22227
  }
22160
22228
  static fromJS(data) {
22161
22229
  data = typeof data === 'object' ? data : {};
22162
- let result = new BookingResponseDto();
22230
+ let result = new BookingDto();
22163
22231
  result.init(data);
22164
22232
  return result;
22165
22233
  }
@@ -22167,17 +22235,23 @@ export class BookingResponseDto {
22167
22235
  data = typeof data === 'object' ? data : {};
22168
22236
  data["bookingId"] = this.bookingId;
22169
22237
  data["bookingType"] = this.bookingType;
22238
+ data["status"] = this.status;
22170
22239
  if (Array.isArray(this.items)) {
22171
22240
  data["items"] = [];
22172
22241
  for (let item of this.items)
22173
22242
  data["items"].push(item.toJSON());
22174
22243
  }
22175
- data["fromLocationId"] = this.fromLocationId;
22176
- data["toLocationId"] = this.toLocationId;
22244
+ data["fromLocation"] = this.fromLocation ? this.fromLocation.toJSON() : undefined;
22245
+ data["toLocation"] = this.toLocation ? this.toLocation.toJSON() : undefined;
22246
+ data["created"] = this.created ? this.created.toISOString() : undefined;
22247
+ data["createdBy"] = this.createdBy;
22248
+ data["createdById"] = this.createdById;
22249
+ data["updatedBy"] = this.updatedBy;
22250
+ data["updatedById"] = this.updatedById;
22177
22251
  return data;
22178
22252
  }
22179
22253
  }
22180
- export class BookingItemResponseDto {
22254
+ export class BookingItemDto {
22181
22255
  constructor(data) {
22182
22256
  if (data) {
22183
22257
  for (var property in data) {
@@ -22189,17 +22263,53 @@ export class BookingItemResponseDto {
22189
22263
  init(_data) {
22190
22264
  if (_data) {
22191
22265
  this.trackingId = _data["trackingId"];
22266
+ this.workOrderId = _data["workOrderId"];
22267
+ this.material = _data["material"];
22192
22268
  }
22193
22269
  }
22194
22270
  static fromJS(data) {
22195
22271
  data = typeof data === 'object' ? data : {};
22196
- let result = new BookingItemResponseDto();
22272
+ let result = new BookingItemDto();
22197
22273
  result.init(data);
22198
22274
  return result;
22199
22275
  }
22200
22276
  toJSON(data) {
22201
22277
  data = typeof data === 'object' ? data : {};
22202
22278
  data["trackingId"] = this.trackingId;
22279
+ data["workOrderId"] = this.workOrderId;
22280
+ data["material"] = this.material;
22281
+ return data;
22282
+ }
22283
+ }
22284
+ export class LocationDto {
22285
+ constructor(data) {
22286
+ if (data) {
22287
+ for (var property in data) {
22288
+ if (data.hasOwnProperty(property))
22289
+ this[property] = data[property];
22290
+ }
22291
+ }
22292
+ }
22293
+ init(_data) {
22294
+ if (_data) {
22295
+ this.locationId = _data["locationId"];
22296
+ this.locationName = _data["locationName"];
22297
+ this.kind = _data["kind"];
22298
+ this.profile = _data["profile"];
22299
+ }
22300
+ }
22301
+ static fromJS(data) {
22302
+ data = typeof data === 'object' ? data : {};
22303
+ let result = new LocationDto();
22304
+ result.init(data);
22305
+ return result;
22306
+ }
22307
+ toJSON(data) {
22308
+ data = typeof data === 'object' ? data : {};
22309
+ data["locationId"] = this.locationId;
22310
+ data["locationName"] = this.locationName;
22311
+ data["kind"] = this.kind;
22312
+ data["profile"] = this.profile;
22203
22313
  return data;
22204
22314
  }
22205
22315
  }
@@ -22338,8 +22448,12 @@ export class BookingDeliveryUpdateDto {
22338
22448
  init(_data) {
22339
22449
  if (_data) {
22340
22450
  this.bookingId = _data["bookingId"];
22341
- this.toLocationId = _data["toLocationId"];
22342
22451
  this.comment = _data["comment"];
22452
+ if (Array.isArray(_data["deliveryExceptions"])) {
22453
+ this.deliveryExceptions = [];
22454
+ for (let item of _data["deliveryExceptions"])
22455
+ this.deliveryExceptions.push(BookingDeliveryExceptionDto.fromJS(item));
22456
+ }
22343
22457
  }
22344
22458
  }
22345
22459
  static fromJS(data) {
@@ -22351,12 +22465,16 @@ export class BookingDeliveryUpdateDto {
22351
22465
  toJSON(data) {
22352
22466
  data = typeof data === 'object' ? data : {};
22353
22467
  data["bookingId"] = this.bookingId;
22354
- data["toLocationId"] = this.toLocationId;
22355
22468
  data["comment"] = this.comment;
22469
+ if (Array.isArray(this.deliveryExceptions)) {
22470
+ data["deliveryExceptions"] = [];
22471
+ for (let item of this.deliveryExceptions)
22472
+ data["deliveryExceptions"].push(item.toJSON());
22473
+ }
22356
22474
  return data;
22357
22475
  }
22358
22476
  }
22359
- export class LocationDto {
22477
+ export class BookingDeliveryExceptionDto {
22360
22478
  constructor(data) {
22361
22479
  if (data) {
22362
22480
  for (var property in data) {
@@ -22367,24 +22485,22 @@ export class LocationDto {
22367
22485
  }
22368
22486
  init(_data) {
22369
22487
  if (_data) {
22370
- this.locationId = _data["locationId"];
22371
- this.locationName = _data["locationName"];
22372
- this.kind = _data["kind"];
22373
- this.profile = _data["profile"];
22488
+ this.trackingId = _data["trackingId"];
22489
+ this.toLocationId = _data["toLocationId"];
22490
+ this.comment = _data["comment"];
22374
22491
  }
22375
22492
  }
22376
22493
  static fromJS(data) {
22377
22494
  data = typeof data === 'object' ? data : {};
22378
- let result = new LocationDto();
22495
+ let result = new BookingDeliveryExceptionDto();
22379
22496
  result.init(data);
22380
22497
  return result;
22381
22498
  }
22382
22499
  toJSON(data) {
22383
22500
  data = typeof data === 'object' ? data : {};
22384
- data["locationId"] = this.locationId;
22385
- data["locationName"] = this.locationName;
22386
- data["kind"] = this.kind;
22387
- data["profile"] = this.profile;
22501
+ data["trackingId"] = this.trackingId;
22502
+ data["toLocationId"] = this.toLocationId;
22503
+ data["comment"] = this.comment;
22388
22504
  return data;
22389
22505
  }
22390
22506
  }
@@ -22448,6 +22564,7 @@ export class TrackingEventDto {
22448
22564
  this.id = _data["id"];
22449
22565
  this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
22450
22566
  this.createdBy = _data["createdBy"];
22567
+ this.createdById = _data["createdById"];
22451
22568
  this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) : new LocationDto();
22452
22569
  this.status = _data["status"];
22453
22570
  this.bookingId = _data["bookingId"];
@@ -22465,6 +22582,7 @@ export class TrackingEventDto {
22465
22582
  data["id"] = this.id;
22466
22583
  data["created"] = this.created ? this.created.toISOString() : undefined;
22467
22584
  data["createdBy"] = this.createdBy;
22585
+ data["createdById"] = this.createdById;
22468
22586
  data["location"] = this.location ? this.location.toJSON() : undefined;
22469
22587
  data["status"] = this.status;
22470
22588
  data["bookingId"] = this.bookingId;
@@ -22582,10 +22700,18 @@ export class SearchWorkOrderDto {
22582
22700
  this[property] = data[property];
22583
22701
  }
22584
22702
  }
22703
+ if (!data) {
22704
+ this.trackingIds = [];
22705
+ }
22585
22706
  }
22586
22707
  init(_data) {
22587
22708
  if (_data) {
22588
22709
  this.workOrderId = _data["workOrderId"];
22710
+ if (Array.isArray(_data["trackingIds"])) {
22711
+ this.trackingIds = [];
22712
+ for (let item of _data["trackingIds"])
22713
+ this.trackingIds.push(item);
22714
+ }
22589
22715
  this.partName = _data["partName"];
22590
22716
  this.partNumber = _data["partNumber"];
22591
22717
  }
@@ -22599,6 +22725,11 @@ export class SearchWorkOrderDto {
22599
22725
  toJSON(data) {
22600
22726
  data = typeof data === 'object' ? data : {};
22601
22727
  data["workOrderId"] = this.workOrderId;
22728
+ if (Array.isArray(this.trackingIds)) {
22729
+ data["trackingIds"] = [];
22730
+ for (let item of this.trackingIds)
22731
+ data["trackingIds"].push(item);
22732
+ }
22602
22733
  data["partName"] = this.partName;
22603
22734
  data["partNumber"] = this.partNumber;
22604
22735
  return data;
@@ -26160,6 +26291,36 @@ export class StartCamTransferToMachine {
26160
26291
  return data;
26161
26292
  }
26162
26293
  }
26294
+ export class StartCamTransferToMachineFromTempUpload {
26295
+ constructor(data) {
26296
+ if (data) {
26297
+ for (var property in data) {
26298
+ if (data.hasOwnProperty(property))
26299
+ this[property] = data[property];
26300
+ }
26301
+ }
26302
+ }
26303
+ init(_data) {
26304
+ if (_data) {
26305
+ this.uploadKey = _data["uploadKey"];
26306
+ this.filename = _data["filename"];
26307
+ this.cncMachineId = _data["cncMachineId"];
26308
+ }
26309
+ }
26310
+ static fromJS(data) {
26311
+ data = typeof data === 'object' ? data : {};
26312
+ let result = new StartCamTransferToMachineFromTempUpload();
26313
+ result.init(data);
26314
+ return result;
26315
+ }
26316
+ toJSON(data) {
26317
+ data = typeof data === 'object' ? data : {};
26318
+ data["uploadKey"] = this.uploadKey;
26319
+ data["filename"] = this.filename;
26320
+ data["cncMachineId"] = this.cncMachineId;
26321
+ return data;
26322
+ }
26323
+ }
26163
26324
  export class AgentConfigDto {
26164
26325
  constructor(data) {
26165
26326
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240528.0.9349",
3
+ "version": "20240529.0.9369",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",