@ignos/api-client 20240823.0.10114 → 20240828.0.10156

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.
@@ -9240,6 +9240,89 @@ export class CncSetupClient extends AuthorizedApiBase {
9240
9240
  }
9241
9241
  return Promise.resolve(null);
9242
9242
  }
9243
+ getCncMachineOperationNotes(id) {
9244
+ let url_ = this.baseUrl + "/cncsetup/operations/{id}/notes";
9245
+ if (id === undefined || id === null)
9246
+ throw new Error("The parameter 'id' must be defined.");
9247
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
9248
+ url_ = url_.replace(/[?&]$/, "");
9249
+ let options_ = {
9250
+ method: "GET",
9251
+ headers: {
9252
+ "Accept": "application/json"
9253
+ }
9254
+ };
9255
+ return this.transformOptions(options_).then(transformedOptions_ => {
9256
+ return this.http.fetch(url_, transformedOptions_);
9257
+ }).then((_response) => {
9258
+ return this.processGetCncMachineOperationNotes(_response);
9259
+ });
9260
+ }
9261
+ processGetCncMachineOperationNotes(response) {
9262
+ const status = response.status;
9263
+ let _headers = {};
9264
+ if (response.headers && response.headers.forEach) {
9265
+ response.headers.forEach((v, k) => _headers[k] = v);
9266
+ }
9267
+ ;
9268
+ if (status === 200) {
9269
+ return response.text().then((_responseText) => {
9270
+ let result200 = null;
9271
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
9272
+ result200 = MarkdownNotesDto.fromJS(resultData200);
9273
+ return result200;
9274
+ });
9275
+ }
9276
+ else if (status !== 200 && status !== 204) {
9277
+ return response.text().then((_responseText) => {
9278
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
9279
+ });
9280
+ }
9281
+ return Promise.resolve(null);
9282
+ }
9283
+ saveCncMachineOperationNotes(id, request) {
9284
+ let url_ = this.baseUrl + "/cncsetup/operations/{id}/notes";
9285
+ if (id === undefined || id === null)
9286
+ throw new Error("The parameter 'id' must be defined.");
9287
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
9288
+ url_ = url_.replace(/[?&]$/, "");
9289
+ const content_ = JSON.stringify(request);
9290
+ let options_ = {
9291
+ body: content_,
9292
+ method: "PUT",
9293
+ headers: {
9294
+ "Content-Type": "application/json",
9295
+ "Accept": "application/json"
9296
+ }
9297
+ };
9298
+ return this.transformOptions(options_).then(transformedOptions_ => {
9299
+ return this.http.fetch(url_, transformedOptions_);
9300
+ }).then((_response) => {
9301
+ return this.processSaveCncMachineOperationNotes(_response);
9302
+ });
9303
+ }
9304
+ processSaveCncMachineOperationNotes(response) {
9305
+ const status = response.status;
9306
+ let _headers = {};
9307
+ if (response.headers && response.headers.forEach) {
9308
+ response.headers.forEach((v, k) => _headers[k] = v);
9309
+ }
9310
+ ;
9311
+ if (status === 200) {
9312
+ return response.text().then((_responseText) => {
9313
+ let result200 = null;
9314
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
9315
+ result200 = MarkdownNotesDto.fromJS(resultData200);
9316
+ return result200;
9317
+ });
9318
+ }
9319
+ else if (status !== 200 && status !== 204) {
9320
+ return response.text().then((_responseText) => {
9321
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
9322
+ });
9323
+ }
9324
+ return Promise.resolve(null);
9325
+ }
9243
9326
  deleteCncMachineOperationAttachment(operationId, filename) {
9244
9327
  let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/attachments/{filename}";
9245
9328
  if (operationId === undefined || operationId === null)
@@ -12274,7 +12357,7 @@ export class MoveTrackingClient extends AuthorizedApiBase {
12274
12357
  return response.text().then((_responseText) => {
12275
12358
  let result200 = null;
12276
12359
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12277
- result200 = TrackingHistoryListDto.fromJS(resultData200);
12360
+ result200 = TrackingParcelListDto.fromJS(resultData200);
12278
12361
  return result200;
12279
12362
  });
12280
12363
  }
@@ -12318,7 +12401,7 @@ export class MoveTrackingClient extends AuthorizedApiBase {
12318
12401
  return response.text().then((_responseText) => {
12319
12402
  let result200 = null;
12320
12403
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12321
- result200 = TrackingHistoryDto.fromJS(resultData200);
12404
+ result200 = TrackingParcelDto.fromJS(resultData200);
12322
12405
  return result200;
12323
12406
  });
12324
12407
  }
@@ -28658,6 +28741,60 @@ export class UpdateProgramFileRequest {
28658
28741
  return data;
28659
28742
  }
28660
28743
  }
