kcommons 6.3.1 → 6.3.3

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.
@@ -39,17 +39,16 @@ export interface IItem {
39
39
  item_type: string;
40
40
  company_id: string;
41
41
  name: string;
42
+ hsn_code?: string;
43
+ item_category_id?: string;
44
+ approved_by_id?: string;
45
+ item_subcategory_id?: string;
46
+ item_classification?: string | null;
42
47
  item_tax_preference: string;
43
48
  code_sku: string;
44
49
  uom: string;
45
- is_editable: boolean;
46
- hsn_code: string | null;
47
- item_category_id: string | null;
48
- approved_by_id: string | null;
49
- item_subcategory_id: string | null;
50
- item_classification: string | null;
51
50
  tolerence: string | null;
52
- gst_percent: number | null;
51
+ gst_percent?: number;
53
52
  attachment_link: string | null;
54
53
  least_purchase_price: number | null;
55
54
  least_purchase_company_vendor_id: string | null;
@@ -58,34 +57,33 @@ export interface IItem {
58
57
  previous_purchase_company_vendor_id: string | null;
59
58
  previous_purchase_date: string | null;
60
59
  item_description: string | null;
61
- primary_item_image: string | null;
62
- item_images: string[];
63
- sac_code: string | null;
64
- brand: string | null;
60
+ item_image?: string;
61
+ sac_code?: string;
62
+ brand?: string;
65
63
  is_enabled: boolean;
66
- is_deleted: boolean | null;
67
- is_approved: boolean | null;
64
+ is_deleted?: boolean;
65
+ is_approved?: boolean;
68
66
  created_at: string;
69
67
  updated_at: string;
70
- deleted_at: string | null;
71
- approved_at: string | null;
72
- inventory_entries: INestedInventoryItem[] | null;
73
- approved_by: INestedUser | null;
74
- item_category: INestedItemCategory | null;
75
- item_subcategory: INestedItemSubcategory | null;
76
- company: INestedCompany | null;
77
- used_in_indent_items: INestedIndentItem[] | null;
78
- used_in_mi_items: INestedMIItem[] | null;
79
- used_in_pr_items: INestedPrItem[] | null;
80
- used_in_quote_items: INestedQuoteItems[] | null;
81
- used_in_grn_items: INestedGRNItem[] | null;
82
- used_in_mrn_items: INestedMRNItem[] | null;
83
- used_in_bom_items: INestedBOMItem[] | null;
84
- used_in_comparative_items: INestedComparativeItem[] | null;
85
- previous_purchase_vendor: INestedCompanyVendors | null;
86
- least_purchase_vendor: INestedCompanyVendors | null;
87
- dealing_company_vendors: INestedCompanyVendors[] | null;
88
- used_in_po_asn_item_junction: INestedPOASNItemJunction[] | null;
68
+ deleted_at?: string;
69
+ approved_at?: string;
70
+ inventory_entries?: INestedInventoryItem[] | null;
71
+ approved_by?: INestedUser | null;
72
+ item_category?: INestedItemCategory | null;
73
+ item_subcategory?: INestedItemSubcategory | null;
74
+ company?: INestedCompany | null;
75
+ used_in_indent_items?: INestedIndentItem[] | null;
76
+ used_in_mi_items?: INestedMIItem[] | null;
77
+ used_in_pr_items?: INestedPrItem[] | null;
78
+ used_in_quote_items?: INestedQuoteItems[] | null;
79
+ used_in_grn_items?: INestedGRNItem[] | null;
80
+ used_in_mrn_items?: INestedMRNItem[] | null;
81
+ used_in_bom_items?: INestedBOMItem[] | null;
82
+ used_in_comparative_items?: INestedComparativeItem[] | null;
83
+ previous_purchase_vendor?: INestedCompanyVendors | null;
84
+ least_purchase_vendor?: INestedCompanyVendors | null;
85
+ dealing_company_vendors?: INestedCompanyVendors[] | null;
86
+ used_in_po_asn_item_junction?: INestedPOASNItemJunction[] | null;
89
87
  }
90
88
  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"> {
91
89
  }
@@ -87,4 +87,8 @@ exports.UOMS = [
87
87
  { full_form: "UNITS", short_form: "UNT" },
88
88
  { full_form: "US GALLONS", short_form: "UGS" },
89
89
  { full_form: "YARDS", short_form: "YDS" },
90
+ { full_form: "PAIR", short_form: "PAA" },
91
+ { full_form: "EACH", short_form: "EA" },
92
+ { full_form: "DOZENS", short_form: "DZ" },
93
+ { full_form: "SETS", short_form: "SET" },
90
94
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "6.3.1",
3
+ "version": "6.3.3",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",