kcommons 14.8.3 → 14.9.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/index.d.ts +2 -1
- package/build/index.js +2 -1
- package/build/typings/company/masters/paymentTerms.typings.d.ts +38 -0
- package/build/typings/company/masters/paymentTerms.typings.js +10 -0
- package/build/typings/company/masters/termsAndConditions.typings.d.ts +37 -0
- package/build/typings/company/masters/termsAndConditions.typings.js +10 -0
- package/build/typings/company/settings/termsAndConditions.typings.d.ts +5 -2
- package/build/typings/company/settings/termsAndConditions.typings.js +1 -0
- package/build/typings/company.typings.d.ts +3 -1
- package/build/typings/po.typings.d.ts +9 -2
- package/build/typings/po.typings.js +2 -0
- package/build/typings/user.typings.d.ts +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -64,7 +64,8 @@ export * from "./typings/company/settings/companySettings.typings";
|
|
|
64
64
|
export * from "./typings/company/settings/comanyVendorSettings.typings";
|
|
65
65
|
export * from "./typings/company/vendorOnboardingRequest/vendorOnboardingRequestCategory.typings";
|
|
66
66
|
export * from "./typings/company/masters/itemManagementbody.typings";
|
|
67
|
-
export * from "./typings/company/
|
|
67
|
+
export * from "./typings/company/masters/termsAndConditions.typings";
|
|
68
|
+
export * from "./typings/company/masters/paymentTerms.typings";
|
|
68
69
|
export * from "./typings/company/_junctions/vesCheckpointTracking.typings";
|
|
69
70
|
export * from "./typings/system/queueJob.typings";
|
|
70
71
|
export * from "./typings/common/address.typings";
|
package/build/index.js
CHANGED
|
@@ -83,7 +83,8 @@ __exportStar(require("./typings/company/settings/companySettings.typings"), expo
|
|
|
83
83
|
__exportStar(require("./typings/company/settings/comanyVendorSettings.typings"), exports);
|
|
84
84
|
__exportStar(require("./typings/company/vendorOnboardingRequest/vendorOnboardingRequestCategory.typings"), exports);
|
|
85
85
|
__exportStar(require("./typings/company/masters/itemManagementbody.typings"), exports);
|
|
86
|
-
__exportStar(require("./typings/company/
|
|
86
|
+
__exportStar(require("./typings/company/masters/termsAndConditions.typings"), exports);
|
|
87
|
+
__exportStar(require("./typings/company/masters/paymentTerms.typings"), exports);
|
|
87
88
|
__exportStar(require("./typings/company/_junctions/vesCheckpointTracking.typings"), exports);
|
|
88
89
|
// System
|
|
89
90
|
__exportStar(require("./typings/system/queueJob.typings"), exports);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IPaginationFilters } from "../../common/paginationFilters.typings";
|
|
2
|
+
import { INestedCompany } from "../../company.typings";
|
|
3
|
+
import { INestedPo } from "../../po.typings";
|
|
4
|
+
import { INestedUser } from "../../user.typings";
|
|
5
|
+
export declare enum PAYMENT_TERM_INCLUDE {
|
|
6
|
+
company = "company",
|
|
7
|
+
created_by = "created_by",
|
|
8
|
+
last_updated_by_user = "last_updated_by_user",
|
|
9
|
+
used_in_pos = "used_in_pos"
|
|
10
|
+
}
|
|
11
|
+
export interface IPaymentTerms {
|
|
12
|
+
id: string;
|
|
13
|
+
payment_term_code: string;
|
|
14
|
+
payment_term_name: string;
|
|
15
|
+
payment_term_description: string;
|
|
16
|
+
company_id: string;
|
|
17
|
+
created_by_id: string;
|
|
18
|
+
last_updated_by_user_id: string;
|
|
19
|
+
is_enabled: boolean;
|
|
20
|
+
is_deleted: boolean;
|
|
21
|
+
deleted_at: string | null;
|
|
22
|
+
created_at: string;
|
|
23
|
+
updated_at: string;
|
|
24
|
+
company: INestedCompany | null;
|
|
25
|
+
created_by: INestedUser | null;
|
|
26
|
+
last_updated_by_user: INestedUser | null;
|
|
27
|
+
used_in_pos: INestedPo[] | null;
|
|
28
|
+
}
|
|
29
|
+
export interface INestedPaymentTerms extends Omit<IPaymentTerms, "company" | "created_by" | "last_updated_by_user" | "used_in_pos"> {
|
|
30
|
+
}
|
|
31
|
+
export interface IPaymentTermsFilters {
|
|
32
|
+
company_id?: string;
|
|
33
|
+
name?: string;
|
|
34
|
+
is_enabled?: boolean;
|
|
35
|
+
include?: PAYMENT_TERM_INCLUDE[];
|
|
36
|
+
}
|
|
37
|
+
export interface IPaymentTermsFiltersWithPagination extends IPaginationFilters, IPaymentTermsFilters {
|
|
38
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PAYMENT_TERM_INCLUDE = void 0;
|
|
4
|
+
var PAYMENT_TERM_INCLUDE;
|
|
5
|
+
(function (PAYMENT_TERM_INCLUDE) {
|
|
6
|
+
PAYMENT_TERM_INCLUDE["company"] = "company";
|
|
7
|
+
PAYMENT_TERM_INCLUDE["created_by"] = "created_by";
|
|
8
|
+
PAYMENT_TERM_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
|
|
9
|
+
PAYMENT_TERM_INCLUDE["used_in_pos"] = "used_in_pos";
|
|
10
|
+
})(PAYMENT_TERM_INCLUDE || (exports.PAYMENT_TERM_INCLUDE = PAYMENT_TERM_INCLUDE = {}));
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { INestedUser } from "../../user.typings";
|
|
2
|
+
import { IPaginationFilters } from "../../common/paginationFilters.typings";
|
|
3
|
+
import { INestedCompany } from "../../company.typings";
|
|
4
|
+
import { INestedPo } from "../../po.typings";
|
|
5
|
+
export interface ITermsAndConditions {
|
|
6
|
+
id: string;
|
|
7
|
+
tnc_title: string;
|
|
8
|
+
tnc_content: string;
|
|
9
|
+
company_id: string;
|
|
10
|
+
created_by_user_id: string;
|
|
11
|
+
last_updated_by_user_id: string | null;
|
|
12
|
+
is_enabled: boolean;
|
|
13
|
+
is_deleted: boolean;
|
|
14
|
+
deleted_at: Date | null;
|
|
15
|
+
created_at: Date;
|
|
16
|
+
updated_at: Date;
|
|
17
|
+
company: INestedCompany | null;
|
|
18
|
+
created_by_user: INestedUser | null;
|
|
19
|
+
last_updated_by_user: INestedUser | null;
|
|
20
|
+
used_in_pos?: INestedPo[] | null;
|
|
21
|
+
}
|
|
22
|
+
export interface INestedTermsAndConditions extends Omit<ITermsAndConditions, "company" | "created_by_user" | "last_updated_by_user" | "used_in_pos"> {
|
|
23
|
+
}
|
|
24
|
+
export declare enum TermsAndConditionsInclude {
|
|
25
|
+
company = "company",
|
|
26
|
+
created_by_user = "created_by_user",
|
|
27
|
+
last_updated_by_user = "last_updated_by_user",
|
|
28
|
+
used_in_pos = "used_in_pos"
|
|
29
|
+
}
|
|
30
|
+
export interface ITermsAndConditionsFilters extends Partial<Pick<ITermsAndConditions, "is_enabled">> {
|
|
31
|
+
name?: string | null;
|
|
32
|
+
tnc_title?: string | null;
|
|
33
|
+
tnc_content?: string | null;
|
|
34
|
+
include?: TermsAndConditionsInclude[] | null;
|
|
35
|
+
}
|
|
36
|
+
export interface ITermsAndconditionsFiltersWithPagination extends IPaginationFilters, ITermsAndConditionsFilters {
|
|
37
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TermsAndConditionsInclude = void 0;
|
|
4
|
+
var TermsAndConditionsInclude;
|
|
5
|
+
(function (TermsAndConditionsInclude) {
|
|
6
|
+
TermsAndConditionsInclude["company"] = "company";
|
|
7
|
+
TermsAndConditionsInclude["created_by_user"] = "created_by_user";
|
|
8
|
+
TermsAndConditionsInclude["last_updated_by_user"] = "last_updated_by_user";
|
|
9
|
+
TermsAndConditionsInclude["used_in_pos"] = "used_in_pos";
|
|
10
|
+
})(TermsAndConditionsInclude || (exports.TermsAndConditionsInclude = TermsAndConditionsInclude = {}));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { INestedUser } from "../../user.typings";
|
|
2
2
|
import { IPaginationFilters } from "../../common/paginationFilters.typings";
|
|
3
3
|
import { INestedCompany } from "../../company.typings";
|
|
4
|
+
import { INestedPo } from "../../po.typings";
|
|
4
5
|
export interface ITermsAndConditions {
|
|
5
6
|
id: string;
|
|
6
7
|
tnc_title: string;
|
|
@@ -16,13 +17,15 @@ export interface ITermsAndConditions {
|
|
|
16
17
|
company: INestedCompany | null;
|
|
17
18
|
created_by_user: INestedUser | null;
|
|
18
19
|
last_updated_by_user: INestedUser | null;
|
|
20
|
+
used_in_pos?: INestedPo[] | null;
|
|
19
21
|
}
|
|
20
|
-
export interface INestedTermsAndConditions extends Omit<ITermsAndConditions, "company" | "created_by_user" | "last_updated_by_user"> {
|
|
22
|
+
export interface INestedTermsAndConditions extends Omit<ITermsAndConditions, "company" | "created_by_user" | "last_updated_by_user" | "used_in_pos"> {
|
|
21
23
|
}
|
|
22
24
|
export declare enum TermsAndConditionsInclude {
|
|
23
25
|
company = "company",
|
|
24
26
|
created_by_user = "created_by_user",
|
|
25
|
-
last_updated_by_user = "last_updated_by_user"
|
|
27
|
+
last_updated_by_user = "last_updated_by_user",
|
|
28
|
+
used_in_pos = "used_in_pos"
|
|
26
29
|
}
|
|
27
30
|
export interface ITermsAndConditionsFilters extends Partial<Pick<ITermsAndConditions, "is_enabled">> {
|
|
28
31
|
name?: string | null;
|
|
@@ -6,4 +6,5 @@ var TermsAndConditionsInclude;
|
|
|
6
6
|
TermsAndConditionsInclude["company"] = "company";
|
|
7
7
|
TermsAndConditionsInclude["created_by_user"] = "created_by_user";
|
|
8
8
|
TermsAndConditionsInclude["last_updated_by_user"] = "last_updated_by_user";
|
|
9
|
+
TermsAndConditionsInclude["used_in_pos"] = "used_in_pos";
|
|
9
10
|
})(TermsAndConditionsInclude || (exports.TermsAndConditionsInclude = TermsAndConditionsInclude = {}));
|
|
@@ -47,7 +47,8 @@ import { INestedFormRolback } from "./vendor/vendorFormRollbackRemark.typings";
|
|
|
47
47
|
import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
|
|
48
48
|
import { INestedVES } from "./company/masters/ves.typings";
|
|
49
49
|
import { INestedQueueJob } from "./system/queueJob.typings";
|
|
50
|
-
import { INestedTermsAndConditions } from "./company/
|
|
50
|
+
import { INestedTermsAndConditions } from "./company/masters/termsAndConditions.typings";
|
|
51
|
+
import { INestedPaymentTerms } from "./company/masters/paymentTerms.typings";
|
|
51
52
|
export declare enum PRICING_PLANS {
|
|
52
53
|
BASIC = "BASIC",
|
|
53
54
|
GROWTH = "GROWTH",
|
|
@@ -198,6 +199,7 @@ export interface ICompany extends IAddress {
|
|
|
198
199
|
company_ves: INestedVES[] | null;
|
|
199
200
|
queue_jobs: INestedQueueJob[] | null;
|
|
200
201
|
company_terms_and_conditions: INestedTermsAndConditions[] | null;
|
|
202
|
+
payment_terms: INestedPaymentTerms[] | null;
|
|
201
203
|
}
|
|
202
204
|
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"> {
|
|
203
205
|
}
|
|
@@ -3,6 +3,7 @@ import { IOpenApprovalsBase } from "./common/openApprovals.typings";
|
|
|
3
3
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
4
4
|
import { INestedCompany } from "./company.typings";
|
|
5
5
|
import { INestedVES } from "./company/masters/ves.typings";
|
|
6
|
+
import { INestedTermsAndConditions } from "./company/masters/termsAndConditions.typings";
|
|
6
7
|
import { INestedCompanyVendors } from "./companyVendors.typings";
|
|
7
8
|
import { INestedComparative, INestedComparativeItem } from "./comparative.typings";
|
|
8
9
|
import { CONTACT_PERSON_TYPE, INestedContactPeople } from "./contactPeople.typings";
|
|
@@ -110,6 +111,8 @@ export interface IPurchaseOrder {
|
|
|
110
111
|
delivery_schedule: string | null;
|
|
111
112
|
payment_terms: string | null;
|
|
112
113
|
remark: string | null;
|
|
114
|
+
tnc_id: string | null;
|
|
115
|
+
pt_id: string | null;
|
|
113
116
|
is_deleted: boolean | null;
|
|
114
117
|
accepted_or_rejected_by_vendor_at: string | null;
|
|
115
118
|
sent_for_approval_at: string | null;
|
|
@@ -141,8 +144,10 @@ export interface IPurchaseOrder {
|
|
|
141
144
|
directly_created_grns: INestedGRN[] | null;
|
|
142
145
|
po_grn_items_junctions: INestedPOGRNItemJunction[] | null;
|
|
143
146
|
child_ves: INestedVES[] | null;
|
|
147
|
+
tnc: INestedTermsAndConditions | null;
|
|
148
|
+
pt: INestedPo | null;
|
|
144
149
|
}
|
|
145
|
-
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" | "invoices" | "po_grn_items_junctions" | "directly_created_grns" | "child_ves"> {
|
|
150
|
+
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" | "invoices" | "po_grn_items_junctions" | "directly_created_grns" | "child_ves" | "tnc" | "pt"> {
|
|
146
151
|
}
|
|
147
152
|
export declare enum PO_INCLUDE {
|
|
148
153
|
invoices = "invoices",
|
|
@@ -169,7 +174,9 @@ export declare enum PO_INCLUDE {
|
|
|
169
174
|
previous_purchase_price_items = "previous_purchase_price_items",
|
|
170
175
|
po_grn_items_junctions = "po_grn_items_junctions",
|
|
171
176
|
directly_created_grns = "directly_created_grns",
|
|
172
|
-
child_ves = "child_ves"
|
|
177
|
+
child_ves = "child_ves",
|
|
178
|
+
tnc = "tnc",
|
|
179
|
+
pt = "pt"
|
|
173
180
|
}
|
|
174
181
|
export interface IPOItem extends ITaxRelatedItemInputs {
|
|
175
182
|
id: string;
|
|
@@ -76,6 +76,8 @@ var PO_INCLUDE;
|
|
|
76
76
|
PO_INCLUDE["po_grn_items_junctions"] = "po_grn_items_junctions";
|
|
77
77
|
PO_INCLUDE["directly_created_grns"] = "directly_created_grns";
|
|
78
78
|
PO_INCLUDE["child_ves"] = "child_ves";
|
|
79
|
+
PO_INCLUDE["tnc"] = "tnc";
|
|
80
|
+
PO_INCLUDE["pt"] = "pt";
|
|
79
81
|
})(PO_INCLUDE || (exports.PO_INCLUDE = PO_INCLUDE = {}));
|
|
80
82
|
var PO_ITEM_INCLUDE;
|
|
81
83
|
(function (PO_ITEM_INCLUDE) {
|
|
@@ -40,7 +40,7 @@ import { INestedQuote } from "./quote.typings";
|
|
|
40
40
|
import { INestedASN } from "./asn.typings";
|
|
41
41
|
import { INestedInvoice } from "./invoices.typings";
|
|
42
42
|
import { INestedFormRolback } from "./vendor/vendorFormRollbackRemark.typings";
|
|
43
|
-
import { INestedTermsAndConditions } from "./company/
|
|
43
|
+
import { INestedTermsAndConditions } from "./company/masters/termsAndConditions.typings";
|
|
44
44
|
import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
|
|
45
45
|
import { INestedVES } from "./company/masters/ves.typings";
|
|
46
46
|
import { INestedVESCheckpointTracking } from "./company/_junctions/vesCheckpointTracking.typings";
|