@fabriktor/fx 0.0.90 → 0.0.91

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.
@@ -32,7 +32,9 @@ export type SearchLocationsOptions = OwnerSearchOptions & {
32
32
  export type SearchAccessibleLocationsOptions = SearchOptions & {
33
33
  is_archived?: boolean;
34
34
  };
35
- export type SearchJobProgramsOptions = OwnerSearchOptions;
35
+ export type SearchJobProgramsOptions = OwnerSearchOptions & {
36
+ location_id?: string;
37
+ };
36
38
  export type SearchJobsOptions = OwnerSearchOptions & {
37
39
  location_id?: string;
38
40
  };
@@ -168,8 +168,12 @@ export class JobsFX {
168
168
  };
169
169
  }
170
170
  async searchJobPrograms(opts) {
171
+ const { location_id, ...searchOpts } = opts;
171
172
  return await runOwnerSearch({
172
- ...opts,
173
+ ...searchOpts,
174
+ query: location_id === undefined
175
+ ? undefined
176
+ : queryParams({ job_location_id: location_id }),
173
177
  search: (searchOpts) => this.jobs.searchManyJobPrograms(searchOpts),
174
178
  });
175
179
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabriktor/fx",
3
- "version": "0.0.90",
3
+ "version": "0.0.91",
4
4
  "description": "![Fabriktor Logo](./img/fabriktor-character.gif)",
5
5
  "type": "module",
6
6
  "exports": {