@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.
- package/dist/src/jobs/jobs.d.ts +3 -1
- package/dist/src/jobs/jobs.js +5 -1
- package/package.json +1 -1
package/dist/src/jobs/jobs.d.ts
CHANGED
|
@@ -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
|
};
|
package/dist/src/jobs/jobs.js
CHANGED
|
@@ -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
|
-
...
|
|
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
|
}
|