kcommons 4.4.4 → 4.5.0

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,3 +1,39 @@
1
+ import { FormTypes } from "../constants/form.constants";
2
+ export interface IItem {
3
+ id: string;
4
+ item_type: string;
5
+ company_id: string;
6
+ name: string;
7
+ hsn_code?: string;
8
+ item_category_id?: string;
9
+ created_by: string;
10
+ approved_by_id?: string;
11
+ item_subcategory_id?: string;
12
+ item_classification: string;
13
+ item_tax_preference: string;
14
+ code_sku: string;
15
+ uom: string;
16
+ gst_percent?: number;
17
+ previous_price?: number;
18
+ item_description: string;
19
+ item_image?: string;
20
+ sac_code?: string;
21
+ is_enabled: boolean;
22
+ is_deleted?: boolean;
23
+ is_approved?: boolean;
24
+ created_at: string;
25
+ updated_at: string;
26
+ deleted_at?: string;
27
+ approved_at?: string;
28
+ }
29
+ export interface INestedItem extends IItem {
30
+ }
31
+ export interface IAddItemInputs extends Omit<IItem, "id" | "created_by" | "created_at" | "is_deleted" | "deleted_at" | "updated_at" | "is_approved" | "approved_at" | "approved_by_id"> {
32
+ type: FormTypes.CREATE;
33
+ }
34
+ export interface IUpdateItemInputs extends Partial<Omit<IAddItemInputs, "type">> {
35
+ type: FormTypes.EDIT;
36
+ }
1
37
  export declare const ITEM_CLASSIFICATION: {
2
38
  DIRECT: string;
3
39
  INDIRECT: string;
@@ -1,5 +1,6 @@
1
1
  import { INestedCompany } from "./company.typings";
2
- import { INestedRFQ } from "./rfq.typings";
2
+ import { INestedItem } from "./item.typings";
3
+ import { INestedRFQ, INestedRFQItem } from "./rfq.typings";
3
4
  import { INestedVendor } from "./vendor.typings";
4
5
  export declare enum QUOTE_STATUS {
5
6
  PENDING = "PENDING",
@@ -44,6 +45,23 @@ export interface IQuoteInputs extends Omit<IQuote, "id" | "quoted_at" | "is_dele
44
45
  }
45
46
  export interface IQuoteItems {
46
47
  id: string;
48
+ quote_id: string;
49
+ item_id: string;
50
+ rfq_item_id: string;
51
+ requested_quantity: number;
52
+ gst?: number | null;
53
+ per_unit_rate?: number | null;
54
+ quoted_quantity?: number | null;
55
+ discount_type?: string | null;
56
+ discount_value?: number | null;
57
+ remark?: string | null;
58
+ is_deleted?: boolean | null;
59
+ deleted_at?: string | null;
60
+ created_at?: string | null;
61
+ updated_at?: string | null;
62
+ quote?: INestedQuote | null;
63
+ item?: INestedItem | null;
64
+ rfq_item?: INestedRFQItem | null;
47
65
  }
48
66
  export interface INestedQuoteItems {
49
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "4.4.4",
3
+ "version": "4.5.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",