kcommons 14.28.2 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.d.ts +3 -0
- package/build/index.js +3 -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/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 +35 -0
- package/build/typings/vendor/vendorPermission.typings.js +8 -0
- package/build/typings/vendor/vendorRole.typings.d.ts +24 -0
- package/build/typings/vendor/vendorRole.typings.js +9 -0
- package/build/typings/vendor/vendorUser.typings.d.ts +80 -0
- package/build/typings/vendor/vendorUser.typings.js +25 -0
- package/build/typings/vendor.typings.d.ts +42 -21
- package/build/typings/vendor.typings.js +14 -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/build/typings/verification_apis/bankAccountVerification.typings.d.ts +19 -0
- package/build/typings/verification_apis/gstReturns.typings.d.ts +10 -9
- package/build/typings/verification_apis/udyamVerification.typings.d.ts +46 -45
- package/build/typings/verification_apis/udyamVerification.typings.js +64 -0
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -143,6 +143,9 @@ export * from "./typings/kpis/company/main/homeDashboard.typings";
|
|
|
143
143
|
export * from "./typings/kpis/vendor/main/vHomeDashboardKpi.typings";
|
|
144
144
|
export * from "./typings/vendor/companyProfile.typings";
|
|
145
145
|
export * from "./typings/vendor/vendorFormRollbackRemark.typings";
|
|
146
|
+
export * from "./typings/vendor/vendorPermission.typings";
|
|
147
|
+
export * from "./typings/vendor/vendorRole.typings";
|
|
148
|
+
export * from "./typings/vendor/vendorUser.typings";
|
|
146
149
|
export * from "./helpers/padNumber.helper";
|
|
147
150
|
export * from "./typings/plugins/plugin.typings";
|
|
148
151
|
export * from "./typings/plugins/erp.plugins";
|
package/build/index.js
CHANGED
|
@@ -176,6 +176,9 @@ __exportStar(require("./typings/kpis/vendor/main/vHomeDashboardKpi.typings"), ex
|
|
|
176
176
|
// Vendor Panel typings
|
|
177
177
|
__exportStar(require("./typings/vendor/companyProfile.typings"), exports);
|
|
178
178
|
__exportStar(require("./typings/vendor/vendorFormRollbackRemark.typings"), exports);
|
|
179
|
+
__exportStar(require("./typings/vendor/vendorPermission.typings"), exports);
|
|
180
|
+
__exportStar(require("./typings/vendor/vendorRole.typings"), exports);
|
|
181
|
+
__exportStar(require("./typings/vendor/vendorUser.typings"), exports);
|
|
179
182
|
// Helpers
|
|
180
183
|
__exportStar(require("./helpers/padNumber.helper"), exports);
|
|
181
184
|
// 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,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,35 @@
|
|
|
1
|
+
import { PERMISSION_RESOURCES } from "../../constants/permission.constants";
|
|
2
|
+
import { IPaginationFilters } from "../common/paginationFilters.typings";
|
|
3
|
+
import { INestedVendor } from "../vendor.typings";
|
|
4
|
+
import { INestedVendorRole } from "./vendorRole.typings";
|
|
5
|
+
export interface IVendorPermission {
|
|
6
|
+
id: string;
|
|
7
|
+
read_only_perm?: boolean | null;
|
|
8
|
+
cu_perm?: boolean | null;
|
|
9
|
+
accept_perm?: boolean | null;
|
|
10
|
+
sfca_perm?: boolean | null;
|
|
11
|
+
dispatch_perm?: boolean | null;
|
|
12
|
+
entity_type: string;
|
|
13
|
+
role_id: string;
|
|
14
|
+
parent_vendor_id: string;
|
|
15
|
+
is_enabled: boolean;
|
|
16
|
+
is_deleted: boolean;
|
|
17
|
+
deleted_at?: string | null;
|
|
18
|
+
created_at: string;
|
|
19
|
+
updated_at: string;
|
|
20
|
+
vendor?: INestedVendor | null;
|
|
21
|
+
parent_role?: INestedVendorRole | null;
|
|
22
|
+
}
|
|
23
|
+
export interface INestedVendorPermission extends Omit<IVendorPermission, "vendor" | "parent_role"> {
|
|
24
|
+
}
|
|
25
|
+
export declare enum VENDOR_PERMISSION_INCLUDE {
|
|
26
|
+
vendor = "vendor",
|
|
27
|
+
parent_role = "parent_role"
|
|
28
|
+
}
|
|
29
|
+
export interface IVendorPermissionFilters {
|
|
30
|
+
role_ids?: string[];
|
|
31
|
+
document_types?: PERMISSION_RESOURCES[];
|
|
32
|
+
include?: VENDOR_PERMISSION_INCLUDE[];
|
|
33
|
+
}
|
|
34
|
+
export interface IVendorPermissionFiltersWithPagination extends IPaginationFilters, IVendorPermissionFilters {
|
|
35
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
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_role"] = "parent_role";
|
|
8
|
+
})(VENDOR_PERMISSION_INCLUDE || (exports.VENDOR_PERMISSION_INCLUDE = VENDOR_PERMISSION_INCLUDE = {}));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { INestedVendor } from "../vendor.typings";
|
|
2
|
+
import { INestedVendorPermission } from "./vendorPermission.typings";
|
|
3
|
+
import { INestedVendorUser } from "./vendorUser.typings";
|
|
4
|
+
export interface IVendorRole {
|
|
5
|
+
id: string;
|
|
6
|
+
parent_vendor_id: string;
|
|
7
|
+
role_name: string;
|
|
8
|
+
role_code: string;
|
|
9
|
+
is_enabled: boolean;
|
|
10
|
+
is_deleted: boolean;
|
|
11
|
+
deleted_at?: string | null;
|
|
12
|
+
created_at: string;
|
|
13
|
+
updated_at: string;
|
|
14
|
+
vendor?: INestedVendor | null;
|
|
15
|
+
assigned_vendor_user?: INestedVendorUser[] | null;
|
|
16
|
+
vendorPermissions?: INestedVendorPermission[] | null;
|
|
17
|
+
}
|
|
18
|
+
export interface INestedVendorRole extends Omit<IVendorRole, "vendor" | " assigned_vendor_user" | "vendorPermissions"> {
|
|
19
|
+
}
|
|
20
|
+
export declare enum VENDOR_ROLE_INCLUDE {
|
|
21
|
+
vendor = "vendor",
|
|
22
|
+
assigned_vendor_user = "assigned_vendor_user",
|
|
23
|
+
vendorPermissions = "vendorPermissions"
|
|
24
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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["assigned_vendor_user"] = "assigned_vendor_user";
|
|
8
|
+
VENDOR_ROLE_INCLUDE["vendorPermissions"] = "vendorPermissions";
|
|
9
|
+
})(VENDOR_ROLE_INCLUDE || (exports.VENDOR_ROLE_INCLUDE = VENDOR_ROLE_INCLUDE = {}));
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
}
|
|
52
|
+
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"> {
|
|
53
|
+
}
|
|
54
|
+
export declare enum VENDOR_USER_INCLUDE {
|
|
55
|
+
parent_vendor = "parent_vendor",
|
|
56
|
+
otps = "otps",
|
|
57
|
+
created_vendor_items = "created_vendor_items",
|
|
58
|
+
last_updated_vendor_items = "last_updated_vendor_items",
|
|
59
|
+
deleted_vendor_items = "deleted_vendor_items",
|
|
60
|
+
created_company_specific_vendor_item_versions = "created_company_specific_vendor_item_versions",
|
|
61
|
+
last_udpated_company_specific_vendor_item_versions = "last_udpated_company_specific_vendor_item_versions",
|
|
62
|
+
deleted_company_specific_vendor_item_versions = "deleted_company_specific_vendor_item_versions",
|
|
63
|
+
accepted_rejected_po = "accepted_rejected_po",
|
|
64
|
+
vendor_user_notifications = "vendor_user_notifications",
|
|
65
|
+
quotes_last_updated = "quotes_last_updated",
|
|
66
|
+
created_asns = "created_asns",
|
|
67
|
+
last_updated_asns = "last_updated_asns",
|
|
68
|
+
cancelled_asn = "cancelled_asn",
|
|
69
|
+
owned_vendor_organizations = "owned_vendor_organizations",
|
|
70
|
+
contact_person_for_po_at = "contact_person_for_po_at",
|
|
71
|
+
contact_person_for_quote_at = "contact_person_for_quote_at",
|
|
72
|
+
contact_person_for_asn_at = "contact_person_for_asn_at",
|
|
73
|
+
contact_person_for_general_at = "contact_person_for_general_at"
|
|
74
|
+
}
|
|
75
|
+
export interface IVendorUserFilters {
|
|
76
|
+
name?: string;
|
|
77
|
+
include?: VENDOR_USER_INCLUDE[];
|
|
78
|
+
}
|
|
79
|
+
export interface IVendorUserFiltersWithPagination extends IPaginationFilters, IVendorUserFilters {
|
|
80
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 || (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_roles: INestedVendorRole[] | null;
|
|
79
|
+
vendor_permissions: INestedVendorPermission[] | null;
|
|
80
|
+
vendor_users: INestedVendorUser[] | 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_roles" | "vendor_permissions" | "vendor_users" | "owner_vendor_user" | "po_contact_vendor_user" | "quote_contact_vendor_user" | "asn_contact_vendor_user" | "general_contact_vendor_user"> {
|
|
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_roles = "vendor_roles",
|
|
117
|
+
vendor_permissions = "vendor_permissions",
|
|
118
|
+
vendor_users = "vendor_users",
|
|
119
|
+
owner_vendor_user = "owner_vendor_user",
|
|
120
|
+
po_contact_vendor_user = "po_contact_vendor_user",
|
|
121
|
+
quote_contact_vendor_user = "quote_contact_vendor_user",
|
|
122
|
+
asn_contact_vendor_user = "asn_contact_vendor_user",
|
|
123
|
+
general_contact_vendor_user = "general_contact_vendor_user"
|
|
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,14 @@ 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_INCLUDE["vendor_roles"] = "vendor_roles";
|
|
25
|
+
VENDOR_INCLUDE["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";
|
|
24
32
|
})(VENDOR_INCLUDE || (exports.VENDOR_INCLUDE = VENDOR_INCLUDE = {}));
|
|
25
33
|
// for GST-Core activities Types
|
|
26
34
|
var VENDOR_TYPE;
|
|
@@ -36,12 +44,12 @@ var VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS;
|
|
|
36
44
|
VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["vendor_trade_name"] = "vendor_trade_name";
|
|
37
45
|
VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["vendor_legal_name"] = "vendor_legal_name";
|
|
38
46
|
VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["constitution_of_business"] = "constitution_of_business";
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
47
|
+
// firstname = "firstname",
|
|
48
|
+
// middlename = "middlename",
|
|
49
|
+
// lastname = "lastname",
|
|
50
|
+
// email = "email",
|
|
51
|
+
// contact = "contact",
|
|
52
|
+
// designation = "designation",
|
|
45
53
|
VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["gst_no"] = "gst_no";
|
|
46
54
|
VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["pan_no"] = "pan_no";
|
|
47
55
|
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 = {}));
|
|
@@ -35,3 +35,22 @@ export interface IIFSCData {
|
|
|
35
35
|
address: string | null;
|
|
36
36
|
contact: string | null;
|
|
37
37
|
}
|
|
38
|
+
export interface IFSCAPIResponse {
|
|
39
|
+
ADDRESS: string;
|
|
40
|
+
MICR: string;
|
|
41
|
+
IMPS: boolean;
|
|
42
|
+
SWIFT: string;
|
|
43
|
+
NEFT: boolean;
|
|
44
|
+
ISO3166: string;
|
|
45
|
+
DISTRICT: string;
|
|
46
|
+
RTGS: boolean;
|
|
47
|
+
CENTRE: string;
|
|
48
|
+
UPI: boolean;
|
|
49
|
+
STATE: string;
|
|
50
|
+
CITY: string;
|
|
51
|
+
BRANCH: string;
|
|
52
|
+
CONTACT: string;
|
|
53
|
+
BANK: string;
|
|
54
|
+
BANKCODE: string;
|
|
55
|
+
IFSC: string;
|
|
56
|
+
}
|
|
@@ -2,6 +2,16 @@ export interface IGSTReturnFilingFrequencyResponseUnit {
|
|
|
2
2
|
quarter: string;
|
|
3
3
|
preference: string;
|
|
4
4
|
}
|
|
5
|
+
export type GSTReturnType = "GSTR1" | "GSTR3B" | "CMP08" | "GSTR4" | "GSTR9" | "GSTR9C";
|
|
6
|
+
export interface IGSTReturnFilingStatusResponseUnit {
|
|
7
|
+
fy: string;
|
|
8
|
+
taxp: string;
|
|
9
|
+
mof: string;
|
|
10
|
+
dof: string;
|
|
11
|
+
rtntype: GSTReturnType;
|
|
12
|
+
arn: string;
|
|
13
|
+
status: string;
|
|
14
|
+
}
|
|
5
15
|
export interface IGSTReturnFilingFrequencyResponse {
|
|
6
16
|
status: number;
|
|
7
17
|
data: {
|
|
@@ -12,15 +22,6 @@ export interface IGSTReturnFilingFrequencyReq {
|
|
|
12
22
|
fy: string;
|
|
13
23
|
gstin: string;
|
|
14
24
|
}
|
|
15
|
-
export interface IGSTReturnFilingStatusResponseUnit {
|
|
16
|
-
fy: string;
|
|
17
|
-
taxp: string;
|
|
18
|
-
mof: string;
|
|
19
|
-
dof: string;
|
|
20
|
-
rtntype: string;
|
|
21
|
-
arn: string;
|
|
22
|
-
status: string;
|
|
23
|
-
}
|
|
24
25
|
export interface IGSTReturnFilingStatusResponse {
|
|
25
26
|
filingStatus: IGSTReturnFilingStatusResponseUnit[][];
|
|
26
27
|
}
|
|
@@ -38,63 +38,64 @@ export interface IUdyamApiResponsev2 {
|
|
|
38
38
|
}
|
|
39
39
|
export interface MSMEData {
|
|
40
40
|
udyam_number: string;
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
41
|
+
dic: string;
|
|
42
|
+
"date_of_commencement_of_production/business": string;
|
|
43
|
+
date_of_incorporation: string;
|
|
44
|
+
date_of_udyam_registration: string;
|
|
45
|
+
gender: string;
|
|
46
|
+
"msme-dfo": string;
|
|
47
|
+
major_activity: string;
|
|
48
|
+
name_of_enterprise: string;
|
|
49
|
+
organisation_type: string;
|
|
50
|
+
social_category: string;
|
|
51
|
+
udyam_registration_number: string;
|
|
52
|
+
"unit/plant_locations_details": UnitPlantLocation[];
|
|
53
53
|
enterprise_type: EnterpriseType[];
|
|
54
54
|
national_industry_classification_code: NationalIndustryClassificationCode[];
|
|
55
55
|
official_address_of_enterprise: OfficialAddress;
|
|
56
|
-
|
|
56
|
+
updated_at: Record<string, unknown>;
|
|
57
|
+
pdf: string;
|
|
57
58
|
}
|
|
58
59
|
export interface UnitPlantLocation {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
60
|
+
sn: string;
|
|
61
|
+
unit_name: string;
|
|
62
|
+
flat: string;
|
|
63
|
+
building: string;
|
|
64
|
+
"village/town": string;
|
|
65
|
+
block: string;
|
|
66
|
+
road: string;
|
|
67
|
+
city: string;
|
|
68
|
+
pin: string;
|
|
69
|
+
state: string;
|
|
70
|
+
district: string;
|
|
70
71
|
}
|
|
71
72
|
export interface EnterpriseType {
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
"sno.": string;
|
|
74
|
+
data_year: string;
|
|
75
|
+
classification_year: string;
|
|
76
|
+
enterprise_type: string;
|
|
77
|
+
classification_date: string;
|
|
77
78
|
}
|
|
78
79
|
export interface NationalIndustryClassificationCode {
|
|
79
|
-
"
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
"sno.": string;
|
|
81
|
+
nic_2_digit: string;
|
|
82
|
+
nic_4_digit: string;
|
|
83
|
+
nic_5_digit: string;
|
|
84
|
+
activity: string;
|
|
85
|
+
date: string;
|
|
85
86
|
}
|
|
86
87
|
export interface OfficialAddress {
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
88
|
+
"flat/door/block_no.": string;
|
|
89
|
+
"name_of_premises/_building": string;
|
|
90
|
+
"village/town": string;
|
|
91
|
+
block: string;
|
|
92
|
+
"road/street/lane": string;
|
|
93
|
+
city: string;
|
|
94
|
+
state: string;
|
|
95
|
+
district: string;
|
|
95
96
|
pin: string;
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
mobile: string;
|
|
98
|
+
email: string;
|
|
98
99
|
}
|
|
99
100
|
export interface IVerifyUdyamReq {
|
|
100
101
|
udyam_no: string;
|
|
@@ -1,2 +1,66 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// New Udyam Data format - 21/Feb/2026 onwards //
|
|
4
|
+
// export interface MSMEData {
|
|
5
|
+
// udyam_number: string;
|
|
6
|
+
// DIC: string;
|
|
7
|
+
// "Date of Commencement of Production/Business": string;
|
|
8
|
+
// "Date of Incorporation": string;
|
|
9
|
+
// "Date of Udyam Registration": string;
|
|
10
|
+
// Gender: string;
|
|
11
|
+
// "MSME-DFO": string;
|
|
12
|
+
// "Major Activity": string;
|
|
13
|
+
// "Name of Enterprise": string;
|
|
14
|
+
// "Organisation Type": string;
|
|
15
|
+
// "Social Category": string;
|
|
16
|
+
// "Udyam Registration Number": string;
|
|
17
|
+
// "Unit/Plant Locations Details": UnitPlantLocation[];
|
|
18
|
+
// enterprise_type: EnterpriseType[];
|
|
19
|
+
// national_industry_classification_code: NationalIndustryClassificationCode[];
|
|
20
|
+
// official_address_of_enterprise: OfficialAddress;
|
|
21
|
+
// updatedAt: string;
|
|
22
|
+
// }
|
|
23
|
+
// export interface UnitPlantLocation {
|
|
24
|
+
// SN: string;
|
|
25
|
+
// "Unit Name": string;
|
|
26
|
+
// Flat: string;
|
|
27
|
+
// Building: string;
|
|
28
|
+
// "Village/Town": string;
|
|
29
|
+
// Block: string;
|
|
30
|
+
// Road: string;
|
|
31
|
+
// City: string;
|
|
32
|
+
// Pin: string;
|
|
33
|
+
// State: string;
|
|
34
|
+
// District: string;
|
|
35
|
+
// }
|
|
36
|
+
// export interface EnterpriseType {
|
|
37
|
+
// "SNo.": string;
|
|
38
|
+
// "Data Year": string;
|
|
39
|
+
// "Classification Year": string;
|
|
40
|
+
// "Enterprise Type": string;
|
|
41
|
+
// "Classification Date": string;
|
|
42
|
+
// }
|
|
43
|
+
// export interface NationalIndustryClassificationCode {
|
|
44
|
+
// "SNo.": string;
|
|
45
|
+
// "Nic 2 Digit": string;
|
|
46
|
+
// "Nic 4 Digit": string;
|
|
47
|
+
// "Nic 5 Digit": string;
|
|
48
|
+
// Activity: string;
|
|
49
|
+
// Date: string;
|
|
50
|
+
// }
|
|
51
|
+
// export interface OfficialAddress {
|
|
52
|
+
// "Flat/Door/Block No.": string;
|
|
53
|
+
// "Name of Premises/ Building": string;
|
|
54
|
+
// "Village/Town": string;
|
|
55
|
+
// Block: string;
|
|
56
|
+
// "Road/Street/Lane": string;
|
|
57
|
+
// City: string;
|
|
58
|
+
// State: string;
|
|
59
|
+
// District: string;
|
|
60
|
+
// pin: string;
|
|
61
|
+
// Mobile: string;
|
|
62
|
+
// Email: string;
|
|
63
|
+
// }
|
|
64
|
+
// export interface IVerifyUdyamReq {
|
|
65
|
+
// udyam_no: string;
|
|
66
|
+
// }
|