kcommons 14.7.3 → 14.8.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/typings/company/settings/termsAndConditions.typings.d.ts +6 -2
- package/build/typings/company/settings/termsAndConditions.typings.js +1 -0
- package/build/typings/company.typings.d.ts +5 -2
- package/build/typings/company.typings.js +1 -0
- package/build/typings/notifications.typings.d.ts +2 -0
- package/build/typings/user.typings.d.ts +4 -2
- package/build/typings/user.typings.js +1 -0
- package/build/utils/getContactPerson.util.spec.js +2 -0
- package/package.json +1 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { INestedUser } from "../../user.typings";
|
|
2
2
|
import { IPaginationFilters } from "../../common/paginationFilters.typings";
|
|
3
|
+
import { INestedCompany } from "../../company.typings";
|
|
3
4
|
export interface ITermsAndConditions {
|
|
4
5
|
id: string;
|
|
5
6
|
tnc_title: string;
|
|
6
7
|
tnc_content: string;
|
|
8
|
+
company_id: string;
|
|
7
9
|
created_by_user_id: string;
|
|
8
10
|
last_updated_by_user_id: string | null;
|
|
9
11
|
is_enabled: boolean;
|
|
@@ -11,16 +13,18 @@ export interface ITermsAndConditions {
|
|
|
11
13
|
deleted_at: Date | null;
|
|
12
14
|
created_at: Date;
|
|
13
15
|
updated_at: Date;
|
|
16
|
+
company: INestedCompany | null;
|
|
14
17
|
created_by_user: INestedUser | null;
|
|
15
18
|
last_updated_by_user: INestedUser | null;
|
|
16
19
|
}
|
|
17
|
-
export interface INestedTermsAndConditions extends Omit<ITermsAndConditions, "created_by_user" | "last_updated_by_user"> {
|
|
20
|
+
export interface INestedTermsAndConditions extends Omit<ITermsAndConditions, "company" | "created_by_user" | "last_updated_by_user"> {
|
|
18
21
|
}
|
|
19
22
|
export declare enum TermsAndConditionsInclude {
|
|
23
|
+
company = "company",
|
|
20
24
|
created_by_user = "created_by_user",
|
|
21
25
|
last_updated_by_user = "last_updated_by_user"
|
|
22
26
|
}
|
|
23
|
-
export interface ITermsAndConditionsFilters {
|
|
27
|
+
export interface ITermsAndConditionsFilters extends Partial<Pick<ITermsAndConditions, "is_enabled">> {
|
|
24
28
|
name?: string | null;
|
|
25
29
|
tnc_title?: string | null;
|
|
26
30
|
tnc_content?: string | null;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TermsAndConditionsInclude = void 0;
|
|
4
4
|
var TermsAndConditionsInclude;
|
|
5
5
|
(function (TermsAndConditionsInclude) {
|
|
6
|
+
TermsAndConditionsInclude["company"] = "company";
|
|
6
7
|
TermsAndConditionsInclude["created_by_user"] = "created_by_user";
|
|
7
8
|
TermsAndConditionsInclude["last_updated_by_user"] = "last_updated_by_user";
|
|
8
9
|
})(TermsAndConditionsInclude || (exports.TermsAndConditionsInclude = TermsAndConditionsInclude = {}));
|
|
@@ -47,6 +47,7 @@ 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/settings/termsAndConditions.typings";
|
|
50
51
|
export declare enum PRICING_PLANS {
|
|
51
52
|
BASIC = "BASIC",
|
|
52
53
|
GROWTH = "GROWTH",
|
|
@@ -105,7 +106,8 @@ export declare enum COMPANY_INCLUDE {
|
|
|
105
106
|
item_management_bodies = "item_management_bodies",
|
|
106
107
|
rollback_forms_sent_by_company = "rollback_forms_sent_by_company",
|
|
107
108
|
company_ves = "company_ves",
|
|
108
|
-
queue_jobs = "queue_jobs"
|
|
109
|
+
queue_jobs = "queue_jobs",
|
|
110
|
+
company_terms_and_conditions = "company_terms_and_conditions"
|
|
109
111
|
}
|
|
110
112
|
export interface ICompany extends IAddress {
|
|
111
113
|
id: string;
|
|
@@ -195,8 +197,9 @@ export interface ICompany extends IAddress {
|
|
|
195
197
|
company_checkpoints: INestedCheckpoint[] | null;
|
|
196
198
|
company_ves: INestedVES[] | null;
|
|
197
199
|
queue_jobs: INestedQueueJob[] | null;
|
|
200
|
+
company_terms_and_conditions: INestedTermsAndConditions[] | null;
|
|
198
201
|
}
|
|
199
|
-
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"> {
|
|
202
|
+
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"> {
|
|
200
203
|
}
|
|
201
204
|
export interface ICompanyVendorAdditionalInfoMappingConfig {
|
|
202
205
|
additional_info_form_que_id: string;
|
|
@@ -60,6 +60,7 @@ var COMPANY_INCLUDE;
|
|
|
60
60
|
COMPANY_INCLUDE["rollback_forms_sent_by_company"] = "rollback_forms_sent_by_company";
|
|
61
61
|
COMPANY_INCLUDE["company_ves"] = "company_ves";
|
|
62
62
|
COMPANY_INCLUDE["queue_jobs"] = "queue_jobs";
|
|
63
|
+
COMPANY_INCLUDE["company_terms_and_conditions"] = "company_terms_and_conditions";
|
|
63
64
|
})(COMPANY_INCLUDE || (exports.COMPANY_INCLUDE = COMPANY_INCLUDE = {}));
|
|
64
65
|
// export interface IUpdateVendorOnboardingRequestCategoriesInputs
|
|
65
66
|
// extends Pick<ICompany, "vendor_onboarding_request_categories"> {}
|
|
@@ -24,6 +24,7 @@ export interface INotification {
|
|
|
24
24
|
title: string;
|
|
25
25
|
description: string;
|
|
26
26
|
action_link: string | null;
|
|
27
|
+
mobile_action_link: string | null;
|
|
27
28
|
is_deleted?: boolean | null;
|
|
28
29
|
deleted_at?: string | null;
|
|
29
30
|
created_at: string;
|
|
@@ -74,6 +75,7 @@ export interface INotificationTemplate {
|
|
|
74
75
|
title: string;
|
|
75
76
|
description: string;
|
|
76
77
|
action_link: string | null;
|
|
78
|
+
mobile_action_link: string | null;
|
|
77
79
|
}
|
|
78
80
|
export interface INotifcationReqData {
|
|
79
81
|
notification: IIndividualNotification;
|
|
@@ -186,8 +186,9 @@ export interface IUser {
|
|
|
186
186
|
ves_cancelled_by_user: INestedVES[] | null;
|
|
187
187
|
time_records_at_checkpoint: INestedVESCheckpointTracking[] | null;
|
|
188
188
|
created_queue_jobs: INestedQueueJob[] | null;
|
|
189
|
+
last_updated_payment_terms: INestedUser | null;
|
|
189
190
|
}
|
|
190
|
-
export interface INestedUser extends Omit<IUser, "updated_at" | "created_at" | "deleted_at" | "reporting_to" | "active_company" | "active_role" | "subordinates" | "otps" | "as_incharge_in_purchase_locations" | "as_incharge_in_store_locations" | "as_incharge_in_offices" | "as_incharge_in_gates" | "as_contact_person_companies" | "as_contact_person_offices" | "as_contact_person_gates" | "owned_companies" | "head_for_departments" | "created_item_subcategories" | "last_updated_item_subcategories" | "head_for_departments" | "approval_chains" | "indents_created_for_user" | "created_mis" | "mis_issued_for_user" | "mis_sent_for_approval" | "mis_issued" | "mis_last_updated" | "created_prs" | "pr_sent_for_approval" | "pr_sent_to_purchase_location" | "last_updated_prs" | "created_rfqs" | "entity_approval_chains" | "as_contact_person_for_rfqs" | "as_contact_person_for_quotes" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "negotiations" | "created_pos" | "last_updated_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "created_grns" | "last_updated_grns" | "as_contact_person_for_grns" | "grns_sent_for_approval" | "grns_sent_to_store" | "mrns_sent_for_approval" | "as_contact_person_for_mrns" | "created_boms" | "last_updated_boms" | "created_vendor_groups" | "last_updated_vendor_groups" | "comparatives_sent_for_approval" | "user_notifications" | "created_extra_quesstions" | "updated_extra_quesstions" | "answered_questions" | "created_extra_core_question_for_companies" | "updated_extra_core_question_for_companies" | "cancelled_asns" | "created_contact_people" | "updated_contact_people" | "last_updated_company_item_vendor_version" | "items_last_updated_by_user" | "company_vendors_last_updated_by_user" | "created_istds" | "last_updated_istds" | "source_contact_person_for_istd" | "dest_contact_person_for_istd" | "istds_sent_for_source_approval" | "istds_sent_for_dest_approval" | "istds_sent_for_dest_store" | "istds_marked_as_processed" | "istds_terminated" | "created_payment_terms" | "created_iads" | "user_last_updated_iads" | "as_approver_for_iads" | "iads_terminated_by_user" | "finalised_iads" | "assigned_roles" | "initiated_inventory_logs" | "logs" | "vendor_onboarding_requests_created_by_user" | "vendor_onboarding_requests_last_updated" | "vendor_onboarding_requests_sent_for_approval" | "invitation_sent_for_vendor_onboarding_requests" | "created_vendor_management_bodies" | "last_updated_vendor_management_bodies" | "head_of_vendor_management_bodies" | "cancelled_vendor_onboarding_requests" | "company_vendor_created_by_user" | "company_vendors_last_updated_by_user" | "sent_for_approval_company_vendors" | "sent_questions_to_company_vendors" | "cancelled_company_vendors" | "created_vendor_onboarding_request_categories" | "last_updated_vendor_onboarding_request_categories" | "created_item_management_bodies" | "last_updated_item_management_bodies" | "as_head_of_item_management_bodies" | "created_items" | "items_sent_for_approval" | "cancelled_items" | "invoices_marked_as_paid_or_rejected" | "onboarded_company_vendors" | "created_indents" | "rollback_forms_by_user" | "asns_sent_to_vendor_by_user" | "created_terms_and_conditions" | "last_updated_terms_and_conditions" | "checkpoints_created_by_user" | "checkpoints_last_updated_by_user" | "ves_created_by_user" | "ves_last_updated_by_user" | "ves_cancelled_by_user" | "take_on_approval_for_ves" | "time_records_at_checkpoint" | "created_queue_jobs"> {
|
|
191
|
+
export interface INestedUser extends Omit<IUser, "updated_at" | "created_at" | "deleted_at" | "reporting_to" | "active_company" | "active_role" | "subordinates" | "otps" | "as_incharge_in_purchase_locations" | "as_incharge_in_store_locations" | "as_incharge_in_offices" | "as_incharge_in_gates" | "as_contact_person_companies" | "as_contact_person_offices" | "as_contact_person_gates" | "owned_companies" | "head_for_departments" | "created_item_subcategories" | "last_updated_item_subcategories" | "head_for_departments" | "approval_chains" | "indents_created_for_user" | "created_mis" | "mis_issued_for_user" | "mis_sent_for_approval" | "mis_issued" | "mis_last_updated" | "created_prs" | "pr_sent_for_approval" | "pr_sent_to_purchase_location" | "last_updated_prs" | "created_rfqs" | "entity_approval_chains" | "as_contact_person_for_rfqs" | "as_contact_person_for_quotes" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "negotiations" | "created_pos" | "last_updated_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "created_grns" | "last_updated_grns" | "as_contact_person_for_grns" | "grns_sent_for_approval" | "grns_sent_to_store" | "mrns_sent_for_approval" | "as_contact_person_for_mrns" | "created_boms" | "last_updated_boms" | "created_vendor_groups" | "last_updated_vendor_groups" | "comparatives_sent_for_approval" | "user_notifications" | "created_extra_quesstions" | "updated_extra_quesstions" | "answered_questions" | "created_extra_core_question_for_companies" | "updated_extra_core_question_for_companies" | "cancelled_asns" | "created_contact_people" | "updated_contact_people" | "last_updated_company_item_vendor_version" | "items_last_updated_by_user" | "company_vendors_last_updated_by_user" | "created_istds" | "last_updated_istds" | "source_contact_person_for_istd" | "dest_contact_person_for_istd" | "istds_sent_for_source_approval" | "istds_sent_for_dest_approval" | "istds_sent_for_dest_store" | "istds_marked_as_processed" | "istds_terminated" | "created_payment_terms" | "created_iads" | "user_last_updated_iads" | "as_approver_for_iads" | "iads_terminated_by_user" | "finalised_iads" | "assigned_roles" | "initiated_inventory_logs" | "logs" | "vendor_onboarding_requests_created_by_user" | "vendor_onboarding_requests_last_updated" | "vendor_onboarding_requests_sent_for_approval" | "invitation_sent_for_vendor_onboarding_requests" | "created_vendor_management_bodies" | "last_updated_vendor_management_bodies" | "head_of_vendor_management_bodies" | "cancelled_vendor_onboarding_requests" | "company_vendor_created_by_user" | "company_vendors_last_updated_by_user" | "sent_for_approval_company_vendors" | "sent_questions_to_company_vendors" | "cancelled_company_vendors" | "created_vendor_onboarding_request_categories" | "last_updated_vendor_onboarding_request_categories" | "created_item_management_bodies" | "last_updated_item_management_bodies" | "as_head_of_item_management_bodies" | "created_items" | "items_sent_for_approval" | "cancelled_items" | "invoices_marked_as_paid_or_rejected" | "onboarded_company_vendors" | "created_indents" | "rollback_forms_by_user" | "asns_sent_to_vendor_by_user" | "created_terms_and_conditions" | "last_updated_terms_and_conditions" | "checkpoints_created_by_user" | "checkpoints_last_updated_by_user" | "ves_created_by_user" | "ves_last_updated_by_user" | "ves_cancelled_by_user" | "take_on_approval_for_ves" | "time_records_at_checkpoint" | "created_queue_jobs" | "last_updated_payment_terms"> {
|
|
191
192
|
}
|
|
192
193
|
export declare enum UserInclude {
|
|
193
194
|
subordinates = "subordinates",
|
|
@@ -305,7 +306,8 @@ export declare enum UserInclude {
|
|
|
305
306
|
ves_cancelled_by_user = "ves_cancelled_by_user",
|
|
306
307
|
take_on_approval_for_ves = "take_on_approval_for_ves",
|
|
307
308
|
time_records_at_checkpoint = "time_records_at_checkpoint",
|
|
308
|
-
created_queue_jobs = "created_queue_jobs"
|
|
309
|
+
created_queue_jobs = "created_queue_jobs",
|
|
310
|
+
last_updated_payment_terms = "last_updated_payment_terms"
|
|
309
311
|
}
|
|
310
312
|
export interface IUserFilters {
|
|
311
313
|
name?: string | null;
|
|
@@ -121,4 +121,5 @@ var UserInclude;
|
|
|
121
121
|
UserInclude["take_on_approval_for_ves"] = "take_on_approval_for_ves";
|
|
122
122
|
UserInclude["time_records_at_checkpoint"] = "time_records_at_checkpoint";
|
|
123
123
|
UserInclude["created_queue_jobs"] = "created_queue_jobs";
|
|
124
|
+
UserInclude["last_updated_payment_terms"] = "last_updated_payment_terms";
|
|
124
125
|
})(UserInclude || (exports.UserInclude = UserInclude = {}));
|
|
@@ -82,6 +82,7 @@ describe("Get Contact Person", () => {
|
|
|
82
82
|
time_records_at_checkpoint: null,
|
|
83
83
|
ves_cancelled_by_user: null,
|
|
84
84
|
created_queue_jobs: null,
|
|
85
|
+
last_updated_payment_terms: null,
|
|
85
86
|
};
|
|
86
87
|
const contact_person = {
|
|
87
88
|
id: "",
|
|
@@ -191,6 +192,7 @@ describe("Get Contact Person", () => {
|
|
|
191
192
|
time_records_at_checkpoint: null,
|
|
192
193
|
ves_cancelled_by_user: null,
|
|
193
194
|
created_queue_jobs: null,
|
|
195
|
+
last_updated_payment_terms: null,
|
|
194
196
|
};
|
|
195
197
|
const contact_person = {
|
|
196
198
|
id: "CP-001",
|