kcommons 18.12.6 → 18.12.8

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.
@@ -1,5 +1,5 @@
1
1
  import { ISTD_VIEW_TABS } from "../typings/company/istd/istd.typings";
2
- import { COMPANY_VENDOR_STATUS } from "../typings/companyVendors.typings";
2
+ import { COMPANY_VENDOR_LIST_TYPE, COMPANY_VENDOR_STATUS } from "../typings/companyVendors.typings";
3
3
  import { COMPARATIVE_TABS } from "../typings/comparative.typings";
4
4
  import { GRN_TABS } from "../typings/grn.typings";
5
5
  import { INDENT_TABS } from "../typings/indent.typings";
@@ -781,7 +781,10 @@ export declare const companyNavConfig: {
781
781
  };
782
782
  companyVendors: {
783
783
  list: {
784
- route: (tab?: COMPANY_VENDOR_STATUS) => string;
784
+ route: ({ tab, status_array, }?: {
785
+ tab?: COMPANY_VENDOR_LIST_TYPE;
786
+ status_array?: COMPANY_VENDOR_STATUS[];
787
+ }) => string;
785
788
  id: COMPANY_ROUTE_IDS;
786
789
  };
787
790
  view: {
@@ -805,7 +805,9 @@ exports.companyNavConfig = {
805
805
  },
806
806
  companyVendors: {
807
807
  list: {
808
- route: (tab) => `/vendors/vendor-list?route_id=${COMPANY_ROUTE_IDS.CMP_VDR_LST}${tab ? `&tab=${tab}` : ""}`,
808
+ route: ({ tab, status_array, } = {}) => `/vendors/vendor-list?${tab ? `&tab=${tab}` : ""}${(status_array === null || status_array === void 0 ? void 0 : status_array.length)
809
+ ? `&status_array=${status_array.join(",")}`
810
+ : ""}`,
809
811
  id: COMPANY_ROUTE_IDS.CMP_VDR_LST,
810
812
  },
811
813
  view: {
@@ -21,6 +21,7 @@ export interface ISupplierInvoiceFiltersForVendor extends Partial<Pick<ISupplier
21
21
  export interface ISupplierInvoiceFiltersWithPaginationForVendor extends ISupplierInvoiceFiltersForVendor, IPaginationFilters {
22
22
  }
23
23
  export interface ISupplierInvoiceFiltersForCompany extends Partial<Pick<ISupplierInvoice, "company_vendor_id">>, ISupplierInvoiceFiltersBase {
24
+ for_creating_gi?: boolean;
24
25
  }
25
26
  export interface ISupplierInvoiceFiltersWithPaginationForCompany extends ISupplierInvoiceFiltersForCompany, IPaginationFilters {
26
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "18.12.6",
3
+ "version": "18.12.8",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",