kcommons 14.19.1 → 14.21.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.
@@ -239,11 +239,24 @@ export interface IPOBom {
239
239
  }
240
240
  export interface INestedPOBom extends Omit<IPOBom, "parent_po" | "bom" | "referenced_po_items"> {
241
241
  }
242
+ export interface IPORejectedByUserMetafieldData {
243
+ user_id: string | null;
244
+ role_id: string | null;
245
+ firstname: string | null;
246
+ middlename: string | null;
247
+ lastname: string | null;
248
+ employee_code: string | null;
249
+ role_code: string | null;
250
+ role_name: string | null;
251
+ rejected_at: Date | null;
252
+ }
242
253
  export interface IPOMetafields {
243
254
  items_data: INestedItem[] | null;
255
+ rejected_by_users_data: IPORejectedByUserMetafieldData[] | null;
244
256
  }
245
257
  export declare enum PO_METAFIELDS_INCLUDE {
246
- items_data = "items_data"
258
+ items_data = "items_data",
259
+ rejected_by_users_data = "rejected_by_users_data"
247
260
  }
248
261
  export interface IPOApprovalByTokenPayload extends IOpenApprovalsBase {
249
262
  po_id: string;
@@ -97,5 +97,6 @@ var PO_BOM_INCLUDE;
97
97
  var PO_METAFIELDS_INCLUDE;
98
98
  (function (PO_METAFIELDS_INCLUDE) {
99
99
  PO_METAFIELDS_INCLUDE["items_data"] = "items_data";
100
+ PO_METAFIELDS_INCLUDE["rejected_by_users_data"] = "rejected_by_users_data";
100
101
  })(PO_METAFIELDS_INCLUDE || (exports.PO_METAFIELDS_INCLUDE = PO_METAFIELDS_INCLUDE = {}));
101
102
  /** FIN: (DEPRECATED) PO Filters */
@@ -118,6 +118,7 @@ export declare enum COMPANY_INCLUDE {
118
118
  }
119
119
  export interface ICompany extends IAddress {
120
120
  id: string;
121
+ company_code: string;
121
122
  trade_name: string;
122
123
  max_users: number;
123
124
  company_logo: string | null;
@@ -212,7 +213,7 @@ export interface ICompany extends IAddress {
212
213
  erp_plugin_config: INestedERPPluginConfigCompany | null;
213
214
  company_temporary_worker_form: INestedTemporaryWorkerForm[] | null;
214
215
  }
215
- 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" | "extra_question_ans" | "extra_core_related_questions" | "company_specific_vendor_items" | "po_asn_items_junction" | "company_contact_people" | "company_item_vendor_versions" | "istds" | "istd_items" | "inventory_logs" | "invoices" | "logs" | "vendor_onboarding_requests" | "vendor_management_bodies" | "item_management_bodies" | "rollback_forms_sent_by_company" | "company_checkpoints" | "company_ves" | "queue_jobs" | "company_terms_and_conditions" | "company_config" | "erp_plugin_config" | "company_temporary_worker_form"> {
216
+ 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" | "extra_question_ans" | "extra_core_related_questions" | "company_specific_vendor_items" | "po_asn_items_junction" | "company_contact_people" | "company_item_vendor_versions" | "istds" | "istd_items" | "inventory_logs" | "invoices" | "logs" | "vendor_onboarding_requests" | "vendor_management_bodies" | "item_management_bodies" | "rollback_forms_sent_by_company" | "company_checkpoints" | "company_ves" | "queue_jobs" | "company_terms_and_conditions" | "company_config" | "erp_plugin_config" | "company_temporary_worker_form" | "extra_questions" | "is_deleted" | "payment_terms" | "po_grn_items_junction" | "vendor_onboarding_request_categories" | "maps_location"> {
216
217
  }
217
218
  export interface ICompanyVendorAdditionalInfoMappingConfig {
218
219
  additional_info_form_que_id: string;
@@ -101,4 +101,4 @@ export interface AadhaarParsedData {
101
101
  }
102
102
  export declare const parseAadhaarXML: (xmlString: string) => AadhaarParsedData | null;
103
103
  export declare const calculateAge: (dob: string) => number;
104
- export declare const UNDER_AGE_LIMIT = 14;
104
+ export declare const UNDER_AGE_LIMIT = 18;
@@ -78,4 +78,4 @@ const calculateAge = (dob) => {
78
78
  return age;
79
79
  };
80
80
  exports.calculateAge = calculateAge;
81
- exports.UNDER_AGE_LIMIT = 14;
81
+ exports.UNDER_AGE_LIMIT = 18;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "14.19.1",
3
+ "version": "14.21.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",