kcommons 6.4.24 → 6.4.26

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.
@@ -227,8 +227,12 @@ exports.companyNavConfig = {
227
227
  },
228
228
  items: {
229
229
  item: {
230
+ // add: {
231
+ // route: `/items?add=open&route_id=${COMPANY_ROUTE_IDS.ITM_ADD}`,
232
+ // id: COMPANY_ROUTE_IDS.ITM_ADD,
233
+ // },
230
234
  add: {
231
- route: `/items?add=open&route_id=${COMPANY_ROUTE_IDS.ITM_ADD}`,
235
+ route: `/items/form?route_id=${COMPANY_ROUTE_IDS.ITM_ADD}`,
232
236
  id: COMPANY_ROUTE_IDS.ITM_ADD,
233
237
  },
234
238
  list: {
@@ -1,12 +1,18 @@
1
1
  import { INestedCompany } from "./company.typings";
2
2
  import { INestedCompanyVendors } from "./companyVendors.typings";
3
3
  import { INestedItem } from "./item.typings";
4
+ import { INestedUser } from "./user.typings";
4
5
  import { INestedVendor } from "./vendor.typings";
6
+ export declare enum COMPANY_ITEM_VENDOR_VERSION_LAST_UPDATED_BY {
7
+ COMPANY = "COMPANY",
8
+ VENDOR = "VENDOR"
9
+ }
5
10
  export declare enum COMPANY_VENDOR_ITEM_VERSION_INCLUDE {
6
11
  company = "company",
7
12
  item = "item",
8
13
  company_vendor = "company_vendor",
9
- vendor = "vendor"
14
+ vendor = "vendor",
15
+ last_updated_by_user = "last_updated_by_user"
10
16
  }
11
17
  export interface ICompanyItemVendorVersionFilters {
12
18
  item_id?: string | null;
@@ -31,6 +37,7 @@ export interface ICompanyItemVendorVersion {
31
37
  item: INestedItem | null;
32
38
  company_vendor: INestedCompanyVendors | null;
33
39
  vendor: INestedVendor | null;
40
+ last_updated_by_user: INestedUser | null;
34
41
  }
35
- export interface INestedCompanyItemVendorVersion extends Omit<ICompanyItemVendorVersion, "company" | "item" | "company_vendor" | "vendor"> {
42
+ export interface INestedCompanyItemVendorVersion extends Omit<ICompanyItemVendorVersion, "company" | "item" | "company_vendor" | "vendor" | "last_updated_by_user"> {
36
43
  }
@@ -1,10 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.COMPANY_VENDOR_ITEM_VERSION_INCLUDE = void 0;
3
+ exports.COMPANY_VENDOR_ITEM_VERSION_INCLUDE = exports.COMPANY_ITEM_VENDOR_VERSION_LAST_UPDATED_BY = void 0;
4
+ var COMPANY_ITEM_VENDOR_VERSION_LAST_UPDATED_BY;
5
+ (function (COMPANY_ITEM_VENDOR_VERSION_LAST_UPDATED_BY) {
6
+ COMPANY_ITEM_VENDOR_VERSION_LAST_UPDATED_BY["COMPANY"] = "COMPANY";
7
+ COMPANY_ITEM_VENDOR_VERSION_LAST_UPDATED_BY["VENDOR"] = "VENDOR";
8
+ })(COMPANY_ITEM_VENDOR_VERSION_LAST_UPDATED_BY || (exports.COMPANY_ITEM_VENDOR_VERSION_LAST_UPDATED_BY = COMPANY_ITEM_VENDOR_VERSION_LAST_UPDATED_BY = {}));
4
9
  var COMPANY_VENDOR_ITEM_VERSION_INCLUDE;
5
10
  (function (COMPANY_VENDOR_ITEM_VERSION_INCLUDE) {
6
11
  COMPANY_VENDOR_ITEM_VERSION_INCLUDE["company"] = "company";
7
12
  COMPANY_VENDOR_ITEM_VERSION_INCLUDE["item"] = "item";
8
13
  COMPANY_VENDOR_ITEM_VERSION_INCLUDE["company_vendor"] = "company_vendor";
9
14
  COMPANY_VENDOR_ITEM_VERSION_INCLUDE["vendor"] = "vendor";
15
+ COMPANY_VENDOR_ITEM_VERSION_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
10
16
  })(COMPANY_VENDOR_ITEM_VERSION_INCLUDE || (exports.COMPANY_VENDOR_ITEM_VERSION_INCLUDE = COMPANY_VENDOR_ITEM_VERSION_INCLUDE = {}));
@@ -26,6 +26,7 @@ import { INestedStoreLocation } from "./storeLocation.typings";
26
26
  import { INestedVendorGroups } from "./vendorGroup.typings";
27
27
  import { INestedExtraCoreRelatedQuestionsForCompanyEntiy } from "./extraCoreRelatedQuestionsForCompany.typings";
28
28
  import { INestedContactPeople } from "./contactPeople.typings";
29
+ import { INestedCompanyItemVendorVersion } from "./companyItemVendorVersion.typings";
29
30
  export interface IUser {
30
31
  id: string;
31
32
  is_enabled?: boolean | null;
@@ -98,8 +99,9 @@ export interface IUser {
98
99
  updated_extra_core_question_for_companies?: INestedExtraCoreRelatedQuestionsForCompanyEntiy[] | null;
99
100
  created_contact_people: INestedContactPeople[] | null;
100
101
  updated_contact_people: INestedContactPeople[] | null;
102
+ last_updated_company_item_vendor_version: INestedCompanyItemVendorVersion[] | null;
101
103
  }
102
- 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" | "created_contact_people" | "updated_contact_people"> {
104
+ 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" | "created_contact_people" | "updated_contact_people" | "last_updated_company_item_vendor_version"> {
103
105
  }
104
106
  export declare enum UserInclude {
105
107
  as_incharge_in_purchase_locations = "as_incharge_in_purchase_locations",
@@ -140,7 +142,8 @@ export declare enum UserInclude {
140
142
  created_extra_core_question_for_companies = "created_extra_core_question_for_companies",
141
143
  updated_extra_core_question_for_companies = "updated_extra_core_question_for_companies",
142
144
  created_contact_people = "created_contact_people",
143
- updated_contact_people = "updated_contact_people"
145
+ updated_contact_people = "updated_contact_people",
146
+ last_updated_company_item_vendor_version = "last_updated_company_item_vendor_version"
144
147
  }
145
148
  export interface IUserFilters {
146
149
  name?: string;
@@ -45,4 +45,5 @@ var UserInclude;
45
45
  UserInclude["updated_extra_core_question_for_companies"] = "updated_extra_core_question_for_companies";
46
46
  UserInclude["created_contact_people"] = "created_contact_people";
47
47
  UserInclude["updated_contact_people"] = "updated_contact_people";
48
+ UserInclude["last_updated_company_item_vendor_version"] = "last_updated_company_item_vendor_version";
48
49
  })(UserInclude || (exports.UserInclude = UserInclude = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "6.4.24",
3
+ "version": "6.4.26",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",