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
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { INestedAccountsLocation } from "../../accountsLocation.typings";
|
|
2
|
+
import { IPaginationFilters } from "../../common/paginationFilters.typings";
|
|
3
|
+
import { INestedCompany } from "../../company.typings";
|
|
4
|
+
import { TAX_TYPE } from "../../documentTaxes.typings";
|
|
5
|
+
import { INestedEntityApprovalChainEntry } from "../../entityApprovalChainEntry.typings";
|
|
6
|
+
import { INestedItem } from "../../item.typings";
|
|
7
|
+
import { INestedMRN, INestedMRNItem } from "../../mrn.typings";
|
|
8
|
+
import { INestedSupplierInvoice, INestedSupplierInvoiceItem } from "../../supplierInvoice.typings";
|
|
9
|
+
import { INestedPo, INestedPOItem } from "./po.typings";
|
|
10
|
+
export declare enum INVOICE_MATCHING_RECORD_STATUS {
|
|
11
|
+
CREATED = "CREATED",
|
|
12
|
+
PENDING_APPROVAL = "PENDING_APPROVAL",
|
|
13
|
+
APPROVED = "APPROVED",
|
|
14
|
+
CANCELLED = "CANCELLED"
|
|
15
|
+
}
|
|
16
|
+
export declare enum INVOICE_MATCHING_RECORD_INCLUDE {
|
|
17
|
+
company = "company",
|
|
18
|
+
associated_supplier_invoice = "associated_supplier_invoice",
|
|
19
|
+
associated_mrn = "associated_mrn",
|
|
20
|
+
parent_accounts_entity = "parent_accounts_entity",
|
|
21
|
+
associated_pos = "associated_pos",
|
|
22
|
+
items = "items",
|
|
23
|
+
qa_approval_chain = "qa_approval_chain",
|
|
24
|
+
audit_approval_chain = "audit_approval_chain",
|
|
25
|
+
accounts_approval_chain = "accounts_approval_chain",
|
|
26
|
+
changelogs = "changelogs"
|
|
27
|
+
}
|
|
28
|
+
export interface IInvoiceMatchingRecordFilters {
|
|
29
|
+
name?: string;
|
|
30
|
+
parent_po_id?: string;
|
|
31
|
+
status_array?: INVOICE_MATCHING_RECORD_STATUS[];
|
|
32
|
+
include?: INVOICE_MATCHING_RECORD_INCLUDE[];
|
|
33
|
+
}
|
|
34
|
+
export interface IInvoiceMatchingRecordFiltersWithPagination extends IInvoiceMatchingRecordFilters, IPaginationFilters {
|
|
35
|
+
}
|
|
36
|
+
export interface IInvoiceMatchingRecord {
|
|
37
|
+
id: string;
|
|
38
|
+
imr_no: string;
|
|
39
|
+
company_id: string;
|
|
40
|
+
associated_supplier_invoice_id: string;
|
|
41
|
+
associated_mrn_id: string;
|
|
42
|
+
parent_accounts_id: string;
|
|
43
|
+
status: INVOICE_MATCHING_RECORD_STATUS;
|
|
44
|
+
approved_at: string | null;
|
|
45
|
+
created_at: string;
|
|
46
|
+
updated_at: string;
|
|
47
|
+
company: INestedCompany | null;
|
|
48
|
+
associated_supplier_invoice: INestedSupplierInvoice | null;
|
|
49
|
+
associated_mrn: INestedMRN | null;
|
|
50
|
+
parent_accounts_entity: INestedAccountsLocation | null;
|
|
51
|
+
associated_pos: INestedPo[] | null;
|
|
52
|
+
items: INestedInvoiceItemRecordItem[] | null;
|
|
53
|
+
qa_approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
54
|
+
audit_approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
55
|
+
accounts_approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
56
|
+
changelogs: INestedInvoiceMatchingRecordChangelog[] | null;
|
|
57
|
+
}
|
|
58
|
+
export interface INestedInvoiceMatchingRecord extends Omit<IInvoiceMatchingRecord, "company" | "associated_supplier_invoice" | "associated_mrn" | "parent_accounts_entity" | "associated_pos" | "items" | "qa_approval_chain" | "audit_approval_chain" | "accounts_approval_chain" | "changelogs"> {
|
|
59
|
+
}
|
|
60
|
+
export declare enum INVOICE_MATCHING_RECORD_ITEMS_INCLUDE {
|
|
61
|
+
parent_imr = "parent_imr",
|
|
62
|
+
referenced_item = "referenced_item",
|
|
63
|
+
associated_supplier_invoice_item = "associated_supplier_invoice_item",
|
|
64
|
+
associated_mrn_item = "associated_mrn_item",
|
|
65
|
+
associated_po_item = "associated_po_item",
|
|
66
|
+
imr_item_changelogs = "imr_item_changelogs"
|
|
67
|
+
}
|
|
68
|
+
export interface IInvoiceMatchingRecordItems {
|
|
69
|
+
id: string;
|
|
70
|
+
parent_imr_id: string;
|
|
71
|
+
item_id: string;
|
|
72
|
+
associated_supplier_invoice_item_id: string;
|
|
73
|
+
associated_mrn_item_id: string;
|
|
74
|
+
associated_po_item_id: string;
|
|
75
|
+
initial_quantity: number;
|
|
76
|
+
quantity: number;
|
|
77
|
+
initial_per_unit_rate: number;
|
|
78
|
+
per_unit_rate: number;
|
|
79
|
+
created_at: string;
|
|
80
|
+
updated_at: string;
|
|
81
|
+
parent_imr: INestedInvoiceMatchingRecord | null;
|
|
82
|
+
referenced_item: INestedItem | null;
|
|
83
|
+
associated_supplier_invoice_item: INestedSupplierInvoiceItem | null;
|
|
84
|
+
associated_mrn_item: INestedMRNItem | null;
|
|
85
|
+
associated_po_item: INestedPOItem | null;
|
|
86
|
+
imr_item_changelogs: INestedInvoiceMatchingRecordChangelog[] | null;
|
|
87
|
+
}
|
|
88
|
+
export interface INestedInvoiceItemRecordItem extends Omit<IInvoiceMatchingRecordItems, "parent_imr" | "referenced_item" | "associated_supplier_invoice_item" | "associated_mrn_item" | "associated_po_item" | "imr_item_changelogs"> {
|
|
89
|
+
}
|
|
90
|
+
/** For Invoice Matching Record Changelogs */
|
|
91
|
+
export declare enum INVOICE_MATCHING_RECORD_CHANGELOG_INCLUDES {
|
|
92
|
+
entity_approval_chain_entry = "entity_approval_chain_entry",
|
|
93
|
+
invoice_matching_record_item = "invoice_matching_record_item",
|
|
94
|
+
parent_invoice_matching_record = "parent_invoice_matching_record"
|
|
95
|
+
}
|
|
96
|
+
export declare enum INVOICE_MATCHING_RECORD_EDITABLE_PROPERTY_TYPE {
|
|
97
|
+
RATE = "RATE",
|
|
98
|
+
QUANTITY = "QUANTITY"
|
|
99
|
+
}
|
|
100
|
+
export interface IInvoiceMatchingRecordChangelog {
|
|
101
|
+
id: string;
|
|
102
|
+
entity_approval_chain_entry_id: string;
|
|
103
|
+
invoice_matching_record_item_id: string;
|
|
104
|
+
parent_invoice_matching_record_id: string;
|
|
105
|
+
property_updated: INVOICE_MATCHING_RECORD_EDITABLE_PROPERTY_TYPE;
|
|
106
|
+
change_unit_type: TAX_TYPE;
|
|
107
|
+
change_amount: number;
|
|
108
|
+
remarks: string | null;
|
|
109
|
+
created_at: string;
|
|
110
|
+
updated_at: string;
|
|
111
|
+
entity_approval_chain_entry: INestedEntityApprovalChainEntry | null;
|
|
112
|
+
invoice_matching_record_item: INestedInvoiceItemRecordItem | null;
|
|
113
|
+
parent_invoice_matching_record: INestedInvoiceMatchingRecord | null;
|
|
114
|
+
}
|
|
115
|
+
export interface INestedInvoiceMatchingRecordChangelog extends Omit<IInvoiceMatchingRecordChangelog, "entity_approval_chain_entry" | "invoice_matching_record_item" | "parent_invoice_matching_record"> {
|
|
116
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.INVOICE_MATCHING_RECORD_EDITABLE_PROPERTY_TYPE = exports.INVOICE_MATCHING_RECORD_CHANGELOG_INCLUDES = exports.INVOICE_MATCHING_RECORD_ITEMS_INCLUDE = exports.INVOICE_MATCHING_RECORD_INCLUDE = exports.INVOICE_MATCHING_RECORD_STATUS = void 0;
|
|
4
|
+
var INVOICE_MATCHING_RECORD_STATUS;
|
|
5
|
+
(function (INVOICE_MATCHING_RECORD_STATUS) {
|
|
6
|
+
INVOICE_MATCHING_RECORD_STATUS["CREATED"] = "CREATED";
|
|
7
|
+
INVOICE_MATCHING_RECORD_STATUS["PENDING_APPROVAL"] = "PENDING_APPROVAL";
|
|
8
|
+
INVOICE_MATCHING_RECORD_STATUS["APPROVED"] = "APPROVED";
|
|
9
|
+
INVOICE_MATCHING_RECORD_STATUS["CANCELLED"] = "CANCELLED";
|
|
10
|
+
})(INVOICE_MATCHING_RECORD_STATUS || (exports.INVOICE_MATCHING_RECORD_STATUS = INVOICE_MATCHING_RECORD_STATUS = {}));
|
|
11
|
+
var INVOICE_MATCHING_RECORD_INCLUDE;
|
|
12
|
+
(function (INVOICE_MATCHING_RECORD_INCLUDE) {
|
|
13
|
+
INVOICE_MATCHING_RECORD_INCLUDE["company"] = "company";
|
|
14
|
+
INVOICE_MATCHING_RECORD_INCLUDE["associated_supplier_invoice"] = "associated_supplier_invoice";
|
|
15
|
+
INVOICE_MATCHING_RECORD_INCLUDE["associated_mrn"] = "associated_mrn";
|
|
16
|
+
INVOICE_MATCHING_RECORD_INCLUDE["parent_accounts_entity"] = "parent_accounts_entity";
|
|
17
|
+
INVOICE_MATCHING_RECORD_INCLUDE["associated_pos"] = "associated_pos";
|
|
18
|
+
INVOICE_MATCHING_RECORD_INCLUDE["items"] = "items";
|
|
19
|
+
INVOICE_MATCHING_RECORD_INCLUDE["qa_approval_chain"] = "qa_approval_chain";
|
|
20
|
+
INVOICE_MATCHING_RECORD_INCLUDE["audit_approval_chain"] = "audit_approval_chain";
|
|
21
|
+
INVOICE_MATCHING_RECORD_INCLUDE["accounts_approval_chain"] = "accounts_approval_chain";
|
|
22
|
+
INVOICE_MATCHING_RECORD_INCLUDE["changelogs"] = "changelogs";
|
|
23
|
+
})(INVOICE_MATCHING_RECORD_INCLUDE || (exports.INVOICE_MATCHING_RECORD_INCLUDE = INVOICE_MATCHING_RECORD_INCLUDE = {}));
|
|
24
|
+
// For Invoice Matching Record Items
|
|
25
|
+
var INVOICE_MATCHING_RECORD_ITEMS_INCLUDE;
|
|
26
|
+
(function (INVOICE_MATCHING_RECORD_ITEMS_INCLUDE) {
|
|
27
|
+
INVOICE_MATCHING_RECORD_ITEMS_INCLUDE["parent_imr"] = "parent_imr";
|
|
28
|
+
INVOICE_MATCHING_RECORD_ITEMS_INCLUDE["referenced_item"] = "referenced_item";
|
|
29
|
+
INVOICE_MATCHING_RECORD_ITEMS_INCLUDE["associated_supplier_invoice_item"] = "associated_supplier_invoice_item";
|
|
30
|
+
INVOICE_MATCHING_RECORD_ITEMS_INCLUDE["associated_mrn_item"] = "associated_mrn_item";
|
|
31
|
+
INVOICE_MATCHING_RECORD_ITEMS_INCLUDE["associated_po_item"] = "associated_po_item";
|
|
32
|
+
INVOICE_MATCHING_RECORD_ITEMS_INCLUDE["imr_item_changelogs"] = "imr_item_changelogs";
|
|
33
|
+
})(INVOICE_MATCHING_RECORD_ITEMS_INCLUDE || (exports.INVOICE_MATCHING_RECORD_ITEMS_INCLUDE = INVOICE_MATCHING_RECORD_ITEMS_INCLUDE = {}));
|
|
34
|
+
/** For Invoice Matching Record Changelogs */
|
|
35
|
+
var INVOICE_MATCHING_RECORD_CHANGELOG_INCLUDES;
|
|
36
|
+
(function (INVOICE_MATCHING_RECORD_CHANGELOG_INCLUDES) {
|
|
37
|
+
INVOICE_MATCHING_RECORD_CHANGELOG_INCLUDES["entity_approval_chain_entry"] = "entity_approval_chain_entry";
|
|
38
|
+
INVOICE_MATCHING_RECORD_CHANGELOG_INCLUDES["invoice_matching_record_item"] = "invoice_matching_record_item";
|
|
39
|
+
INVOICE_MATCHING_RECORD_CHANGELOG_INCLUDES["parent_invoice_matching_record"] = "parent_invoice_matching_record";
|
|
40
|
+
})(INVOICE_MATCHING_RECORD_CHANGELOG_INCLUDES || (exports.INVOICE_MATCHING_RECORD_CHANGELOG_INCLUDES = INVOICE_MATCHING_RECORD_CHANGELOG_INCLUDES = {}));
|
|
41
|
+
var INVOICE_MATCHING_RECORD_EDITABLE_PROPERTY_TYPE;
|
|
42
|
+
(function (INVOICE_MATCHING_RECORD_EDITABLE_PROPERTY_TYPE) {
|
|
43
|
+
INVOICE_MATCHING_RECORD_EDITABLE_PROPERTY_TYPE["RATE"] = "RATE";
|
|
44
|
+
INVOICE_MATCHING_RECORD_EDITABLE_PROPERTY_TYPE["QUANTITY"] = "QUANTITY";
|
|
45
|
+
})(INVOICE_MATCHING_RECORD_EDITABLE_PROPERTY_TYPE || (exports.INVOICE_MATCHING_RECORD_EDITABLE_PROPERTY_TYPE = INVOICE_MATCHING_RECORD_EDITABLE_PROPERTY_TYPE = {}));
|
|
@@ -10,8 +10,7 @@ import { CONTACT_PERSON_TYPE, INestedContactPeople } from "../../contactPeople.t
|
|
|
10
10
|
import { ITaxRelatedItemInputs } from "../../docItems.typings";
|
|
11
11
|
import { INestedDocumentTaxes } from "../../documentTaxes.typings";
|
|
12
12
|
import { IEntityApprovalChainEntry, INestedEntityApprovalChainEntry } from "../../entityApprovalChainEntry.typings";
|
|
13
|
-
import { INestedGRN } from "../../grn.typings";
|
|
14
|
-
import { INestedInvoice } from "../../invoices.typings";
|
|
13
|
+
import { INestedGRN, INestedGRNItem } from "../../grn.typings";
|
|
15
14
|
import { INestedItem, ITEM_TOLERANCE_TYPES, ITEM_TYPES } from "../../item.typings";
|
|
16
15
|
import { INestedPOASNItemJunction } from "./poAsnJunctionItems.typings";
|
|
17
16
|
import { INestedPOGRNItemJunction } from "./poGrnJunctionItems.typings";
|
|
@@ -21,12 +20,17 @@ import { INestedStoreLocation } from "../../storeLocation.typings";
|
|
|
21
20
|
import { INestedUser } from "../../user.typings";
|
|
22
21
|
import { INestedVendor } from "../../vendor.typings";
|
|
23
22
|
import { INestedVendorUser } from "../../vendor/vendorUser.typings";
|
|
24
|
-
import { INestedMRN } from "../../mrn.typings";
|
|
23
|
+
import { INestedMRN, INestedMRNItem } from "../../mrn.typings";
|
|
25
24
|
import { INestedAmendedPOItem } from "./amendedPOItems.typings";
|
|
26
25
|
import { INestedSubPO } from "../../subPO.typings";
|
|
27
26
|
import { INestedVendorQuoteItem } from "../../vendorQuoteItems.typings";
|
|
28
27
|
import { INestedPOAssociationWithVendorQuoteItem } from "./poAssociationWithVendorQuoteItem.typings";
|
|
29
28
|
import { INestedVendorItem } from "../../vendorItem.typings";
|
|
29
|
+
import { INestedSupplierInvoice, INestedSupplierInvoiceItem } from "../../supplierInvoice.typings";
|
|
30
|
+
import { INestedInvoiceItemRecordItem, INestedInvoiceMatchingRecord } from "./imr.typings";
|
|
31
|
+
import { INestedVESItem } from "./vesItem.typings";
|
|
32
|
+
import { INestedASNItem } from "../../asn.typings";
|
|
33
|
+
import { INestedQualityClearanceDocumentItem } from "../../qcd.typings";
|
|
30
34
|
export declare enum PO_LIST_TYPES {
|
|
31
35
|
ALL = "ALL",
|
|
32
36
|
CREATED_BY_ME = "CREATED_BY_ME",
|
|
@@ -75,7 +79,7 @@ export declare enum PO_ITEM_ASCENDENCE_TYPE {
|
|
|
75
79
|
BOM = "BOM"
|
|
76
80
|
}
|
|
77
81
|
export declare enum PO_INCLUDE {
|
|
78
|
-
|
|
82
|
+
supplier_invoices = "supplier_invoices",
|
|
79
83
|
company = "company",
|
|
80
84
|
shipping_store_location = "shipping_store_location",
|
|
81
85
|
created_by_user = "created_by_user",
|
|
@@ -108,7 +112,8 @@ export declare enum PO_INCLUDE {
|
|
|
108
112
|
referenced_in_grns = "referenced_in_grns",
|
|
109
113
|
amended_po_items = "amended_po_items",
|
|
110
114
|
sub_pos = "sub_pos",
|
|
111
|
-
vendor_quote_item_associations = "vendor_quote_item_associations"
|
|
115
|
+
vendor_quote_item_associations = "vendor_quote_item_associations",
|
|
116
|
+
associated_imrs = "associated_imrs"
|
|
112
117
|
}
|
|
113
118
|
export interface IPOBaseFilters {
|
|
114
119
|
name?: string;
|
|
@@ -208,7 +213,6 @@ export interface IPurchaseOrder {
|
|
|
208
213
|
po_asn_items_junctions: INestedPOASNItemJunction[] | null;
|
|
209
214
|
least_purchase_price_items: INestedItem[] | null;
|
|
210
215
|
previous_purchase_price_items: INestedItem[] | null;
|
|
211
|
-
invoices: INestedInvoice[] | null;
|
|
212
216
|
directly_created_grns: INestedGRN[] | null;
|
|
213
217
|
po_grn_items_junctions: INestedPOGRNItemJunction[] | null;
|
|
214
218
|
child_ves: INestedVES[] | null;
|
|
@@ -219,10 +223,12 @@ export interface IPurchaseOrder {
|
|
|
219
223
|
referenced_in_grns: INestedGRN[] | null;
|
|
220
224
|
accepted_rejected_by_vendor_user: INestedVendorUser | null;
|
|
221
225
|
sub_pos: INestedSubPO[] | null;
|
|
222
|
-
metafields: IPOMetafields | null;
|
|
223
226
|
vendor_quote_item_associations: INestedPOAssociationWithVendorQuoteItem[] | null;
|
|
227
|
+
supplier_invoices: INestedSupplierInvoice[] | null;
|
|
228
|
+
associated_imrs: INestedInvoiceMatchingRecord[] | null;
|
|
229
|
+
metafields: IPOMetafields | null;
|
|
224
230
|
}
|
|
225
|
-
export interface INestedPo extends Omit<IPurchaseOrder, "company" | "purchase_location" | "shipping_store_location" | "created_by_user" | "last_updated_by_user" | "company_vendor" | "contact_person" | "external_contact_person" | "sent_for_approval_by" | "sent_to_vendor_by" | "parent_quote" | "comparative" | "items" | "boms" | "approval_chain" | "taxes" | "vendor" | "least_purchase_price_items" | "previous_purchase_price_items" | "
|
|
231
|
+
export interface INestedPo extends Omit<IPurchaseOrder, "company" | "purchase_location" | "shipping_store_location" | "created_by_user" | "last_updated_by_user" | "company_vendor" | "contact_person" | "external_contact_person" | "sent_for_approval_by" | "sent_to_vendor_by" | "parent_quote" | "comparative" | "items" | "boms" | "approval_chain" | "taxes" | "vendor" | "least_purchase_price_items" | "previous_purchase_price_items" | "supplier_invoices" | "po_grn_items_junctions" | "directly_created_grns" | "child_ves" | "tnc" | "closed_early_by_user" | "child_mrns" | "referenced_in_grns" | "accepted_rejected_by_vendor_user" | "amended_po_items" | "sub_pos" | "vendor_quote_item_associations" | "supplier_invoices" | "associated_imrs" | "metafields"> {
|
|
226
232
|
}
|
|
227
233
|
export interface IPOItem extends ITaxRelatedItemInputs {
|
|
228
234
|
id: string;
|
|
@@ -244,15 +250,31 @@ export interface IPOItem extends ITaxRelatedItemInputs {
|
|
|
244
250
|
parent_po: INestedPo | null;
|
|
245
251
|
parent_po_bom: INestedPOBom | null;
|
|
246
252
|
referenced_comparative_item: INestedComparativeItem | null;
|
|
253
|
+
associated_imr_items: INestedInvoiceItemRecordItem[] | null;
|
|
254
|
+
referenced_in_ves_items: INestedVESItem[] | null;
|
|
255
|
+
referenced_in_grn_items: INestedGRNItem[] | null;
|
|
256
|
+
referenced_in_mrn_items: INestedMRNItem[] | null;
|
|
257
|
+
referenced_in_po_grn_item_junction: INestedPOGRNItemJunction[] | null;
|
|
258
|
+
asn_items: INestedASNItem[] | null;
|
|
259
|
+
referenced_in_qcd_items: INestedQualityClearanceDocumentItem[] | null;
|
|
260
|
+
supplier_invoice_items: INestedSupplierInvoiceItem[] | null;
|
|
247
261
|
}
|
|
248
|
-
export interface INestedPOItem extends Omit<IPOItem, "company" | "item" | "parent_po" | "parent_po_bom" | "referenced_comparative_item"> {
|
|
262
|
+
export interface INestedPOItem extends Omit<IPOItem, "company" | "item" | "parent_po" | "parent_po_bom" | "referenced_comparative_item" | "associated_imr_items" | "referenced_in_ves_items" | "referenced_in_grn_items" | "referenced_in_mrn_items" | "referenced_in_po_grn_item_junction" | "asn_items" | "referenced_in_qcd_items" | "supplier_invoice_items"> {
|
|
249
263
|
}
|
|
250
264
|
export declare enum PO_ITEM_INCLUDE {
|
|
251
265
|
company = "company",
|
|
252
266
|
item = "item",
|
|
253
267
|
parent_po = "parent_po",
|
|
254
268
|
parent_po_bom = "parent_po_bom",
|
|
255
|
-
referenced_comparative_item = "referenced_comparative_item"
|
|
269
|
+
referenced_comparative_item = "referenced_comparative_item",
|
|
270
|
+
associated_imr_items = "associated_imr_items",
|
|
271
|
+
referenced_in_ves_items = "referenced_in_ves_items",
|
|
272
|
+
referenced_in_grn_items = "referenced_in_grn_items",
|
|
273
|
+
referenced_in_mrn_items = "referenced_in_mrn_items",
|
|
274
|
+
referenced_in_po_grn_item_junction = "referenced_in_po_grn_item_junction",
|
|
275
|
+
asn_items = "asn_items",
|
|
276
|
+
referenced_in_qcd_items = "referenced_in_qcd_items",
|
|
277
|
+
supplier_invoice_items = "supplier_invoice_items"
|
|
256
278
|
}
|
|
257
279
|
export declare enum PO_BOM_INCLUDE {
|
|
258
280
|
parent_po = "parent_po",
|
|
@@ -55,7 +55,7 @@ var PO_ITEM_ASCENDENCE_TYPE;
|
|
|
55
55
|
})(PO_ITEM_ASCENDENCE_TYPE || (exports.PO_ITEM_ASCENDENCE_TYPE = PO_ITEM_ASCENDENCE_TYPE = {}));
|
|
56
56
|
var PO_INCLUDE;
|
|
57
57
|
(function (PO_INCLUDE) {
|
|
58
|
-
PO_INCLUDE["
|
|
58
|
+
PO_INCLUDE["supplier_invoices"] = "supplier_invoices";
|
|
59
59
|
PO_INCLUDE["company"] = "company";
|
|
60
60
|
PO_INCLUDE["shipping_store_location"] = "shipping_store_location";
|
|
61
61
|
PO_INCLUDE["created_by_user"] = "created_by_user";
|
|
@@ -89,6 +89,7 @@ var PO_INCLUDE;
|
|
|
89
89
|
PO_INCLUDE["amended_po_items"] = "amended_po_items";
|
|
90
90
|
PO_INCLUDE["sub_pos"] = "sub_pos";
|
|
91
91
|
PO_INCLUDE["vendor_quote_item_associations"] = "vendor_quote_item_associations";
|
|
92
|
+
PO_INCLUDE["associated_imrs"] = "associated_imrs";
|
|
92
93
|
})(PO_INCLUDE || (exports.PO_INCLUDE = PO_INCLUDE = {}));
|
|
93
94
|
var PO_ITEM_INCLUDE;
|
|
94
95
|
(function (PO_ITEM_INCLUDE) {
|
|
@@ -97,6 +98,14 @@ var PO_ITEM_INCLUDE;
|
|
|
97
98
|
PO_ITEM_INCLUDE["parent_po"] = "parent_po";
|
|
98
99
|
PO_ITEM_INCLUDE["parent_po_bom"] = "parent_po_bom";
|
|
99
100
|
PO_ITEM_INCLUDE["referenced_comparative_item"] = "referenced_comparative_item";
|
|
101
|
+
PO_ITEM_INCLUDE["associated_imr_items"] = "associated_imr_items";
|
|
102
|
+
PO_ITEM_INCLUDE["referenced_in_ves_items"] = "referenced_in_ves_items";
|
|
103
|
+
PO_ITEM_INCLUDE["referenced_in_grn_items"] = "referenced_in_grn_items";
|
|
104
|
+
PO_ITEM_INCLUDE["referenced_in_mrn_items"] = "referenced_in_mrn_items";
|
|
105
|
+
PO_ITEM_INCLUDE["referenced_in_po_grn_item_junction"] = "referenced_in_po_grn_item_junction";
|
|
106
|
+
PO_ITEM_INCLUDE["asn_items"] = "asn_items";
|
|
107
|
+
PO_ITEM_INCLUDE["referenced_in_qcd_items"] = "referenced_in_qcd_items";
|
|
108
|
+
PO_ITEM_INCLUDE["supplier_invoice_items"] = "supplier_invoice_items";
|
|
100
109
|
})(PO_ITEM_INCLUDE || (exports.PO_ITEM_INCLUDE = PO_ITEM_INCLUDE = {}));
|
|
101
110
|
var PO_BOM_INCLUDE;
|
|
102
111
|
(function (PO_BOM_INCLUDE) {
|
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
import { INestedCompany } from "../../company.typings";
|
|
2
2
|
import { INestedGRNItem } from "../../grn.typings";
|
|
3
3
|
import { INestedItem } from "../../item.typings";
|
|
4
|
-
import { INestedPo } from "./po.typings";
|
|
4
|
+
import { INestedPo, INestedPOItem } from "./po.typings";
|
|
5
5
|
export declare enum PO_GRN_ITEMS_JUNCTION_INCLUDE {
|
|
6
6
|
parent_po = "parent_po",
|
|
7
7
|
company = "company",
|
|
8
8
|
item = "item",
|
|
9
|
-
grn_items = "grn_items"
|
|
9
|
+
grn_items = "grn_items",
|
|
10
|
+
parent_po_item = "parent_po_item"
|
|
10
11
|
}
|
|
11
12
|
export interface IPOGRNItemsJunction {
|
|
12
13
|
id: string;
|
|
13
14
|
company_id: string;
|
|
14
15
|
po_id: string;
|
|
15
16
|
item_id: string;
|
|
17
|
+
parent_po_item_id: string;
|
|
16
18
|
processing_quantity: number;
|
|
17
19
|
pending_quantity: number;
|
|
20
|
+
parent_po_item: INestedPOItem | null;
|
|
18
21
|
parent_po: INestedPo | null;
|
|
19
22
|
company: INestedCompany | null;
|
|
20
23
|
item: INestedItem | null;
|
|
21
24
|
grn_items: INestedGRNItem[] | null;
|
|
22
25
|
}
|
|
23
|
-
export interface INestedPOGRNItemJunction extends Omit<IPOGRNItemsJunction, "parent_po" | "company" | "item" | "grn_items"> {
|
|
26
|
+
export interface INestedPOGRNItemJunction extends Omit<IPOGRNItemsJunction, "parent_po" | "company" | "item" | "grn_items" | "parent_po_item"> {
|
|
24
27
|
}
|
|
@@ -7,4 +7,5 @@ var PO_GRN_ITEMS_JUNCTION_INCLUDE;
|
|
|
7
7
|
PO_GRN_ITEMS_JUNCTION_INCLUDE["company"] = "company";
|
|
8
8
|
PO_GRN_ITEMS_JUNCTION_INCLUDE["item"] = "item";
|
|
9
9
|
PO_GRN_ITEMS_JUNCTION_INCLUDE["grn_items"] = "grn_items";
|
|
10
|
+
PO_GRN_ITEMS_JUNCTION_INCLUDE["parent_po_item"] = "parent_po_item";
|
|
10
11
|
})(PO_GRN_ITEMS_JUNCTION_INCLUDE || (exports.PO_GRN_ITEMS_JUNCTION_INCLUDE = PO_GRN_ITEMS_JUNCTION_INCLUDE = {}));
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { INestedGRNItem } from "../../grn.typings";
|
|
2
2
|
import { INestedItem } from "../../item.typings";
|
|
3
|
+
import { INestedPOItem } from "./po.typings";
|
|
3
4
|
import { INestedVES } from "./ves.typings";
|
|
4
5
|
export declare enum VES_ITEM_INCLUDE {
|
|
5
6
|
item = "item",
|
|
6
7
|
parent_ves = "parent_ves",
|
|
7
|
-
child_grn_items = "child_grn_items"
|
|
8
|
+
child_grn_items = "child_grn_items",
|
|
9
|
+
parent_po_item = "parent_po_item"
|
|
8
10
|
}
|
|
9
11
|
export interface IVesItem {
|
|
10
12
|
id: string;
|
|
11
13
|
item_id: string;
|
|
14
|
+
parent_po_item_id: string;
|
|
12
15
|
item_name: string;
|
|
13
16
|
code_sku: string;
|
|
14
17
|
uom: string;
|
|
@@ -20,7 +23,8 @@ export interface IVesItem {
|
|
|
20
23
|
updated_at: Date;
|
|
21
24
|
item: INestedItem | null;
|
|
22
25
|
parent_ves: INestedVES | null;
|
|
26
|
+
parent_po_item: INestedPOItem | null;
|
|
23
27
|
child_grn_items: INestedGRNItem[] | null;
|
|
24
28
|
}
|
|
25
|
-
export interface INestedVESItem extends Omit<IVesItem, "item" | "parent_ves" | "child_grn_items"> {
|
|
29
|
+
export interface INestedVESItem extends Omit<IVesItem, "item" | "parent_ves" | "child_grn_items" | "parent_po_item"> {
|
|
26
30
|
}
|
|
@@ -6,4 +6,5 @@ var VES_ITEM_INCLUDE;
|
|
|
6
6
|
VES_ITEM_INCLUDE["item"] = "item";
|
|
7
7
|
VES_ITEM_INCLUDE["parent_ves"] = "parent_ves";
|
|
8
8
|
VES_ITEM_INCLUDE["child_grn_items"] = "child_grn_items";
|
|
9
|
+
VES_ITEM_INCLUDE["parent_po_item"] = "parent_po_item";
|
|
9
10
|
})(VES_ITEM_INCLUDE || (exports.VES_ITEM_INCLUDE = VES_ITEM_INCLUDE = {}));
|
|
@@ -61,8 +61,13 @@ import { INestedRFQQuestionnaireAnswer } from "./common/configurableForms/rfqQue
|
|
|
61
61
|
import { INestedCustomer } from "./customer.typings";
|
|
62
62
|
import { INestedCompanyCustomerCategory } from "./companyCustomerCategory.typings";
|
|
63
63
|
import { INestedCustomerManagementBody } from "./company/masters/customerManagementBody.typings";
|
|
64
|
+
import { INestedQALocation } from "./qualityAssessment.typings";
|
|
65
|
+
import { INestedAccountsLocation } from "./accountsLocation.typings";
|
|
64
66
|
import { INestedVendorDocumentManualVerificationByCompany } from "./common/vendorDocumentsManualVerificationByCompany.typings";
|
|
65
67
|
import { INestedERPPluginMetadata } from "./system/erpPluginsMetadata.typings";
|
|
68
|
+
import { ISupplierInvoice } from "./supplierInvoice.typings";
|
|
69
|
+
import { INestedQualityClearanceDocument } from "./qcd.typings";
|
|
70
|
+
import { INestedAudits } from "./audits.typings";
|
|
66
71
|
export declare enum PRICING_PLANS {
|
|
67
72
|
BASIC = "BASIC",
|
|
68
73
|
GROWTH = "GROWTH",
|
|
@@ -140,8 +145,13 @@ export declare enum COMPANY_INCLUDE {
|
|
|
140
145
|
company_customer_categories = "company_customer_categories",
|
|
141
146
|
associated_customer = "associated_customer",
|
|
142
147
|
customer_management_bodies = "customer_management_bodies",
|
|
148
|
+
qa_locations = "qa_locations",
|
|
149
|
+
accounts_locations = "accounts_locations",
|
|
143
150
|
vendor_documents_manual_verification_by_company = "vendor_documents_manual_verification_by_company",
|
|
144
|
-
erp_plugings_metadata = "erp_plugings_metadata"
|
|
151
|
+
erp_plugings_metadata = "erp_plugings_metadata",
|
|
152
|
+
invoice = "invoice",
|
|
153
|
+
quality_clearance_documents = "quality_clearance_documents",
|
|
154
|
+
audits = "audits"
|
|
145
155
|
}
|
|
146
156
|
export interface ICompany extends IAddress {
|
|
147
157
|
id: string;
|
|
@@ -251,10 +261,15 @@ export interface ICompany extends IAddress {
|
|
|
251
261
|
company_customer_categories: INestedCompanyCustomerCategory[] | null;
|
|
252
262
|
associated_customer: INestedCustomer[] | null;
|
|
253
263
|
customer_management_bodies: INestedCustomerManagementBody[] | null;
|
|
264
|
+
qa_locations: INestedQALocation | null;
|
|
265
|
+
accounts_locations: INestedAccountsLocation | null;
|
|
254
266
|
vendor_documents_manual_verification_by_company: INestedVendorDocumentManualVerificationByCompany[] | null;
|
|
255
267
|
erp_plugings_metadata: INestedERPPluginMetadata[] | null;
|
|
268
|
+
invoice: ISupplierInvoice[] | null;
|
|
269
|
+
quality_clearance_documents: INestedQualityClearanceDocument[] | null;
|
|
270
|
+
audits: INestedAudits[] | null;
|
|
256
271
|
}
|
|
257
|
-
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" | "extra_question_ans" | "extra_core_related_questions" | "company_specific_vendor_items" | "po_asn_items_junction" | "company_contact_people" | "company_item_vendor_versions" | "istds" | "istd_items" | "inventory_logs" | "invoices" | "logs" | "vendor_onboarding_requests" | "vendor_management_bodies" | "item_management_bodies" | "rollback_forms_sent_by_company" | "company_checkpoints" | "company_ves" | "queue_jobs" | "company_terms_and_conditions" | "company_config" | "erp_plugins" | "company_temporary_worker_form" | "extra_questions" | "is_deleted" | "payment_terms" | "po_grn_items_junction" | "vendor_onboarding_request_categories" | "company_amended_po_items" | "sub_pos" | "sub_po_items" | "item_questionnaire" | "rfq_questionnaire" | "rfq_questionnaire_answers" | "company_customer_categories" | "associated_customer" | "customer_management_bodies" | "vendor_documents_manual_verification_by_company" | "erp_plugings_metadata"> {
|
|
272
|
+
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" | "extra_question_ans" | "extra_core_related_questions" | "company_specific_vendor_items" | "po_asn_items_junction" | "company_contact_people" | "company_item_vendor_versions" | "istds" | "istd_items" | "inventory_logs" | "invoices" | "logs" | "vendor_onboarding_requests" | "vendor_management_bodies" | "item_management_bodies" | "rollback_forms_sent_by_company" | "company_checkpoints" | "company_ves" | "queue_jobs" | "company_terms_and_conditions" | "company_config" | "erp_plugins" | "company_temporary_worker_form" | "extra_questions" | "is_deleted" | "payment_terms" | "po_grn_items_junction" | "vendor_onboarding_request_categories" | "company_amended_po_items" | "sub_pos" | "sub_po_items" | "item_questionnaire" | "rfq_questionnaire" | "rfq_questionnaire_answers" | "company_customer_categories" | "associated_customer" | "customer_management_bodies" | "qa_locations" | "accounts_locations" | "vendor_documents_manual_verification_by_company" | "erp_plugings_metadata" | "invoice" | "quality_clearance_documents" | "audits"> {
|
|
258
273
|
}
|
|
259
274
|
export interface ICompanyVendorAdditionalInfoMappingConfig {
|
|
260
275
|
additional_info_form_que_id: string;
|
|
@@ -50,7 +50,6 @@ var COMPANY_INCLUDE;
|
|
|
50
50
|
COMPANY_INCLUDE["company_comparative_items"] = "company_comparative_items";
|
|
51
51
|
COMPANY_INCLUDE["company_notifications"] = "company_notifications";
|
|
52
52
|
COMPANY_INCLUDE["extra_questions"] = "extra_questions";
|
|
53
|
-
// extra_questions_options = "extra_questions_options",
|
|
54
53
|
COMPANY_INCLUDE["extra_question_ans"] = "extra_question_ans";
|
|
55
54
|
COMPANY_INCLUDE["extra_core_related_questions"] = "extra_core_related_questions";
|
|
56
55
|
COMPANY_INCLUDE["company_specific_vendor_items"] = "company_specific_vendor_items";
|
|
@@ -79,8 +78,13 @@ var COMPANY_INCLUDE;
|
|
|
79
78
|
COMPANY_INCLUDE["company_customer_categories"] = "company_customer_categories";
|
|
80
79
|
COMPANY_INCLUDE["associated_customer"] = "associated_customer";
|
|
81
80
|
COMPANY_INCLUDE["customer_management_bodies"] = "customer_management_bodies";
|
|
81
|
+
COMPANY_INCLUDE["qa_locations"] = "qa_locations";
|
|
82
|
+
COMPANY_INCLUDE["accounts_locations"] = "accounts_locations";
|
|
82
83
|
COMPANY_INCLUDE["vendor_documents_manual_verification_by_company"] = "vendor_documents_manual_verification_by_company";
|
|
83
84
|
COMPANY_INCLUDE["erp_plugings_metadata"] = "erp_plugings_metadata";
|
|
85
|
+
COMPANY_INCLUDE["invoice"] = "invoice";
|
|
86
|
+
COMPANY_INCLUDE["quality_clearance_documents"] = "quality_clearance_documents";
|
|
87
|
+
COMPANY_INCLUDE["audits"] = "audits";
|
|
84
88
|
})(COMPANY_INCLUDE || (exports.COMPANY_INCLUDE = COMPANY_INCLUDE = {}));
|
|
85
89
|
// export interface IUpdateVendorOnboardingRequestCategoriesInputs
|
|
86
90
|
// extends Pick<ICompany, "vendor_onboarding_request_categories"> {}
|
|
@@ -18,6 +18,7 @@ import { INestedVendorGroups } from "./vendorGroup.typings";
|
|
|
18
18
|
import { INestedVendorUser } from "./vendor/vendorUser.typings";
|
|
19
19
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
20
20
|
import { IVendorDocumentManualVerificationByCompanyForMetafields } from "./common/vendorDocumentsManualVerificationByCompany.typings";
|
|
21
|
+
import { ISupplierInvoice } from "./supplierInvoice.typings";
|
|
21
22
|
export declare enum COMPANY_FORM_STATUS_FOR_VENDOR {
|
|
22
23
|
INVITED = "INVITED",
|
|
23
24
|
ANSWERED = "ANSWERED",
|
|
@@ -53,7 +54,8 @@ export declare enum CompanyVendorsInclude {
|
|
|
53
54
|
cancelled_by_user = "cancelled_by_user",
|
|
54
55
|
onboarded_by_user = "onboarded_by_user",
|
|
55
56
|
extra_form_ans = "extra_form_ans",
|
|
56
|
-
parent_vendor_onboarding_request_category = "parent_vendor_onboarding_request_category"
|
|
57
|
+
parent_vendor_onboarding_request_category = "parent_vendor_onboarding_request_category",
|
|
58
|
+
invoice = "invoice"
|
|
57
59
|
}
|
|
58
60
|
export declare enum COMPANY_VENDOR_METAFIELDS_INCLUDE {
|
|
59
61
|
contact_details_for_po = "contact_details_for_po",
|
|
@@ -136,6 +138,7 @@ export interface ICompanyVendor {
|
|
|
136
138
|
extra_form_ans: INestedExtraFormAnswer[] | null;
|
|
137
139
|
parent_vendor_onboarding_request_category: INestedVendorOnboardingRequestCategory | null;
|
|
138
140
|
metafields: ICompanyVendorMetafields | null;
|
|
141
|
+
invoice: ISupplierInvoice[] | null;
|
|
139
142
|
}
|
|
140
143
|
export interface INestedCompanyVendors extends Omit<ICompanyVendor, "company" | "vendor" | "rfqs_sent" | "vendor_groups" | "negotiations" | "pos" | "selected_item_categories" | "selected_items" | "company_allowed_item_categories" | "company_item_verndor_versions" | "approval_chain" | "invoices" | "parent_vendor_onboarding_request" | "created_by_user" | "last_updated_by" | "sent_for_approval_by_user" | "questions_sent_by_user" | "extra_form_ans" | "parent_vendor_onboarding_request_category" | "metafields"> {
|
|
141
144
|
}
|
|
@@ -40,6 +40,7 @@ var CompanyVendorsInclude;
|
|
|
40
40
|
CompanyVendorsInclude["onboarded_by_user"] = "onboarded_by_user";
|
|
41
41
|
CompanyVendorsInclude["extra_form_ans"] = "extra_form_ans";
|
|
42
42
|
CompanyVendorsInclude["parent_vendor_onboarding_request_category"] = "parent_vendor_onboarding_request_category";
|
|
43
|
+
CompanyVendorsInclude["invoice"] = "invoice";
|
|
43
44
|
})(CompanyVendorsInclude || (exports.CompanyVendorsInclude = CompanyVendorsInclude = {}));
|
|
44
45
|
var COMPANY_VENDOR_METAFIELDS_INCLUDE;
|
|
45
46
|
(function (COMPANY_VENDOR_METAFIELDS_INCLUDE) {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { EntityTypes } from "../constants/entityTypes.constants";
|
|
2
|
+
import { INestedAccountsLocation } from "./accountsLocation.typings";
|
|
3
|
+
import { INestedAudits } from "./audits.typings";
|
|
2
4
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
3
5
|
import { INestedCompany } from "./company.typings";
|
|
4
6
|
import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
|
|
@@ -13,10 +15,11 @@ import { INestedMI } from "./mi.typings";
|
|
|
13
15
|
import { INestedMRN } from "./mrn.typings";
|
|
14
16
|
import { INestedOffice } from "./offices.typings";
|
|
15
17
|
import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
18
|
+
import { INestedQALocation } from "./qualityAssessment.typings";
|
|
16
19
|
import { INestedRole } from "./roles.typings";
|
|
17
20
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
18
21
|
import { INestedUser } from "./user.typings";
|
|
19
|
-
export interface IDepartmentFilters extends Partial<Pick<IDepartment, "office_id" | "store_location_id" | "purchase_location_id" | "gate_id" | "vendor_management_body_id" | "item_management_body_id" | "checkpoint_id" | "customer_management_body_id">> {
|
|
22
|
+
export interface IDepartmentFilters extends Partial<Pick<IDepartment, "office_id" | "store_location_id" | "purchase_location_id" | "gate_id" | "vendor_management_body_id" | "item_management_body_id" | "checkpoint_id" | "customer_management_body_id" | "accounts_location_id" | "qa_location_id" | "audits_id">> {
|
|
20
23
|
name?: string;
|
|
21
24
|
type?: EntityTypes;
|
|
22
25
|
include?: DepartmentInclude[];
|
|
@@ -40,6 +43,9 @@ export interface IDepartment {
|
|
|
40
43
|
item_management_body_id?: string | null;
|
|
41
44
|
checkpoint_id?: string | null;
|
|
42
45
|
customer_management_body_id?: string | null;
|
|
46
|
+
qa_location_id?: string | null;
|
|
47
|
+
accounts_location_id?: string | null;
|
|
48
|
+
audits_id?: string | null;
|
|
43
49
|
department_name: string;
|
|
44
50
|
department_code: string;
|
|
45
51
|
created_by_id: string;
|
|
@@ -65,8 +71,11 @@ export interface IDepartment {
|
|
|
65
71
|
mrns?: null | INestedMRN[];
|
|
66
72
|
vendor_onboarding_requests?: INestedVendorOnboardingRequest[] | null;
|
|
67
73
|
parent_customer_management_body?: INestedCustomerManagementBody | null;
|
|
74
|
+
qa_location: INestedQALocation | null;
|
|
75
|
+
accounts_location: INestedAccountsLocation | null;
|
|
76
|
+
audits: INestedAudits | null;
|
|
68
77
|
}
|
|
69
|
-
export interface INestedDepartment extends Omit<IDepartment, "company" | "hod" | "parent_office" | "parent_store_location" | "parent_purchase_location" | "parent_gate" | "indents" | "mis" | "subdepartments" | "roles" | "grns" | "mrns" | "parent_vendor_management_body" | "vendor_onboarding_requests" | "parent_item_management_body" | "parent_checkpoint" | "parent_customer_management_body"> {
|
|
78
|
+
export interface INestedDepartment extends Omit<IDepartment, "company" | "hod" | "parent_office" | "parent_store_location" | "parent_purchase_location" | "parent_gate" | "indents" | "mis" | "subdepartments" | "roles" | "grns" | "mrns" | "parent_vendor_management_body" | "vendor_onboarding_requests" | "parent_item_management_body" | "parent_checkpoint" | "parent_customer_management_body" | "qa_location" | "accounts_location" | "audits"> {
|
|
70
79
|
}
|
|
71
80
|
export declare enum DepartmentInclude {
|
|
72
81
|
company = "company",
|
|
@@ -85,7 +94,10 @@ export declare enum DepartmentInclude {
|
|
|
85
94
|
vendor_onboarding_requests = "vendor_onboarding_requests",
|
|
86
95
|
parent_item_management_body = "parent_item_management_body",
|
|
87
96
|
parent_checkpoint = "parent_checkpoint",
|
|
88
|
-
parent_customer_management_body = "parent_customer_management_body"
|
|
97
|
+
parent_customer_management_body = "parent_customer_management_body",
|
|
98
|
+
qa_location = "qa_location",
|
|
99
|
+
accounts_location = "accounts_location",
|
|
100
|
+
audits = "audits"
|
|
89
101
|
}
|
|
90
102
|
export interface ISubDepartment {
|
|
91
103
|
id: string;
|
|
@@ -20,4 +20,7 @@ var DepartmentInclude;
|
|
|
20
20
|
DepartmentInclude["parent_item_management_body"] = "parent_item_management_body";
|
|
21
21
|
DepartmentInclude["parent_checkpoint"] = "parent_checkpoint";
|
|
22
22
|
DepartmentInclude["parent_customer_management_body"] = "parent_customer_management_body";
|
|
23
|
+
DepartmentInclude["qa_location"] = "qa_location";
|
|
24
|
+
DepartmentInclude["accounts_location"] = "accounts_location";
|
|
25
|
+
DepartmentInclude["audits"] = "audits";
|
|
23
26
|
})(DepartmentInclude || (exports.DepartmentInclude = DepartmentInclude = {}));
|
|
@@ -18,6 +18,8 @@ import { INestedRole } from "./roles.typings";
|
|
|
18
18
|
import { INestedUser } from "./user.typings";
|
|
19
19
|
import { INestedSubPO } from "./subPO.typings";
|
|
20
20
|
import { INestedCompanyCustomer } from "./companyCustomer.typings";
|
|
21
|
+
import { INestedQualityClearanceDocument } from "./qcd.typings";
|
|
22
|
+
import { INestedInvoiceMatchingRecordChangelog } from "./company/masters/imr.typings";
|
|
21
23
|
export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS {
|
|
22
24
|
INDENT = "INDENT",
|
|
23
25
|
PR = "PR",
|
|
@@ -35,7 +37,9 @@ export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS {
|
|
|
35
37
|
ISTD_SOURCE = "ISTD_SOURCE",
|
|
36
38
|
ISTD_DEST = "ISTD_DEST",
|
|
37
39
|
SUB_PO = "SUB_PO",
|
|
38
|
-
COMPANY_CUSTOMER = "COMPANY_CUSTOMER"
|
|
40
|
+
COMPANY_CUSTOMER = "COMPANY_CUSTOMER",
|
|
41
|
+
INVOICE_MATCHING_RECORD = "INVOICE_MATCHING_RECORD",
|
|
42
|
+
QUALITY_CLEARANCE_DOCUMENT = "QUALITY_CLEARANCE_DOCUMENT"
|
|
39
43
|
}
|
|
40
44
|
export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES {
|
|
41
45
|
company = "company",
|
|
@@ -58,7 +62,12 @@ export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES {
|
|
|
58
62
|
company_vendor = "company_vendor",
|
|
59
63
|
vendor_onboarding_request_scores = "vendor_onboarding_request_scores",
|
|
60
64
|
ves = "ves",
|
|
61
|
-
company_customer = "company_customer"
|
|
65
|
+
company_customer = "company_customer",
|
|
66
|
+
parent_qcd = "parent_qcd",
|
|
67
|
+
for_qa_approval_of_imr = "for_qa_approval_of_imr",
|
|
68
|
+
for_audits_approval_of_imr = "for_audits_approval_of_imr",
|
|
69
|
+
for_accounts_approval_of_imr = "for_accounts_approval_of_imr",
|
|
70
|
+
imr_changelogs = "imr_changelogs"
|
|
62
71
|
}
|
|
63
72
|
export interface IEntityApprovalChainEntry {
|
|
64
73
|
id: string;
|
|
@@ -86,6 +95,9 @@ export interface IEntityApprovalChainEntry {
|
|
|
86
95
|
company_vendor_id?: string | null;
|
|
87
96
|
ves_id?: string | null;
|
|
88
97
|
company_distibutor_id?: string | null;
|
|
98
|
+
for_qa_approval_of_imr_id?: string | null;
|
|
99
|
+
for_audits_approval_of_imr_id?: string | null;
|
|
100
|
+
for_accounts_approval_of_imr_id?: string | null;
|
|
89
101
|
reason_for_adding_additional_approver: string | null;
|
|
90
102
|
approval_remark: string | null;
|
|
91
103
|
deleted_at: string | null;
|
|
@@ -114,6 +126,11 @@ export interface IEntityApprovalChainEntry {
|
|
|
114
126
|
item: INestedItem | null;
|
|
115
127
|
asn: INestedASN | null;
|
|
116
128
|
company_customer?: INestedCompanyCustomer | null;
|
|
129
|
+
parent_qcd: INestedQualityClearanceDocument | null;
|
|
130
|
+
for_qa_approval_of_imr: INestedEntityApprovalChainEntry[] | null;
|
|
131
|
+
for_audits_approval_of_imr: INestedEntityApprovalChainEntry[] | null;
|
|
132
|
+
for_accounts_approval_of_imr: INestedEntityApprovalChainEntry[] | null;
|
|
133
|
+
imr_changelogs: INestedInvoiceMatchingRecordChangelog[] | null;
|
|
117
134
|
}
|
|
118
|
-
export interface INestedEntityApprovalChainEntry extends Omit<IEntityApprovalChainEntry, "company" | "user" | "role" | "indent" | "mi" | "pr" | "rfq" | "comparative" | "po" | "sub_po" | "grn" | "mrn" | "source_istd" | "dest_istd" | "vendor_onboarding_request" | "company_vendor" | "vendor_onboarding_request_scores" | "item" | "asn" | "ves" | "company_customer"> {
|
|
135
|
+
export interface INestedEntityApprovalChainEntry extends Omit<IEntityApprovalChainEntry, "company" | "user" | "role" | "indent" | "mi" | "pr" | "rfq" | "comparative" | "po" | "sub_po" | "grn" | "mrn" | "source_istd" | "dest_istd" | "vendor_onboarding_request" | "company_vendor" | "vendor_onboarding_request_scores" | "item" | "asn" | "ves" | "company_customer" | "parent_qcd" | "for_qa_approval_of_imr" | "for_audits_approval_of_imr" | "for_accounts_approval_of_imr" | "imr_changelogs"> {
|
|
119
136
|
}
|
|
@@ -20,6 +20,8 @@ var ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS;
|
|
|
20
20
|
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["ISTD_DEST"] = "ISTD_DEST";
|
|
21
21
|
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["SUB_PO"] = "SUB_PO";
|
|
22
22
|
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["COMPANY_CUSTOMER"] = "COMPANY_CUSTOMER";
|
|
23
|
+
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["INVOICE_MATCHING_RECORD"] = "INVOICE_MATCHING_RECORD";
|
|
24
|
+
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["QUALITY_CLEARANCE_DOCUMENT"] = "QUALITY_CLEARANCE_DOCUMENT";
|
|
23
25
|
})(ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS || (exports.ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS = ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS = {}));
|
|
24
26
|
var ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES;
|
|
25
27
|
(function (ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES) {
|
|
@@ -44,4 +46,9 @@ var ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES;
|
|
|
44
46
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["vendor_onboarding_request_scores"] = "vendor_onboarding_request_scores";
|
|
45
47
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["ves"] = "ves";
|
|
46
48
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["company_customer"] = "company_customer";
|
|
49
|
+
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["parent_qcd"] = "parent_qcd";
|
|
50
|
+
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["for_qa_approval_of_imr"] = "for_qa_approval_of_imr";
|
|
51
|
+
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["for_audits_approval_of_imr"] = "for_audits_approval_of_imr";
|
|
52
|
+
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["for_accounts_approval_of_imr"] = "for_accounts_approval_of_imr";
|
|
53
|
+
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["imr_changelogs"] = "imr_changelogs";
|
|
47
54
|
})(ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES || (exports.ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES = ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES = {}));
|