kcommons 9.46.0 → 9.47.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.
@@ -550,6 +550,12 @@ export declare const companyNavConfig: {
550
550
  route: (rfq_id: string) => string;
551
551
  id: COMPANY_ROUTE_IDS;
552
552
  };
553
+ openApproval: {
554
+ route: (token: string, queryParams?: {
555
+ active_tab: RFQ_TABS;
556
+ }) => string;
557
+ id: COMPANY_ROUTE_IDS;
558
+ };
553
559
  };
554
560
  comparative: {
555
561
  view: {
@@ -568,6 +568,14 @@ exports.companyNavConfig = {
568
568
  route: (rfq_id) => `/purchase/request-for-quotation/${rfq_id}/clone?route_id=${COMPANY_ROUTE_IDS.RFQ_ADD}`,
569
569
  id: COMPANY_ROUTE_IDS.RFQ_ADD,
570
570
  },
571
+ openApproval: {
572
+ route: (token, queryParams) => (0, parseReqString_1.parseReqString)(`/open/approvals/rfq`, {
573
+ token,
574
+ route_id: COMPANY_ROUTE_IDS.RFQ_VIEW,
575
+ active_tab: queryParams === null || queryParams === void 0 ? void 0 : queryParams.active_tab,
576
+ }),
577
+ id: COMPANY_ROUTE_IDS.RFQ_VIEW,
578
+ },
571
579
  },
572
580
  comparative: {
573
581
  view: {
@@ -1,14 +1,15 @@
1
1
  import { INestedBOM } from "./bom.typings";
2
+ import { IOpenApprovalsBase } from "./common/openApprovals.typings";
2
3
  import { IPaginationFilters } from "./common/paginationFilters.typings";
3
4
  import { INestedCompany } from "./company.typings";
4
- import { INestedCompanyVendors } from "./companyVendors.typings";
5
+ import { ICompanyVendor, INestedCompanyVendors } from "./companyVendors.typings";
5
6
  import { INestedComparative } from "./comparative.typings";
6
- import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
7
+ import { IEntityApprovalChainEntry, INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
7
8
  import { INestedPR, INestedPrItem } from "./pr.typings";
8
9
  import { INestedPurchaseLocation } from "./purchaseLocation.typings";
9
10
  import { INestedQuote, INestedQuoteItems } from "./quote.typings";
10
11
  import { INestedStoreLocation } from "./storeLocation.typings";
11
- import { INestedUser } from "./user.typings";
12
+ import { INestedUser, IUser } from "./user.typings";
12
13
  import { INestedVendor, IVendor } from "./vendor.typings";
13
14
  import { INestedVendorGroups } from "./vendorGroup.typings";
14
15
  export declare enum RFQ_LIST_TYPES {
@@ -185,3 +186,12 @@ export interface IRFQBom {
185
186
  }
186
187
  export interface INestedRFQBOM extends Omit<IRFQBom, "parent_rfq" | "bom" | "referenced_rfq_item"> {
187
188
  }
189
+ export interface IRFQApprovalByTokenPayload extends IOpenApprovalsBase {
190
+ rfq_id: string;
191
+ }
192
+ export interface IOpenRFQApprovalData {
193
+ rfqData: IRFQ;
194
+ entityApprovalChainEntry: IEntityApprovalChainEntry;
195
+ userData: IUser;
196
+ rfqCompanyVendors: ICompanyVendor[];
197
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "9.46.0",
3
+ "version": "9.47.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",