kcommons 9.53.0 → 9.55.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.
Files changed (25) hide show
  1. package/build/index.d.ts +7 -4
  2. package/build/index.js +7 -5
  3. package/build/typings/contactPeople.typings.d.ts +8 -2
  4. package/build/typings/contactPeople.typings.js +2 -0
  5. package/build/typings/indent.typings.d.ts +8 -3
  6. package/build/typings/indent.typings.js +2 -0
  7. package/build/typings/kpis/company/item/itemSpecific/issuanceVsProcurementRatio.typings.d.ts +9 -0
  8. package/build/typings/kpis/company/item/itemSpecific/issuanceVsProcurementRatio.typings.js +2 -0
  9. package/build/typings/kpis/company/item/itemSpecific/itemDashboardKPICards.typings.d.ts +29 -0
  10. package/build/typings/kpis/company/item/itemSpecific/itemDashboardKPICards.typings.js +2 -0
  11. package/build/typings/kpis/company/item/itemSpecific/itemPurchaseTrend.typings.d.ts +11 -0
  12. package/build/typings/kpis/company/item/itemSpecific/itemPurchaseTrend.typings.js +2 -0
  13. package/build/typings/kpis/company/item/itemSpecific/stockTrend.typings.d.ts +12 -0
  14. package/build/typings/kpis/company/item/itemSpecific/stockTrend.typings.js +2 -0
  15. package/build/typings/kpis/company/item/mainDashboard/inventoryAndItemDetailsKpi.typings.d.ts +15 -0
  16. package/build/typings/kpis/company/item/mainDashboard/inventoryAndItemDetailsKpi.typings.js +2 -0
  17. package/build/typings/kpis/company/item/mainDashboard/mainItemDashboardSummaryKPI.typings.d.ts +9 -0
  18. package/build/typings/kpis/company/item/mainDashboard/mainItemDashboardSummaryKPI.typings.js +2 -0
  19. package/build/typings/kpis/company/item/mainDashboard/purchaseVSIssuanceKPI.typings.d.ts +21 -0
  20. package/build/typings/kpis/company/item/mainDashboard/purchaseVSIssuanceKPI.typings.js +9 -0
  21. package/build/typings/mi.typings.d.ts +14 -2
  22. package/build/typings/mi.typings.js +8 -1
  23. package/build/typings/user.typings.d.ts +5 -1
  24. package/build/typings/user.typings.js +2 -0
  25. package/package.json +1 -1
package/build/index.d.ts CHANGED
@@ -86,10 +86,13 @@ export * from "./typings/kpis/company/main/purchase/purchaseTrend.typings";
86
86
  export * from "./typings/kpis/company/main/purchase/avgVendorResponseRatePerRFQKPI.typings";
87
87
  export * from "./typings/kpis/company/main/purchase/topProcurementCategories.typings";
88
88
  export * from "./typings/kpis/company/main/vendors/topCategoryvendorDistribution.typings";
89
- export * from "./typings/kpis/company/item/itemDashboardKPICards.typings";
90
- export * from "./typings/kpis/company/item/issuanceVsProcurementRatio.typings";
91
- export * from "./typings/kpis/company/item/itemPurchaseTrend.typings";
92
- export * from "./typings/kpis/company/item/stockTrend.typings";
89
+ export * from "./typings/kpis/company/item/itemSpecific/itemDashboardKPICards.typings";
90
+ export * from "./typings/kpis/company/item/itemSpecific/issuanceVsProcurementRatio.typings";
91
+ export * from "./typings/kpis/company/item/itemSpecific/itemPurchaseTrend.typings";
92
+ export * from "./typings/kpis/company/item/itemSpecific/stockTrend.typings";
93
+ export * from "./typings/kpis/company/item/mainDashboard/inventoryAndItemDetailsKpi.typings";
94
+ export * from "./typings/kpis/company/item/mainDashboard/purchaseVSIssuanceKPI.typings";
95
+ export * from "./typings/kpis/company/item/mainDashboard/mainItemDashboardSummaryKPI.typings";
93
96
  export * from "./typings/kpis/company/vendor/totalBusiness.typings";
94
97
  export * from "./typings/kpis/company/vendor/companyVendorPurchaseFlow.typings";
95
98
  export * from "./typings/kpis/company/vendor/topCompanyVendorItems.typings";
