kcommons 5.18.0 → 5.18.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.
@@ -1,4 +1,4 @@
1
- export declare const navRoutes: {
1
+ export declare const vendorNavRoutes: {
2
2
  auth: {
3
3
  login: string;
4
4
  };
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.navRoutes = void 0;
4
- exports.navRoutes = {
3
+ exports.vendorNavRoutes = void 0;
4
+ exports.vendorNavRoutes = {
5
5
  auth: {
6
6
  login: "/login",
7
7
  },
@@ -3,4 +3,5 @@ export declare const RFQ_NOTIFICATION_TEMPLATES: {
3
3
  rfqApproved: (rfq_id: string, rfq_no: string) => INotificationTemplate;
4
4
  chanceForApproval: (rfq_id: string, rfq_no: string) => INotificationTemplate;
5
5
  rfqRejection: (rfq_id: string, rfq_no: string, rejectedBy: string) => INotificationTemplate;
6
+ rfqRequestToVendor: (quote_id: string, company_name: string, rfq_no: string) => INotificationTemplate;
6
7
  };
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RFQ_NOTIFICATION_TEMPLATES = void 0;
4
4
  const companyRoutes_constants_1 = require("../../constants/companyRoutes.constants");
5
+ const vendorRoutes_constants_1 = require("../../constants/vendorRoutes.constants");
5
6
  exports.RFQ_NOTIFICATION_TEMPLATES = {
6
7
  rfqApproved: (rfq_id, rfq_no) => {
7
8
  return {
@@ -24,4 +25,11 @@ exports.RFQ_NOTIFICATION_TEMPLATES = {
24
25
  title: `RFQ ${rfq_no} rejected`,
25
26
  };
26
27
  },
28
+ rfqRequestToVendor: (quote_id, company_name, rfq_no) => {
29
+ return {
30
+ action_link: vendorRoutes_constants_1.vendorNavRoutes.purchase.quotes.view(quote_id),
31
+ title: `Quotation Request`,
32
+ description: `Company ${company_name} has requested to quote on ${rfq_no}`,
33
+ };
34
+ },
27
35
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.18.0",
3
+ "version": "5.18.2",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",