kcommons 6.4.23 → 6.4.25

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.
@@ -1,7 +1,12 @@
1
+ import { COMPANY_PROFILE_TABS_FOR_VENDOR_PANEL } from "../typings/vendor/companyProfile.typings";
1
2
  export declare const vendorNavRoutes: {
2
3
  auth: {
3
4
  login: string;
4
5
  };
6
+ companies: {
7
+ list: string;
8
+ view: (company_id: string, activeTab?: COMPANY_PROFILE_TABS_FOR_VENDOR_PANEL) => string;
9
+ };
5
10
  purchase: {
6
11
  quotes: {
7
12
  list: string;
@@ -16,6 +21,7 @@ export declare const vendorNavRoutes: {
16
21
  };
17
22
  openPO: {
18
23
  view: (token: string) => string;
24
+ readonly: (po_id: string) => string;
19
25
  };
20
26
  openQuote: {
21
27
  view: (token: string) => string;
@@ -7,6 +7,10 @@ exports.vendorNavRoutes = {
7
7
  auth: {
8
8
  login: "/login",
9
9
  },
10
+ companies: {
11
+ list: "/companies",
12
+ view: (company_id, activeTab) => `/companies/${company_id}?${activeTab ? `active_tab=${activeTab}` : ""}`,
13
+ },
10
14
  purchase: {
11
15
  quotes: {
12
16
  list: "/purchase/quotes",
@@ -21,6 +25,7 @@ exports.vendorNavRoutes = {
21
25
  },
22
26
  openPO: {
23
27
  view: (token) => `/purchase/open-po?token=${token}`,
28
+ readonly: (po_id) => `/purchase/open-po/view?po_id=${po_id}`,
24
29
  },
25
30
  openQuote: {
26
31
  view: (token) => `/purchase/open-quote?token=${token}`,
package/build/index.d.ts CHANGED
@@ -69,3 +69,4 @@ export * from "./typings/kpis/company/companyKpisCommons.typings";
69
69
  export * from "./typings/kpis/company/testKpi.typings";
70
70
  export * from "./typings/kpis/company/purchase/testPuchaseKpi.typings";
71
71
  export * from "./typings/kpis/company/main/homeDashboard.typings";
72
+ export * from "./typings/vendor/companyProfile.typings";
package/build/index.js CHANGED
@@ -93,3 +93,5 @@ __exportStar(require("./typings/kpis/company/companyKpisCommons.typings"), expor
93
93
  __exportStar(require("./typings/kpis/company/testKpi.typings"), exports);
94
94
  __exportStar(require("./typings/kpis/company/purchase/testPuchaseKpi.typings"), exports);
95
95
  __exportStar(require("./typings/kpis/company/main/homeDashboard.typings"), exports);
96
+ // Vendor Panel typings
97
+ __exportStar(require("./typings/vendor/companyProfile.typings"), exports);
@@ -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 = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum COMPANY_PROFILE_TABS_FOR_VENDOR_PANEL {
2
+ INFO = "FIRST",
3
+ ITEMS = "SECOND",
4
+ RFQ = "THIRD",
5
+ PO = "FOURTH"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.COMPANY_PROFILE_TABS_FOR_VENDOR_PANEL = void 0;
4
+ var COMPANY_PROFILE_TABS_FOR_VENDOR_PANEL;
5
+ (function (COMPANY_PROFILE_TABS_FOR_VENDOR_PANEL) {
6
+ COMPANY_PROFILE_TABS_FOR_VENDOR_PANEL["INFO"] = "FIRST";
7
+ COMPANY_PROFILE_TABS_FOR_VENDOR_PANEL["ITEMS"] = "SECOND";
8
+ COMPANY_PROFILE_TABS_FOR_VENDOR_PANEL["RFQ"] = "THIRD";
9
+ COMPANY_PROFILE_TABS_FOR_VENDOR_PANEL["PO"] = "FOURTH";
10
+ })(COMPANY_PROFILE_TABS_FOR_VENDOR_PANEL || (exports.COMPANY_PROFILE_TABS_FOR_VENDOR_PANEL = COMPANY_PROFILE_TABS_FOR_VENDOR_PANEL = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "6.4.23",
3
+ "version": "6.4.25",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",