kcommons 4.0.0 → 4.0.1
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/typings/approvalChain.typings.d.ts +20 -0
- package/build/typings/company.typings.d.ts +29 -0
- package/build/typings/companyVendors.typings.d.ts +56 -0
- package/build/typings/rfq.typings.d.ts +79 -0
- package/build/typings/rfq.typings.js +29 -1
- package/build/typings/vendorGroup.typings.d.ts +18 -0
- package/package.json +1 -1
|
@@ -6,3 +6,23 @@ export declare enum ApprovalAction {
|
|
|
6
6
|
export declare enum ApprovalConfigInlcude {
|
|
7
7
|
approval_chain = "approval_chain"
|
|
8
8
|
}
|
|
9
|
+
export interface IEntityApprovalChainEntry {
|
|
10
|
+
id: string;
|
|
11
|
+
user_id: string;
|
|
12
|
+
role_id: string;
|
|
13
|
+
order: number;
|
|
14
|
+
action: string;
|
|
15
|
+
message: string;
|
|
16
|
+
indent_id?: string;
|
|
17
|
+
mi_id?: string;
|
|
18
|
+
pr_id?: string;
|
|
19
|
+
rfq_id?: string;
|
|
20
|
+
comparative_id?: string;
|
|
21
|
+
po_id?: string;
|
|
22
|
+
mrn_id?: string;
|
|
23
|
+
grn_id?: string;
|
|
24
|
+
deleted_at: Date | null;
|
|
25
|
+
is_deleted: boolean | null;
|
|
26
|
+
created_at: Date | null;
|
|
27
|
+
updated_at: Date | null;
|
|
28
|
+
}
|
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
export interface ICompany {
|
|
2
|
+
id: string;
|
|
3
|
+
trade_name: string;
|
|
4
|
+
created_at: Date;
|
|
5
|
+
updated_at: Date;
|
|
6
|
+
is_deleted: boolean;
|
|
7
|
+
is_enabled: boolean;
|
|
8
|
+
pincode: string;
|
|
9
|
+
created_by_id?: string | null;
|
|
10
|
+
deleted_at?: Date;
|
|
11
|
+
owner_id?: string | null;
|
|
12
|
+
email?: string | null;
|
|
13
|
+
contact?: string | null;
|
|
14
|
+
gst_no?: string | null;
|
|
15
|
+
legal_name?: string | null;
|
|
16
|
+
const_of_business?: string | null;
|
|
17
|
+
area?: string | null;
|
|
18
|
+
state?: string | null;
|
|
19
|
+
city?: string | null;
|
|
20
|
+
country?: string | null;
|
|
21
|
+
address?: string | null;
|
|
22
|
+
whats_app?: string | null;
|
|
23
|
+
contact_person_id?: string | null;
|
|
24
|
+
website?: string | null;
|
|
25
|
+
nature_of_business?: string | null;
|
|
26
|
+
cin?: string | null;
|
|
27
|
+
uaadhar?: string | null;
|
|
28
|
+
pancard?: string | null;
|
|
29
|
+
}
|
|
1
30
|
export declare enum COMPANY_INCLUDE {
|
|
2
31
|
associated_purchase_locations = "associated_purchase_locations",
|
|
3
32
|
associated_vendors = "associated_vendors",
|
|
@@ -1,4 +1,60 @@
|
|
|
1
|
+
import { ICompany } from "./company.typings";
|
|
1
2
|
export declare enum CompanyVendorsInclude {
|
|
2
3
|
COMPANY = "company",
|
|
3
4
|
VENDOR = "vendor"
|
|
4
5
|
}
|
|
6
|
+
export interface IVendor {
|
|
7
|
+
id: string;
|
|
8
|
+
gst_no?: string;
|
|
9
|
+
nature_of_business: string;
|
|
10
|
+
vendor_business_categories: string[];
|
|
11
|
+
vendor_trade_name: string;
|
|
12
|
+
vendor_legal_name?: string;
|
|
13
|
+
constitution_of_business: string;
|
|
14
|
+
pincode?: string;
|
|
15
|
+
area?: string;
|
|
16
|
+
city?: string;
|
|
17
|
+
state?: string;
|
|
18
|
+
address?: string;
|
|
19
|
+
country?: string;
|
|
20
|
+
firstname?: string;
|
|
21
|
+
middlename?: string;
|
|
22
|
+
lastname?: string;
|
|
23
|
+
email: string;
|
|
24
|
+
contact: string;
|
|
25
|
+
designation?: string;
|
|
26
|
+
pan_no?: string;
|
|
27
|
+
cin?: string;
|
|
28
|
+
udyam_aadhar?: string;
|
|
29
|
+
bank_account_number?: string;
|
|
30
|
+
bank_ifsc_code?: string;
|
|
31
|
+
vkraya_id: string;
|
|
32
|
+
password: string;
|
|
33
|
+
is_profile_complete: boolean;
|
|
34
|
+
is_profile_verified: boolean;
|
|
35
|
+
is_self_verified: boolean;
|
|
36
|
+
profile_img?: string;
|
|
37
|
+
tags: string[];
|
|
38
|
+
is_enabled: boolean;
|
|
39
|
+
is_deleted?: boolean;
|
|
40
|
+
deleted_at?: string | null;
|
|
41
|
+
created_at?: string | null;
|
|
42
|
+
updated_at?: string | null;
|
|
43
|
+
}
|
|
44
|
+
export interface ICompanyVendor {
|
|
45
|
+
id: string;
|
|
46
|
+
company_id: string;
|
|
47
|
+
vendor_id: string;
|
|
48
|
+
vendor_code: string;
|
|
49
|
+
created_by_id: string;
|
|
50
|
+
approved_by_id: string;
|
|
51
|
+
is_enabled: boolean;
|
|
52
|
+
is_deleted?: boolean;
|
|
53
|
+
deleted_at?: string | null;
|
|
54
|
+
created_at?: string | null;
|
|
55
|
+
updated_at?: string | null;
|
|
56
|
+
company?: ICompany;
|
|
57
|
+
vendor?: IVendor;
|
|
58
|
+
}
|
|
59
|
+
export interface IVendorInputs extends Omit<IVendor, "id" | "created_at" | "updated_at" | "is_profile_complete" | "is_profile_verified" | "is_self_verified" | "deleted_at" | "is_deleted" | "vendor" | "vkraya_id" | "password">, Pick<ICompanyVendor, "vendor_code" | "company_id"> {
|
|
60
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { IEntityApprovalChainEntry } from "./approvalChain.typings";
|
|
2
|
+
import { ICompanyVendor } from "./companyVendors.typings";
|
|
3
|
+
import { IVendorGroup } from "./vendorGroup.typings";
|
|
1
4
|
export declare enum RFQ_INCLUDES {
|
|
2
5
|
approval_chain = "approval_chain",
|
|
3
6
|
items = "items",
|
|
@@ -21,3 +24,79 @@ export declare enum BIDDING_TYPES {
|
|
|
21
24
|
OPEN = "open_bidding",
|
|
22
25
|
CLOSED = "closed_bidding"
|
|
23
26
|
}
|
|
27
|
+
export interface IRFQ {
|
|
28
|
+
id: string;
|
|
29
|
+
rfq_no: string;
|
|
30
|
+
company_id: string;
|
|
31
|
+
parent_purchase_location_id: string;
|
|
32
|
+
created_by_user_id: string;
|
|
33
|
+
validity_date: string;
|
|
34
|
+
bidding_type: string;
|
|
35
|
+
shipping_store_location_id: string;
|
|
36
|
+
status: string;
|
|
37
|
+
sent_for_approval_at?: string | null;
|
|
38
|
+
sent_to_vendors_at?: string | null;
|
|
39
|
+
note?: string | null;
|
|
40
|
+
sent_for_approval_by_id?: string | null;
|
|
41
|
+
sent_to_vendors_by_id?: string | null;
|
|
42
|
+
request_date?: string | null;
|
|
43
|
+
cancelled_at?: string | null;
|
|
44
|
+
attachment_link?: string | null;
|
|
45
|
+
is_deleted?: boolean | null;
|
|
46
|
+
payment_terms?: string | null;
|
|
47
|
+
deleted_at?: string | null;
|
|
48
|
+
created_at?: string | null;
|
|
49
|
+
updated_at?: string | null;
|
|
50
|
+
items?: IRFQItem[] | null;
|
|
51
|
+
approval_chain?: IEntityApprovalChainEntry[] | null;
|
|
52
|
+
rfq_vendor_groups?: IVendorGroup[] | null;
|
|
53
|
+
rfq_vendors?: ICompanyVendor[] | null;
|
|
54
|
+
}
|
|
55
|
+
export interface INestedRFQ extends Omit<IRFQ, "items" | "approval_chain" | "rfq_vendor_groups" | "rfq_vendors"> {
|
|
56
|
+
}
|
|
57
|
+
export interface IRFQInputs extends Omit<IRFQ, "id" | "created_by_user_id" | "status" | "request_date" | "cancelled_at" | "sent_for_approval_at" | "sent_to_vendors_at" | "is_deleted" | "deleted_at" | "created_at" | "updated_at" | "items" | "approval_chain" | "created_at" | "updated_at" | "deleted_at" | "sent_for_approval_by_id" | "sent_to_vendors_by_id" | "rfq_vendors" | "rfq_vendor_groups"> {
|
|
58
|
+
rfq_vendors: string[];
|
|
59
|
+
rfq_vendor_groups: string[];
|
|
60
|
+
}
|
|
61
|
+
export interface IRFQItem {
|
|
62
|
+
id: string;
|
|
63
|
+
parent_rfq_id: string;
|
|
64
|
+
ascendance_type: string;
|
|
65
|
+
company_id: string;
|
|
66
|
+
item_id: string;
|
|
67
|
+
item_name: string;
|
|
68
|
+
uom: string;
|
|
69
|
+
code_sku: string;
|
|
70
|
+
quantity: number;
|
|
71
|
+
created_by_user_id: string;
|
|
72
|
+
item_description?: string | null;
|
|
73
|
+
parent_pr_id?: string | null;
|
|
74
|
+
parent_pr_no?: string | null;
|
|
75
|
+
corresponding_pr_item_id?: string | null;
|
|
76
|
+
is_deleted?: boolean | null;
|
|
77
|
+
deleted_at?: string | null;
|
|
78
|
+
created_at?: string | null;
|
|
79
|
+
updated_at?: string | null;
|
|
80
|
+
}
|
|
81
|
+
export interface IRFQItemInputs extends Omit<IRFQItem, "created_by_user_id" | "created_at" | "parent_rfq_id"> {
|
|
82
|
+
}
|
|
83
|
+
export declare class CreateRFQItemWrapper implements IRFQItemInputs {
|
|
84
|
+
constructor(partial: CreateRFQItemWrapper);
|
|
85
|
+
ascendance_type: string;
|
|
86
|
+
company_id: string;
|
|
87
|
+
id: string;
|
|
88
|
+
item_id: string;
|
|
89
|
+
item_name: string;
|
|
90
|
+
uom: string;
|
|
91
|
+
code_sku: string;
|
|
92
|
+
quantity: number;
|
|
93
|
+
parent_pr_id?: string | null;
|
|
94
|
+
parent_pr_no?: string | null;
|
|
95
|
+
corresponding_pr_item_id?: string | null;
|
|
96
|
+
item_description?: string | null | undefined;
|
|
97
|
+
is_deleted?: boolean | null | undefined;
|
|
98
|
+
deleted_at?: string | null | undefined;
|
|
99
|
+
updated_at?: string | null | undefined;
|
|
100
|
+
}
|
|
101
|
+
export interface IRFQItemTableEntries extends Pick<IRFQItem, "code_sku" | "item_id" | "item_name" | "item_description" | "uom" | "company_id" | "id" | "updated_at" | "is_deleted" | "deleted_at" | "ascendance_type" | "quantity"> {
|
|
102
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BIDDING_TYPES = exports.RFQ_ITEM_TYPE = exports.RFQ_STATUS = exports.RFQ_INCLUDES = void 0;
|
|
3
|
+
exports.CreateRFQItemWrapper = exports.BIDDING_TYPES = exports.RFQ_ITEM_TYPE = exports.RFQ_STATUS = exports.RFQ_INCLUDES = void 0;
|
|
4
4
|
var RFQ_INCLUDES;
|
|
5
5
|
(function (RFQ_INCLUDES) {
|
|
6
6
|
RFQ_INCLUDES["approval_chain"] = "approval_chain";
|
|
@@ -28,3 +28,31 @@ var BIDDING_TYPES;
|
|
|
28
28
|
BIDDING_TYPES["OPEN"] = "open_bidding";
|
|
29
29
|
BIDDING_TYPES["CLOSED"] = "closed_bidding";
|
|
30
30
|
})(BIDDING_TYPES = exports.BIDDING_TYPES || (exports.BIDDING_TYPES = {}));
|
|
31
|
+
class CreateRFQItemWrapper {
|
|
32
|
+
constructor(partial) {
|
|
33
|
+
this.ascendance_type = "";
|
|
34
|
+
this.company_id = "";
|
|
35
|
+
this.id = "";
|
|
36
|
+
this.item_id = "";
|
|
37
|
+
this.item_name = "";
|
|
38
|
+
this.uom = "";
|
|
39
|
+
this.code_sku = "";
|
|
40
|
+
this.quantity = 0;
|
|
41
|
+
this.ascendance_type = partial.ascendance_type;
|
|
42
|
+
this.company_id = partial.company_id;
|
|
43
|
+
this.item_id = partial.item_id;
|
|
44
|
+
this.item_name = partial.item_name;
|
|
45
|
+
this.uom = partial.uom;
|
|
46
|
+
this.code_sku = partial.code_sku;
|
|
47
|
+
this.quantity = partial.quantity;
|
|
48
|
+
this.parent_pr_id = partial.parent_pr_id;
|
|
49
|
+
this.parent_pr_no = partial.parent_pr_no;
|
|
50
|
+
this.corresponding_pr_item_id = partial.corresponding_pr_item_id;
|
|
51
|
+
this.item_description = partial.item_description;
|
|
52
|
+
this.id = partial.id;
|
|
53
|
+
this.deleted_at = partial.deleted_at;
|
|
54
|
+
this.is_deleted = partial.is_deleted;
|
|
55
|
+
this.updated_at = partial.updated_at;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.CreateRFQItemWrapper = CreateRFQItemWrapper;
|
|
@@ -2,3 +2,21 @@ export declare enum VENDOR_GROUP_INCLUDE {
|
|
|
2
2
|
vendors = "vendors",
|
|
3
3
|
rfqs = "rfqs"
|
|
4
4
|
}
|
|
5
|
+
export interface IVendorGroup {
|
|
6
|
+
id: string;
|
|
7
|
+
company_id: string;
|
|
8
|
+
created_by_id: string;
|
|
9
|
+
tags: string[];
|
|
10
|
+
group_name: string;
|
|
11
|
+
notes: string;
|
|
12
|
+
vendors: string[];
|
|
13
|
+
is_enabled: boolean;
|
|
14
|
+
is_deleted?: boolean;
|
|
15
|
+
deleted_at?: Date;
|
|
16
|
+
created_at: Date;
|
|
17
|
+
updated_at: Date;
|
|
18
|
+
}
|
|
19
|
+
export interface IAddVendorGroupInputs extends Omit<IVendorGroup, "id" | "company_id" | "created_by_id" | "vendors" | "is_enabled" | "is_deleted" | "deleted_at" | "created_at" | "updated_at"> {
|
|
20
|
+
}
|
|
21
|
+
export interface IUpdateVendorGroupInputs extends Partial<Omit<IAddVendorGroupInputs, "type">> {
|
|
22
|
+
}
|