kcommons 9.6.1 → 9.7.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 -1
- package/build/constants/permission.constants.js +2 -14
- package/build/index.d.ts +2 -1
- package/build/index.js +2 -1
- package/build/typings/company/iad/iad.typings.d.ts +5 -2
- package/build/typings/company/iad/iad.typings.js +1 -0
- package/build/typings/company/inventory/inventoryLogger.typings.d.ts +64 -0
- package/build/typings/company/inventory/inventoryLogger.typings.js +28 -0
- package/build/typings/company/inventory/storeInventory.typings.d.ts +33 -0
- package/build/typings/company/inventory/storeInventory.typings.js +8 -0
- package/build/typings/company/istd/istd.typings.d.ts +5 -2
- package/build/typings/company/istd/istd.typings.js +1 -0
- package/build/typings/company.typings.d.ts +5 -2
- package/build/typings/company.typings.js +1 -0
- package/build/typings/item.typings.d.ts +6 -3
- package/build/typings/item.typings.js +1 -0
- package/build/typings/mi.typings.d.ts +5 -2
- package/build/typings/mi.typings.js +1 -0
- package/build/typings/mrn.typings.d.ts +5 -2
- package/build/typings/mrn.typings.js +1 -0
- package/build/typings/storeLocation.typings.d.ts +6 -3
- package/build/typings/storeLocation.typings.js +1 -0
- package/build/typings/user.typings.d.ts +5 -2
- package/build/typings/user.typings.js +1 -0
- package/package.json +1 -1
|
@@ -18,12 +18,11 @@ var DOCUMENTS;
|
|
|
18
18
|
DOCUMENTS["MRN"] = "MRN";
|
|
19
19
|
DOCUMENTS["PR"] = "PR";
|
|
20
20
|
DOCUMENTS["RFQ"] = "RFQ";
|
|
21
|
-
// RFI = "RFI",
|
|
22
|
-
// RFP = "RFP",
|
|
23
21
|
DOCUMENTS["PO"] = "PO";
|
|
24
22
|
DOCUMENTS["GRN"] = "GRN";
|
|
25
23
|
DOCUMENTS["COMPARATIVE"] = "COMPARATIVE";
|
|
26
24
|
DOCUMENTS["ISTD"] = "ISTD";
|
|
25
|
+
DOCUMENTS["IAD"] = "IAD";
|
|
27
26
|
})(DOCUMENTS || (exports.DOCUMENTS = DOCUMENTS = {}));
|
|
28
27
|
var RFQ_TO_PO_DOCUMENTS;
|
|
29
28
|
(function (RFQ_TO_PO_DOCUMENTS) {
|
|
@@ -61,18 +60,6 @@ exports.PERMISSION_CONFIG = {
|
|
|
61
60
|
PERMISSION_ACTIONS.READ_ONLY,
|
|
62
61
|
PERMISSION_ACTIONS.CRUDSAC,
|
|
63
62
|
],
|
|
64
|
-
// [DOCUMENTS.RFI]: [
|
|
65
|
-
// PERMISSION_ACTIONS.STV,
|
|
66
|
-
// PERMISSION_ACTIONS.APPROVALS,
|
|
67
|
-
// PERMISSION_ACTIONS.READ_ONLY,
|
|
68
|
-
// PERMISSION_ACTIONS.CRUDSAC,
|
|
69
|
-
// ],
|
|
70
|
-
// [DOCUMENTS.RFP]: [
|
|
71
|
-
// PERMISSION_ACTIONS.STV,
|
|
72
|
-
// PERMISSION_ACTIONS.APPROVALS,
|
|
73
|
-
// PERMISSION_ACTIONS.READ_ONLY,
|
|
74
|
-
// PERMISSION_ACTIONS.CRUDSAC,
|
|
75
|
-
// ],
|
|
76
63
|
[DOCUMENTS.PO]: [
|
|
77
64
|
PERMISSION_ACTIONS.STV,
|
|
78
65
|
PERMISSION_ACTIONS.APPROVALS,
|
|
@@ -105,6 +92,7 @@ exports.EntitySpecificDocuments = {
|
|
|
105
92
|
DOCUMENTS.MI,
|
|
106
93
|
DOCUMENTS.INDENT,
|
|
107
94
|
DOCUMENTS.ISTD,
|
|
95
|
+
DOCUMENTS.IAD,
|
|
108
96
|
],
|
|
109
97
|
[entityTypes_constants_1.EntityTypes.PURCHASE_LOCATION]: [
|
|
110
98
|
DOCUMENTS.RFQ,
|
package/build/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export * from "./typings/mi.typings";
|
|
|
13
13
|
export * from "./typings/pr.typings";
|
|
14
14
|
export * from "./typings/rfq.typings";
|
|
15
15
|
export * from "./typings/company.typings";
|
|
16
|
-
export * from "./typings/storeInventory.typings";
|
|
16
|
+
export * from "./typings/company/inventory/storeInventory.typings";
|
|
17
17
|
export * from "./typings/vendor.typings";
|
|
18
18
|
export * from "./typings/vendorGroup.typings";
|
|
19
19
|
export * from "./typings/item.typings";
|
|
@@ -48,6 +48,7 @@ export * from "./typings/companyItemVendorVersion.typings";
|
|
|
48
48
|
export * from "./typings/company/istd/istd.typings";
|
|
49
49
|
export * from "./typings/company/istd/istdItems.typings";
|
|
50
50
|
export * from "./typings/company/iad/iad.typings";
|
|
51
|
+
export * from "./typings/company/inventory/inventoryLogger.typings";
|
|
51
52
|
export * from "./constants/permission.constants";
|
|
52
53
|
export * from "./constants/entityTypes.constants";
|
|
53
54
|
export * from "./constants/statuses.constants";
|
package/build/index.js
CHANGED
|
@@ -30,7 +30,7 @@ __exportStar(require("./typings/mi.typings"), exports);
|
|
|
30
30
|
__exportStar(require("./typings/pr.typings"), exports);
|
|
31
31
|
__exportStar(require("./typings/rfq.typings"), exports);
|
|
32
32
|
__exportStar(require("./typings/company.typings"), exports);
|
|
33
|
-
__exportStar(require("./typings/storeInventory.typings"), exports);
|
|
33
|
+
__exportStar(require("./typings/company/inventory/storeInventory.typings"), exports);
|
|
34
34
|
__exportStar(require("./typings/vendor.typings"), exports);
|
|
35
35
|
__exportStar(require("./typings/vendorGroup.typings"), exports);
|
|
36
36
|
__exportStar(require("./typings/item.typings"), exports);
|
|
@@ -65,6 +65,7 @@ __exportStar(require("./typings/companyItemVendorVersion.typings"), exports);
|
|
|
65
65
|
__exportStar(require("./typings/company/istd/istd.typings"), exports);
|
|
66
66
|
__exportStar(require("./typings/company/istd/istdItems.typings"), exports);
|
|
67
67
|
__exportStar(require("./typings/company/iad/iad.typings"), exports);
|
|
68
|
+
__exportStar(require("./typings/company/inventory/inventoryLogger.typings"), exports);
|
|
68
69
|
// Constants
|
|
69
70
|
__exportStar(require("./constants/permission.constants"), exports);
|
|
70
71
|
__exportStar(require("./constants/entityTypes.constants"), exports);
|
|
@@ -3,6 +3,7 @@ import { INestedCompany } from "../../company.typings";
|
|
|
3
3
|
import { INestedItem } from "../../item.typings";
|
|
4
4
|
import { INestedStoreLocation } from "../../storeLocation.typings";
|
|
5
5
|
import { INestedUser } from "../../user.typings";
|
|
6
|
+
import { INestedInventoryLog } from "../inventory/inventoryLogger.typings";
|
|
6
7
|
export declare enum IAD_TYPE {
|
|
7
8
|
STOCK_REDUCTION = "STOCK_REDUCTION",
|
|
8
9
|
STOCK_INTAKE = "STOCK_INTAKE"
|
|
@@ -20,7 +21,8 @@ export declare enum IAD_INCLUDE {
|
|
|
20
21
|
finalised_by_user = "finalised_by_user",
|
|
21
22
|
assigned_approver = "assigned_approver",
|
|
22
23
|
terminated_by = "terminated_by",
|
|
23
|
-
last_updated_by_user = "last_updated_by_user"
|
|
24
|
+
last_updated_by_user = "last_updated_by_user",
|
|
25
|
+
inventory_logs = "inventory_logs"
|
|
24
26
|
}
|
|
25
27
|
export interface IIAD {
|
|
26
28
|
id: string;
|
|
@@ -56,8 +58,9 @@ export interface IIAD {
|
|
|
56
58
|
assigned_approver: INestedUser | null;
|
|
57
59
|
finalised_by_user: INestedUser | null;
|
|
58
60
|
terminated_by: INestedUser | null;
|
|
61
|
+
inventory_logs: INestedInventoryLog[] | null;
|
|
59
62
|
}
|
|
60
|
-
export interface INestedIAD extends Omit<IIAD, "company" | "item" | "store_location" | "created_by_user" | "last_updated_by_user" | "assigned_approver" | "finalised_by_user" | "terminated_by"> {
|
|
63
|
+
export interface INestedIAD extends Omit<IIAD, "company" | "item" | "store_location" | "created_by_user" | "last_updated_by_user" | "assigned_approver" | "finalised_by_user" | "terminated_by" | "inventory_logs"> {
|
|
61
64
|
}
|
|
62
65
|
export interface IIADFilters extends Partial<Pick<IIAD, "store_location_id" | "item_id" | "is_approved" | "status">> {
|
|
63
66
|
name?: string | null;
|
|
@@ -22,4 +22,5 @@ var IAD_INCLUDE;
|
|
|
22
22
|
IAD_INCLUDE["assigned_approver"] = "assigned_approver";
|
|
23
23
|
IAD_INCLUDE["terminated_by"] = "terminated_by";
|
|
24
24
|
IAD_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
|
|
25
|
+
IAD_INCLUDE["inventory_logs"] = "inventory_logs";
|
|
25
26
|
})(IAD_INCLUDE || (exports.IAD_INCLUDE = IAD_INCLUDE = {}));
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { INestedCompany } from "../../company.typings";
|
|
2
|
+
import { INestedIAD } from "../iad/iad.typings";
|
|
3
|
+
import { INestedISTD } from "../istd/istd.typings";
|
|
4
|
+
import { INestedItem } from "../../item.typings";
|
|
5
|
+
import { INestedMI } from "../../mi.typings";
|
|
6
|
+
import { INestedMRN } from "../../mrn.typings";
|
|
7
|
+
import { INestedStoreLocation } from "../../storeLocation.typings";
|
|
8
|
+
import { INestedUser } from "../../user.typings";
|
|
9
|
+
import { IPaginationFilters } from "../../common/paginationFilters.typings";
|
|
10
|
+
import { INestedInventoryItem } from "./storeInventory.typings";
|
|
11
|
+
export declare enum INVENTORY_LOG_ACTIONS {
|
|
12
|
+
INTAKE = "INTAKE",
|
|
13
|
+
DEDUCTED = "DEDUCTED",
|
|
14
|
+
LOCKED = "LOCKED",
|
|
15
|
+
UNLOCKED = "UNLOCKED"
|
|
16
|
+
}
|
|
17
|
+
export declare enum INVENTORY_LOG_DOCUMENTS {
|
|
18
|
+
IAD = "IAD",
|
|
19
|
+
MI = "MI",
|
|
20
|
+
MRN = "MRN",
|
|
21
|
+
ISTD = "ISTD"
|
|
22
|
+
}
|
|
23
|
+
export declare enum INVENTORY_LOG_INCLUDE {
|
|
24
|
+
company = "company",
|
|
25
|
+
item = "item",
|
|
26
|
+
store_location = "store_location",
|
|
27
|
+
mrn = "mrn",
|
|
28
|
+
mi = "mi",
|
|
29
|
+
istd = "istd",
|
|
30
|
+
iad = "iad",
|
|
31
|
+
initiator = "initiator"
|
|
32
|
+
}
|
|
33
|
+
export interface IInventoryLogs {
|
|
34
|
+
id: string;
|
|
35
|
+
action: INVENTORY_LOG_ACTIONS;
|
|
36
|
+
company_id: string;
|
|
37
|
+
document_type: string;
|
|
38
|
+
item_id: string;
|
|
39
|
+
store_location_id: string;
|
|
40
|
+
mrn_id: string | null;
|
|
41
|
+
mi_id: string | null;
|
|
42
|
+
istd_id: string | null;
|
|
43
|
+
iad_id: string | null;
|
|
44
|
+
initiator_user_id: string;
|
|
45
|
+
quantity: number | null;
|
|
46
|
+
created_at: string;
|
|
47
|
+
updated_at: string;
|
|
48
|
+
company: INestedCompany | null;
|
|
49
|
+
item: INestedItem | null;
|
|
50
|
+
store_location: INestedStoreLocation | null;
|
|
51
|
+
mrn: INestedMRN | null;
|
|
52
|
+
mi: INestedMI | null;
|
|
53
|
+
istd: INestedISTD | null;
|
|
54
|
+
iad: INestedIAD | null;
|
|
55
|
+
initiator: INestedUser | null;
|
|
56
|
+
inventory_ite: INestedInventoryItem | null;
|
|
57
|
+
}
|
|
58
|
+
export interface INestedInventoryLog extends Omit<IInventoryLogs, "company" | "item" | "store_location" | "mrn" | "mi" | "istd" | "iad" | "initiator"> {
|
|
59
|
+
}
|
|
60
|
+
export interface IInventoryLogFilters extends Partial<Pick<IInventoryLogs, "item_id" | "store_location_id" | "mrn_id" | "istd_id" | "mi_id" | "iad_id" | "initiator_user_id">> {
|
|
61
|
+
}
|
|
62
|
+
export interface IInventoryLogFiltersWithPagination extends IInventoryLogFilters, IPaginationFilters {
|
|
63
|
+
include?: INVENTORY_LOG_INCLUDE[];
|
|
64
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.INVENTORY_LOG_INCLUDE = exports.INVENTORY_LOG_DOCUMENTS = exports.INVENTORY_LOG_ACTIONS = void 0;
|
|
4
|
+
var INVENTORY_LOG_ACTIONS;
|
|
5
|
+
(function (INVENTORY_LOG_ACTIONS) {
|
|
6
|
+
INVENTORY_LOG_ACTIONS["INTAKE"] = "INTAKE";
|
|
7
|
+
INVENTORY_LOG_ACTIONS["DEDUCTED"] = "DEDUCTED";
|
|
8
|
+
INVENTORY_LOG_ACTIONS["LOCKED"] = "LOCKED";
|
|
9
|
+
INVENTORY_LOG_ACTIONS["UNLOCKED"] = "UNLOCKED";
|
|
10
|
+
})(INVENTORY_LOG_ACTIONS || (exports.INVENTORY_LOG_ACTIONS = INVENTORY_LOG_ACTIONS = {}));
|
|
11
|
+
var INVENTORY_LOG_DOCUMENTS;
|
|
12
|
+
(function (INVENTORY_LOG_DOCUMENTS) {
|
|
13
|
+
INVENTORY_LOG_DOCUMENTS["IAD"] = "IAD";
|
|
14
|
+
INVENTORY_LOG_DOCUMENTS["MI"] = "MI";
|
|
15
|
+
INVENTORY_LOG_DOCUMENTS["MRN"] = "MRN";
|
|
16
|
+
INVENTORY_LOG_DOCUMENTS["ISTD"] = "ISTD";
|
|
17
|
+
})(INVENTORY_LOG_DOCUMENTS || (exports.INVENTORY_LOG_DOCUMENTS = INVENTORY_LOG_DOCUMENTS = {}));
|
|
18
|
+
var INVENTORY_LOG_INCLUDE;
|
|
19
|
+
(function (INVENTORY_LOG_INCLUDE) {
|
|
20
|
+
INVENTORY_LOG_INCLUDE["company"] = "company";
|
|
21
|
+
INVENTORY_LOG_INCLUDE["item"] = "item";
|
|
22
|
+
INVENTORY_LOG_INCLUDE["store_location"] = "store_location";
|
|
23
|
+
INVENTORY_LOG_INCLUDE["mrn"] = "mrn";
|
|
24
|
+
INVENTORY_LOG_INCLUDE["mi"] = "mi";
|
|
25
|
+
INVENTORY_LOG_INCLUDE["istd"] = "istd";
|
|
26
|
+
INVENTORY_LOG_INCLUDE["iad"] = "iad";
|
|
27
|
+
INVENTORY_LOG_INCLUDE["initiator"] = "initiator";
|
|
28
|
+
})(INVENTORY_LOG_INCLUDE || (exports.INVENTORY_LOG_INCLUDE = INVENTORY_LOG_INCLUDE = {}));
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IPaginationFilters } from "../../common/paginationFilters.typings";
|
|
2
|
+
import { INestedItem } from "../../item.typings";
|
|
3
|
+
import { INestedStoreLocation } from "../../storeLocation.typings";
|
|
4
|
+
export interface IInventoryItem {
|
|
5
|
+
id: string;
|
|
6
|
+
store_location_id: string;
|
|
7
|
+
item_id: string;
|
|
8
|
+
created_by_id: string;
|
|
9
|
+
stock_in_hand: number;
|
|
10
|
+
locked_quantity: number;
|
|
11
|
+
min_reorder_level: number;
|
|
12
|
+
max_reorder_level: number;
|
|
13
|
+
is_enabled: boolean;
|
|
14
|
+
is_deleted?: boolean | null;
|
|
15
|
+
deleted_at?: string | null;
|
|
16
|
+
created_at?: string | null;
|
|
17
|
+
updated_at?: string | null;
|
|
18
|
+
store?: INestedStoreLocation | null;
|
|
19
|
+
item?: INestedItem | null;
|
|
20
|
+
}
|
|
21
|
+
export interface INestedInventoryItem extends Omit<IInventoryItem, "store" | "item"> {
|
|
22
|
+
}
|
|
23
|
+
export declare enum STORE_INVENTORY_INCLUDE {
|
|
24
|
+
store = "store",
|
|
25
|
+
item = "item"
|
|
26
|
+
}
|
|
27
|
+
export interface IStoreInventoryFilters {
|
|
28
|
+
store_location_id?: string;
|
|
29
|
+
item_id?: string;
|
|
30
|
+
include?: STORE_INVENTORY_INCLUDE[];
|
|
31
|
+
}
|
|
32
|
+
export interface IStoreInventoryFiltersWithPagination extends IStoreInventoryFilters, IPaginationFilters {
|
|
33
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.STORE_INVENTORY_INCLUDE = void 0;
|
|
4
|
+
var STORE_INVENTORY_INCLUDE;
|
|
5
|
+
(function (STORE_INVENTORY_INCLUDE) {
|
|
6
|
+
STORE_INVENTORY_INCLUDE["store"] = "store";
|
|
7
|
+
STORE_INVENTORY_INCLUDE["item"] = "item";
|
|
8
|
+
})(STORE_INVENTORY_INCLUDE || (exports.STORE_INVENTORY_INCLUDE = STORE_INVENTORY_INCLUDE = {}));
|
|
@@ -5,6 +5,7 @@ import { INestedGRN } from "../../grn.typings";
|
|
|
5
5
|
import { INestedMRN } from "../../mrn.typings";
|
|
6
6
|
import { INestedStoreLocation } from "../../storeLocation.typings";
|
|
7
7
|
import { INestedUser } from "../../user.typings";
|
|
8
|
+
import { INestedInventoryLog } from "../inventory/inventoryLogger.typings";
|
|
8
9
|
import { INestedISTDItem } from "./istdItems.typings";
|
|
9
10
|
export declare enum ISTD_CHILD_DOC_TYPE {
|
|
10
11
|
MRN = "MRN",
|
|
@@ -50,7 +51,8 @@ export declare enum ISTD_INCLUDE {
|
|
|
50
51
|
source_approval_chain = "source_approval_chain",
|
|
51
52
|
dest_approval_chain = "dest_approval_chain",
|
|
52
53
|
mrns = "mrns",
|
|
53
|
-
grns = "grns"
|
|
54
|
+
grns = "grns",
|
|
55
|
+
inventory_logs = "inventory_logs"
|
|
54
56
|
}
|
|
55
57
|
export interface IISTD {
|
|
56
58
|
id: string;
|
|
@@ -101,8 +103,9 @@ export interface IISTD {
|
|
|
101
103
|
dest_approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
102
104
|
grns: INestedGRN[] | null;
|
|
103
105
|
mrns: INestedMRN[] | null;
|
|
106
|
+
inventory_logs: INestedInventoryLog[] | null;
|
|
104
107
|
}
|
|
105
|
-
export interface INestedISTD extends Omit<IISTD, "items" | "company" | "created_by" | "last_updated_by" | "source_contact_person" | "dest_contact_person" | "sent_for_source_approval_by" | "sent_for_dest_approval_by" | "source_store_location" | "dest_store_location" | "terminated_by" | "sent_to_dest_store_by" | "sent_for_processing_by" | "source_approval_chain" | "dest_approval_chain" | "grns" | "mrns"> {
|
|
108
|
+
export interface INestedISTD extends Omit<IISTD, "items" | "company" | "created_by" | "last_updated_by" | "source_contact_person" | "dest_contact_person" | "sent_for_source_approval_by" | "sent_for_dest_approval_by" | "source_store_location" | "dest_store_location" | "terminated_by" | "sent_to_dest_store_by" | "sent_for_processing_by" | "source_approval_chain" | "dest_approval_chain" | "grns" | "mrns" | "inventory_logs"> {
|
|
106
109
|
}
|
|
107
110
|
export interface IISTDFilter {
|
|
108
111
|
created_by_id?: string | null;
|
|
@@ -51,4 +51,5 @@ var ISTD_INCLUDE;
|
|
|
51
51
|
ISTD_INCLUDE["dest_approval_chain"] = "dest_approval_chain";
|
|
52
52
|
ISTD_INCLUDE["mrns"] = "mrns";
|
|
53
53
|
ISTD_INCLUDE["grns"] = "grns";
|
|
54
|
+
ISTD_INCLUDE["inventory_logs"] = "inventory_logs";
|
|
54
55
|
})(ISTD_INCLUDE || (exports.ISTD_INCLUDE = ISTD_INCLUDE = {}));
|
|
@@ -35,6 +35,7 @@ import { INestedContactPeople } from "./contactPeople.typings";
|
|
|
35
35
|
import { INestedCompanyItemVendorVersion } from "./companyItemVendorVersion.typings";
|
|
36
36
|
import { INestedISTD } from "./company/istd/istd.typings";
|
|
37
37
|
import { INestedISTDItem } from "./company/istd/istdItems.typings";
|
|
38
|
+
import { INestedInventoryLog } from "./company/inventory/inventoryLogger.typings";
|
|
38
39
|
export declare enum PRICING_PLANS {
|
|
39
40
|
BASIC = "BASIC",
|
|
40
41
|
GROWTH = "GROWTH",
|
|
@@ -87,7 +88,8 @@ export declare enum COMPANY_INCLUDE {
|
|
|
87
88
|
company_contact_people = "company_contact_people",
|
|
88
89
|
company_item_vendor_versions = "company_item_vendor_versions",
|
|
89
90
|
item_manager_user = "item_manager_user",
|
|
90
|
-
vendor_manager_user = "vendor_manager_user"
|
|
91
|
+
vendor_manager_user = "vendor_manager_user",
|
|
92
|
+
inventory_logs = "inventory_logs"
|
|
91
93
|
}
|
|
92
94
|
export interface ICompany extends IAddress {
|
|
93
95
|
id: string;
|
|
@@ -162,6 +164,7 @@ export interface ICompany extends IAddress {
|
|
|
162
164
|
vendor_manager_user: INestedUser | null;
|
|
163
165
|
istds: INestedISTD[] | null;
|
|
164
166
|
istd_items: INestedISTDItem[] | null;
|
|
167
|
+
inventory_logs: INestedInventoryLog[] | null;
|
|
165
168
|
}
|
|
166
|
-
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" | "istds" | "istd_items"> {
|
|
169
|
+
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" | "istds" | "istd_items" | "inventory_logs"> {
|
|
167
170
|
}
|
|
@@ -54,4 +54,5 @@ var COMPANY_INCLUDE;
|
|
|
54
54
|
COMPANY_INCLUDE["company_item_vendor_versions"] = "company_item_vendor_versions";
|
|
55
55
|
COMPANY_INCLUDE["item_manager_user"] = "item_manager_user";
|
|
56
56
|
COMPANY_INCLUDE["vendor_manager_user"] = "vendor_manager_user";
|
|
57
|
+
COMPANY_INCLUDE["inventory_logs"] = "inventory_logs";
|
|
57
58
|
})(COMPANY_INCLUDE || (exports.COMPANY_INCLUDE = COMPANY_INCLUDE = {}));
|
|
@@ -13,10 +13,11 @@ import { INestedMRNItem } from "./mrn.typings";
|
|
|
13
13
|
import { INestedPOASNItemJunction } from "./poAsnJunctionItems.typings";
|
|
14
14
|
import { INestedPrItem } from "./pr.typings";
|
|
15
15
|
import { INestedQuoteItems } from "./quote.typings";
|
|
16
|
-
import { INestedInventoryItem } from "./storeInventory.typings";
|
|
16
|
+
import { INestedInventoryItem } from "./company/inventory/storeInventory.typings";
|
|
17
17
|
import { INestedUser } from "./user.typings";
|
|
18
18
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
19
19
|
import { INestedISTDItem } from "./company/istd/istdItems.typings";
|
|
20
|
+
import { INestedInventoryLog } from "./company/inventory/inventoryLogger.typings";
|
|
20
21
|
export interface IItemFilters {
|
|
21
22
|
name?: string;
|
|
22
23
|
company_id?: string;
|
|
@@ -56,7 +57,8 @@ export declare enum ITEM_INCLUDE {
|
|
|
56
57
|
last_updated_by = "last_updated_by",
|
|
57
58
|
approval_chain = "approval_chain",
|
|
58
59
|
used_in_istd_items = "used_in_istd_items",
|
|
59
|
-
used_in_iads = "used_in_iads"
|
|
60
|
+
used_in_iads = "used_in_iads",
|
|
61
|
+
used_in_inventory_logs = "used_in_inventory_logs"
|
|
60
62
|
}
|
|
61
63
|
export interface IItem {
|
|
62
64
|
id: string;
|
|
@@ -129,8 +131,9 @@ export interface IItem {
|
|
|
129
131
|
last_updated_by: INestedUser | null;
|
|
130
132
|
used_in_istd_items: INestedISTDItem[] | null;
|
|
131
133
|
used_in_iads: INestedISTDItem[] | null;
|
|
134
|
+
used_in_inventory_logs: INestedInventoryLog[] | null;
|
|
132
135
|
}
|
|
133
|
-
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" | "used_in_istd_items" | "used_in_iads"> {
|
|
136
|
+
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" | "used_in_istd_items" | "used_in_iads" | "used_in_inventory_logs"> {
|
|
134
137
|
}
|
|
135
138
|
export declare const ITEM_CLASSIFICATION: {
|
|
136
139
|
DIRECT: string;
|
|
@@ -33,6 +33,7 @@ var ITEM_INCLUDE;
|
|
|
33
33
|
ITEM_INCLUDE["approval_chain"] = "approval_chain";
|
|
34
34
|
ITEM_INCLUDE["used_in_istd_items"] = "used_in_istd_items";
|
|
35
35
|
ITEM_INCLUDE["used_in_iads"] = "used_in_iads";
|
|
36
|
+
ITEM_INCLUDE["used_in_inventory_logs"] = "used_in_inventory_logs";
|
|
36
37
|
})(ITEM_INCLUDE || (exports.ITEM_INCLUDE = ITEM_INCLUDE = {}));
|
|
37
38
|
exports.ITEM_CLASSIFICATION = {
|
|
38
39
|
DIRECT: "Direct",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { INestedApprovalChainEntry } from "./approvalChain.typings";
|
|
2
2
|
import { INestedCompany } from "./company.typings";
|
|
3
|
+
import { INestedInventoryLog } from "./company/inventory/inventoryLogger.typings";
|
|
3
4
|
import { INestedDepartment } from "./department.typings";
|
|
4
5
|
import { IDocItem } from "./docItems.typings";
|
|
5
6
|
import { INestedIndent, INestedIndentItem } from "./indent.typings";
|
|
@@ -30,8 +31,9 @@ export interface IMI {
|
|
|
30
31
|
items?: INestedMIItem[] | null;
|
|
31
32
|
approval_chain?: INestedApprovalChainEntry[] | null;
|
|
32
33
|
store_location?: INestedStoreLocation | null;
|
|
34
|
+
inventory_logs?: INestedInventoryLog[] | null;
|
|
33
35
|
}
|
|
34
|
-
export interface INestedMI extends Omit<IMI, "store_location" | "company" | "paretn_department" | "created_by_user" | "parent_indent" | "items" | "approval_chain" | "store_location"> {
|
|
36
|
+
export interface INestedMI extends Omit<IMI, "store_location" | "company" | "paretn_department" | "created_by_user" | "parent_indent" | "items" | "approval_chain" | "store_location" | "inventory_logs"> {
|
|
35
37
|
}
|
|
36
38
|
export declare enum MI_STATUS {
|
|
37
39
|
DRAFT = "DRAFT",
|
|
@@ -47,7 +49,8 @@ export declare enum MI_INCLUDE {
|
|
|
47
49
|
parent_indent = "parent_indent",
|
|
48
50
|
approval_chain = "approval_chain",
|
|
49
51
|
items = "items",
|
|
50
|
-
store_location = "store_location"
|
|
52
|
+
store_location = "store_location",
|
|
53
|
+
inventory_logs = "inventory_logs"
|
|
51
54
|
}
|
|
52
55
|
export declare enum MI_ITEM_INCLUDE {
|
|
53
56
|
indent_item = "indent_item",
|
|
@@ -18,6 +18,7 @@ var MI_INCLUDE;
|
|
|
18
18
|
MI_INCLUDE["approval_chain"] = "approval_chain";
|
|
19
19
|
MI_INCLUDE["items"] = "items";
|
|
20
20
|
MI_INCLUDE["store_location"] = "store_location";
|
|
21
|
+
MI_INCLUDE["inventory_logs"] = "inventory_logs";
|
|
21
22
|
})(MI_INCLUDE || (exports.MI_INCLUDE = MI_INCLUDE = {}));
|
|
22
23
|
// MI Item Typings
|
|
23
24
|
var MI_ITEM_INCLUDE;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
2
2
|
import { INestedCompany } from "./company.typings";
|
|
3
|
+
import { INestedInventoryLog } from "./company/inventory/inventoryLogger.typings";
|
|
3
4
|
import { INestedISTD } from "./company/istd/istd.typings";
|
|
4
5
|
import { INestedISTDItem } from "./company/istd/istdItems.typings";
|
|
5
6
|
import { INestedDepartment } from "./department.typings";
|
|
@@ -31,7 +32,8 @@ export declare enum MRN_INCLUDE {
|
|
|
31
32
|
sent_for_approval_by = "sent_for_approval_by",
|
|
32
33
|
approval_chain = "approval_chain",
|
|
33
34
|
items = "items",
|
|
34
|
-
parent_istd = "parent_istd"
|
|
35
|
+
parent_istd = "parent_istd",
|
|
36
|
+
inventory_logs = "inventory_logs"
|
|
35
37
|
}
|
|
36
38
|
export declare enum MRN_STATUS {
|
|
37
39
|
DRAFT = "DRAFT",
|
|
@@ -70,8 +72,9 @@ export interface IMRN {
|
|
|
70
72
|
approval_chain: INestedEntityApprovalChainEntry | null;
|
|
71
73
|
items: INestedMRNItem[] | null;
|
|
72
74
|
parent_istd: INestedISTD | null;
|
|
75
|
+
inventory_logs: INestedInventoryLog[] | null;
|
|
73
76
|
}
|
|
74
|
-
export interface INestedMRN extends Omit<IMRN, "company" | "parent_grn" | "parent_department" | "parent_store_location" | "contact_person" | "sent_for_approval_by" | "approval_chain" | "items" | "parent_istd"> {
|
|
77
|
+
export interface INestedMRN extends Omit<IMRN, "company" | "parent_grn" | "parent_department" | "parent_store_location" | "contact_person" | "sent_for_approval_by" | "approval_chain" | "items" | "parent_istd" | "inventory_logs"> {
|
|
75
78
|
}
|
|
76
79
|
export declare enum MRN_ITEM_INCLUDE {
|
|
77
80
|
parent_mrn = "parent_mrn",
|
|
@@ -17,6 +17,7 @@ var MRN_INCLUDE;
|
|
|
17
17
|
MRN_INCLUDE["approval_chain"] = "approval_chain";
|
|
18
18
|
MRN_INCLUDE["items"] = "items";
|
|
19
19
|
MRN_INCLUDE["parent_istd"] = "parent_istd";
|
|
20
|
+
MRN_INCLUDE["inventory_logs"] = "inventory_logs";
|
|
20
21
|
})(MRN_INCLUDE || (exports.MRN_INCLUDE = MRN_INCLUDE = {}));
|
|
21
22
|
var MRN_STATUS;
|
|
22
23
|
(function (MRN_STATUS) {
|
|
@@ -14,11 +14,12 @@ import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
|
14
14
|
import { INestedQuote } from "./quote.typings";
|
|
15
15
|
import { INestedRFQ } from "./rfq.typings";
|
|
16
16
|
import { INestedRole } from "./roles.typings";
|
|
17
|
-
import { INestedInventoryItem } from "./storeInventory.typings";
|
|
17
|
+
import { INestedInventoryItem } from "./company/inventory/storeInventory.typings";
|
|
18
18
|
import { INestedUser } from "./user.typings";
|
|
19
19
|
import { IAddress } from "./common/address.typings";
|
|
20
20
|
import { INestedISTD } from "./company/istd/istd.typings";
|
|
21
21
|
import { INestedIAD } from "./company/iad/iad.typings";
|
|
22
|
+
import { INestedInventoryLog } from "./company/inventory/inventoryLogger.typings";
|
|
22
23
|
export interface IStoreLocationFilters {
|
|
23
24
|
name?: string;
|
|
24
25
|
company_id?: string;
|
|
@@ -60,8 +61,9 @@ export interface IStoreLocation extends IAddress {
|
|
|
60
61
|
as_source_store_location_for_istds?: INestedISTD[] | null;
|
|
61
62
|
as_dest_store_location_for_istds?: INestedISTD[] | null;
|
|
62
63
|
iads?: INestedIAD[] | null;
|
|
64
|
+
inventory_logs?: INestedInventoryLog[] | null;
|
|
63
65
|
}
|
|
64
|
-
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" | "as_source_store_location_for_istds" | "as_dest_store_location_for_istds" | "iads"> {
|
|
66
|
+
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" | "as_source_store_location_for_istds" | "as_dest_store_location_for_istds" | "iads" | "inventory_logs"> {
|
|
65
67
|
}
|
|
66
68
|
export declare enum StoreLocationInclude {
|
|
67
69
|
company = "company",
|
|
@@ -83,5 +85,6 @@ export declare enum StoreLocationInclude {
|
|
|
83
85
|
as_shipping_location_for_asns = "as_shipping_location_for_asns",
|
|
84
86
|
as_source_store_location_for_istds = "as_source_store_location_for_istds",
|
|
85
87
|
as_dest_store_location_for_istds = "as_dest_store_location_for_istds",
|
|
86
|
-
iads = "iads"
|
|
88
|
+
iads = "iads",
|
|
89
|
+
inventory_logs = "inventory_logs"
|
|
87
90
|
}
|
|
@@ -23,4 +23,5 @@ var StoreLocationInclude;
|
|
|
23
23
|
StoreLocationInclude["as_source_store_location_for_istds"] = "as_source_store_location_for_istds";
|
|
24
24
|
StoreLocationInclude["as_dest_store_location_for_istds"] = "as_dest_store_location_for_istds";
|
|
25
25
|
StoreLocationInclude["iads"] = "iads";
|
|
26
|
+
StoreLocationInclude["inventory_logs"] = "inventory_logs";
|
|
26
27
|
})(StoreLocationInclude || (exports.StoreLocationInclude = StoreLocationInclude = {}));
|
|
@@ -32,6 +32,7 @@ import { INestedRootEntityApprovalChainEntry } from "./company/rootEntityApprova
|
|
|
32
32
|
import { INestedRootEntityApprovalChain } from "./company/rootEntityApproval/rootEntityApprovalChain.typings";
|
|
33
33
|
import { INestedISTD } from "./company/istd/istd.typings";
|
|
34
34
|
import { INestedIAD } from "./company/iad/iad.typings";
|
|
35
|
+
import { INestedInventoryLog } from "./company/inventory/inventoryLogger.typings";
|
|
35
36
|
export interface IUser {
|
|
36
37
|
id: string;
|
|
37
38
|
is_enabled?: boolean | null;
|
|
@@ -127,8 +128,9 @@ export interface IUser {
|
|
|
127
128
|
as_approver_for_iads: INestedIAD[] | null;
|
|
128
129
|
finalised_iads: INestedIAD[] | null;
|
|
129
130
|
iads_terminated_by_user: INestedIAD[] | null;
|
|
131
|
+
initiated_inventory_logs: INestedInventoryLog[] | null;
|
|
130
132
|
}
|
|
131
|
-
export interface INestedUser extends Omit<IUser, "updated_at" | "created_at" | "deleted_at" | "as_item_approver_for_company" | "as_vendor_approver_for_company" | "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" | "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" | "as_contact_person_for_rfqs" | "as_contact_person_for_quotes" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "negotiations" | "created_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "as_contact_person_for_asns" | "as_contact_person_for_grns" | "grns_sent_for_approval" | "grns_sent_to_store" | "mrns_sent_for_approval" | "as_contact_person_for_mrns" | "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" | "cancelled_asns" | "created_contact_people" | "updated_contact_people" | "last_updated_company_item_vendor_version" | "last_updated_root_entity_approval_config" | "as_part_of_root_entity_approval_chain_entries" | "as_part_of_root_entity_approval_chain" | "last_updated_root_entity_approval_chain" | "items_last_updated_by_user" | "copmany_vendors_last_updated_by_user" | "created_istds" | "last_updated_istds" | "source_contact_person_for_istd" | "dest_contact_person_for_istd" | "istds_sent_for_source_approval" | "istds_sent_for_dest_approval" | "istds_sent_for_dest_store" | "istds_marked_as_processed" | "istds_terminated" | "created_payment_terms" | "created_iads" | "user_last_updated_iads" | "as_approver_for_iads" | "iads_terminated_by_user" | "finalised_iads" | "assigned_roles"> {
|
|
133
|
+
export interface INestedUser extends Omit<IUser, "updated_at" | "created_at" | "deleted_at" | "as_item_approver_for_company" | "as_vendor_approver_for_company" | "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" | "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" | "as_contact_person_for_rfqs" | "as_contact_person_for_quotes" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "negotiations" | "created_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "as_contact_person_for_asns" | "as_contact_person_for_grns" | "grns_sent_for_approval" | "grns_sent_to_store" | "mrns_sent_for_approval" | "as_contact_person_for_mrns" | "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" | "cancelled_asns" | "created_contact_people" | "updated_contact_people" | "last_updated_company_item_vendor_version" | "last_updated_root_entity_approval_config" | "as_part_of_root_entity_approval_chain_entries" | "as_part_of_root_entity_approval_chain" | "last_updated_root_entity_approval_chain" | "items_last_updated_by_user" | "copmany_vendors_last_updated_by_user" | "created_istds" | "last_updated_istds" | "source_contact_person_for_istd" | "dest_contact_person_for_istd" | "istds_sent_for_source_approval" | "istds_sent_for_dest_approval" | "istds_sent_for_dest_store" | "istds_marked_as_processed" | "istds_terminated" | "created_payment_terms" | "created_iads" | "user_last_updated_iads" | "as_approver_for_iads" | "iads_terminated_by_user" | "finalised_iads" | "assigned_roles" | "initiated_inventory_logs"> {
|
|
132
134
|
}
|
|
133
135
|
export declare enum UserInclude {
|
|
134
136
|
as_incharge_in_purchase_locations = "as_incharge_in_purchase_locations",
|
|
@@ -192,7 +194,8 @@ export declare enum UserInclude {
|
|
|
192
194
|
user_last_updated_iads = "user_last_updated_iads",
|
|
193
195
|
as_approver_for_iads = "as_approver_for_iads",
|
|
194
196
|
finalised_iads = "finalised_iads",
|
|
195
|
-
iads_terminated_by_user = "iads_terminated_by_user"
|
|
197
|
+
iads_terminated_by_user = "iads_terminated_by_user",
|
|
198
|
+
initiated_inventory_logs = "initiated_inventory_logs"
|
|
196
199
|
}
|
|
197
200
|
export interface IUserFilters {
|
|
198
201
|
name?: string;
|
|
@@ -68,4 +68,5 @@ var UserInclude;
|
|
|
68
68
|
UserInclude["as_approver_for_iads"] = "as_approver_for_iads";
|
|
69
69
|
UserInclude["finalised_iads"] = "finalised_iads";
|
|
70
70
|
UserInclude["iads_terminated_by_user"] = "iads_terminated_by_user";
|
|
71
|
+
UserInclude["initiated_inventory_logs"] = "initiated_inventory_logs";
|
|
71
72
|
})(UserInclude || (exports.UserInclude = UserInclude = {}));
|