kcommons 4.4.3 → 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 {
|
|
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
|
}
|
|
@@ -48,7 +48,5 @@ export interface IUpdateVendorInputs extends Partial<Omit<IVendor, "type">> {
|
|
|
48
48
|
}
|
|
49
49
|
export declare enum VENDOR_INCLUDE {
|
|
50
50
|
quotes = "quotes",
|
|
51
|
-
|
|
52
|
-
associated_companies = "associated_companies",
|
|
53
|
-
rfqs = "rfqs"
|
|
51
|
+
associated_companies = "associated_companies"
|
|
54
52
|
}
|
|
@@ -4,7 +4,5 @@ exports.VENDOR_INCLUDE = void 0;
|
|
|
4
4
|
var VENDOR_INCLUDE;
|
|
5
5
|
(function (VENDOR_INCLUDE) {
|
|
6
6
|
VENDOR_INCLUDE["quotes"] = "quotes";
|
|
7
|
-
VENDOR_INCLUDE["vendor_groups"] = "vendor_groups";
|
|
8
7
|
VENDOR_INCLUDE["associated_companies"] = "associated_companies";
|
|
9
|
-
VENDOR_INCLUDE["rfqs"] = "rfqs";
|
|
10
8
|
})(VENDOR_INCLUDE = exports.VENDOR_INCLUDE || (exports.VENDOR_INCLUDE = {}));
|