kcommons 5.19.12 → 5.19.14

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.
@@ -0,0 +1,6 @@
1
+ import { INotificationTemplate } from "../../typings/notifications.typings";
2
+ export declare const PO_NOTIFICATIONS: {
3
+ poApproved: (po_id: string, po_no: string) => INotificationTemplate;
4
+ chanceForPoApproval: (po_id: string, po_no: string, name: string) => INotificationTemplate;
5
+ poRejection: (po_id: string, po_no: string, name: string) => INotificationTemplate;
6
+ };
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PO_NOTIFICATIONS = void 0;
4
+ const companyRoutes_constants_1 = require("../../constants/companyRoutes.constants");
5
+ exports.PO_NOTIFICATIONS = {
6
+ poApproved: (po_id, po_no) => {
7
+ return {
8
+ action_link: companyRoutes_constants_1.companyNavConfig.purchase.po.view(po_id),
9
+ description: `${po_no} has been approved and is ready to send to the vendors`,
10
+ title: `Send ${po_no} to vendor`,
11
+ };
12
+ },
13
+ chanceForPoApproval: (po_id, po_no, name) => {
14
+ return {
15
+ action_link: companyRoutes_constants_1.companyNavConfig.purchase.po.view(po_id),
16
+ description: `${name} requested for approval on ${po_no}`,
17
+ title: ` Approve ${po_no}`,
18
+ };
19
+ },
20
+ poRejection: (po_id, po_no, name) => {
21
+ return {
22
+ action_link: companyRoutes_constants_1.companyNavConfig.purchase.po.view(po_id),
23
+ description: `${po_no} has been rejected by ${name}`,
24
+ title: `${po_no} rejected`,
25
+ };
26
+ },
27
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.19.12",
3
+ "version": "5.19.14",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",