kcommons 5.25.1 → 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 { INestedExtraFormAnswers } from "./settings/form/extraFormAns.typings";
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: INestedExtraFormAnswers[] | null;
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 { INestedExtraFormAnswers } from "./extraFormAns.typings";
3
+ import { INestedExtraFormAnswerEntitys } from "./extraFormAns.typings";
4
4
  export declare enum CONFIGURABLE_FORM_TYPES {
5
- VENDOR_ONBOARDING = "vendor-onboarding"
5
+ VENDOR_ONBOARDING = "vendor-onboarding",
6
6
  }
7
7
  export declare enum EXTRA_FORM_QUESTION_TYPES {
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"
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
- company = "company",
18
- created_by = "created_by",
19
- updated_by = "updated_by",
20
- select_opts = "select_opts",
21
- answers = "answers"
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
- form_type?: CONFIGURABLE_FORM_TYPES;
25
- is_enabled?: boolean;
26
- include?: EXTRA_FORM_QUESTIONS_INCLUDE[];
24
+ form_type?: CONFIGURABLE_FORM_TYPES;
25
+ is_enabled?: boolean;
26
+ include?: EXTRA_FORM_QUESTIONS_INCLUDE[];
27
27
  }
28
28
  export interface IExtraFormQuestions {
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: INestedExtraFormAnswers[] | null;
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
- id: string;
53
- que_id: string;
54
- opt_text: string;
55
- company_id: string;
56
- created_by_id: string;
57
- updated_by_id: string;
58
- is_deleted: boolean;
59
- deleted_at: string | null;
60
- created_at: string;
61
- updated_at: string;
62
- company: INestedCompany | null;
63
- created_by: INestedUser | null;
64
- updated_by: INestedUser | null;
65
- parent_question: INestedExtraFormQuestions | null;
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
+ > {}
@@ -29,5 +29,5 @@ export interface IEXtraFormAnswers {
29
29
  user: INestedUser | null;
30
30
  vendor: INestedVendor | null;
31
31
  }
32
- export interface INestedExtraFormAnswers extends Omit<IEXtraFormAnswers, "parent_que" | "company" | "user" | "vendor"> {
32
+ export interface INestedExtraFormAnswerEntitys extends Omit<IEXtraFormAnswers, "parent_que" | "company" | "user" | "vendor"> {
33
33
  }
@@ -1,6 +1,6 @@
1
1
  import { INestedCompany } from "../../company.typings";
2
2
  import { INestedUser } from "../../user.typings";
3
- import { INestedExtraFormAnswers } from "./extraFormAns.typings";
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: INestedExtraFormAnswers[] | null;
47
+ answers: INestedExtraFormAnswerEntitys[] | null;
48
48
  }
49
49
  export interface INestedExtraFormQuestions extends Omit<IExtraFormQuestions, "company" | "created_by" | "updated_by" | "selected_opts" | "answers"> {
50
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.25.1",
3
+ "version": "5.25.2",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",