kcommons 15.6.2 → 15.7.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.
@@ -1,6 +1,7 @@
1
1
  export declare enum UPLOAD_PATH_IDS {
2
2
  USER_PROFILE_IMAGE = "USER_PROFILE_IMAGE",
3
3
  INDENT_ATTACHMENT = "INDENT_ATTACHMENT",
4
- INDENT_ITEM_ATTACHMENT = "INDENT_ITEM_ATTACHMENT"
4
+ INDENT_ITEM_ATTACHMENT = "INDENT_ITEM_ATTACHMENT",
5
+ ITEM_IMAGE = "ITEM_IMAGE"
5
6
  }
6
7
  export declare const UPLOAD_PATHS_CONFIG: Record<UPLOAD_PATH_IDS, (fileExtension: string) => string>;
@@ -7,9 +7,11 @@ var UPLOAD_PATH_IDS;
7
7
  UPLOAD_PATH_IDS["USER_PROFILE_IMAGE"] = "USER_PROFILE_IMAGE";
8
8
  UPLOAD_PATH_IDS["INDENT_ATTACHMENT"] = "INDENT_ATTACHMENT";
9
9
  UPLOAD_PATH_IDS["INDENT_ITEM_ATTACHMENT"] = "INDENT_ITEM_ATTACHMENT";
10
+ UPLOAD_PATH_IDS["ITEM_IMAGE"] = "ITEM_IMAGE";
10
11
  })(UPLOAD_PATH_IDS || (exports.UPLOAD_PATH_IDS = UPLOAD_PATH_IDS = {}));
11
12
  exports.UPLOAD_PATHS_CONFIG = {
12
13
  INDENT_ATTACHMENT: (extension) => `v2/company/indents/attachments/indent_attachment_${Date.now()}.${extension}?mediaAccessType=${uploadMedia_typings_1.MEDIA_ACCEESS_TYPE.PRIVATE}`,
13
14
  INDENT_ITEM_ATTACHMENT: (extension) => `v2/company/indent-items/attachments/indent_item_attachment_${Date.now()}.${extension}?mediaAccessType=${uploadMedia_typings_1.MEDIA_ACCEESS_TYPE.PRIVATE}`,
14
15
  USER_PROFILE_IMAGE: (extension) => `v2/company/users/profile-image/user_profile_image_${Date.now()}.${extension}?mediaAccessType=${uploadMedia_typings_1.MEDIA_ACCEESS_TYPE.PUBLIC}`,
16
+ ITEM_IMAGE: (extension) => `v2/company/items/item-image/item_image_${Date.now()}.${extension}?mediaAccessType=${uploadMedia_typings_1.MEDIA_ACCEESS_TYPE.PRIVATE}`,
15
17
  };
@@ -107,6 +107,7 @@ export interface IPOFiltersForCompany extends IPOBaseFilters {
107
107
  company_vendor_id?: string;
108
108
  contact_person_id?: string;
109
109
  external_contact_person_id?: string;
110
+ item_id?: string;
110
111
  list_type?: PO_LIST_TYPES;
111
112
  }
112
113
  export interface IPOFiltersForCompanyWithPagination extends IPOFiltersForCompany, IPaginationFilters {
@@ -284,6 +285,7 @@ export interface IPOFilters {
284
285
  list_type?: PO_LIST_TYPES;
285
286
  contact_person_id?: string;
286
287
  external_contact_person_id?: string;
288
+ item_id?: string;
287
289
  metafields_include?: PO_METAFIELDS_INCLUDE[];
288
290
  }
289
291
  /** @deprecated */
@@ -117,6 +117,7 @@ export interface IOPEN_QUOTE_TOKEN_PAYLOAD {
117
117
  export interface IQuoteFilters {
118
118
  company_id?: string;
119
119
  name?: string;
120
+ item_id?: string;
120
121
  include?: QUOTE_INCLUDES[];
121
122
  metafields_include?: QUOTE_META_INCLUDES[];
122
123
  }
@@ -54,3 +54,22 @@ export interface IFSCAPIResponse {
54
54
  BANKCODE: string;
55
55
  IFSC: string;
56
56
  }
57
+ export interface IIFSCDataResponseV2 {
58
+ CITY: string | null;
59
+ ISO3166: string | null;
60
+ CENTRE: string | null;
61
+ BRANCH: string | null;
62
+ MICR: string | null;
63
+ CONTACT: string | null;
64
+ ADDRESS: string | null;
65
+ IMPS: boolean | null;
66
+ DISTRICT: string | null;
67
+ SWIFT: string | null;
68
+ STATE: string | null;
69
+ UPI: boolean | null;
70
+ RTGS: boolean | null;
71
+ NEFT: boolean | null;
72
+ BANK: string | null;
73
+ BANKCODE: string | null;
74
+ IFSC: string | null;
75
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "15.6.2",
3
+ "version": "15.7.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",