kcommons 15.6.0 → 15.6.2

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.
@@ -159,5 +159,8 @@ exports.EntitySpecificDocuments = {
159
159
  PERMISSION_RESOURCES.ITEMS,
160
160
  PERMISSION_RESOURCES.INDENT,
161
161
  ],
162
- [entityTypes_constants_1.EntityTypes.CHECKPOINT]: [PERMISSION_RESOURCES.VES],
162
+ [entityTypes_constants_1.EntityTypes.CHECKPOINT]: [
163
+ PERMISSION_RESOURCES.VES,
164
+ PERMISSION_RESOURCES.INDENT,
165
+ ],
163
166
  };
@@ -1,5 +1,6 @@
1
1
  import { ApprovalConfigInlcude, INestedApprovalChainEntry } from "./approvalChain.typings";
2
2
  import { INestedCompany } from "./company.typings";
3
+ import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
3
4
  import { INestedItemManagementBody } from "./company/masters/itemManagementbody.typings";
4
5
  import { INestedVendorManagementBody } from "./company/masters/vendorManagementBody.typings";
5
6
  import { INestedGate } from "./gate.typings";
@@ -14,7 +15,8 @@ export declare enum APPROVAL_CONFIG_INCLUDE {
14
15
  gate = "gate",
15
16
  approval_chain = "approval_chain",
16
17
  vendor_management_body = "vendor_management_body",
17
- item_management_body = "item_management_body"
18
+ item_management_body = "item_management_body",
19
+ checkpoint = "checkpoint"
18
20
  }
