kcommons 9.18.2 → 9.19.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.
package/build/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from "./typings/department.typings";
|
|
|
4
4
|
export * from "./typings/offices.typings";
|
|
5
5
|
export * from "./typings/user.typings";
|
|
6
6
|
export * from "./typings/itemCategory.typings";
|
|
7
|
+
export * from "./typings/itemSubcategory.typings";
|
|
7
8
|
export * from "./typings/approvalChain.typings";
|
|
8
9
|
export * from "./typings/approvalConfig.typings";
|
|
9
10
|
export * from "./typings/storeLocation.typings";
|
package/build/index.js
CHANGED
|
@@ -21,6 +21,7 @@ __exportStar(require("./typings/department.typings"), exports);
|
|
|
21
21
|
__exportStar(require("./typings/offices.typings"), exports);
|
|
22
22
|
__exportStar(require("./typings/user.typings"), exports);
|
|
23
23
|
__exportStar(require("./typings/itemCategory.typings"), exports);
|
|
24
|
+
__exportStar(require("./typings/itemSubcategory.typings"), exports);
|
|
24
25
|
__exportStar(require("./typings/approvalChain.typings"), exports);
|
|
25
26
|
__exportStar(require("./typings/approvalConfig.typings"), exports);
|
|
26
27
|
__exportStar(require("./typings/storeLocation.typings"), exports);
|
|
@@ -1,4 +1,40 @@
|
|
|
1
|
+
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
2
|
+
import { INestedCompany } from "./company.typings";
|
|
3
|
+
import { INestedItem } from "./item.typings";
|
|
4
|
+
import { INestedItemCategory } from "./itemCategory.typings";
|
|
5
|
+
import { INestedUser } from "./user.typings";
|
|
6
|
+
export declare enum ITEM_SUBCATEGORY_INCLUDE {
|
|
7
|
+
company = "company",
|
|
8
|
+
created_by = "created_by",
|
|
9
|
+
last_updated_by_user = "last_updated_by_user",
|
|
10
|
+
category = "category",
|
|
11
|
+
items = "items"
|
|
12
|
+
}
|
|
1
13
|
export interface IItemSubcategory {
|
|
14
|
+
id: string;
|
|
15
|
+
itemsubcategory_name: string;
|
|
16
|
+
subcategory_code: string;
|
|
17
|
+
parent_category_id: string;
|
|
18
|
+
created_by_id: string;
|
|
19
|
+
last_updated_by_id: string;
|
|
20
|
+
company_id: string;
|
|
21
|
+
is_enabled: boolean;
|
|
22
|
+
is_deleted: boolean;
|
|
23
|
+
deleted_at: string | null;
|
|
24
|
+
created_at: string;
|
|
25
|
+
updated_at: string;
|
|
26
|
+
company: INestedCompany | null;
|
|
27
|
+
created_by: INestedUser | null;
|
|
28
|
+
last_updated_by_user: INestedUser | null;
|
|
29
|
+
category: INestedItemCategory | null;
|
|
30
|
+
items: INestedItem[] | null;
|
|
31
|
+
}
|
|
32
|
+
export interface INestedItemSubcategory extends Omit<IItemSubcategory, "company" | "category" | "items" | "created_by" | "last_updated_by_user"> {
|
|
33
|
+
}
|
|
34
|
+
export interface IItemSubcategoryFilters {
|
|
35
|
+
name?: string;
|
|
36
|
+
parent_category_id?: string;
|
|
37
|
+
include?: ITEM_SUBCATEGORY_INCLUDE[];
|
|
2
38
|
}
|
|
3
|
-
export interface
|
|
39
|
+
export interface IItemSubcategoryFiltersWithPagination extends IPaginationFilters, IItemSubcategoryFilters {
|
|
4
40
|
}
|
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ITEM_SUBCATEGORY_INCLUDE = void 0;
|
|
4
|
+
var ITEM_SUBCATEGORY_INCLUDE;
|
|
5
|
+
(function (ITEM_SUBCATEGORY_INCLUDE) {
|
|
6
|
+
ITEM_SUBCATEGORY_INCLUDE["company"] = "company";
|
|
7
|
+
ITEM_SUBCATEGORY_INCLUDE["created_by"] = "created_by";
|
|
8
|
+
ITEM_SUBCATEGORY_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
|
|
9
|
+
ITEM_SUBCATEGORY_INCLUDE["category"] = "category";
|
|
10
|
+
ITEM_SUBCATEGORY_INCLUDE["items"] = "items";
|
|
11
|
+
})(ITEM_SUBCATEGORY_INCLUDE || (exports.ITEM_SUBCATEGORY_INCLUDE = ITEM_SUBCATEGORY_INCLUDE = {}));
|
|
@@ -33,6 +33,7 @@ import { INestedRootEntityApprovalChain } from "./company/rootEntityApproval/roo
|
|
|
33
33
|
import { INestedISTD } from "./company/istd/istd.typings";
|
|
34
34
|
import { INestedIAD } from "./company/iad/iad.typings";
|
|
35
35
|
import { INestedInventoryLog } from "./company/inventory/inventoryLogger.typings";
|
|
36
|
+
import { INestedItemSubcategory } from "./itemSubcategory.typings";
|
|
36
37
|
export interface IUser {
|
|
37
38
|
id: string;
|
|
38
39
|
is_enabled?: boolean | null;
|
|
@@ -69,6 +70,8 @@ export interface IUser {
|
|
|
69
70
|
as_contact_person_for_grns?: null | INestedGRN[];
|
|
70
71
|
owned_companies?: null | INestedCompany[];
|
|
71
72
|
head_for_departments?: null | INestedDepartment[];
|
|
73
|
+
created_item_subcategories: null | INestedItemSubcategory[];
|
|
74
|
+
last_updated_item_subcategories: INestedItemSubcategory[] | null;
|
|
72
75
|
approved_items?: null | INestedItem[];
|
|
73
76
|
approval_chains?: null | INestedApprovalChainEntry[];
|
|
74
77
|
created_indents?: null | INestedIndent[];
|
|
@@ -130,7 +133,7 @@ export interface IUser {
|
|
|
130
133
|
iads_terminated_by_user: INestedIAD[] | null;
|
|
131
134
|
initiated_inventory_logs: INestedInventoryLog[] | null;
|
|
132
135
|
}
|
|
133
|
-
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" | "approved_items" | "approval_chains" | "created_indents" | "created_mis" | "created_prs" | "pr_sent_for_approval" | "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" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "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"> {
|
|
136
|
+
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" | "created_prs" | "pr_sent_for_approval" | "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" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "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"> {
|
|
134
137
|
}
|
|
135
138
|
export declare enum UserInclude {
|
|
136
139
|
as_incharge_in_purchase_locations = "as_incharge_in_purchase_locations",
|
|
@@ -143,6 +146,8 @@ export declare enum UserInclude {
|
|
|
143
146
|
as_contact_person_for_grns = "as_contact_person_for_grns",
|
|
144
147
|
owned_companies = "owned_companies",
|
|
145
148
|
head_for_departments = "head_for_departments",
|
|
149
|
+
created_item_subcategories = "created_item_subcategories",
|
|
150
|
+
last_updated_item_subcategories = "last_updated_item_subcategories",
|
|
146
151
|
approved_items = "approved_items",
|
|
147
152
|
approval_chains = "approval_chains",
|
|
148
153
|
assigned_roles = "assigned_roles",
|
|
@@ -14,6 +14,8 @@ var UserInclude;
|
|
|
14
14
|
UserInclude["as_contact_person_for_grns"] = "as_contact_person_for_grns";
|
|
15
15
|
UserInclude["owned_companies"] = "owned_companies";
|
|
16
16
|
UserInclude["head_for_departments"] = "head_for_departments";
|
|
17
|
+
UserInclude["created_item_subcategories"] = "created_item_subcategories";
|
|
18
|
+
UserInclude["last_updated_item_subcategories"] = "last_updated_item_subcategories";
|
|
17
19
|
UserInclude["approved_items"] = "approved_items";
|
|
18
20
|
UserInclude["approval_chains"] = "approval_chains";
|
|
19
21
|
UserInclude["assigned_roles"] = "assigned_roles";
|