kcommons 14.25.4 → 14.26.1
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/permission.constants.d.ts +5 -1
- package/build/constants/permission.constants.js +4 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +3 -0
- package/build/typings/asn.typings.d.ts +4 -0
- package/build/typings/company/masters/po.typings.d.ts +6 -2
- package/build/typings/company/masters/po.typings.js +1 -0
- package/build/typings/indent.typings.d.ts +7 -2
- package/build/typings/notifications.typings.d.ts +3 -0
- package/build/typings/quote.typings.d.ts +1 -0
- package/build/typings/rfq.typings.d.ts +2 -1
- 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 +46 -0
- package/build/typings/vendor/vendorUser.typings.js +10 -0
- package/build/typings/vendor.typings.d.ts +11 -12
- package/build/typings/vendor.typings.js +3 -0
- package/build/typings/vendorItem.typings.d.ts +2 -0
- package/package.json +1 -1
|
@@ -6,7 +6,11 @@ export declare enum PERMISSION_ACTIONS {
|
|
|
6
6
|
STS = "send_to_store_perm",
|
|
7
7
|
SEND_QUESTIONS = "send_ques_perm",
|
|
8
8
|
INVITE = "invite_perm",
|
|
9
|
-
ONBOARDING = "onboarding_perm"
|
|
9
|
+
ONBOARDING = "onboarding_perm",
|
|
10
|
+
CU = "cu_perm",
|
|
11
|
+
ACCEPT = "accept_perm",
|
|
12
|
+
SFCA = "sfca_perm",
|
|
13
|
+
DISPATCH = "dispatch_perm"
|
|
10
14
|
}
|
|
11
15
|
export declare enum DOCUMENTS {
|
|
12
16
|
INDENT = "INDENT",
|
|
@@ -13,6 +13,10 @@ var PERMISSION_ACTIONS;
|
|
|
13
13
|
PERMISSION_ACTIONS["SEND_QUESTIONS"] = "send_ques_perm";
|
|
14
14
|
PERMISSION_ACTIONS["INVITE"] = "invite_perm";
|
|
15
15
|
PERMISSION_ACTIONS["ONBOARDING"] = "onboarding_perm";
|
|
16
|
+
PERMISSION_ACTIONS["CU"] = "cu_perm";
|
|
17
|
+
PERMISSION_ACTIONS["ACCEPT"] = "accept_perm";
|
|
18
|
+
PERMISSION_ACTIONS["SFCA"] = "sfca_perm";
|
|
19
|
+
PERMISSION_ACTIONS["DISPATCH"] = "dispatch_perm";
|
|
16
20
|
})(PERMISSION_ACTIONS || (exports.PERMISSION_ACTIONS = PERMISSION_ACTIONS = {}));
|
|
17
21
|
var DOCUMENTS;
|
|
18
22
|
(function (DOCUMENTS) {
|
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
|
|
@@ -150,6 +150,10 @@ export interface IASN {
|
|
|
150
150
|
hand_delivery_identification_document_type: string | null;
|
|
151
151
|
hand_delivery_identification_document_no: string | null;
|
|
152
152
|
invoice_no: string | null;
|
|
153
|
+
sent_for_approval_by_vendor_user_id: string | null;
|
|
154
|
+
dispatch_by_vendor_user_id: string | null;
|
|
155
|
+
last_updated_by_vendor_user_id: string | null;
|
|
156
|
+
cancelled_by_vendor_user_id: string | null;
|
|
153
157
|
created_by_vendor?: INestedVendor | null;
|
|
154
158
|
for_company: INestedCompany | null;
|
|
155
159
|
parent_po: INestedPo | null;
|
|
@@ -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",
|
|
@@ -132,6 +133,7 @@ export interface IPurchaseOrder {
|
|
|
132
133
|
deleted_at: string | null;
|
|
133
134
|
created_at: string;
|
|
134
135
|
updated_at: string;
|
|
136
|
+
accepted_rejected_by_vendor_user_id: string | null;
|
|
135
137
|
company: INestedCompany | null;
|
|
136
138
|
purchase_location: INestedPurchaseLocation | null;
|
|
137
139
|
shipping_store_location: INestedStoreLocation | null;
|
|
@@ -159,8 +161,9 @@ export interface IPurchaseOrder {
|
|
|
159
161
|
tnc: INestedTermsAndConditions | null;
|
|
160
162
|
pt: INestedPo | null;
|
|
161
163
|
metafields: IPOMetafields | null;
|
|
164
|
+
accepted_rejected_by_vendor_user: INestedVendorUser | null;
|
|
162
165
|
}
|
|
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"> {
|
|
166
|
+
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"> {
|
|
164
167
|
}
|
|
165
168
|
export declare enum PO_INCLUDE {
|
|
166
169
|
invoices = "invoices",
|
|
@@ -189,7 +192,8 @@ export declare enum PO_INCLUDE {
|
|
|
189
192
|
directly_created_grns = "directly_created_grns",
|
|
190
193
|
child_ves = "child_ves",
|
|
191
194
|
tnc = "tnc",
|
|
192
|
-
pt = "pt"
|
|
195
|
+
pt = "pt",
|
|
196
|
+
accepted_rejected_by_vendor_user = "accepted_rejected_by_vendor_user"
|
|
193
197
|
}
|
|
194
198
|
export interface IPOItem extends ITaxRelatedItemInputs {
|
|
195
199
|
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) {
|
|
@@ -23,14 +23,19 @@ export interface IIndentFilters extends Partial<Pick<IIndent, "on_behalf_of_non_
|
|
|
23
23
|
department_id?: string;
|
|
24
24
|
store_location_id?: string;
|
|
25
25
|
name?: string;
|
|
26
|
-
|
|
27
|
-
status?: IndentStatus;
|
|
26
|
+
status_array?: IndentStatus[];
|
|
28
27
|
include?: IndentInclude[];
|
|
29
28
|
list_type?: INDENT_LIST_TYPE;
|
|
30
29
|
metafields_include?: INDENT_METAFIELDS_INCLUDE[];
|
|
30
|
+
/** @deprecated Use status_array instead*/
|
|
31
|
+
status?: IndentStatus;
|
|
31
32
|
}
|
|
32
33
|
export interface IIndentFiltersWithPagiantion extends IPaginationFilters, IIndentFilters {
|
|
33
34
|
}
|
|
35
|
+
export interface IIndentFilterForMI extends Pick<IIndentFilters, "name" | "include" | "metafields_include"> {
|
|
36
|
+
}
|
|
37
|
+
export interface IIndentFilterForMIWithPagination extends IIndentFilterForMI, IPaginationFilters {
|
|
38
|
+
}
|
|
34
39
|
export declare enum INDENT_TABS {
|
|
35
40
|
ITEMS = "ITEMS",
|
|
36
41
|
APPROVALS = "APPROVALS",
|
|
@@ -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
|
}
|
|
@@ -66,6 +66,7 @@ export interface IQuote {
|
|
|
66
66
|
deleted_at?: string | null;
|
|
67
67
|
created_at?: string | null;
|
|
68
68
|
updated_at?: string | null;
|
|
69
|
+
last_updated_by_vendor_user_id?: string | null;
|
|
69
70
|
parent_rfq: INestedRFQ | null;
|
|
70
71
|
contact_person: INestedUser | null;
|
|
71
72
|
shipping_store_location: INestedStoreLocation | null;
|
|
@@ -12,6 +12,7 @@ import { INestedQuote, INestedQuoteItems } from "./quote.typings";
|
|
|
12
12
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
13
13
|
import { INestedUser, IUser } from "./user.typings";
|
|
14
14
|
import { INestedVendor, IVendor } from "./vendor.typings";
|
|
15
|
+
import { IVendorUser } from "./vendor/vendorUser.typings";
|
|
15
16
|
import { INestedVendorGroups } from "./vendorGroup.typings";
|
|
16
17
|
export declare enum RFQ_LIST_TYPES {
|
|
17
18
|
ALL = "ALL",
|
|
@@ -78,7 +79,7 @@ export declare enum BIDDING_TYPES {
|
|
|
78
79
|
OPEN = "open_bidding",
|
|
79
80
|
CLOSED = "closed_bidding"
|
|
80
81
|
}
|
|
81
|
-
export interface IAdditionalVendorInput extends Pick<IVendor, "
|
|
82
|
+
export interface IAdditionalVendorInput extends Pick<IVendor, "vendor_trade_name" | "address">, Pick<IVendorUser, "email" | "contact" | "firstname" | "lastname"> {
|
|
82
83
|
}
|
|
83
84
|
export interface IRFQ {
|
|
84
85
|
id: string;
|
|
@@ -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,46 @@
|
|
|
1
|
+
import { IPaginationFilters } from "../common/paginationFilters.typings";
|
|
2
|
+
import { INestedPo } from "../company/masters/po.typings";
|
|
3
|
+
import { INestedNotification } from "../notifications.typings";
|
|
4
|
+
import { INestedVendor } from "../vendor.typings";
|
|
5
|
+
export interface IVendorUser {
|
|
6
|
+
id: string;
|
|
7
|
+
contact: string;
|
|
8
|
+
email: string;
|
|
9
|
+
vkraya_id: string;
|
|
10
|
+
password: string;
|
|
11
|
+
is_admin: boolean;
|
|
12
|
+
firstname?: string | null;
|
|
13
|
+
middlename?: string | null;
|
|
14
|
+
lastname?: string | null;
|
|
15
|
+
designation?: string | null;
|
|
16
|
+
profile_img?: string | null;
|
|
17
|
+
parent_vendor_id: string;
|
|
18
|
+
jwtVersion: string;
|
|
19
|
+
employee_code?: string | null;
|
|
20
|
+
vendor_mob_notification_token?: string | null;
|
|
21
|
+
vendor_mob_device_id?: string | null;
|
|
22
|
+
mob_app_version_id?: string | null;
|
|
23
|
+
is_enabled: boolean;
|
|
24
|
+
is_deleted: boolean;
|
|
25
|
+
deleted_at?: string | null;
|
|
26
|
+
created_at: string;
|
|
27
|
+
updated_at: string;
|
|
28
|
+
parent_vendor: INestedVendor | null;
|
|
29
|
+
otps: string | null;
|
|
30
|
+
accepted_rejected_po: INestedPo | null;
|
|
31
|
+
vendor_user_notifications: INestedNotification[] | null;
|
|
32
|
+
}
|
|
33
|
+
export interface INestedVendorUser extends Omit<IVendorUser, "otps" | "parent_vendor" | "accepted_rejected_po" | "vendor_user_notifications"> {
|
|
34
|
+
}
|
|
35
|
+
export declare enum VENDOR_USER_INCLUDE {
|
|
36
|
+
otps = "otps",
|
|
37
|
+
parent_vendor = "parent_vendor",
|
|
38
|
+
accepted_rejected_po = "accepted_rejected_po",
|
|
39
|
+
vendor_user_notifications = "vendor_user_notifications"
|
|
40
|
+
}
|
|
41
|
+
export interface IVendorUserFilters {
|
|
42
|
+
name?: string;
|
|
43
|
+
include?: VENDOR_USER_INCLUDE[];
|
|
44
|
+
}
|
|
45
|
+
export interface IVendorUserFiltersWithPagination extends IPaginationFilters, IVendorUserFilters {
|
|
46
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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["otps"] = "otps";
|
|
7
|
+
VENDOR_USER_INCLUDE["parent_vendor"] = "parent_vendor";
|
|
8
|
+
VENDOR_USER_INCLUDE["accepted_rejected_po"] = "accepted_rejected_po";
|
|
9
|
+
VENDOR_USER_INCLUDE["vendor_user_notifications"] = "vendor_user_notifications";
|
|
10
|
+
})(VENDOR_USER_INCLUDE || (exports.VENDOR_USER_INCLUDE = VENDOR_USER_INCLUDE = {}));
|
|
@@ -11,6 +11,9 @@ 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;
|
|
16
19
|
gst_no: string | null;
|
|
@@ -19,12 +22,6 @@ export interface IVendor extends IAddress {
|
|
|
19
22
|
vendor_trade_name: string;
|
|
20
23
|
vendor_legal_name: string | null;
|
|
21
24
|
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
25
|
pan_no: string | null;
|
|
29
26
|
cin: string | null;
|
|
30
27
|
udyam_aadhar: string | null;
|
|
@@ -33,8 +30,6 @@ export interface IVendor extends IAddress {
|
|
|
33
30
|
bank_name: string | null;
|
|
34
31
|
bank_branch_name: string | null;
|
|
35
32
|
beneficiary_name: string | null;
|
|
36
|
-
vkraya_id: string;
|
|
37
|
-
password: string;
|
|
38
33
|
is_bank_details_verified: boolean;
|
|
39
34
|
is_gst_verified: boolean;
|
|
40
35
|
is_pan_verified: boolean;
|
|
@@ -50,10 +45,8 @@ export interface IVendor extends IAddress {
|
|
|
50
45
|
udyam_aadhar_attachment_link: string | null;
|
|
51
46
|
iso_attachment_link: string | null;
|
|
52
47
|
cancelled_cheque_attachment_link: string | null;
|
|
53
|
-
profile_img: string | null;
|
|
54
48
|
svf_form_status: VENDOR_SVF_FORM_STATUS | null;
|
|
55
49
|
svf_rollback_remark: string | null;
|
|
56
|
-
vendor_mob_notification_token: string | null;
|
|
57
50
|
is_enabled: boolean;
|
|
58
51
|
is_deleted: boolean | null;
|
|
59
52
|
deleted_at: string | null;
|
|
@@ -71,13 +64,16 @@ export interface IVendor extends IAddress {
|
|
|
71
64
|
contact_people: INestedVendorContactPeople[] | null;
|
|
72
65
|
rollback_form_sent_to_vendor: INestedFormRolback[] | null;
|
|
73
66
|
created_queue_jobs: INestedQueueJob[] | null;
|
|
67
|
+
vendor_roles: INestedVendorRole[] | null;
|
|
68
|
+
vendor_permissions: INestedVendorPermission[] | null;
|
|
69
|
+
vendor_user: INestedVendorUser[] | null;
|
|
74
70
|
}
|
|
75
71
|
export declare enum VENDOR_SVF_FORM_STATUS {
|
|
76
72
|
SENT = "SENT",
|
|
77
73
|
ANSWERED = "ANSWERED",
|
|
78
74
|
ROLLED_BACK = "ROLLED_BACK"
|
|
79
75
|
}
|
|
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"> {
|
|
76
|
+
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_user"> {
|
|
81
77
|
}
|
|
82
78
|
export interface IVendorInputs 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"> {
|
|
83
79
|
}
|
|
@@ -93,7 +89,10 @@ export declare enum VENDOR_INCLUDE {
|
|
|
93
89
|
invoices = "invoices",
|
|
94
90
|
contact_people = "contact_people",
|
|
95
91
|
rollback_form_sent_to_vendor = "rollback_form_sent_to_vendor",
|
|
96
|
-
created_queue_jobs = "created_queue_jobs"
|
|
92
|
+
created_queue_jobs = "created_queue_jobs",
|
|
93
|
+
vendor_roles = "vendor_roles",
|
|
94
|
+
vendor_permissions = "vendor_permissions",
|
|
95
|
+
vendor_user = "vendor_user"
|
|
97
96
|
}
|
|
98
97
|
export declare enum VENDOR_TYPE {
|
|
99
98
|
MFG = "Manufracturing",
|
|
@@ -21,6 +21,9 @@ 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_user"] = "vendor_user";
|
|
24
27
|
})(VENDOR_INCLUDE || (exports.VENDOR_INCLUDE = VENDOR_INCLUDE = {}));
|
|
25
28
|
// for GST-Core activities Types
|
|
26
29
|
var VENDOR_TYPE;
|
|
@@ -38,6 +38,8 @@ export interface IVendorItem {
|
|
|
38
38
|
created_at: string;
|
|
39
39
|
updated_at: string;
|
|
40
40
|
keywords: string[];
|
|
41
|
+
created_by_vendor_user_id: string | null;
|
|
42
|
+
last_updated_by_vendor_user_id: string | null;
|
|
41
43
|
vendor: INestedVendor | null;
|
|
42
44
|
vendor_item_categories: INestedVendorItemCategory[] | null;
|
|
43
45
|
company_specific_versions: INestedCompanySpecificVendorItemVersion[] | null;
|