@fabriktor/fx 0.0.95 → 0.0.96

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.
@@ -26,7 +26,7 @@ type VendorInvoiceInsertOptions = Parameters<BillableOperator["insertOneVendorIn
26
26
  type VendorInvoiceReplaceOptions = Parameters<BillableOperator["replaceOneVendorInvoice"]>[0];
27
27
  type WarehouseInsertOptions = Parameters<BillableOperator["insertOneWarehouse"]>[0];
28
28
  type WarehouseReplaceOptions = Parameters<BillableOperator["replaceOneWarehouse"]>[0];
29
- export type SearchBillsOptions = OwnerSearchOptions;
29
+ export type SearchBillsOptions = OwnerSearchOptions & Partial<Pick<Bill, "is_estimate">>;
30
30
  export type SearchBillsPage = SearchPage<Bill>;
31
31
  export type CreateBillableFolderOptions = BillableFolderInsertOptions;
32
32
  export type ReplaceBillableFolderOptions = BillableFolderReplaceOptions;
@@ -109,6 +109,7 @@ export class BillableFX {
109
109
  async searchBills(opts) {
110
110
  return await runOwnerSearch({
111
111
  ...opts,
112
+ query: opts.is_estimate === undefined ? undefined : { is_estimate: opts.is_estimate },
112
113
  search: (searchOpts) => this.billable.searchManyBills(searchOpts),
113
114
  });
114
115
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabriktor/fx",
3
- "version": "0.0.95",
3
+ "version": "0.0.96",
4
4
  "description": "![Fabriktor Logo](./img/fabriktor-character.gif)",
5
5
  "type": "module",
6
6
  "exports": {
@@ -17,8 +17,8 @@
17
17
  "typescript": "^6.0.3"
18
18
  },
19
19
  "dependencies": {
20
- "@fabriktor/client": "0.0.76",
20
+ "@fabriktor/client": "0.0.77",
21
21
  "@fabriktor/fx": "0.0.94",
22
- "@fabriktor/schema": "0.0.59"
22
+ "@fabriktor/schema": "0.0.60"
23
23
  }
24
24
  }