19
21
  export interface IApprovalConfig {
20
22
  id: string;
@@ -28,6 +30,7 @@ export interface IApprovalConfig {
28
30
  gate_id: string | null;
29
31
  vendor_management_body_id: string | null;
30
32
  item_management_body_id: string | null;
33
+ checkpoint_id: string | null;
31
34
  created_at: string;
32
35
  updated_at: string;
33
36
  company?: INestedCompany | null;
@@ -38,9 +41,10 @@ export interface IApprovalConfig {
38
41
  approval_chain?: INestedApprovalChainEntry[] | null;
39
42
  vendor_management_body?: INestedVendorManagementBody | null;
40
43
  item_management_body?: INestedItemManagementBody | null;
44
+ checkpoint?: INestedCheckpoint[] | null;
41
45
  }
42
- export interface INestedApprovalConfig extends Omit<IApprovalConfig, "approval_chain" | "company" | "office" | "store_location" | "purchase_location" | "gate" | "vendor_management_body" | "item_management_body"> {
46
+ export interface INestedApprovalConfig extends Omit<IApprovalConfig, "approval_chain" | "company" | "office" | "store_location" | "purchase_location" | "gate" | "vendor_management_body" | "item_management_body" | "checkpoint"> {
43
47
  }
44
- export interface IApprovalConfigFilters extends Partial<Pick<IApprovalConfig, "office_id" | "gate_id" | "purchase_location_id" | "vendor_management_body_id" | "item_management_body_id" | "store_location_id">> {
48
+ export interface IApprovalConfigFilters extends Partial<Pick<IApprovalConfig, "office_id" | "gate_id" | "purchase_location_id" | "vendor_management_body_id" | "item_management_body_id" | "store_location_id" | "checkpoint_id">> {
45
49
  include?: ApprovalConfigInlcude[] | null;
46
50
  }
@@ -11,4 +11,5 @@ var APPROVAL_CONFIG_INCLUDE;
11
11
  APPROVAL_CONFIG_INCLUDE["approval_chain"] = "approval_chain";
12
12
  APPROVAL_CONFIG_INCLUDE["vendor_management_body"] = "vendor_management_body";
13
13
  APPROVAL_CONFIG_INCLUDE["item_management_body"] = "item_management_body";
14
+ APPROVAL_CONFIG_INCLUDE["checkpoint"] = "checkpoint";
14
15
  })(APPROVAL_CONFIG_INCLUDE || (exports.APPROVAL_CONFIG_INCLUDE = APPROVAL_CONFIG_INCLUDE = {}));
@@ -1,3 +1,4 @@
1
+ import { INestedApprovalConfig } from "../../approvalConfig.typings";
1
2
  import { IPaginationFilters } from "../../common/paginationFilters.typings";
2
3
  import { INestedCompany } from "../../company.typings";
3
4
  import { INestedDepartment } from "../../department.typings";
@@ -41,8 +42,9 @@ export interface ICheckpoints {
41
42
  ves_directed_at_checkpoint: INestedVES[] | null;
42
43
  linked_store_locations: INestedStoreLocation[] | null;
43
44
  ves_passed_through_checkpoint: INestedVESCheckpointTracking[] | null;
45
+ approval_configs: INestedApprovalConfig[] | null;
44
46
  }
45
- export interface INestedCheckpoint extends Omit<ICheckpoints, "company" | "created_by_user" | "last_updated_by_user" | "roles" | "departments" | "ves_created_at_checkpoint" | "ves_directed_at_checkpoint" | "linked_store_locations" | "ves_passed_through_checkpoint" | "associated_gate"> {
47
+ export interface INestedCheckpoint extends Omit<ICheckpoints, "company" | "created_by_user" | "last_updated_by_user" | "roles" | "departments" | "ves_created_at_checkpoint" | "ves_directed_at_checkpoint" | "linked_store_locations" | "ves_passed_through_checkpoint" | "associated_gate" | "approval_configs"> {
46
48
  }
47
49
  /** --- ENUMS--- */
48
50
  export declare enum CHECKPOINT_INCLUDE {
@@ -55,7 +57,8 @@ export declare enum CHECKPOINT_INCLUDE {
55
57
  ves_directed_at_checkpoint = "ves_directed_at_checkpoint",
56
58
  linked_store_locations = "linked_store_locations",
57
59
  ves_passed_through_checkpoint = "ves_passed_through_checkpoint",
58
- associated_gate = "associated_gate"
60
+ associated_gate = "associated_gate",
61
+ approval_configs = "approval_configs"
59
62
  }
60
63
  export declare enum CHECKPOINT_TYPE {
61
64
  /** @deprecated */
@@ -14,6 +14,7 @@ var CHECKPOINT_INCLUDE;
14
14
  CHECKPOINT_INCLUDE["linked_store_locations"] = "linked_store_locations";
15
15
  CHECKPOINT_INCLUDE["ves_passed_through_checkpoint"] = "ves_passed_through_checkpoint";
16
16
  CHECKPOINT_INCLUDE["associated_gate"] = "associated_gate";
17
+ CHECKPOINT_INCLUDE["approval_configs"] = "approval_configs";
17
18
  })(CHECKPOINT_INCLUDE || (exports.CHECKPOINT_INCLUDE = CHECKPOINT_INCLUDE = {}));
18
19
  var CHECKPOINT_TYPE;
19
20
  (function (CHECKPOINT_TYPE) {
@@ -4,6 +4,7 @@ import { INestedCompanyVendors } from "./companyVendors.typings";
4
4
  import { INestedPo } from "./company/masters/po.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 declare enum INVOICE_STATUS {
8
9
  PAID = "PAID",
9
10
  REJECTED = "REJECTED",
@@ -14,14 +15,16 @@ export declare enum INVOICE_INCLUDE {
14
15
  vendor = "vendor",
15
16
  company_vendor = "company_vendor",
16
17
  parent_po = "parent_po",
17
- mark_as_paid_or_rejected_by_user = "mark_as_paid_or_rejected_by_user"
18
+ mark_as_paid_or_rejected_by_user = "mark_as_paid_or_rejected_by_user",
19
+ created_by_vendor_user = "created_by_vendor_user",
20
+ last_updated_by_vendor_user = "last_updated_by_vendor_user"
18
21
  }
19
22
  export interface IInvoiceFiltersForVendor extends Partial<Pick<IInvoice, "company_id" | "parent_po_id" | "status">> {
20
23
  include?: INVOICE_INCLUDE[] | null;
21
24
  }
22
25
  export interface IInvoiceFiltersWithPaginationForVendor extends IInvoiceFiltersForVendor, IPaginationFilters {
23
26
  }
24
- export interface IInvoiceFiltersForCompany extends Partial<Pick<IInvoice, "vendor_id" | "company_vendor_id" | "status" | "parent_po_id" | "mark_as_paid_or_rejected_by_user_id">> {
27
+ export interface IInvoiceFiltersForCompany extends Partial<Pick<IInvoice, "vendor_id" | "company_vendor_id" | "status" | "parent_po_id" | "mark_as_paid_or_rejected_by_user_id" | "created_by_vendor_user_id">> {
25
28
  include?: INVOICE_INCLUDE[] | null;
26
29
  }
27
30
  export interface IInvoiceFiltersWithPaginationForCompany extends IInvoiceFiltersForCompany, IPaginationFilters {
@@ -39,6 +42,8 @@ export interface IInvoice {
39
42
  rejection_reason: string | null;
40
43
  remarks: string | null;
41
44
  attachment_link: string | null;
45
+ created_by_vendor_user_id: string | null;
46
+ last_updated_by_vendor_user_id: string | null;
42
47
  mark_as_paid_or_rejected_by_user_id: string | null;
43
48
  mark_as_paid_or_rejected_at: string | null;
44
49
  is_deleted: boolean;
@@ -50,6 +55,8 @@ export interface IInvoice {
50
55
  company_vendor: INestedCompanyVendors | null;
51
56
  parent_po: INestedPo | null;
52
57
  mark_as_paid_or_rejected_by_user: INestedUser | null;
58
+ created_by_vendor_user: INestedVendorUser | null;
59
+ last_updated_by_vendor_user: INestedVendorUser | null;
53
60
  }
54
- export interface INestedInvoice extends Omit<IInvoice, "company" | "vendor" | "company_vendor" | "parent_po" | "mark_as_paid_or_rejected_by_user"> {
61
+ export interface INestedInvoice extends Omit<IInvoice, "company" | "vendor" | "company_vendor" | "parent_po" | "mark_as_paid_or_rejected_by_user" | "created_by_vendor_user" | "last_updated_by_vendor_user"> {
55
62
  }
@@ -14,4 +14,6 @@ var INVOICE_INCLUDE;
14
14
  INVOICE_INCLUDE["company_vendor"] = "company_vendor";
15
15
  INVOICE_INCLUDE["parent_po"] = "parent_po";
16
16
  INVOICE_INCLUDE["mark_as_paid_or_rejected_by_user"] = "mark_as_paid_or_rejected_by_user";
17
+ INVOICE_INCLUDE["created_by_vendor_user"] = "created_by_vendor_user";
18
+ INVOICE_INCLUDE["last_updated_by_vendor_user"] = "last_updated_by_vendor_user";
17
19
  })(INVOICE_INCLUDE || (exports.INVOICE_INCLUDE = INVOICE_INCLUDE = {}));
@@ -2,6 +2,7 @@ import { INestedASN } from "../asn.typings";
2
2
  import { IPaginationFilters } from "../common/paginationFilters.typings";
3
3
  import { INestedPo } from "../company/masters/po.typings";
4
4
  import { INestedCompanySpecificVendorItemVersion } from "../companySepcificVendorItems.typings";
5
+ import { INestedInvoice } from "../invoices.typings";
5
6
  import { INestedNotification } from "../notifications.typings";
6
7
  import { INestedQuote } from "../quote.typings";
7
8
  import { INestedVendor } from "../vendor.typings";
@@ -55,8 +56,10 @@ export interface IVendorUser {
55
56
  assigned_vendor_roles: INestedVendorRole[] | null;
56
57
  created_vendor_permissions: INestedVendorPermission[] | null;
57
58
  last_updated_vendor_permission: INestedVendorPermission[] | null;
59
+ created_invoices: INestedInvoice[] | null;
60
+ last_updated_invoices: INestedInvoice[] | null;
58
61
  }
59
- export interface INestedVendorUser extends Omit<IVendorUser, "parent_vendor" | "otps" | "created_vendor_items" | "last_updated_vendor_items" | "deleted_vendor_items" | "created_company_specific_vendor_item_versions" | "last_udpated_company_specific_vendor_item_versions" | "deleted_company_specific_vendor_item_versions" | "accepted_rejected_po" | "vendor_user_notifications" | "quotes_last_updated" | "created_asns" | "last_updated_asns" | "cancelled_asn" | "owned_vendor_organizations" | "contact_person_for_po_at" | "contact_person_for_quote_at" | "contact_person_for_asn_at" | "contact_person_for_general_at" | "created_vendor_roles" | "last_updated_vendor_roles" | "assigned_vendor_roles" | "created_vendor_permissions" | "last_updated_vendor_permission"> {
62
+ export interface INestedVendorUser extends Omit<IVendorUser, "parent_vendor" | "otps" | "created_vendor_items" | "last_updated_vendor_items" | "deleted_vendor_items" | "created_company_specific_vendor_item_versions" | "last_udpated_company_specific_vendor_item_versions" | "deleted_company_specific_vendor_item_versions" | "accepted_rejected_po" | "vendor_user_notifications" | "quotes_last_updated" | "created_asns" | "last_updated_asns" | "cancelled_asn" | "owned_vendor_organizations" | "contact_person_for_po_at" | "contact_person_for_quote_at" | "contact_person_for_asn_at" | "contact_person_for_general_at" | "created_vendor_roles" | "last_updated_vendor_roles" | "assigned_vendor_roles" | "created_vendor_permissions" | "last_updated_vendor_permission" | "created_invoices" | "last_updated_invoices"> {
60
63
  }
61
64
  export declare enum VENDOR_USER_INCLUDE {
62
65
  parent_vendor = "parent_vendor",
@@ -82,7 +85,9 @@ export declare enum VENDOR_USER_INCLUDE {
82
85
  last_updated_vendor_roles = "last_updated_vendor_roles",
83
86
  assigned_vendor_roles = "assigned_vendor_roles",
84
87
  created_vendor_permissions = "created_vendor_permissions",
85
- last_updated_vendor_permission = "last_updated_vendor_permission"
88
+ last_updated_vendor_permission = "last_updated_vendor_permission",
89
+ created_invoices = "created_invoices",
90
+ last_updated_invoices = "last_updated_invoices"
86
91
  }
87
92
  export interface IVendorUserFilters {
88
93
  name?: string;
@@ -27,4 +27,6 @@ var VENDOR_USER_INCLUDE;
27
27
  VENDOR_USER_INCLUDE["assigned_vendor_roles"] = "assigned_vendor_roles";
28
28
  VENDOR_USER_INCLUDE["created_vendor_permissions"] = "created_vendor_permissions";
29
29
  VENDOR_USER_INCLUDE["last_updated_vendor_permission"] = "last_updated_vendor_permission";
30
+ VENDOR_USER_INCLUDE["created_invoices"] = "created_invoices";
31
+ VENDOR_USER_INCLUDE["last_updated_invoices"] = "last_updated_invoices";
30
32
  })(VENDOR_USER_INCLUDE || (exports.VENDOR_USER_INCLUDE = VENDOR_USER_INCLUDE = {}));
@@ -34,6 +34,8 @@ export interface IVendor extends IAddress {
34
34
  bank_ifsc_code: string | null;
35
35
  bank_name: string | null;
36
36
  bank_branch_name: string | null;
37
+ bank_city: string | null;
38
+ bank_pincode: string | null;
37
39
  beneficiary_name: string | null;
38
40
  is_bank_details_verified: boolean;
39
41
  is_gst_verified: boolean;
@@ -128,18 +130,20 @@ export declare enum VENDOR_TYPE {
128
130
  SPO = "Service Provider and Others"
129
131
  }
130
132
  export declare enum VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS {
131
- nature_of_business = "nature_of_business",
132
- vendor_business_categories = "vendor_business_categories",
133
+ gst_no = "gst_no",
134
+ pan_no = "pan_no",
133
135
  vendor_trade_name = "vendor_trade_name",
134
136
  vendor_legal_name = "vendor_legal_name",
135
137
  constitution_of_business = "constitution_of_business",
136
- gst_no = "gst_no",
137
- pan_no = "pan_no",
138
- cin = "cin",
139
- udyam_aadhar = "udyam_aadhar",
138
+ nature_of_business = "nature_of_business",
139
+ pincode = "pincode",
140
+ address = "address",
141
+ vendor_business_categories = "vendor_business_categories",
140
142
  bank_account_number = "bank_account_number",
143
+ udyam_aadhar = "udyam_aadhar",
144
+ cin = "cin",
141
145
  iso_attachment_link = "iso_attachment_link",
142
- profile_img = "profile_img"
146
+ categories_keywords = "categories_keywords"
143
147
  }
144
148
  export interface IVENDOR_AUTH_TOKEN_PAYLOAD {
145
149
  vendor_user_id: string;
@@ -41,22 +41,25 @@ var VENDOR_TYPE;
41
41
  })(VENDOR_TYPE || (exports.VENDOR_TYPE = VENDOR_TYPE = {}));
42
42
  var VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS;
43
43
  (function (VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS) {
44
- VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["nature_of_business"] = "nature_of_business";
45
- VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["vendor_business_categories"] = "vendor_business_categories";
44
+ VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["gst_no"] = "gst_no";
45
+ VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["pan_no"] = "pan_no";
46
46
  VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["vendor_trade_name"] = "vendor_trade_name";
47
47
  VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["vendor_legal_name"] = "vendor_legal_name";
48
48
  VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["constitution_of_business"] = "constitution_of_business";
49
+ VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["nature_of_business"] = "nature_of_business";
50
+ VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["pincode"] = "pincode";
51
+ VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["address"] = "address";
52
+ VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["vendor_business_categories"] = "vendor_business_categories";
53
+ VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["bank_account_number"] = "bank_account_number";
54
+ VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["udyam_aadhar"] = "udyam_aadhar";
55
+ VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["cin"] = "cin";
56
+ VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["iso_attachment_link"] = "iso_attachment_link";
57
+ VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["categories_keywords"] = "categories_keywords";
49
58
  // firstname = "firstname",
50
59
  // middlename = "middlename",
51
60
  // lastname = "lastname",
52
61
  // email = "email",
53
62
  // contact = "contact",
54
63
  // designation = "designation",
55
- VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["gst_no"] = "gst_no";
56
- VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["pan_no"] = "pan_no";
57
- VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["cin"] = "cin";
58
- VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["udyam_aadhar"] = "udyam_aadhar";
59
- VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["bank_account_number"] = "bank_account_number";
60
- VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["iso_attachment_link"] = "iso_attachment_link";
61
- VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS["profile_img"] = "profile_img";
64
+ // profile_img = "profile_img",
62
65
  })(VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS || (exports.VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS = VENDOR_LINKABLE_FIELDS_FOR_EXTRA_FORMS = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "15.6.0",
3
+ "version": "15.6.2",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",