kcommons 5.26.2 → 5.26.4
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.
|
@@ -27,7 +27,8 @@ export declare enum CompanyVendorsInclude {
|
|
|
27
27
|
as_previous_purchase_vendor_for_items = "as_previous_purchase_vendor_for_items",
|
|
28
28
|
as_least_purchase_vendor_for_items = "as_least_purchase_vendor_for_items",
|
|
29
29
|
selected_item_categories = "selected_item_categories",
|
|
30
|
-
selected_items = "selected_items"
|
|
30
|
+
selected_items = "selected_items",
|
|
31
|
+
company_allowed_item_categories = "company_allowed_item_categories"
|
|
31
32
|
}
|
|
32
33
|
export declare enum COMPANY_FORM_STATUS_FOR_VENDOR {
|
|
33
34
|
INVITED = "INVITED",
|
|
@@ -37,7 +38,7 @@ export interface ICompanyVendor {
|
|
|
37
38
|
id: string;
|
|
38
39
|
company_id: string;
|
|
39
40
|
vendor_id: string;
|
|
40
|
-
vendor_code: string
|
|
41
|
+
vendor_code: string;
|
|
41
42
|
created_by_id: string | null;
|
|
42
43
|
company_form_status: COMPANY_FORM_STATUS_FOR_VENDOR;
|
|
43
44
|
approved_by_id: string;
|
|
@@ -58,8 +59,9 @@ export interface ICompanyVendor {
|
|
|
58
59
|
as_least_purchase_vendor_for_items: INestedItem[] | null;
|
|
59
60
|
selected_item_categories: INestedItemCategory[] | null;
|
|
60
61
|
selected_items: INestedItem[] | null;
|
|
62
|
+
company_allowed_item_categories: INestedItemCategory[] | null;
|
|
61
63
|
}
|
|
62
|
-
export interface INestedCompanyVendors extends Omit<ICompanyVendor, "company" | "vendor" | "approved_by" | "rfqs_sent" | "vendor_groups" | "negotiations" | "pos" | "selected_item_categories" | "selected_items"> {
|
|
64
|
+
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"> {
|
|
63
65
|
}
|
|
64
66
|
export interface IICheckCompanyVendorStatusRes {
|
|
65
67
|
vendor: IVendor;
|
|
@@ -24,6 +24,7 @@ var CompanyVendorsInclude;
|
|
|
24
24
|
CompanyVendorsInclude["as_least_purchase_vendor_for_items"] = "as_least_purchase_vendor_for_items";
|
|
25
25
|
CompanyVendorsInclude["selected_item_categories"] = "selected_item_categories";
|
|
26
26
|
CompanyVendorsInclude["selected_items"] = "selected_items";
|
|
27
|
+
CompanyVendorsInclude["company_allowed_item_categories"] = "company_allowed_item_categories";
|
|
27
28
|
})(CompanyVendorsInclude || (exports.CompanyVendorsInclude = CompanyVendorsInclude = {}));
|
|
28
29
|
var COMPANY_FORM_STATUS_FOR_VENDOR;
|
|
29
30
|
(function (COMPANY_FORM_STATUS_FOR_VENDOR) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { INestedCompany } from "./company.typings";
|
|
2
|
-
import { INestedCompanyVendors } from "./companyVendors.typings";
|
|
2
|
+
import { ICompanyVendor, INestedCompanyVendors } from "./companyVendors.typings";
|
|
3
3
|
import { INestedItemSubcategory } from "./itemSubcategory.typings";
|
|
4
4
|
export interface ICategory {
|
|
5
5
|
category_name: string;
|
|
@@ -15,10 +15,12 @@ export interface ICategory {
|
|
|
15
15
|
company?: INestedCompany | null;
|
|
16
16
|
subcategories?: INestedItemSubcategory[] | null;
|
|
17
17
|
dealing_company_vendors?: INestedCompanyVendors[] | null;
|
|
18
|
+
allowed_company_vendors_by_company?: ICompanyVendor[] | null;
|
|
18
19
|
}
|
|
19
20
|
export interface INestedItemCategory extends Omit<ICategory, "company" | "subcategories" | "dealing_company_vendors"> {
|
|
20
21
|
}
|
|
21
22
|
export declare enum ItemCategoryInclude {
|
|
22
23
|
subcategories = "subcategories",
|
|
23
|
-
dealing_company_vendors = "dealing_company_vendors"
|
|
24
|
+
dealing_company_vendors = "dealing_company_vendors",
|
|
25
|
+
allowed_company_vendors_by_company = "allowed_company_vendors_by_company"
|
|
24
26
|
}
|
|
@@ -5,4 +5,5 @@ var ItemCategoryInclude;
|
|
|
5
5
|
(function (ItemCategoryInclude) {
|
|
6
6
|
ItemCategoryInclude["subcategories"] = "subcategories";
|
|
7
7
|
ItemCategoryInclude["dealing_company_vendors"] = "dealing_company_vendors";
|
|
8
|
+
ItemCategoryInclude["allowed_company_vendors_by_company"] = "allowed_company_vendors_by_company";
|
|
8
9
|
})(ItemCategoryInclude || (exports.ItemCategoryInclude = ItemCategoryInclude = {}));
|