kcommons 5.6.2 → 5.6.4
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.
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import { INestedApprovalConfig } from "./approvalConfig.typings";
|
|
2
2
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
3
3
|
import { INestedDepartment } from "./department.typings";
|
|
4
|
-
import { GATE_INCLUDE } from "./grn.typings";
|
|
5
4
|
import { INestedRole } from "./roles.typings";
|
|
6
5
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
6
|
+
import { INestedUser } from "./user.typings";
|
|
7
7
|
import { IAddress } from "./utils/address.typings";
|
|
8
|
+
export declare enum GATE_INCLUDE {
|
|
9
|
+
approval_configs = "approval_configs",
|
|
10
|
+
departments = "departments",
|
|
11
|
+
roles = "roles",
|
|
12
|
+
target_store_locations = "target_store_locations",
|
|
13
|
+
incharge = "incharge",
|
|
14
|
+
contact_person = "contact_person"
|
|
15
|
+
}
|
|
8
16
|
export interface IGate extends IAddress {
|
|
9
17
|
id: string;
|
|
10
18
|
gate_code: string;
|
|
@@ -22,8 +30,10 @@ export interface IGate extends IAddress {
|
|
|
22
30
|
departments?: INestedDepartment[] | null;
|
|
23
31
|
roles?: INestedRole[] | null;
|
|
24
32
|
target_store_locations?: INestedStoreLocation[] | null;
|
|
33
|
+
incharge?: INestedUser | null;
|
|
34
|
+
contact_person?: INestedUser | null;
|
|
25
35
|
}
|
|
26
|
-
export interface INestedGate extends Omit<IGate, " approval_config" | "departments" | "roles" | "target_store_locations"> {
|
|
36
|
+
export interface INestedGate extends Omit<IGate, " approval_config" | "departments" | "roles" | "target_store_locations" | "incharge" | "contact_person"> {
|
|
27
37
|
}
|
|
28
38
|
export interface IGateFilters {
|
|
29
39
|
company_id?: string | null;
|
|
@@ -1,2 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GATE_INCLUDE = void 0;
|
|
4
|
+
var GATE_INCLUDE;
|
|
5
|
+
(function (GATE_INCLUDE) {
|
|
6
|
+
GATE_INCLUDE["approval_configs"] = "approval_configs";
|
|
7
|
+
GATE_INCLUDE["departments"] = "departments";
|
|
8
|
+
GATE_INCLUDE["roles"] = "roles";
|
|
9
|
+
GATE_INCLUDE["target_store_locations"] = "target_store_locations";
|
|
10
|
+
GATE_INCLUDE["incharge"] = "incharge";
|
|
11
|
+
GATE_INCLUDE["contact_person"] = "contact_person";
|
|
12
|
+
})(GATE_INCLUDE || (exports.GATE_INCLUDE = GATE_INCLUDE = {}));
|
|
@@ -1,10 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GATE_INCLUDE = void 0;
|
|
4
|
-
var GATE_INCLUDE;
|
|
5
|
-
(function (GATE_INCLUDE) {
|
|
6
|
-
GATE_INCLUDE["approval_configs"] = "approval_configs";
|
|
7
|
-
GATE_INCLUDE["departments"] = "departments";
|
|
8
|
-
GATE_INCLUDE["roles"] = "roles";
|
|
9
|
-
GATE_INCLUDE["target_store_locations"] = "target_store_locations";
|
|
10
|
-
})(GATE_INCLUDE || (exports.GATE_INCLUDE = GATE_INCLUDE = {}));
|
|
@@ -2,6 +2,7 @@ import { INestedApprovalChainEntry } from "./approvalChain.typings";
|
|
|
2
2
|
import { INestedCompany } from "./company.typings";
|
|
3
3
|
import { INestedDepartment } from "./department.typings";
|
|
4
4
|
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
5
|
+
import { INestedGate } from "./gate.typings";
|
|
5
6
|
import { INestedIndent } from "./indent.typings";
|
|
6
7
|
import { INestedItem } from "./item.typings";
|
|
7
8
|
import { INestedMI } from "./mi.typings";
|
|
@@ -41,8 +42,10 @@ export interface IUser {
|
|
|
41
42
|
as_incharge_in_purchase_locations?: null | INestedPurchaseLocation[];
|
|
42
43
|
as_incharge_in_store_locations?: null | INestedStoreLocation[];
|
|
43
44
|
as_incharge_in_offices?: null | INestedOffice[];
|
|
45
|
+
as_incharge_in_gates?: null | INestedGate[];
|
|
44
46
|
as_contact_person_companies?: null | INestedCompany[];
|
|
45
47
|
as_contact_person_offices?: null | INestedOffice[];
|
|
48
|
+
as_contact_person_gates?: null | INestedGate[];
|
|
46
49
|
owned_companies?: null | INestedCompany[];
|
|
47
50
|
head_for_departments?: null | INestedDepartment[];
|
|
48
51
|
approved_items?: null | INestedItem[];
|
|
@@ -62,7 +65,7 @@ export interface IUser {
|
|
|
62
65
|
pos_sent_for_approval?: null | INestedPo[];
|
|
63
66
|
pos_sent_to_vendors?: null | INestedPo[];
|
|
64
67
|
}
|
|
65
|
-
export interface INestedUser extends Omit<IUser, "reporting_to" | "active_company" | "active_role" | "subordinates" | "otps" | "as_incharge_in_purchase_locations" | "as_incharge_in_store_locations" | "as_incharge_in_offices" | "as_contact_person_companies" | "as_contact_person_offices" | "owned_companies" | "head_for_departments" | "approved_items" | "approval_chains" | "created_indents" | "created_mis" | "created_prs" | "created_rfqs" | "entity_approval_chains" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "assigned_roles" | "negotiations" | "created_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors"> {
|
|
68
|
+
export interface INestedUser extends Omit<IUser, "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" | "created_rfqs" | "entity_approval_chains" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "assigned_roles" | "negotiations" | "created_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors"> {
|
|
66
69
|
}
|
|
67
70
|
export declare enum UserInclude {
|
|
68
71
|
as_incharge_in_purchase_locations = "as_incharge_in_purchase_locations",
|