kcommons 9.56.0 → 9.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/constants/statuses.constants.d.ts +3 -1
- package/build/constants/statuses.constants.js +2 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/typings/company.typings.d.ts +5 -2
- package/build/typings/company.typings.js +1 -0
- package/build/typings/companyVendors.typings.d.ts +5 -2
- package/build/typings/companyVendors.typings.js +1 -0
- package/build/typings/invoices.typings.d.ts +55 -0
- package/build/typings/invoices.typings.js +17 -0
- package/build/typings/po.typings.d.ts +7 -3
- package/build/typings/po.typings.js +2 -0
- package/build/typings/vendor.typings.d.ts +5 -2
- package/build/typings/vendor.typings.js +1 -0
- package/package.json +1 -1
|
@@ -27,4 +27,6 @@ var STATUSES;
|
|
|
27
27
|
STATUSES["RECEIVED"] = "RECEIVED";
|
|
28
28
|
STATUSES["TERMINATED"] = "TERMINATED";
|
|
29
29
|
STATUSES["DISPATCH_INITIATED"] = "DISPATCH_INITIATED";
|
|
30
|
+
STATUSES["PAID"] = "PAID";
|
|
31
|
+
STATUSES["RAISED"] = "RAISED";
|
|
30
32
|
})(STATUSES || (exports.STATUSES = STATUSES = {}));
|
package/build/index.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export * from "./typings/company/iad/iad.typings";
|
|
|
49
49
|
export * from "./typings/company/inventory/inventoryLogger.typings";
|
|
50
50
|
export * from "./typings/company/inventory/inventoryOverview.typings";
|
|
51
51
|
export * from "./typings/common/openApprovals.typings";
|
|
52
|
+
export * from "./typings/invoices.typings";
|
|
52
53
|
export * from "./typings/common/address.typings";
|
|
53
54
|
export * from "./typings/common/paginationFilters.typings";
|
|
54
55
|
export * from "./typings/common/uploadMedia.typings";
|
package/build/index.js
CHANGED
|
@@ -67,6 +67,7 @@ __exportStar(require("./typings/company/iad/iad.typings"), exports);
|
|
|
67
67
|
__exportStar(require("./typings/company/inventory/inventoryLogger.typings"), exports);
|
|
68
68
|
__exportStar(require("./typings/company/inventory/inventoryOverview.typings"), exports);
|
|
69
69
|
__exportStar(require("./typings/common/openApprovals.typings"), exports);
|
|
70
|
+
__exportStar(require("./typings/invoices.typings"), exports);
|
|
70
71
|
// Commons
|
|
71
72
|
__exportStar(require("./typings/common/address.typings"), exports);
|
|
72
73
|
__exportStar(require("./typings/common/paginationFilters.typings"), exports);
|
|
@@ -36,6 +36,7 @@ import { INestedCompanyItemVendorVersion } from "./companyItemVendorVersion.typi
|
|
|
36
36
|
import { INestedISTD } from "./company/istd/istd.typings";
|
|
37
37
|
import { INestedISTDItem } from "./company/istd/istdItems.typings";
|
|
38
38
|
import { INestedInventoryLog } from "./company/inventory/inventoryLogger.typings";
|
|
39
|
+
import { INestedInvoice } from "./invoices.typings";
|
|
39
40
|
export declare enum PRICING_PLANS {
|
|
40
41
|
BASIC = "BASIC",
|
|
41
42
|
GROWTH = "GROWTH",
|
|
@@ -89,7 +90,8 @@ export declare enum COMPANY_INCLUDE {
|
|
|
89
90
|
company_item_vendor_versions = "company_item_vendor_versions",
|
|
90
91
|
item_manager_user = "item_manager_user",
|
|
91
92
|
vendor_manager_user = "vendor_manager_user",
|
|
92
|
-
inventory_logs = "inventory_logs"
|
|
93
|
+
inventory_logs = "inventory_logs",
|
|
94
|
+
invoices = "invoices"
|
|
93
95
|
}
|
|
94
96
|
export interface ICompany extends IAddress {
|
|
95
97
|
id: string;
|
|
@@ -165,6 +167,7 @@ export interface ICompany extends IAddress {
|
|
|
165
167
|
istds: INestedISTD[] | null;
|
|
166
168
|
istd_items: INestedISTDItem[] | null;
|
|
167
169
|
inventory_logs: INestedInventoryLog[] | null;
|
|
170
|
+
invoices: INestedInvoice[] | null;
|
|
168
171
|
}
|
|
169
|
-
export interface INestedCompany extends Omit<ICompany, "associated_purchase_locations" | "associated_vendors" | "associated_permissions" | "associated_roles" | "approval_configs" | "subdepartments" | "subcategories" | "categories" | "items" | "offices" | "stores" | "employees" | "departments" | "vendor_groups" | "company_indents" | "indent_items" | "company_mis" | "mi_items" | "company_prs" | "pr_items" | "company_rfqs" | "company_quotes" | "entity_approval_chain_entries" | "company_negotiations" | "company_pos" | "company_grns" | "company_grns_items" | "company_mrns" | "company_mrns_items" | "company_boms" | "company_bom_items" | "company_comparatives" | "company_comparative_items" | "company_notifications" | "company_proxy" | "extra_questions" | "extra_question_ans" | "extra_core_related_questions" | "company_specific_vendor_items" | "po_asn_items_junction" | "company_contact_people" | "company_item_vendor_versions" | "item_manager_user" | "vendor_manager_user" | "istds" | "istd_items" | "inventory_logs"> {
|
|
172
|
+
export interface INestedCompany extends Omit<ICompany, "associated_purchase_locations" | "associated_vendors" | "associated_permissions" | "associated_roles" | "approval_configs" | "subdepartments" | "subcategories" | "categories" | "items" | "offices" | "stores" | "employees" | "departments" | "vendor_groups" | "company_indents" | "indent_items" | "company_mis" | "mi_items" | "company_prs" | "pr_items" | "company_rfqs" | "company_quotes" | "entity_approval_chain_entries" | "company_negotiations" | "company_pos" | "company_grns" | "company_grns_items" | "company_mrns" | "company_mrns_items" | "company_boms" | "company_bom_items" | "company_comparatives" | "company_comparative_items" | "company_notifications" | "company_proxy" | "extra_questions" | "extra_question_ans" | "extra_core_related_questions" | "company_specific_vendor_items" | "po_asn_items_junction" | "company_contact_people" | "company_item_vendor_versions" | "item_manager_user" | "vendor_manager_user" | "istds" | "istd_items" | "inventory_logs" | "invoices"> {
|
|
170
173
|
}
|
|
@@ -55,4 +55,5 @@ var COMPANY_INCLUDE;
|
|
|
55
55
|
COMPANY_INCLUDE["item_manager_user"] = "item_manager_user";
|
|
56
56
|
COMPANY_INCLUDE["vendor_manager_user"] = "vendor_manager_user";
|
|
57
57
|
COMPANY_INCLUDE["inventory_logs"] = "inventory_logs";
|
|
58
|
+
COMPANY_INCLUDE["invoices"] = "invoices";
|
|
58
59
|
})(COMPANY_INCLUDE || (exports.COMPANY_INCLUDE = COMPANY_INCLUDE = {}));
|
|
@@ -2,6 +2,7 @@ import { IAddress } from "./common/address.typings";
|
|
|
2
2
|
import { INestedCompany } from "./company.typings";
|
|
3
3
|
import { INestedRootEntityApprovalChainEntry, ROOT_ENTITY_APPROVAL_STATUS } from "./company/rootEntityApproval/rootEntityApprovalEntries.typings";
|
|
4
4
|
import { INestedCompanyItemVendorVersion } from "./companyItemVendorVersion.typings";
|
|
5
|
+
import { INestedInvoice } from "./invoices.typings";
|
|
5
6
|
import { INestedItem } from "./item.typings";
|
|
6
7
|
import { INestedItemCategory } from "./itemCategory.typings";
|
|
7
8
|
import { INestedNegotiation } from "./negotiation.typings";
|
|
@@ -33,7 +34,8 @@ export declare enum CompanyVendorsInclude {
|
|
|
33
34
|
company_allowed_item_categories = "company_allowed_item_categories",
|
|
34
35
|
company_item_vendor_versions = "company_item_vendor_versions",
|
|
35
36
|
approval_chain = "approval_chain",
|
|
36
|
-
last_updated_by = "last_updated_by"
|
|
37
|
+
last_updated_by = "last_updated_by",
|
|
38
|
+
invoices = "invoices"
|
|
37
39
|
}
|
|
38
40
|
export declare enum COMPANY_FORM_STATUS_FOR_VENDOR {
|
|
39
41
|
INVITED = "INVITED",
|
|
@@ -72,8 +74,9 @@ export interface ICompanyVendor {
|
|
|
72
74
|
company_item_verndor_versions: INestedCompanyItemVendorVersion[] | null;
|
|
73
75
|
approval_chain: INestedRootEntityApprovalChainEntry[] | null;
|
|
74
76
|
last_updated_by: INestedUser | null;
|
|
77
|
+
invoices: INestedInvoice[] | null;
|
|
75
78
|
}
|
|
76
|
-
export interface INestedCompanyVendors extends Omit<ICompanyVendor, "company" | "vendor" | "approved_by" | "rfqs_sent" | "vendor_groups" | "negotiations" | "pos" | "selected_item_categories" | "selected_items" | "company_allowed_item_categories" | "company_item_verndor_versions" | "approval_chain" | "last_updated_by"> {
|
|
79
|
+
export interface INestedCompanyVendors extends Omit<ICompanyVendor, "company" | "vendor" | "approved_by" | "rfqs_sent" | "vendor_groups" | "negotiations" | "pos" | "selected_item_categories" | "selected_items" | "company_allowed_item_categories" | "company_item_verndor_versions" | "approval_chain" | "last_updated_by" | "invoices"> {
|
|
77
80
|
}
|
|
78
81
|
export interface IICheckCompanyVendorStatusRes {
|
|
79
82
|
vendor: IVendor;
|
|
@@ -28,6 +28,7 @@ var CompanyVendorsInclude;
|
|
|
28
28
|
CompanyVendorsInclude["company_item_vendor_versions"] = "company_item_vendor_versions";
|
|
29
29
|
CompanyVendorsInclude["approval_chain"] = "approval_chain";
|
|
30
30
|
CompanyVendorsInclude["last_updated_by"] = "last_updated_by";
|
|
31
|
+
CompanyVendorsInclude["invoices"] = "invoices";
|
|
31
32
|
})(CompanyVendorsInclude || (exports.CompanyVendorsInclude = CompanyVendorsInclude = {}));
|
|
32
33
|
var COMPANY_FORM_STATUS_FOR_VENDOR;
|
|
33
34
|
(function (COMPANY_FORM_STATUS_FOR_VENDOR) {
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
2
|
+
import { INestedCompany } from "./company.typings";
|
|
3
|
+
import { INestedCompanyVendors } from "./companyVendors.typings";
|
|
4
|
+
import { INestedPo } from "./po.typings";
|
|
5
|
+
import { INestedUser } from "./user.typings";
|
|
6
|
+
import { INestedVendor } from "./vendor.typings";
|
|
7
|
+
export declare enum INVOICE_STATUS {
|
|
8
|
+
PAID = "PAID",
|
|
9
|
+
REJECTED = "REJECTED",
|
|
10
|
+
RAISED = "RAISED"
|
|
11
|
+
}
|
|
12
|
+
export declare enum INVOICE_INCLUDE {
|
|
13
|
+
company = "company",
|
|
14
|
+
vendor = "vendor",
|
|
15
|
+
company_vendor = "company_vendor",
|
|
16
|
+
parent_po = "parent_po",
|
|
17
|
+
mark_as_paid_or_rejected_by_user = "mark_as_paid_or_rejected_by_user"
|
|
18
|
+
}
|
|
19
|
+
export interface IInvoiceFiltersForVendor extends Partial<Pick<IInvoice, "company_id" | "parent_po_id" | "status">> {
|
|
20
|
+
include?: INVOICE_INCLUDE[] | null;
|
|
21
|
+
}
|
|
22
|
+
export interface IInvoiceFiltersWithPaginationForVendor extends IInvoiceFiltersForVendor, IPaginationFilters {
|
|
23
|
+
}
|
|
24
|
+
export interface IInvoiceFiltersForCompany extends Partial<Pick<IInvoice, "vendor_id" | "company_vendor_id" | "status" | "parent_po_id" | "mark_as_paid_or_rejected_by_user_id">> {
|
|
25
|
+
include?: INVOICE_INCLUDE[] | null;
|
|
26
|
+
}
|
|
27
|
+
export interface IInvoiceFiltersWithPaginationForCompany extends IInvoiceFiltersForCompany, IPaginationFilters {
|
|
28
|
+
}
|
|
29
|
+
export interface IInvoice {
|
|
30
|
+
id: string;
|
|
31
|
+
company_id: string;
|
|
32
|
+
vendor_id: string;
|
|
33
|
+
company_vendor_id: string;
|
|
34
|
+
parent_po_id: string;
|
|
35
|
+
status: string;
|
|
36
|
+
target_creation_date: string;
|
|
37
|
+
invoice_no: string;
|
|
38
|
+
total_amount: number;
|
|
39
|
+
rejection_reason: string | null;
|
|
40
|
+
remarks: string | null;
|
|
41
|
+
attachment_link: string | null;
|
|
42
|
+
mark_as_paid_or_rejected_by_user_id: string | null;
|
|
43
|
+
mark_as_paid_or_rejected_at: string | null;
|
|
44
|
+
is_deleted: boolean;
|
|
45
|
+
deleted_at: string | null;
|
|
46
|
+
created_at: string;
|
|
47
|
+
updated_at: string;
|
|
48
|
+
company: INestedCompany | null;
|
|
49
|
+
vendor: INestedVendor | null;
|
|
50
|
+
company_vendor: INestedCompanyVendors | null;
|
|
51
|
+
parent_po: INestedPo | null;
|
|
52
|
+
mark_as_paid_or_rejected_by_user: INestedUser | null;
|
|
53
|
+
}
|
|
54
|
+
export interface INestedInvoice extends Omit<IInvoice, "company" | "vendor" | "company_vendor" | "parent_po" | "mark_as_paid_or_rejected_by_user"> {
|
|
55
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.INVOICE_INCLUDE = exports.INVOICE_STATUS = void 0;
|
|
4
|
+
var INVOICE_STATUS;
|
|
5
|
+
(function (INVOICE_STATUS) {
|
|
6
|
+
INVOICE_STATUS["PAID"] = "PAID";
|
|
7
|
+
INVOICE_STATUS["REJECTED"] = "REJECTED";
|
|
8
|
+
INVOICE_STATUS["RAISED"] = "RAISED";
|
|
9
|
+
})(INVOICE_STATUS || (exports.INVOICE_STATUS = INVOICE_STATUS = {}));
|
|
10
|
+
var INVOICE_INCLUDE;
|
|
11
|
+
(function (INVOICE_INCLUDE) {
|
|
12
|
+
INVOICE_INCLUDE["company"] = "company";
|
|
13
|
+
INVOICE_INCLUDE["vendor"] = "vendor";
|
|
14
|
+
INVOICE_INCLUDE["company_vendor"] = "company_vendor";
|
|
15
|
+
INVOICE_INCLUDE["parent_po"] = "parent_po";
|
|
16
|
+
INVOICE_INCLUDE["mark_as_paid_or_rejected_by_user"] = "mark_as_paid_or_rejected_by_user";
|
|
17
|
+
})(INVOICE_INCLUDE || (exports.INVOICE_INCLUDE = INVOICE_INCLUDE = {}));
|
|
@@ -8,6 +8,7 @@ import { CONTACT_PERSON_TYPE, INestedContactPeople } from "./contactPeople.typin
|
|
|
8
8
|
import { ITaxRelatedItemInputs } from "./docItems.typings";
|
|
9
9
|
import { INestedDocumentTaxes } from "./documentTaxes.typings";
|
|
10
10
|
import { IEntityApprovalChainEntry, INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
11
|
+
import { INestedInvoice } from "./invoices.typings";
|
|
11
12
|
import { INestedItem, ITEM_TYPES } from "./item.typings";
|
|
12
13
|
import { INestedPOASNItemJunction } from "./poAsnJunctionItems.typings";
|
|
13
14
|
import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
@@ -23,7 +24,8 @@ export declare enum PO_LIST_TYPES {
|
|
|
23
24
|
export declare enum COMPANY_VIEW_PO_TABS {
|
|
24
25
|
DETAILS = "DETAILS",
|
|
25
26
|
ASNS = "ASNS",
|
|
26
|
-
APPROVALS = "APPROVALS"
|
|
27
|
+
APPROVALS = "APPROVALS",
|
|
28
|
+
INVOICES = "INVOICES"
|
|
27
29
|
}
|
|
28
30
|
export declare enum PO_STATUS {
|
|
29
31
|
DRAFT = "DRAFT",
|
|
@@ -76,9 +78,9 @@ export interface IPurchaseOrder {
|
|
|
76
78
|
contact_person_id: string | null;
|
|
77
79
|
external_contact_person_id: string | null;
|
|
78
80
|
status: string;
|
|
79
|
-
invoices: string[];
|
|
80
81
|
total: number | null;
|
|
81
82
|
subtotal: number | null;
|
|
83
|
+
remaining_amount_for_invoices: number;
|
|
82
84
|
sent_for_approval_by_id: string | null;
|
|
83
85
|
sent_to_vendor_by_id: string | null;
|
|
84
86
|
parent_quote_id: string | null;
|
|
@@ -117,10 +119,12 @@ export interface IPurchaseOrder {
|
|
|
117
119
|
po_asn_items_junctions: INestedPOASNItemJunction[] | null;
|
|
118
120
|
least_purchase_price_items: INestedItem[] | null;
|
|
119
121
|
previous_purchase_price_items: INestedItem[] | null;
|
|
122
|
+
invoices: INestedInvoice[] | null;
|
|
120
123
|
}
|
|
121
|
-
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" | "po_asn_items_junctions" | "least_purchase_price_items" | "previous_purchase_price_items"> {
|
|
124
|
+
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" | "po_asn_items_junctions" | "least_purchase_price_items" | "previous_purchase_price_items" | "invoices"> {
|
|
122
125
|
}
|
|
123
126
|
export declare enum PO_INCLUDE {
|
|
127
|
+
invoices = "invoices",
|
|
124
128
|
company = "company",
|
|
125
129
|
shipping_store_location = "shipping_store_location",
|
|
126
130
|
created_by_user = "created_by_user",
|
|
@@ -12,6 +12,7 @@ var COMPANY_VIEW_PO_TABS;
|
|
|
12
12
|
COMPANY_VIEW_PO_TABS["DETAILS"] = "DETAILS";
|
|
13
13
|
COMPANY_VIEW_PO_TABS["ASNS"] = "ASNS";
|
|
14
14
|
COMPANY_VIEW_PO_TABS["APPROVALS"] = "APPROVALS";
|
|
15
|
+
COMPANY_VIEW_PO_TABS["INVOICES"] = "INVOICES";
|
|
15
16
|
})(COMPANY_VIEW_PO_TABS || (exports.COMPANY_VIEW_PO_TABS = COMPANY_VIEW_PO_TABS = {}));
|
|
16
17
|
var PO_STATUS;
|
|
17
18
|
(function (PO_STATUS) {
|
|
@@ -38,6 +39,7 @@ var PO_ITEM_ASCENDENCE_TYPE;
|
|
|
38
39
|
})(PO_ITEM_ASCENDENCE_TYPE || (exports.PO_ITEM_ASCENDENCE_TYPE = PO_ITEM_ASCENDENCE_TYPE = {}));
|
|
39
40
|
var PO_INCLUDE;
|
|
40
41
|
(function (PO_INCLUDE) {
|
|
42
|
+
PO_INCLUDE["invoices"] = "invoices";
|
|
41
43
|
PO_INCLUDE["company"] = "company";
|
|
42
44
|
PO_INCLUDE["shipping_store_location"] = "shipping_store_location";
|
|
43
45
|
PO_INCLUDE["created_by_user"] = "created_by_user";
|
|
@@ -8,6 +8,7 @@ import { IAddress } from "./common/address.typings";
|
|
|
8
8
|
import { INestedVendorProxy } from "./vendorProxy.typints";
|
|
9
9
|
import { IEXtraFormAnswers } from "./settings/form/extraFormAns.typings";
|
|
10
10
|
import { INestedCompanyItemVendorVersion } from "./companyItemVendorVersion.typings";
|
|
11
|
+
import { INestedInvoice } from "./invoices.typings";
|
|
11
12
|
export interface IVendor extends IAddress {
|
|
12
13
|
id: string;
|
|
13
14
|
gst_no?: string | null;
|
|
@@ -48,8 +49,9 @@ export interface IVendor extends IAddress {
|
|
|
48
49
|
extra_que_answers: IEXtraFormAnswers[] | null;
|
|
49
50
|
pos: INestedPo[] | null;
|
|
50
51
|
company_item_versions: INestedCompanyItemVendorVersion[] | null;
|
|
52
|
+
invoices: INestedInvoice[] | null;
|
|
51
53
|
}
|
|
52
|
-
export interface INestedVendor extends Omit<IVendor, "quotes" | "associated_companies" | "negotiations" | "as_additional_in_rfqs" | "vendor_notifications" | "vendor_proxy" | "extra_que_answers" | "pos" | "company_item_versions"> {
|
|
54
|
+
export interface INestedVendor extends Omit<IVendor, "quotes" | "associated_companies" | "negotiations" | "as_additional_in_rfqs" | "vendor_notifications" | "vendor_proxy" | "extra_que_answers" | "pos" | "company_item_versions" | "invoices"> {
|
|
53
55
|
}
|
|
54
56
|
export declare enum VENDOR_INCLUDE {
|
|
55
57
|
quotes = "quotes",
|
|
@@ -60,7 +62,8 @@ export declare enum VENDOR_INCLUDE {
|
|
|
60
62
|
vendor_proxy = "vendor_proxy",
|
|
61
63
|
extra_que_answers = "extra_que_answers",
|
|
62
64
|
pos = "pos",
|
|
63
|
-
company_item_versions = "company_item_versions"
|
|
65
|
+
company_item_versions = "company_item_versions",
|
|
66
|
+
invoices = "invoices"
|
|
64
67
|
}
|
|
65
68
|
export interface IVENDOR_TOKEN_PAYLOAD {
|
|
66
69
|
id: string;
|
|
@@ -12,6 +12,7 @@ var VENDOR_INCLUDE;
|
|
|
12
12
|
VENDOR_INCLUDE["extra_que_answers"] = "extra_que_answers";
|
|
13
13
|
VENDOR_INCLUDE["pos"] = "pos";
|
|
14
14
|
VENDOR_INCLUDE["company_item_versions"] = "company_item_versions";
|
|
15
|
+
VENDOR_INCLUDE["invoices"] = "invoices";
|
|
15
16
|
})(VENDOR_INCLUDE || (exports.VENDOR_INCLUDE = VENDOR_INCLUDE = {}));
|
|
16
17
|
// for GST-Core activities Types
|
|
17
18
|
var VENDOR_TYPE;
|