kcommons 14.4.1 → 14.5.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 +1 -0
- package/build/index.js +1 -0
- package/build/typings/common/lifecycleLogger.typings.d.ts +5 -2
- package/build/typings/common/lifecycleLogger.typings.js +3 -0
- package/build/typings/company/settings/termsAndConditions.typings.d.ts +30 -0
- package/build/typings/company/settings/termsAndConditions.typings.js +8 -0
- package/build/typings/notifications.typings.d.ts +1 -1
- package/build/typings/user.typings.d.ts +6 -1
- package/build/typings/user.typings.js +2 -0
- package/build/utils/getContactPerson.util.spec.js +4 -0
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ 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/settings/termsAndConditions.typings";
|
|
67
68
|
export * from "./typings/company/_junctions/vesCheckpointTracking.typings";
|
|
68
69
|
export * from "./typings/common/address.typings";
|
|
69
70
|
export * from "./typings/common/paginationFilters.typings";
|
package/build/index.js
CHANGED
|
@@ -83,6 +83,7 @@ __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/settings/termsAndConditions.typings"), exports);
|
|
86
87
|
__exportStar(require("./typings/company/_junctions/vesCheckpointTracking.typings"), exports);
|
|
87
88
|
// Commons
|
|
88
89
|
__exportStar(require("./typings/common/address.typings"), exports);
|
|
@@ -12,7 +12,8 @@ export declare enum LIFECYCLE_LOGS_ENTITY_TYPE {
|
|
|
12
12
|
PO = "PO",
|
|
13
13
|
ASN = "ASN",
|
|
14
14
|
GRN = "GRN",
|
|
15
|
-
MRN = "MRN"
|
|
15
|
+
MRN = "MRN",
|
|
16
|
+
VES = "VES"
|
|
16
17
|
}
|
|
17
18
|
export declare enum LIFECYCLE_LOG_ACTIONS {
|
|
18
19
|
CREATED = "CREATED",
|
|
@@ -35,7 +36,9 @@ export declare enum LIFECYCLE_LOG_ACTIONS {
|
|
|
35
36
|
ACCEPTED_BY_VENDOR = "ACCEPTED_BY_VENDOR",
|
|
36
37
|
REJECTED_BY_VENDOR = "REJECTED_BY_VENDOR",
|
|
37
38
|
READY_FOR_DISPATCH = "READY_FOR_DISPATCH",
|
|
38
|
-
SENT_TO_COMPANY_FOR_APPROVAL = "SENT_TO_COMPANY_FOR_APPROVAL"
|
|
39
|
+
SENT_TO_COMPANY_FOR_APPROVAL = "SENT_TO_COMPANY_FOR_APPROVAL",
|
|
40
|
+
ARRIVED = "ARRIVED",
|
|
41
|
+
REQUESTED_AT_SHIPPING_LOCATION = "REQUESTED_AT_SHIPPING_LOCATION"
|
|
39
42
|
}
|
|
40
43
|
export declare enum LIFECYCLE_LOGS_INCLUDE {
|
|
41
44
|
user = "user",
|
|
@@ -13,6 +13,7 @@ var LIFECYCLE_LOGS_ENTITY_TYPE;
|
|
|
13
13
|
LIFECYCLE_LOGS_ENTITY_TYPE["ASN"] = "ASN";
|
|
14
14
|
LIFECYCLE_LOGS_ENTITY_TYPE["GRN"] = "GRN";
|
|
15
15
|
LIFECYCLE_LOGS_ENTITY_TYPE["MRN"] = "MRN";
|
|
16
|
+
LIFECYCLE_LOGS_ENTITY_TYPE["VES"] = "VES";
|
|
16
17
|
})(LIFECYCLE_LOGS_ENTITY_TYPE || (exports.LIFECYCLE_LOGS_ENTITY_TYPE = LIFECYCLE_LOGS_ENTITY_TYPE = {}));
|
|
17
18
|
var LIFECYCLE_LOG_ACTIONS;
|
|
18
19
|
(function (LIFECYCLE_LOG_ACTIONS) {
|
|
@@ -37,6 +38,8 @@ var LIFECYCLE_LOG_ACTIONS;
|
|
|
37
38
|
LIFECYCLE_LOG_ACTIONS["REJECTED_BY_VENDOR"] = "REJECTED_BY_VENDOR";
|
|
38
39
|
LIFECYCLE_LOG_ACTIONS["READY_FOR_DISPATCH"] = "READY_FOR_DISPATCH";
|
|
39
40
|
LIFECYCLE_LOG_ACTIONS["SENT_TO_COMPANY_FOR_APPROVAL"] = "SENT_TO_COMPANY_FOR_APPROVAL";
|
|
41
|
+
LIFECYCLE_LOG_ACTIONS["ARRIVED"] = "ARRIVED";
|
|
42
|
+
LIFECYCLE_LOG_ACTIONS["REQUESTED_AT_SHIPPING_LOCATION"] = "REQUESTED_AT_SHIPPING_LOCATION";
|
|
40
43
|
})(LIFECYCLE_LOG_ACTIONS || (exports.LIFECYCLE_LOG_ACTIONS = LIFECYCLE_LOG_ACTIONS = {}));
|
|
41
44
|
var LIFECYCLE_LOGS_INCLUDE;
|
|
42
45
|
(function (LIFECYCLE_LOGS_INCLUDE) {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { INestedUser } from "../../user.typings";
|
|
2
|
+
import { IPaginationFilters } from "../../common/paginationFilters.typings";
|
|
3
|
+
export interface ITermsAndConditions {
|
|
4
|
+
id: string;
|
|
5
|
+
tnc_title: string;
|
|
6
|
+
tnc_content: string;
|
|
7
|
+
created_by_user_id: string;
|
|
8
|
+
last_updated_by_user_id: string | null;
|
|
9
|
+
is_enabled: boolean;
|
|
10
|
+
is_deleted: boolean;
|
|
11
|
+
deleted_at: Date | null;
|
|
12
|
+
created_at: Date;
|
|
13
|
+
updated_at: Date;
|
|
14
|
+
created_by_user: INestedUser | null;
|
|
15
|
+
last_updated_by_user: INestedUser | null;
|
|
16
|
+
}
|
|
17
|
+
export interface INestedTermsAndConditions extends Omit<ITermsAndConditions, "created_by_user" | "last_updated_by_user"> {
|
|
18
|
+
}
|
|
19
|
+
export declare enum TermsAndConditionsInclude {
|
|
20
|
+
created_by_user = "created_by_user",
|
|
21
|
+
last_updated_by_user = "last_updated_by_user"
|
|
22
|
+
}
|
|
23
|
+
export interface ITermsAndConditionsFilters {
|
|
24
|
+
name?: string | null;
|
|
25
|
+
tnc_title?: string | null;
|
|
26
|
+
tnc_content?: string | null;
|
|
27
|
+
include?: TermsAndConditionsInclude[] | null;
|
|
28
|
+
}
|
|
29
|
+
export interface ITermsAndconditionsFiltersWithPagination extends IPaginationFilters, ITermsAndConditionsFilters {
|
|
30
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TermsAndConditionsInclude = void 0;
|
|
4
|
+
var TermsAndConditionsInclude;
|
|
5
|
+
(function (TermsAndConditionsInclude) {
|
|
6
|
+
TermsAndConditionsInclude["created_by_user"] = "created_by_user";
|
|
7
|
+
TermsAndConditionsInclude["last_updated_by_user"] = "last_updated_by_user";
|
|
8
|
+
})(TermsAndConditionsInclude || (exports.TermsAndConditionsInclude = TermsAndConditionsInclude = {}));
|
|
@@ -73,7 +73,7 @@ export type INotificationType = IIndividualNotification | IGroupNotification;
|
|
|
73
73
|
export interface INotificationTemplate {
|
|
74
74
|
title: string;
|
|
75
75
|
description: string;
|
|
76
|
-
action_link: string;
|
|
76
|
+
action_link: string | null;
|
|
77
77
|
}
|
|
78
78
|
export interface INotifcationReqData {
|
|
79
79
|
notification: IIndividualNotification;
|
|
@@ -40,6 +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/settings/termsAndConditions.typings";
|
|
43
44
|
import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
|
|
44
45
|
import { INestedVES } from "./company/masters/ves.typings";
|
|
45
46
|
import { INestedVESCheckpointTracking } from "./company/_junctions/vesCheckpointTracking.typings";
|
|
@@ -174,6 +175,8 @@ export interface IUser {
|
|
|
174
175
|
created_indents: INestedIndent | null;
|
|
175
176
|
rollback_forms_by_user: INestedFormRolback | null;
|
|
176
177
|
asns_sent_to_vendor_by_user: INestedASN[] | null;
|
|
178
|
+
created_terms_and_conditions: INestedTermsAndConditions[] | null;
|
|
179
|
+
last_updated_terms_and_conditions: INestedTermsAndConditions[] | null;
|
|
177
180
|
checkpoints_created_by_user: INestedCheckpoint[] | null;
|
|
178
181
|
checkpoints_last_updated_by_user: INestedCheckpoint[] | null;
|
|
179
182
|
ves_created_by_user: INestedVES[] | null;
|
|
@@ -182,7 +185,7 @@ export interface IUser {
|
|
|
182
185
|
ves_cancelled_by_user: INestedVES[] | null;
|
|
183
186
|
time_records_at_checkpoint: INestedVESCheckpointTracking[] | null;
|
|
184
187
|
}
|
|
185
|
-
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" | "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"> {
|
|
188
|
+
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"> {
|
|
186
189
|
}
|
|
187
190
|
export declare enum UserInclude {
|
|
188
191
|
subordinates = "subordinates",
|
|
@@ -291,6 +294,8 @@ export declare enum UserInclude {
|
|
|
291
294
|
onboarded_company_vendors = "onboarded_company_vendors",
|
|
292
295
|
rollback_forms_by_user = "rollback_forms_by_user",
|
|
293
296
|
asns_sent_to_vendor_by_user = "asns_sent_to_vendor_by_user",
|
|
297
|
+
created_terms_and_conditions = "created_terms_and_conditions",
|
|
298
|
+
last_updated_terms_and_conditions = "last_updated_terms_and_conditions",
|
|
294
299
|
checkpoints_created_by_user = "checkpoints_created_by_user",
|
|
295
300
|
checkpoints_last_updated_by_user = "checkpoints_last_updated_by_user",
|
|
296
301
|
ves_created_by_user = "ves_created_by_user",
|
|
@@ -111,6 +111,8 @@ var UserInclude;
|
|
|
111
111
|
UserInclude["onboarded_company_vendors"] = "onboarded_company_vendors";
|
|
112
112
|
UserInclude["rollback_forms_by_user"] = "rollback_forms_by_user";
|
|
113
113
|
UserInclude["asns_sent_to_vendor_by_user"] = "asns_sent_to_vendor_by_user";
|
|
114
|
+
UserInclude["created_terms_and_conditions"] = "created_terms_and_conditions";
|
|
115
|
+
UserInclude["last_updated_terms_and_conditions"] = "last_updated_terms_and_conditions";
|
|
114
116
|
UserInclude["checkpoints_created_by_user"] = "checkpoints_created_by_user";
|
|
115
117
|
UserInclude["checkpoints_last_updated_by_user"] = "checkpoints_last_updated_by_user";
|
|
116
118
|
UserInclude["ves_created_by_user"] = "ves_created_by_user";
|
|
@@ -72,6 +72,8 @@ describe("Get Contact Person", () => {
|
|
|
72
72
|
created_indents: null,
|
|
73
73
|
rollback_forms_by_user: null,
|
|
74
74
|
asns_sent_to_vendor_by_user: null,
|
|
75
|
+
created_terms_and_conditions: null,
|
|
76
|
+
last_updated_terms_and_conditions: null,
|
|
75
77
|
checkpoints_created_by_user: null,
|
|
76
78
|
checkpoints_last_updated_by_user: null,
|
|
77
79
|
ves_created_by_user: null,
|
|
@@ -178,6 +180,8 @@ describe("Get Contact Person", () => {
|
|
|
178
180
|
created_indents: null,
|
|
179
181
|
rollback_forms_by_user: null,
|
|
180
182
|
asns_sent_to_vendor_by_user: null,
|
|
183
|
+
created_terms_and_conditions: null,
|
|
184
|
+
last_updated_terms_and_conditions: null,
|
|
181
185
|
checkpoints_created_by_user: null,
|
|
182
186
|
checkpoints_last_updated_by_user: null,
|
|
183
187
|
ves_created_by_user: null,
|