@veloceapps/sdk 11.0.0-81 → 11.0.0-82

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.
@@ -594,7 +594,12 @@ class SalesTransactionService {
594
594
  this.state$ = this.stateSubj$.asObservable().pipe(filter(isDefined));
595
595
  }
596
596
  init(headerId, params) {
597
- return this.salesTransactionApiService.getState(headerId, params).pipe(tap(res => this.stateSubj$.next(res)));
597
+ return this.salesTransactionApiService.query(headerId, params).pipe(tap(res => {
598
+ if (!res.salesTransaction) {
599
+ throw new Error('SalesTransaction is not defined. Please check Query Orchestration.');
600
+ }
601
+ this.stateSubj$.next(res);
602
+ }));
598
603
  }
599
604
  finalizeInit() {
600
605
  this.isInitializedSubj$.next(true);