@csmart/ngc-smart-core 1.13.8 → 1.13.9

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.
@@ -634,22 +634,20 @@ class SmartStaffOffenderOptionsService {
634
634
  }));
635
635
  }
636
636
  getOffenderListOptions() {
637
- const queryName = `findOffenderListOptions(input:{
637
+ const queryString = `{findOffenderListOptions(input:{
638
638
  where:{
639
639
  deactivatedDate: null
640
640
  }
641
- })`;
642
- const queryString = `{
643
- ${queryName} {
644
- data {
645
- offenderListOptionId
641
+ }){
642
+ data{
643
+ offenderListOptionId
646
644
  name
647
645
  serviceApiFieldName
648
- }
649
- message
650
646
  }
651
- }`;
652
- return this.getGraphQueryData(queryName, queryString);
647
+ } }`;
648
+ return this.http.post(this.serviceApiUrl, { query: queryString }).pipe(map(({ data }) => {
649
+ return data['findOffenderListOptions'];
650
+ }));
653
651
  }
654
652
  getStaffOffenderListOptions(staffId) {
655
653
  const queryString = `{findStaffOffenderListOptions(input:{