package/build/index.js CHANGED
@@ -113,10 +113,13 @@ __exportStar(require("./typings/kpis/company/main/purchase/avgVendorResponseRate
113
113
  __exportStar(require("./typings/kpis/company/main/purchase/topProcurementCategories.typings"), exports);
114
114
  __exportStar(require("./typings/kpis/company/main/vendors/topCategoryvendorDistribution.typings"), exports);
115
115
  // Item Dashboard KPIs
116
- __exportStar(require("./typings/kpis/company/item/itemDashboardKPICards.typings"), exports);
117
- __exportStar(require("./typings/kpis/company/item/issuanceVsProcurementRatio.typings"), exports);
118
- __exportStar(require("./typings/kpis/company/item/itemPurchaseTrend.typings"), exports);
119
- __exportStar(require("./typings/kpis/company/item/stockTrend.typings"), exports);
116
+ __exportStar(require("./typings/kpis/company/item/itemSpecific/itemDashboardKPICards.typings"), exports);
117
+ __exportStar(require("./typings/kpis/company/item/itemSpecific/issuanceVsProcurementRatio.typings"), exports);
118
+ __exportStar(require("./typings/kpis/company/item/itemSpecific/itemPurchaseTrend.typings"), exports);
119
+ __exportStar(require("./typings/kpis/company/item/itemSpecific/stockTrend.typings"), exports);
120
+ __exportStar(require("./typings/kpis/company/item/mainDashboard/inventoryAndItemDetailsKpi.typings"), exports);
121
+ __exportStar(require("./typings/kpis/company/item/mainDashboard/purchaseVSIssuanceKPI.typings"), exports);
122
+ __exportStar(require("./typings/kpis/company/item/mainDashboard/mainItemDashboardSummaryKPI.typings"), exports);
120
123
  // Company Vendor Dashboard KPIs
121
124
  __exportStar(require("./typings/kpis/company/vendor/totalBusiness.typings"), exports);
122
125
  __exportStar(require("./typings/kpis/company/vendor/companyVendorPurchaseFlow.typings"), exports);
@@ -126,7 +129,6 @@ __exportStar(require("./typings/kpis/company/vendor/companyVendornegotiationgain
126
129
  // Common KPIs
127
130
  __exportStar(require("./typings/kpis/company/companyKpisCommons.typings"), exports);
128
131
  __exportStar(require("./typings/kpis/vendor/vendorKpisCommons.typings"), exports);
129
- ``;
130
132
  // Company KPIs
131
133
  __exportStar(require("./typings/kpis/company/testKpi.typings"), exports);
132
134
  __exportStar(require("./typings/kpis/company/purchase/testPuchaseKpi.typings"), exports);
@@ -1,12 +1,16 @@
1
1
  import { IPaginationFilters } from "./common/paginationFilters.typings";
2
2
  import { INestedCompany } from "./company.typings";
3
+ import { INestedIndent } from "./indent.typings";
4
+ import { INestedMI } from "./mi.typings";
3
5
  import { INestedPo } from "./po.typings";
4
6
  import { INestedUser } from "./user.typings";
5
7
  export declare enum CONTACT_PEOPLE_INCLUDE {
6
8
  created_by_user = "created_by_user",
7
9
  updated_by_user = "updated_by_user",
8
10
  company = "company",
9
- referred_pos = "referred_pos"
11
+ referred_pos = "referred_pos",
12
+ indent_created_for_person = "indent_created_for_person",
13
+ mis_issued_for_person = "mis_issued_for_person"
10
14
  }
11
15
  export interface IContactPeople {
12
16
  id: string;
@@ -22,12 +26,14 @@ export interface IContactPeople {
22
26
  deleted_at: string | null;
23
27
  created_at: string;
24
28
  updated_at: string;
29
+ mis_issued_for_person: INestedMI[] | null;
30
+ indent_created_for_person: INestedIndent[] | null;
25
31
  created_by_user: INestedUser | null;
26
32
  updated_by_user: INestedUser | null;
27
33
  company: INestedCompany | null;
28
34
  referred_pos: INestedPo[] | null;
29
35
  }
30
- export interface INestedContactPeople extends Omit<IContactPeople, "created_by_user" | "updated_by_user" | "company" | "referred_pos"> {
36
+ export interface INestedContactPeople extends Omit<IContactPeople, "created_by_user" | "updated_by_user" | "company" | "referred_pos" | "indent_created_for_person" | "mis_issued_for_person"> {
31
37
  }
32
38
  export interface IContactPeopleFilters extends Partial<Pick<IContactPeople, "is_enabled">> {
33
39
  name?: string;
@@ -7,6 +7,8 @@ var CONTACT_PEOPLE_INCLUDE;
7
7
  CONTACT_PEOPLE_INCLUDE["updated_by_user"] = "updated_by_user";
8
8
  CONTACT_PEOPLE_INCLUDE["company"] = "company";
9
9
  CONTACT_PEOPLE_INCLUDE["referred_pos"] = "referred_pos";
10
+ CONTACT_PEOPLE_INCLUDE["indent_created_for_person"] = "indent_created_for_person";
11
+ CONTACT_PEOPLE_INCLUDE["mis_issued_for_person"] = "mis_issued_for_person";
10
12
  })(CONTACT_PEOPLE_INCLUDE || (exports.CONTACT_PEOPLE_INCLUDE = CONTACT_PEOPLE_INCLUDE = {}));
11
13
  // updates for lable change on FE
12
14
  var CONTACT_PERSON_TYPE;
@@ -9,6 +9,7 @@ import { INestedUser, IUser } from "./user.typings";
9
9
  import { IEntityApprovalChainEntry, INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
10
10
  import { IPaginationFilters } from "./common/paginationFilters.typings";
11
11
  import { IOpenApprovalsBase } from "./common/openApprovals.typings";
12
+ import { INestedContactPeople } from "./contactPeople.typings";
12
13
  export declare enum INDENT_ON_BEHALF_OF_USER_TYPE {
13
14
  ONBOARDED_USER = "ONBOARDED_USER",
14
15
  NON_ONBOARDED_USER = "NON_ONBOARDED_USER"
@@ -46,7 +47,7 @@ export interface IIndent {
46
47
  sent_to_store_location: boolean;
47
48
  on_behalf_of_user_type: string;
48
49
  on_behalf_of_onboarded_user_id: string | null;
49
- on_behalf_of_non_onbaorded_user_id: string | null;
50
+ on_behalf_of_non_onboarded_user_id: string | null;
50
51
  place_of_application: string | null;
51
52
  custom_fields: string | null;
52
53
  budget_code_id: string | null;
@@ -63,6 +64,8 @@ export interface IIndent {
63
64
  is_deleted: boolean;
64
65
  created_at: string;
65
66
  updated_at: string;
67
+ on_behalf_of_onboarded_user: INestedUser | null;
68
+ on_behalf_of_non_onboarded_user: INestedContactPeople | null;
66
69
  items: INestedIndentItem[] | null;
67
70
  department: INestedDepartment | null;
68
71
  company: INestedCompany | null;
@@ -72,7 +75,7 @@ export interface IIndent {
72
75
  prs: INestedPR[] | null;
73
76
  approval_chain: INestedEntityApprovalChainEntry[] | null;
74
77
  }
75
- export interface INestedIndent extends Omit<IIndent, "department" | "company" | "budget_code" | "created_by_user" | "target_store_location" | "items" | "approval_chain" | "corresponding_mis" | "prs"> {
78
+ export interface INestedIndent extends Omit<IIndent, "department" | "company" | "budget_code" | "created_by_user" | "target_store_location" | "items" | "approval_chain" | "corresponding_mis" | "prs" | "on_behalf_of_onboarded_user" | "on_behalf_of_non_onboarded_user"> {
76
79
  }
77
80
  export declare enum IndentStatus {
78
81
  DRAFT = "DRAFT",
@@ -96,7 +99,9 @@ export declare enum IndentInclude {
96
99
  target_store_location = "target_store_location",
97
100
  corresponding_mis = "corresponding_mis",
98
101
  prs = "prs",
99
- approval_chain = "approval_chain"
102
+ approval_chain = "approval_chain",
103
+ on_behalf_of_onboarded_user = "on_behalf_of_onboarded_user",
104
+ on_behalf_of_non_onboarded_user = "on_behalf_of_non_onboarded_user"
100
105
  }
101
106
  export declare enum INDENT_ITEM_INCLUDE {
102
107
  company = "company",
@@ -49,6 +49,8 @@ var IndentInclude;
49
49
  IndentInclude["corresponding_mis"] = "corresponding_mis";
50
50
  IndentInclude["prs"] = "prs";
51
51
  IndentInclude["approval_chain"] = "approval_chain";
52
+ IndentInclude["on_behalf_of_onboarded_user"] = "on_behalf_of_onboarded_user";
53
+ IndentInclude["on_behalf_of_non_onboarded_user"] = "on_behalf_of_non_onboarded_user";
52
54
  })(IndentInclude || (exports.IndentInclude = IndentInclude = {}));
53
55
  // Indent Items typings
54
56
  var INDENT_ITEM_INCLUDE;
@@ -0,0 +1,9 @@
1
+ import { IBaseKPIFilters } from "../../../basKPIS.typings";
2
+ export interface IIssuanceVsProcurementRatioReq extends IBaseKPIFilters {
3
+ item_id: string;
4
+ }
5
+ export interface IItemIssuanceVsProcurementRatioData {
6
+ percentage: number;
7
+ issued_qty: number;
8
+ procured_qty: number;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ import { IBaseKPIFilters } from "../../../basKPIS.typings";
2
+ export interface IItemDashboardKPICardsReq extends IBaseKPIFilters {
3
+ item_id: string;
4
+ }
5
+ export interface IItemDashboardKPICardsData {
6
+ price_trend: {
7
+ avg_price: number;
8
+ item_name: string;
9
+ uom: string;
10
+ increment_in_last_6_months: number;
11
+ increment_in_last_year: number;
12
+ count_of_pos: number;
13
+ };
14
+ total_purchase: {
15
+ value: number;
16
+ };
17
+ supplying_vendors: {
18
+ no_of_vendors: number;
19
+ };
20
+ previous_purchase_price: {
21
+ value: number | null;
22
+ po_no: string | null;
23
+ purchased_on: string | null;
24
+ po_id: string | null;
25
+ };
26
+ total_available_stock: {
27
+ count: number;
28
+ };
29
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import { IBaseKPIFilters } from "../../../basKPIS.typings";
2
+ export interface IItemPurchaseTrendReqFilters extends IBaseKPIFilters {
3
+ item_id: string;
4
+ }
5
+ export interface IItemPurchaseTrendData {
6
+ data: {
7
+ values: number[];
8
+ labels: string[];
9
+ average: number;
10
+ };
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { IBaseKPIFilters } from "../../../basKPIS.typings";
2
+ export interface IItemStockTrendKPIReqFilters extends IBaseKPIFilters {
3
+ item_id: string;
4
+ }
5
+ export interface IItemStockTrendKPIUnit {
6
+ label: string;
7
+ stock_purchased: number;
8
+ stock_issued: number;
9
+ }
10
+ export interface IItemStockTrendKPIData {
11
+ data: IItemStockTrendKPIUnit[];
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ import { IItem } from "../../../../item.typings";
2
+ import { IBaseKPIFilters } from "../../../basKPIS.typings";
3
+ export interface IInventoryAndItemDetailsKPIReqFilters extends Pick<IBaseKPIFilters, "company_id"> {
4
+ item_id: string;
5
+ }
6
+ export interface IInventoryDataUnit {
7
+ store_location_name: string;
8
+ available_stock: number;
9
+ }
10
+ export interface IInventoryAndItemDetailsKPIResponse {
11
+ stock_info: IInventoryDataUnit[];
12
+ item_data: IItem;
13
+ total_purchased_qty: number;
14
+ total_available_qty: number;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { IBaseKPIFilters } from "../../../basKPIS.typings";
2
+ export interface IMainItemDashboardSummaryKPIReqFilters extends Pick<IBaseKPIFilters, "company_id"> {
3
+ }
4
+ export interface IMainItemDashboardSummaryKPIResponse {
5
+ total_procurement_value: number | null;
6
+ total_items: number | null;
7
+ total_categories: number | null;
8
+ total_boms: number | null;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ import { IBaseKPIFilters } from "../../../basKPIS.typings";
2
+ export declare enum PURCHASE_VS_ISSUANCE_GRAPH_TYPE {
3
+ PURCHASE = "PURCHASE",
4
+ ISSUANCE = "ISSUANCE",
5
+ COMBINED = "COMBINED"
6
+ }
7
+ export interface IPurchaseVsIssuanceKPIFilters extends IBaseKPIFilters {
8
+ item_id: string;
9
+ chartType: string;
10
+ }
11
+ export interface ILineChartdata {
12
+ x: string;
13
+ y: number;
14
+ }
15
+ export interface IPurchaseVsIssuanceKPIResUnit {
16
+ label: string;
17
+ data: ILineChartdata[];
18
+ }
19
+ export interface IPurchasevsIssuanceKPIResponse {
20
+ data: IPurchaseVsIssuanceKPIResUnit[];
21
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PURCHASE_VS_ISSUANCE_GRAPH_TYPE = void 0;
4
+ var PURCHASE_VS_ISSUANCE_GRAPH_TYPE;
5
+ (function (PURCHASE_VS_ISSUANCE_GRAPH_TYPE) {
6
+ PURCHASE_VS_ISSUANCE_GRAPH_TYPE["PURCHASE"] = "PURCHASE";
7
+ PURCHASE_VS_ISSUANCE_GRAPH_TYPE["ISSUANCE"] = "ISSUANCE";
8
+ PURCHASE_VS_ISSUANCE_GRAPH_TYPE["COMBINED"] = "COMBINED";
9
+ })(PURCHASE_VS_ISSUANCE_GRAPH_TYPE || (exports.PURCHASE_VS_ISSUANCE_GRAPH_TYPE = PURCHASE_VS_ISSUANCE_GRAPH_TYPE = {}));
@@ -2,6 +2,7 @@ import { IOpenApprovalsBase } from "./common/openApprovals.typings";
2
2
  import { IPaginationFilters } from "./common/paginationFilters.typings";
3
3
  import { INestedCompany } from "./company.typings";
4
4
  import { INestedInventoryLog } from "./company/inventory/inventoryLogger.typings";
5
+ import { INestedContactPeople } from "./contactPeople.typings";
5
6
  import { INestedDepartment } from "./department.typings";
6
7
  import { IDocItem } from "./docItems.typings";
7
8
  import { IEntityApprovalChainEntry, INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
@@ -9,6 +10,10 @@ import { INestedIndent, INestedIndentItem } from "./indent.typings";
9
10
  import { INestedItem } from "./item.typings";
10
11
  import { INestedStoreLocation } from "./storeLocation.typings";
11
12
  import { INestedUser, IUser } from "./user.typings";
13
+ export declare enum MI_ISSUED_FOR_USER_TYPE {
14
+ ONBOARDED_USER = "ONBOARDED_USER",
15
+ NON_ONBOARDED_USER = "NON_ONBOARDED_USER"
16
+ }
12
17
  export declare enum MI_LIST_TYPES {
13
18
  ALL = "ALL",
14
19
  MY_APPROVALS = "MY_APPROVALS",
@@ -41,6 +46,9 @@ export interface IMI {
41
46
  parent_company_id: string;
42
47
  status: string;
43
48
  parent_store_location_id: string;
49
+ issued_for_user_type: string;
50
+ issued_for_onboarded_user_id: string | null;
51
+ issued_for_non_onboarded_user_id: string | null;
44
52
  sent_for_approval_by_id?: string | null;
45
53
  issued_by_user_id?: string | null;
46
54
  last_updated_by_user_id?: string | null;
@@ -56,6 +64,8 @@ export interface IMI {
56
64
  parent_department?: INestedDepartment | null;
57
65
  created_by_user?: INestedUser | null;
58
66
  parent_indent?: INestedIndent | null;
67
+ issued_for_onboarded_user?: INestedUser | null;
68
+ issued_for_non_onboarded_user?: INestedContactPeople | null;
59
69
  items?: INestedMIItem[] | null;
60
70
  approval_chain?: INestedEntityApprovalChainEntry[] | null;
61
71
  store_location?: INestedStoreLocation | null;
@@ -64,7 +74,7 @@ export interface IMI {
64
74
  issued_by_user: INestedUser | null;
65
75
  last_updated_by_user: INestedUser | null;
66
76
  }
67
- export interface INestedMI extends Omit<IMI, "store_location" | "company" | "paretn_department" | "created_by_user" | "parent_indent" | "items" | "approval_chain" | "store_location" | "inventory_logs" | "sent_for_approval_by_user" | "issued_by_user" | "last_updated_by_user"> {
77
+ export interface INestedMI extends Omit<IMI, "store_location" | "company" | "paretn_department" | "created_by_user" | "parent_indent" | "items" | "approval_chain" | "store_location" | "inventory_logs" | "issued_for_onboarded_user" | "issued_for_non_onboarded_user" | "sent_for_approval_by_user" | "issued_by_user" | "last_updated_by_user"> {
68
78
  }
69
79
  export declare enum MI_STATUS {
70
80
  DRAFT = "DRAFT",
@@ -84,7 +94,9 @@ export declare enum MI_INCLUDE {
84
94
  inventory_logs = "inventory_logs",
85
95
  sent_for_approval_by_user = "sent_for_approval_by_user",
86
96
  issued_by_user = "issued_by_user",
87
- last_updated_by_user = "last_updated_by_user"
97
+ last_updated_by_user = "last_updated_by_user",
98
+ issued_for_non_onboarded_user = "issued_for_non_onboarded_user",
99
+ issued_for_onboarded_user = "issued_for_onboarded_user"
88
100
  }
89
101
  export declare enum MI_ITEM_INCLUDE {
90
102
  indent_item = "indent_item",
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MI_ITEM_INCLUDE = exports.MI_INCLUDE = exports.MI_STATUS = exports.MI_SOURCE = exports.MI_TABS = exports.MI_LIST_TYPES = void 0;
3
+ exports.MI_ITEM_INCLUDE = exports.MI_INCLUDE = exports.MI_STATUS = exports.MI_SOURCE = exports.MI_TABS = exports.MI_LIST_TYPES = exports.MI_ISSUED_FOR_USER_TYPE = void 0;
4
+ var MI_ISSUED_FOR_USER_TYPE;
5
+ (function (MI_ISSUED_FOR_USER_TYPE) {
6
+ MI_ISSUED_FOR_USER_TYPE["ONBOARDED_USER"] = "ONBOARDED_USER";
7
+ MI_ISSUED_FOR_USER_TYPE["NON_ONBOARDED_USER"] = "NON_ONBOARDED_USER";
8
+ })(MI_ISSUED_FOR_USER_TYPE || (exports.MI_ISSUED_FOR_USER_TYPE = MI_ISSUED_FOR_USER_TYPE = {}));
4
9
  var MI_LIST_TYPES;
5
10
  (function (MI_LIST_TYPES) {
6
11
  MI_LIST_TYPES["ALL"] = "ALL";
@@ -39,6 +44,8 @@ var MI_INCLUDE;
39
44
  MI_INCLUDE["sent_for_approval_by_user"] = "sent_for_approval_by_user";
40
45
  MI_INCLUDE["issued_by_user"] = "issued_by_user";
41
46
  MI_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
47
+ MI_INCLUDE["issued_for_non_onboarded_user"] = "issued_for_non_onboarded_user";
48
+ MI_INCLUDE["issued_for_onboarded_user"] = "issued_for_onboarded_user";
42
49
  })(MI_INCLUDE || (exports.MI_INCLUDE = MI_INCLUDE = {}));
43
50
  // MI Item Typings
44
51
  var MI_ITEM_INCLUDE;
@@ -76,6 +76,8 @@ export interface IUser {
76
76
  approved_items?: null | INestedItem[];
77
77
  approval_chains?: null | INestedApprovalChainEntry[];
78
78
  created_indents?: null | INestedIndent[];
79
+ indents_created_for_user?: null | INestedIndent[];
80
+ mi_issued_for_user?: null | INestedMI[];
79
81
  created_mis?: null | INestedMI[];
80
82
  mis_sent_for_approval?: null | INestedMI[];
81
83
  mis_issued?: null | INestedMI[];
@@ -141,7 +143,7 @@ export interface IUser {
141
143
  iads_terminated_by_user: INestedIAD[] | null;
142
144
  initiated_inventory_logs: INestedInventoryLog[] | null;
143
145
  }
144
- export interface INestedUser extends Omit<IUser, "updated_at" | "created_at" | "deleted_at" | "as_item_approver_for_company" | "as_vendor_approver_for_company" | "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" | "owned_companies" | "head_for_departments" | "created_item_subcategories" | "last_updated_item_subcategories" | "head_for_departments" | "approved_items" | "approval_chains" | "created_indents" | "created_mis" | "mis_sent_for_approval" | "mis_issued" | "mis_last_updated" | "created_prs" | "pr_sent_for_approval" | "pr_sent_to_purchase_location" | "last_updated_prs" | "created_rfqs" | "entity_approval_chains" | "as_contact_person_for_rfqs" | "as_contact_person_for_quotes" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "negotiations" | "created_pos" | "last_updated_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "created_grns" | "last_updated_grns" | "as_contact_person_for_asns" | "as_contact_person_for_grns" | "grns_sent_for_approval" | "grns_sent_to_store" | "mrns_sent_for_approval" | "as_contact_person_for_mrns" | "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" | "cancelled_asns" | "created_contact_people" | "updated_contact_people" | "last_updated_company_item_vendor_version" | "last_updated_root_entity_approval_config" | "as_part_of_root_entity_approval_chain_entries" | "as_part_of_root_entity_approval_chain" | "last_updated_root_entity_approval_chain" | "items_last_updated_by_user" | "copmany_vendors_last_updated_by_user" | "created_istds" | "last_updated_istds" | "source_contact_person_for_istd" | "dest_contact_person_for_istd" | "istds_sent_for_source_approval" | "istds_sent_for_dest_approval" | "istds_sent_for_dest_store" | "istds_marked_as_processed" | "istds_terminated" | "created_payment_terms" | "created_iads" | "user_last_updated_iads" | "as_approver_for_iads" | "iads_terminated_by_user" | "finalised_iads" | "assigned_roles" | "initiated_inventory_logs"> {
146
+ export interface INestedUser extends Omit<IUser, "updated_at" | "created_at" | "deleted_at" | "as_item_approver_for_company" | "as_vendor_approver_for_company" | "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" | "owned_companies" | "head_for_departments" | "created_item_subcategories" | "last_updated_item_subcategories" | "head_for_departments" | "approved_items" | "approval_chains" | "created_indents" | "indents_created_for_user" | "created_mis" | "mis_issued_for_user" | "mis_sent_for_approval" | "mis_issued" | "mis_last_updated" | "created_prs" | "pr_sent_for_approval" | "pr_sent_to_purchase_location" | "last_updated_prs" | "created_rfqs" | "entity_approval_chains" | "as_contact_person_for_rfqs" | "as_contact_person_for_quotes" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "negotiations" | "created_pos" | "last_updated_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "created_grns" | "last_updated_grns" | "as_contact_person_for_asns" | "as_contact_person_for_grns" | "grns_sent_for_approval" | "grns_sent_to_store" | "mrns_sent_for_approval" | "as_contact_person_for_mrns" | "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" | "cancelled_asns" | "created_contact_people" | "updated_contact_people" | "last_updated_company_item_vendor_version" | "last_updated_root_entity_approval_config" | "as_part_of_root_entity_approval_chain_entries" | "as_part_of_root_entity_approval_chain" | "last_updated_root_entity_approval_chain" | "items_last_updated_by_user" | "copmany_vendors_last_updated_by_user" | "created_istds" | "last_updated_istds" | "source_contact_person_for_istd" | "dest_contact_person_for_istd" | "istds_sent_for_source_approval" | "istds_sent_for_dest_approval" | "istds_sent_for_dest_store" | "istds_marked_as_processed" | "istds_terminated" | "created_payment_terms" | "created_iads" | "user_last_updated_iads" | "as_approver_for_iads" | "iads_terminated_by_user" | "finalised_iads" | "assigned_roles" | "initiated_inventory_logs"> {
145
147
  }
146
148
  export declare enum UserInclude {
147
149
  as_incharge_in_purchase_locations = "as_incharge_in_purchase_locations",
@@ -160,6 +162,8 @@ export declare enum UserInclude {
160
162
  approval_chains = "approval_chains",
161
163
  assigned_roles = "assigned_roles",
162
164
  negotiations = "negotiations",
165
+ indents_created_for_user = "indents_created_for_user",
166
+ mis_issued_for_user = "mis_issued_for_user",
163
167
  created_mis = "created_mis",
164
168
  mis_sent_for_approval = "mis_sent_for_approval",
165
169
  mis_issued = "mis_issued",
@@ -20,6 +20,8 @@ var UserInclude;
20
20
  UserInclude["approval_chains"] = "approval_chains";
21
21
  UserInclude["assigned_roles"] = "assigned_roles";
22
22
  UserInclude["negotiations"] = "negotiations";
23
+ UserInclude["indents_created_for_user"] = "indents_created_for_user";
24
+ UserInclude["mis_issued_for_user"] = "mis_issued_for_user";
23
25
  UserInclude["created_mis"] = "created_mis";
24
26
  UserInclude["mis_sent_for_approval"] = "mis_sent_for_approval";
25
27
  UserInclude["mis_issued"] = "mis_issued";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "9.53.0",
3
+ "version": "9.55.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",