@sunbird-cb/cbp-ai 0.1.53 → 0.1.55

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.
@@ -1307,7 +1307,7 @@ class ApprovalRequestFormComponent {
1307
1307
  }
1308
1308
  };
1309
1309
  if (searchText?.length) {
1310
- requestBody["query"] = searchText;
1310
+ requestBody['request']["query"] = searchText;
1311
1311
  // when searching, start from first page
1312
1312
  requestBody.pageNumber = 0;
1313
1313
  // allow larger page for search if needed
@@ -1974,7 +1974,7 @@ class EditCbpPlanComponent {
1974
1974
  pageSize: reqLimit,
1975
1975
  };
1976
1976
  if (searchText?.length) {
1977
- requestBody['searchString'] = searchText;
1977
+ requestBody['query'] = searchText;
1978
1978
  // when searching, start from first page
1979
1979
  requestBody.pageNumber = 0;
1980
1980
  // allow larger page for search if needed
@@ -7059,7 +7059,7 @@ class UpdateDesignationHierarchyComponent {
7059
7059
  sort_order: d.sort_order
7060
7060
  }))
7061
7061
  };
7062
- if (this.department_id) {
7062
+ if (typeof this.department_id === 'string' && this.department_id) {
7063
7063
  payload['department_id'] = this.department_id;
7064
7064
  }
7065
7065
  if (this.state_center_id) {
@@ -12341,7 +12341,7 @@ class AddDesignationComponent {
12341
12341
  pageSize: reqLimit,
12342
12342
  };
12343
12343
  if (searchText?.length) {
12344
- requestBody['searchString'] = searchText;
12344
+ requestBody['query'] = searchText;
12345
12345
  // when searching, start from first page
12346
12346
  requestBody.pageNumber = 0;
12347
12347
  // allow larger page for search if needed
@@ -12749,7 +12749,7 @@ class DesignationApprovalRequestFormComponent {
12749
12749
  }
12750
12750
  };
12751
12751
  if (searchText?.length) {
12752
- requestBody['searchString'] = searchText;
12752
+ requestBody['request']['query'] = searchText;
12753
12753
  // when searching, start from first page
12754
12754
  requestBody.pageNumber = 0;
12755
12755
  // allow larger page for search if needed