kcommons 6.4.8 → 6.4.10

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/build/index.d.ts CHANGED
@@ -43,6 +43,7 @@ export * from "./typings/extraCoreRelatedQuestionsForCompany.typings";
43
43
  export * from "./typings/companySepcificVendorItems.typings";
44
44
  export * from "./typings/poAsnJunctionItems.typings";
45
45
  export * from "./typings/contactPeople.typings";
46
+ export * from "./typings/companyItemVendorVersion.typings";
46
47
  export * from "./constants/permission.constants";
47
48
  export * from "./constants/entityTypes.constants";
48
49
  export * from "./constants/documentStatus.typings";
package/build/index.js CHANGED
@@ -60,6 +60,7 @@ __exportStar(require("./typings/extraCoreRelatedQuestionsForCompany.typings"), e
60
60
  __exportStar(require("./typings/companySepcificVendorItems.typings"), exports);
61
61
  __exportStar(require("./typings/poAsnJunctionItems.typings"), exports);
62
62
  __exportStar(require("./typings/contactPeople.typings"), exports);
63
+ __exportStar(require("./typings/companyItemVendorVersion.typings"), exports);
63
64
  // Constants
64
65
  __exportStar(require("./constants/permission.constants"), exports);
65
66
  __exportStar(require("./constants/entityTypes.constants"), exports);
@@ -32,6 +32,7 @@ import { INestedCompanySpecificVendorItemVersion } from "./companySepcificVendor
32
32
  import { IPaginationFilters } from "./common/paginationFilters.typings";
33
33
  import { INestedPOASNItemJunction } from "./poAsnJunctionItems.typings";
34
34
  import { INestedContactPeople } from "./contactPeople.typings";
35
+ import { INestedCompanyItemVendorVersion } from "./companyItemVendorVersion.typings";
35
36
  export declare enum PRICING_PLANS {
36
37
  BASIC = "BASIC",
37
38
  GROWTH = "GROWTH",
@@ -149,6 +150,7 @@ export interface ICompany extends IAddress {
149
150
  company_specific_vendor_items: INestedCompanySpecificVendorItemVersion[] | null;
150
151
  po_asn_items_junction: INestedPOASNItemJunction[] | null;
151
152
  company_contact_people: INestedContactPeople[] | null;
153
+ company_item_vendor_versions: INestedCompanyItemVendorVersion[] | null;
152
154
  }
153
- export interface INestedCompany extends Omit<ICompany, "associated_purchase_locations" | "associated_vendors" | "associated_permissions" | "associated_roles" | "approval_configs" | "subdepartments" | "subcategories" | "categories" | "items" | "offices" | "stores" | "employees" | "departments" | "vendor_groups" | "company_indents" | "indent_items" | "company_mis" | "mi_items" | "company_prs" | "pr_items" | "company_rfqs" | "company_quotes" | "entity_approval_chain_entries" | "company_negotiations" | "company_pos" | "company_grns" | "company_grns_items" | "company_mrns" | "company_mrns_items" | "company_boms" | "company_bom_items" | "company_comparatives" | "company_comparative_items" | "company_notifications" | "company_proxy" | "extra_questions" | "extra_question_ans" | "extra_core_related_questions" | "company_specific_vendor_items" | "po_asn_items_junction" | "company_contact_people"> {
155
+ export interface INestedCompany extends Omit<ICompany, "associated_purchase_locations" | "associated_vendors" | "associated_permissions" | "associated_roles" | "approval_configs" | "subdepartments" | "subcategories" | "categories" | "items" | "offices" | "stores" | "employees" | "departments" | "vendor_groups" | "company_indents" | "indent_items" | "company_mis" | "mi_items" | "company_prs" | "pr_items" | "company_rfqs" | "company_quotes" | "entity_approval_chain_entries" | "company_negotiations" | "company_pos" | "company_grns" | "company_grns_items" | "company_mrns" | "company_mrns_items" | "company_boms" | "company_bom_items" | "company_comparatives" | "company_comparative_items" | "company_notifications" | "company_proxy" | "extra_questions" | "extra_question_ans" | "extra_core_related_questions" | "company_specific_vendor_items" | "po_asn_items_junction" | "company_contact_people" | "company_item_vendor_versions"> {
154
156
  }
@@ -0,0 +1,25 @@
1
+ import { INestedCompany } from "./company.typings";
2
+ import { INestedCompanyVendors } from "./companyVendors.typings";
3
+ import { INestedItem } from "./item.typings";
4
+ export interface ICompanyItemVendorVersionFilters {
5
+ item_id?: string | null;
6
+ company_vendor_id?: string | null;
7
+ }
8
+ export interface ICompanyItemVendorVersion {
9
+ id: string;
10
+ company_id: string;
11
+ item_id: string;
12
+ company_vendor_id: string;
13
+ item_images: string[];
14
+ rate: number | null;
15
+ min_order_qty: number | null;
16
+ is_deleted: boolean;
17
+ deleted_at: string | null;
18
+ created_at: string;
19
+ updated_at: string;
20
+ company: INestedCompany | null;
21
+ item: INestedItem | null;
22
+ company_vendor: INestedCompanyVendors | null;
23
+ }
24
+ export interface INestedCompanyItemVendorVersion extends Omit<ICompanyItemVendorVersion, "company" | "item" | "company_vendor"> {
25
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,6 @@
1
1
  import { IAddress } from "./common/address.typings";
2
2
  import { INestedCompany } from "./company.typings";
3
+ import { INestedCompanyItemVendorVersion } from "./companyItemVendorVersion.typings";
3
4
  import { INestedItem } from "./item.typings";
4
5
  import { INestedItemCategory } from "./itemCategory.typings";
5
6
  import { INestedNegotiation } from "./negotiation.typings";
@@ -60,8 +61,9 @@ export interface ICompanyVendor {
60
61
  selected_item_categories: INestedItemCategory[] | null;
61
62
  selected_items: INestedItem[] | null;
62
63
  company_allowed_item_categories: INestedItemCategory[] | null;
64
+ company_item_verndor_versions: INestedCompanyItemVendorVersion[] | null;
63
65
  }
64
- export interface INestedCompanyVendors extends Omit<ICompanyVendor, "company" | "vendor" | "approved_by" | "rfqs_sent" | "vendor_groups" | "negotiations" | "pos" | "selected_item_categories" | "selected_items" | "company_allowed_item_categories"> {
66
+ export interface INestedCompanyVendors extends Omit<ICompanyVendor, "company" | "vendor" | "approved_by" | "rfqs_sent" | "vendor_groups" | "negotiations" | "pos" | "selected_item_categories" | "selected_items" | "company_allowed_item_categories" | "company_item_verndor_versions"> {
65
67
  }
66
68
  export interface IICheckCompanyVendorStatusRes {
67
69
  vendor: IVendor;
@@ -1,5 +1,6 @@
1
1
  import { INestedBOMItem } from "./bom.typings";
2
2
  import { INestedCompany } from "./company.typings";
3
+ import { INestedCompanyItemVendorVersion } from "./companyItemVendorVersion.typings";
3
4
  import { INestedCompanyVendors } from "./companyVendors.typings";
4
5
  import { INestedComparativeItem } from "./comparative.typings";
5
6
  import { INestedGRNItem } from "./grn.typings";
@@ -96,8 +97,9 @@ export interface IItem {
96
97
  least_purchase_vendor?: INestedCompanyVendors | null | null;
97
98
  dealing_company_vendors?: INestedCompanyVendors[] | null[] | null;
98
99
  used_in_po_asn_item_junction?: INestedPOASNItemJunction | null[] | null;
100
+ vendor_item_versions: INestedCompanyItemVendorVersion[] | null;
99
101
  }
100
- export interface INestedItem extends Omit<IItem, "inventory_entries" | "approved_by" | "item_category" | "item_subcategory" | "company" | "used_in_indent_items" | "used_in_mi_items" | "used_in_pr_items" | "used_in_quote_items" | "used_in_grn_items" | "used_in_mrn_items" | "used_in_bom_items" | "used_in_comparative_items" | "previous_purchase_vendor" | "least_purchase_vendor" | "dealing_company_vendors" | "used_in_po_asn_item_junction"> {
102
+ export interface INestedItem extends Omit<IItem, "inventory_entries" | "approved_by" | "item_category" | "item_subcategory" | "company" | "used_in_indent_items" | "used_in_mi_items" | "used_in_pr_items" | "used_in_quote_items" | "used_in_grn_items" | "used_in_mrn_items" | "used_in_bom_items" | "used_in_comparative_items" | "previous_purchase_vendor" | "least_purchase_vendor" | "dealing_company_vendors" | "used_in_po_asn_item_junction" | "vendor_item_versions"> {
101
103
  }
102
104
  export declare const ITEM_CLASSIFICATION: {
103
105
  DIRECT: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "6.4.8",
3
+ "version": "6.4.10",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",