kcommons 5.8.13 → 5.9.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/company.typings.d.ts +7 -2
- package/build/typings/company.typings.js +2 -0
- package/build/typings/department.typings.d.ts +5 -2
- package/build/typings/department.typings.js +1 -0
- package/build/typings/grn.typings.d.ts +9 -4
- package/build/typings/grn.typings.js +2 -0
- package/build/typings/item.typings.d.ts +3 -1
- package/build/typings/mrn.typings.d.ts +87 -1
- package/build/typings/mrn.typings.js +27 -0
- package/build/typings/storeLocation.typings.d.ts +4 -1
- package/build/typings/storeLocation.typings.js +1 -0
- package/build/typings/user.typings.d.ts +7 -2
- package/build/typings/user.typings.js +2 -0
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ import { INestedItem } from "./item.typings";
|
|
|
7
7
|
import { INestedItemCategory } from "./itemCategory.typings";
|
|
8
8
|
import { IItemSubcategory } from "./itemSubcategory.typings";
|
|
9
9
|
import { INestedMI, INestedMIItem } from "./mi.typings";
|
|
10
|
+
import { INestedMRN, INestedMRNItem } from "./mrn.typings";
|
|
10
11
|
import { INestedNegotiation } from "./negotiation.typings";
|
|
11
12
|
import { INestedOffice } from "./offices.typings";
|
|
12
13
|
import { INestedPo } from "./po.typings";
|
|
@@ -69,8 +70,10 @@ export interface ICompany extends IAddress {
|
|
|
69
70
|
company_pos?: null | INestedPo[];
|
|
70
71
|
company_grns?: INestedGRN[] | null;
|
|
71
72
|
company_grns_items?: INestedGRNItem[] | null;
|
|
73
|
+
company_mrns?: INestedMRN[] | null;
|
|
74
|
+
company_mrns_items?: INestedMRNItem[] | null;
|
|
72
75
|
}
|
|
73
|
-
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"> {
|
|
76
|
+
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"> {
|
|
74
77
|
}
|
|
75
78
|
export declare enum COMPANY_INCLUDE {
|
|
76
79
|
associated_purchase_locations = "associated_purchase_locations",
|
|
@@ -99,5 +102,7 @@ export declare enum COMPANY_INCLUDE {
|
|
|
99
102
|
company_negotiations = "company_negotiations",
|
|
100
103
|
company_pos = "company_pos",
|
|
101
104
|
company_grns = "company_grns",
|
|
102
|
-
company_grns_items = "company_grns_items"
|
|
105
|
+
company_grns_items = "company_grns_items",
|
|
106
|
+
company_mrns = "company_mrns",
|
|
107
|
+
company_mrns_items = "company_mrns_items"
|
|
103
108
|
}
|
|
@@ -30,4 +30,6 @@ var COMPANY_INCLUDE;
|
|
|
30
30
|
COMPANY_INCLUDE["company_pos"] = "company_pos";
|
|
31
31
|
COMPANY_INCLUDE["company_grns"] = "company_grns";
|
|
32
32
|
COMPANY_INCLUDE["company_grns_items"] = "company_grns_items";
|
|
33
|
+
COMPANY_INCLUDE["company_mrns"] = "company_mrns";
|
|
34
|
+
COMPANY_INCLUDE["company_mrns_items"] = "company_mrns_items";
|
|
33
35
|
})(COMPANY_INCLUDE || (exports.COMPANY_INCLUDE = COMPANY_INCLUDE = {}));
|
|
@@ -3,6 +3,7 @@ import { INestedGate } from "./gate.typings";
|
|
|
3
3
|
import { INestedGRN } from "./grn.typings";
|
|
4
4
|
import { INestedIndent } from "./indent.typings";
|
|
5
5
|
import { INestedMI } from "./mi.typings";
|
|
6
|
+
import { INestedMRN } from "./mrn.typings";
|
|
6
7
|
import { INestedOffice } from "./offices.typings";
|
|
7
8
|
import { INestedPR } from "./pr.typings";
|
|
8
9
|
import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
@@ -37,8 +38,9 @@ export interface IDepartment {
|
|
|
37
38
|
subdepartments?: null | INestedSubdepartment[];
|
|
38
39
|
roles?: null | INestedRole[];
|
|
39
40
|
grns?: null | INestedGRN[];
|
|
41
|
+
mrns?: null | INestedMRN[];
|
|
40
42
|
}
|
|
41
|
-
export interface INestedDepartment extends Omit<IDepartment, "company" | "hod" | "parent_office" | "parent_store_location" | "parent_purchase_location" | "parent_gate" | "indents" | "mis" | "prs" | "subdepartments" | "roles" | "grns"> {
|
|
43
|
+
export interface INestedDepartment extends Omit<IDepartment, "company" | "hod" | "parent_office" | "parent_store_location" | "parent_purchase_location" | "parent_gate" | "indents" | "mis" | "prs" | "subdepartments" | "roles" | "grns" | "mrns"> {
|
|
42
44
|
}
|
|
43
45
|
export declare const DEPT_TYPES: {
|
|
44
46
|
PURCHASE: string;
|
|
@@ -49,7 +51,8 @@ export declare enum DepartmentInclude {
|
|
|
49
51
|
subdepartments = "subdepartments",
|
|
50
52
|
roles = "roles",
|
|
51
53
|
hod = "hod",
|
|
52
|
-
grns = "grns"
|
|
54
|
+
grns = "grns",
|
|
55
|
+
mrns = "mrns"
|
|
53
56
|
}
|
|
54
57
|
export interface ISubDepartment {
|
|
55
58
|
id: string;
|
|
@@ -4,6 +4,7 @@ import { INestedCompany } from "./company.typings";
|
|
|
4
4
|
import { INestedDepartment } from "./department.typings";
|
|
5
5
|
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
6
6
|
import { INestedItem } from "./item.typings";
|
|
7
|
+
import { INestedMRN, INestedMRNItem } from "./mrn.typings";
|
|
7
8
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
8
9
|
import { INestedUser } from "./user.typings";
|
|
9
10
|
export declare enum GRN_INCLUDE {
|
|
@@ -15,7 +16,8 @@ export declare enum GRN_INCLUDE {
|
|
|
15
16
|
items = "items",
|
|
16
17
|
approval_chain = "approval_chain",
|
|
17
18
|
sent_for_approval_by = "sent_for_approval_by",
|
|
18
|
-
sent_to_store_by = "sent_to_store_by"
|
|
19
|
+
sent_to_store_by = "sent_to_store_by",
|
|
20
|
+
child_mrns = "child_mrns"
|
|
19
21
|
}
|
|
20
22
|
export interface IGRNFilters {
|
|
21
23
|
company_id?: string;
|
|
@@ -59,17 +61,19 @@ export interface IGRN {
|
|
|
59
61
|
parent_asn?: INestedASN | null;
|
|
60
62
|
contact_person?: INestedUser | null;
|
|
61
63
|
items?: INestedGRNItem[] | null;
|
|
64
|
+
child_mrns?: INestedMRN[] | null;
|
|
62
65
|
approval_chain?: INestedEntityApprovalChainEntry[] | null;
|
|
63
66
|
sent_for_approval_by?: INestedUser | null;
|
|
64
67
|
sent_to_store_by?: INestedUser | null;
|
|
65
68
|
}
|
|
66
|
-
export interface INestedGRN extends Omit<IGRN, "company" | "shipping_store_location" | "department" | "parent_asn" | "contact_person" | "items" | "approval_chain" | "sent_for_approval_by" | "sent_to_store_by"> {
|
|
69
|
+
export interface INestedGRN extends Omit<IGRN, "company" | "shipping_store_location" | "department" | "parent_asn" | "contact_person" | "items" | "approval_chain" | "sent_for_approval_by" | "sent_to_store_by" | "child_mrns"> {
|
|
67
70
|
}
|
|
68
71
|
export declare enum GRN_ITEM_INCLUDE {
|
|
69
72
|
company = "company",
|
|
70
73
|
parent_grn = "parent_grn",
|
|
71
74
|
item = "item",
|
|
72
|
-
parent_asn_item = "parent_asn_item"
|
|
75
|
+
parent_asn_item = "parent_asn_item",
|
|
76
|
+
referenced_in_mrn_items = "referenced_in_mrn_items"
|
|
73
77
|
}
|
|
74
78
|
export interface IGRNItem {
|
|
75
79
|
id: string;
|
|
@@ -91,6 +95,7 @@ export interface IGRNItem {
|
|
|
91
95
|
parent_grn?: INestedGRN | null;
|
|
92
96
|
item?: INestedItem | null;
|
|
93
97
|
parent_asn_item?: INestedASNItem | null;
|
|
98
|
+
referenced_in_mrn_items?: INestedMRNItem[] | null;
|
|
94
99
|
}
|
|
95
|
-
export interface INestedGRNItem extends Omit<IGRNItem, "company" | "parent_grn" | "item" | "parent_asn_item"> {
|
|
100
|
+
export interface INestedGRNItem extends Omit<IGRNItem, "company" | "parent_grn" | "item" | "parent_asn_item" | "referenced_in_mrn_items"> {
|
|
96
101
|
}
|
|
@@ -12,6 +12,7 @@ var GRN_INCLUDE;
|
|
|
12
12
|
GRN_INCLUDE["approval_chain"] = "approval_chain";
|
|
13
13
|
GRN_INCLUDE["sent_for_approval_by"] = "sent_for_approval_by";
|
|
14
14
|
GRN_INCLUDE["sent_to_store_by"] = "sent_to_store_by";
|
|
15
|
+
GRN_INCLUDE["child_mrns"] = "child_mrns";
|
|
15
16
|
})(GRN_INCLUDE || (exports.GRN_INCLUDE = GRN_INCLUDE = {}));
|
|
16
17
|
var GRN_STATUS;
|
|
17
18
|
(function (GRN_STATUS) {
|
|
@@ -28,4 +29,5 @@ var GRN_ITEM_INCLUDE;
|
|
|
28
29
|
GRN_ITEM_INCLUDE["parent_grn"] = "parent_grn";
|
|
29
30
|
GRN_ITEM_INCLUDE["item"] = "item";
|
|
30
31
|
GRN_ITEM_INCLUDE["parent_asn_item"] = "parent_asn_item";
|
|
32
|
+
GRN_ITEM_INCLUDE["referenced_in_mrn_items"] = "referenced_in_mrn_items";
|
|
31
33
|
})(GRN_ITEM_INCLUDE || (exports.GRN_ITEM_INCLUDE = GRN_ITEM_INCLUDE = {}));
|
|
@@ -4,6 +4,7 @@ import { INestedIndentItem } from "./indent.typings";
|
|
|
4
4
|
import { INestedItemCategory } from "./itemCategory.typings";
|
|
5
5
|
import { INestedItemSubcategory } from "./itemSubcategory.typings";
|
|
6
6
|
import { INestedMIItem } from "./mi.typings";
|
|
7
|
+
import { INestedMRNItem } from "./mrn.typings";
|
|
7
8
|
import { INestedPrItem } from "./pr.typings";
|
|
8
9
|
import { INestedQuoteItems } from "./quote.typings";
|
|
9
10
|
import { INestedInventoryItem } from "./storeInventory.typings";
|
|
@@ -44,8 +45,9 @@ export interface IItem {
|
|
|
44
45
|
used_in_pr_items?: INestedPrItem[] | null;
|
|
45
46
|
used_in_quote_items?: INestedQuoteItems[] | null;
|
|
46
47
|
used_in_grn_items?: INestedGRNItem[] | null;
|
|
48
|
+
used_in_mrn_items?: INestedMRNItem[] | null;
|
|
47
49
|
}
|
|
48
|
-
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"> {
|
|
50
|
+
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"> {
|
|
49
51
|
}
|
|
50
52
|
export declare const ITEM_CLASSIFICATION: {
|
|
51
53
|
DIRECT: string;
|
|
@@ -1,5 +1,91 @@
|
|
|
1
|
+
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
2
|
+
import { INestedCompany } from "./company.typings";
|
|
3
|
+
import { INestedDepartment } from "./department.typings";
|
|
4
|
+
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
5
|
+
import { INestedGRN, INestedGRNItem } from "./grn.typings";
|
|
6
|
+
import { INestedItem } from "./item.typings";
|
|
7
|
+
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
8
|
+
import { INestedUser } from "./user.typings";
|
|
9
|
+
export interface IMRNFilters {
|
|
10
|
+
company_id?: string;
|
|
11
|
+
department_id?: string;
|
|
12
|
+
store_location_id?: string;
|
|
13
|
+
status?: MRN_STATUS;
|
|
14
|
+
}
|
|
15
|
+
export interface IMRNFiltersWithPagination extends IMRNFilters, IPaginationFilters {
|
|
16
|
+
}
|
|
17
|
+
export declare enum MRN_INCLUDE {
|
|
18
|
+
company = "company",
|
|
19
|
+
parent_grn = "parent_grn",
|
|
20
|
+
parent_department = "parent_department",
|
|
21
|
+
parent_store_location = "parent_store_location",
|
|
22
|
+
contact_person = "contact_person",
|
|
23
|
+
sent_for_approval_by = "sent_for_approval_by",
|
|
24
|
+
approval_chain = "approval_chain",
|
|
25
|
+
items = "items"
|
|
26
|
+
}
|
|
27
|
+
export declare enum MRN_STATUS {
|
|
28
|
+
DRAFT = "DRAFT",
|
|
29
|
+
PENDING_APPROVAL = "PENDING APPROVAL",
|
|
30
|
+
APPROVED = "APPROVED",
|
|
31
|
+
REJECTED = "REJECTED",
|
|
32
|
+
CLOSED = "CLOSED"
|
|
33
|
+
}
|
|
1
34
|
export interface IMRN {
|
|
2
35
|
id: string;
|
|
36
|
+
company_id: string;
|
|
37
|
+
mrn_no: string;
|
|
38
|
+
created_by_id: string;
|
|
39
|
+
parent_grn_id: string | null;
|
|
40
|
+
parent_department_id: string;
|
|
41
|
+
parent_store_location_id: string;
|
|
42
|
+
contact_person_id: string | null;
|
|
43
|
+
status: string;
|
|
44
|
+
attachment_link: string | null;
|
|
45
|
+
remark: string | null;
|
|
46
|
+
send_for_approval_at: string | null;
|
|
47
|
+
sent_for_approval_by_id: string | null;
|
|
48
|
+
is_deleted: boolean;
|
|
49
|
+
deleted_at: string | null;
|
|
50
|
+
created_at: string;
|
|
51
|
+
updated_at: string;
|
|
52
|
+
company: INestedCompany | null;
|
|
53
|
+
parent_grn: INestedGRN | null;
|
|
54
|
+
parent_department: INestedDepartment | null;
|
|
55
|
+
parent_store_location: INestedStoreLocation | null;
|
|
56
|
+
contact_person: INestedUser | null;
|
|
57
|
+
sent_for_approval_by: INestedUser | null;
|
|
58
|
+
approval_chain: INestedEntityApprovalChainEntry | null;
|
|
59
|
+
items: INestedMRNItem[] | null;
|
|
60
|
+
}
|
|
61
|
+
export interface INestedMRN extends Omit<IMRN, "company" | "parent_grn" | "parent_department" | "parent_store_location" | "contact_person" | "sent_for_approval_by" | "approval_chain" | "items"> {
|
|
62
|
+
}
|
|
63
|
+
export declare enum MRN_ITEM_INCLUDE {
|
|
64
|
+
parent_mrn = "parent_mrn",
|
|
65
|
+
company = "company",
|
|
66
|
+
item = "item",
|
|
67
|
+
parent_grn_item = "parent_grn_item"
|
|
68
|
+
}
|
|
69
|
+
export interface IMRNItem {
|
|
70
|
+
id: string;
|
|
71
|
+
parent_mrn_id: string;
|
|
72
|
+
company_id: string;
|
|
73
|
+
item_id: string;
|
|
74
|
+
item_name: string;
|
|
75
|
+
code_sku: string;
|
|
76
|
+
uom: string;
|
|
77
|
+
expected_quantity: number;
|
|
78
|
+
actual_quantity: number;
|
|
79
|
+
item_description: string | null;
|
|
80
|
+
parent_grn_item_id: string | null;
|
|
81
|
+
is_deleted: boolean;
|
|
82
|
+
deleted_at: Date | null;
|
|
83
|
+
created_at: Date;
|
|
84
|
+
updated_at: Date;
|
|
85
|
+
parent_mrn: INestedMRN | null;
|
|
86
|
+
company: INestedCompany | null;
|
|
87
|
+
item: INestedItem | null;
|
|
88
|
+
parent_grn_item: INestedGRNItem | null;
|
|
3
89
|
}
|
|
4
|
-
export interface
|
|
90
|
+
export interface INestedMRNItem extends Omit<IMRNItem, "parent_mrn" | "company" | "item" | "parent_grn_item"> {
|
|
5
91
|
}
|
|
@@ -1,2 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MRN_ITEM_INCLUDE = exports.MRN_STATUS = exports.MRN_INCLUDE = void 0;
|
|
4
|
+
var MRN_INCLUDE;
|
|
5
|
+
(function (MRN_INCLUDE) {
|
|
6
|
+
MRN_INCLUDE["company"] = "company";
|
|
7
|
+
MRN_INCLUDE["parent_grn"] = "parent_grn";
|
|
8
|
+
MRN_INCLUDE["parent_department"] = "parent_department";
|
|
9
|
+
MRN_INCLUDE["parent_store_location"] = "parent_store_location";
|
|
10
|
+
MRN_INCLUDE["contact_person"] = "contact_person";
|
|
11
|
+
MRN_INCLUDE["sent_for_approval_by"] = "sent_for_approval_by";
|
|
12
|
+
MRN_INCLUDE["approval_chain"] = "approval_chain";
|
|
13
|
+
MRN_INCLUDE["items"] = "items";
|
|
14
|
+
})(MRN_INCLUDE || (exports.MRN_INCLUDE = MRN_INCLUDE = {}));
|
|
15
|
+
var MRN_STATUS;
|
|
16
|
+
(function (MRN_STATUS) {
|
|
17
|
+
MRN_STATUS["DRAFT"] = "DRAFT";
|
|
18
|
+
MRN_STATUS["PENDING_APPROVAL"] = "PENDING APPROVAL";
|
|
19
|
+
MRN_STATUS["APPROVED"] = "APPROVED";
|
|
20
|
+
MRN_STATUS["REJECTED"] = "REJECTED";
|
|
21
|
+
MRN_STATUS["CLOSED"] = "CLOSED";
|
|
22
|
+
})(MRN_STATUS || (exports.MRN_STATUS = MRN_STATUS = {}));
|
|
23
|
+
var MRN_ITEM_INCLUDE;
|
|
24
|
+
(function (MRN_ITEM_INCLUDE) {
|
|
25
|
+
MRN_ITEM_INCLUDE["parent_mrn"] = "parent_mrn";
|
|
26
|
+
MRN_ITEM_INCLUDE["company"] = "company";
|
|
27
|
+
MRN_ITEM_INCLUDE["item"] = "item";
|
|
28
|
+
MRN_ITEM_INCLUDE["parent_grn_item"] = "parent_grn_item";
|
|
29
|
+
})(MRN_ITEM_INCLUDE || (exports.MRN_ITEM_INCLUDE = MRN_ITEM_INCLUDE = {}));
|
|
@@ -6,6 +6,7 @@ import { INestedGate } from "./gate.typings";
|
|
|
6
6
|
import { INestedGRN } from "./grn.typings";
|
|
7
7
|
import { INestedIndent } from "./indent.typings";
|
|
8
8
|
import { INestedMI } from "./mi.typings";
|
|
9
|
+
import { INestedMRN } from "./mrn.typings";
|
|
9
10
|
import { INestedOffice } from "./offices.typings";
|
|
10
11
|
import { INestedPo } from "./po.typings";
|
|
11
12
|
import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
@@ -35,6 +36,7 @@ export interface IStoreLocation extends IAddress {
|
|
|
35
36
|
roles?: null | INestedRole[];
|
|
36
37
|
indents?: null | INestedIndent[];
|
|
37
38
|
mis?: null | INestedMI[];
|
|
39
|
+
mrns?: null | INestedMRN[];
|
|
38
40
|
as_shipping_location_for_rfqs?: null | INestedRFQ[];
|
|
39
41
|
as_shipping_location_for_quotes?: null | INestedQuote[];
|
|
40
42
|
target_offices?: null | INestedOffice[];
|
|
@@ -44,7 +46,7 @@ export interface IStoreLocation extends IAddress {
|
|
|
44
46
|
as_shipping_location_for_grns?: null | INestedGRN[];
|
|
45
47
|
as_shipping_location_for_asns?: null | INestedASN[];
|
|
46
48
|
}
|
|
47
|
-
export interface INestedStoreLocation extends Omit<IStoreLocation, "company" | "store_incharge" | "approval_configs" | "inventory_entries" | "departments" | "roles" | "indents" | "mis" | "as_shipping_location_for_rfqs" | "as_shipping_location_for_quotes" | "target_offices" | "served_by_gates" | "served_by_purchase_locations" | "as_shipping_location_for_pos" | "as_shipping_location_for_grns" | "as_shipping_location_for_asns"> {
|
|
49
|
+
export interface INestedStoreLocation extends Omit<IStoreLocation, "company" | "store_incharge" | "approval_configs" | "inventory_entries" | "departments" | "roles" | "indents" | "mis" | "mrns" | "as_shipping_location_for_rfqs" | "as_shipping_location_for_quotes" | "target_offices" | "served_by_gates" | "served_by_purchase_locations" | "as_shipping_location_for_pos" | "as_shipping_location_for_grns" | "as_shipping_location_for_asns"> {
|
|
48
50
|
}
|
|
49
51
|
export declare enum StoreLocationInclude {
|
|
50
52
|
company = "company",
|
|
@@ -55,6 +57,7 @@ export declare enum StoreLocationInclude {
|
|
|
55
57
|
roles = "roles",
|
|
56
58
|
indents = "indents",
|
|
57
59
|
mis = "mis",
|
|
60
|
+
mrns = "mrns",
|
|
58
61
|
as_shipping_location_for_rfqs = "as_shipping_location_for_rfqs",
|
|
59
62
|
as_shipping_location_for_quotes = "as_shipping_location_for_quotes",
|
|
60
63
|
target_offices = "target_offices",
|
|
@@ -11,6 +11,7 @@ var StoreLocationInclude;
|
|
|
11
11
|
StoreLocationInclude["roles"] = "roles";
|
|
12
12
|
StoreLocationInclude["indents"] = "indents";
|
|
13
13
|
StoreLocationInclude["mis"] = "mis";
|
|
14
|
+
StoreLocationInclude["mrns"] = "mrns";
|
|
14
15
|
StoreLocationInclude["as_shipping_location_for_rfqs"] = "as_shipping_location_for_rfqs";
|
|
15
16
|
StoreLocationInclude["as_shipping_location_for_quotes"] = "as_shipping_location_for_quotes";
|
|
16
17
|
StoreLocationInclude["target_offices"] = "target_offices";
|
|
@@ -7,6 +7,7 @@ import { INestedGRN } from "./grn.typings";
|
|
|
7
7
|
import { INestedIndent } from "./indent.typings";
|
|
8
8
|
import { INestedItem } from "./item.typings";
|
|
9
9
|
import { INestedMI } from "./mi.typings";
|
|
10
|
+
import { INestedMRN } from "./mrn.typings";
|
|
10
11
|
import { INestedNegotiation } from "./negotiation.typings";
|
|
11
12
|
import { INestedOffice } from "./offices.typings";
|
|
12
13
|
import { INestedPo } from "./po.typings";
|
|
@@ -64,12 +65,14 @@ export interface IUser {
|
|
|
64
65
|
negotiations?: null | INestedNegotiation[];
|
|
65
66
|
created_pos?: null | INestedPo[];
|
|
66
67
|
as_contact_person_for_pos?: null | INestedPo[];
|
|
68
|
+
as_contact_person_for_mrns?: null | INestedMRN[];
|
|
67
69
|
pos_sent_for_approval?: null | INestedPo[];
|
|
68
70
|
pos_sent_to_vendors?: null | INestedPo[];
|
|
69
71
|
grns_sent_for_approval?: INestedGRN[] | null;
|
|
70
72
|
grns_sent_to_store?: INestedGRN[] | null;
|
|
73
|
+
mrns_sent_for_approval?: INestedMRN[] | null;
|
|
71
74
|
}
|
|
72
|
-
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" | "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" | "negotiations" | "created_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "grns_sent_for_approval" | "grns_sent_to_store"> {
|
|
75
|
+
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" | "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"> {
|
|
73
76
|
}
|
|
74
77
|
export declare enum UserInclude {
|
|
75
78
|
as_incharge_in_purchase_locations = "as_incharge_in_purchase_locations",
|
|
@@ -91,5 +94,7 @@ export declare enum UserInclude {
|
|
|
91
94
|
pos_sent_for_approval = "pos_sent_for_approval",
|
|
92
95
|
pos_sent_to_vendors = "pos_sent_to_vendors",
|
|
93
96
|
grns_sent_for_approval = "grns_sent_for_approval",
|
|
94
|
-
grns_sent_to_store = "grns_sent_to_store"
|
|
97
|
+
grns_sent_to_store = "grns_sent_to_store",
|
|
98
|
+
mrns_sent_for_approval = "mrns_sent_for_approval",
|
|
99
|
+
as_contact_person_for_mrns = "as_contact_person_for_mrns"
|
|
95
100
|
}
|
|
@@ -24,4 +24,6 @@ var UserInclude;
|
|
|
24
24
|
UserInclude["pos_sent_to_vendors"] = "pos_sent_to_vendors";
|
|
25
25
|
UserInclude["grns_sent_for_approval"] = "grns_sent_for_approval";
|
|
26
26
|
UserInclude["grns_sent_to_store"] = "grns_sent_to_store";
|
|
27
|
+
UserInclude["mrns_sent_for_approval"] = "mrns_sent_for_approval";
|
|
28
|
+
UserInclude["as_contact_person_for_mrns"] = "as_contact_person_for_mrns";
|
|
27
29
|
})(UserInclude || (exports.UserInclude = UserInclude = {}));
|