28744
+ export class MarkdownNotesDto {
28745
+ constructor(data) {
28746
+ if (data) {
28747
+ for (var property in data) {
28748
+ if (data.hasOwnProperty(property))
28749
+ this[property] = data[property];
28750
+ }
28751
+ }
28752
+ }
28753
+ init(_data) {
28754
+ if (_data) {
28755
+ this.content = _data["content"];
28756
+ }
28757
+ }
28758
+ static fromJS(data) {
28759
+ data = typeof data === 'object' ? data : {};
28760
+ let result = new MarkdownNotesDto();
28761
+ result.init(data);
28762
+ return result;
28763
+ }
28764
+ toJSON(data) {
28765
+ data = typeof data === 'object' ? data : {};
28766
+ data["content"] = this.content;
28767
+ return data;
28768
+ }
28769
+ }
28770
+ export class SaveMarkdownNotes {
28771
+ constructor(data) {
28772
+ if (data) {
28773
+ for (var property in data) {
28774
+ if (data.hasOwnProperty(property))
28775
+ this[property] = data[property];
28776
+ }
28777
+ }
28778
+ }
28779
+ init(_data) {
28780
+ if (_data) {
28781
+ this.id = _data["id"];
28782
+ this.markdown = _data["markdown"];
28783
+ }
28784
+ }
28785
+ static fromJS(data) {
28786
+ data = typeof data === 'object' ? data : {};
28787
+ let result = new SaveMarkdownNotes();
28788
+ result.init(data);
28789
+ return result;
28790
+ }
28791
+ toJSON(data) {
28792
+ data = typeof data === 'object' ? data : {};
28793
+ data["id"] = this.id;
28794
+ data["markdown"] = this.markdown;
28795
+ return data;
28796
+ }
28797
+ }
28661
28798
  export class CncToolTypeDto {
28662
28799
  constructor(data) {
28663
28800
  if (data) {
@@ -30417,7 +30554,7 @@ export class BookingDto {
30417
30554
  }
30418
30555
  }
30419
30556
  if (!data) {
30420
- this.items = [];
30557
+ this.parcels = [];
30421
30558
  this.fromLocation = new LocationDto();
30422
30559
  this.toLocation = new LocationDto();
30423
30560
  }
@@ -30428,10 +30565,10 @@ export class BookingDto {
30428
30565
  this.parcelKind = _data["parcelKind"];
30429
30566
  this.transportKind = _data["transportKind"];
30430
30567
  this.status = _data["status"];
30431
- if (Array.isArray(_data["items"])) {
30432
- this.items = [];
30433
- for (let item of _data["items"])
30434
- this.items.push(BookingItemDto.fromJS(item));
30568
+ if (Array.isArray(_data["parcels"])) {
30569
+ this.parcels = [];
30570
+ for (let item of _data["parcels"])
30571
+ this.parcels.push(BookingParcelDto.fromJS(item));
30435
30572
  }
30436
30573
  this.fromLocation = _data["fromLocation"] ? LocationDto.fromJS(_data["fromLocation"]) : new LocationDto();
30437
30574
  this.toLocation = _data["toLocation"] ? LocationDto.fromJS(_data["toLocation"]) : new LocationDto();
@@ -30457,10 +30594,10 @@ export class BookingDto {
30457
30594
  data["parcelKind"] = this.parcelKind;
30458
30595
  data["transportKind"] = this.transportKind;
30459
30596
  data["status"] = this.status;
30460
- if (Array.isArray(this.items)) {
30461
- data["items"] = [];
30462
- for (let item of this.items)
30463
- data["items"].push(item.toJSON());
30597
+ if (Array.isArray(this.parcels)) {
30598
+ data["parcels"] = [];
30599
+ for (let item of this.parcels)
30600
+ data["parcels"].push(item.toJSON());
30464
30601
  }
30465
30602
  data["fromLocation"] = this.fromLocation ? this.fromLocation.toJSON() : undefined;
30466
30603
  data["toLocation"] = this.toLocation ? this.toLocation.toJSON() : undefined;
@@ -30475,7 +30612,7 @@ export class BookingDto {
30475
30612
  return data;
30476
30613
  }
30477
30614
  }
30478
- export class BookingItemDto {
30615
+ export class BookingParcelDto {
30479
30616
  constructor(data) {
30480
30617
  if (data) {
30481
30618
  for (var property in data) {
@@ -30486,13 +30623,57 @@ export class BookingItemDto {
30486
30623
  }
30487
30624
  init(_data) {
30488
30625
  if (_data) {
30489
- this.trackingId = _data["trackingId"];
30490
- this.palletNumber = _data["palletNumber"];
30491
30626
  this.parcelId = _data["parcelId"];
30492
30627
  this.parcelKind = _data["parcelKind"];
30628
+ this.partName = _data["partName"];
30629
+ this.partNumber = _data["partNumber"];
30630
+ this.quantity = _data["quantity"];
30493
30631
  this.material = _data["material"];
30494
- this.comment = _data["comment"];
30495
30632
  this.covered = _data["covered"];
30633
+ if (Array.isArray(_data["items"])) {
30634
+ this.items = [];
30635
+ for (let item of _data["items"])
30636
+ this.items.push(BookingItemDto.fromJS(item));
30637
+ }
30638
+ }
30639
+ }
30640
+ static fromJS(data) {
30641
+ data = typeof data === 'object' ? data : {};
30642
+ let result = new BookingParcelDto();
30643
+ result.init(data);
30644
+ return result;
30645
+ }
30646
+ toJSON(data) {
30647
+ data = typeof data === 'object' ? data : {};
30648
+ data["parcelId"] = this.parcelId;
30649
+ data["parcelKind"] = this.parcelKind;
30650
+ data["partName"] = this.partName;
30651
+ data["partNumber"] = this.partNumber;
30652
+ data["quantity"] = this.quantity;
30653
+ data["material"] = this.material;
30654
+ data["covered"] = this.covered;
30655
+ if (Array.isArray(this.items)) {
30656
+ data["items"] = [];
30657
+ for (let item of this.items)
30658
+ data["items"].push(item.toJSON());
30659
+ }
30660
+ return data;
30661
+ }
30662
+ }
30663
+ export class BookingItemDto {
30664
+ constructor(data) {
30665
+ if (data) {
30666
+ for (var property in data) {
30667
+ if (data.hasOwnProperty(property))
30668
+ this[property] = data[property];
30669
+ }
30670
+ }
30671
+ }
30672
+ init(_data) {
30673
+ if (_data) {
30674
+ this.trackingId = _data["trackingId"];
30675
+ this.palletNumber = _data["palletNumber"];
30676
+ this.comment = _data["comment"];
30496
30677
  this.toLocationOverride = _data["toLocationOverride"] ? LocationDto.fromJS(_data["toLocationOverride"]) : undefined;
30497
30678
  }
30498
30679
  }
@@ -30506,11 +30687,7 @@ export class BookingItemDto {
30506
30687
  data = typeof data === 'object' ? data : {};
30507
30688
  data["trackingId"] = this.trackingId;
30508
30689
  data["palletNumber"] = this.palletNumber;
30509
- data["parcelId"] = this.parcelId;
30510
- data["parcelKind"] = this.parcelKind;
30511
- data["material"] = this.material;
30512
30690
  data["comment"] = this.comment;
30513
- data["covered"] = this.covered;
30514
30691
  data["toLocationOverride"] = this.toLocationOverride ? this.toLocationOverride.toJSON() : undefined;
30515
30692
  return data;
30516
30693
  }
@@ -31092,7 +31269,7 @@ export class SearchParcelItemDto {
31092
31269
  return data;
31093
31270
  }
31094
31271
  }
31095
- export class TrackingHistoryListDto {
31272
+ export class TrackingParcelListDto {
31096
31273
  constructor(data) {
31097
31274
  if (data) {
31098
31275
  for (var property in data) {
@@ -31109,14 +31286,14 @@ export class TrackingHistoryListDto {
31109
31286
  if (Array.isArray(_data["results"])) {
31110
31287
  this.results = [];
31111
31288
  for (let item of _data["results"])
31112
- this.results.push(TrackingHistoryDto.fromJS(item));
31289
+ this.results.push(TrackingParcelDto.fromJS(item));
31113
31290
  }
31114
31291
  this.continuationToken = _data["continuationToken"];
31115
31292
  }
31116
31293
  }
31117
31294
  static fromJS(data) {
31118
31295
  data = typeof data === 'object' ? data : {};
31119
- let result = new TrackingHistoryListDto();
31296
+ let result = new TrackingParcelListDto();
31120
31297
  result.init(data);
31121
31298
  return result;
31122
31299
  }
@@ -31131,6 +31308,57 @@ export class TrackingHistoryListDto {
31131
31308
  return data;
31132
31309
  }
31133
31310
  }
31311
+ export class TrackingParcelDto {
31312
+ constructor(data) {
31313
+ if (data) {
31314
+ for (var property in data) {
31315
+ if (data.hasOwnProperty(property))
31316
+ this[property] = data[property];
31317
+ }
31318
+ }
31319
+ if (!data) {
31320
+ this.items = [];
31321
+ }
31322
+ }
31323
+ init(_data) {
31324
+ if (_data) {
31325
+ this.parcelId = _data["parcelId"];
31326
+ this.parcelKind = _data["parcelKind"];
31327
+ this.partName = _data["partName"];
31328
+ this.partNumber = _data["partNumber"];
31329
+ this.quantity = _data["quantity"];
31330
+ this.material = _data["material"];
31331
+ this.covered = _data["covered"];
31332
+ if (Array.isArray(_data["items"])) {
31333
+ this.items = [];
31334
+ for (let item of _data["items"])
31335
+ this.items.push(TrackingHistoryDto.fromJS(item));
31336
+ }
31337
+ }
31338
+ }
31339
+ static fromJS(data) {
31340
+ data = typeof data === 'object' ? data : {};
31341
+ let result = new TrackingParcelDto();
31342
+ result.init(data);
31343
+ return result;
31344
+ }
31345
+ toJSON(data) {
31346
+ data = typeof data === 'object' ? data : {};
31347
+ data["parcelId"] = this.parcelId;
31348
+ data["parcelKind"] = this.parcelKind;
31349
+ data["partName"] = this.partName;
31350
+ data["partNumber"] = this.partNumber;
31351
+ data["quantity"] = this.quantity;
31352
+ data["material"] = this.material;
31353
+ data["covered"] = this.covered;
31354
+ if (Array.isArray(this.items)) {
31355
+ data["items"] = [];
31356
+ for (let item of this.items)
31357
+ data["items"].push(item.toJSON());
31358
+ }
31359
+ return data;
31360
+ }
31361
+ }
31134
31362
  export class TrackingHistoryDto {
31135
31363
  constructor(data) {
31136
31364
  if (data) {
@@ -31147,16 +31375,13 @@ export class TrackingHistoryDto {
31147
31375
  if (_data) {
31148
31376
  this.trackingId = _data["trackingId"];
31149
31377
  this.palletNumber = _data["palletNumber"];
31150
- this.parcelKind = _data["parcelKind"];
31151
- this.parcelId = _data["parcelId"];
31378
+ this.activeBooking = _data["activeBooking"];
31152
31379
  this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : undefined;
31153
31380
  if (Array.isArray(_data["trackingEvents"])) {
31154
31381
  this.trackingEvents = [];
31155
31382
  for (let item of _data["trackingEvents"])
31156
31383
  this.trackingEvents.push(TrackingEventDto.fromJS(item));
31157
31384
  }
31158
- this.material = _data["material"];
31159
- this.activeBooking = _data["activeBooking"];
31160
31385
  }
31161
31386
  }
31162
31387
  static fromJS(data) {
@@ -31169,16 +31394,13 @@ export class TrackingHistoryDto {
31169
31394
  data = typeof data === 'object' ? data : {};
31170
31395
  data["trackingId"] = this.trackingId;
31171
31396
  data["palletNumber"] = this.palletNumber;
31172
- data["parcelKind"] = this.parcelKind;
31173
- data["parcelId"] = this.parcelId;
31397
+ data["activeBooking"] = this.activeBooking;
31174
31398
  data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : undefined;
31175
31399
  if (Array.isArray(this.trackingEvents)) {
31176
31400
  data["trackingEvents"] = [];
31177
31401
  for (let item of this.trackingEvents)
31178
31402
  data["trackingEvents"].push(item.toJSON());
31179
31403
  }
31180
- data["material"] = this.material;
31181
- data["activeBooking"] = this.activeBooking;
31182
31404
  return data;
31183
31405
  }
31184
31406
  }
@@ -31302,50 +31524,7 @@ export class TrackingRequestListDto {
31302
31524
  return data;
31303
31525
  }
31304
31526
  }
31305
- export class TrackingParcelDto {
31306
- constructor(data) {
31307
- if (data) {
31308
- for (var property in data) {
31309
- if (data.hasOwnProperty(property))
31310
- this[property] = data[property];
31311
- }
31312
- }
31313
- if (!data) {
31314
- this.trackingHistory = [];
31315
- }
31316
- }
31317
- init(_data) {
31318
- if (_data) {
31319
- this.parcelId = _data["parcelId"];
31320
- this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined;
31321
- if (Array.isArray(_data["trackingHistory"])) {
31322
- this.trackingHistory = [];
31323
- for (let item of _data["trackingHistory"])
31324
- this.trackingHistory.push(TrackingHistoryDto.fromJS(item));
31325
- }
31326
- this.covered = _data["covered"];
31327
- }
31328
- }
31329
- static fromJS(data) {
31330
- data = typeof data === 'object' ? data : {};
31331
- let result = new TrackingParcelDto();
31332
- result.init(data);
31333
- return result;
31334
- }
31335
- toJSON(data) {
31336
- data = typeof data === 'object' ? data : {};
31337
- data["parcelId"] = this.parcelId;
31338
- data["part"] = this.part ? this.part.toJSON() : undefined;
31339
- if (Array.isArray(this.trackingHistory)) {
31340
- data["trackingHistory"] = [];
31341
- for (let item of this.trackingHistory)
31342
- data["trackingHistory"].push(item.toJSON());
31343
- }
31344
- data["covered"] = this.covered;
31345
- return data;
31346
- }
31347
- }
31348
- export class TrackingParcelListDto {
31527
+ export class TrackingParcelRequestListDto {
31349
31528
  constructor(data) {
31350
31529
  if (data) {
31351
31530
  for (var property in data) {
@@ -31369,7 +31548,7 @@ export class TrackingParcelListDto {
31369
31548
  }
31370
31549
  static fromJS(data) {
31371
31550
  data = typeof data === 'object' ? data : {};
31372
- let result = new TrackingParcelListDto();
31551
+ let result = new TrackingParcelRequestListDto();
31373
31552
  result.init(data);
31374
31553
  return result;
31375
31554
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240823.0.10114",
3
+ "version": "20240828.0.10156",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",