kcommons 9.45.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: {
package/build/index.d.ts CHANGED
@@ -47,6 +47,7 @@ export * from "./typings/company/istd/istdItems.typings";
47
47
  export * from "./typings/company/iad/iad.typings";
48
48
  export * from "./typings/company/inventory/inventoryLogger.typings";
49
49
  export * from "./typings/company/inventory/inventoryOverview.typings";
50
+ export * from "./typings/common/openApprovals.typings";
50
51
  export * from "./typings/common/address.typings";
51
52
  export * from "./typings/common/paginationFilters.typings";
52
53
  export * from "./typings/common/uploadMedia.typings";
package/build/index.js CHANGED
@@ -64,6 +64,7 @@ __exportStar(require("./typings/company/istd/istdItems.typings"), exports);
64
64
  __exportStar(require("./typings/company/iad/iad.typings"), exports);
65
65
  __exportStar(require("./typings/company/inventory/inventoryLogger.typings"), exports);
66
66
  __exportStar(require("./typings/company/inventory/inventoryOverview.typings"), exports);
67
+ __exportStar(require("./typings/common/openApprovals.typings"), exports);
67
68
  // Commons
68
69
  __exportStar(require("./typings/common/address.typings"), exports);
69
70
  __exportStar(require("./typings/common/paginationFilters.typings"), exports);
@@ -0,0 +1,4 @@
1
+ export interface IOpenApprovalsBase {
2
+ user_id: string;
3
+ role_id: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,9 +5,10 @@ import { INestedItem } from "./item.typings";
5
5
  import { INestedMI, INestedMIItem } from "./mi.typings";
6
6
  import { INestedPR, INestedPrItem } from "./pr.typings";
7
7
  import { INestedStoreLocation } from "./storeLocation.typings";
8
- import { INestedUser } from "./user.typings";
9
- import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
8
+ import { INestedUser, IUser } from "./user.typings";
9
+ import { IEntityApprovalChainEntry, INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
10
10
  import { IPaginationFilters } from "./common/paginationFilters.typings";
11
+ import { IOpenApprovalsBase } from "./common/openApprovals.typings";
11
12
  export declare enum INDENT_LIST_TYPE {
12
13
  MY_APPROVALS = "MY_APPROVALS",
13
14
  CREATED_BY_ME = "CREATED_BY_ME",
@@ -109,3 +110,11 @@ export interface IIndentItem extends IDocItem {
109
110
  }
110
111
  export interface INestedIndentItem extends Omit<IIndentItem, "company" | "item" | "parent_indent" | "mi_items" | "pr_items"> {
111
112
  }
113
+ export interface IIndentApprovalByTokenPayload extends IOpenApprovalsBase {
114
+ indent_id: string;
115
+ }
116
+ export interface IOpenIndentApprovalData {
117
+ indentData: IIndent;
118
+ userData: IUser;
119
+ entityApprovalChainEntry: IEntityApprovalChainEntry;
120
+ }
@@ -1,4 +1,5 @@
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
5
  import { INestedCompanyVendors } from "./companyVendors.typings";
@@ -189,9 +190,7 @@ export interface IPOBom {
189
190
  }
190
191
  export interface INestedPOBom extends Omit<IPOBom, "parent_po" | "bom" | "referenced_po_items"> {
191
192
  }
192
- export interface IPOApprovalByTokenPayload {
193
- user_id: string;
194
- role_id: string;
193
+ export interface IPOApprovalByTokenPayload extends IOpenApprovalsBase {
195
194
  po_id: string;
196
195
  }
197
196
  export interface IOpenPOApprovalData {
@@ -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.45.0",
3
+ "version": "9.47.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",