kcommons 6.5.2 → 6.6.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 +2 -3
- package/build/constants/permission.constants.js +5 -6
- package/build/typings/companyVendors.typings.d.ts +1 -4
- package/build/typings/companyVendors.typings.js +0 -1
- package/build/typings/entityApprovalChainEntry.typings.d.ts +24 -32
- package/build/typings/entityApprovalChainEntry.typings.js +0 -2
- package/build/typings/item.typings.d.ts +2 -5
- package/build/typings/item.typings.js +0 -1
- package/package.json +1 -1
|
@@ -22,13 +22,11 @@ export declare enum RFQ_TO_PO_DOCUMENTS {
|
|
|
22
22
|
COMPARATIVE = "COMPARATIVE"
|
|
23
23
|
}
|
|
24
24
|
export declare enum PERMISSION_ENTITIES_OTHERS {
|
|
25
|
-
ITEMS = "Items"
|
|
26
|
-
COMPANY_VENDORS = "COMPANY_VENDORS"
|
|
25
|
+
ITEMS = "Items"
|
|
27
26
|
}
|
|
28
27
|
export type IPERMISSION_ENTITIES = DOCUMENTS | PERMISSION_ENTITIES_OTHERS;
|
|
29
28
|
export declare const PERMISSION_ENTITIES: {
|
|
30
29
|
ITEMS: PERMISSION_ENTITIES_OTHERS.ITEMS;
|
|
31
|
-
COMPANY_VENDORS: PERMISSION_ENTITIES_OTHERS.COMPANY_VENDORS;
|
|
32
30
|
INDENT: DOCUMENTS.INDENT;
|
|
33
31
|
MI: DOCUMENTS.MI;
|
|
34
32
|
MRN: DOCUMENTS.MRN;
|
|
@@ -49,6 +47,7 @@ export declare const PERMISSION_CONFIG: {
|
|
|
49
47
|
RFI: PERMISSION_ACTIONS[];
|
|
50
48
|
RFP: PERMISSION_ACTIONS[];
|
|
51
49
|
PO: PERMISSION_ACTIONS[];
|
|
50
|
+
Items: PERMISSION_ACTIONS[];
|
|
52
51
|
GRN: PERMISSION_ACTIONS[];
|
|
53
52
|
COMPARATIVE: PERMISSION_ACTIONS[];
|
|
54
53
|
};
|
|
@@ -32,7 +32,6 @@ var RFQ_TO_PO_DOCUMENTS;
|
|
|
32
32
|
var PERMISSION_ENTITIES_OTHERS;
|
|
33
33
|
(function (PERMISSION_ENTITIES_OTHERS) {
|
|
34
34
|
PERMISSION_ENTITIES_OTHERS["ITEMS"] = "Items";
|
|
35
|
-
PERMISSION_ENTITIES_OTHERS["COMPANY_VENDORS"] = "COMPANY_VENDORS";
|
|
36
35
|
})(PERMISSION_ENTITIES_OTHERS || (exports.PERMISSION_ENTITIES_OTHERS = PERMISSION_ENTITIES_OTHERS = {}));
|
|
37
36
|
exports.PERMISSION_ENTITIES = Object.assign(Object.assign({}, DOCUMENTS), PERMISSION_ENTITIES_OTHERS);
|
|
38
37
|
exports.PERMISSION_CONFIG = {
|
|
@@ -83,11 +82,11 @@ exports.PERMISSION_CONFIG = {
|
|
|
83
82
|
PERMISSION_ACTIONS.READ_ONLY,
|
|
84
83
|
PERMISSION_ACTIONS.CRUDSAC,
|
|
85
84
|
],
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
85
|
+
[exports.PERMISSION_ENTITIES.ITEMS]: [
|
|
86
|
+
PERMISSION_ACTIONS.APPROVALS,
|
|
87
|
+
PERMISSION_ACTIONS.READ_ONLY,
|
|
88
|
+
PERMISSION_ACTIONS.CRUDSAC,
|
|
89
|
+
],
|
|
91
90
|
[exports.PERMISSION_ENTITIES.GRN]: [
|
|
92
91
|
PERMISSION_ACTIONS.APPROVALS,
|
|
93
92
|
PERMISSION_ACTIONS.READ_ONLY,
|
|
@@ -1,7 +1,6 @@
|
|
|
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";
|
|
5
4
|
import { INestedItem } from "./item.typings";
|
|
6
5
|
import { INestedItemCategory } from "./itemCategory.typings";
|
|
7
6
|
import { INestedNegotiation } from "./negotiation.typings";
|
|
@@ -31,8 +30,7 @@ export declare enum CompanyVendorsInclude {
|
|
|
31
30
|
selected_item_categories = "selected_item_categories",
|
|
32
31
|
selected_items = "selected_items",
|
|
33
32
|
company_allowed_item_categories = "company_allowed_item_categories",
|
|
34
|
-
company_item_vendor_versions = "company_item_vendor_versions"
|
|
35
|
-
approval_chain = "approval_chain"
|
|
33
|
+
company_item_vendor_versions = "company_item_vendor_versions"
|
|
36
34
|
}
|
|
37
35
|
export declare enum COMPANY_FORM_STATUS_FOR_VENDOR {
|
|
38
36
|
INVITED = "INVITED",
|
|
@@ -65,7 +63,6 @@ export interface ICompanyVendor {
|
|
|
65
63
|
selected_items: INestedItem[] | null;
|
|
66
64
|
company_allowed_item_categories: INestedItemCategory[] | null;
|
|
67
65
|
company_item_verndor_versions: INestedCompanyItemVendorVersion[] | null;
|
|
68
|
-
approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
69
66
|
}
|
|
70
67
|
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"> {
|
|
71
68
|
}
|
|
@@ -26,7 +26,6 @@ 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";
|
|
30
29
|
})(CompanyVendorsInclude || (exports.CompanyVendorsInclude = CompanyVendorsInclude = {}));
|
|
31
30
|
var COMPANY_FORM_STATUS_FOR_VENDOR;
|
|
32
31
|
(function (COMPANY_FORM_STATUS_FOR_VENDOR) {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { INestedCompany } from "./company.typings";
|
|
2
|
-
import { INestedCompanyVendors } from "./companyVendors.typings";
|
|
3
2
|
import { INestedComparative } from "./comparative.typings";
|
|
4
3
|
import { INestedGRN } from "./grn.typings";
|
|
5
4
|
import { INestedIndent } from "./indent.typings";
|
|
6
|
-
import { INestedItem } from "./item.typings";
|
|
7
5
|
import { INestedMI } from "./mi.typings";
|
|
8
6
|
import { INestedMRN } from "./mrn.typings";
|
|
9
7
|
import { INestedPo } from "./po.typings";
|
|
@@ -22,9 +20,7 @@ export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES {
|
|
|
22
20
|
comparative = "comparative",
|
|
23
21
|
po = "po",
|
|
24
22
|
grn = "grn",
|
|
25
|
-
mrn = "mrn"
|
|
26
|
-
item = "item",
|
|
27
|
-
company_vendor = "company_vendor"
|
|
23
|
+
mrn = "mrn"
|
|
28
24
|
}
|
|
29
25
|
export interface IEntityApprovalChainEntry {
|
|
30
26
|
id: string;
|
|
@@ -33,33 +29,29 @@ export interface IEntityApprovalChainEntry {
|
|
|
33
29
|
order: number;
|
|
34
30
|
action: string;
|
|
35
31
|
message: string;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
mrn_id: string | null;
|
|
45
|
-
grn_id: string | null;
|
|
32
|
+
indent_id?: string;
|
|
33
|
+
mi_id?: string;
|
|
34
|
+
pr_id?: string;
|
|
35
|
+
rfq_id?: string;
|
|
36
|
+
comparative_id?: string;
|
|
37
|
+
po_id?: string;
|
|
38
|
+
mrn_id?: string;
|
|
39
|
+
grn_id?: string;
|
|
46
40
|
deleted_at: string | null;
|
|
47
|
-
is_deleted: boolean;
|
|
48
|
-
created_at: string;
|
|
49
|
-
updated_at: string;
|
|
50
|
-
company
|
|
51
|
-
user
|
|
52
|
-
role
|
|
53
|
-
indent
|
|
54
|
-
mi
|
|
55
|
-
pr
|
|
56
|
-
rfq
|
|
57
|
-
comparative
|
|
58
|
-
po
|
|
59
|
-
grn
|
|
60
|
-
mrn
|
|
61
|
-
item: INestedItem | null;
|
|
62
|
-
company_vendor: INestedCompanyVendors | null;
|
|
41
|
+
is_deleted: boolean | null;
|
|
42
|
+
created_at: string | null;
|
|
43
|
+
updated_at: string | null;
|
|
44
|
+
company?: INestedCompany | null;
|
|
45
|
+
user?: INestedUser | null;
|
|
46
|
+
role?: INestedRole | null;
|
|
47
|
+
indent?: INestedIndent | null;
|
|
48
|
+
mi?: INestedMI | null;
|
|
49
|
+
pr?: INestedPR | null;
|
|
50
|
+
rfq?: INestedRFQ | null;
|
|
51
|
+
comparative?: INestedComparative | null;
|
|
52
|
+
po?: INestedPo | null;
|
|
53
|
+
grn?: INestedGRN | null;
|
|
54
|
+
mrn?: INestedMRN | null;
|
|
63
55
|
}
|
|
64
|
-
export interface INestedEntityApprovalChainEntry extends Omit<IEntityApprovalChainEntry, "company" | "user" | "role" | "indent" | "mi" | "pr" | "rfq" | "comparative" | "po" | "grn" | "mrn"
|
|
56
|
+
export interface INestedEntityApprovalChainEntry extends Omit<IEntityApprovalChainEntry, "company" | "user" | "role" | "indent" | "mi" | "pr" | "rfq" | "comparative" | "po" | "grn" | "mrn"> {
|
|
65
57
|
}
|
|
@@ -14,6 +14,4 @@ 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";
|
|
19
17
|
})(ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES || (exports.ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES = ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES = {}));
|
|
@@ -3,7 +3,6 @@ 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";
|
|
7
6
|
import { INestedGRNItem } from "./grn.typings";
|
|
8
7
|
import { INestedIndentItem } from "./indent.typings";
|
|
9
8
|
import { INestedItemCategory } from "./itemCategory.typings";
|
|
@@ -35,8 +34,7 @@ export declare enum ITEM_INCLUDE {
|
|
|
35
34
|
inventory_entries = "inventory_entries",
|
|
36
35
|
dealing_company_vendors = "dealing_company_vendors",
|
|
37
36
|
used_in_po_asn_item_junction = "used_in_po_asn_item_junction",
|
|
38
|
-
vendor_item_versions = "vendor_item_versions"
|
|
39
|
-
approval_chain = "approval_chain"
|
|
37
|
+
vendor_item_versions = "vendor_item_versions"
|
|
40
38
|
}
|
|
41
39
|
export interface IItem {
|
|
42
40
|
id: string;
|
|
@@ -102,9 +100,8 @@ export interface IItem {
|
|
|
102
100
|
dealing_company_vendors?: INestedCompanyVendors[] | null[] | null;
|
|
103
101
|
used_in_po_asn_item_junction?: INestedPOASNItemJunction | null[] | null;
|
|
104
102
|
vendor_item_versions: INestedCompanyItemVendorVersion[] | null;
|
|
105
|
-
approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
106
103
|
}
|
|
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"
|
|
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"> {
|
|
108
105
|
}
|
|
109
106
|
export declare const ITEM_CLASSIFICATION: {
|
|
110
107
|
DIRECT: string;
|
|
@@ -23,7 +23,6 @@ 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";
|
|
27
26
|
})(ITEM_INCLUDE || (exports.ITEM_INCLUDE = ITEM_INCLUDE = {}));
|
|
28
27
|
exports.ITEM_CLASSIFICATION = {
|
|
29
28
|
DIRECT: "Direct",
|