kcommons 5.24.21 → 5.24.23
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.
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { INestedCompany } from "../company.typings";
|
|
2
|
+
import { INestedUser } from "../user.typings";
|
|
1
3
|
export declare enum CONFIGURABLE_FORM_TYPES {
|
|
2
4
|
VENDOR_ONBOARDING = "vendor-onboarding"
|
|
3
5
|
}
|
|
@@ -17,4 +19,42 @@ export declare enum EXTRA_FORM_QUESTIONS_INCLUDE {
|
|
|
17
19
|
select_opts = "select_opts"
|
|
18
20
|
}
|
|
19
21
|
export interface IExtraFormQuestions {
|
|
22
|
+
id: string;
|
|
23
|
+
company_id: string;
|
|
24
|
+
created_by_id: string;
|
|
25
|
+
updated_by_id: string;
|
|
26
|
+
form_type: string;
|
|
27
|
+
que_text: string;
|
|
28
|
+
que_type: string;
|
|
29
|
+
min_rows: number | null;
|
|
30
|
+
mime_type: string | null;
|
|
31
|
+
is_enabled: boolean;
|
|
32
|
+
is_deleted: boolean;
|
|
33
|
+
deleted_at: string | null;
|
|
34
|
+
created_at: string;
|
|
35
|
+
updated_at: string;
|
|
36
|
+
company: INestedCompany | null;
|
|
37
|
+
created_by: INestedUser | null;
|
|
38
|
+
updated_by: INestedUser | null;
|
|
39
|
+
select_opts: INestedExtraQuesSelectOpts[] | null;
|
|
40
|
+
}
|
|
41
|
+
export interface INestedExtraFormQuestions extends Omit<IExtraFormQuestions, "company" | "created_by" | "updated_by" | "selected_opts"> {
|
|
42
|
+
}
|
|
43
|
+
export interface IExtraQuesSelectOpts {
|
|
44
|
+
id: string;
|
|
45
|
+
que_id: string;
|
|
46
|
+
opt_text: string;
|
|
47
|
+
company_id: string;
|
|
48
|
+
created_by_id: string;
|
|
49
|
+
updated_by_id: string;
|
|
50
|
+
is_deleted: boolean;
|
|
51
|
+
deleted_at: string | null;
|
|
52
|
+
created_at: string;
|
|
53
|
+
updated_at: string;
|
|
54
|
+
company: INestedCompany | null;
|
|
55
|
+
created_by: INestedUser | null;
|
|
56
|
+
updated_by: INestedUser | null;
|
|
57
|
+
parent_question: INestedExtraFormQuestions | null;
|
|
58
|
+
}
|
|
59
|
+
export interface INestedExtraQuesSelectOpts extends Omit<IExtraQuesSelectOpts, "company" | "created_by" | "updated_by" | "parent_question"> {
|
|
20
60
|
}
|
|
@@ -20,6 +20,7 @@ import { INestedPR } from "./pr.typings";
|
|
|
20
20
|
import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
21
21
|
import { INestedRFQ } from "./rfq.typings";
|
|
22
22
|
import { INestedRole } from "./roles.typings";
|
|
23
|
+
import { IExtraFormQuestions, IExtraQuesSelectOpts } from "./settings/configForm.typings";
|
|
23
24
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
24
25
|
import { INestedVendorGroups } from "./vendorGroup.typings";
|
|
25
26
|
export interface IUser {
|
|
@@ -84,8 +85,12 @@ export interface IUser {
|
|
|
84
85
|
comparatives_sent_for_approval?: INestedComparative[] | null;
|
|
85
86
|
user_notifications?: INestedNegotiation[] | null;
|
|
86
87
|
approved_company_vendors?: INestedCompanyVendors[] | null;
|
|
88
|
+
created_extra_quesstions?: IExtraFormQuestions[] | null;
|
|
89
|
+
updated_extra_quesstions?: IExtraFormQuestions[] | null;
|
|
90
|
+
created_extra_questions_options?: IExtraQuesSelectOpts[] | null;
|
|
91
|
+
updated_extra_questions_options?: IExtraQuesSelectOpts[] | null;
|
|
87
92
|
}
|
|
88
|
-
export interface INestedUser extends Omit<IUser, "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" | "as_contact_person_for_grns" | "as_contact_person_for_mrns" | "owned_companies" | "head_for_departments" | "approved_items" | "approval_chains" | "created_indents" | "created_mis" | "created_prs" | "created_rfqs" | "entity_approval_chains" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "assigned_roles" | "negotiations" | "created_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "grns_sent_for_approval" | "grns_sent_to_store" | "mrns_sent_for_approval" | "created_boms" | "last_updated_boms" | "created_vendor_groups" | "last_updated_vendor_groups" | "comparatives_sent_for_approval" | "user_notifications" | "approved_company_vendors"> {
|
|
93
|
+
export interface INestedUser extends Omit<IUser, "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" | "as_contact_person_for_grns" | "as_contact_person_for_mrns" | "owned_companies" | "head_for_departments" | "approved_items" | "approval_chains" | "created_indents" | "created_mis" | "created_prs" | "created_rfqs" | "entity_approval_chains" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "assigned_roles" | "negotiations" | "created_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "grns_sent_for_approval" | "grns_sent_to_store" | "mrns_sent_for_approval" | "created_boms" | "last_updated_boms" | "created_vendor_groups" | "last_updated_vendor_groups" | "comparatives_sent_for_approval" | "user_notifications" | "approved_company_vendors" | "created_extra_quesstions" | "updated_extra_quesstions" | "created_extra_questions_options" | "updated_extra_questions_options"> {
|
|
89
94
|
}
|
|
90
95
|
export declare enum UserInclude {
|
|
91
96
|
as_incharge_in_purchase_locations = "as_incharge_in_purchase_locations",
|
|
@@ -117,7 +122,11 @@ export declare enum UserInclude {
|
|
|
117
122
|
active_role = "active_role",
|
|
118
123
|
comparatives_sent_for_approval = "comparatives_sent_for_approval",
|
|
119
124
|
user_notifications = "user_notifications",
|
|
120
|
-
approved_company_vendors = "approved_company_vendors"
|
|
125
|
+
approved_company_vendors = "approved_company_vendors",
|
|
126
|
+
created_extra_quesstions = "created_extra_quesstions",
|
|
127
|
+
updated_extra_quesstions = "updated_extra_quesstions",
|
|
128
|
+
created_extra_questions_options = "created_extra_questions_options",
|
|
129
|
+
updated_extra_questions_options = "updated_extra_questions_options"
|
|
121
130
|
}
|
|
122
131
|
export interface IUserFilters {
|
|
123
132
|
name?: string;
|
|
@@ -34,4 +34,8 @@ var UserInclude;
|
|
|
34
34
|
UserInclude["comparatives_sent_for_approval"] = "comparatives_sent_for_approval";
|
|
35
35
|
UserInclude["user_notifications"] = "user_notifications";
|
|
36
36
|
UserInclude["approved_company_vendors"] = "approved_company_vendors";
|
|
37
|
+
UserInclude["created_extra_quesstions"] = "created_extra_quesstions";
|
|
38
|
+
UserInclude["updated_extra_quesstions"] = "updated_extra_quesstions";
|
|
39
|
+
UserInclude["created_extra_questions_options"] = "created_extra_questions_options";
|
|
40
|
+
UserInclude["updated_extra_questions_options"] = "updated_extra_questions_options";
|
|
37
41
|
})(UserInclude || (exports.UserInclude = UserInclude = {}));
|