kcommons 14.28.3 → 15.1.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/constants/vendorPermission.constants.d.ts +19 -0
- package/build/constants/vendorPermission.constants.js +34 -0
- package/build/index.d.ts +4 -0
- package/build/index.js +4 -0
- package/build/typings/asn.typings.d.ts +16 -2
- package/build/typings/asn.typings.js +3 -0
- package/build/typings/company/masters/po.typings.d.ts +37 -31
- package/build/typings/company/masters/po.typings.js +2 -0
- package/build/typings/company/masters/ves.typings.d.ts +9 -1
- package/build/typings/companySepcificVendorItems.typings.d.ts +20 -2
- package/build/typings/companySepcificVendorItems.typings.js +9 -1
- package/build/typings/companyVendors.typings.d.ts +26 -1
- package/build/typings/companyVendors.typings.js +8 -1
- package/build/typings/notifications.typings.d.ts +3 -0
- package/build/typings/quote.typings.d.ts +15 -4
- package/build/typings/quote.typings.js +3 -0
- package/build/typings/rfq.typings.d.ts +9 -2
- package/build/typings/vendor/vendorPermission.typings.d.ts +41 -0
- package/build/typings/vendor/vendorPermission.typings.js +10 -0
- package/build/typings/vendor/vendorRole.typings.d.ts +41 -0
- package/build/typings/vendor/vendorRole.typings.js +11 -0
- package/build/typings/vendor/vendorUser.typings.d.ts +91 -0
- package/build/typings/vendor/vendorUser.typings.js +30 -0
- package/build/typings/vendor.typings.d.ts +42 -21
- package/build/typings/vendor.typings.js +16 -6
- package/build/typings/vendorGroup.typings.d.ts +16 -1
- package/build/typings/vendorGroup.typings.js +8 -1
- package/build/typings/vendorItem.typings.d.ts +12 -2
- package/build/typings/vendorItem.typings.js +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum VENDOR_PERMISSION_ACTIONS {
|
|
2
|
+
cu_perm = "cu_perm",//create, upadte
|
|
3
|
+
accept_perm = "accept_perm",
|
|
4
|
+
scfa_perm = "scfa_perm",// send to company for approval
|
|
5
|
+
dispatch_perm = "dispatch_perm"
|
|
6
|
+
}
|
|
7
|
+
export declare enum VENDOR_PERMISSION_RESOURCES {
|
|
8
|
+
PO = "PO",
|
|
9
|
+
ASN = "ASN",
|
|
10
|
+
QUOTE = "QUOTE",
|
|
11
|
+
ITEM_CATALOG = "ITEM_CATALOG"
|
|
12
|
+
}
|
|
13
|
+
export declare enum VENDOR_DOCUMENT {
|
|
14
|
+
PO = "PO",
|
|
15
|
+
ASN = "ASN",
|
|
16
|
+
QUOTE = "QUOTE",
|
|
17
|
+
ITEM_CATALOG = "ITEM_CATALOG"
|
|
18
|
+
}
|
|
19
|
+
export declare const VENDOR_PERMISSION_CONFIG: Record<VENDOR_DOCUMENT, VENDOR_PERMISSION_ACTIONS[]>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VENDOR_PERMISSION_CONFIG = exports.VENDOR_DOCUMENT = exports.VENDOR_PERMISSION_RESOURCES = exports.VENDOR_PERMISSION_ACTIONS = void 0;
|
|
4
|
+
var VENDOR_PERMISSION_ACTIONS;
|
|
5
|
+
(function (VENDOR_PERMISSION_ACTIONS) {
|
|
6
|
+
VENDOR_PERMISSION_ACTIONS["cu_perm"] = "cu_perm";
|
|
7
|
+
VENDOR_PERMISSION_ACTIONS["accept_perm"] = "accept_perm";
|
|
8
|
+
VENDOR_PERMISSION_ACTIONS["scfa_perm"] = "scfa_perm";
|
|
9
|
+
VENDOR_PERMISSION_ACTIONS["dispatch_perm"] = "dispatch_perm";
|
|
10
|
+
})(VENDOR_PERMISSION_ACTIONS || (exports.VENDOR_PERMISSION_ACTIONS = VENDOR_PERMISSION_ACTIONS = {}));
|
|
11
|
+
var VENDOR_PERMISSION_RESOURCES;
|
|
12
|
+
(function (VENDOR_PERMISSION_RESOURCES) {
|
|
13
|
+
VENDOR_PERMISSION_RESOURCES["PO"] = "PO";
|
|
14
|
+
VENDOR_PERMISSION_RESOURCES["ASN"] = "ASN";
|
|
15
|
+
VENDOR_PERMISSION_RESOURCES["QUOTE"] = "QUOTE";
|
|
16
|
+
VENDOR_PERMISSION_RESOURCES["ITEM_CATALOG"] = "ITEM_CATALOG";
|
|
17
|
+
})(VENDOR_PERMISSION_RESOURCES || (exports.VENDOR_PERMISSION_RESOURCES = VENDOR_PERMISSION_RESOURCES = {}));
|
|
18
|
+
var VENDOR_DOCUMENT;
|
|
19
|
+
(function (VENDOR_DOCUMENT) {
|
|
20
|
+
VENDOR_DOCUMENT["PO"] = "PO";
|
|
21
|
+
VENDOR_DOCUMENT["ASN"] = "ASN";
|
|
22
|
+
VENDOR_DOCUMENT["QUOTE"] = "QUOTE";
|
|
23
|
+
VENDOR_DOCUMENT["ITEM_CATALOG"] = "ITEM_CATALOG";
|
|
24
|
+
})(VENDOR_DOCUMENT || (exports.VENDOR_DOCUMENT = VENDOR_DOCUMENT = {}));
|
|
25
|
+
exports.VENDOR_PERMISSION_CONFIG = {
|
|
26
|
+
[VENDOR_DOCUMENT.QUOTE]: [VENDOR_PERMISSION_ACTIONS.cu_perm],
|
|
27
|
+
[VENDOR_DOCUMENT.PO]: [VENDOR_PERMISSION_ACTIONS.accept_perm],
|
|
28
|
+
[VENDOR_DOCUMENT.ASN]: [
|
|
29
|
+
VENDOR_PERMISSION_ACTIONS.cu_perm,
|
|
30
|
+
VENDOR_PERMISSION_ACTIONS.scfa_perm,
|
|
31
|
+
VENDOR_PERMISSION_ACTIONS.dispatch_perm,
|
|
32
|
+
],
|
|
33
|
+
[VENDOR_DOCUMENT.ITEM_CATALOG]: [VENDOR_PERMISSION_ACTIONS.cu_perm],
|
|
34
|
+
};
|
package/build/index.d.ts
CHANGED
|
@@ -93,6 +93,7 @@ export * from "./constants/alphaSeries.constants";
|
|
|
93
93
|
export * from "./constants/zod.constant";
|
|
94
94
|
export * from "./constants/date.constants";
|
|
95
95
|
export * from "./constants/companyDocumentUplodPath.constants";
|
|
96
|
+
export * from "./constants/vendorPermission.constants";
|
|
96
97
|
export * from "./classes/asnWrapper.class";
|
|
97
98
|
export * from "./utils/permission.utils";
|
|
98
99
|
export * from "./utils/taxes.util";
|
|
@@ -143,6 +144,9 @@ export * from "./typings/kpis/company/main/homeDashboard.typings";
|
|
|
143
144
|
export * from "./typings/kpis/vendor/main/vHomeDashboardKpi.typings";
|
|
144
145
|
export * from "./typings/vendor/companyProfile.typings";
|
|
145
146
|
export * from "./typings/vendor/vendorFormRollbackRemark.typings";
|
|
147
|
+
export * from "./typings/vendor/vendorPermission.typings";
|
|
148
|
+
export * from "./typings/vendor/vendorRole.typings";
|
|
149
|
+
export * from "./typings/vendor/vendorUser.typings";
|
|
146
150
|
export * from "./helpers/padNumber.helper";
|
|
147
151
|
export * from "./typings/plugins/plugin.typings";
|
|
148
152
|
export * from "./typings/plugins/erp.plugins";
|
package/build/index.js
CHANGED
|
@@ -115,6 +115,7 @@ __exportStar(require("./constants/alphaSeries.constants"), exports);
|
|
|
115
115
|
__exportStar(require("./constants/zod.constant"), exports);
|
|
116
116
|
__exportStar(require("./constants/date.constants"), exports);
|
|
117
117
|
__exportStar(require("./constants/companyDocumentUplodPath.constants"), exports);
|
|
118
|
+
__exportStar(require("./constants/vendorPermission.constants"), exports);
|
|
118
119
|
// Classes
|
|
119
120
|
__exportStar(require("./classes/asnWrapper.class"), exports);
|
|
120
121
|
// Utils
|
|
@@ -176,6 +177,9 @@ __exportStar(require("./typings/kpis/vendor/main/vHomeDashboardKpi.typings"), ex
|
|
|
176
177
|
// Vendor Panel typings
|
|
177
178
|
__exportStar(require("./typings/vendor/companyProfile.typings"), exports);
|
|
178
179
|
__exportStar(require("./typings/vendor/vendorFormRollbackRemark.typings"), exports);
|
|
180
|
+
__exportStar(require("./typings/vendor/vendorPermission.typings"), exports);
|
|
181
|
+
__exportStar(require("./typings/vendor/vendorRole.typings"), exports);
|
|
182
|
+
__exportStar(require("./typings/vendor/vendorUser.typings"), exports);
|
|
179
183
|
// Helpers
|
|
180
184
|
__exportStar(require("./helpers/padNumber.helper"), exports);
|
|
181
185
|
// Plugins
|
|
@@ -10,6 +10,7 @@ import { INestedUser } from "./user.typings";
|
|
|
10
10
|
import { INestedVendor } from "./vendor.typings";
|
|
11
11
|
import { INestedPOASNItemJunction } from "./company/masters/poAsnJunctionItems.typings";
|
|
12
12
|
import { IOpenApprovalsBase } from "./common/openApprovals.typings";
|
|
13
|
+
import { INestedVendorUser } from "./vendor/vendorUser.typings";
|
|
13
14
|
export declare enum ASN_CANCELLED_BY_ENTITY {
|
|
14
15
|
COMPANY = "COMPANY",
|
|
15
16
|
VENDOR = "VENDOR"
|
|
@@ -69,7 +70,10 @@ export declare enum ASN_INCLUDE {
|
|
|
69
70
|
approval_chain = "approval_chain",
|
|
70
71
|
asns_sent_to_vendor_by_user = "asns_sent_to_vendor_by_user",
|
|
71
72
|
child_ves = "child_ves",
|
|
72
|
-
send_by_user = "send_by_user"
|
|
73
|
+
send_by_user = "send_by_user",
|
|
74
|
+
created_by_vendor_user = "created_by_vendor_user",
|
|
75
|
+
last_updated_by_vendor_user = "last_updated_by_vendor_user",
|
|
76
|
+
cancelled_by_vendor_user = "cancelled_by_vendor_user"
|
|
73
77
|
}
|
|
74
78
|
export interface IASN {
|
|
75
79
|
id: string;
|
|
@@ -91,7 +95,9 @@ export interface IASN {
|
|
|
91
95
|
tracking_no: string | null;
|
|
92
96
|
vehicle_no: string | null;
|
|
93
97
|
is_deleted: boolean;
|
|
98
|
+
/** @deprecated Instead use `dispatched_by_vendor_at` */
|
|
94
99
|
sent_to_company_at: string | null;
|
|
100
|
+
dispatched_by_vendor_at: string | null;
|
|
95
101
|
sent_to_company_for_approval_at: string | null;
|
|
96
102
|
approved_at: string | null;
|
|
97
103
|
deleted_at: string;
|
|
@@ -150,6 +156,14 @@ export interface IASN {
|
|
|
150
156
|
hand_delivery_identification_document_type: string | null;
|
|
151
157
|
hand_delivery_identification_document_no: string | null;
|
|
152
158
|
invoice_no: string | null;
|
|
159
|
+
created_by_vendor_user_id: string | null;
|
|
160
|
+
sent_for_company_approval_by_vendor_user_id: string | null;
|
|
161
|
+
dispatch_by_vendor_user_id: string | null;
|
|
162
|
+
last_updated_by_vendor_user_id: string | null;
|
|
163
|
+
cancelled_by_vendor_user_id: string | null;
|
|
164
|
+
created_by_vendor_user: INestedVendorUser | null;
|
|
165
|
+
last_updated_by_vendor_user: INestedVendorUser | null;
|
|
166
|
+
cancelled_by_vendor_user: INestedVendorUser | null;
|
|
153
167
|
created_by_vendor?: INestedVendor | null;
|
|
154
168
|
for_company: INestedCompany | null;
|
|
155
169
|
parent_po: INestedPo | null;
|
|
@@ -216,7 +230,7 @@ export declare const ASN_SEA_TRANSPORT_FIELD_PREFIX = "sea";
|
|
|
216
230
|
export declare const ASN_AIR_TRANSPORT_FIELD_PREFIX = "air";
|
|
217
231
|
export declare const ASN_COURIER_TRANSPORT_FIELD_PREFIX = "courier";
|
|
218
232
|
export declare const ASN_HAND_DELIVERY_TRANSPORT_FIELD_PREFIX = "hand_delivery";
|
|
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"> {
|
|
233
|
+
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" | "approval_chain" | "send_by_user" | "asns_sent_to_vendor_by_user" | "created_by_vendor_user" | "last_updated_by_vendor_user" | "cancelled_by_vendor_user" | "metafields"> {
|
|
220
234
|
}
|
|
221
235
|
export interface IASNBaseFilters {
|
|
222
236
|
po_id?: string;
|
|
@@ -70,6 +70,9 @@ var ASN_INCLUDE;
|
|
|
70
70
|
ASN_INCLUDE["asns_sent_to_vendor_by_user"] = "asns_sent_to_vendor_by_user";
|
|
71
71
|
ASN_INCLUDE["child_ves"] = "child_ves";
|
|
72
72
|
ASN_INCLUDE["send_by_user"] = "send_by_user";
|
|
73
|
+
ASN_INCLUDE["created_by_vendor_user"] = "created_by_vendor_user";
|
|
74
|
+
ASN_INCLUDE["last_updated_by_vendor_user"] = "last_updated_by_vendor_user";
|
|
75
|
+
ASN_INCLUDE["cancelled_by_vendor_user"] = "cancelled_by_vendor_user";
|
|
73
76
|
})(ASN_INCLUDE || (exports.ASN_INCLUDE = ASN_INCLUDE = {}));
|
|
74
77
|
var ASN_MODE_OF_TRANSPORT_FIELDS;
|
|
75
78
|
(function (ASN_MODE_OF_TRANSPORT_FIELDS) {
|
|
@@ -20,6 +20,7 @@ import { INestedQuote } from "../../quote.typings";
|
|
|
20
20
|
import { INestedStoreLocation } from "../../storeLocation.typings";
|
|
21
21
|
import { INestedUser } from "../../user.typings";
|
|
22
22
|
import { INestedVendor } from "../../vendor.typings";
|
|
23
|
+
import { INestedVendorUser } from "../../vendor/vendorUser.typings";
|
|
23
24
|
export declare enum PO_LIST_TYPES {
|
|
24
25
|
ALL = "ALL",
|
|
25
26
|
CREATED_BY_ME = "CREATED_BY_ME",
|
|
@@ -62,6 +63,36 @@ export declare enum PO_ITEM_ASCENDENCE_TYPE {
|
|
|
62
63
|
DIRECT = "DIRECT",
|
|
63
64
|
BOM = "BOM"
|
|
64
65
|
}
|
|
66
|
+
export declare enum PO_INCLUDE {
|
|
67
|
+
invoices = "invoices",
|
|
68
|
+
company = "company",
|
|
69
|
+
shipping_store_location = "shipping_store_location",
|
|
70
|
+
created_by_user = "created_by_user",
|
|
71
|
+
last_updated_by_user = "last_updated_by_user",
|
|
72
|
+
company_vendor = "company_vendor",
|
|
73
|
+
contact_person = "contact_person",
|
|
74
|
+
external_contact_person = "external_contact_person",
|
|
75
|
+
sent_for_approval_by = "sent_for_approval_by",
|
|
76
|
+
sent_to_vendor_by = "sent_to_vendor_by",
|
|
77
|
+
parent_quote = "parent_quote",
|
|
78
|
+
comparative = "comparative",
|
|
79
|
+
asns = "asns",
|
|
80
|
+
items = "items",
|
|
81
|
+
boms = "boms",
|
|
82
|
+
approval_chain = "approval_chain",
|
|
83
|
+
taxes = "taxes",
|
|
84
|
+
purchase_location = "purchase_location",
|
|
85
|
+
vendor = "vendor",
|
|
86
|
+
po_asn_items_junctions = "po_asn_items_junctions",
|
|
87
|
+
least_purchase_price_items = "least_purchase_price_items",
|
|
88
|
+
previous_purchase_price_items = "previous_purchase_price_items",
|
|
89
|
+
po_grn_items_junctions = "po_grn_items_junctions",
|
|
90
|
+
directly_created_grns = "directly_created_grns",
|
|
91
|
+
child_ves = "child_ves",
|
|
92
|
+
tnc = "tnc",
|
|
93
|
+
pt = "pt",
|
|
94
|
+
accepted_rejected_by_vendor_user = "accepted_rejected_by_vendor_user"
|
|
95
|
+
}
|
|
65
96
|
export interface IPOBaseFilters {
|
|
66
97
|
name?: string;
|
|
67
98
|
include?: PO_INCLUDE[];
|
|
@@ -132,6 +163,7 @@ export interface IPurchaseOrder {
|
|
|
132
163
|
deleted_at: string | null;
|
|
133
164
|
created_at: string;
|
|
134
165
|
updated_at: string;
|
|
166
|
+
accepted_or_rejected_by_vendor_user_id: string | null;
|
|
135
167
|
company: INestedCompany | null;
|
|
136
168
|
purchase_location: INestedPurchaseLocation | null;
|
|
137
169
|
shipping_store_location: INestedStoreLocation | null;
|
|
@@ -159,37 +191,9 @@ export interface IPurchaseOrder {
|
|
|
159
191
|
tnc: INestedTermsAndConditions | null;
|
|
160
192
|
pt: INestedPo | null;
|
|
161
193
|
metafields: IPOMetafields | null;
|
|
194
|
+
accepted_rejected_by_vendor_user: INestedVendorUser | null;
|
|
162
195
|
}
|
|
163
|
-
export interface INestedPo extends Omit<IPurchaseOrder, "company" | "purchase_location" | "shipping_store_location" | "created_by_user" | "last_updated_by_user" | "company_vendor" | "contact_person" | "external_contact_person" | "sent_for_approval_by" | "sent_to_vendor_by" | "parent_quote" | "comparative" | "items" | "boms" | "approval_chain" | "taxes" | "vendor" | "least_purchase_price_items" | "previous_purchase_price_items" | "invoices" | "po_grn_items_junctions" | "directly_created_grns" | "child_ves" | "tnc" | "metafields"> {
|
|
164
|
-
}
|
|
165
|
-
export declare enum PO_INCLUDE {
|
|
166
|
-
invoices = "invoices",
|
|
167
|
-
company = "company",
|
|
168
|
-
shipping_store_location = "shipping_store_location",
|
|
169
|
-
created_by_user = "created_by_user",
|
|
170
|
-
last_updated_by_user = "last_updated_by_user",
|
|
171
|
-
company_vendor = "company_vendor",
|
|
172
|
-
contact_person = "contact_person",
|
|
173
|
-
external_contact_person = "external_contact_person",
|
|
174
|
-
sent_for_approval_by = "sent_for_approval_by",
|
|
175
|
-
sent_to_vendor_by = "sent_to_vendor_by",
|
|
176
|
-
parent_quote = "parent_quote",
|
|
177
|
-
comparative = "comparative",
|
|
178
|
-
asns = "asns",
|
|
179
|
-
items = "items",
|
|
180
|
-
boms = "boms",
|
|
181
|
-
approval_chain = "approval_chain",
|
|
182
|
-
taxes = "taxes",
|
|
183
|
-
purchase_location = "purchase_location",
|
|
184
|
-
vendor = "vendor",
|
|
185
|
-
po_asn_items_junctions = "po_asn_items_junctions",
|
|
186
|
-
least_purchase_price_items = "least_purchase_price_items",
|
|
187
|
-
previous_purchase_price_items = "previous_purchase_price_items",
|
|
188
|
-
po_grn_items_junctions = "po_grn_items_junctions",
|
|
189
|
-
directly_created_grns = "directly_created_grns",
|
|
190
|
-
child_ves = "child_ves",
|
|
191
|
-
tnc = "tnc",
|
|
192
|
-
pt = "pt"
|
|
196
|
+
export interface INestedPo extends Omit<IPurchaseOrder, "company" | "purchase_location" | "shipping_store_location" | "created_by_user" | "last_updated_by_user" | "company_vendor" | "contact_person" | "external_contact_person" | "sent_for_approval_by" | "sent_to_vendor_by" | "parent_quote" | "comparative" | "items" | "boms" | "approval_chain" | "taxes" | "vendor" | "least_purchase_price_items" | "previous_purchase_price_items" | "invoices" | "po_grn_items_junctions" | "directly_created_grns" | "child_ves" | "tnc" | "metafields" | "accepted_rejected_by_vendor_user"> {
|
|
193
197
|
}
|
|
194
198
|
export interface IPOItem extends ITaxRelatedItemInputs {
|
|
195
199
|
id: string;
|
|
@@ -254,10 +258,12 @@ export interface IPORejectedByUserMetafieldData {
|
|
|
254
258
|
export interface IPOMetafields {
|
|
255
259
|
items_data: INestedItem[] | null;
|
|
256
260
|
rejected_by_users_data: IPORejectedByUserMetafieldData[] | null;
|
|
261
|
+
vendor_contact_details: INestedVendorUser | null;
|
|
257
262
|
}
|
|
258
263
|
export declare enum PO_METAFIELDS_INCLUDE {
|
|
259
264
|
items_data = "items_data",
|
|
260
|
-
rejected_by_users_data = "rejected_by_users_data"
|
|
265
|
+
rejected_by_users_data = "rejected_by_users_data",
|
|
266
|
+
vendor_contact_details = "vendor_contact_details"
|
|
261
267
|
}
|
|
262
268
|
export interface IPOApprovalByTokenPayload extends IOpenApprovalsBase {
|
|
263
269
|
po_id: string;
|
|
@@ -78,6 +78,7 @@ var PO_INCLUDE;
|
|
|
78
78
|
PO_INCLUDE["child_ves"] = "child_ves";
|
|
79
79
|
PO_INCLUDE["tnc"] = "tnc";
|
|
80
80
|
PO_INCLUDE["pt"] = "pt";
|
|
81
|
+
PO_INCLUDE["accepted_rejected_by_vendor_user"] = "accepted_rejected_by_vendor_user";
|
|
81
82
|
})(PO_INCLUDE || (exports.PO_INCLUDE = PO_INCLUDE = {}));
|
|
82
83
|
var PO_ITEM_INCLUDE;
|
|
83
84
|
(function (PO_ITEM_INCLUDE) {
|
|
@@ -98,5 +99,6 @@ var PO_METAFIELDS_INCLUDE;
|
|
|
98
99
|
(function (PO_METAFIELDS_INCLUDE) {
|
|
99
100
|
PO_METAFIELDS_INCLUDE["items_data"] = "items_data";
|
|
100
101
|
PO_METAFIELDS_INCLUDE["rejected_by_users_data"] = "rejected_by_users_data";
|
|
102
|
+
PO_METAFIELDS_INCLUDE["vendor_contact_details"] = "vendor_contact_details";
|
|
101
103
|
})(PO_METAFIELDS_INCLUDE || (exports.PO_METAFIELDS_INCLUDE = PO_METAFIELDS_INCLUDE = {}));
|
|
102
104
|
/** FIN: (DEPRECATED) PO Filters */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IASN, INestedASN } from "../../asn.typings";
|
|
2
2
|
import { IPaginationFilters } from "../../common/paginationFilters.typings";
|
|
3
3
|
import { INestedCompany } from "../../company.typings";
|
|
4
|
-
import { INestedEntityApprovalChainEntry } from "../../entityApprovalChainEntry.typings";
|
|
4
|
+
import { IEntityApprovalChainEntry, INestedEntityApprovalChainEntry } from "../../entityApprovalChainEntry.typings";
|
|
5
5
|
import { IGRN } from "../../grn.typings";
|
|
6
6
|
import { INestedPo, IPurchaseOrder } from "./po.typings";
|
|
7
7
|
import { INestedStoreLocation } from "../../storeLocation.typings";
|
|
@@ -11,6 +11,7 @@ import { INestedVESCheckpointTracking } from "../_junctions/vesCheckpointTrackin
|
|
|
11
11
|
import { INestedCheckpoint } from "./checkpoints.typings";
|
|
12
12
|
import { INestedVESItem } from "./vesItem.typings";
|
|
13
13
|
import { INestedItem } from "../../item.typings";
|
|
14
|
+
import { IOpenApprovalsBase } from "../../common/openApprovals.typings";
|
|
14
15
|
export declare enum VES_REQUESTING_ENTITY_TYPE {
|
|
15
16
|
STORE_LOCATION = "store_location",
|
|
16
17
|
CHECKPOINT = "checkpoint"
|
|
@@ -127,3 +128,10 @@ export interface IVESMetafields {
|
|
|
127
128
|
export interface IVESMetafieldArgs {
|
|
128
129
|
ves_id: string | null;
|
|
129
130
|
}
|
|
131
|
+
export interface IASN_OPEN_APPROVAL_TOKEN_PAYLOAD extends IOpenApprovalsBase {
|
|
132
|
+
ves_id: string;
|
|
133
|
+
}
|
|
134
|
+
export interface IOpenVESApprovalData {
|
|
135
|
+
vesData: IVES;
|
|
136
|
+
targetEntityApprovalChainEntry: IEntityApprovalChainEntry;
|
|
137
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
2
2
|
import { INestedCompany } from "./company.typings";
|
|
3
|
+
import { INestedVendorUser } from "./vendor/vendorUser.typings";
|
|
3
4
|
import { INestedVendorItem } from "./vendorItem.typings";
|
|
4
5
|
export interface ICompanySpecificVendorItemVersionFilters {
|
|
5
6
|
vendor_item_id?: string;
|
|
@@ -10,19 +11,36 @@ export interface ICompanySpecificVendorItemVersionFiltersWithPagination extends
|
|
|
10
11
|
}
|
|
11
12
|
export declare enum COMPANY_SPECIFIC_VENDOR_ITEM_VERSION_INCLUDE {
|
|
12
13
|
company = "company",
|
|
13
|
-
vendorItem = "vendorItem"
|
|
14
|
+
vendorItem = "vendorItem",
|
|
15
|
+
created_by_vendor_user = "created_by_vendor_user",
|
|
16
|
+
last_updated_by_vendor_user = "last_updated_by_vendor_user",
|
|
17
|
+
deleted_by_vendor_user = "deleted_by_vendor_user"
|
|
14
18
|
}
|
|
15
19
|
export interface ICompanySpecificVendorItemVersion {
|
|
16
20
|
id: string;
|
|
17
21
|
company_id: string;
|
|
18
22
|
vendor_item_id: string;
|
|
19
23
|
is_enabled: boolean;
|
|
24
|
+
is_deleted: boolean;
|
|
20
25
|
per_unit_rate: number;
|
|
21
26
|
min_order_qty: number;
|
|
27
|
+
created_by_vendor_user_id: string | null;
|
|
28
|
+
last_updated_by_vendor_user_id: string | null;
|
|
29
|
+
deleted_by_vendor_user_id: string | null;
|
|
22
30
|
created_at: string;
|
|
23
31
|
udpated_at: string;
|
|
24
32
|
company: INestedCompany | null;
|
|
25
33
|
vendorItem: INestedVendorItem | null;
|
|
34
|
+
created_by_vendor_user: INestedVendorUser | null;
|
|
35
|
+
last_updated_by_vendor_user: INestedVendorUser | null;
|
|
36
|
+
deleted_by_vendor_user: INestedVendorUser | null;
|
|
37
|
+
metafields?: ICompanySpecificVendorItemVersionMetafields | null;
|
|
26
38
|
}
|
|
27
|
-
export interface INestedCompanySpecificVendorItemVersion extends Omit<ICompanySpecificVendorItemVersion, "company" | "vendorItem"> {
|
|
39
|
+
export interface INestedCompanySpecificVendorItemVersion extends Omit<ICompanySpecificVendorItemVersion, "company" | "vendorItem" | "created_by_vendor_user" | "last_updated_by_vendor_user" | "deleted_by_vendor_user" | "metafields"> {
|
|
40
|
+
}
|
|
41
|
+
export declare enum COMPANY_SPECIFIC_VENDOR_ITEM_METAFIELDS_INCLUDE {
|
|
42
|
+
general_contact_vendor_user = "general_contact_vendor_user"
|
|
43
|
+
}
|
|
44
|
+
export interface ICompanySpecificVendorItemVersionMetafields {
|
|
45
|
+
general_contact_vendor_user: INestedVendorUser | null;
|
|
28
46
|
}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.COMPANY_SPECIFIC_VENDOR_ITEM_VERSION_INCLUDE = void 0;
|
|
3
|
+
exports.COMPANY_SPECIFIC_VENDOR_ITEM_METAFIELDS_INCLUDE = exports.COMPANY_SPECIFIC_VENDOR_ITEM_VERSION_INCLUDE = void 0;
|
|
4
4
|
var COMPANY_SPECIFIC_VENDOR_ITEM_VERSION_INCLUDE;
|
|
5
5
|
(function (COMPANY_SPECIFIC_VENDOR_ITEM_VERSION_INCLUDE) {
|
|
6
6
|
COMPANY_SPECIFIC_VENDOR_ITEM_VERSION_INCLUDE["company"] = "company";
|
|
7
7
|
COMPANY_SPECIFIC_VENDOR_ITEM_VERSION_INCLUDE["vendorItem"] = "vendorItem";
|
|
8
|
+
COMPANY_SPECIFIC_VENDOR_ITEM_VERSION_INCLUDE["created_by_vendor_user"] = "created_by_vendor_user";
|
|
9
|
+
COMPANY_SPECIFIC_VENDOR_ITEM_VERSION_INCLUDE["last_updated_by_vendor_user"] = "last_updated_by_vendor_user";
|
|
10
|
+
COMPANY_SPECIFIC_VENDOR_ITEM_VERSION_INCLUDE["deleted_by_vendor_user"] = "deleted_by_vendor_user";
|
|
8
11
|
})(COMPANY_SPECIFIC_VENDOR_ITEM_VERSION_INCLUDE || (exports.COMPANY_SPECIFIC_VENDOR_ITEM_VERSION_INCLUDE = COMPANY_SPECIFIC_VENDOR_ITEM_VERSION_INCLUDE = {}));
|
|
12
|
+
// Metafields
|
|
13
|
+
var COMPANY_SPECIFIC_VENDOR_ITEM_METAFIELDS_INCLUDE;
|
|
14
|
+
(function (COMPANY_SPECIFIC_VENDOR_ITEM_METAFIELDS_INCLUDE) {
|
|
15
|
+
COMPANY_SPECIFIC_VENDOR_ITEM_METAFIELDS_INCLUDE["general_contact_vendor_user"] = "general_contact_vendor_user";
|
|
16
|
+
})(COMPANY_SPECIFIC_VENDOR_ITEM_METAFIELDS_INCLUDE || (exports.COMPANY_SPECIFIC_VENDOR_ITEM_METAFIELDS_INCLUDE = COMPANY_SPECIFIC_VENDOR_ITEM_METAFIELDS_INCLUDE = {}));
|
|
@@ -15,6 +15,8 @@ import { INestedExtraFormAnswerEntitys } from "./settings/form/extraFormAns.typi
|
|
|
15
15
|
import { INestedUser, IUser } from "./user.typings";
|
|
16
16
|
import { INestedVendor, IVendor } from "./vendor.typings";
|
|
17
17
|
import { INestedVendorGroups } from "./vendorGroup.typings";
|
|
18
|
+
import { INestedVendorUser } from "./vendor/vendorUser.typings";
|
|
19
|
+
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
18
20
|
export declare enum COMPANY_FORM_STATUS_FOR_VENDOR {
|
|
19
21
|
INVITED = "INVITED",
|
|
20
22
|
ANSWERED = "ANSWERED",
|
|
@@ -52,6 +54,28 @@ export declare enum CompanyVendorsInclude {
|
|
|
52
54
|
extra_form_ans = "extra_form_ans",
|
|
53
55
|
parent_vendor_onboarding_request_category = "parent_vendor_onboarding_request_category"
|
|
54
56
|
}
|
|
57
|
+
export declare enum COMPANY_VENDOR_METAFIELDS_INCLUDE {
|
|
58
|
+
contact_details_for_po = "contact_details_for_po",
|
|
59
|
+
contact_details_for_quote = "contact_details_for_quote",
|
|
60
|
+
contact_details_for_asn = "contact_details_for_asn",
|
|
61
|
+
contact_details_for_general = "contact_details_for_general"
|
|
62
|
+
}
|
|
63
|
+
export interface ICompanyVendorMetafields {
|
|
64
|
+
contact_details_for_po: INestedVendorUser | null;
|
|
65
|
+
contact_details_for_quote: INestedVendorUser | null;
|
|
66
|
+
contact_details_for_asn: INestedVendorUser | null;
|
|
67
|
+
contact_details_for_general: INestedVendorUser | null;
|
|
68
|
+
}
|
|
69
|
+
export interface ICompanyVendorFilters {
|
|
70
|
+
name?: string;
|
|
71
|
+
ids?: string[];
|
|
72
|
+
item_categories?: string[];
|
|
73
|
+
status?: COMPANY_VENDOR_STATUS;
|
|
74
|
+
include?: CompanyVendorsInclude[];
|
|
75
|
+
metafields_include?: COMPANY_VENDOR_METAFIELDS_INCLUDE[];
|
|
76
|
+
}
|
|
77
|
+
export interface ICompanyVendorFiltersWithPagination extends IPaginationFilters, ICompanyVendorFilters {
|
|
78
|
+
}
|
|
55
79
|
export interface ICompanyVendor {
|
|
56
80
|
id: string;
|
|
57
81
|
company_id: string;
|
|
@@ -103,8 +127,9 @@ export interface ICompanyVendor {
|
|
|
103
127
|
parent_vendor_onboarding_request: INestedVendorOnboardingRequest | null;
|
|
104
128
|
extra_form_ans: INestedExtraFormAnswerEntitys[] | null;
|
|
105
129
|
parent_vendor_onboarding_request_category: INestedVendorOnboardingRequestCategory | null;
|
|
130
|
+
metafields: ICompanyVendorMetafields | null;
|
|
106
131
|
}
|
|
107
|
-
export interface INestedCompanyVendors extends Omit<ICompanyVendor, "company" | "vendor" | "rfqs_sent" | "vendor_groups" | "negotiations" | "pos" | "selected_item_categories" | "selected_items" | "company_allowed_item_categories" | "company_item_verndor_versions" | "approval_chain" | "invoices" | "parent_vendor_onboarding_request" | "created_by_user" | "last_updated_by" | "sent_for_approval_by_user" | "questions_sent_by_user" | "extra_form_ans" | "parent_vendor_onboarding_request_category"> {
|
|
132
|
+
export interface INestedCompanyVendors extends Omit<ICompanyVendor, "company" | "vendor" | "rfqs_sent" | "vendor_groups" | "negotiations" | "pos" | "selected_item_categories" | "selected_items" | "company_allowed_item_categories" | "company_item_verndor_versions" | "approval_chain" | "invoices" | "parent_vendor_onboarding_request" | "created_by_user" | "last_updated_by" | "sent_for_approval_by_user" | "questions_sent_by_user" | "extra_form_ans" | "parent_vendor_onboarding_request_category" | "metafields"> {
|
|
108
133
|
}
|
|
109
134
|
export interface IICheckCompanyVendorStatusRes {
|
|
110
135
|
vendor: IVendor;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CompanyVendorsInclude = exports.COMPANY_VENDOR_STATUS = exports.COMPANY_FORM_STATUS_FOR_VENDOR = void 0;
|
|
3
|
+
exports.COMPANY_VENDOR_METAFIELDS_INCLUDE = exports.CompanyVendorsInclude = exports.COMPANY_VENDOR_STATUS = exports.COMPANY_FORM_STATUS_FOR_VENDOR = void 0;
|
|
4
4
|
var COMPANY_FORM_STATUS_FOR_VENDOR;
|
|
5
5
|
(function (COMPANY_FORM_STATUS_FOR_VENDOR) {
|
|
6
6
|
COMPANY_FORM_STATUS_FOR_VENDOR["INVITED"] = "INVITED";
|
|
@@ -41,3 +41,10 @@ var CompanyVendorsInclude;
|
|
|
41
41
|
CompanyVendorsInclude["extra_form_ans"] = "extra_form_ans";
|
|
42
42
|
CompanyVendorsInclude["parent_vendor_onboarding_request_category"] = "parent_vendor_onboarding_request_category";
|
|
43
43
|
})(CompanyVendorsInclude || (exports.CompanyVendorsInclude = CompanyVendorsInclude = {}));
|
|
44
|
+
var COMPANY_VENDOR_METAFIELDS_INCLUDE;
|
|
45
|
+
(function (COMPANY_VENDOR_METAFIELDS_INCLUDE) {
|
|
46
|
+
COMPANY_VENDOR_METAFIELDS_INCLUDE["contact_details_for_po"] = "contact_details_for_po";
|
|
47
|
+
COMPANY_VENDOR_METAFIELDS_INCLUDE["contact_details_for_quote"] = "contact_details_for_quote";
|
|
48
|
+
COMPANY_VENDOR_METAFIELDS_INCLUDE["contact_details_for_asn"] = "contact_details_for_asn";
|
|
49
|
+
COMPANY_VENDOR_METAFIELDS_INCLUDE["contact_details_for_general"] = "contact_details_for_general";
|
|
50
|
+
})(COMPANY_VENDOR_METAFIELDS_INCLUDE || (exports.COMPANY_VENDOR_METAFIELDS_INCLUDE = COMPANY_VENDOR_METAFIELDS_INCLUDE = {}));
|
|
@@ -4,6 +4,7 @@ import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
|
4
4
|
import { INestedCompany } from "./company.typings";
|
|
5
5
|
import { INestedUser } from "./user.typings";
|
|
6
6
|
import { INestedVendor } from "./vendor.typings";
|
|
7
|
+
import { INestedVendorUser } from "./vendor/vendorUser.typings";
|
|
7
8
|
export interface INotificationsPayload {
|
|
8
9
|
}
|
|
9
10
|
export declare enum NOTIFICATION_RECEIVER_TYPE {
|
|
@@ -38,9 +39,11 @@ export interface INotification {
|
|
|
38
39
|
deleted_at?: string | null;
|
|
39
40
|
created_at: string;
|
|
40
41
|
updated_at: string;
|
|
42
|
+
vendor_user_id?: string | null;
|
|
41
43
|
company: INestedCompany | null;
|
|
42
44
|
user: INestedUser | null;
|
|
43
45
|
vendor: INestedVendor | null;
|
|
46
|
+
vendor_user: INestedVendorUser | null;
|
|
44
47
|
}
|
|
45
48
|
export interface INestedNotification extends Omit<INotification, "company" | "vendor" | "user"> {
|
|
46
49
|
}
|
|
@@ -10,6 +10,7 @@ import { INestedRFQ, INestedRFQItem } from "./rfq.typings";
|
|
|
10
10
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
11
11
|
import { INestedUser } from "./user.typings";
|
|
12
12
|
import { INestedVendor } from "./vendor.typings";
|
|
13
|
+
import { INestedVendorUser } from "./vendor/vendorUser.typings";
|
|
13
14
|
export declare const QUOTE_COOLDOWN_DURATION_IN_MS: number;
|
|
14
15
|
export declare enum QUOTE_TYPE {
|
|
15
16
|
RFQ_ASCENDANT = "RFQ_ASCENDANT",
|
|
@@ -20,7 +21,9 @@ export declare enum QUOTE_STATUS {
|
|
|
20
21
|
QUOTED = "QUOTED"
|
|
21
22
|
}
|
|
22
23
|
export declare enum QUOTE_META_INCLUDES {
|
|
23
|
-
rank = "rank"
|
|
24
|
+
rank = "rank",
|
|
25
|
+
vendor_contact_details = "vendor_contact_details",
|
|
26
|
+
vendor_owner_details = "vendor_owner_details"
|
|
24
27
|
}
|
|
25
28
|
export declare enum QUOTE_INCLUDES {
|
|
26
29
|
parent_rfq = "parent_rfq",
|
|
@@ -33,10 +36,13 @@ export declare enum QUOTE_INCLUDES {
|
|
|
33
36
|
child_pos = "child_pos",
|
|
34
37
|
negotiations = "negotiations",
|
|
35
38
|
comparative = "comparative",
|
|
36
|
-
lowest_rate_for_comparative_items = "lowest_rate_for_comparative_items"
|
|
39
|
+
lowest_rate_for_comparative_items = "lowest_rate_for_comparative_items",
|
|
40
|
+
last_updated_by_vendor_user = "last_updated_by_vendor_user"
|
|
37
41
|
}
|
|
38
42
|
export interface IQuoteMetaFields {
|
|
39
|
-
rank
|
|
43
|
+
rank: number | null;
|
|
44
|
+
vendor_contact_details: INestedVendorUser | null;
|
|
45
|
+
vendor_owner_details: INestedVendorUser | null;
|
|
40
46
|
}
|
|
41
47
|
export interface IQuote {
|
|
42
48
|
id: string;
|
|
@@ -63,11 +69,14 @@ export interface IQuote {
|
|
|
63
69
|
can_negotiate: boolean;
|
|
64
70
|
is_deleted?: boolean | null;
|
|
65
71
|
last_followup_at?: string | null;
|
|
72
|
+
last_updated_by_vendor_user_at?: string | null;
|
|
66
73
|
deleted_at?: string | null;
|
|
67
74
|
created_at?: string | null;
|
|
68
75
|
updated_at?: string | null;
|
|
76
|
+
last_updated_by_vendor_user_id?: string | null;
|
|
69
77
|
parent_rfq: INestedRFQ | null;
|
|
70
78
|
contact_person: INestedUser | null;
|
|
79
|
+
last_updated_by_vendor_user: INestedVendorUser | null;
|
|
71
80
|
shipping_store_location: INestedStoreLocation | null;
|
|
72
81
|
vendor: INestedVendor | null;
|
|
73
82
|
company: INestedCompany | null;
|
|
@@ -79,7 +88,7 @@ export interface IQuote {
|
|
|
79
88
|
lowest_rate_for_comparative_item: INestedComparativeItem[] | null;
|
|
80
89
|
meta_fields?: IQuoteMetaFields | null;
|
|
81
90
|
}
|
|
82
|
-
export interface INestedQuote extends Omit<IQuote, "parent_rfq" | "vendor" | "shipping_store_location" | "contact_person" | "company" | "items" | "taxes" | "child_pos" | "
|
|
91
|
+
export interface INestedQuote extends Omit<IQuote, "parent_rfq" | "vendor" | "shipping_store_location" | "contact_person" | "company" | "items" | "taxes" | "child_pos" | "negotiations" | "comparative" | "lowest_rate_for_comparative_item" | "last_updated_by_vendor_user"> {
|
|
83
92
|
}
|
|
84
93
|
export declare enum QUOTE_ITEM_INCLUDES {
|
|
85
94
|
parent_quote = "parent_quote",
|
|
@@ -103,11 +112,13 @@ export interface INestedQuoteItems extends Omit<IQuoteItems, "quote" | "item" |
|
|
|
103
112
|
}
|
|
104
113
|
export interface IOPEN_QUOTE_TOKEN_PAYLOAD {
|
|
105
114
|
quote_id: string;
|
|
115
|
+
vendor_user_id: string;
|
|
106
116
|
}
|
|
107
117
|
export interface IQuoteFilters {
|
|
108
118
|
company_id?: string;
|
|
109
119
|
name?: string;
|
|
110
120
|
include?: QUOTE_INCLUDES[];
|
|
121
|
+
metafields_include?: QUOTE_META_INCLUDES[];
|
|
111
122
|
}
|
|
112
123
|
export interface IQuoteFiltersWithPagination extends IPaginationFilters, IQuoteFilters {
|
|
113
124
|
}
|
|
@@ -15,6 +15,8 @@ var QUOTE_STATUS;
|
|
|
15
15
|
var QUOTE_META_INCLUDES;
|
|
16
16
|
(function (QUOTE_META_INCLUDES) {
|
|
17
17
|
QUOTE_META_INCLUDES["rank"] = "rank";
|
|
18
|
+
QUOTE_META_INCLUDES["vendor_contact_details"] = "vendor_contact_details";
|
|
19
|
+
QUOTE_META_INCLUDES["vendor_owner_details"] = "vendor_owner_details";
|
|
18
20
|
})(QUOTE_META_INCLUDES || (exports.QUOTE_META_INCLUDES = QUOTE_META_INCLUDES = {}));
|
|
19
21
|
var QUOTE_INCLUDES;
|
|
20
22
|
(function (QUOTE_INCLUDES) {
|
|
@@ -29,6 +31,7 @@ var QUOTE_INCLUDES;
|
|
|
29
31
|
QUOTE_INCLUDES["negotiations"] = "negotiations";
|
|
30
32
|
QUOTE_INCLUDES["comparative"] = "comparative";
|
|
31
33
|
QUOTE_INCLUDES["lowest_rate_for_comparative_items"] = "lowest_rate_for_comparative_items";
|
|
34
|
+
QUOTE_INCLUDES["last_updated_by_vendor_user"] = "last_updated_by_vendor_user";
|
|
32
35
|
})(QUOTE_INCLUDES || (exports.QUOTE_INCLUDES = QUOTE_INCLUDES = {}));
|
|
33
36
|
// Quote Items
|
|
34
37
|
var QUOTE_ITEM_INCLUDES;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { INestedBOM } from "./bom.typings";
|
|
2
|
+
import { IAddress } from "./common/address.typings";
|
|
2
3
|
import { IOpenApprovalsBase } from "./common/openApprovals.typings";
|
|
3
4
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
4
5
|
import { INestedCompany } from "./company.typings";
|
|
@@ -12,6 +13,7 @@ import { INestedQuote, INestedQuoteItems } from "./quote.typings";
|
|
|
12
13
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
13
14
|
import { INestedUser, IUser } from "./user.typings";
|
|
14
15
|
import { INestedVendor, IVendor } from "./vendor.typings";
|
|
16
|
+
import { IVendorUser } from "./vendor/vendorUser.typings";
|
|
15
17
|
import { INestedVendorGroups } from "./vendorGroup.typings";
|
|
16
18
|
export declare enum RFQ_LIST_TYPES {
|
|
17
19
|
ALL = "ALL",
|
|
@@ -78,7 +80,7 @@ export declare enum BIDDING_TYPES {
|
|
|
78
80
|
OPEN = "open_bidding",
|
|
79
81
|
CLOSED = "closed_bidding"
|
|
80
82
|
}
|
|
81
|
-
export interface IAdditionalVendorInput extends Pick<IVendor, "
|
|
83
|
+
export interface IAdditionalVendorInput extends Pick<IVendor, "vendor_trade_name" | "address">, Pick<IVendorUser, "email" | "contact" | "firstname" | "lastname"> {
|
|
82
84
|
}
|
|
83
85
|
export interface IRFQ {
|
|
84
86
|
id: string;
|
|
@@ -206,7 +208,7 @@ export interface IOpenRFQApprovalData {
|
|
|
206
208
|
userData: IUser;
|
|
207
209
|
rfqCompanyVendors: ICompanyVendor[];
|
|
208
210
|
}
|
|
209
|
-
export interface
|
|
211
|
+
export interface IRFQVendors extends IAddress, Pick<IVendor, "gst_no" | "pan_no" | "cin"> {
|
|
210
212
|
vendor_tradename: string | null;
|
|
211
213
|
vendor_contact: string | null;
|
|
212
214
|
vendor_email: string | null;
|
|
@@ -219,6 +221,11 @@ export interface IRFQVendorMetafieldsData {
|
|
|
219
221
|
/** @description Will be included in the response if the vendor is present in Company's Vendor Master */
|
|
220
222
|
company_vendor_id: string | null;
|
|
221
223
|
vendor_id: string | null;
|
|
224
|
+
firstname: string | null;
|
|
225
|
+
middlename: string | null;
|
|
226
|
+
lastname: string | null;
|
|
227
|
+
}
|
|
228
|
+
export interface IRFQVendorMetafieldsData extends IRFQVendors {
|
|
222
229
|
}
|
|
223
230
|
export interface IRFQMetafields {
|
|
224
231
|
items_data: INestedItem[] | null;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { VENDOR_PERMISSION_RESOURCES } from "../../constants/vendorPermission.constants";
|
|
2
|
+
import { IPaginationFilters } from "../common/paginationFilters.typings";
|
|
3
|
+
import { INestedVendor } from "../vendor.typings";
|
|
4
|
+
import { INestedVendorRole } from "./vendorRole.typings";
|
|
5
|
+
import { INestedVendorUser } from "./vendorUser.typings";
|
|
6
|
+
export interface IVendorPermission {
|
|
7
|
+
id: string;
|
|
8
|
+
cu_perm?: boolean | null;
|
|
9
|
+
accept_perm?: boolean | null;
|
|
10
|
+
scfa_perm?: boolean | null;
|
|
11
|
+
dispatch_perm?: boolean | null;
|
|
12
|
+
entity_type: string;
|
|
13
|
+
vendor_role_id: string;
|
|
14
|
+
vendor_id: string;
|
|
15
|
+
created_by_vendor_user_id: string;
|
|
16
|
+
last_updated_by_vendor_user_id: string;
|
|
17
|
+
is_enabled: boolean;
|
|
18
|
+
is_deleted: boolean;
|
|
19
|
+
deleted_at?: string | null;
|
|
20
|
+
created_at: string;
|
|
21
|
+
updated_at: string;
|
|
22
|
+
vendor?: INestedVendor | null;
|
|
23
|
+
parent_vendor_role?: INestedVendorRole | null;
|
|
24
|
+
created_by_vendor_user?: INestedVendorUser | null;
|
|
25
|
+
last_updated_by_vendor_user?: INestedVendorUser | null;
|
|
26
|
+
}
|
|
27
|
+
export interface INestedVendorPermission extends Omit<IVendorPermission, "vendor" | "parent_vendor_role" | "created_by_vendor_user" | "last_updated_by_vendor_user"> {
|
|
28
|
+
}
|
|
29
|
+
export declare enum VENDOR_PERMISSION_INCLUDE {
|
|
30
|
+
vendor = "vendor",
|
|
31
|
+
parent_vendor_role = "parent_vendor_role",
|
|
32
|
+
created_by_vendor_user = "created_by_vendor_user",
|
|
33
|
+
last_updated_by_vendor_user = "last_updated_by_vendor_user"
|
|
34
|
+
}
|
|
35
|
+
export interface IVendorPermissionFilters {
|
|
36
|
+
vendor_role_ids?: string[];
|
|
37
|
+
document_types?: VENDOR_PERMISSION_RESOURCES[];
|
|
38
|
+
include?: VENDOR_PERMISSION_INCLUDE[];
|
|
39
|
+
}
|
|
40
|
+
export interface IVendorPermissionFiltersWithPagination extends IPaginationFilters, IVendorPermissionFilters {
|
|
41
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VENDOR_PERMISSION_INCLUDE = void 0;
|
|
4
|
+
var VENDOR_PERMISSION_INCLUDE;
|
|
5
|
+
(function (VENDOR_PERMISSION_INCLUDE) {
|
|
6
|
+
VENDOR_PERMISSION_INCLUDE["vendor"] = "vendor";
|
|
7
|
+
VENDOR_PERMISSION_INCLUDE["parent_vendor_role"] = "parent_vendor_role";
|
|
8
|
+
VENDOR_PERMISSION_INCLUDE["created_by_vendor_user"] = "created_by_vendor_user";
|
|
9
|
+
VENDOR_PERMISSION_INCLUDE["last_updated_by_vendor_user"] = "last_updated_by_vendor_user";
|
|
10
|
+
})(VENDOR_PERMISSION_INCLUDE || (exports.VENDOR_PERMISSION_INCLUDE = VENDOR_PERMISSION_INCLUDE = {}));
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { VENDOR_PERMISSION_ACTIONS, VENDOR_PERMISSION_RESOURCES } from "../../constants/vendorPermission.constants";
|
|
2
|
+
import { IPaginationFilters } from "../common/paginationFilters.typings";
|
|
3
|
+
import { INestedVendor } from "../vendor.typings";
|
|
4
|
+
import { INestedVendorPermission } from "./vendorPermission.typings";
|
|
5
|
+
import { INestedVendorUser } from "./vendorUser.typings";
|
|
6
|
+
export interface IVendorRole {
|
|
7
|
+
id: string;
|
|
8
|
+
role_name: string;
|
|
9
|
+
role_code: string;
|
|
10
|
+
vendor_id: string;
|
|
11
|
+
created_by_vendor_user_id: string;
|
|
12
|
+
last_updated_by_vendor_user_id: string;
|
|
13
|
+
is_enabled: boolean;
|
|
14
|
+
is_deleted: boolean;
|
|
15
|
+
deleted_at?: string | null;
|
|
16
|
+
created_at: string;
|
|
17
|
+
updated_at: string;
|
|
18
|
+
vendor?: INestedVendor | null;
|
|
19
|
+
created_by_vendor_user: INestedVendorUser | null;
|
|
20
|
+
last_updated_by_vendor_user: INestedVendorUser | null;
|
|
21
|
+
assigned_vendor_user?: INestedVendorUser[] | null;
|
|
22
|
+
vendor_permissions?: INestedVendorPermission[] | null;
|
|
23
|
+
}
|
|
24
|
+
export interface INestedVendorRole extends Omit<IVendorRole, "vendor" | "created_by_vendor_user" | "last_updated_by_vendor_user" | "assigned_vendor_user" | "vendorPermissions"> {
|
|
25
|
+
}
|
|
26
|
+
export declare enum VENDOR_ROLE_INCLUDE {
|
|
27
|
+
vendor = "vendor",
|
|
28
|
+
created_by_vendor_user = "created_by_vendor_user",
|
|
29
|
+
last_updated_by_vendor_user = "last_updated_by_vendor_user",
|
|
30
|
+
assigned_vendor_user = "assigned_vendor_user",
|
|
31
|
+
vendorPermissions = "vendorPermissions"
|
|
32
|
+
}
|
|
33
|
+
export interface IVendorRoleFilters {
|
|
34
|
+
type?: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
permission_entity?: VENDOR_PERMISSION_RESOURCES;
|
|
37
|
+
permission_actions?: VENDOR_PERMISSION_ACTIONS[];
|
|
38
|
+
include?: VENDOR_ROLE_INCLUDE[];
|
|
39
|
+
}
|
|
40
|
+
export interface IVendorRoleFiltersWithPagination extends IPaginationFilters, IVendorRoleFilters {
|
|
41
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VENDOR_ROLE_INCLUDE = void 0;
|
|
4
|
+
var VENDOR_ROLE_INCLUDE;
|
|
5
|
+
(function (VENDOR_ROLE_INCLUDE) {
|
|
6
|
+
VENDOR_ROLE_INCLUDE["vendor"] = "vendor";
|
|
7
|
+
VENDOR_ROLE_INCLUDE["created_by_vendor_user"] = "created_by_vendor_user";
|
|
8
|
+
VENDOR_ROLE_INCLUDE["last_updated_by_vendor_user"] = "last_updated_by_vendor_user";
|
|
9
|
+
VENDOR_ROLE_INCLUDE["assigned_vendor_user"] = "assigned_vendor_user";
|
|
10
|
+
VENDOR_ROLE_INCLUDE["vendorPermissions"] = "vendorPermissions";
|
|
11
|
+
})(VENDOR_ROLE_INCLUDE || (exports.VENDOR_ROLE_INCLUDE = VENDOR_ROLE_INCLUDE = {}));
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { INestedASN } from "../asn.typings";
|
|
2
|
+
import { IPaginationFilters } from "../common/paginationFilters.typings";
|
|
3
|
+
import { INestedPo } from "../company/masters/po.typings";
|
|
4
|
+
import { INestedCompanySpecificVendorItemVersion } from "../companySepcificVendorItems.typings";
|
|
5
|
+
import { INestedNotification } from "../notifications.typings";
|
|
6
|
+
import { INestedQuote } from "../quote.typings";
|
|
7
|
+
import { INestedVendor } from "../vendor.typings";
|
|
8
|
+
import { INestedVendorItem } from "../vendorItem.typings";
|
|
9
|
+
export interface IVendorUser {
|
|
10
|
+
id: string;
|
|
11
|
+
contact: string;
|
|
12
|
+
email: string;
|
|
13
|
+
vkraya_id: string;
|
|
14
|
+
password: string;
|
|
15
|
+
is_admin: boolean;
|
|
16
|
+
firstname?: string | null;
|
|
17
|
+
middlename?: string | null;
|
|
18
|
+
lastname?: string | null;
|
|
19
|
+
designation?: string | null;
|
|
20
|
+
profile_img?: string | null;
|
|
21
|
+
parent_vendor_id: string;
|
|
22
|
+
jwtVersion: string;
|
|
23
|
+
employee_code?: string | null;
|
|
24
|
+
vendor_mob_notification_token?: string | null;
|
|
25
|
+
vendor_mob_device_id?: string | null;
|
|
26
|
+
mob_app_version_id?: string | null;
|
|
27
|
+
is_enabled: boolean;
|
|
28
|
+
is_deleted: boolean;
|
|
29
|
+
deleted_at?: string | null;
|
|
30
|
+
created_at: string;
|
|
31
|
+
updated_at: string;
|
|
32
|
+
otps: null;
|
|
33
|
+
parent_vendor: INestedVendor | null;
|
|
34
|
+
contact_person_for_po_at: INestedVendor[] | null;
|
|
35
|
+
contact_person_for_quote_at: INestedVendor[] | null;
|
|
36
|
+
contact_person_for_asn_at: INestedVendor[] | null;
|
|
37
|
+
contact_person_for_general_at: INestedVendor[] | null;
|
|
38
|
+
created_vendor_items: INestedVendorItem[] | null;
|
|
39
|
+
last_updated_vendor_items: INestedVendorItem[] | null;
|
|
40
|
+
deleted_vendor_items: INestedVendorItem[] | null;
|
|
41
|
+
created_company_specific_vendor_item_versions: INestedCompanySpecificVendorItemVersion[] | null;
|
|
42
|
+
last_udpated_company_specific_vendor_item_versions: INestedCompanySpecificVendorItemVersion[] | null;
|
|
43
|
+
deleted_company_specific_vendor_item_versions: INestedCompanySpecificVendorItemVersion[] | null;
|
|
44
|
+
accepted_rejected_po: INestedPo[] | null;
|
|
45
|
+
vendor_user_notifications: INestedNotification[] | null;
|
|
46
|
+
quotes_last_updated: INestedQuote[] | null;
|
|
47
|
+
created_asns: INestedASN[] | null;
|
|
48
|
+
last_updated_asns: INestedASN[] | null;
|
|
49
|
+
cancelled_asn: INestedASN[] | null;
|
|
50
|
+
owned_vendor_organizations: INestedVendor[] | null;
|
|
51
|
+
created_vendor_roles: null;
|
|
52
|
+
last_updated_vendor_roles: null;
|
|
53
|
+
assigned_vendor_roles: null;
|
|
54
|
+
created_vendor_permissions: null;
|
|
55
|
+
last_updated_vendor_permission: null;
|
|
56
|
+
}
|
|
57
|
+
export interface INestedVendorUser extends Omit<IVendorUser, "parent_vendor" | "otps" | "created_vendor_items" | "last_updated_vendor_items" | "deleted_vendor_items" | "created_company_specific_vendor_item_versions" | "last_udpated_company_specific_vendor_item_versions" | "deleted_company_specific_vendor_item_versions" | "accepted_rejected_po" | "vendor_user_notifications" | "quotes_last_updated" | "created_asns" | "last_updated_asns" | "cancelled_asn" | "owned_vendor_organizations" | "contact_person_for_po_at" | "contact_person_for_quote_at" | "contact_person_for_asn_at" | "contact_person_for_general_at" | "created_vendor_roles" | "last_updated_vendor_roles" | "assigned_vendor_roles" | "created_vendor_permissions" | "last_updated_vendor_permission"> {
|
|
58
|
+
}
|
|
59
|
+
export declare enum VENDOR_USER_INCLUDE {
|
|
60
|
+
parent_vendor = "parent_vendor",
|
|
61
|
+
otps = "otps",
|
|
62
|
+
created_vendor_items = "created_vendor_items",
|
|
63
|
+
last_updated_vendor_items = "last_updated_vendor_items",
|
|
64
|
+
deleted_vendor_items = "deleted_vendor_items",
|
|
65
|
+
created_company_specific_vendor_item_versions = "created_company_specific_vendor_item_versions",
|
|
66
|
+
last_udpated_company_specific_vendor_item_versions = "last_udpated_company_specific_vendor_item_versions",
|
|
67
|
+
deleted_company_specific_vendor_item_versions = "deleted_company_specific_vendor_item_versions",
|
|
68
|
+
accepted_rejected_po = "accepted_rejected_po",
|
|
69
|
+
vendor_user_notifications = "vendor_user_notifications",
|
|
70
|
+
quotes_last_updated = "quotes_last_updated",
|
|
71
|
+
created_asns = "created_asns",
|
|
72
|
+
last_updated_asns = "last_updated_asns",
|
|
73
|
+
cancelled_asn = "cancelled_asn",
|
|
74
|
+
owned_vendor_organizations = "owned_vendor_organizations",
|
|
75
|
+
contact_person_for_po_at = "contact_person_for_po_at",
|
|
76
|
+
contact_person_for_quote_at = "contact_person_for_quote_at",
|
|
77
|
+
contact_person_for_asn_at = "contact_person_for_asn_at",
|
|
78
|
+
contact_person_for_general_at = "contact_person_for_general_at",
|
|
79
|
+
created_vendor_roles = "created_vendor_roles",
|
|
80
|
+
last_updated_vendor_roles = "last_updated_vendor_roles",
|
|
81
|
+
assigned_vendor_roles = "assigned_vendor_roles",
|
|
82
|
+
created_vendor_permissions = "created_vendor_permissions",
|
|
83
|
+
last_updated_vendor_permission = "last_updated_vendor_permission"
|
|
84
|
+
}
|
|
85
|
+
export interface IVendorUserFilters {
|
|
86
|
+
name?: string;
|
|
87
|
+
is_admin?: boolean;
|
|
88
|
+
include?: VENDOR_USER_INCLUDE[];
|
|
89
|
+
}
|
|
90
|
+
export interface IVendorUserFiltersWithPagination extends IPaginationFilters, IVendorUserFilters {
|
|
91
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VENDOR_USER_INCLUDE = void 0;
|
|
4
|
+
var VENDOR_USER_INCLUDE;
|
|
5
|
+
(function (VENDOR_USER_INCLUDE) {
|
|
6
|
+
VENDOR_USER_INCLUDE["parent_vendor"] = "parent_vendor";
|
|
7
|
+
VENDOR_USER_INCLUDE["otps"] = "otps";
|
|
8
|
+
VENDOR_USER_INCLUDE["created_vendor_items"] = "created_vendor_items";
|
|
9
|
+
VENDOR_USER_INCLUDE["last_updated_vendor_items"] = "last_updated_vendor_items";
|
|
10
|
+
VENDOR_USER_INCLUDE["deleted_vendor_items"] = "deleted_vendor_items";
|
|
11
|
+
VENDOR_USER_INCLUDE["created_company_specific_vendor_item_versions"] = "created_company_specific_vendor_item_versions";
|
|
12
|
+
VENDOR_USER_INCLUDE["last_udpated_company_specific_vendor_item_versions"] = "last_udpated_company_specific_vendor_item_versions";
|
|
13
|
+
VENDOR_USER_INCLUDE["deleted_company_specific_vendor_item_versions"] = "deleted_company_specific_vendor_item_versions";
|
|
14
|
+
VENDOR_USER_INCLUDE["accepted_rejected_po"] = "accepted_rejected_po";
|
|
15
|
+
VENDOR_USER_INCLUDE["vendor_user_notifications"] = "vendor_user_notifications";
|
|
16
|
+
VENDOR_USER_INCLUDE["quotes_last_updated"] = "quotes_last_updated";
|
|
17
|
+
VENDOR_USER_INCLUDE["created_asns"] = "created_asns";
|
|
18
|
+
VENDOR_USER_INCLUDE["last_updated_asns"] = "last_updated_asns";
|
|
19
|
+
VENDOR_USER_INCLUDE["cancelled_asn"] = "cancelled_asn";
|
|
20
|
+
VENDOR_USER_INCLUDE["owned_vendor_organizations"] = "owned_vendor_organizations";
|
|
21
|
+
VENDOR_USER_INCLUDE["contact_person_for_po_at"] = "contact_person_for_po_at";
|
|
22
|
+
VENDOR_USER_INCLUDE["contact_person_for_quote_at"] = "contact_person_for_quote_at";
|
|
23
|
+
VENDOR_USER_INCLUDE["contact_person_for_asn_at"] = "contact_person_for_asn_at";
|
|
24
|
+
VENDOR_USER_INCLUDE["contact_person_for_general_at"] = "contact_person_for_general_at";
|
|
25
|
+
VENDOR_USER_INCLUDE["created_vendor_roles"] = "created_vendor_roles";
|
|
26
|
+
VENDOR_USER_INCLUDE["last_updated_vendor_roles"] = "last_updated_vendor_roles";
|
|
27
|
+
VENDOR_USER_INCLUDE["assigned_vendor_roles"] = "assigned_vendor_roles";
|
|
28
|
+
VENDOR_USER_INCLUDE["created_vendor_permissions"] = "created_vendor_permissions";
|
|
29
|
+
VENDOR_USER_INCLUDE["last_updated_vendor_permission"] = "last_updated_vendor_permission";
|
|
30
|
+
})(VENDOR_USER_INCLUDE || (exports.VENDOR_USER_INCLUDE = VENDOR_USER_INCLUDE = {}));
|
|
@@ -11,20 +11,22 @@ import { INestedInvoice } from "./invoices.typings";
|
|
|
11
11
|
import { INestedVendorContactPeople } from "./vendor/vendorContactPeople.typings";
|
|
12
12
|
import { INestedFormRolback } from "./vendor/vendorFormRollbackRemark.typings";
|
|
13
13
|
import { INestedQueueJob } from "./system/queueJob.typings";
|
|
14
|
+
import { INestedVendorUser } from "./vendor/vendorUser.typings";
|
|
15
|
+
import { INestedVendorPermission } from "./vendor/vendorPermission.typings";
|
|
16
|
+
import { INestedVendorRole } from "./vendor/vendorRole.typings";
|
|
14
17
|
export interface IVendor extends IAddress {
|
|
15
18
|
id: string;
|
|
19
|
+
owner_vendor_user_id: string | null;
|
|
20
|
+
po_contact_vendor_user_id: string | null;
|
|
21
|
+
quote_contact_vendor_user_id: string | null;
|
|
22
|
+
asn_contact_vendor_user_id: string | null;
|
|
23
|
+
general_contact_vendor_user_id: string | null;
|
|
16
24
|
gst_no: string | null;
|
|
17
25
|
nature_of_business: string | null;
|
|
18
26
|
vendor_business_categories: string[];
|
|
19
27
|
vendor_trade_name: string;
|
|
20
28
|
vendor_legal_name: string | null;
|
|
21
29
|
constitution_of_business: string | null;
|
|
22
|
-
firstname: string | null;
|
|
23
|
-
middlename: string | null;
|
|
24
|
-
lastname: string | null;
|
|
25
|
-
email: string;
|
|
26
|
-
contact: string;
|
|
27
|
-
designation: string | null;
|
|
28
30
|
pan_no: string | null;
|
|
29
31
|
cin: string | null;
|
|
30
32
|
udyam_aadhar: string | null;
|
|
@@ -33,8 +35,6 @@ export interface IVendor extends IAddress {
|
|
|
33
35
|
bank_name: string | null;
|
|
34
36
|
bank_branch_name: string | null;
|
|
35
37
|
beneficiary_name: string | null;
|
|
36
|
-
vkraya_id: string;
|
|
37
|
-
password: string;
|
|
38
38
|
is_bank_details_verified: boolean;
|
|
39
39
|
is_gst_verified: boolean;
|
|
40
40
|
is_pan_verified: boolean;
|
|
@@ -53,12 +53,16 @@ export interface IVendor extends IAddress {
|
|
|
53
53
|
profile_img: string | null;
|
|
54
54
|
svf_form_status: VENDOR_SVF_FORM_STATUS | null;
|
|
55
55
|
svf_rollback_remark: string | null;
|
|
56
|
-
vendor_mob_notification_token: string | null;
|
|
57
56
|
is_enabled: boolean;
|
|
58
57
|
is_deleted: boolean | null;
|
|
59
58
|
deleted_at: string | null;
|
|
60
59
|
created_at: string | null;
|
|
61
60
|
updated_at: string | null;
|
|
61
|
+
owner_vendor_user: INestedVendorUser | null;
|
|
62
|
+
po_contact_vendor_user: INestedVendorUser | null;
|
|
63
|
+
quote_contact_vendor_user: INestedVendorUser | null;
|
|
64
|
+
asn_contact_vendor_user: INestedVendorUser | null;
|
|
65
|
+
general_contact_vendor_user: INestedVendorUser | null;
|
|
62
66
|
quotes: INestedQuote[] | null;
|
|
63
67
|
associated_companies: INestedCompany[] | null;
|
|
64
68
|
negotiations: INestedNegotiation[] | null;
|
|
@@ -71,15 +75,30 @@ export interface IVendor extends IAddress {
|
|
|
71
75
|
contact_people: INestedVendorContactPeople[] | null;
|
|
72
76
|
rollback_form_sent_to_vendor: INestedFormRolback[] | null;
|
|
73
77
|
created_queue_jobs: INestedQueueJob[] | null;
|
|
78
|
+
vendor_users: INestedVendorUser[] | null;
|
|
79
|
+
associated_vendor_roles: INestedVendorRole[] | null;
|
|
80
|
+
associated_vendor_permissions: INestedVendorPermission[] | null;
|
|
74
81
|
}
|
|
75
82
|
export declare enum VENDOR_SVF_FORM_STATUS {
|
|
76
83
|
SENT = "SENT",
|
|
77
84
|
ANSWERED = "ANSWERED",
|
|
78
85
|
ROLLED_BACK = "ROLLED_BACK"
|
|
79
86
|
}
|
|
80
|
-
export interface INestedVendor extends Omit<IVendor, "quotes" | "associated_companies" | "negotiations" | "as_additional_in_rfqs" | "vendor_notifications" | "extra_que_answers" | "pos" | "company_item_versions" | "invoices" | "contact_people" | "rollback_form_sent_to_vendor" | "created_queue_jobs"> {
|
|
87
|
+
export interface INestedVendor extends Omit<IVendor, "quotes" | "associated_companies" | "negotiations" | "as_additional_in_rfqs" | "vendor_notifications" | "extra_que_answers" | "pos" | "company_item_versions" | "invoices" | "contact_people" | "rollback_form_sent_to_vendor" | "created_queue_jobs" | "vendor_users" | "owner_vendor_user" | "po_contact_vendor_user" | "quote_contact_vendor_user" | "asn_contact_vendor_user" | "general_contact_vendor_user" | "associated_vendor_roles" | "associated_vendor_permissions"> {
|
|
81
88
|
}
|
|
82
|
-
export interface
|
|
89
|
+
export interface IVendorOrganizationInputs extends Omit<INestedVendor, "id" | "created_at" | "updated_at" | "is_profile_complete" | "is_profile_verified" | "is_self_verified" | "deleted_at" | "is_deleted" | "vendor" | "vkraya_id" | "is_invitation_sent" | "is_enabled" | "svf_form_status" | "svf_rollback_remark" | "vendor_mob_notification_token" | "password" | "owner_vendor_user_id" | "po_contact_vendor_user_id" | "quote_contact_vendor_user_id" | "asn_contact_vendor_user_id" | "general_contact_vendor_user_id"> {
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @description This is used only when creating a new Vendor organization to consecutively create Admin Vendor User as well for the organization
|
|
93
|
+
*/
|
|
94
|
+
export interface IVendorAdminUserInputs extends Pick<INestedVendorUser, "email" | "contact" | "designation" | "firstname" | "lastname" | "middlename"> {
|
|
95
|
+
}
|
|
96
|
+
export interface IVendorInputs extends IVendorOrganizationInputs, IVendorAdminUserInputs {
|
|
97
|
+
}
|
|
98
|
+
export interface ISVFTokenVerificationResponse {
|
|
99
|
+
vendorFormData: IVendorInputs;
|
|
100
|
+
vendor_id: string;
|
|
101
|
+
vendorOrganizationData: INestedVendor | null;
|
|
83
102
|
}
|
|
84
103
|
export declare enum VENDOR_INCLUDE {
|
|
85
104
|
quotes = "quotes",
|
|
@@ -93,7 +112,15 @@ export declare enum VENDOR_INCLUDE {
|
|
|
93
112
|
invoices = "invoices",
|
|
94
113
|
contact_people = "contact_people",
|
|
95
114
|
rollback_form_sent_to_vendor = "rollback_form_sent_to_vendor",
|
|
96
|
-
created_queue_jobs = "created_queue_jobs"
|
|
115
|
+
created_queue_jobs = "created_queue_jobs",
|
|
116
|
+
vendor_users = "vendor_users",
|
|
117
|
+
owner_vendor_user = "owner_vendor_user",
|
|
118
|
+
po_contact_vendor_user = "po_contact_vendor_user",
|
|
119
|
+
quote_contact_vendor_user = "quote_contact_vendor_user",
|
|
120
|
+
asn_contact_vendor_user = "asn_contact_vendor_user",
|
|
121
|
+
general_contact_vendor_user = "general_contact_vendor_user",
|
|
122
|
+
associated_vendor_roles = "associated_vendor_roles",
|
|
123
|
+
associated_vendor_permissions = "associated_vendor_permissions"
|
|
97
124
|
}
|
|
98
125
|
export declare enum VENDOR_TYPE {
|
|
99
126
|
MFG = "Manufracturing",
|
|
@@ -106,12 +133,6 @@ export declare enum VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS {
|
|
|
106
133
|
vendor_trade_name = "vendor_trade_name",
|
|
107
134
|
vendor_legal_name = "vendor_legal_name",
|
|
108
135
|
constitution_of_business = "constitution_of_business",
|
|
109
|
-
firstname = "firstname",
|
|
110
|
-
middlename = "middlename",
|
|
111
|
-
lastname = "lastname",
|
|
112
|
-
email = "email",
|
|
113
|
-
contact = "contact",
|
|
114
|
-
designation = "designation",
|
|
115
136
|
gst_no = "gst_no",
|
|
116
137
|
pan_no = "pan_no",
|
|
117
138
|
cin = "cin",
|
|
@@ -120,10 +141,10 @@ export declare enum VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS {
|
|
|
120
141
|
iso_attachment_link = "iso_attachment_link",
|
|
121
142
|
profile_img = "profile_img"
|
|
122
143
|
}
|
|
123
|
-
export interface
|
|
124
|
-
|
|
144
|
+
export interface IVENDOR_AUTH_TOKEN_PAYLOAD {
|
|
145
|
+
vendor_user_id: string;
|
|
125
146
|
jwtVersion: string;
|
|
126
147
|
}
|
|
127
148
|
export interface IVENDOR_SVF_TOKEN_PAYLOAD {
|
|
128
|
-
|
|
149
|
+
vendor_user_id: string;
|
|
129
150
|
}
|
|
@@ -21,6 +21,16 @@ var VENDOR_INCLUDE;
|
|
|
21
21
|
VENDOR_INCLUDE["contact_people"] = "contact_people";
|
|
22
22
|
VENDOR_INCLUDE["rollback_form_sent_to_vendor"] = "rollback_form_sent_to_vendor";
|
|
23
23
|
VENDOR_INCLUDE["created_queue_jobs"] = "created_queue_jobs";
|
|
24
|
+
// vendor_roles = "vendor_roles",
|
|
25
|
+
// vendor_permissions = "vendor_permissions",
|
|
26
|
+
VENDOR_INCLUDE["vendor_users"] = "vendor_users";
|
|
27
|
+
VENDOR_INCLUDE["owner_vendor_user"] = "owner_vendor_user";
|
|
28
|
+
VENDOR_INCLUDE["po_contact_vendor_user"] = "po_contact_vendor_user";
|
|
29
|
+
VENDOR_INCLUDE["quote_contact_vendor_user"] = "quote_contact_vendor_user";
|
|
30
|
+
VENDOR_INCLUDE["asn_contact_vendor_user"] = "asn_contact_vendor_user";
|
|
31
|
+
VENDOR_INCLUDE["general_contact_vendor_user"] = "general_contact_vendor_user";
|
|
32
|
+
VENDOR_INCLUDE["associated_vendor_roles"] = "associated_vendor_roles";
|
|
33
|
+
VENDOR_INCLUDE["associated_vendor_permissions"] = "associated_vendor_permissions";
|
|
24
34
|
})(VENDOR_INCLUDE || (exports.VENDOR_INCLUDE = VENDOR_INCLUDE = {}));
|
|
25
35
|
// for GST-Core activities Types
|
|
26
36
|
var VENDOR_TYPE;
|
|
@@ -36,12 +46,12 @@ var VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS;
|
|
|
36
46
|
VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["vendor_trade_name"] = "vendor_trade_name";
|
|
37
47
|
VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["vendor_legal_name"] = "vendor_legal_name";
|
|
38
48
|
VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["constitution_of_business"] = "constitution_of_business";
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
49
|
+
// firstname = "firstname",
|
|
50
|
+
// middlename = "middlename",
|
|
51
|
+
// lastname = "lastname",
|
|
52
|
+
// email = "email",
|
|
53
|
+
// contact = "contact",
|
|
54
|
+
// designation = "designation",
|
|
45
55
|
VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["gst_no"] = "gst_no";
|
|
46
56
|
VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["pan_no"] = "pan_no";
|
|
47
57
|
VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["cin"] = "cin";
|
|
@@ -3,10 +3,12 @@ import { INestedCompany } from "./company.typings";
|
|
|
3
3
|
import { INestedCompanyVendors } from "./companyVendors.typings";
|
|
4
4
|
import { INestedRFQ } from "./rfq.typings";
|
|
5
5
|
import { INestedUser } from "./user.typings";
|
|
6
|
+
import { INestedVendorUser } from "./vendor/vendorUser.typings";
|
|
6
7
|
export interface IVendorGroupFilters {
|
|
7
8
|
name?: string;
|
|
8
9
|
keywords?: string[];
|
|
9
10
|
include?: VENDOR_GROUP_INCLUDE[];
|
|
11
|
+
metafields_include?: VENDOR_GROUP_METAFIELDS_INCLUDE[];
|
|
10
12
|
}
|
|
11
13
|
export interface IVendorGroupFiltersWithPagination extends IVendorGroupFilters, IPaginationFilters {
|
|
12
14
|
}
|
|
@@ -17,6 +19,18 @@ export declare enum VENDOR_GROUP_INCLUDE {
|
|
|
17
19
|
rfqs = "rfqs",
|
|
18
20
|
company_vendors = "company_vendors"
|
|
19
21
|
}
|
|
22
|
+
export declare enum VENDOR_GROUP_METAFIELDS_INCLUDE {
|
|
23
|
+
po_contact_vendor_users = "po_contact_vendor_users",
|
|
24
|
+
quote_contact_vendor_users = "quote_contact_vendor_users",
|
|
25
|
+
asn_contact_vendor_users = "asn_contact_vendor_users",
|
|
26
|
+
general_contact_vendor_users = "general_contact_vendor_users"
|
|
27
|
+
}
|
|
28
|
+
export interface IVendorGroupMetafields {
|
|
29
|
+
po_contact_vendor_users: INestedVendorUser[] | null;
|
|
30
|
+
quote_contact_vendor_users: INestedVendorUser[] | null;
|
|
31
|
+
asn_contact_vendor_users: INestedVendorUser[] | null;
|
|
32
|
+
general_contact_vendor_users: INestedVendorUser[] | null;
|
|
33
|
+
}
|
|
20
34
|
export interface IVendorGroup {
|
|
21
35
|
id: string;
|
|
22
36
|
company_id: string;
|
|
@@ -36,6 +50,7 @@ export interface IVendorGroup {
|
|
|
36
50
|
last_updated_by_user: INestedUser | null;
|
|
37
51
|
rfqs: INestedRFQ[] | null;
|
|
38
52
|
company_vendors: INestedCompanyVendors[] | null;
|
|
53
|
+
metafields?: IVendorGroupMetafields | null;
|
|
39
54
|
}
|
|
40
|
-
export interface INestedVendorGroups extends Omit<IVendorGroup, "company" | "created_by_user" | "last_updated_by_user" | "rfqs" | "company_vendors"> {
|
|
55
|
+
export interface INestedVendorGroups extends Omit<IVendorGroup, "company" | "created_by_user" | "last_updated_by_user" | "rfqs" | "company_vendors" | "metafields"> {
|
|
41
56
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VENDOR_GROUP_INCLUDE = void 0;
|
|
3
|
+
exports.VENDOR_GROUP_METAFIELDS_INCLUDE = exports.VENDOR_GROUP_INCLUDE = void 0;
|
|
4
4
|
var VENDOR_GROUP_INCLUDE;
|
|
5
5
|
(function (VENDOR_GROUP_INCLUDE) {
|
|
6
6
|
VENDOR_GROUP_INCLUDE["company"] = "company";
|
|
@@ -9,3 +9,10 @@ var VENDOR_GROUP_INCLUDE;
|
|
|
9
9
|
VENDOR_GROUP_INCLUDE["rfqs"] = "rfqs";
|
|
10
10
|
VENDOR_GROUP_INCLUDE["company_vendors"] = "company_vendors";
|
|
11
11
|
})(VENDOR_GROUP_INCLUDE || (exports.VENDOR_GROUP_INCLUDE = VENDOR_GROUP_INCLUDE = {}));
|
|
12
|
+
var VENDOR_GROUP_METAFIELDS_INCLUDE;
|
|
13
|
+
(function (VENDOR_GROUP_METAFIELDS_INCLUDE) {
|
|
14
|
+
VENDOR_GROUP_METAFIELDS_INCLUDE["po_contact_vendor_users"] = "po_contact_vendor_users";
|
|
15
|
+
VENDOR_GROUP_METAFIELDS_INCLUDE["quote_contact_vendor_users"] = "quote_contact_vendor_users";
|
|
16
|
+
VENDOR_GROUP_METAFIELDS_INCLUDE["asn_contact_vendor_users"] = "asn_contact_vendor_users";
|
|
17
|
+
VENDOR_GROUP_METAFIELDS_INCLUDE["general_contact_vendor_users"] = "general_contact_vendor_users";
|
|
18
|
+
})(VENDOR_GROUP_METAFIELDS_INCLUDE || (exports.VENDOR_GROUP_METAFIELDS_INCLUDE = VENDOR_GROUP_METAFIELDS_INCLUDE = {}));
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
2
2
|
import { INestedCompanySpecificVendorItemVersion } from "./companySepcificVendorItems.typings";
|
|
3
3
|
import { INestedVendor } from "./vendor.typings";
|
|
4
|
+
import { INestedVendorUser } from "./vendor/vendorUser.typings";
|
|
4
5
|
import { INestedVendorItemCategory } from "./vendorItemCategories.typings";
|
|
5
6
|
export declare enum VENDOR_ITEM_INCLUDE {
|
|
6
7
|
vendor = "vendor",
|
|
7
8
|
vendor_item_categories = "vendor_item_categories",
|
|
8
|
-
company_specific_versions = "company_specific_versions"
|
|
9
|
+
company_specific_versions = "company_specific_versions",
|
|
10
|
+
created_by_vendor_user = "created_by_vendor_user",
|
|
11
|
+
last_updated_by_vendor_user = "last_updated_by_vendor_user",
|
|
12
|
+
deleted_by_vendor_user = "deleted_by_vendor_user"
|
|
9
13
|
}
|
|
10
14
|
export interface IVendorItemFilters {
|
|
11
15
|
vendor_id: string;
|
|
@@ -38,9 +42,15 @@ export interface IVendorItem {
|
|
|
38
42
|
created_at: string;
|
|
39
43
|
updated_at: string;
|
|
40
44
|
keywords: string[];
|
|
45
|
+
created_by_vendor_user_id: string | null;
|
|
46
|
+
last_updated_by_vendor_user_id: string | null;
|
|
47
|
+
deleted_by_vendor_user_id: string | null;
|
|
41
48
|
vendor: INestedVendor | null;
|
|
49
|
+
created_by_vendor_user: INestedVendorUser | null;
|
|
50
|
+
last_updated_by_vendor_user: INestedVendorUser | null;
|
|
51
|
+
deleted_by_vendor_user: INestedVendorUser | null;
|
|
42
52
|
vendor_item_categories: INestedVendorItemCategory[] | null;
|
|
43
53
|
company_specific_versions: INestedCompanySpecificVendorItemVersion[] | null;
|
|
44
54
|
}
|
|
45
|
-
export interface INestedVendorItem extends Omit<IVendorItem, "vendor" | "vendor_item_categories" | "company_specific_versions"> {
|
|
55
|
+
export interface INestedVendorItem extends Omit<IVendorItem, "vendor" | "vendor_item_categories" | "company_specific_versions" | "created_by_vendor_user" | "last_updated_by_vendor_user" | "deleted_by_vendor_user"> {
|
|
46
56
|
}
|
|
@@ -6,4 +6,7 @@ var VENDOR_ITEM_INCLUDE;
|
|
|
6
6
|
VENDOR_ITEM_INCLUDE["vendor"] = "vendor";
|
|
7
7
|
VENDOR_ITEM_INCLUDE["vendor_item_categories"] = "vendor_item_categories";
|
|
8
8
|
VENDOR_ITEM_INCLUDE["company_specific_versions"] = "company_specific_versions";
|
|
9
|
+
VENDOR_ITEM_INCLUDE["created_by_vendor_user"] = "created_by_vendor_user";
|
|
10
|
+
VENDOR_ITEM_INCLUDE["last_updated_by_vendor_user"] = "last_updated_by_vendor_user";
|
|
11
|
+
VENDOR_ITEM_INCLUDE["deleted_by_vendor_user"] = "deleted_by_vendor_user";
|
|
9
12
|
})(VENDOR_ITEM_INCLUDE || (exports.VENDOR_ITEM_INCLUDE = VENDOR_ITEM_INCLUDE = {}));
|