kcommons 18.17.15 → 18.17.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/typings/approvalConfig.typings.d.ts +7 -3
- package/build/typings/approvalConfig.typings.js +1 -0
- package/build/typings/asn.typings.d.ts +5 -1
- package/build/typings/asn.typings.js +1 -0
- package/build/typings/company/istd/istd.typings.d.ts +5 -1
- package/build/typings/company/istd/istd.typings.js +1 -0
- package/build/typings/company/masters/po.typings.d.ts +5 -1
- package/build/typings/company/masters/po.typings.js +1 -0
- package/build/typings/company/masters/ves.typings.d.ts +5 -1
- package/build/typings/company/masters/ves.typings.js +1 -0
- package/build/typings/companyCustomer.typings.d.ts +5 -1
- package/build/typings/companyCustomer.typings.js +1 -0
- package/build/typings/companyVendors.typings.d.ts +5 -1
- package/build/typings/companyVendors.typings.js +1 -0
- package/build/typings/comparative.typings.d.ts +5 -1
- package/build/typings/comparative.typings.js +1 -0
- package/build/typings/department.typings.d.ts +37 -1
- package/build/typings/department.typings.js +12 -0
- package/build/typings/item.typings.d.ts +5 -1
- package/build/typings/item.typings.js +1 -0
- package/build/typings/pr.typings.d.ts +5 -1
- package/build/typings/pr.typings.js +1 -0
- package/build/typings/qcd.typings.d.ts +5 -1
- package/build/typings/qcd.typings.js +1 -0
- package/build/typings/rfq.typings.d.ts +5 -1
- package/build/typings/rfq.typings.js +1 -0
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ import { INestedItemManagementBody } from "./company/masters/itemManagementbody.
|
|
|
7
7
|
import { INestedVendorManagementBody } from "./company/masters/vendorManagementBody.typings";
|
|
8
8
|
import { INestedVendorOnboardingRequestCategory } from "./company/vendorOnboardingRequest/vendorOnboardingRequestCategory.typings";
|
|
9
9
|
import { INestedCompanyCustomerCategory } from "./companyCustomerCategory.typings";
|
|
10
|
+
import { INestedDepartment } from "./department.typings";
|
|
10
11
|
import { INestedGate } from "./gate.typings";
|
|
11
12
|
import { INestedOffice } from "./offices.typings";
|
|
12
13
|
import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
@@ -26,7 +27,8 @@ export declare enum APPROVAL_CONFIG_INCLUDE {
|
|
|
26
27
|
company_distibutor_category = "company_distibutor_category",
|
|
27
28
|
qa_location = "qa_location",
|
|
28
29
|
accounts_location = "accounts_location",
|
|
29
|
-
audits = "audits"
|
|
30
|
+
audits = "audits",
|
|
31
|
+
department = "department"
|
|
30
32
|
}
|
|
31
33
|
export interface IApprovalConfig {
|
|
32
34
|
id: string;
|
|
@@ -46,6 +48,7 @@ export interface IApprovalConfig {
|
|
|
46
48
|
qa_location_id: string | null;
|
|
47
49
|
accounts_location_id: string | null;
|
|
48
50
|
audits_id: string | null;
|
|
51
|
+
department_id: string | null;
|
|
49
52
|
created_at: string;
|
|
50
53
|
updated_at: string;
|
|
51
54
|
company?: INestedCompany | null;
|
|
@@ -62,9 +65,10 @@ export interface IApprovalConfig {
|
|
|
62
65
|
qa_location?: INestedQALocation | null;
|
|
63
66
|
accounts_location?: INestedAccountsLocation | null;
|
|
64
67
|
audits?: INestedAudits | null;
|
|
68
|
+
department?: INestedDepartment | null;
|
|
65
69
|
}
|
|
66
|
-
export interface INestedApprovalConfig extends Omit<IApprovalConfig, "approval_chain" | "company" | "office" | "store_location" | "purchase_location" | "gate" | "vendor_management_body" | "item_management_body" | "checkpoint" | "vendor_category" | "company_distibutor_category" | "qa_location" | "accounts_location" | "audits"> {
|
|
70
|
+
export interface INestedApprovalConfig extends Omit<IApprovalConfig, "approval_chain" | "company" | "office" | "store_location" | "purchase_location" | "gate" | "vendor_management_body" | "item_management_body" | "checkpoint" | "vendor_category" | "company_distibutor_category" | "qa_location" | "accounts_location" | "audits" | "department"> {
|
|
67
71
|
}
|
|
68
|
-
export interface IApprovalConfigFilters extends Partial<Pick<IApprovalConfig, "office_id" | "gate_id" | "purchase_location_id" | "vendor_management_body_id" | "item_management_body_id" | "store_location_id" | "checkpoint_id" | "vendor_onboarding_request_category_id" | "company_customer_category_id" | "accounts_location_id" | "qa_location_id" | "audits_id">> {
|
|
72
|
+
export interface IApprovalConfigFilters extends Partial<Pick<IApprovalConfig, "office_id" | "gate_id" | "purchase_location_id" | "vendor_management_body_id" | "item_management_body_id" | "store_location_id" | "checkpoint_id" | "vendor_onboarding_request_category_id" | "company_customer_category_id" | "accounts_location_id" | "qa_location_id" | "audits_id" | "department_id">> {
|
|
69
73
|
include?: ApprovalConfigInlcude[] | null;
|
|
70
74
|
}
|
|
@@ -17,4 +17,5 @@ var APPROVAL_CONFIG_INCLUDE;
|
|
|
17
17
|
APPROVAL_CONFIG_INCLUDE["qa_location"] = "qa_location";
|
|
18
18
|
APPROVAL_CONFIG_INCLUDE["accounts_location"] = "accounts_location";
|
|
19
19
|
APPROVAL_CONFIG_INCLUDE["audits"] = "audits";
|
|
20
|
+
APPROVAL_CONFIG_INCLUDE["department"] = "department";
|
|
20
21
|
})(APPROVAL_CONFIG_INCLUDE || (exports.APPROVAL_CONFIG_INCLUDE = APPROVAL_CONFIG_INCLUDE = {}));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
2
2
|
import { INestedCompany } from "./company.typings";
|
|
3
|
+
import { INestedDepartment } from "./department.typings";
|
|
3
4
|
import { INestedVES } from "./company/masters/ves.typings";
|
|
4
5
|
import { IEntityApprovalChainEntry, INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
5
6
|
import { INestedGRN, INestedGRNItem } from "./grn.typings";
|
|
@@ -77,6 +78,7 @@ export declare enum IDENTIFICATION_DOCUMENT_TYPE {
|
|
|
77
78
|
export declare enum ASN_INCLUDE {
|
|
78
79
|
created_by_vendor = "created_by_vendor",
|
|
79
80
|
for_company = "for_company",
|
|
81
|
+
department = "department",
|
|
80
82
|
parent_po = "parent_po",
|
|
81
83
|
parent_pos = "parent_pos",
|
|
82
84
|
shipping_store_location = "shipping_store_location",
|
|
@@ -99,6 +101,7 @@ export interface IASN {
|
|
|
99
101
|
created_by_vendor_id: string;
|
|
100
102
|
delivery_date: string;
|
|
101
103
|
for_company_id: string;
|
|
104
|
+
department_id?: string | null;
|
|
102
105
|
shipping_store_location_id: string;
|
|
103
106
|
status: ASN_STATUS;
|
|
104
107
|
parent_po_id: string | null;
|
|
@@ -184,6 +187,7 @@ export interface IASN {
|
|
|
184
187
|
cancelled_by_vendor_user: INestedVendorUser | null;
|
|
185
188
|
created_by_vendor?: INestedVendor | null;
|
|
186
189
|
for_company: INestedCompany | null;
|
|
190
|
+
department: INestedDepartment | null;
|
|
187
191
|
parent_po: INestedPo | null;
|
|
188
192
|
parent_pos: INestedPo[] | null;
|
|
189
193
|
shipping_store_location: INestedStoreLocation | null;
|
|
@@ -250,7 +254,7 @@ export declare const ASN_SEA_TRANSPORT_FIELD_PREFIX = "sea";
|
|
|
250
254
|
export declare const ASN_AIR_TRANSPORT_FIELD_PREFIX = "air";
|
|
251
255
|
export declare const ASN_COURIER_TRANSPORT_FIELD_PREFIX = "courier";
|
|
252
256
|
export declare const ASN_HAND_DELIVERY_TRANSPORT_FIELD_PREFIX = "hand_delivery";
|
|
253
|
-
export interface INestedASN extends Omit<IASN, "created_by_vendor" | "for_company" | "parent_po" | "parent_pos" | "shipping_store_location" | "items" | "associated_grns" | "cancelled_by_user" | "send_to_vendor_by_user_id" | "send_to_vendor_by_user_at" | "child_ves" | "approval_chain" | "send_by_user" | "asns_sent_to_vendor_by_user" | "created_by_vendor_user" | "last_updated_by_vendor_user" | "cancelled_by_vendor_user" | "metafields"> {
|
|
257
|
+
export interface INestedASN extends Omit<IASN, "created_by_vendor" | "for_company" | "department" | "parent_po" | "parent_pos" | "shipping_store_location" | "items" | "associated_grns" | "cancelled_by_user" | "send_to_vendor_by_user_id" | "send_to_vendor_by_user_at" | "child_ves" | "approval_chain" | "send_by_user" | "asns_sent_to_vendor_by_user" | "created_by_vendor_user" | "last_updated_by_vendor_user" | "cancelled_by_vendor_user" | "metafields"> {
|
|
254
258
|
}
|
|
255
259
|
export interface IASNBaseFilters {
|
|
256
260
|
po_id?: string;
|
|
@@ -75,6 +75,7 @@ var ASN_INCLUDE;
|
|
|
75
75
|
(function (ASN_INCLUDE) {
|
|
76
76
|
ASN_INCLUDE["created_by_vendor"] = "created_by_vendor";
|
|
77
77
|
ASN_INCLUDE["for_company"] = "for_company";
|
|
78
|
+
ASN_INCLUDE["department"] = "department";
|
|
78
79
|
ASN_INCLUDE["parent_po"] = "parent_po";
|
|
79
80
|
ASN_INCLUDE["parent_pos"] = "parent_pos";
|
|
80
81
|
ASN_INCLUDE["shipping_store_location"] = "shipping_store_location";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IPaginationFilters } from "../../common/paginationFilters.typings";
|
|
2
2
|
import { INestedCompany } from "../../company.typings";
|
|
3
|
+
import { INestedDepartment } from "../../department.typings";
|
|
3
4
|
import { INestedEntityApprovalChainEntry } from "../../entityApprovalChainEntry.typings";
|
|
4
5
|
import { INestedEntityApprovalChainEntryLog } from "../../entityApprovalChainEntryLog.typings";
|
|
5
6
|
import { INestedGRN } from "../../grn.typings";
|
|
@@ -63,6 +64,7 @@ export declare enum ISTD_STATUS_FOR_DEST {
|
|
|
63
64
|
}
|
|
64
65
|
export declare enum ISTD_INCLUDE {
|
|
65
66
|
company = "company",
|
|
67
|
+
department = "department",
|
|
66
68
|
created_by = "created_by",
|
|
67
69
|
last_updated_by = "last_updated_by",
|
|
68
70
|
source_contact_person = "source_contact_person",
|
|
@@ -96,6 +98,7 @@ export interface IISTD {
|
|
|
96
98
|
status_at_dest: ISTD_STATUS_FOR_DEST | null;
|
|
97
99
|
source_store_location_id: string;
|
|
98
100
|
dest_store_location_id: string;
|
|
101
|
+
department_id: string | null;
|
|
99
102
|
note: string | null;
|
|
100
103
|
attachment_link: string | null;
|
|
101
104
|
sent_for_processing_by_id: string | null;
|
|
@@ -117,6 +120,7 @@ export interface IISTD {
|
|
|
117
120
|
updated_at: string;
|
|
118
121
|
items: INestedISTDItem[] | null;
|
|
119
122
|
company: INestedCompany | null;
|
|
123
|
+
department: INestedDepartment | null;
|
|
120
124
|
created_by: INestedUser | null;
|
|
121
125
|
last_updated_by: INestedUser | null;
|
|
122
126
|
source_contact_person: INestedUser | null;
|
|
@@ -134,7 +138,7 @@ export interface IISTD {
|
|
|
134
138
|
inventory_logs: INestedInventoryLog[] | null;
|
|
135
139
|
metafields: IISTDMetafields | null;
|
|
136
140
|
}
|
|
137
|
-
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" | "metafields"> {
|
|
141
|
+
export interface INestedISTD extends Omit<IISTD, "items" | "company" | "department" | "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" | "metafields"> {
|
|
138
142
|
}
|
|
139
143
|
export interface IISTDFilter {
|
|
140
144
|
created_by_id?: string | null;
|
|
@@ -65,6 +65,7 @@ var ISTD_STATUS_FOR_DEST;
|
|
|
65
65
|
var ISTD_INCLUDE;
|
|
66
66
|
(function (ISTD_INCLUDE) {
|
|
67
67
|
ISTD_INCLUDE["company"] = "company";
|
|
68
|
+
ISTD_INCLUDE["department"] = "department";
|
|
68
69
|
ISTD_INCLUDE["created_by"] = "created_by";
|
|
69
70
|
ISTD_INCLUDE["last_updated_by"] = "last_updated_by";
|
|
70
71
|
ISTD_INCLUDE["source_contact_person"] = "source_contact_person";
|
|
@@ -2,6 +2,7 @@ import { INestedBOM } from "../../bom.typings";
|
|
|
2
2
|
import { IOpenApprovalsBase } from "../../common/openApprovals.typings";
|
|
3
3
|
import { IPaginationFilters } from "../../common/paginationFilters.typings";
|
|
4
4
|
import { INestedCompany } from "../../company.typings";
|
|
5
|
+
import { INestedDepartment } from "../../department.typings";
|
|
5
6
|
import { INestedVES } from "./ves.typings";
|
|
6
7
|
import { INestedTermsAndConditions } from "./termsAndConditions.typings";
|
|
7
8
|
import { INestedCompanyVendors } from "../../companyVendors.typings";
|
|
@@ -87,6 +88,7 @@ export declare enum PO_ITEM_ASCENDENCE_TYPE {
|
|
|
87
88
|
export declare enum PO_INCLUDE {
|
|
88
89
|
supplier_invoices = "supplier_invoices",
|
|
89
90
|
company = "company",
|
|
91
|
+
department = "department",
|
|
90
92
|
shipping_store_location = "shipping_store_location",
|
|
91
93
|
created_by_user = "created_by_user",
|
|
92
94
|
last_updated_by_user = "last_updated_by_user",
|
|
@@ -165,6 +167,7 @@ export interface IPurchaseOrder {
|
|
|
165
167
|
company_id: string;
|
|
166
168
|
shipping_store_location_id: string;
|
|
167
169
|
purchase_location_id: string;
|
|
170
|
+
department_id?: string | null;
|
|
168
171
|
created_by_user_id: string;
|
|
169
172
|
last_updated_by_user_id: string;
|
|
170
173
|
company_vendor_id: string;
|
|
@@ -202,6 +205,7 @@ export interface IPurchaseOrder {
|
|
|
202
205
|
updated_at: string;
|
|
203
206
|
accepted_or_rejected_by_vendor_user_id: string | null;
|
|
204
207
|
company: INestedCompany | null;
|
|
208
|
+
department: INestedDepartment | null;
|
|
205
209
|
purchase_location: INestedPurchaseLocation | null;
|
|
206
210
|
shipping_store_location: INestedStoreLocation | null;
|
|
207
211
|
created_by_user: INestedUser | null;
|
|
@@ -239,7 +243,7 @@ export interface IPurchaseOrder {
|
|
|
239
243
|
referenced_in_ves: INestedVES[] | null;
|
|
240
244
|
metafields: IPOMetafields | null;
|
|
241
245
|
}
|
|
242
|
-
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" | "referenced_in_ves" | "child_grns" | "metafields"> {
|
|
246
|
+
export interface INestedPo extends Omit<IPurchaseOrder, "company" | "department" | "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" | "referenced_in_ves" | "child_grns" | "metafields"> {
|
|
243
247
|
}
|
|
244
248
|
export interface IPOItem extends ITaxRelatedItemInputs {
|
|
245
249
|
id: string;
|
|
@@ -63,6 +63,7 @@ var PO_INCLUDE;
|
|
|
63
63
|
(function (PO_INCLUDE) {
|
|
64
64
|
PO_INCLUDE["supplier_invoices"] = "supplier_invoices";
|
|
65
65
|
PO_INCLUDE["company"] = "company";
|
|
66
|
+
PO_INCLUDE["department"] = "department";
|
|
66
67
|
PO_INCLUDE["shipping_store_location"] = "shipping_store_location";
|
|
67
68
|
PO_INCLUDE["created_by_user"] = "created_by_user";
|
|
68
69
|
PO_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IASN, INestedASN, VEHICLE_TYPE } from "../../asn.typings";
|
|
2
2
|
import { IPaginationFilters } from "../../common/paginationFilters.typings";
|
|
3
3
|
import { INestedCompany } from "../../company.typings";
|
|
4
|
+
import { INestedDepartment } from "../../department.typings";
|
|
4
5
|
import { IEntityApprovalChainEntry, INestedEntityApprovalChainEntry } from "../../entityApprovalChainEntry.typings";
|
|
5
6
|
import { IGRN } from "../../grn.typings";
|
|
6
7
|
import { INestedPo, IPurchaseOrder } from "./po.typings";
|
|
@@ -45,6 +46,7 @@ export declare enum VES_STATUS {
|
|
|
45
46
|
}
|
|
46
47
|
export declare enum VES_INCLUDE {
|
|
47
48
|
company = "company",
|
|
49
|
+
department = "department",
|
|
48
50
|
target_store_location = "target_store_location",
|
|
49
51
|
created_by_user = "created_by_user",
|
|
50
52
|
last_updated_by_user = "last_updated_by_user",
|
|
@@ -80,6 +82,7 @@ export interface IVES {
|
|
|
80
82
|
parent_document_type: VES_PARENT_DOCUMENT_TYPE;
|
|
81
83
|
company_id: string;
|
|
82
84
|
target_store_location_id: string;
|
|
85
|
+
department_id?: string | null;
|
|
83
86
|
last_updated_by_user_id: string;
|
|
84
87
|
created_by_user_id: string;
|
|
85
88
|
cancelled_by_user_id: string | null;
|
|
@@ -108,6 +111,7 @@ export interface IVES {
|
|
|
108
111
|
created_at: string;
|
|
109
112
|
updated_at: string;
|
|
110
113
|
company: INestedCompany | null;
|
|
114
|
+
department: INestedDepartment | null;
|
|
111
115
|
target_store_location: INestedStoreLocation | null;
|
|
112
116
|
created_by_user: INestedUser | null;
|
|
113
117
|
cancelled_by_user: INestedUser | null;
|
|
@@ -125,7 +129,7 @@ export interface IVES {
|
|
|
125
129
|
parent_pos: IPurchaseOrder[] | null;
|
|
126
130
|
metafields: IVESMetafields | null;
|
|
127
131
|
}
|
|
128
|
-
export interface INestedVES extends Omit<IVES, "company" | "target_store_location" | "created_by_user" | "last_updated_by_user" | "cancelled_by_user" | "take_on_approval_by_user" | "created_at_checkpoint" | "directed_to_checkpoint" | "parent_po" | "parent_asn" | "associated_supplier_invoice" | "items" | "store_location_approval_chain" | "checkpoint_trail" | "child_grns" | "parent_pos" | "metafields"> {
|
|
132
|
+
export interface INestedVES extends Omit<IVES, "company" | "department" | "target_store_location" | "created_by_user" | "last_updated_by_user" | "cancelled_by_user" | "take_on_approval_by_user" | "created_at_checkpoint" | "directed_to_checkpoint" | "parent_po" | "parent_asn" | "associated_supplier_invoice" | "items" | "store_location_approval_chain" | "checkpoint_trail" | "child_grns" | "parent_pos" | "metafields"> {
|
|
129
133
|
}
|
|
130
134
|
export interface IFetchDocumentForVESByDocumentNoResponse {
|
|
131
135
|
poData: IPurchaseOrder | null;
|
|
@@ -37,6 +37,7 @@ var VES_STATUS;
|
|
|
37
37
|
var VES_INCLUDE;
|
|
38
38
|
(function (VES_INCLUDE) {
|
|
39
39
|
VES_INCLUDE["company"] = "company";
|
|
40
|
+
VES_INCLUDE["department"] = "department";
|
|
40
41
|
VES_INCLUDE["target_store_location"] = "target_store_location";
|
|
41
42
|
VES_INCLUDE["created_by_user"] = "created_by_user";
|
|
42
43
|
VES_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
2
2
|
import { INestedCompany } from "./company.typings";
|
|
3
3
|
import { INestedCompanyCustomerCategory } from "./companyCustomerCategory.typings";
|
|
4
|
+
import { INestedDepartment } from "./department.typings";
|
|
4
5
|
import { ICustomer } from "./customer.typings";
|
|
5
6
|
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
6
7
|
import { INestedEntityApprovalChainEntryLog } from "./entityApprovalChainEntryLog.typings";
|
|
@@ -19,6 +20,7 @@ export interface ICompanyCustomer {
|
|
|
19
20
|
sent_for_approval_by_user_id: string | null;
|
|
20
21
|
onboarded_by_id: string | null;
|
|
21
22
|
parent_company_customer_category_id: string | null;
|
|
23
|
+
department_id?: string | null;
|
|
22
24
|
approved_at?: string | null;
|
|
23
25
|
sent_for_approval_at?: string | null;
|
|
24
26
|
onboarded_at?: string | null;
|
|
@@ -28,6 +30,7 @@ export interface ICompanyCustomer {
|
|
|
28
30
|
created_at?: string | null;
|
|
29
31
|
updated_at?: string | null;
|
|
30
32
|
company?: INestedCompany | null;
|
|
33
|
+
department?: INestedDepartment | null;
|
|
31
34
|
customer?: ICustomer | null;
|
|
32
35
|
created_by_user: INestedUser | null;
|
|
33
36
|
last_updated_by_user: INestedUser | null;
|
|
@@ -38,10 +41,11 @@ export interface ICompanyCustomer {
|
|
|
38
41
|
extra_form_ans: INestedExtraFormAnswer[] | null;
|
|
39
42
|
metafields?: ICustomerMetafields | null;
|
|
40
43
|
}
|
|
41
|
-
export interface INestedCompanyCustomer extends Omit<ICompanyCustomer, "company" | "customer" | "created_by_user" | "last_updated_by_user" | "sent_for_approval_by_user" | "onboarded_by_user" | "parent_company_customer_category" | "approval_chain" | "extra_form_ans" | "metafields"> {
|
|
44
|
+
export interface INestedCompanyCustomer extends Omit<ICompanyCustomer, "company" | "department" | "customer" | "created_by_user" | "last_updated_by_user" | "sent_for_approval_by_user" | "onboarded_by_user" | "parent_company_customer_category" | "approval_chain" | "extra_form_ans" | "metafields"> {
|
|
42
45
|
}
|
|
43
46
|
export declare enum COMPANY_CUSTOMER_INCLUDE {
|
|
44
47
|
company = "company",
|
|
48
|
+
department = "department",
|
|
45
49
|
customer = "customer",
|
|
46
50
|
created_by_user = "created_by_user",
|
|
47
51
|
last_updated_by_user = "last_updated_by_user",
|
|
@@ -4,6 +4,7 @@ exports.COMPANY_CUSTOMER_METAFIELDS_INCLUDE = exports.COMPANY_CUSTOMER_LIST_TYPE
|
|
|
4
4
|
var COMPANY_CUSTOMER_INCLUDE;
|
|
5
5
|
(function (COMPANY_CUSTOMER_INCLUDE) {
|
|
6
6
|
COMPANY_CUSTOMER_INCLUDE["company"] = "company";
|
|
7
|
+
COMPANY_CUSTOMER_INCLUDE["department"] = "department";
|
|
7
8
|
COMPANY_CUSTOMER_INCLUDE["customer"] = "customer";
|
|
8
9
|
COMPANY_CUSTOMER_INCLUDE["created_by_user"] = "created_by_user";
|
|
9
10
|
COMPANY_CUSTOMER_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IAddress } from "./common/address.typings";
|
|
2
2
|
import { IOpenApprovalsBase } from "./common/openApprovals.typings";
|
|
3
3
|
import { INestedCompany } from "./company.typings";
|
|
4
|
+
import { INestedDepartment } from "./department.typings";
|
|
4
5
|
import { INestedVendorOnboardingRequest, IPendingWithData } from "./company/vendorOnboardingRequest/vendorOnboardingRequest.typing";
|
|
5
6
|
import { INestedVendorOnboardingRequestCategory } from "./company/vendorOnboardingRequest/vendorOnboardingRequestCategory.typings";
|
|
6
7
|
import { INestedCompanyItemVendorVersion } from "./companyItemVendorVersion.typings";
|
|
@@ -64,6 +65,7 @@ export declare enum CompanyVendorsInclude {
|
|
|
64
65
|
approval_chain = "approval_chain",
|
|
65
66
|
invoices = "invoices",
|
|
66
67
|
parent_vendor_onboarding_request = "parent_vendor_onboarding_request",
|
|
68
|
+
department = "department",
|
|
67
69
|
created_by_user = "created_by_user",
|
|
68
70
|
last_updated_by = "last_updated_by",
|
|
69
71
|
sent_for_approval_by_user = "sent_for_approval_by_user",
|
|
@@ -128,6 +130,7 @@ export interface ICompanyVendor {
|
|
|
128
130
|
onboarded_by_id: string | null;
|
|
129
131
|
parent_vendor_onboarding_request_id: string | null;
|
|
130
132
|
parent_vendor_onboarding_request_category_id: string;
|
|
133
|
+
department_id?: string | null;
|
|
131
134
|
status: COMPANY_VENDOR_STATUS;
|
|
132
135
|
rollback_to_initiator_remark: string | null;
|
|
133
136
|
rollback_to_initiator_by_user_id: string | null;
|
|
@@ -144,6 +147,7 @@ export interface ICompanyVendor {
|
|
|
144
147
|
created_at?: string | null;
|
|
145
148
|
updated_at?: string | null;
|
|
146
149
|
company?: INestedCompany | null;
|
|
150
|
+
department?: INestedDepartment | null;
|
|
147
151
|
vendor?: INestedVendor | null;
|
|
148
152
|
rfqs_sent?: INestedRFQ[] | null;
|
|
149
153
|
vendor_groups?: INestedVendorGroups[] | null;
|
|
@@ -171,7 +175,7 @@ export interface ICompanyVendor {
|
|
|
171
175
|
vendor_logs: INestedVendorLogs[] | null;
|
|
172
176
|
rollback_to_initiator_by_user: INestedUser | null;
|
|
173
177
|
}
|
|
174
|
-
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" | "vendor_logs" | "rollback_to_initiator_by_user"> {
|
|
178
|
+
export interface INestedCompanyVendors extends Omit<ICompanyVendor, "company" | "department" | "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" | "vendor_logs" | "rollback_to_initiator_by_user"> {
|
|
175
179
|
}
|
|
176
180
|
export interface IICheckCompanyVendorStatusRes {
|
|
177
181
|
vendor: IVendor;
|
|
@@ -49,6 +49,7 @@ var CompanyVendorsInclude;
|
|
|
49
49
|
CompanyVendorsInclude["approval_chain"] = "approval_chain";
|
|
50
50
|
CompanyVendorsInclude["invoices"] = "invoices";
|
|
51
51
|
CompanyVendorsInclude["parent_vendor_onboarding_request"] = "parent_vendor_onboarding_request";
|
|
52
|
+
CompanyVendorsInclude["department"] = "department";
|
|
52
53
|
CompanyVendorsInclude["created_by_user"] = "created_by_user";
|
|
53
54
|
CompanyVendorsInclude["last_updated_by"] = "last_updated_by";
|
|
54
55
|
CompanyVendorsInclude["sent_for_approval_by_user"] = "sent_for_approval_by_user";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { INestedCompany } from "./company.typings";
|
|
2
|
+
import { INestedDepartment } from "./department.typings";
|
|
2
3
|
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
3
4
|
import { INestedItem } from "./item.typings";
|
|
4
5
|
import { INestedPo, INestedPOItem } from "./company/masters/po.typings";
|
|
@@ -29,6 +30,7 @@ export declare enum COMPARATIVE_STATUS {
|
|
|
29
30
|
}
|
|
30
31
|
export declare enum COMPARATIVE_INCLUDE {
|
|
31
32
|
company = "company",
|
|
33
|
+
department = "department",
|
|
32
34
|
parent_rfq = "parent_rfq",
|
|
33
35
|
sent_for_approval_by_user = "sent_for_approval_by_user",
|
|
34
36
|
quotes = "quotes",
|
|
@@ -42,6 +44,7 @@ export interface IComparative {
|
|
|
42
44
|
id: string;
|
|
43
45
|
company_id: string;
|
|
44
46
|
parent_rfq_id: string;
|
|
47
|
+
department_id?: string | null;
|
|
45
48
|
savings: number | null;
|
|
46
49
|
sent_for_approval_by_user_id: string | null;
|
|
47
50
|
status: COMPARATIVE_STATUS;
|
|
@@ -53,6 +56,7 @@ export interface IComparative {
|
|
|
53
56
|
created_at: string | null;
|
|
54
57
|
updated_at: string | null;
|
|
55
58
|
company: INestedCompany | null;
|
|
59
|
+
department: INestedDepartment | null;
|
|
56
60
|
parent_rfq: INestedRFQ | null;
|
|
57
61
|
sent_for_approval_by_user: INestedUser | null;
|
|
58
62
|
early_view_access_requests: INestedComparativeEarlyAccessRequest[] | null;
|
|
@@ -63,7 +67,7 @@ export interface IComparative {
|
|
|
63
67
|
comparative_items_quantity_splits: INestedComparativeItemsQuantitySplit[] | null;
|
|
64
68
|
metafields: IComparativeMetafields | null;
|
|
65
69
|
}
|
|
66
|
-
export interface INestedComparative extends Omit<IComparative, "company" | "parent_rfq" | "sent_for_approval_by_user" | "quotes" | "child_pos" | "approval_chain" | "items" | "comparative_items_quantity_splits" | "early_view_access_requests" | "metafields"> {
|
|
70
|
+
export interface INestedComparative extends Omit<IComparative, "company" | "department" | "parent_rfq" | "sent_for_approval_by_user" | "quotes" | "child_pos" | "approval_chain" | "items" | "comparative_items_quantity_splits" | "early_view_access_requests" | "metafields"> {
|
|
67
71
|
}
|
|
68
72
|
export interface IComparativeFilters {
|
|
69
73
|
rfq_id?: string;
|
|
@@ -27,6 +27,7 @@ var COMPARATIVE_STATUS;
|
|
|
27
27
|
var COMPARATIVE_INCLUDE;
|
|
28
28
|
(function (COMPARATIVE_INCLUDE) {
|
|
29
29
|
COMPARATIVE_INCLUDE["company"] = "company";
|
|
30
|
+
COMPARATIVE_INCLUDE["department"] = "department";
|
|
30
31
|
COMPARATIVE_INCLUDE["parent_rfq"] = "parent_rfq";
|
|
31
32
|
COMPARATIVE_INCLUDE["sent_for_approval_by_user"] = "sent_for_approval_by_user";
|
|
32
33
|
COMPARATIVE_INCLUDE["quotes"] = "quotes";
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { EntityTypes } from "../constants/entityTypes.constants";
|
|
2
2
|
import { INestedAccountsLocation } from "./accountsLocation.typings";
|
|
3
|
+
import { INestedApprovalConfig } from "./approvalConfig.typings";
|
|
4
|
+
import { INestedASN } from "./asn.typings";
|
|
3
5
|
import { INestedAudits } from "./audits.typings";
|
|
6
|
+
import { INestedComparative } from "./comparative.typings";
|
|
7
|
+
import { INestedCompanyVendors } from "./companyVendors.typings";
|
|
8
|
+
import { INestedCompanyCustomer } from "./companyCustomer.typings";
|
|
9
|
+
import { INestedItem } from "./item.typings";
|
|
10
|
+
import { INestedQualityClearanceDocument } from "./qcd.typings";
|
|
11
|
+
import { INestedISTD } from "./company/istd/istd.typings";
|
|
12
|
+
import { INestedVES } from "./company/masters/ves.typings";
|
|
4
13
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
5
14
|
import { INestedCompany } from "./company.typings";
|
|
6
15
|
import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
|
|
@@ -14,8 +23,11 @@ import { INestedIndent } from "./indent.typings";
|
|
|
14
23
|
import { INestedMI } from "./mi.typings";
|
|
15
24
|
import { INestedMRN } from "./mrn.typings";
|
|
16
25
|
import { INestedOffice } from "./offices.typings";
|
|
26
|
+
import { INestedPo } from "./company/masters/po.typings";
|
|
27
|
+
import { INestedPR } from "./pr.typings";
|
|
17
28
|
import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
18
29
|
import { INestedQALocation } from "./qualityAssessment.typings";
|
|
30
|
+
import { INestedRFQ } from "./rfq.typings";
|
|
19
31
|
import { INestedRole } from "./roles.typings";
|
|
20
32
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
21
33
|
import { INestedUser } from "./user.typings";
|
|
@@ -69,13 +81,25 @@ export interface IDepartment {
|
|
|
69
81
|
roles?: null | INestedRole[];
|
|
70
82
|
grns?: null | INestedGRN[];
|
|
71
83
|
mrns?: null | INestedMRN[];
|
|
84
|
+
prs?: null | INestedPR[];
|
|
85
|
+
rfqs?: null | INestedRFQ[];
|
|
86
|
+
pos?: null | INestedPo[];
|
|
87
|
+
asns?: null | INestedASN[];
|
|
88
|
+
comparatives?: null | INestedComparative[];
|
|
89
|
+
istds?: null | INestedISTD[];
|
|
90
|
+
ves?: null | INestedVES[];
|
|
91
|
+
company_vendors?: null | INestedCompanyVendors[];
|
|
92
|
+
company_customers?: null | INestedCompanyCustomer[];
|
|
93
|
+
items?: null | INestedItem[];
|
|
94
|
+
qcds?: null | INestedQualityClearanceDocument[];
|
|
72
95
|
vendor_onboarding_requests?: INestedVendorOnboardingRequest[] | null;
|
|
96
|
+
approval_configs?: INestedApprovalConfig[] | null;
|
|
73
97
|
parent_customer_management_body?: INestedCustomerManagementBody | null;
|
|
74
98
|
qa_location: INestedQALocation | null;
|
|
75
99
|
accounts_location: INestedAccountsLocation | null;
|
|
76
100
|
audits: INestedAudits | null;
|
|
77
101
|
}
|
|
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"> {
|
|
102
|
+
export interface INestedDepartment extends Omit<IDepartment, "company" | "hod" | "parent_office" | "parent_store_location" | "parent_purchase_location" | "parent_gate" | "indents" | "mis" | "subdepartments" | "roles" | "grns" | "mrns" | "prs" | "rfqs" | "pos" | "asns" | "comparatives" | "istds" | "ves" | "company_vendors" | "company_customers" | "items" | "qcds" | "parent_vendor_management_body" | "vendor_onboarding_requests" | "approval_configs" | "parent_item_management_body" | "parent_checkpoint" | "parent_customer_management_body" | "qa_location" | "accounts_location" | "audits"> {
|
|
79
103
|
}
|
|
80
104
|
export declare enum DepartmentInclude {
|
|
81
105
|
company = "company",
|
|
@@ -84,6 +108,17 @@ export declare enum DepartmentInclude {
|
|
|
84
108
|
hod = "hod",
|
|
85
109
|
grns = "grns",
|
|
86
110
|
mrns = "mrns",
|
|
111
|
+
prs = "prs",
|
|
112
|
+
rfqs = "rfqs",
|
|
113
|
+
pos = "pos",
|
|
114
|
+
asns = "asns",
|
|
115
|
+
comparatives = "comparatives",
|
|
116
|
+
istds = "istds",
|
|
117
|
+
ves = "ves",
|
|
118
|
+
company_vendors = "company_vendors",
|
|
119
|
+
company_customers = "company_customers",
|
|
120
|
+
items = "items",
|
|
121
|
+
qcds = "qcds",
|
|
87
122
|
indents = "indents",
|
|
88
123
|
mis = "mis",
|
|
89
124
|
parent_store_location = "parent_store_location",
|
|
@@ -92,6 +127,7 @@ export declare enum DepartmentInclude {
|
|
|
92
127
|
parent_gate = "parent_gate",
|
|
93
128
|
parent_vendor_management_body = "parent_vendor_management_body",
|
|
94
129
|
vendor_onboarding_requests = "vendor_onboarding_requests",
|
|
130
|
+
approval_configs = "approval_configs",
|
|
95
131
|
parent_item_management_body = "parent_item_management_body",
|
|
96
132
|
parent_checkpoint = "parent_checkpoint",
|
|
97
133
|
parent_customer_management_body = "parent_customer_management_body",
|
|
@@ -9,6 +9,17 @@ var DepartmentInclude;
|
|
|
9
9
|
DepartmentInclude["hod"] = "hod";
|
|
10
10
|
DepartmentInclude["grns"] = "grns";
|
|
11
11
|
DepartmentInclude["mrns"] = "mrns";
|
|
12
|
+
DepartmentInclude["prs"] = "prs";
|
|
13
|
+
DepartmentInclude["rfqs"] = "rfqs";
|
|
14
|
+
DepartmentInclude["pos"] = "pos";
|
|
15
|
+
DepartmentInclude["asns"] = "asns";
|
|
16
|
+
DepartmentInclude["comparatives"] = "comparatives";
|
|
17
|
+
DepartmentInclude["istds"] = "istds";
|
|
18
|
+
DepartmentInclude["ves"] = "ves";
|
|
19
|
+
DepartmentInclude["company_vendors"] = "company_vendors";
|
|
20
|
+
DepartmentInclude["company_customers"] = "company_customers";
|
|
21
|
+
DepartmentInclude["items"] = "items";
|
|
22
|
+
DepartmentInclude["qcds"] = "qcds";
|
|
12
23
|
DepartmentInclude["indents"] = "indents";
|
|
13
24
|
DepartmentInclude["mis"] = "mis";
|
|
14
25
|
DepartmentInclude["parent_store_location"] = "parent_store_location";
|
|
@@ -17,6 +28,7 @@ var DepartmentInclude;
|
|
|
17
28
|
DepartmentInclude["parent_gate"] = "parent_gate";
|
|
18
29
|
DepartmentInclude["parent_vendor_management_body"] = "parent_vendor_management_body";
|
|
19
30
|
DepartmentInclude["vendor_onboarding_requests"] = "vendor_onboarding_requests";
|
|
31
|
+
DepartmentInclude["approval_configs"] = "approval_configs";
|
|
20
32
|
DepartmentInclude["parent_item_management_body"] = "parent_item_management_body";
|
|
21
33
|
DepartmentInclude["parent_checkpoint"] = "parent_checkpoint";
|
|
22
34
|
DepartmentInclude["parent_customer_management_body"] = "parent_customer_management_body";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { INestedBOMItem } from "./bom.typings";
|
|
2
2
|
import { INestedCompany } from "./company.typings";
|
|
3
|
+
import { INestedDepartment } from "./department.typings";
|
|
3
4
|
import { INestedCompanyItemVendorVersion } from "./companyItemVendorVersion.typings";
|
|
4
5
|
import { INestedCompanyVendors } from "./companyVendors.typings";
|
|
5
6
|
import { INestedComparativeItem } from "./comparative.typings";
|
|
@@ -72,6 +73,7 @@ export declare enum ITEM_INCLUDE {
|
|
|
72
73
|
previous_purchase_po = "previous_purchase_po",
|
|
73
74
|
least_purchase_po = "least_purchase_po",
|
|
74
75
|
parent_item_management_body = "parent_item_management_body",
|
|
76
|
+
parent_department = "parent_department",
|
|
75
77
|
created_by_user = "created_by_user",
|
|
76
78
|
approval_chain = "approval_chain",
|
|
77
79
|
sent_for_approval_by = "sent_for_approval_by",
|
|
@@ -117,6 +119,7 @@ export interface IItem {
|
|
|
117
119
|
item_category_id?: string | null;
|
|
118
120
|
sent_for_approval_by_id: string | null;
|
|
119
121
|
parent_item_management_body_id?: string | null;
|
|
122
|
+
parent_department_id?: string | null;
|
|
120
123
|
item_subcategory_id?: string | null;
|
|
121
124
|
item_classification?: string | null;
|
|
122
125
|
item_tax_preference: string;
|
|
@@ -196,6 +199,7 @@ export interface IItem {
|
|
|
196
199
|
previous_purchase_po: INestedPo | null;
|
|
197
200
|
least_purchase_po: INestedPo | null;
|
|
198
201
|
parent_item_management_body: INestedItemManagementBody | null;
|
|
202
|
+
parent_department: INestedDepartment | null;
|
|
199
203
|
approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
200
204
|
cancelled_by_user: INestedUser | null;
|
|
201
205
|
used_in_ves_items: INestedVESItem[] | null;
|
|
@@ -205,7 +209,7 @@ export interface IItem {
|
|
|
205
209
|
questionnaire_for_item_in_rfqs: INestedRFQQuestionnaireQuestion[] | null;
|
|
206
210
|
metafields?: IItemMetafields | null;
|
|
207
211
|
}
|
|
208
|
-
export interface INestedItem extends Omit<IItem, "inventory_entries" | "created_by_user" | "sent_for_approval_by" | "item_category" | "item_subcategory" | "company" | "used_in_rfq_items" | "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" | "used_in_po_grn_item_junction" | "vendor_item_versions" | "last_updated_by" | "used_in_istd_items" | "used_in_iads" | "used_in_inventory_logs" | "previous_purchase_po" | "least_purchase_po" | "parent_item_management_body" | "approval_chain" | "cancelled_by_user" | "used_in_ves_items" | "referenced_in_amended_po_items" | "referenced_in_comparative_items_splits" | "questionnaire" | "questionnaire_for_item_in_rfqs" | "metafields"> {
|
|
212
|
+
export interface INestedItem extends Omit<IItem, "inventory_entries" | "created_by_user" | "sent_for_approval_by" | "item_category" | "item_subcategory" | "company" | "used_in_rfq_items" | "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" | "used_in_po_grn_item_junction" | "vendor_item_versions" | "last_updated_by" | "used_in_istd_items" | "used_in_iads" | "used_in_inventory_logs" | "previous_purchase_po" | "least_purchase_po" | "parent_item_management_body" | "parent_department" | "approval_chain" | "cancelled_by_user" | "used_in_ves_items" | "referenced_in_amended_po_items" | "referenced_in_comparative_items_splits" | "questionnaire" | "questionnaire_for_item_in_rfqs" | "metafields"> {
|
|
209
213
|
}
|
|
210
214
|
export declare const ITEM_CLASSIFICATION: {
|
|
211
215
|
DIRECT: string;
|
|
@@ -42,6 +42,7 @@ var ITEM_INCLUDE;
|
|
|
42
42
|
ITEM_INCLUDE["previous_purchase_po"] = "previous_purchase_po";
|
|
43
43
|
ITEM_INCLUDE["least_purchase_po"] = "least_purchase_po";
|
|
44
44
|
ITEM_INCLUDE["parent_item_management_body"] = "parent_item_management_body";
|
|
45
|
+
ITEM_INCLUDE["parent_department"] = "parent_department";
|
|
45
46
|
ITEM_INCLUDE["created_by_user"] = "created_by_user";
|
|
46
47
|
ITEM_INCLUDE["approval_chain"] = "approval_chain";
|
|
47
48
|
ITEM_INCLUDE["sent_for_approval_by"] = "sent_for_approval_by";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { INestedCompany } from "./company.typings";
|
|
2
|
+
import { INestedDepartment } from "./department.typings";
|
|
2
3
|
import { IDocItem } from "./docItems.typings";
|
|
3
4
|
import { INestedIndent, INestedIndentItem } from "./indent.typings";
|
|
4
5
|
import { INestedItem } from "./item.typings";
|
|
@@ -43,6 +44,7 @@ export declare enum PR_STATUS {
|
|
|
43
44
|
export declare enum PR_INCLUDE {
|
|
44
45
|
created_by_user = "created_by_user",
|
|
45
46
|
company = "company",
|
|
47
|
+
department = "department",
|
|
46
48
|
parent_indent = "parent_indent",
|
|
47
49
|
target_purchase_location = "target_purchase_location",
|
|
48
50
|
parent_store_location = "parent_store_location",
|
|
@@ -82,6 +84,7 @@ export interface IPR {
|
|
|
82
84
|
priority: string;
|
|
83
85
|
is_deleted: boolean;
|
|
84
86
|
budget_code_id?: string | null;
|
|
87
|
+
department_id?: string | null;
|
|
85
88
|
sent_for_approval_by_id: string | null;
|
|
86
89
|
notes?: string | null;
|
|
87
90
|
attachment_link?: string | null;
|
|
@@ -95,6 +98,7 @@ export interface IPR {
|
|
|
95
98
|
updated_at?: string | null;
|
|
96
99
|
created_by_user?: null | INestedUser;
|
|
97
100
|
company?: null | INestedCompany;
|
|
101
|
+
department?: null | INestedDepartment;
|
|
98
102
|
parent_indent?: null | INestedIndent;
|
|
99
103
|
target_purchase_location?: null | INestedPurchaseLocation;
|
|
100
104
|
parent_store_location?: null | INestedStoreLocation;
|
|
@@ -107,7 +111,7 @@ export interface IPR {
|
|
|
107
111
|
child_rfqs: INestedRFQ[] | null;
|
|
108
112
|
metafields: IPRMetafields | null;
|
|
109
113
|
}
|
|
110
|
-
export interface INestedPR extends Omit<IPR, "created_by_user" | "company" | "parent_indent" | "target_purchase_location" | "approval_chain" | "items" | "referenced_rfq_items" | "sent_for_approval_by" | "updated_by_user" | "sent_to_purchase_location_by" | "parent_store_location" | "child_rfqs" | "metafields"> {
|
|
114
|
+
export interface INestedPR extends Omit<IPR, "created_by_user" | "company" | "department" | "parent_indent" | "target_purchase_location" | "approval_chain" | "items" | "referenced_rfq_items" | "sent_for_approval_by" | "updated_by_user" | "sent_to_purchase_location_by" | "parent_store_location" | "child_rfqs" | "metafields"> {
|
|
111
115
|
}
|
|
112
116
|
export declare enum PR_ITEM_INCLUDE {
|
|
113
117
|
company = "company",
|
|
@@ -40,6 +40,7 @@ var PR_INCLUDE;
|
|
|
40
40
|
(function (PR_INCLUDE) {
|
|
41
41
|
PR_INCLUDE["created_by_user"] = "created_by_user";
|
|
42
42
|
PR_INCLUDE["company"] = "company";
|
|
43
|
+
PR_INCLUDE["department"] = "department";
|
|
43
44
|
PR_INCLUDE["parent_indent"] = "parent_indent";
|
|
44
45
|
PR_INCLUDE["target_purchase_location"] = "target_purchase_location";
|
|
45
46
|
PR_INCLUDE["parent_store_location"] = "parent_store_location";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
2
2
|
import { INestedCompany } from "./company.typings";
|
|
3
|
+
import { INestedDepartment } from "./department.typings";
|
|
3
4
|
import { INestedGRN, INestedGRNItem } from "./grn.typings";
|
|
4
5
|
import { INestedItem } from "./item.typings";
|
|
5
6
|
import { INestedUser } from "./user.typings";
|
|
@@ -34,6 +35,7 @@ export declare enum QCD_ITEM_DISPOSITION {
|
|
|
34
35
|
}
|
|
35
36
|
export declare enum QCD_INCLUDE {
|
|
36
37
|
company = "company",
|
|
38
|
+
department = "department",
|
|
37
39
|
qa_location = "qa_location",
|
|
38
40
|
grn = "grn",
|
|
39
41
|
cancelled_by = "cancelled_by",
|
|
@@ -51,6 +53,7 @@ export interface IQualityClearanceDocument {
|
|
|
51
53
|
cancelled_by_user_id: string | null;
|
|
52
54
|
created_by_user_id: string;
|
|
53
55
|
last_updated_by_user_id: string;
|
|
56
|
+
department_id?: string | null;
|
|
54
57
|
status: QCD_STATUS;
|
|
55
58
|
sampling_date: string;
|
|
56
59
|
remarks: string | null;
|
|
@@ -59,6 +62,7 @@ export interface IQualityClearanceDocument {
|
|
|
59
62
|
created_at: string;
|
|
60
63
|
updated_at: string;
|
|
61
64
|
company: INestedCompany | null;
|
|
65
|
+
department: INestedDepartment | null;
|
|
62
66
|
qa_location: INestedQALocation | null;
|
|
63
67
|
grn: INestedGRN | null;
|
|
64
68
|
cancelled_by: INestedUser | null;
|
|
@@ -68,7 +72,7 @@ export interface IQualityClearanceDocument {
|
|
|
68
72
|
approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
69
73
|
metafields?: IQCDMetafields | null;
|
|
70
74
|
}
|
|
71
|
-
export interface INestedQualityClearanceDocument extends Omit<IQualityClearanceDocument, "company" | "qa_location" | "grn" | "cancelled_by" | "created_by" | "last_updated_by" | "items" | "approval_chain" | "metafields"> {
|
|
75
|
+
export interface INestedQualityClearanceDocument extends Omit<IQualityClearanceDocument, "company" | "department" | "qa_location" | "grn" | "cancelled_by" | "created_by" | "last_updated_by" | "items" | "approval_chain" | "metafields"> {
|
|
72
76
|
}
|
|
73
77
|
export declare enum QCD_ITEM_INCLUDE {
|
|
74
78
|
parent_qcd = "parent_qcd",
|
|
@@ -32,6 +32,7 @@ var QCD_ITEM_DISPOSITION;
|
|
|
32
32
|
var QCD_INCLUDE;
|
|
33
33
|
(function (QCD_INCLUDE) {
|
|
34
34
|
QCD_INCLUDE["company"] = "company";
|
|
35
|
+
QCD_INCLUDE["department"] = "department";
|
|
35
36
|
QCD_INCLUDE["qa_location"] = "qa_location";
|
|
36
37
|
QCD_INCLUDE["grn"] = "grn";
|
|
37
38
|
QCD_INCLUDE["cancelled_by"] = "cancelled_by";
|
|
@@ -6,6 +6,7 @@ import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
|
6
6
|
import { INestedCompany } from "./company.typings";
|
|
7
7
|
import { ICompanyVendor, INestedCompanyVendors } from "./companyVendors.typings";
|
|
8
8
|
import { INestedComparative } from "./comparative.typings";
|
|
9
|
+
import { INestedDepartment } from "./department.typings";
|
|
9
10
|
import { IEntityApprovalChainEntry, INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
10
11
|
import { INestedEntityApprovalChainEntryLog } from "./entityApprovalChainEntryLog.typings";
|
|
11
12
|
import { INestedItem } from "./item.typings";
|
|
@@ -54,6 +55,7 @@ export interface IRFQFiltersWithPagination extends IPaginationFilters, IRFQFilte
|
|
|
54
55
|
}
|
|
55
56
|
export declare enum RFQ_INCLUDES {
|
|
56
57
|
company = "company",
|
|
58
|
+
department = "department",
|
|
57
59
|
parent_purchase_location = "parent_purchase_location",
|
|
58
60
|
created_by_user = "created_by_user",
|
|
59
61
|
contact_person = "contact_person",
|
|
@@ -100,6 +102,7 @@ export interface IRFQ {
|
|
|
100
102
|
rfq_no: string;
|
|
101
103
|
company_id: string;
|
|
102
104
|
parent_purchase_location_id: string;
|
|
105
|
+
department_id?: string | null;
|
|
103
106
|
created_by_user_id: string;
|
|
104
107
|
validity_date: string;
|
|
105
108
|
bidding_type: string;
|
|
@@ -126,6 +129,7 @@ export interface IRFQ {
|
|
|
126
129
|
tnc_id?: string | null;
|
|
127
130
|
pt_id?: string | null;
|
|
128
131
|
company?: INestedCompany | null;
|
|
132
|
+
department?: INestedDepartment | null;
|
|
129
133
|
parent_purchase_location?: INestedPurchaseLocation | null;
|
|
130
134
|
created_by_user?: INestedUser | null;
|
|
131
135
|
shipping_store_location?: INestedStoreLocation | null;
|
|
@@ -146,7 +150,7 @@ export interface IRFQ {
|
|
|
146
150
|
pt?: INestedPaymentTerms | null;
|
|
147
151
|
metafields: IRFQMetafields | null;
|
|
148
152
|
}
|
|
149
|
-
export interface INestedRFQ extends Omit<IRFQ, "company" | "parent_purchase_location" | "created_by_user" | "shipping_store_location" | "contact_person" | "sent_for_approval_by" | "sent_to_vendors_by" | "quotes" | "items" | "approval_chain" | "rfq_vendor_groups" | "rfq_vendors" | "additional_vendors" | "boms" | "comparative" | "parent_prs" | "rfq_questionnaire_questions" | "tnc" | "pt" | "metafields"> {
|
|
153
|
+
export interface INestedRFQ extends Omit<IRFQ, "company" | "department" | "parent_purchase_location" | "created_by_user" | "shipping_store_location" | "contact_person" | "sent_for_approval_by" | "sent_to_vendors_by" | "quotes" | "items" | "approval_chain" | "rfq_vendor_groups" | "rfq_vendors" | "additional_vendors" | "boms" | "comparative" | "parent_prs" | "rfq_questionnaire_questions" | "tnc" | "pt" | "metafields"> {
|
|
150
154
|
}
|
|
151
155
|
export declare enum RFQ_ITEM_INCLUDE {
|
|
152
156
|
parent_rfq = "parent_rfq",
|
|
@@ -31,6 +31,7 @@ var RFQVendorType;
|
|
|
31
31
|
var RFQ_INCLUDES;
|
|
32
32
|
(function (RFQ_INCLUDES) {
|
|
33
33
|
RFQ_INCLUDES["company"] = "company";
|
|
34
|
+
RFQ_INCLUDES["department"] = "department";
|
|
34
35
|
RFQ_INCLUDES["parent_purchase_location"] = "parent_purchase_location";
|
|
35
36
|
RFQ_INCLUDES["created_by_user"] = "created_by_user";
|
|
36
37
|
RFQ_INCLUDES["contact_person"] = "contact_person";
|