kcommons 5.2.5 → 5.2.7
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/company.typings.d.ts +8 -2
- package/build/typings/company.typings.js +2 -0
- package/build/typings/quote.typings.d.ts +3 -0
- package/build/typings/quote.typings.js +0 -23
- package/build/typings/storeLocation.typings.d.ts +10 -2
- package/build/typings/storeLocation.typings.js +6 -0
- package/build/typings/user.typings.d.ts +4 -2
- package/build/typings/vendor.typings.d.ts +3 -0
- package/package.json +1 -1
|
@@ -6,7 +6,9 @@ import { INestedItem } from "./item.typings";
|
|
|
6
6
|
import { INestedItemCategory } from "./itemCategory.typings";
|
|
7
7
|
import { IItemSubcategory } from "./itemSubcategory.typings";
|
|
8
8
|
import { INestedMI, INestedMIItem } from "./mi.typings";
|
|
9
|
+
import { INestedNegotiation } from "./negotiation.typings";
|
|
9
10
|
import { INestedOffice } from "./offices.typings";
|
|
11
|
+
import { INestedPo } from "./po.typings";
|
|
10
12
|
import { INestedPR, INestedPrItem } from "./pr.typings";
|
|
11
13
|
import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
12
14
|
import { INestedQuote } from "./quote.typings";
|
|
@@ -67,8 +69,10 @@ export interface ICompany {
|
|
|
67
69
|
company_rfqs?: null | INestedRFQ[];
|
|
68
70
|
company_quotes?: null | INestedQuote[];
|
|
69
71
|
entity_approval_chain_entries?: null | INestedApprovalChainEntry[];
|
|
72
|
+
company_negotiations?: null | INestedNegotiation[];
|
|
73
|
+
company_pos?: null | INestedPo[];
|
|
70
74
|
}
|
|
71
|
-
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"> {
|
|
75
|
+
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"> {
|
|
72
76
|
}
|
|
73
77
|
export declare enum COMPANY_INCLUDE {
|
|
74
78
|
associated_purchase_locations = "associated_purchase_locations",
|
|
@@ -93,5 +97,7 @@ export declare enum COMPANY_INCLUDE {
|
|
|
93
97
|
pr_items = "pr_items",
|
|
94
98
|
company_rfqs = "company_rfqs",
|
|
95
99
|
company_quotes = "company_quotes",
|
|
96
|
-
entity_approval_chain_entries = "entity_approval_chain_entries"
|
|
100
|
+
entity_approval_chain_entries = "entity_approval_chain_entries",
|
|
101
|
+
company_negotiations = "company_negotiations",
|
|
102
|
+
company_pos = "company_pos"
|
|
97
103
|
}
|
|
@@ -26,4 +26,6 @@ var COMPANY_INCLUDE;
|
|
|
26
26
|
COMPANY_INCLUDE["company_rfqs"] = "company_rfqs";
|
|
27
27
|
COMPANY_INCLUDE["company_quotes"] = "company_quotes";
|
|
28
28
|
COMPANY_INCLUDE["entity_approval_chain_entries"] = "entity_approval_chain_entries";
|
|
29
|
+
COMPANY_INCLUDE["company_negotiations"] = "company_negotiations";
|
|
30
|
+
COMPANY_INCLUDE["company_pos"] = "company_pos";
|
|
29
31
|
})(COMPANY_INCLUDE = exports.COMPANY_INCLUDE || (exports.COMPANY_INCLUDE = {}));
|
|
@@ -24,26 +24,3 @@ var QUOTE_ITEM_INCLUDES;
|
|
|
24
24
|
QUOTE_ITEM_INCLUDES["parent_quote"] = "parent_quote";
|
|
25
25
|
QUOTE_ITEM_INCLUDES["item"] = "item";
|
|
26
26
|
})(QUOTE_ITEM_INCLUDES = exports.QUOTE_ITEM_INCLUDES || (exports.QUOTE_ITEM_INCLUDES = {}));
|
|
27
|
-
// export class QuoteItemFactory implements IQuoteItems {
|
|
28
|
-
// constructor(partial: IQuoteItems) {
|
|
29
|
-
// Object.assign(this, partial);
|
|
30
|
-
// }
|
|
31
|
-
// id: string = "";
|
|
32
|
-
// quote_id: string = "";
|
|
33
|
-
// item_id: string = "";
|
|
34
|
-
// rfq_item_id: string = "";
|
|
35
|
-
// requested_quantity: number = 0;
|
|
36
|
-
// gst?: number | null;
|
|
37
|
-
// per_unit_rate?: number | null;
|
|
38
|
-
// provided_quantity?: number | null;
|
|
39
|
-
// discount_type?: string | null;
|
|
40
|
-
// discount_value?: number | null;
|
|
41
|
-
// remark?: string | null;
|
|
42
|
-
// is_deleted?: boolean | null;
|
|
43
|
-
// deleted_at?: string | null;
|
|
44
|
-
// created_at?: string | null;
|
|
45
|
-
// updated_at?: string | null;
|
|
46
|
-
// quote?: INestedQuote | null;
|
|
47
|
-
// item?: INestedItem | null;
|
|
48
|
-
// rfq_item?: INestedRFQItem | null;
|
|
49
|
-
// }
|
|
@@ -4,6 +4,7 @@ import { INestedDepartment } from "./department.typings";
|
|
|
4
4
|
import { INestedIndent } from "./indent.typings";
|
|
5
5
|
import { INestedMI } from "./mi.typings";
|
|
6
6
|
import { INestedOffice } from "./offices.typings";
|
|
7
|
+
import { INestedPo } from "./po.typings";
|
|
7
8
|
import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
8
9
|
import { INestedRFQ } from "./rfq.typings";
|
|
9
10
|
import { INestedRole } from "./roles.typings";
|
|
@@ -38,14 +39,21 @@ export interface IStoreLocation {
|
|
|
38
39
|
as_shipping_location_for_rfqs?: null | INestedRFQ[];
|
|
39
40
|
target_offices?: null | INestedOffice[];
|
|
40
41
|
served_by_purchase_locations?: null | INestedPurchaseLocation[];
|
|
42
|
+
as_shipping_location_for_pos?: null | INestedPo[];
|
|
41
43
|
}
|
|
42
|
-
export interface INestedStoreLocation extends Omit<IStoreLocation, "company" | "store_incharge" | "approval_configs" | "inventory_entries" | "departments" | "roles" | "indents" | "mis" | "as_shipping_location_for_rfqs" | "target_offices" | "served_by_purchase_locations"> {
|
|
44
|
+
export interface INestedStoreLocation extends Omit<IStoreLocation, "company" | "store_incharge" | "approval_configs" | "inventory_entries" | "departments" | "roles" | "indents" | "mis" | "as_shipping_location_for_rfqs" | "target_offices" | "served_by_purchase_locations" | "as_shipping_location_for_pos"> {
|
|
43
45
|
}
|
|
44
46
|
export declare enum StoreLocationInclude {
|
|
47
|
+
company = "company",
|
|
48
|
+
store_incharge = "store_incharge",
|
|
45
49
|
approval_configs = "approval_configs",
|
|
46
50
|
inventory_entries = "inventory_entries",
|
|
47
51
|
departments = "departments",
|
|
48
52
|
roles = "roles",
|
|
53
|
+
indents = "indents",
|
|
54
|
+
mis = "mis",
|
|
55
|
+
as_shipping_location_for_rfqs = "as_shipping_location_for_rfqs",
|
|
49
56
|
target_offices = "target_offices",
|
|
50
|
-
served_by_purchase_locations = "served_by_purchase_locations"
|
|
57
|
+
served_by_purchase_locations = "served_by_purchase_locations",
|
|
58
|
+
as_shipping_location_for_pos = "as_shipping_location_for_pos"
|
|
51
59
|
}
|
|
@@ -3,10 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.StoreLocationInclude = void 0;
|
|
4
4
|
var StoreLocationInclude;
|
|
5
5
|
(function (StoreLocationInclude) {
|
|
6
|
+
StoreLocationInclude["company"] = "company";
|
|
7
|
+
StoreLocationInclude["store_incharge"] = "store_incharge";
|
|
6
8
|
StoreLocationInclude["approval_configs"] = "approval_configs";
|
|
7
9
|
StoreLocationInclude["inventory_entries"] = "inventory_entries";
|
|
8
10
|
StoreLocationInclude["departments"] = "departments";
|
|
9
11
|
StoreLocationInclude["roles"] = "roles";
|
|
12
|
+
StoreLocationInclude["indents"] = "indents";
|
|
13
|
+
StoreLocationInclude["mis"] = "mis";
|
|
14
|
+
StoreLocationInclude["as_shipping_location_for_rfqs"] = "as_shipping_location_for_rfqs";
|
|
10
15
|
StoreLocationInclude["target_offices"] = "target_offices";
|
|
11
16
|
StoreLocationInclude["served_by_purchase_locations"] = "served_by_purchase_locations";
|
|
17
|
+
StoreLocationInclude["as_shipping_location_for_pos"] = "as_shipping_location_for_pos";
|
|
12
18
|
})(StoreLocationInclude = exports.StoreLocationInclude || (exports.StoreLocationInclude = {}));
|
|
@@ -5,11 +5,12 @@ import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typi
|
|
|
5
5
|
import { INestedIndent } from "./indent.typings";
|
|
6
6
|
import { INestedItem } from "./item.typings";
|
|
7
7
|
import { INestedMI } from "./mi.typings";
|
|
8
|
+
import { INestedNegotiation } from "./negotiation.typings";
|
|
8
9
|
import { INestedOffice } from "./offices.typings";
|
|
9
10
|
import { INestedPR } from "./pr.typings";
|
|
10
11
|
import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
11
12
|
import { INestedRFQ } from "./rfq.typings";
|
|
12
|
-
import { INestedRole
|
|
13
|
+
import { INestedRole } from "./roles.typings";
|
|
13
14
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
14
15
|
export interface IUser {
|
|
15
16
|
id: string;
|
|
@@ -53,7 +54,8 @@ export interface IUser {
|
|
|
53
54
|
rfqs_sent_for_approval?: null | INestedRFQ[];
|
|
54
55
|
rfqs_sent_to_vendors?: null | INestedRFQ[];
|
|
55
56
|
created_rfq_items?: null | INestedRFQ[];
|
|
56
|
-
assigned_roles?: null |
|
|
57
|
+
assigned_roles?: null | INestedRole[];
|
|
58
|
+
negotiations?: null | INestedNegotiation[];
|
|
57
59
|
}
|
|
58
60
|
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_contact_person_companies" | "as_contact_person_offices" | "owned_companies" | "head_for_departments" | "approved_items" | "approval_chains" | "created_indents" | "created_mis" | "created_prs" | "created_rfqs" | "entity_approval_chains" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "assigned_roles"> {
|
|
59
61
|
}
|