sodas-sdk 1.4.2 → 1.4.3

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.
@@ -2631,17 +2631,6 @@ class DatasetSeries extends _dcatResource__WEBPACK_IMPORTED_MODULE_5__["default"
2631
2631
  yield _super.deleteDBRecord.call(this);
2632
2632
  });
2633
2633
  }
2634
- /**
2635
- * Creates a dataset series DB record in an interoperated context
2636
- * (e.g. together with related Dataset instances or other resources).
2637
- *
2638
- * The implementation will be added later.
2639
- */
2640
- createInteroperatedDBRecord() {
2641
- return __awaiter(this, void 0, void 0, function* () {
2642
- // TODO: Implement interoperated create logic.
2643
- });
2644
- }
2645
2634
  appendSeriesMember(dataset) {
2646
2635
  if (!this.SeriesMemberIDs) {
2647
2636
  this.SeriesMemberIDs = [];
@@ -2671,6 +2660,18 @@ class DatasetSeries extends _dcatResource__WEBPACK_IMPORTED_MODULE_5__["default"
2671
2660
  this.SeriesMemberIDs[index1] = this.SeriesMemberIDs[index2];
2672
2661
  this.SeriesMemberIDs[index2] = temp;
2673
2662
  }
2663
+ removeSeriesMember(index) {
2664
+ if (!this.SeriesMemberIDs || this.SeriesMemberIDs.length === 0) {
2665
+ throw new _core_error__WEBPACK_IMPORTED_MODULE_0__.NotInitializedError("SeriesMemberIDs");
2666
+ }
2667
+ if (index < 0 || index >= this.SeriesMemberIDs.length) {
2668
+ throw new _core_error__WEBPACK_IMPORTED_MODULE_0__.IndexOutOfBoundsError(index);
2669
+ }
2670
+ this.SeriesMemberIDs.splice(index, 1);
2671
+ if (this.SeriesMembers && index < this.SeriesMembers.length) {
2672
+ this.SeriesMembers.splice(index, 1);
2673
+ }
2674
+ }
2674
2675
  get datasetSeriesID() {
2675
2676
  return this.DatasetSeriesID;
2676
2677
  }