kcommons 14.27.1 → 14.28.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.
@@ -6,11 +6,7 @@ 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",
10
- CU = "cu_perm",
11
- ACCEPT = "accept_perm",
12
- SFCA = "sfca_perm",
13
- DISPATCH = "dispatch_perm"
9
+ ONBOARDING = "onboarding_perm"
14
10
  }
15
11
  export declare enum DOCUMENTS {
16
12
  INDENT = "INDENT",
@@ -13,10 +13,6 @@ 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";
20
16
  })(PERMISSION_ACTIONS || (exports.PERMISSION_ACTIONS = PERMISSION_ACTIONS = {}));
21
17
  var DOCUMENTS;
22
18
  (function (DOCUMENTS) {
package/build/index.d.ts CHANGED
@@ -143,9 +143,6 @@ 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";
149
146
  export * from "./helpers/padNumber.helper";
150
147
  export * from "./typings/plugins/plugin.typings";
151
148
  export * from "./typings/plugins/erp.plugins";
package/build/index.js CHANGED
@@ -176,9 +176,6 @@ __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);
182
179
  // Helpers
183
180
  __exportStar(require("./helpers/padNumber.helper"), exports);
184
181
  // Plugins
@@ -150,10 +150,6 @@ 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;
157
153
  created_by_vendor?: INestedVendor | null;
158
154
  for_company: INestedCompany | null;
159
155
  parent_po: INestedPo | null;
@@ -20,7 +20,6 @@ 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";
24
23
  export declare enum PO_LIST_TYPES {
25
24
  ALL = "ALL",
26
25
  CREATED_BY_ME = "CREATED_BY_ME",
@@ -133,7 +132,6 @@ export interface IPurchaseOrder {
133
132
  deleted_at: string | null;
134
133
  created_at: string;
135
134
  updated_at: string;
136
- accepted_rejected_by_vendor_user_id: string | null;
137
135
  company: INestedCompany | null;
138
136
  purchase_location: INestedPurchaseLocation | null;
139
137
  shipping_store_location: INestedStoreLocation | null;
@@ -161,9 +159,8 @@ export interface IPurchaseOrder {
161
159
  tnc: INestedTermsAndConditions | null;
162
160
  pt: INestedPo | null;
163
161
  metafields: IPOMetafields | null;
164
- accepted_rejected_by_vendor_user: INestedVendorUser | null;
165
162
  }
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"> {
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"> {
167
164
  }
168
165
  export declare enum PO_INCLUDE {
169
166
  invoices = "invoices",
@@ -192,8 +189,7 @@ export declare enum PO_INCLUDE {
192
189
  directly_created_grns = "directly_created_grns",
193
190
  child_ves = "child_ves",
194
191
  tnc = "tnc",
195
- pt = "pt",
196
- accepted_rejected_by_vendor_user = "accepted_rejected_by_vendor_user"
192
+ pt = "pt"
197
193
  }
198
194
  export interface IPOItem extends ITaxRelatedItemInputs {
199
195
  id: string;
@@ -78,7 +78,6 @@ 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";
82
81
  })(PO_INCLUDE || (exports.PO_INCLUDE = PO_INCLUDE = {}));
83
82
  var PO_ITEM_INCLUDE;
84
83
  (function (PO_ITEM_INCLUDE) {
@@ -4,7 +4,6 @@ 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";
8
7
  export interface INotificationsPayload {
9
8
  }
10
9
  export declare enum NOTIFICATION_RECEIVER_TYPE {
@@ -39,11 +38,9 @@ export interface INotification {
39
38
  deleted_at?: string | null;
40
39
  created_at: string;
41
40
  updated_at: string;
42
- vendor_user_id?: string | null;
43
41
  company: INestedCompany | null;
44
42
  user: INestedUser | null;
45
43
  vendor: INestedVendor | null;
46
- vendor_user: INestedVendorUser | null;
47
44
  }
48
45
  export interface INestedNotification extends Omit<INotification, "company" | "vendor" | "user"> {
49
46
  }
@@ -66,7 +66,6 @@ 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;
70
69
  parent_rfq: INestedRFQ | null;
71
70
  contact_person: INestedUser | null;
72
71
  shipping_store_location: INestedStoreLocation | null;
@@ -12,7 +12,6 @@ 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";
16
15
  import { INestedVendorGroups } from "./vendorGroup.typings";
17
16
  export declare enum RFQ_LIST_TYPES {
18
17
  ALL = "ALL",
@@ -79,7 +78,7 @@ export declare enum BIDDING_TYPES {
79
78
  OPEN = "open_bidding",
80
79
  CLOSED = "closed_bidding"
81
80
  }
82
- export interface IAdditionalVendorInput extends Pick<IVendor, "vendor_trade_name" | "address">, Pick<IVendorUser, "email" | "contact" | "firstname" | "lastname"> {
81
+ export interface IAdditionalVendorInput extends Pick<IVendor, "email" | "contact" | "vendor_trade_name" | "firstname" | "lastname" | "address"> {
83
82
  }
84
83
  export interface IRFQ {
85
84
  id: string;
@@ -11,9 +11,6 @@ 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";
17
14
  export interface IVendor extends IAddress {
18
15
  id: string;
19
16
  gst_no: string | null;
@@ -22,6 +19,12 @@ export interface IVendor extends IAddress {
22
19
  vendor_trade_name: string;
23
20
  vendor_legal_name: string | null;
24
21
  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;
25
28
  pan_no: string | null;
26
29
  cin: string | null;
27
30
  udyam_aadhar: string | null;
@@ -30,6 +33,8 @@ export interface IVendor extends IAddress {
30
33
  bank_name: string | null;
31
34
  bank_branch_name: string | null;
32
35
  beneficiary_name: string | null;
36
+ vkraya_id: string;
37
+ password: string;
33
38
  is_bank_details_verified: boolean;
34
39
  is_gst_verified: boolean;
35
40
  is_pan_verified: boolean;
@@ -45,8 +50,10 @@ export interface IVendor extends IAddress {
45
50
  udyam_aadhar_attachment_link: string | null;
46
51
  iso_attachment_link: string | null;
47
52
  cancelled_cheque_attachment_link: string | null;
53
+ profile_img: string | null;
48
54
  svf_form_status: VENDOR_SVF_FORM_STATUS | null;
49
55
  svf_rollback_remark: string | null;
56
+ vendor_mob_notification_token: string | null;
50
57
  is_enabled: boolean;
51
58
  is_deleted: boolean | null;
52
59
  deleted_at: string | null;
@@ -64,16 +71,13 @@ export interface IVendor extends IAddress {
64
71
  contact_people: INestedVendorContactPeople[] | null;
65
72
  rollback_form_sent_to_vendor: INestedFormRolback[] | null;
66
73
  created_queue_jobs: INestedQueueJob[] | null;
67
- vendor_roles: INestedVendorRole[] | null;
68
- vendor_permissions: INestedVendorPermission[] | null;
69
- vendor_user: INestedVendorUser[] | null;
70
74
  }
71
75
  export declare enum VENDOR_SVF_FORM_STATUS {
72
76
  SENT = "SENT",
73
77
  ANSWERED = "ANSWERED",
74
78
  ROLLED_BACK = "ROLLED_BACK"
75
79
  }
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"> {
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"> {
77
81
  }
78
82
  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"> {
79
83
  }
@@ -89,10 +93,7 @@ export declare enum VENDOR_INCLUDE {
89
93
  invoices = "invoices",
90
94
  contact_people = "contact_people",
91
95
  rollback_form_sent_to_vendor = "rollback_form_sent_to_vendor",
92
- created_queue_jobs = "created_queue_jobs",
93
- vendor_roles = "vendor_roles",
94
- vendor_permissions = "vendor_permissions",
95
- vendor_user = "vendor_user"
96
+ created_queue_jobs = "created_queue_jobs"
96
97
  }
97
98
  export declare enum VENDOR_TYPE {
98
99
  MFG = "Manufracturing",
@@ -21,9 +21,6 @@ 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";
27
24
  })(VENDOR_INCLUDE || (exports.VENDOR_INCLUDE = VENDOR_INCLUDE = {}));
28
25
  // for GST-Core activities Types
29
26
  var VENDOR_TYPE;
@@ -38,8 +38,6 @@ 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;
43
41
  vendor: INestedVendor | null;
44
42
  vendor_item_categories: INestedVendorItemCategory[] | null;
45
43
  company_specific_versions: INestedCompanySpecificVendorItemVersion[] | null;
@@ -35,22 +35,3 @@ 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,16 +2,6 @@ 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
- }
15
5
  export interface IGSTReturnFilingFrequencyResponse {
16
6
  status: number;
17
7
  data: {
@@ -22,6 +12,15 @@ export interface IGSTReturnFilingFrequencyReq {
22
12
  fy: string;
23
13
  gstin: string;
24
14
  }
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
+ }
25
24
  export interface IGSTReturnFilingStatusResponse {
26
25
  filingStatus: IGSTReturnFilingStatusResponseUnit[][];
27
26
  }
@@ -38,64 +38,63 @@ export interface IUdyamApiResponsev2 {
38
38
  }
39
39
  export interface MSMEData {
40
40
  udyam_number: string;
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[];
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
- updated_at: Record<string, unknown>;
57
- pdf: string;
56
+ updatedAt: string;
58
57
  }
59
58
  export interface UnitPlantLocation {
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;
59
+ SN: string;
60
+ "Unit Name": string;
61
+ Flat: string;
62
+ Building: string;
63
+ "Village/Town": string;
64
+ Block: string;
65
+ Road: string;
66
+ City: string;
67
+ Pin: string;
68
+ State: string;
69
+ District: string;
71
70
  }
72
71
  export interface EnterpriseType {
73
- "sno.": string;
74
- data_year: string;
75
- classification_year: string;
76
- enterprise_type: string;
77
- classification_date: string;
72
+ "SNo.": string;
73
+ "Data Year": string;
74
+ "Classification Year": string;
75
+ "Enterprise Type": string;
76
+ "Classification Date": string;
78
77
  }
79
78
  export interface NationalIndustryClassificationCode {
80
- "sno.": string;
81
- nic_2_digit: string;
82
- nic_4_digit: string;
83
- nic_5_digit: string;
84
- activity: string;
85
- date: string;
79
+ "SNo.": string;
80
+ "Nic 2 Digit": string;
81
+ "Nic 4 Digit": string;
82
+ "Nic 5 Digit": string;
83
+ Activity: string;
84
+ Date: string;
86
85
  }
87
86
  export interface OfficialAddress {
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;
87
+ "Flat/Door/Block No.": string;
88
+ "Name of Premises/ Building": string;
89
+ "Village/Town": string;
90
+ Block: string;
91
+ "Road/Street/Lane": string;
92
+ City: string;
93
+ State: string;
94
+ District: string;
96
95
  pin: string;
97
- mobile: string;
98
- email: string;
96
+ Mobile: string;
97
+ Email: string;
99
98
  }
100
99
  export interface IVerifyUdyamReq {
101
100
  udyam_no: string;
@@ -1,66 +1,2 @@
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
- // }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "14.27.1",
3
+ "version": "14.28.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1,35 +0,0 @@
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
- }
@@ -1,8 +0,0 @@
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 = {}));
@@ -1,24 +0,0 @@
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
- }
@@ -1,9 +0,0 @@
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 = {}));
@@ -1,46 +0,0 @@
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
- }
@@ -1,10 +0,0 @@
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 = {}));