kcommons 14.16.0 → 14.18.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/typings/asn.typings.d.ts +9 -5
- package/build/typings/bom.typings.d.ts +0 -1
- package/build/typings/company/masters/po.typings.d.ts +39 -11
- package/build/typings/company/masters/po.typings.js +1 -0
- package/build/typings/company/masters/ves.typings.d.ts +7 -1
- package/build/typings/company/masters/ves.typings.js +1 -0
- package/build/typings/comparative.typings.d.ts +8 -1
- package/build/typings/comparative.typings.js +5 -1
- package/build/typings/department.typings.d.ts +1 -1
- package/build/typings/gate.typings.d.ts +1 -2
- package/build/typings/grn.typings.d.ts +0 -1
- package/build/typings/indent.typings.d.ts +0 -1
- package/build/typings/itemCategory.typings.d.ts +7 -0
- package/build/typings/kpis/basKPIS.typings.d.ts +0 -1
- package/build/typings/kpis/company/companyKpisCommons.typings.d.ts +0 -1
- package/build/typings/kpis/company/item/mainDashboard/inventoryAndItemDetailsKpi.typings.d.ts +1 -2
- package/build/typings/kpis/company/item/mainDashboard/mainItemDashboardSummaryKPI.typings.d.ts +1 -2
- package/build/typings/kpis/company/main/vendors/topCategoryvendorDistribution.typings.d.ts +0 -2
- package/build/typings/kpis/company/vendor/companyVendorPurchaseFlow.typings.d.ts +1 -2
- package/build/typings/kpis/company/vendor/companyVendornegotiationgain.typings.d.ts +1 -2
- package/build/typings/kpis/company/vendor/totalBusiness.typings.d.ts +1 -2
- package/build/typings/mi.typings.d.ts +9 -2
- package/build/typings/mi.typings.js +5 -1
- package/build/typings/mrn.typings.d.ts +0 -1
- package/build/typings/notifications.typings.d.ts +39 -16
- package/build/typings/notifications.typings.js +1 -0
- package/build/typings/offices.typings.d.ts +0 -1
- package/build/typings/pr.typings.d.ts +9 -2
- package/build/typings/pr.typings.js +5 -1
- package/build/typings/purchaseLocation.typings.d.ts +9 -0
- package/build/typings/rfq.typings.d.ts +13 -2
- package/build/typings/rfq.typings.js +5 -1
- package/build/typings/roles.typings.d.ts +12 -1
- package/build/typings/roles.typings.js +6 -1
- package/build/typings/storeLocation.typings.d.ts +0 -1
- package/build/typings/user.typings.d.ts +0 -1
- package/build/typings/vendorGroup.typings.d.ts +0 -1
- package/package.json +1 -1
|
@@ -218,19 +218,23 @@ export declare const ASN_COURIER_TRANSPORT_FIELD_PREFIX = "courier";
|
|
|
218
218
|
export declare const ASN_HAND_DELIVERY_TRANSPORT_FIELD_PREFIX = "hand_delivery";
|
|
219
219
|
export interface INestedASN extends Omit<IASN, "created_by_vendor" | "for_company" | "parent_po" | "shipping_store_location" | "items" | "associated_grns" | "cancelled_by_user" | "send_to_vendor_by_user_id" | "send_to_vendor_by_user_at" | "child_ves" | "metafields"> {
|
|
220
220
|
}
|
|
221
|
-
export interface
|
|
222
|
-
company_id?: string;
|
|
223
|
-
vendor_id?: string;
|
|
224
|
-
company_vendor_id?: string;
|
|
221
|
+
export interface IASNBaseFilters {
|
|
225
222
|
po_id?: string;
|
|
226
|
-
asn_id?: string;
|
|
227
223
|
include?: ASN_INCLUDE[];
|
|
228
224
|
name?: string | null;
|
|
229
225
|
status?: ASN_STATUS;
|
|
230
226
|
metafields_include?: ASN_METAFIELDS_INCLUDE[];
|
|
231
227
|
}
|
|
228
|
+
export interface IASNFilters extends IASNBaseFilters {
|
|
229
|
+
vendor_id?: string;
|
|
230
|
+
}
|
|
232
231
|
export interface IASNFiltersWIthPagination extends IPaginationFilters, IASNFilters {
|
|
233
232
|
}
|
|
233
|
+
export interface IASNFiltersForVendor extends IASNBaseFilters {
|
|
234
|
+
company_id?: string;
|
|
235
|
+
}
|
|
236
|
+
export interface IASNFiltersForVendorWithPagiantion extends IASNFiltersForVendor, IPaginationFilters {
|
|
237
|
+
}
|
|
234
238
|
export declare enum ASN_ITEM_INCLUDE {
|
|
235
239
|
company = "company",
|
|
236
240
|
item = "item",
|
|
@@ -5,7 +5,6 @@ import { INestedPOBom } from "./company/masters/po.typings";
|
|
|
5
5
|
import { INestedRFQBOM } from "./rfq.typings";
|
|
6
6
|
import { INestedUser } from "./user.typings";
|
|
7
7
|
export interface IBOMFilters {
|
|
8
|
-
company_id?: string;
|
|
9
8
|
is_enabled?: boolean;
|
|
10
9
|
name?: string;
|
|
11
10
|
include?: BOM_INCLUDE[];
|
|
@@ -18,7 +18,7 @@ import { INestedPOGRNItemJunction } from "./poGrnJunctionItems.typings";
|
|
|
18
18
|
import { INestedPurchaseLocation } from "../../purchaseLocation.typings";
|
|
19
19
|
import { INestedQuote } from "../../quote.typings";
|
|
20
20
|
import { INestedStoreLocation } from "../../storeLocation.typings";
|
|
21
|
-
import { INestedUser
|
|
21
|
+
import { INestedUser } from "../../user.typings";
|
|
22
22
|
import { INestedVendor } from "../../vendor.typings";
|
|
23
23
|
export declare enum PO_LIST_TYPES {
|
|
24
24
|
ALL = "ALL",
|
|
@@ -62,23 +62,33 @@ export declare enum PO_ITEM_ASCENDENCE_TYPE {
|
|
|
62
62
|
DIRECT = "DIRECT",
|
|
63
63
|
BOM = "BOM"
|
|
64
64
|
}
|
|
65
|
-
export interface
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
export interface IPOBaseFilters {
|
|
66
|
+
name?: string;
|
|
67
|
+
include?: PO_INCLUDE[];
|
|
68
|
+
metafields_include?: PO_METAFIELDS_INCLUDE[];
|
|
69
69
|
shipping_store_location_id?: string;
|
|
70
70
|
purchase_location_id?: string;
|
|
71
|
+
status?: PO_STATUS[];
|
|
72
|
+
}
|
|
73
|
+
/** --- START: PO Filters for Company --- */
|
|
74
|
+
export interface IPOFiltersForCompany extends IPOBaseFilters {
|
|
75
|
+
vendor_id?: string;
|
|
76
|
+
company_vendor_id?: string;
|
|
71
77
|
contact_person_id?: string;
|
|
72
78
|
external_contact_person_id?: string;
|
|
73
|
-
name?: string;
|
|
74
79
|
list_type?: PO_LIST_TYPES;
|
|
75
|
-
user?: IUser;
|
|
76
|
-
include?: PO_INCLUDE[];
|
|
77
|
-
metafields_include?: PO_METAFIELDS_INCLUDE[];
|
|
78
80
|
}
|
|
79
|
-
export interface
|
|
81
|
+
export interface IPOFiltersForCompanyWithPagination extends IPOFiltersForCompany, IPaginationFilters {
|
|
82
|
+
}
|
|
83
|
+
/** --- FIN: PO FIlters for Company --- */
|
|
84
|
+
/** --- START: PO Filters for Vendors --- */
|
|
85
|
+
export interface IPOFiltersForVendor extends IPOBaseFilters {
|
|
86
|
+
company_id?: string;
|
|
80
87
|
}
|
|
81
|
-
export interface
|
|
88
|
+
export interface IPOFiltersForVendorWithPagination extends IPOFiltersForVendor, IPaginationFilters {
|
|
89
|
+
}
|
|
90
|
+
/** --- FIN: PO Filters for Vendors --- */
|
|
91
|
+
export interface IPOFiltersForGRN extends Pick<IPOFiltersForCompany, "name" | "include" | "metafields_include"> {
|
|
82
92
|
}
|
|
83
93
|
export interface IPOFiltersForGRNWithPagination extends IPOFiltersForGRN, IPaginationFilters {
|
|
84
94
|
}
|
|
@@ -242,3 +252,21 @@ export interface IOpenPOApprovalData {
|
|
|
242
252
|
poData: IPurchaseOrder;
|
|
243
253
|
entityApprovalChainEntry: IEntityApprovalChainEntry;
|
|
244
254
|
}
|
|
255
|
+
/** START: (DEPRECATED) PO Filters */
|
|
256
|
+
/** @deprecated */
|
|
257
|
+
export interface IPOFilters {
|
|
258
|
+
include?: PO_INCLUDE[];
|
|
259
|
+
purchase_location_id?: string;
|
|
260
|
+
shipping_store_location_id?: string;
|
|
261
|
+
vendor_id?: string;
|
|
262
|
+
company_vendor_id?: string;
|
|
263
|
+
name?: string;
|
|
264
|
+
list_type?: PO_LIST_TYPES;
|
|
265
|
+
contact_person_id?: string;
|
|
266
|
+
external_contact_person_id?: string;
|
|
267
|
+
metafields_include?: PO_METAFIELDS_INCLUDE[];
|
|
268
|
+
}
|
|
269
|
+
/** @deprecated */
|
|
270
|
+
export interface IPOFiltersWithPagination extends IPOFilters, IPaginationFilters {
|
|
271
|
+
}
|
|
272
|
+
/** FIN: (DEPRECATED) PO Filters */
|
|
@@ -10,6 +10,7 @@ import { INestedVendor } from "../../vendor.typings";
|
|
|
10
10
|
import { INestedVESCheckpointTracking } from "../_junctions/vesCheckpointTracking.typings";
|
|
11
11
|
import { INestedCheckpoint } from "./checkpoints.typings";
|
|
12
12
|
import { INestedVESItem } from "./vesItem.typings";
|
|
13
|
+
import { INestedItem } from "../../item.typings";
|
|
13
14
|
export declare enum VES_REQUESTING_ENTITY_TYPE {
|
|
14
15
|
STORE_LOCATION = "store_location",
|
|
15
16
|
CHECKPOINT = "checkpoint"
|
|
@@ -113,11 +114,16 @@ export interface IFetchDocumentForVESByDocumentNoResponse {
|
|
|
113
114
|
document_type: VES_PARENT_DOCUMENT_TYPE;
|
|
114
115
|
}
|
|
115
116
|
export declare enum VES_METAFIELDS_INCLUDE {
|
|
116
|
-
vendor = "vendor"
|
|
117
|
+
vendor = "vendor",
|
|
118
|
+
items_data = "items_data"
|
|
117
119
|
}
|
|
118
120
|
export interface IVESMetafields {
|
|
119
121
|
vendor: INestedVendor | null;
|
|
122
|
+
items_data: INestedItem[] | null;
|
|
120
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* @deprecated
|
|
126
|
+
* */
|
|
121
127
|
export interface IVESMetafieldArgs {
|
|
122
128
|
ves_id: string | null;
|
|
123
129
|
}
|
|
@@ -48,4 +48,5 @@ var VES_INCLUDE;
|
|
|
48
48
|
var VES_METAFIELDS_INCLUDE;
|
|
49
49
|
(function (VES_METAFIELDS_INCLUDE) {
|
|
50
50
|
VES_METAFIELDS_INCLUDE["vendor"] = "vendor";
|
|
51
|
+
VES_METAFIELDS_INCLUDE["items_data"] = "items_data";
|
|
51
52
|
})(VES_METAFIELDS_INCLUDE || (exports.VES_METAFIELDS_INCLUDE = VES_METAFIELDS_INCLUDE = {}));
|
|
@@ -52,8 +52,9 @@ export interface IComparative {
|
|
|
52
52
|
child_pos: INestedPo[] | null;
|
|
53
53
|
approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
54
54
|
items: INestedComparativeItem[] | null;
|
|
55
|
+
metafields: IComparativeMetafields | null;
|
|
55
56
|
}
|
|
56
|
-
export interface INestedComparative extends Omit<IComparative, "company" | "parent_rfq" | "sent_for_approval_by_user" | "quotes" | "child_pos" | "approval_chain" | "items"> {
|
|
57
|
+
export interface INestedComparative extends Omit<IComparative, "company" | "parent_rfq" | "sent_for_approval_by_user" | "quotes" | "child_pos" | "approval_chain" | "items" | "metafields"> {
|
|
57
58
|
}
|
|
58
59
|
export interface IComparativeFilters {
|
|
59
60
|
rfq_id?: string;
|
|
@@ -99,3 +100,9 @@ export interface IComparativeItem {
|
|
|
99
100
|
}
|
|
100
101
|
export interface INestedComparativeItem extends Omit<IComparativeItem, "company" | "comparative" | "item" | "po_items" | "quote_items" | "lowest_rate_quote"> {
|
|
101
102
|
}
|
|
103
|
+
export interface IComparativeMetafields {
|
|
104
|
+
items_data: INestedItem[] | null;
|
|
105
|
+
}
|
|
106
|
+
export declare enum COMPARATIVE_METAFIELDS_INCLUDE {
|
|
107
|
+
items_data = "items_data"
|
|
108
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.COMPARATIVE_ITEM_INCLUDE = exports.COMPARATIVE_INCLUDE = exports.COMPARATIVE_STATUS = exports.COMPARATIVE_TABS = void 0;
|
|
3
|
+
exports.COMPARATIVE_METAFIELDS_INCLUDE = exports.COMPARATIVE_ITEM_INCLUDE = exports.COMPARATIVE_INCLUDE = exports.COMPARATIVE_STATUS = exports.COMPARATIVE_TABS = void 0;
|
|
4
4
|
var COMPARATIVE_TABS;
|
|
5
5
|
(function (COMPARATIVE_TABS) {
|
|
6
6
|
COMPARATIVE_TABS["COMMERCIAL"] = "Commercial";
|
|
@@ -40,3 +40,7 @@ var COMPARATIVE_ITEM_INCLUDE;
|
|
|
40
40
|
COMPARATIVE_ITEM_INCLUDE["quote_items"] = "quote_items";
|
|
41
41
|
COMPARATIVE_ITEM_INCLUDE["lowest_rate_quote"] = "lowest_rate_quote";
|
|
42
42
|
})(COMPARATIVE_ITEM_INCLUDE || (exports.COMPARATIVE_ITEM_INCLUDE = COMPARATIVE_ITEM_INCLUDE = {}));
|
|
43
|
+
var COMPARATIVE_METAFIELDS_INCLUDE;
|
|
44
|
+
(function (COMPARATIVE_METAFIELDS_INCLUDE) {
|
|
45
|
+
COMPARATIVE_METAFIELDS_INCLUDE["items_data"] = "items_data";
|
|
46
|
+
})(COMPARATIVE_METAFIELDS_INCLUDE || (exports.COMPARATIVE_METAFIELDS_INCLUDE = COMPARATIVE_METAFIELDS_INCLUDE = {}));
|
|
@@ -15,7 +15,7 @@ import { INestedPurchaseLocation } from "./purchaseLocation.typings";
|
|
|
15
15
|
import { INestedRole } from "./roles.typings";
|
|
16
16
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
17
17
|
import { INestedUser } from "./user.typings";
|
|
18
|
-
export interface IDepartmentFilters extends Partial<Pick<IDepartment, "
|
|
18
|
+
export interface IDepartmentFilters extends Partial<Pick<IDepartment, "office_id" | "store_location_id" | "purchase_location_id" | "gate_id" | "vendor_management_body_id" | "item_management_body_id" | "checkpoint_id">> {
|
|
19
19
|
name?: string;
|
|
20
20
|
type?: EntityTypes;
|
|
21
21
|
include?: DepartmentInclude[];
|
|
@@ -37,10 +37,9 @@ export interface IGate extends IAddress {
|
|
|
37
37
|
contact_person?: INestedUser | null;
|
|
38
38
|
corresponding_checkpoint?: INestedCheckpoint | null;
|
|
39
39
|
}
|
|
40
|
-
export interface INestedGate extends Omit<IGate, "
|
|
40
|
+
export interface INestedGate extends Omit<IGate, "`approval_config" | "departments" | "roles" | "target_store_locations" | "incharge" | "contact_person" | "corresponding_checkpoint"> {
|
|
41
41
|
}
|
|
42
42
|
export interface IGateFilters {
|
|
43
|
-
company_id?: string | null;
|
|
44
43
|
target_store_location_ids?: string[] | null;
|
|
45
44
|
name?: string | null;
|
|
46
45
|
include?: GATE_INCLUDE[] | null;
|
|
@@ -20,7 +20,6 @@ export declare enum INDENT_LIST_TYPE {
|
|
|
20
20
|
MY_APPROVALS = "MY_APPROVALS"
|
|
21
21
|
}
|
|
22
22
|
export interface IIndentFilters extends Partial<Pick<IIndent, "on_behalf_of_non_onboarded_user_id" | "on_behalf_of_onboarded_user_id">> {
|
|
23
|
-
company_id?: string;
|
|
24
23
|
department_id?: string;
|
|
25
24
|
store_location_id?: string;
|
|
26
25
|
name?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
1
2
|
import { INestedCompany } from "./company.typings";
|
|
2
3
|
import { ICompanyVendor, INestedCompanyVendors } from "./companyVendors.typings";
|
|
3
4
|
import { INestedItem } from "./item.typings";
|
|
@@ -27,3 +28,9 @@ export declare enum ItemCategoryInclude {
|
|
|
27
28
|
allowed_company_vendors_by_company = "allowed_company_vendors_by_company",
|
|
28
29
|
items = "items"
|
|
29
30
|
}
|
|
31
|
+
export interface IItemCategoryFilters {
|
|
32
|
+
name?: string | null;
|
|
33
|
+
include?: ItemCategoryInclude[] | null;
|
|
34
|
+
}
|
|
35
|
+
export interface IItemCategoryFiltersWithPagination extends IItemCategoryFilters, IPaginationFilters {
|
|
36
|
+
}
|
package/build/typings/kpis/company/item/mainDashboard/inventoryAndItemDetailsKpi.typings.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IItem } from "../../../../item.typings";
|
|
2
|
-
|
|
3
|
-
export interface IInventoryAndItemDetailsKPIReqFilters extends Pick<IBaseKPIFilters, "company_id"> {
|
|
2
|
+
export interface IInventoryAndItemDetailsKPIReqFilters {
|
|
4
3
|
item_id: string;
|
|
5
4
|
}
|
|
6
5
|
export interface IInventoryDataUnit {
|
package/build/typings/kpis/company/item/mainDashboard/mainItemDashboardSummaryKPI.typings.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export interface IMainItemDashboardSummaryKPIReqFilters extends Pick<IBaseKPIFilters, "company_id"> {
|
|
1
|
+
export interface IMainItemDashboardSummaryKPIReqFilters {
|
|
3
2
|
}
|
|
4
3
|
export interface IMainItemDashboardSummaryKPIResponse {
|
|
5
4
|
total_procurement_value: number | null;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export interface ICompanyVendorPurchaseFlowKPIFilters extends Pick<IBaseKPIFilters, "company_id"> {
|
|
1
|
+
export interface ICompanyVendorPurchaseFlowKPIFilters {
|
|
3
2
|
vendor_id: string;
|
|
4
3
|
}
|
|
5
4
|
export interface ICompanyVendorPurchaseFlowKPIResponse {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export interface ICompanyVendorNegotiationGainKPIFilters extends Pick<IBaseKPIFilters, "company_id"> {
|
|
1
|
+
export interface ICompanyVendorNegotiationGainKPIFilters {
|
|
3
2
|
vendor_id: string;
|
|
4
3
|
}
|
|
5
4
|
export interface IRecentNegotiatedRFQData {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export interface ITotalBusinessWithVendorKPIFilters extends Pick<IBaseKPIFilters, "company_id"> {
|
|
1
|
+
export interface ITotalBusinessWithVendorKPIFilters {
|
|
3
2
|
company_vendor_id: string;
|
|
4
3
|
}
|
|
5
4
|
export interface ITotalBusinessWithVendorKPIResponse {
|
|
@@ -31,10 +31,10 @@ export declare enum MI_SOURCE {
|
|
|
31
31
|
}
|
|
32
32
|
export interface IMIFilters extends Partial<Pick<IMI, "issued_for_non_onboarded_user_id" | "issued_for_onboarded_user_id">> {
|
|
33
33
|
include?: MI_INCLUDE[];
|
|
34
|
-
company_id?: string;
|
|
35
34
|
store_location_id?: string;
|
|
36
35
|
list_type?: MI_LIST_TYPES;
|
|
37
36
|
name?: string;
|
|
37
|
+
metafields_include?: MI_METAFIELDS_INCLUDE[];
|
|
38
38
|
}
|
|
39
39
|
export interface IMIFiltersWithPagination extends IPaginationFilters, IMIFilters {
|
|
40
40
|
}
|
|
@@ -74,8 +74,9 @@ export interface IMI {
|
|
|
74
74
|
sent_for_approval_by_user: INestedUser | null;
|
|
75
75
|
issued_by_user: INestedUser | null;
|
|
76
76
|
last_updated_by_user: INestedUser | null;
|
|
77
|
+
metafields: IMIMetafields | null;
|
|
77
78
|
}
|
|
78
|
-
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"> {
|
|
79
|
+
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" | "metafields"> {
|
|
79
80
|
}
|
|
80
81
|
export declare enum MI_STATUS {
|
|
81
82
|
DRAFT = "DRAFT",
|
|
@@ -123,3 +124,9 @@ export interface IOpenMIApprovalData {
|
|
|
123
124
|
userData: IUser;
|
|
124
125
|
entityApprovalChainEntry: IEntityApprovalChainEntry;
|
|
125
126
|
}
|
|
127
|
+
export interface IMIMetafields {
|
|
128
|
+
items_data: INestedItem[] | null;
|
|
129
|
+
}
|
|
130
|
+
export declare enum MI_METAFIELDS_INCLUDE {
|
|
131
|
+
items_data = "items_data"
|
|
132
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
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 = exports.MI_ISSUED_FOR_USER_TYPE = void 0;
|
|
3
|
+
exports.MI_METAFIELDS_INCLUDE = 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
4
|
var MI_ISSUED_FOR_USER_TYPE;
|
|
5
5
|
(function (MI_ISSUED_FOR_USER_TYPE) {
|
|
6
6
|
MI_ISSUED_FOR_USER_TYPE["ONBOARDED_USER"] = "ONBOARDED_USER";
|
|
@@ -56,3 +56,7 @@ var MI_ITEM_INCLUDE;
|
|
|
56
56
|
MI_ITEM_INCLUDE["company"] = "company";
|
|
57
57
|
MI_ITEM_INCLUDE["parent_mi"] = "parent_mi";
|
|
58
58
|
})(MI_ITEM_INCLUDE || (exports.MI_ITEM_INCLUDE = MI_ITEM_INCLUDE = {}));
|
|
59
|
+
var MI_METAFIELDS_INCLUDE;
|
|
60
|
+
(function (MI_METAFIELDS_INCLUDE) {
|
|
61
|
+
MI_METAFIELDS_INCLUDE["items_data"] = "items_data";
|
|
62
|
+
})(MI_METAFIELDS_INCLUDE || (exports.MI_METAFIELDS_INCLUDE = MI_METAFIELDS_INCLUDE = {}));
|
|
@@ -15,6 +15,15 @@ export declare enum NOTIFICATION_INCLUDE {
|
|
|
15
15
|
user = "user",
|
|
16
16
|
vendor = "vendor"
|
|
17
17
|
}
|
|
18
|
+
export declare enum NOTIFICAITON_CATEGORIES {
|
|
19
|
+
INDIVIDUAL = "INDIVIDUAL",
|
|
20
|
+
GROUP = "GROUP"
|
|
21
|
+
}
|
|
22
|
+
export declare enum GROUP_NOTIFICATION_TYPES {
|
|
23
|
+
ENTITY_DEPENDENT = "ENTITY_DEPENDENT",
|
|
24
|
+
PRIVILEGE_DEPENDENT = "PRIVILEGE_DEPENDENT",
|
|
25
|
+
ENTITY_PRIVILEGE_DEPENDENT = "ENTITY_PRIVILEGE_DEPENDENT"
|
|
26
|
+
}
|
|
18
27
|
export interface INotification {
|
|
19
28
|
id: string;
|
|
20
29
|
company_id: string;
|
|
@@ -35,15 +44,24 @@ export interface INotification {
|
|
|
35
44
|
}
|
|
36
45
|
export interface INestedNotification extends Omit<INotification, "company" | "vendor" | "user"> {
|
|
37
46
|
}
|
|
38
|
-
export
|
|
39
|
-
|
|
40
|
-
GROUP = "GROUP"
|
|
47
|
+
export interface INotificationBaseFilters extends Partial<Pick<INotification, "read">> {
|
|
48
|
+
include?: NOTIFICATION_INCLUDE[];
|
|
41
49
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
50
|
+
/** --- START: Notifications for Company --- */
|
|
51
|
+
export interface INotificationFiltersForCompany extends INotificationBaseFilters {
|
|
52
|
+
}
|
|
53
|
+
export interface INotificationFiltersForCompanyWithPagination extends INotificationFiltersForCompany, IPaginationFilters {
|
|
54
|
+
}
|
|
55
|
+
export interface INotificationForCompanyWithTargetMonthReqFilters extends INotificationFiltersForCompany {
|
|
56
|
+
targetMonthDate: string;
|
|
46
57
|
}
|
|
58
|
+
/** --- FIN: Notifications for Company --- */
|
|
59
|
+
/** --- START: Notifications Filters for Vendors --- */
|
|
60
|
+
export interface INotificationFiltersForVendor extends INotificationBaseFilters, Partial<Pick<INotification, "company_id">> {
|
|
61
|
+
}
|
|
62
|
+
export interface INotificationFilterForVendorWithPagiantion extends INotificationFiltersForVendor, IPaginationFilters {
|
|
63
|
+
}
|
|
64
|
+
/** --- FIN: NOtification Filters for Vendors --- */
|
|
47
65
|
export interface IEntityDependentNotificaiton {
|
|
48
66
|
type: GROUP_NOTIFICATION_TYPES.ENTITY_DEPENDENT;
|
|
49
67
|
entity_type: EntityTypes;
|
|
@@ -81,18 +99,23 @@ export interface INotifcationReqData {
|
|
|
81
99
|
notification: IIndividualNotification;
|
|
82
100
|
template: INotificationTemplate;
|
|
83
101
|
}
|
|
84
|
-
export interface
|
|
102
|
+
export interface INotificationForTargetMonthResponse {
|
|
103
|
+
data: INotification[];
|
|
104
|
+
}
|
|
105
|
+
/** --- START: (DEPRECATED) Notification Filters --- */
|
|
106
|
+
/** @deprecated */
|
|
107
|
+
export interface INotificationFilters {
|
|
108
|
+
company_id?: string;
|
|
109
|
+
read?: boolean;
|
|
110
|
+
vendor_id?: string;
|
|
111
|
+
user_id?: string;
|
|
85
112
|
include?: NOTIFICATION_INCLUDE[];
|
|
86
113
|
}
|
|
114
|
+
/** @deprecated */
|
|
87
115
|
export interface INotificationFiltersWithPagination extends INotificationFilters, IPaginationFilters {
|
|
88
116
|
}
|
|
89
|
-
|
|
90
|
-
|
|
117
|
+
/** @deprecated */
|
|
118
|
+
export interface INotificationForTargetMonthReqFilters extends INotificationFilters {
|
|
91
119
|
targetMonthDate: string;
|
|
92
|
-
vendor_id: string | null;
|
|
93
|
-
user_id: string | null;
|
|
94
|
-
include?: NOTIFICATION_INCLUDE[];
|
|
95
|
-
}
|
|
96
|
-
export interface INotificationForTargetMonthResponse {
|
|
97
|
-
data: INotification[];
|
|
98
120
|
}
|
|
121
|
+
/** --- FIN: (DEPRECATED) Notification Filters */
|
|
@@ -23,3 +23,4 @@ var GROUP_NOTIFICATION_TYPES;
|
|
|
23
23
|
GROUP_NOTIFICATION_TYPES["PRIVILEGE_DEPENDENT"] = "PRIVILEGE_DEPENDENT";
|
|
24
24
|
GROUP_NOTIFICATION_TYPES["ENTITY_PRIVILEGE_DEPENDENT"] = "ENTITY_PRIVILEGE_DEPENDENT";
|
|
25
25
|
})(GROUP_NOTIFICATION_TYPES || (exports.GROUP_NOTIFICATION_TYPES = GROUP_NOTIFICATION_TYPES = {}));
|
|
26
|
+
/** --- FIN: (DEPRECATED) Notification Filters */
|
|
@@ -9,7 +9,6 @@ import { INestedUser } from "./user.typings";
|
|
|
9
9
|
import { IAddress } from "./common/address.typings";
|
|
10
10
|
export interface IOfficeFilters {
|
|
11
11
|
name?: string;
|
|
12
|
-
company_id?: string;
|
|
13
12
|
include?: OfficeInclude[];
|
|
14
13
|
}
|
|
15
14
|
export interface IOfficeFiltersWithPagination extends IPaginationFilters, IOfficeFilters {
|
|
@@ -50,12 +50,12 @@ export declare enum PR_INCLUDE {
|
|
|
50
50
|
}
|
|
51
51
|
export interface IPRFilters {
|
|
52
52
|
include?: PR_INCLUDE[];
|
|
53
|
-
company_id?: string;
|
|
54
53
|
user_id?: string;
|
|
55
54
|
name?: string;
|
|
56
55
|
status?: PR_STATUS;
|
|
57
56
|
list_type?: PR_LIST_TYPE;
|
|
58
57
|
purchase_location_id?: string;
|
|
58
|
+
metafields_include?: PR_METAFIELDS_INCLUDE[];
|
|
59
59
|
}
|
|
60
60
|
export interface IPRFiltersWithPagination extends IPaginationFilters, IPRFilters {
|
|
61
61
|
}
|
|
@@ -96,8 +96,9 @@ export interface IPR {
|
|
|
96
96
|
updated_by_user: INestedUser | null;
|
|
97
97
|
sent_to_purchase_location_by: INestedUser | null;
|
|
98
98
|
child_rfqs: INestedRFQ[] | null;
|
|
99
|
+
metafields: IPRMetafields | null;
|
|
99
100
|
}
|
|
100
|
-
export interface INestedPR extends Omit<IPR, "created_by_user" | "company" | "parent_indent" | "target_purchase_location" | "approval_chain" | "items" | "referenced_rfq_items" | "sent_for_approval_by" | "updated_by_user" | "sent_to_purchase_location_by" | "parent_store_location" | "child_rfqs"> {
|
|
101
|
+
export interface INestedPR extends Omit<IPR, "created_by_user" | "company" | "parent_indent" | "target_purchase_location" | "approval_chain" | "items" | "referenced_rfq_items" | "sent_for_approval_by" | "updated_by_user" | "sent_to_purchase_location_by" | "parent_store_location" | "child_rfqs" | "metafields"> {
|
|
101
102
|
}
|
|
102
103
|
export declare enum PR_ITEM_INCLUDE {
|
|
103
104
|
company = "company",
|
|
@@ -134,3 +135,9 @@ export interface IOpenPRApprovalData {
|
|
|
134
135
|
userData: IUser;
|
|
135
136
|
entityApprovalChainEntry: IEntityApprovalChainEntry;
|
|
136
137
|
}
|
|
138
|
+
export interface IPRMetafields {
|
|
139
|
+
items_data: INestedItem[] | null;
|
|
140
|
+
}
|
|
141
|
+
export declare enum PR_METAFIELDS_INCLUDE {
|
|
142
|
+
items_data = "items_data"
|
|
143
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PR_PRIORITY_TYPES = exports.PR_ITEM_INCLUDE = exports.PR_INCLUDE = exports.PR_STATUS = exports.PR_SOURCE = exports.PR_TABS = exports.PR_LIST_TYPE = void 0;
|
|
3
|
+
exports.PR_METAFIELDS_INCLUDE = exports.PR_PRIORITY_TYPES = exports.PR_ITEM_INCLUDE = exports.PR_INCLUDE = exports.PR_STATUS = exports.PR_SOURCE = exports.PR_TABS = exports.PR_LIST_TYPE = void 0;
|
|
4
4
|
var PR_LIST_TYPE;
|
|
5
5
|
(function (PR_LIST_TYPE) {
|
|
6
6
|
PR_LIST_TYPE["ALL"] = "ALL";
|
|
@@ -60,3 +60,7 @@ exports.PR_PRIORITY_TYPES = {
|
|
|
60
60
|
MEDIUM: "Medium",
|
|
61
61
|
HIGH: "High",
|
|
62
62
|
};
|
|
63
|
+
var PR_METAFIELDS_INCLUDE;
|
|
64
|
+
(function (PR_METAFIELDS_INCLUDE) {
|
|
65
|
+
PR_METAFIELDS_INCLUDE["items_data"] = "items_data";
|
|
66
|
+
})(PR_METAFIELDS_INCLUDE || (exports.PR_METAFIELDS_INCLUDE = PR_METAFIELDS_INCLUDE = {}));
|
|
@@ -8,6 +8,7 @@ import { INestedRole } from "./roles.typings";
|
|
|
8
8
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
9
9
|
import { INestedUser } from "./user.typings";
|
|
10
10
|
import { IAddress } from "./common/address.typings";
|
|
11
|
+
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
11
12
|
export declare enum PurchaseLocationInclude {
|
|
12
13
|
company = "company",
|
|
13
14
|
incharge = "incharge",
|
|
@@ -44,3 +45,11 @@ export interface IPurchaseLocation extends IAddress {
|
|
|
44
45
|
}
|
|
45
46
|
export interface INestedPurchaseLocation extends Omit<IPurchaseLocation, "company" | "incharge" | "approvalConfigs" | "departments" | "roles" | "prs" | "rfqs" | "pos" | "associated_offices" | "target_store_locations"> {
|
|
46
47
|
}
|
|
48
|
+
export interface IPurchaseLocationFilters {
|
|
49
|
+
name?: string;
|
|
50
|
+
office_ids?: string[];
|
|
51
|
+
store_location_ids?: string[];
|
|
52
|
+
include: PurchaseLocationInclude[];
|
|
53
|
+
}
|
|
54
|
+
export interface IPurchaseLocationFiltersWithPagination extends IPaginationFilters, IPurchaseLocationFilters {
|
|
55
|
+
}
|
|
@@ -27,11 +27,11 @@ export declare enum RFQ_TABS {
|
|
|
27
27
|
LOGS = "LOGS"
|
|
28
28
|
}
|
|
29
29
|
export interface IRFQFilters {
|
|
30
|
-
company_id?: string;
|
|
31
30
|
parent_purchase_location_id?: string;
|
|
32
31
|
name?: string;
|
|
33
32
|
list_type?: RFQ_LIST_TYPES;
|
|
34
33
|
include?: RFQ_INCLUDES[];
|
|
34
|
+
metafields_include?: RFQ_METAFIELDS_INCLUDE[];
|
|
35
35
|
}
|
|
36
36
|
export declare enum RFQVendorType {
|
|
37
37
|
DIRECT = "DIRECT",
|
|
@@ -123,8 +123,9 @@ export interface IRFQ {
|
|
|
123
123
|
additional_vendors?: INestedVendor[] | null;
|
|
124
124
|
boms: INestedRFQBOM[] | null;
|
|
125
125
|
parent_prs: INestedPR[] | null;
|
|
126
|
+
metafields: IRFQMetafields | null;
|
|
126
127
|
}
|
|
127
|
-
export interface INestedRFQ extends Omit<IRFQ, "company" | "parent_purchase_location" | "created_by_user" | "shipping_store_location" | "contact_person" | "sent_for_approval_by" | "sent_to_vendors_by" | "quotes" | "items" | "approval_chain" | "rfq_vendor_groups" | "rfq_vendors" | "additional_vendors" | "boms" | "comparative" | "parent_prs"> {
|
|
128
|
+
export interface INestedRFQ extends Omit<IRFQ, "company" | "parent_purchase_location" | "created_by_user" | "shipping_store_location" | "contact_person" | "sent_for_approval_by" | "sent_to_vendors_by" | "quotes" | "items" | "approval_chain" | "rfq_vendor_groups" | "rfq_vendors" | "additional_vendors" | "boms" | "comparative" | "parent_prs" | "metafields"> {
|
|
128
129
|
}
|
|
129
130
|
export declare enum RFQ_ITEM_INCLUDE {
|
|
130
131
|
parent_rfq = "parent_rfq",
|
|
@@ -169,6 +170,10 @@ export interface IRFQItem {
|
|
|
169
170
|
}
|
|
170
171
|
export interface INestedRFQItem extends Omit<IRFQItem, "parent_rfq" | "created_by_user" | "parent_pr" | "corresponding_pr_item" | "associated_quote_items" | "parent_rfq_bom" | "item"> {
|
|
171
172
|
}
|
|
173
|
+
export interface IRFQItemsFilters extends IPaginationFilters {
|
|
174
|
+
rfq_id?: string;
|
|
175
|
+
include?: RFQ_ITEM_INCLUDE[];
|
|
176
|
+
}
|
|
172
177
|
export declare enum RFQ_BOM_INCLUDE {
|
|
173
178
|
parent_rfq = "parent_rfq",
|
|
174
179
|
bom = "bom",
|
|
@@ -201,3 +206,9 @@ export interface IOpenRFQApprovalData {
|
|
|
201
206
|
userData: IUser;
|
|
202
207
|
rfqCompanyVendors: ICompanyVendor[];
|
|
203
208
|
}
|
|
209
|
+
export interface IRFQMetafields {
|
|
210
|
+
items_data: INestedItem[] | null;
|
|
211
|
+
}
|
|
212
|
+
export declare enum RFQ_METAFIELDS_INCLUDE {
|
|
213
|
+
items_data = "items_data"
|
|
214
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RFQ_BOM_INCLUDE = exports.RFQ_ITEM_INCLUDE = exports.BIDDING_TYPES = exports.RFQ_ITEM_TYPE = exports.RFQ_STATUS = exports.RFQ_INCLUDES = exports.RFQVendorType = exports.RFQ_TABS = exports.RFQ_LIST_TYPES = void 0;
|
|
3
|
+
exports.RFQ_METAFIELDS_INCLUDE = exports.RFQ_BOM_INCLUDE = exports.RFQ_ITEM_INCLUDE = exports.BIDDING_TYPES = exports.RFQ_ITEM_TYPE = exports.RFQ_STATUS = exports.RFQ_INCLUDES = exports.RFQVendorType = exports.RFQ_TABS = exports.RFQ_LIST_TYPES = void 0;
|
|
4
4
|
var RFQ_LIST_TYPES;
|
|
5
5
|
(function (RFQ_LIST_TYPES) {
|
|
6
6
|
RFQ_LIST_TYPES["ALL"] = "ALL";
|
|
@@ -82,3 +82,7 @@ var RFQ_BOM_INCLUDE;
|
|
|
82
82
|
RFQ_BOM_INCLUDE["bom"] = "bom";
|
|
83
83
|
RFQ_BOM_INCLUDE["referenced_rfq_item"] = "referenced_rfq_item";
|
|
84
84
|
})(RFQ_BOM_INCLUDE || (exports.RFQ_BOM_INCLUDE = RFQ_BOM_INCLUDE = {}));
|
|
85
|
+
var RFQ_METAFIELDS_INCLUDE;
|
|
86
|
+
(function (RFQ_METAFIELDS_INCLUDE) {
|
|
87
|
+
RFQ_METAFIELDS_INCLUDE["items_data"] = "items_data";
|
|
88
|
+
})(RFQ_METAFIELDS_INCLUDE || (exports.RFQ_METAFIELDS_INCLUDE = RFQ_METAFIELDS_INCLUDE = {}));
|
|
@@ -30,7 +30,7 @@ export declare enum RolesInclude {
|
|
|
30
30
|
checkpoint = "checkpoint",
|
|
31
31
|
associated_queue_jobs = "associated_queue_jobs"
|
|
32
32
|
}
|
|
33
|
-
export interface IRoleFilters extends Partial<Pick<IRoles, "
|
|
33
|
+
export interface IRoleFilters extends Partial<Pick<IRoles, "store_location_id" | "purchase_location_id" | "gate_id" | "office_id" | "vendor_management_body_id" | "item_management_body_id" | "checkpoint_id">> {
|
|
34
34
|
type?: string;
|
|
35
35
|
name?: string;
|
|
36
36
|
department_ids?: string[];
|
|
@@ -96,3 +96,14 @@ export interface IPermissions extends Record<string | PERMISSION_ACTIONS, any> {
|
|
|
96
96
|
}
|
|
97
97
|
export interface INestedPermission extends Omit<IPermissions, "company" | "parent_role"> {
|
|
98
98
|
}
|
|
99
|
+
export interface IPermissionFilters {
|
|
100
|
+
role_ids?: string[];
|
|
101
|
+
include?: PermissionInclude[];
|
|
102
|
+
document_types?: PERMISSION_RESOURCES[];
|
|
103
|
+
}
|
|
104
|
+
export interface IPermissionFiltersWithPagination extends IPaginationFilters, IPermissionFilters {
|
|
105
|
+
}
|
|
106
|
+
export declare enum PermissionInclude {
|
|
107
|
+
company = "company",
|
|
108
|
+
parent_role = "parent_role"
|
|
109
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RolesInclude = void 0;
|
|
3
|
+
exports.PermissionInclude = exports.RolesInclude = void 0;
|
|
4
4
|
const permission_constants_1 = require("../constants/permission.constants");
|
|
5
5
|
// export enum RolesInclude {
|
|
6
6
|
// permissions = 'permissions',
|
|
@@ -23,3 +23,8 @@ var RolesInclude;
|
|
|
23
23
|
RolesInclude["checkpoint"] = "checkpoint";
|
|
24
24
|
RolesInclude["associated_queue_jobs"] = "associated_queue_jobs";
|
|
25
25
|
})(RolesInclude || (exports.RolesInclude = RolesInclude = {}));
|
|
26
|
+
var PermissionInclude;
|
|
27
|
+
(function (PermissionInclude) {
|
|
28
|
+
PermissionInclude["company"] = "company";
|
|
29
|
+
PermissionInclude["parent_role"] = "parent_role";
|
|
30
|
+
})(PermissionInclude || (exports.PermissionInclude = PermissionInclude = {}));
|
|
@@ -25,7 +25,6 @@ import { INestedVES } from "./company/masters/ves.typings";
|
|
|
25
25
|
import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
|
|
26
26
|
export interface IStoreLocationFilters {
|
|
27
27
|
name?: string;
|
|
28
|
-
company_id?: string;
|
|
29
28
|
served_by_purchase_location_id?: string;
|
|
30
29
|
parent_store_location_id?: string;
|
|
31
30
|
office_id?: string;
|