kcommons 5.27.21 → 5.27.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.
@@ -24,8 +24,10 @@ export interface IIndent {
24
24
  attachment_link: string | null;
25
25
  application_reason: string | null;
26
26
  remarks: string | null;
27
- deleted_at: string | null;
28
27
  sent_to_store_location_at: string | null;
28
+ sent_for_approval_at: string | null;
29
+ closed_at: string | null;
30
+ deleted_at: string | null;
29
31
  approved_at: string | null;
30
32
  is_enabled: boolean;
31
33
  is_deleted: boolean;
@@ -24,24 +24,30 @@ export declare enum PR_INCLUDE {
24
24
  target_purchase_location = "target_purchase_location",
25
25
  approval_chain = "approval_chain",
26
26
  items = "items",
27
- referenced_rfq_items = "referenced_rfq_items"
27
+ referenced_rfq_items = "referenced_rfq_items",
28
+ sent_for_approval_by = "sent_for_approval_by",
29
+ updated_by_user = "updated_by_user"
28
30
  }
29
31
  export interface IPR {
30
32
  id: string;
31
33
  pr_no: string;
32
34
  status: string;
33
35
  created_by_user_id: string;
36
+ updated_by_user_id: string | null;
34
37
  company_id: string;
35
38
  target_purchase_location_id: string;
36
39
  priority_date: string;
37
40
  priority: string;
38
41
  is_deleted: boolean;
39
42
  budget_code_id?: string | null;
43
+ sent_for_approval_by_id: string | null;
40
44
  notes?: string | null;
41
45
  attachment_link?: string | null;
42
46
  indent_source_dept_id?: string | null;
43
- sent_to_purchase_location_at?: string | null;
44
47
  parent_indent_id?: string | null;
48
+ sent_to_purchase_location_at?: string | null;
49
+ processed_at?: string | null;
50
+ closed_at?: string | null;
45
51
  approved_at?: string | null;
46
52
  deleted_at?: string | null;
47
53
  created_at?: string | null;
@@ -54,8 +60,10 @@ export interface IPR {
54
60
  approval_chain?: null | INestedApprovalChainEntry[];
55
61
  items?: null | INestedPrItem[];
56
62
  referenced_rfq_items?: null | INestedRFQItem[];
63
+ sent_for_approval_by: INestedUser | null;
64
+ updated_by_user: INestedUser | null;
57
65
  }
58
- export interface INestedPR extends Omit<IPR, "created_by_user" | "company" | "parent_indent" | "parent_department" | "target_purchase_location" | "approval_chain" | "items" | "referenced_rfq_items"> {
66
+ export interface INestedPR extends Omit<IPR, "created_by_user" | "company" | "parent_indent" | "parent_department" | "target_purchase_location" | "approval_chain" | "items" | "referenced_rfq_items" | "sent_for_approval_by" | "updated_by_user"> {
59
67
  }
60
68
  export declare enum PR_ITEM_INCLUDE {
61
69
  company = "company",
@@ -21,6 +21,8 @@ var PR_INCLUDE;
21
21
  PR_INCLUDE["approval_chain"] = "approval_chain";
22
22
  PR_INCLUDE["items"] = "items";
23
23
  PR_INCLUDE["referenced_rfq_items"] = "referenced_rfq_items";
24
+ PR_INCLUDE["sent_for_approval_by"] = "sent_for_approval_by";
25
+ PR_INCLUDE["updated_by_user"] = "updated_by_user";
24
26
  })(PR_INCLUDE || (exports.PR_INCLUDE = PR_INCLUDE = {}));
25
27
  // PR Items
26
28
  var PR_ITEM_INCLUDE;
@@ -88,6 +88,7 @@ export interface IRFQ {
88
88
  delivery_schedule?: string | null;
89
89
  terms_and_conditions?: string | null;
90
90
  deleted_at?: string | null;
91
+ approved_at?: string | null;
91
92
  created_at?: string | null;
92
93
  updated_at?: string | null;
93
94
  company?: INestedCompany | null;
@@ -65,6 +65,8 @@ export interface IUser {
65
65
  created_indents?: null | INestedIndent[];
66
66
  created_mis?: null | INestedMI[];
67
67
  created_prs?: null | INestedPR[];
68
+ pr_sent_for_approval?: null | INestedPR[];
69
+ last_updated_prs?: null | INestedPR[];
68
70
  created_rfqs?: null | INestedRFQ[];
69
71
  entity_approval_chains?: null | INestedEntityApprovalChainEntry[];
70
72
  rfqs_sent_for_approval?: null | INestedRFQ[];
@@ -93,7 +95,7 @@ export interface IUser {
93
95
  created_extra_core_question_for_companies?: INestedExtraCoreRelatedQuestionsForCompanyEntiy[] | null;
94
96
  updated_extra_core_question_for_companies?: INestedExtraCoreRelatedQuestionsForCompanyEntiy[] | null;
95
97
  }
96
- 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" | "answered_questions" | "created_extra_core_question_for_companies" | "updated_extra_core_question_for_companies"> {
98
+ 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" | "pr_sent_for_approval" | "last_updated_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" | "answered_questions" | "created_extra_core_question_for_companies" | "updated_extra_core_question_for_companies"> {
97
99
  }
98
100
  export declare enum UserInclude {
99
101
  as_incharge_in_purchase_locations = "as_incharge_in_purchase_locations",
@@ -111,6 +113,8 @@ export declare enum UserInclude {
111
113
  assigned_roles = "assigned_roles",
112
114
  negotiations = "negotiations",
113
115
  created_pos = "created_pos",
116
+ pr_sent_for_approval = "pr_sent_for_approval",
117
+ last_updated_prs = "last_updated_prs",
114
118
  as_contact_person_for_pos = "as_contact_person_for_pos",
115
119
  pos_sent_for_approval = "pos_sent_for_approval",
116
120
  pos_sent_to_vendors = "pos_sent_to_vendors",
@@ -19,6 +19,8 @@ var UserInclude;
19
19
  UserInclude["assigned_roles"] = "assigned_roles";
20
20
  UserInclude["negotiations"] = "negotiations";
21
21
  UserInclude["created_pos"] = "created_pos";
22
+ UserInclude["pr_sent_for_approval"] = "pr_sent_for_approval";
23
+ UserInclude["last_updated_prs"] = "last_updated_prs";
22
24
  UserInclude["as_contact_person_for_pos"] = "as_contact_person_for_pos";
23
25
  UserInclude["pos_sent_for_approval"] = "pos_sent_for_approval";
24
26
  UserInclude["pos_sent_to_vendors"] = "pos_sent_to_vendors";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.27.21",
3
+ "version": "5.27.23",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",