kcommons 6.4.40 → 6.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.
- package/build/constants/permission.constants.d.ts +0 -1
- package/build/constants/permission.constants.js +5 -5
- package/build/typings/company.typings.d.ts +8 -2
- package/build/typings/company.typings.js +2 -0
- package/build/typings/companyVendors.typings.d.ts +4 -1
- package/build/typings/companyVendors.typings.js +1 -0
- package/build/typings/entityApprovalChainEntry.typings.d.ts +32 -24
- package/build/typings/entityApprovalChainEntry.typings.js +2 -0
- package/build/typings/item.typings.d.ts +5 -2
- package/build/typings/item.typings.js +1 -0
- package/build/typings/user.typings.d.ts +6 -2
- package/build/typings/user.typings.js +2 -0
- package/package.json +1 -1
|
@@ -82,11 +82,11 @@ exports.PERMISSION_CONFIG = {
|
|
|
82
82
|
PERMISSION_ACTIONS.READ_ONLY,
|
|
83
83
|
PERMISSION_ACTIONS.CRUDSAC,
|
|
84
84
|
],
|
|
85
|
-
[
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
],
|
|
85
|
+
// [PERMISSION_ENTITIES.ITEMS]: [
|
|
86
|
+
// PERMISSION_ACTIONS.APPROVALS,
|
|
87
|
+
// PERMISSION_ACTIONS.READ_ONLY,
|
|
88
|
+
// PERMISSION_ACTIONS.CRUDSAC,
|
|
89
|
+
// ],
|
|
90
90
|
[exports.PERMISSION_ENTITIES.GRN]: [
|
|
91
91
|
PERMISSION_ACTIONS.APPROVALS,
|
|
92
92
|
PERMISSION_ACTIONS.READ_ONLY,
|
|
@@ -83,7 +83,9 @@ export declare enum COMPANY_INCLUDE {
|
|
|
83
83
|
company_specific_vendor_items = "company_specific_vendor_items",
|
|
84
84
|
po_asn_items_junction = "po_asn_items_junction",
|
|
85
85
|
company_contact_people = "company_contact_people",
|
|
86
|
-
company_item_vendor_versions = "company_item_vendor_versions"
|
|
86
|
+
company_item_vendor_versions = "company_item_vendor_versions",
|
|
87
|
+
item_manager_user = "item_manager_user",
|
|
88
|
+
vendor_manager_user = "vendor_manager_user"
|
|
87
89
|
}
|
|
88
90
|
export interface ICompany extends IAddress {
|
|
89
91
|
id: string;
|
|
@@ -98,6 +100,8 @@ export interface ICompany extends IAddress {
|
|
|
98
100
|
created_by_id?: string | null;
|
|
99
101
|
deleted_at?: string | null;
|
|
100
102
|
owner_id?: string | null;
|
|
103
|
+
item_manager_user_id?: string | null;
|
|
104
|
+
vendor_manager_user_id?: string | null;
|
|
101
105
|
email?: string | null;
|
|
102
106
|
contact?: string | null;
|
|
103
107
|
gst_no?: string | null;
|
|
@@ -152,6 +156,8 @@ export interface ICompany extends IAddress {
|
|
|
152
156
|
po_asn_items_junction: INestedPOASNItemJunction[] | null;
|
|
153
157
|
company_contact_people: INestedContactPeople[] | null;
|
|
154
158
|
company_item_vendor_versions: INestedCompanyItemVendorVersion[] | null;
|
|
159
|
+
item_manager_user: INestedUser | null;
|
|
160
|
+
vendor_manager_user: INestedUser | null;
|
|
155
161
|
}
|
|
156
|
-
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"> {
|
|
162
|
+
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" | "item_manager_user" | "vendor_manager_user"> {
|
|
157
163
|
}
|
|
@@ -52,4 +52,6 @@ var COMPANY_INCLUDE;
|
|
|
52
52
|
COMPANY_INCLUDE["po_asn_items_junction"] = "po_asn_items_junction";
|
|
53
53
|
COMPANY_INCLUDE["company_contact_people"] = "company_contact_people";
|
|
54
54
|
COMPANY_INCLUDE["company_item_vendor_versions"] = "company_item_vendor_versions";
|
|
55
|
+
COMPANY_INCLUDE["item_manager_user"] = "item_manager_user";
|
|
56
|
+
COMPANY_INCLUDE["vendor_manager_user"] = "vendor_manager_user";
|
|
55
57
|
})(COMPANY_INCLUDE || (exports.COMPANY_INCLUDE = COMPANY_INCLUDE = {}));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IAddress } from "./common/address.typings";
|
|
2
2
|
import { INestedCompany } from "./company.typings";
|
|
3
3
|
import { INestedCompanyItemVendorVersion } from "./companyItemVendorVersion.typings";
|
|
4
|
+
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
4
5
|
import { INestedItem } from "./item.typings";
|
|
5
6
|
import { INestedItemCategory } from "./itemCategory.typings";
|
|
6
7
|
import { INestedNegotiation } from "./negotiation.typings";
|
|
@@ -30,7 +31,8 @@ export declare enum CompanyVendorsInclude {
|
|
|
30
31
|
selected_item_categories = "selected_item_categories",
|
|
31
32
|
selected_items = "selected_items",
|
|
32
33
|
company_allowed_item_categories = "company_allowed_item_categories",
|
|
33
|
-
company_item_vendor_versions = "company_item_vendor_versions"
|
|
34
|
+
company_item_vendor_versions = "company_item_vendor_versions",
|
|
35
|
+
approval_chain = "approval_chain"
|
|
34
36
|
}
|
|
35
37
|
export declare enum COMPANY_FORM_STATUS_FOR_VENDOR {
|
|
36
38
|
INVITED = "INVITED",
|
|
@@ -63,6 +65,7 @@ export interface ICompanyVendor {
|
|
|
63
65
|
selected_items: INestedItem[] | null;
|
|
64
66
|
company_allowed_item_categories: INestedItemCategory[] | null;
|
|
65
67
|
company_item_verndor_versions: INestedCompanyItemVendorVersion[] | null;
|
|
68
|
+
approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
66
69
|
}
|
|
67
70
|
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"> {
|
|
68
71
|
}
|
|
@@ -26,6 +26,7 @@ var CompanyVendorsInclude;
|
|
|
26
26
|
CompanyVendorsInclude["selected_items"] = "selected_items";
|
|
27
27
|
CompanyVendorsInclude["company_allowed_item_categories"] = "company_allowed_item_categories";
|
|
28
28
|
CompanyVendorsInclude["company_item_vendor_versions"] = "company_item_vendor_versions";
|
|
29
|
+
CompanyVendorsInclude["approval_chain"] = "approval_chain";
|
|
29
30
|
})(CompanyVendorsInclude || (exports.CompanyVendorsInclude = CompanyVendorsInclude = {}));
|
|
30
31
|
var COMPANY_FORM_STATUS_FOR_VENDOR;
|
|
31
32
|
(function (COMPANY_FORM_STATUS_FOR_VENDOR) {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { INestedCompany } from "./company.typings";
|
|
2
|
+
import { INestedCompanyVendors } from "./companyVendors.typings";
|
|
2
3
|
import { INestedComparative } from "./comparative.typings";
|
|
3
4
|
import { INestedGRN } from "./grn.typings";
|
|
4
5
|
import { INestedIndent } from "./indent.typings";
|
|
6
|
+
import { INestedItem } from "./item.typings";
|
|
5
7
|
import { INestedMI } from "./mi.typings";
|
|
6
8
|
import { INestedMRN } from "./mrn.typings";
|
|
7
9
|
import { INestedPo } from "./po.typings";
|
|
@@ -20,7 +22,9 @@ export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES {
|
|
|
20
22
|
comparative = "comparative",
|
|
21
23
|
po = "po",
|
|
22
24
|
grn = "grn",
|
|
23
|
-
mrn = "mrn"
|
|
25
|
+
mrn = "mrn",
|
|
26
|
+
item = "item",
|
|
27
|
+
company_vendor = "company_vendor"
|
|
24
28
|
}
|
|
25
29
|
export interface IEntityApprovalChainEntry {
|
|
26
30
|
id: string;
|
|
@@ -29,29 +33,33 @@ export interface IEntityApprovalChainEntry {
|
|
|
29
33
|
order: number;
|
|
30
34
|
action: string;
|
|
31
35
|
message: string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
item_id: string | null;
|
|
37
|
+
company_vendor_id: string | null;
|
|
38
|
+
indent_id: string | null;
|
|
39
|
+
mi_id: string | null;
|
|
40
|
+
pr_id: string | null;
|
|
41
|
+
rfq_id: string | null;
|
|
42
|
+
comparative_id: string | null;
|
|
43
|
+
po_id: string | null;
|
|
44
|
+
mrn_id: string | null;
|
|
45
|
+
grn_id: string | null;
|
|
40
46
|
deleted_at: string | null;
|
|
41
|
-
is_deleted: boolean
|
|
42
|
-
created_at: string
|
|
43
|
-
updated_at: string
|
|
44
|
-
company
|
|
45
|
-
user
|
|
46
|
-
role
|
|
47
|
-
indent
|
|
48
|
-
mi
|
|
49
|
-
pr
|
|
50
|
-
rfq
|
|
51
|
-
comparative
|
|
52
|
-
po
|
|
53
|
-
grn
|
|
54
|
-
mrn
|
|
47
|
+
is_deleted: boolean;
|
|
48
|
+
created_at: string;
|
|
49
|
+
updated_at: string;
|
|
50
|
+
company: INestedCompany | null;
|
|
51
|
+
user: INestedUser | null;
|
|
52
|
+
role: INestedRole | null;
|
|
53
|
+
indent: INestedIndent | null;
|
|
54
|
+
mi: INestedMI | null;
|
|
55
|
+
pr: INestedPR | null;
|
|
56
|
+
rfq: INestedRFQ | null;
|
|
57
|
+
comparative: INestedComparative | null;
|
|
58
|
+
po: INestedPo | null;
|
|
59
|
+
grn: INestedGRN | null;
|
|
60
|
+
mrn: INestedMRN | null;
|
|
61
|
+
item: INestedItem | null;
|
|
62
|
+
company_vendor: INestedCompanyVendors | null;
|
|
55
63
|
}
|
|
56
|
-
export interface INestedEntityApprovalChainEntry extends Omit<IEntityApprovalChainEntry, "company" | "user" | "role" | "indent" | "mi" | "pr" | "rfq" | "comparative" | "po" | "grn" | "mrn"> {
|
|
64
|
+
export interface INestedEntityApprovalChainEntry extends Omit<IEntityApprovalChainEntry, "company" | "user" | "role" | "indent" | "mi" | "pr" | "rfq" | "comparative" | "po" | "grn" | "mrn" | "item" | "company_vendor"> {
|
|
57
65
|
}
|
|
@@ -14,4 +14,6 @@ var ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES;
|
|
|
14
14
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["po"] = "po";
|
|
15
15
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["grn"] = "grn";
|
|
16
16
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["mrn"] = "mrn";
|
|
17
|
+
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["item"] = "item";
|
|
18
|
+
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["company_vendor"] = "company_vendor";
|
|
17
19
|
})(ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES || (exports.ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES = ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES = {}));
|
|
@@ -3,6 +3,7 @@ import { INestedCompany } from "./company.typings";
|
|
|
3
3
|
import { INestedCompanyItemVendorVersion } from "./companyItemVendorVersion.typings";
|
|
4
4
|
import { INestedCompanyVendors } from "./companyVendors.typings";
|
|
5
5
|
import { INestedComparativeItem } from "./comparative.typings";
|
|
6
|
+
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
6
7
|
import { INestedGRNItem } from "./grn.typings";
|
|
7
8
|
import { INestedIndentItem } from "./indent.typings";
|
|
8
9
|
import { INestedItemCategory } from "./itemCategory.typings";
|
|
@@ -34,7 +35,8 @@ export declare enum ITEM_INCLUDE {
|
|
|
34
35
|
inventory_entries = "inventory_entries",
|
|
35
36
|
dealing_company_vendors = "dealing_company_vendors",
|
|
36
37
|
used_in_po_asn_item_junction = "used_in_po_asn_item_junction",
|
|
37
|
-
vendor_item_versions = "vendor_item_versions"
|
|
38
|
+
vendor_item_versions = "vendor_item_versions",
|
|
39
|
+
approval_chain = "approval_chain"
|
|
38
40
|
}
|
|
39
41
|
export interface IItem {
|
|
40
42
|
id: string;
|
|
@@ -100,8 +102,9 @@ export interface IItem {
|
|
|
100
102
|
dealing_company_vendors?: INestedCompanyVendors[] | null[] | null;
|
|
101
103
|
used_in_po_asn_item_junction?: INestedPOASNItemJunction | null[] | null;
|
|
102
104
|
vendor_item_versions: INestedCompanyItemVendorVersion[] | null;
|
|
105
|
+
approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
103
106
|
}
|
|
104
|
-
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"> {
|
|
107
|
+
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" | "approval_chain"> {
|
|
105
108
|
}
|
|
106
109
|
export declare const ITEM_CLASSIFICATION: {
|
|
107
110
|
DIRECT: string;
|
|
@@ -23,6 +23,7 @@ var ITEM_INCLUDE;
|
|
|
23
23
|
ITEM_INCLUDE["dealing_company_vendors"] = "dealing_company_vendors";
|
|
24
24
|
ITEM_INCLUDE["used_in_po_asn_item_junction"] = "used_in_po_asn_item_junction";
|
|
25
25
|
ITEM_INCLUDE["vendor_item_versions"] = "vendor_item_versions";
|
|
26
|
+
ITEM_INCLUDE["approval_chain"] = "approval_chain";
|
|
26
27
|
})(ITEM_INCLUDE || (exports.ITEM_INCLUDE = ITEM_INCLUDE = {}));
|
|
27
28
|
exports.ITEM_CLASSIFICATION = {
|
|
28
29
|
DIRECT: "Direct",
|
|
@@ -100,8 +100,10 @@ export interface IUser {
|
|
|
100
100
|
created_contact_people: INestedContactPeople[] | null;
|
|
101
101
|
updated_contact_people: INestedContactPeople[] | null;
|
|
102
102
|
last_updated_company_item_vendor_version: INestedCompanyItemVendorVersion[] | null;
|
|
103
|
+
as_item_approver_for_company: INestedCompany[] | null;
|
|
104
|
+
as_vendor_approver_for_company: INestedCompany[] | null;
|
|
103
105
|
}
|
|
104
|
-
export interface INestedUser extends Omit<IUser, "reporting_to" | "active_company" | "active_role" | "subordinates" | "otps" | "as_incharge_in_purchase_locations" | "as_incharge_in_store_locations" | "as_incharge_in_offices" | "as_incharge_in_gates" | "as_contact_person_companies" | "as_contact_person_offices" | "as_contact_person_gates" | "as_contact_person_for_grns" | "as_contact_person_for_mrns" | "owned_companies" | "head_for_departments" | "approved_items" | "approval_chains" | "created_indents" | "created_mis" | "created_prs" | "pr_sent_for_approval" | "last_updated_prs" | "created_rfqs" | "entity_approval_chains" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "assigned_roles" | "negotiations" | "created_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "grns_sent_for_approval" | "grns_sent_to_store" | "mrns_sent_for_approval" | "created_boms" | "last_updated_boms" | "created_vendor_groups" | "last_updated_vendor_groups" | "comparatives_sent_for_approval" | "user_notifications" | "approved_company_vendors" | "created_extra_quesstions" | "updated_extra_quesstions" | "answered_questions" | "created_extra_core_question_for_companies" | "updated_extra_core_question_for_companies" | "created_contact_people" | "updated_contact_people" | "last_updated_company_item_vendor_version"> {
|
|
106
|
+
export interface INestedUser extends Omit<IUser, "reporting_to" | "active_company" | "active_role" | "subordinates" | "otps" | "as_incharge_in_purchase_locations" | "as_incharge_in_store_locations" | "as_incharge_in_offices" | "as_incharge_in_gates" | "as_contact_person_companies" | "as_contact_person_offices" | "as_contact_person_gates" | "as_contact_person_for_grns" | "as_contact_person_for_mrns" | "owned_companies" | "head_for_departments" | "approved_items" | "approval_chains" | "created_indents" | "created_mis" | "created_prs" | "pr_sent_for_approval" | "last_updated_prs" | "created_rfqs" | "entity_approval_chains" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "assigned_roles" | "negotiations" | "created_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "grns_sent_for_approval" | "grns_sent_to_store" | "mrns_sent_for_approval" | "created_boms" | "last_updated_boms" | "created_vendor_groups" | "last_updated_vendor_groups" | "comparatives_sent_for_approval" | "user_notifications" | "approved_company_vendors" | "created_extra_quesstions" | "updated_extra_quesstions" | "answered_questions" | "created_extra_core_question_for_companies" | "updated_extra_core_question_for_companies" | "created_contact_people" | "updated_contact_people" | "last_updated_company_item_vendor_version" | "as_item_approver_for_company" | "as_vendor_approver_for_company"> {
|
|
105
107
|
}
|
|
106
108
|
export declare enum UserInclude {
|
|
107
109
|
as_incharge_in_purchase_locations = "as_incharge_in_purchase_locations",
|
|
@@ -143,7 +145,9 @@ export declare enum UserInclude {
|
|
|
143
145
|
updated_extra_core_question_for_companies = "updated_extra_core_question_for_companies",
|
|
144
146
|
created_contact_people = "created_contact_people",
|
|
145
147
|
updated_contact_people = "updated_contact_people",
|
|
146
|
-
last_updated_company_item_vendor_version = "last_updated_company_item_vendor_version"
|
|
148
|
+
last_updated_company_item_vendor_version = "last_updated_company_item_vendor_version",
|
|
149
|
+
as_item_approver_for_company = "as_item_approver_for_company",
|
|
150
|
+
as_vendor_approver_for_company = "as_vendor_approver_for_company"
|
|
147
151
|
}
|
|
148
152
|
export interface IUserFilters {
|
|
149
153
|
name?: string;
|
|
@@ -46,4 +46,6 @@ var UserInclude;
|
|
|
46
46
|
UserInclude["created_contact_people"] = "created_contact_people";
|
|
47
47
|
UserInclude["updated_contact_people"] = "updated_contact_people";
|
|
48
48
|
UserInclude["last_updated_company_item_vendor_version"] = "last_updated_company_item_vendor_version";
|
|
49
|
+
UserInclude["as_item_approver_for_company"] = "as_item_approver_for_company";
|
|
50
|
+
UserInclude["as_vendor_approver_for_company"] = "as_vendor_approver_for_company";
|
|
49
51
|
})(UserInclude || (exports.UserInclude = UserInclude = {}));
|