kcommons 18.6.3 → 18.7.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/classes/asnWrapper.class.d.ts +2 -0
- package/build/classes/asnWrapper.class.js +4 -1
- package/build/constants/companyRoutes.constants.d.ts +42 -0
- package/build/constants/companyRoutes.constants.js +42 -0
- package/build/constants/entityTypes.constants.d.ts +4 -1
- package/build/constants/entityTypes.constants.js +3 -0
- package/build/constants/permission.constants.d.ts +16 -3
- package/build/constants/permission.constants.js +45 -4
- package/build/constants/statuses.constants.d.ts +3 -0
- package/build/constants/statuses.constants.js +3 -0
- package/build/index.d.ts +6 -0
- package/build/index.js +6 -0
- package/build/typings/accountsLocation.typings.d.ts +48 -0
- package/build/typings/accountsLocation.typings.js +13 -0
- package/build/typings/approvalConfig.typings.d.ts +15 -3
- package/build/typings/approvalConfig.typings.js +3 -0
- package/build/typings/asn.typings.d.ts +6 -3
- package/build/typings/asn.typings.js +2 -1
- package/build/typings/audits.typings.d.ts +45 -0
- package/build/typings/audits.typings.js +12 -0
- package/build/typings/company/masters/imr.typings.d.ts +116 -0
- package/build/typings/company/masters/imr.typings.js +45 -0
- package/build/typings/company/masters/po.typings.d.ts +32 -10
- package/build/typings/company/masters/po.typings.js +10 -1
- package/build/typings/company/masters/poGrnJunctionItems.typings.d.ts +6 -3
- package/build/typings/company/masters/poGrnJunctionItems.typings.js +1 -0
- package/build/typings/company/masters/vesItem.typings.d.ts +6 -2
- package/build/typings/company/masters/vesItem.typings.js +1 -0
- package/build/typings/company.typings.d.ts +17 -2
- package/build/typings/company.typings.js +5 -1
- package/build/typings/companyVendors.typings.d.ts +4 -1
- package/build/typings/companyVendors.typings.js +1 -0
- package/build/typings/department.typings.d.ts +15 -3
- package/build/typings/department.typings.js +3 -0
- package/build/typings/entityApprovalChainEntry.typings.d.ts +20 -3
- package/build/typings/entityApprovalChainEntry.typings.js +7 -0
- package/build/typings/grn.typings.d.ts +19 -5
- package/build/typings/grn.typings.js +4 -0
- package/build/typings/item.typings.d.ts +1 -0
- package/build/typings/mrn.typings.d.ts +17 -6
- package/build/typings/mrn.typings.js +5 -0
- package/build/typings/qcd.typings.d.ts +100 -0
- package/build/typings/qcd.typings.js +37 -0
- package/build/typings/qualityAssessment.typings.d.ts +48 -0
- package/build/typings/qualityAssessment.typings.js +13 -0
- package/build/typings/roles.typings.d.ts +15 -3
- package/build/typings/roles.typings.js +3 -0
- package/build/typings/storeLocation.typings.d.ts +11 -2
- package/build/typings/storeLocation.typings.js +3 -0
- package/build/typings/supplierInvoice.typings.d.ts +131 -0
- package/build/typings/supplierInvoice.typings.js +40 -0
- package/build/typings/user.typings.d.ts +27 -2
- package/build/typings/user.typings.js +9 -2
- package/build/typings/vendor/vendorUser.typings.d.ts +5 -2
- package/build/typings/vendor/vendorUser.typings.js +1 -0
- package/build/typings/vendor.typings.d.ts +5 -2
- package/build/typings/vendor.typings.js +1 -0
- package/package.json +1 -1
|
@@ -9,10 +9,12 @@ import { INestedDepartment } from "./department.typings";
|
|
|
9
9
|
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
10
10
|
import { INestedItem } from "./item.typings";
|
|
11
11
|
import { INestedMRN, INestedMRNItem } from "./mrn.typings";
|
|
12
|
-
import { INestedPo } from "./company/masters/po.typings";
|
|
12
|
+
import { INestedPo, INestedPOItem } from "./company/masters/po.typings";
|
|
13
13
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
14
14
|
import { INestedUser } from "./user.typings";
|
|
15
15
|
import { INestedPOGRNItemJunction } from "./company/masters/poGrnJunctionItems.typings";
|
|
16
|
+
import { INestedSupplierInvoice } from "./supplierInvoice.typings";
|
|
17
|
+
import { INestedQualityClearanceDocument, INestedQualityClearanceDocumentItem } from "./qcd.typings";
|
|
16
18
|
export declare enum GRN_LIST_TYPES {
|
|
17
19
|
ALL = "ALL",
|
|
18
20
|
CREATED_BY_ME = "CREATED_BY_ME",
|
|
@@ -45,7 +47,9 @@ export declare enum GRN_INCLUDE {
|
|
|
45
47
|
sent_for_approval_by = "sent_for_approval_by",
|
|
46
48
|
sent_to_store_by = "sent_to_store_by",
|
|
47
49
|
child_mrns = "child_mrns",
|
|
48
|
-
referenced_po = "referenced_po"
|
|
50
|
+
referenced_po = "referenced_po",
|
|
51
|
+
associated_supplier_invoice = "associated_supplier_invoice",
|
|
52
|
+
quality_clearance_documents = "quality_clearance_documents"
|
|
49
53
|
}
|
|
50
54
|
export interface IGRNFilters {
|
|
51
55
|
parent_asn_id?: string;
|
|
@@ -85,9 +89,11 @@ export interface IGRN {
|
|
|
85
89
|
referenced_po_id: string | null;
|
|
86
90
|
shipping_store_location_id: string;
|
|
87
91
|
created_by_id: string;
|
|
92
|
+
associated_supplier_invoice_id: string | null;
|
|
88
93
|
last_updated_by_user_id: string;
|
|
89
94
|
company_id: string;
|
|
90
95
|
status: GRN_STATUS;
|
|
96
|
+
requires_qa_check: boolean;
|
|
91
97
|
department_id: string | null;
|
|
92
98
|
contact_person_id: string;
|
|
93
99
|
attachment_link: string | null;
|
|
@@ -113,8 +119,10 @@ export interface IGRN {
|
|
|
113
119
|
parent_ves: INestedVES | null;
|
|
114
120
|
referenced_po: INestedPo | null;
|
|
115
121
|
metafields: IGRNMetafields | null;
|
|
122
|
+
quality_clearance_documents: INestedQualityClearanceDocument[] | null;
|
|
123
|
+
associated_supplier_invoice: INestedSupplierInvoice | null;
|
|
116
124
|
}
|
|
117
|
-
export interface INestedGRN extends Omit<IGRN, "company" | "created_by_user" | "last_updated_by_user" | "shipping_store_location" | "department" | "parent_asn" | "contact_person" | "items" | "approval_chain" | "sent_for_approval_by" | "sent_to_store_by" | "child_mrns" | "parent_istd" | "parent_po" | "parent_ves" | "referenced_po" | "metafields"> {
|
|
125
|
+
export interface INestedGRN extends Omit<IGRN, "company" | "created_by_user" | "last_updated_by_user" | "shipping_store_location" | "department" | "parent_asn" | "contact_person" | "items" | "approval_chain" | "sent_for_approval_by" | "sent_to_store_by" | "child_mrns" | "parent_istd" | "parent_po" | "parent_ves" | "referenced_po" | "metafields" | "associated_supplier_invoice" | "quality_clearance_documents"> {
|
|
118
126
|
}
|
|
119
127
|
export declare enum GRN_ITEM_INCLUDE {
|
|
120
128
|
company = "company",
|
|
@@ -124,7 +132,9 @@ export declare enum GRN_ITEM_INCLUDE {
|
|
|
124
132
|
referenced_in_mrn_items = "referenced_in_mrn_items",
|
|
125
133
|
parent_istd_item = "parent_istd_item",
|
|
126
134
|
po_grn_item_junction = "po_grn_item_junction",
|
|
127
|
-
parent_ves_item = "parent_ves_item"
|
|
135
|
+
parent_ves_item = "parent_ves_item",
|
|
136
|
+
quality_clearance_document_items = "quality_clearance_document_items",
|
|
137
|
+
parent_po_item = "parent_po_item"
|
|
128
138
|
}
|
|
129
139
|
export interface IGRNItem {
|
|
130
140
|
id: string;
|
|
@@ -134,6 +144,7 @@ export interface IGRNItem {
|
|
|
134
144
|
item_name: string;
|
|
135
145
|
code_sku: string;
|
|
136
146
|
uom: string;
|
|
147
|
+
requires_qa_check: boolean;
|
|
137
148
|
expected_deliverable_quantity: number;
|
|
138
149
|
actual_delivered_quantity: number;
|
|
139
150
|
general_remark: string | null;
|
|
@@ -144,6 +155,7 @@ export interface IGRNItem {
|
|
|
144
155
|
parent_asn_item_id: string | null;
|
|
145
156
|
parent_istd_item_id: string | null;
|
|
146
157
|
po_grn_item_junction_id: string | null;
|
|
158
|
+
parent_po_item_id: string | null;
|
|
147
159
|
is_deleted: boolean;
|
|
148
160
|
deleted_at: string | null;
|
|
149
161
|
created_at: string;
|
|
@@ -156,8 +168,10 @@ export interface IGRNItem {
|
|
|
156
168
|
referenced_in_mrn_items: INestedMRNItem[] | null;
|
|
157
169
|
po_grn_item_junction: INestedPOGRNItemJunction | null;
|
|
158
170
|
parent_ves_item: INestedVESItem | null;
|
|
171
|
+
quality_clearance_documents: INestedQualityClearanceDocumentItem | null;
|
|
172
|
+
parent_po_item: INestedPOItem | null;
|
|
159
173
|
}
|
|
160
|
-
export interface INestedGRNItem extends Omit<IGRNItem, "company" | "parent_grn" | "item" | "parent_asn_item" | "referenced_in_mrn_items" | "parent_istd_item" | "po_grn_item_junction" | "parent_ves_item"> {
|
|
174
|
+
export interface INestedGRNItem extends Omit<IGRNItem, "company" | "parent_grn" | "item" | "parent_asn_item" | "referenced_in_mrn_items" | "parent_istd_item" | "po_grn_item_junction" | "parent_ves_item" | "quality_clearance_documents" | "parent_po_item"> {
|
|
161
175
|
}
|
|
162
176
|
export interface IFetchParentDocumentForGRNResponse {
|
|
163
177
|
parent_document_type: GRN_PARENT_DOC_TYPE;
|
|
@@ -38,6 +38,8 @@ var GRN_INCLUDE;
|
|
|
38
38
|
GRN_INCLUDE["sent_to_store_by"] = "sent_to_store_by";
|
|
39
39
|
GRN_INCLUDE["child_mrns"] = "child_mrns";
|
|
40
40
|
GRN_INCLUDE["referenced_po"] = "referenced_po";
|
|
41
|
+
GRN_INCLUDE["associated_supplier_invoice"] = "associated_supplier_invoice";
|
|
42
|
+
GRN_INCLUDE["quality_clearance_documents"] = "quality_clearance_documents";
|
|
41
43
|
})(GRN_INCLUDE || (exports.GRN_INCLUDE = GRN_INCLUDE = {}));
|
|
42
44
|
var GRN_STATUS;
|
|
43
45
|
(function (GRN_STATUS) {
|
|
@@ -61,6 +63,8 @@ var GRN_ITEM_INCLUDE;
|
|
|
61
63
|
GRN_ITEM_INCLUDE["parent_istd_item"] = "parent_istd_item";
|
|
62
64
|
GRN_ITEM_INCLUDE["po_grn_item_junction"] = "po_grn_item_junction";
|
|
63
65
|
GRN_ITEM_INCLUDE["parent_ves_item"] = "parent_ves_item";
|
|
66
|
+
GRN_ITEM_INCLUDE["quality_clearance_document_items"] = "quality_clearance_document_items";
|
|
67
|
+
GRN_ITEM_INCLUDE["parent_po_item"] = "parent_po_item";
|
|
64
68
|
})(GRN_ITEM_INCLUDE || (exports.GRN_ITEM_INCLUDE = GRN_ITEM_INCLUDE = {}));
|
|
65
69
|
var GRN_METAFIELDS_INCLUDE;
|
|
66
70
|
(function (GRN_METAFIELDS_INCLUDE) {
|
|
@@ -3,13 +3,15 @@ import { INestedCompany } from "./company.typings";
|
|
|
3
3
|
import { INestedInventoryLog } from "./company/inventory/inventoryLogger.typings";
|
|
4
4
|
import { INestedISTD } from "./company/istd/istd.typings";
|
|
5
5
|
import { INestedISTDItem } from "./company/istd/istdItems.typings";
|
|
6
|
-
import {
|
|
6
|
+
import { INestedInvoiceItemRecordItem } from "./company/masters/imr.typings";
|
|
7
|
+
import { INestedPo, INestedPOItem } from "./company/masters/po.typings";
|
|
7
8
|
import { INestedDepartment } from "./department.typings";
|
|
8
9
|
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
9
10
|
import { INestedGRN, INestedGRNItem } from "./grn.typings";
|
|
10
11
|
import { INestedItem } from "./item.typings";
|
|
11
12
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
12
13
|
import { INestedSubPO } from "./subPO.typings";
|
|
14
|
+
import { INestedSupplierInvoice } from "./supplierInvoice.typings";
|
|
13
15
|
import { INestedUser } from "./user.typings";
|
|
14
16
|
export declare enum MRN_DISPUTE_STATUS {
|
|
15
17
|
IN_DISPUTE = "IN_DISPUTE",
|
|
@@ -64,7 +66,9 @@ export declare enum MRN_INCLUDE {
|
|
|
64
66
|
inventory_logs = "inventory_logs",
|
|
65
67
|
parent_po = "parent_po",
|
|
66
68
|
resolved_by_user = "resolved_by_user",
|
|
67
|
-
resolved_by_sub_po = "resolved_by_sub_po"
|
|
69
|
+
resolved_by_sub_po = "resolved_by_sub_po",
|
|
70
|
+
associated_supplier_invoice = "associated_supplier_invoice",
|
|
71
|
+
associated_imr = "associated_imr"
|
|
68
72
|
}
|
|
69
73
|
export declare enum MRN_STATUS {
|
|
70
74
|
DRAFT = "DRAFT",
|
|
@@ -96,6 +100,7 @@ export interface IMRN {
|
|
|
96
100
|
parent_po_id: string | null;
|
|
97
101
|
has_disputes: boolean;
|
|
98
102
|
resolved_by_user_id: string | null;
|
|
103
|
+
associated_supplier_invoice_id: string | null;
|
|
99
104
|
dispute_status: MRN_DISPUTE_STATUS | null;
|
|
100
105
|
dispute_resolution_method: DISPUTED_MRN_RESOLUTION_METHODS | null;
|
|
101
106
|
is_deleted: boolean;
|
|
@@ -115,17 +120,20 @@ export interface IMRN {
|
|
|
115
120
|
inventory_logs: INestedInventoryLog[] | null;
|
|
116
121
|
parent_po: INestedPo | null;
|
|
117
122
|
resolved_by_user: INestedUser | null;
|
|
118
|
-
metafields: IMRNMetafields | null;
|
|
119
123
|
resolved_by_sub_po: INestedSubPO[] | null;
|
|
124
|
+
associated_supplier_invoice: INestedSupplierInvoice | null;
|
|
125
|
+
metafields: IMRNMetafields | null;
|
|
120
126
|
}
|
|
121
|
-
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" | "parent_po" | "resolved_by_user" | "
|
|
127
|
+
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" | "parent_po" | "resolved_by_user" | "resolved_by_sub_po" | "associated_supplier_invoice" | "associated_imr_item" | "metafields"> {
|
|
122
128
|
}
|
|
123
129
|
export declare enum MRN_ITEM_INCLUDE {
|
|
124
130
|
parent_mrn = "parent_mrn",
|
|
125
131
|
company = "company",
|
|
126
132
|
item = "item",
|
|
127
133
|
parent_grn_item = "parent_grn_item",
|
|
128
|
-
parent_istd_item = "parent_istd_item"
|
|
134
|
+
parent_istd_item = "parent_istd_item",
|
|
135
|
+
associated_imr_item = "associated_imr_item",
|
|
136
|
+
parent_po_item = "parent_po_item"
|
|
129
137
|
}
|
|
130
138
|
export interface IMRNItem {
|
|
131
139
|
id: string;
|
|
@@ -147,6 +155,7 @@ export interface IMRNItem {
|
|
|
147
155
|
item_description: string | null;
|
|
148
156
|
parent_grn_item_id: string | null;
|
|
149
157
|
parent_istd_item_id: string | null;
|
|
158
|
+
parent_po_item_id: string | null;
|
|
150
159
|
attachment_link: string | null;
|
|
151
160
|
is_deleted: boolean;
|
|
152
161
|
deleted_at: string | null;
|
|
@@ -157,8 +166,10 @@ export interface IMRNItem {
|
|
|
157
166
|
item: INestedItem | null;
|
|
158
167
|
parent_grn_item: INestedGRNItem | null;
|
|
159
168
|
parent_istd_item: INestedISTDItem | null;
|
|
169
|
+
associated_imr_item: INestedInvoiceItemRecordItem | null;
|
|
170
|
+
parent_po_item: INestedPOItem | null;
|
|
160
171
|
}
|
|
161
|
-
export interface INestedMRNItem extends Omit<IMRNItem, "parent_mrn" | "company" | "item" | "parent_grn_item" | "parent_istd_item"> {
|
|
172
|
+
export interface INestedMRNItem extends Omit<IMRNItem, "parent_mrn" | "company" | "item" | "parent_grn_item" | "parent_istd_item" | "associated_imr_item" | "parent_po_item"> {
|
|
162
173
|
}
|
|
163
174
|
export interface IMRNMetafields {
|
|
164
175
|
items_data: INestedItem[] | null;
|
|
@@ -49,6 +49,8 @@ var MRN_INCLUDE;
|
|
|
49
49
|
MRN_INCLUDE["parent_po"] = "parent_po";
|
|
50
50
|
MRN_INCLUDE["resolved_by_user"] = "resolved_by_user";
|
|
51
51
|
MRN_INCLUDE["resolved_by_sub_po"] = "resolved_by_sub_po";
|
|
52
|
+
MRN_INCLUDE["associated_supplier_invoice"] = "associated_supplier_invoice";
|
|
53
|
+
MRN_INCLUDE["associated_imr"] = "associated_imr";
|
|
52
54
|
})(MRN_INCLUDE || (exports.MRN_INCLUDE = MRN_INCLUDE = {}));
|
|
53
55
|
var MRN_STATUS;
|
|
54
56
|
(function (MRN_STATUS) {
|
|
@@ -61,6 +63,7 @@ var MRN_STATUS;
|
|
|
61
63
|
/** @deprecated */
|
|
62
64
|
MRN_STATUS["PROCESSED"] = "PROCESSED";
|
|
63
65
|
})(MRN_STATUS || (exports.MRN_STATUS = MRN_STATUS = {}));
|
|
66
|
+
// For MRN Item
|
|
64
67
|
var MRN_ITEM_INCLUDE;
|
|
65
68
|
(function (MRN_ITEM_INCLUDE) {
|
|
66
69
|
MRN_ITEM_INCLUDE["parent_mrn"] = "parent_mrn";
|
|
@@ -68,6 +71,8 @@ var MRN_ITEM_INCLUDE;
|
|
|
68
71
|
MRN_ITEM_INCLUDE["item"] = "item";
|
|
69
72
|
MRN_ITEM_INCLUDE["parent_grn_item"] = "parent_grn_item";
|
|
70
73
|
MRN_ITEM_INCLUDE["parent_istd_item"] = "parent_istd_item";
|
|
74
|
+
MRN_ITEM_INCLUDE["associated_imr_item"] = "associated_imr_item";
|
|
75
|
+
MRN_ITEM_INCLUDE["parent_po_item"] = "parent_po_item";
|
|
71
76
|
})(MRN_ITEM_INCLUDE || (exports.MRN_ITEM_INCLUDE = MRN_ITEM_INCLUDE = {}));
|
|
72
77
|
var MRN_METAFIELDS_INCLUDE;
|
|
73
78
|
(function (MRN_METAFIELDS_INCLUDE) {
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
2
|
+
import { INestedCompany } from "./company.typings";
|
|
3
|
+
import { INestedGRN, INestedGRNItem } from "./grn.typings";
|
|
4
|
+
import { INestedItem } from "./item.typings";
|
|
5
|
+
import { INestedUser } from "./user.typings";
|
|
6
|
+
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
7
|
+
import { INestedQALocation } from "./qualityAssessment.typings";
|
|
8
|
+
import { INestedPOItem } from "./company/masters/po.typings";
|
|
9
|
+
export declare enum QCD_STATUS {
|
|
10
|
+
DRAFT = "DRAFT",
|
|
11
|
+
PENDING_APPROVAL = "PENDING_APPROVAL",
|
|
12
|
+
APPROVED = "APPROVED",
|
|
13
|
+
REJECTED = "REJECTED",
|
|
14
|
+
CANCELLED = "CANCELLED"
|
|
15
|
+
}
|
|
16
|
+
export declare enum QCD_ITEM_DISPOSITION {
|
|
17
|
+
ACCEPTED = "ACCEPTED",
|
|
18
|
+
REJECTED = "REJECTED",
|
|
19
|
+
HOLD = "HOLD",
|
|
20
|
+
CONDITIONALLY_ACCEPTED = "CONDITIONALLY_ACCEPTED"
|
|
21
|
+
}
|
|
22
|
+
export declare enum QCD_INCLUDE {
|
|
23
|
+
company = "company",
|
|
24
|
+
qa_location = "qa_location",
|
|
25
|
+
grn = "grn",
|
|
26
|
+
cancelled_by = "cancelled_by",
|
|
27
|
+
created_by = "created_by",
|
|
28
|
+
last_updated_by = "last_updated_by",
|
|
29
|
+
items = "items",
|
|
30
|
+
approval_chain = "approval_chain"
|
|
31
|
+
}
|
|
32
|
+
export interface IQualityClearanceDocument {
|
|
33
|
+
id: string;
|
|
34
|
+
company_id: string;
|
|
35
|
+
qcd_no: string;
|
|
36
|
+
parent_qa_location_id: string;
|
|
37
|
+
parent_grn_id: string;
|
|
38
|
+
cancelled_by_user_id: string | null;
|
|
39
|
+
created_by_user_id: string;
|
|
40
|
+
last_updated_by_user_id: string;
|
|
41
|
+
status: QCD_STATUS;
|
|
42
|
+
sampling_date: string;
|
|
43
|
+
remarks: string | null;
|
|
44
|
+
cancellation_remark: string | null;
|
|
45
|
+
is_approved: boolean;
|
|
46
|
+
created_at: string;
|
|
47
|
+
updated_at: string;
|
|
48
|
+
company: INestedCompany | null;
|
|
49
|
+
qa_location: INestedQALocation | null;
|
|
50
|
+
grn: INestedGRN | null;
|
|
51
|
+
cancelled_by: INestedUser | null;
|
|
52
|
+
created_by: INestedUser | null;
|
|
53
|
+
last_updated_by: INestedUser | null;
|
|
54
|
+
items: INestedQualityClearanceDocumentItem[] | null;
|
|
55
|
+
approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
56
|
+
}
|
|
57
|
+
export interface INestedQualityClearanceDocument extends Omit<IQualityClearanceDocument, "company" | "qa_location" | "grn" | "cancelled_by" | "created_by" | "last_updated_by" | "items" | "approval_chain"> {
|
|
58
|
+
}
|
|
59
|
+
export declare enum QCD_ITEM_INCLUDE {
|
|
60
|
+
parent_qcd = "parent_qcd",
|
|
61
|
+
parent_grn_item = "parent_grn_item",
|
|
62
|
+
item = "item",
|
|
63
|
+
associated_po_item = "associated_po_item"
|
|
64
|
+
}
|
|
65
|
+
export interface IQualityClearanceDocumentItem {
|
|
66
|
+
id: string;
|
|
67
|
+
parent_qcd_id: string;
|
|
68
|
+
parent_grn_item_id: string;
|
|
69
|
+
associated_po_item_id: string;
|
|
70
|
+
item_id: string;
|
|
71
|
+
item_name: string;
|
|
72
|
+
item_description: string | null;
|
|
73
|
+
code_sku: string;
|
|
74
|
+
hsn_code: string | null;
|
|
75
|
+
sac_code: string | null;
|
|
76
|
+
total_received_quantity: number;
|
|
77
|
+
uom: string;
|
|
78
|
+
sampling_quantity: number;
|
|
79
|
+
item_disposition: QCD_ITEM_DISPOSITION;
|
|
80
|
+
accepted_quantity: number | null;
|
|
81
|
+
remarks: string | null;
|
|
82
|
+
created_at: string;
|
|
83
|
+
updated_at: string;
|
|
84
|
+
parent_qcd: INestedQualityClearanceDocument | null;
|
|
85
|
+
parent_grn_item: INestedGRNItem | null;
|
|
86
|
+
item: INestedItem | null;
|
|
87
|
+
associated_po_item: INestedPOItem | null;
|
|
88
|
+
}
|
|
89
|
+
export interface INestedQualityClearanceDocumentItem extends Omit<IQualityClearanceDocumentItem, "parent_qcd" | "parent_grn_item" | "item" | "associated_po_item"> {
|
|
90
|
+
}
|
|
91
|
+
export interface IQCDFilters extends Partial<Pick<IQualityClearanceDocument, "company_id" | "parent_qa_location_id" | "parent_grn_id" | "status" | "is_approved" | "created_by_user_id" | "last_updated_by_user_id" | "cancelled_by_user_id">> {
|
|
92
|
+
include?: QCD_INCLUDE[] | null;
|
|
93
|
+
}
|
|
94
|
+
export interface IQCDFiltersWithPagination extends IQCDFilters, IPaginationFilters {
|
|
95
|
+
}
|
|
96
|
+
export interface IQCDItemFilters extends Partial<Pick<IQualityClearanceDocumentItem, "parent_qcd_id" | "parent_grn_item_id" | "item_id" | "item_disposition">> {
|
|
97
|
+
include?: QCD_ITEM_INCLUDE[] | null;
|
|
98
|
+
}
|
|
99
|
+
export interface IQCDItemFiltersWithPagination extends IQCDItemFilters, IPaginationFilters {
|
|
100
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QCD_ITEM_INCLUDE = exports.QCD_INCLUDE = exports.QCD_ITEM_DISPOSITION = exports.QCD_STATUS = void 0;
|
|
4
|
+
var QCD_STATUS;
|
|
5
|
+
(function (QCD_STATUS) {
|
|
6
|
+
QCD_STATUS["DRAFT"] = "DRAFT";
|
|
7
|
+
QCD_STATUS["PENDING_APPROVAL"] = "PENDING_APPROVAL";
|
|
8
|
+
QCD_STATUS["APPROVED"] = "APPROVED";
|
|
9
|
+
QCD_STATUS["REJECTED"] = "REJECTED";
|
|
10
|
+
QCD_STATUS["CANCELLED"] = "CANCELLED";
|
|
11
|
+
})(QCD_STATUS || (exports.QCD_STATUS = QCD_STATUS = {}));
|
|
12
|
+
var QCD_ITEM_DISPOSITION;
|
|
13
|
+
(function (QCD_ITEM_DISPOSITION) {
|
|
14
|
+
QCD_ITEM_DISPOSITION["ACCEPTED"] = "ACCEPTED";
|
|
15
|
+
QCD_ITEM_DISPOSITION["REJECTED"] = "REJECTED";
|
|
16
|
+
QCD_ITEM_DISPOSITION["HOLD"] = "HOLD";
|
|
17
|
+
QCD_ITEM_DISPOSITION["CONDITIONALLY_ACCEPTED"] = "CONDITIONALLY_ACCEPTED";
|
|
18
|
+
})(QCD_ITEM_DISPOSITION || (exports.QCD_ITEM_DISPOSITION = QCD_ITEM_DISPOSITION = {}));
|
|
19
|
+
var QCD_INCLUDE;
|
|
20
|
+
(function (QCD_INCLUDE) {
|
|
21
|
+
QCD_INCLUDE["company"] = "company";
|
|
22
|
+
QCD_INCLUDE["qa_location"] = "qa_location";
|
|
23
|
+
QCD_INCLUDE["grn"] = "grn";
|
|
24
|
+
QCD_INCLUDE["cancelled_by"] = "cancelled_by";
|
|
25
|
+
QCD_INCLUDE["created_by"] = "created_by";
|
|
26
|
+
QCD_INCLUDE["last_updated_by"] = "last_updated_by";
|
|
27
|
+
QCD_INCLUDE["items"] = "items";
|
|
28
|
+
QCD_INCLUDE["approval_chain"] = "approval_chain";
|
|
29
|
+
})(QCD_INCLUDE || (exports.QCD_INCLUDE = QCD_INCLUDE = {}));
|
|
30
|
+
// For QCD Item
|
|
31
|
+
var QCD_ITEM_INCLUDE;
|
|
32
|
+
(function (QCD_ITEM_INCLUDE) {
|
|
33
|
+
QCD_ITEM_INCLUDE["parent_qcd"] = "parent_qcd";
|
|
34
|
+
QCD_ITEM_INCLUDE["parent_grn_item"] = "parent_grn_item";
|
|
35
|
+
QCD_ITEM_INCLUDE["item"] = "item";
|
|
36
|
+
QCD_ITEM_INCLUDE["associated_po_item"] = "associated_po_item";
|
|
37
|
+
})(QCD_ITEM_INCLUDE || (exports.QCD_ITEM_INCLUDE = QCD_ITEM_INCLUDE = {}));
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { INestedApprovalConfig } from "./approvalConfig.typings";
|
|
2
|
+
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
3
|
+
import { INestedCompany } from "./company.typings";
|
|
4
|
+
import { INestedDepartment } from "./department.typings";
|
|
5
|
+
import { INestedQualityClearanceDocument } from "./qcd.typings";
|
|
6
|
+
import { INestedRole } from "./roles.typings";
|
|
7
|
+
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
8
|
+
import { INestedUser } from "./user.typings";
|
|
9
|
+
export interface IQALocationFilters {
|
|
10
|
+
name?: string;
|
|
11
|
+
store_location_id?: string;
|
|
12
|
+
company_id?: string;
|
|
13
|
+
include?: QA_LOCATION_INCLUDE[];
|
|
14
|
+
}
|
|
15
|
+
export interface IQALocationFiltersWithPagination extends IPaginationFilters, IQALocationFilters {
|
|
16
|
+
}
|
|
17
|
+
export interface IQALocation {
|
|
18
|
+
id: string;
|
|
19
|
+
qa_location_name: string;
|
|
20
|
+
qa_location_code: string;
|
|
21
|
+
company_id: string;
|
|
22
|
+
created_by_id: string;
|
|
23
|
+
store_location_id: string;
|
|
24
|
+
incharge_id: string | null;
|
|
25
|
+
is_enabled: boolean;
|
|
26
|
+
is_deleted: boolean;
|
|
27
|
+
deleted_at: string | null;
|
|
28
|
+
created_at: string;
|
|
29
|
+
updated_at: string;
|
|
30
|
+
company?: INestedCompany | null;
|
|
31
|
+
store_location?: INestedStoreLocation | null;
|
|
32
|
+
qa_incharge?: INestedUser | null;
|
|
33
|
+
departments?: INestedDepartment[] | null;
|
|
34
|
+
roles?: INestedRole[] | null;
|
|
35
|
+
approval_configs?: INestedApprovalConfig[] | null;
|
|
36
|
+
quality_clearance_documents: INestedQualityClearanceDocument[] | null;
|
|
37
|
+
}
|
|
38
|
+
export interface INestedQALocation extends Omit<IQALocation, "company" | "store_location" | "qa_incharge" | "departments" | "roles" | "approval_configs" | "quality_clearance_documents"> {
|
|
39
|
+
}
|
|
40
|
+
export declare enum QA_LOCATION_INCLUDE {
|
|
41
|
+
company = "company",
|
|
42
|
+
store_location = "store_location",
|
|
43
|
+
qa_incharge = "qa_incharge",
|
|
44
|
+
departments = "departments",
|
|
45
|
+
roles = "roles",
|
|
46
|
+
approval_configs = "approval_configs",
|
|
47
|
+
quality_clearance_documents = "quality_clearance_documents"
|
|
48
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QA_LOCATION_INCLUDE = void 0;
|
|
4
|
+
var QA_LOCATION_INCLUDE;
|
|
5
|
+
(function (QA_LOCATION_INCLUDE) {
|
|
6
|
+
QA_LOCATION_INCLUDE["company"] = "company";
|
|
7
|
+
QA_LOCATION_INCLUDE["store_location"] = "store_location";
|
|
8
|
+
QA_LOCATION_INCLUDE["qa_incharge"] = "qa_incharge";
|
|
9
|
+
QA_LOCATION_INCLUDE["departments"] = "departments";
|
|
10
|
+
QA_LOCATION_INCLUDE["roles"] = "roles";
|
|
11
|
+
QA_LOCATION_INCLUDE["approval_configs"] = "approval_configs";
|
|
12
|
+
QA_LOCATION_INCLUDE["quality_clearance_documents"] = "quality_clearance_documents";
|
|
13
|
+
})(QA_LOCATION_INCLUDE || (exports.QA_LOCATION_INCLUDE = QA_LOCATION_INCLUDE = {}));
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { PERMISSION_RESOURCES, PERMISSION_ACTIONS } from "../constants/permission.constants";
|
|
2
|
+
import { INestedAccountsLocation } from "./accountsLocation.typings";
|
|
2
3
|
import { INestedApprovalChainEntry } from "./approvalChain.typings";
|
|
4
|
+
import { INestedAudits } from "./audits.typings";
|
|
3
5
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
4
6
|
import { INestedCompany } from "./company.typings";
|
|
5
7
|
import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
|
|
@@ -11,6 +13,7 @@ import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typi
|
|
|
11
13
|
import { INestedGate } from "./gate.typings";
|
|
12
14
|
import { INestedOffice } from "./offices.typings";
|
|
13
15
|
import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
16
|
+
import { INestedQALocation } from "./qualityAssessment.typings";
|
|
14
17
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
15
18
|
import { INestedQueueJob } from "./system/queueJob.typings";
|
|
16
19
|
import { INestedUser } from "./user.typings";
|
|
@@ -30,9 +33,12 @@ export declare enum RolesInclude {
|
|
|
30
33
|
item_management_body = "item_management_body",
|
|
31
34
|
checkpoint = "checkpoint",
|
|
32
35
|
associated_queue_jobs = "associated_queue_jobs",
|
|
33
|
-
customer_management_body = "customer_management_body"
|
|
36
|
+
customer_management_body = "customer_management_body",
|
|
37
|
+
qa_location = "qa_location",
|
|
38
|
+
accounts_location = "accounts_location",
|
|
39
|
+
audits = "audits"
|
|
34
40
|
}
|
|
35
|
-
export interface IRoleFilters extends Partial<Pick<IRoles, "store_location_id" | "purchase_location_id" | "gate_id" | "office_id" | "vendor_management_body_id" | "item_management_body_id" | "checkpoint_id" | "customer_management_body_id">> {
|
|
41
|
+
export interface IRoleFilters extends Partial<Pick<IRoles, "store_location_id" | "purchase_location_id" | "gate_id" | "office_id" | "vendor_management_body_id" | "item_management_body_id" | "checkpoint_id" | "customer_management_body_id" | "qa_location_id" | "accounts_location_id" | "audits_id">> {
|
|
36
42
|
type?: string;
|
|
37
43
|
name?: string;
|
|
38
44
|
department_ids?: string[];
|
|
@@ -59,6 +65,9 @@ export interface IRoles {
|
|
|
59
65
|
item_management_body_id: string | null;
|
|
60
66
|
checkpoint_id: string | null;
|
|
61
67
|
customer_management_body_id: string | null;
|
|
68
|
+
qa_location_id: string | null;
|
|
69
|
+
accounts_location_id: string | null;
|
|
70
|
+
audits_id: string | null;
|
|
62
71
|
is_enabled: boolean;
|
|
63
72
|
is_deleted: boolean;
|
|
64
73
|
deleted_at: string;
|
|
@@ -80,8 +89,11 @@ export interface IRoles {
|
|
|
80
89
|
checkpoint: INestedCheckpoint | null;
|
|
81
90
|
associated_queue_jobs: INestedQueueJob[] | null;
|
|
82
91
|
customer_management_body?: INestedCustomerManagementBody | null;
|
|
92
|
+
qa_location: INestedQALocation | null;
|
|
93
|
+
accounts_location: INestedAccountsLocation | null;
|
|
94
|
+
audits: INestedAudits | null;
|
|
83
95
|
}
|
|
84
|
-
export interface INestedRole extends Omit<IRoles, "company" | "department" | "office" | "store_location" | "purchase_location" | "gates" | "permissions" | "assigned_active_users" | "approval_chains" | "entity_approval_chain_entries" | "assigned_users" | "vendor_management_body" | "item_management_body" | "checkpoint" | "associated_queue_jobs" | "customer_management_body"> {
|
|
96
|
+
export interface INestedRole extends Omit<IRoles, "company" | "department" | "office" | "store_location" | "purchase_location" | "gates" | "permissions" | "assigned_active_users" | "approval_chains" | "entity_approval_chain_entries" | "assigned_users" | "vendor_management_body" | "item_management_body" | "checkpoint" | "associated_queue_jobs" | "customer_management_body" | "qa_location" | "accounts_location" | "audits"> {
|
|
85
97
|
}
|
|
86
98
|
export interface IPermissions extends Record<string | PERMISSION_ACTIONS, any> {
|
|
87
99
|
id: string;
|
|
@@ -23,6 +23,9 @@ var RolesInclude;
|
|
|
23
23
|
RolesInclude["checkpoint"] = "checkpoint";
|
|
24
24
|
RolesInclude["associated_queue_jobs"] = "associated_queue_jobs";
|
|
25
25
|
RolesInclude["customer_management_body"] = "customer_management_body";
|
|
26
|
+
RolesInclude["qa_location"] = "qa_location";
|
|
27
|
+
RolesInclude["accounts_location"] = "accounts_location";
|
|
28
|
+
RolesInclude["audits"] = "audits";
|
|
26
29
|
})(RolesInclude || (exports.RolesInclude = RolesInclude = {}));
|
|
27
30
|
var PermissionInclude;
|
|
28
31
|
(function (PermissionInclude) {
|
|
@@ -23,6 +23,9 @@ import { INestedInventoryLog } from "./company/inventory/inventoryLogger.typings
|
|
|
23
23
|
import { INestedPR } from "./pr.typings";
|
|
24
24
|
import { INestedVES } from "./company/masters/ves.typings";
|
|
25
25
|
import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
|
|
26
|
+
import { INestedQALocation } from "./qualityAssessment.typings";
|
|
27
|
+
import { INestedAccountsLocation } from "./accountsLocation.typings";
|
|
28
|
+
import { INestedAudits } from "./audits.typings";
|
|
26
29
|
export interface IStoreLocationFilters {
|
|
27
30
|
name?: string;
|
|
28
31
|
served_by_purchase_location_id?: string;
|
|
@@ -69,8 +72,11 @@ export interface IStoreLocation extends IAddress {
|
|
|
69
72
|
inventory_logs?: INestedInventoryLog[] | null;
|
|
70
73
|
target_location_for_ves?: INestedVES[] | null;
|
|
71
74
|
linked_checkpoints: INestedCheckpoint[] | null;
|
|
75
|
+
qa_locations: INestedQALocation | null;
|
|
76
|
+
accounts_locations: INestedAccountsLocation | null;
|
|
77
|
+
audits: INestedAudits[] | null;
|
|
72
78
|
}
|
|
73
|
-
export interface INestedStoreLocation extends Omit<IStoreLocation, "company" | "store_incharge" | "approval_configs" | "inventory_entries" | "departments" | "roles" | "indents" | "mis" | "mrns" | "prs" | "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" | "target_location_for_ves" | "linked_checkpoints"> {
|
|
79
|
+
export interface INestedStoreLocation extends Omit<IStoreLocation, "company" | "store_incharge" | "approval_configs" | "inventory_entries" | "departments" | "roles" | "indents" | "mis" | "mrns" | "prs" | "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" | "target_location_for_ves" | "linked_checkpoints" | "qa_locations" | "accounts_locations" | "audits"> {
|
|
74
80
|
}
|
|
75
81
|
export declare enum StoreLocationInclude {
|
|
76
82
|
company = "company",
|
|
@@ -96,5 +102,8 @@ export declare enum StoreLocationInclude {
|
|
|
96
102
|
iads = "iads",
|
|
97
103
|
inventory_logs = "inventory_logs",
|
|
98
104
|
target_location_for_ves = "target_location_for_ves",
|
|
99
|
-
linked_checkpoints = "linked_checkpoints"
|
|
105
|
+
linked_checkpoints = "linked_checkpoints",
|
|
106
|
+
qa_locations = "qa_locations",
|
|
107
|
+
accounts_locations = "accounts_locations",
|
|
108
|
+
audits = "audits,"
|
|
100
109
|
}
|
|
@@ -27,4 +27,7 @@ var StoreLocationInclude;
|
|
|
27
27
|
StoreLocationInclude["inventory_logs"] = "inventory_logs";
|
|
28
28
|
StoreLocationInclude["target_location_for_ves"] = "target_location_for_ves";
|
|
29
29
|
StoreLocationInclude["linked_checkpoints"] = "linked_checkpoints";
|
|
30
|
+
StoreLocationInclude["qa_locations"] = "qa_locations";
|
|
31
|
+
StoreLocationInclude["accounts_locations"] = "accounts_locations";
|
|
32
|
+
StoreLocationInclude["audits"] = "audits,";
|
|
30
33
|
})(StoreLocationInclude || (exports.StoreLocationInclude = StoreLocationInclude = {}));
|