kcommons 5.25.0 → 5.25.2
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.
|
@@ -26,7 +26,7 @@ import { INestedVendor } from "./vendor.typings";
|
|
|
26
26
|
import { INestedVendorGroups } from "./vendorGroup.typings";
|
|
27
27
|
import { INestedCompanyProxy } from "./companyProxy.typings";
|
|
28
28
|
import { INestedExtraFormQuestions, INestedExtraQuesSelectOpts } from "./settings/form/extraFormQues.typings";
|
|
29
|
-
import {
|
|
29
|
+
import { INestedExtraFormAnswerEntitys } from "./settings/form/extraFormAns.typings";
|
|
30
30
|
export declare enum COMPANY_INCLUDE {
|
|
31
31
|
associated_purchase_locations = "associated_purchase_locations",
|
|
32
32
|
associated_vendors = "associated_vendors",
|
|
@@ -126,7 +126,7 @@ export interface ICompany extends IAddress {
|
|
|
126
126
|
company_proxy: INestedCompanyProxy | null;
|
|
127
127
|
extra_questions: INestedExtraFormQuestions[] | null;
|
|
128
128
|
extra_questions_options: INestedExtraQuesSelectOpts[] | null;
|
|
129
|
-
extra_question_ans:
|
|
129
|
+
extra_question_ans: INestedExtraFormAnswerEntitys[] | null;
|
|
130
130
|
}
|
|
131
131
|
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_questions_options" | "extra_question_ans"> {
|
|
132
132
|
}
|
|
@@ -1,68 +1,74 @@
|
|
|
1
1
|
import { INestedCompany } from "../../company.typings";
|
|
2
2
|
import { INestedUser } from "../../user.typings";
|
|
3
|
-
import {
|
|
3
|
+
import { INestedExtraFormAnswerEntitys } from "./extraFormAns.typings";
|
|
4
4
|
export declare enum CONFIGURABLE_FORM_TYPES {
|
|
5
|
-
|
|
5
|
+
VENDOR_ONBOARDING = "vendor-onboarding",
|
|
6
6
|
}
|
|
7
7
|
export declare enum EXTRA_FORM_QUESTION_TYPES {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
TEXT = "TEXT",
|
|
9
|
+
SINGLE_SELECT = "SINGLE_SELECT",
|
|
10
|
+
MULTI_SELECT = "MULTI_SELECT",
|
|
11
|
+
YES_NO = "YES_NO",
|
|
12
|
+
UPLOAD = "UPLOAD",
|
|
13
|
+
KEYWORDS = "KEYWORDS",
|
|
14
|
+
DATEPICKER = "DATEPICKER",
|
|
15
15
|
}
|
|
16
16
|
export declare enum EXTRA_FORM_QUESTIONS_INCLUDE {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
company = "company",
|
|
18
|
+
created_by = "created_by",
|
|
19
|
+
updated_by = "updated_by",
|
|
20
|
+
select_opts = "select_opts",
|
|
21
|
+
answers = "answers",
|
|
22
22
|
}
|
|
23
23
|
export interface IExtraFormQuestionsFilters {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
form_type?: CONFIGURABLE_FORM_TYPES;
|
|
25
|
+
is_enabled?: boolean;
|
|
26
|
+
include?: EXTRA_FORM_QUESTIONS_INCLUDE[];
|
|
27
27
|
}
|
|
28
28
|
export interface IExtraFormQuestions {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
export interface INestedExtraFormQuestions extends Omit<IExtraFormQuestions, "company" | "created_by" | "updated_by" | "selected_opts" | "answers"> {
|
|
29
|
+
id: string;
|
|
30
|
+
company_id: string;
|
|
31
|
+
created_by_id: string;
|
|
32
|
+
updated_by_id: string;
|
|
33
|
+
form_type: string;
|
|
34
|
+
que_text: string;
|
|
35
|
+
que_type: string;
|
|
36
|
+
min_rows: number | null;
|
|
37
|
+
mime_type: string | null;
|
|
38
|
+
is_enabled: boolean;
|
|
39
|
+
is_deleted: boolean;
|
|
40
|
+
deleted_at: string | null;
|
|
41
|
+
created_at: string;
|
|
42
|
+
updated_at: string;
|
|
43
|
+
company: INestedCompany | null;
|
|
44
|
+
created_by: INestedUser | null;
|
|
45
|
+
updated_by: INestedUser | null;
|
|
46
|
+
select_opts: INestedExtraQuesSelectOpts[] | null;
|
|
47
|
+
answers: INestedExtraFormAnswerEntitys[] | null;
|
|
50
48
|
}
|
|
49
|
+
export interface INestedExtraFormQuestions
|
|
50
|
+
extends Omit<
|
|
51
|
+
IExtraFormQuestions,
|
|
52
|
+
"company" | "created_by" | "updated_by" | "selected_opts" | "answers"
|
|
53
|
+
> {}
|
|
51
54
|
export interface IExtraQuesSelectOpts {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
export interface INestedExtraQuesSelectOpts extends Omit<IExtraQuesSelectOpts, "company" | "created_by" | "updated_by" | "parent_question"> {
|
|
55
|
+
id: string;
|
|
56
|
+
que_id: string;
|
|
57
|
+
opt_text: string;
|
|
58
|
+
company_id: string;
|
|
59
|
+
created_by_id: string;
|
|
60
|
+
updated_by_id: string;
|
|
61
|
+
is_deleted: boolean;
|
|
62
|
+
deleted_at: string | null;
|
|
63
|
+
created_at: string;
|
|
64
|
+
updated_at: string;
|
|
65
|
+
company: INestedCompany | null;
|
|
66
|
+
created_by: INestedUser | null;
|
|
67
|
+
updated_by: INestedUser | null;
|
|
68
|
+
parent_question: INestedExtraFormQuestions | null;
|
|
68
69
|
}
|
|
70
|
+
export interface INestedExtraQuesSelectOpts
|
|
71
|
+
extends Omit<
|
|
72
|
+
IExtraQuesSelectOpts,
|
|
73
|
+
"company" | "created_by" | "updated_by" | "parent_question"
|
|
74
|
+
> {}
|
|
@@ -9,10 +9,25 @@ export declare enum EXTRA_FORM_ANSWERS_INLCUDE {
|
|
|
9
9
|
vendor = "vendor"
|
|
10
10
|
}
|
|
11
11
|
export interface IEXtraFormAnswers {
|
|
12
|
+
id: string;
|
|
13
|
+
parent_que_id: string;
|
|
14
|
+
company_id: string;
|
|
15
|
+
user_id: string | null;
|
|
16
|
+
vendor_id: string | null;
|
|
17
|
+
text_ans: string | null;
|
|
18
|
+
yes_no_ans: boolean | null;
|
|
19
|
+
upload_link: string | null;
|
|
20
|
+
date_ans: string | null;
|
|
21
|
+
selected_opts_ans: string[];
|
|
22
|
+
keywords_ans: string[];
|
|
23
|
+
is_deleted: boolean;
|
|
24
|
+
deleted_at: string | null;
|
|
25
|
+
created_at: string;
|
|
26
|
+
updated_at: string;
|
|
12
27
|
parent_que: INestedExtraFormQuestions | null;
|
|
13
28
|
company: INestedCompany | null;
|
|
14
29
|
user: INestedUser | null;
|
|
15
30
|
vendor: INestedVendor | null;
|
|
16
31
|
}
|
|
17
|
-
export interface
|
|
32
|
+
export interface INestedExtraFormAnswerEntitys extends Omit<IEXtraFormAnswers, "parent_que" | "company" | "user" | "vendor"> {
|
|
18
33
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { INestedCompany } from "../../company.typings";
|
|
2
2
|
import { INestedUser } from "../../user.typings";
|
|
3
|
-
import {
|
|
3
|
+
import { INestedExtraFormAnswerEntitys } from "./extraFormAns.typings";
|
|
4
4
|
export declare enum CONFIGURABLE_FORM_TYPES {
|
|
5
5
|
VENDOR_ONBOARDING = "vendor-onboarding"
|
|
6
6
|
}
|
|
@@ -44,7 +44,7 @@ export interface IExtraFormQuestions {
|
|
|
44
44
|
created_by: INestedUser | null;
|
|
45
45
|
updated_by: INestedUser | null;
|
|
46
46
|
select_opts: INestedExtraQuesSelectOpts[] | null;
|
|
47
|
-
answers:
|
|
47
|
+
answers: INestedExtraFormAnswerEntitys[] | null;
|
|
48
48
|
}
|
|
49
49
|
export interface INestedExtraFormQuestions extends Omit<IExtraFormQuestions, "company" | "created_by" | "updated_by" | "selected_opts" | "answers"> {
|
|
50
50
|
}
|