kcommons 14.23.2 → 14.23.5

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.
@@ -223,6 +223,8 @@ export interface IASNBaseFilters {
223
223
  include?: ASN_INCLUDE[];
224
224
  name?: string | null;
225
225
  status?: ASN_STATUS;
226
+ status_array?: ASN_STATUS[];
227
+ sorting_order?: ASN_SORTING_ORDER;
226
228
  metafields_include?: ASN_METAFIELDS_INCLUDE[];
227
229
  }
228
230
  export interface IASNFilters extends IASNBaseFilters {
@@ -300,6 +302,10 @@ export interface IASN_TOKEN_PAYLOAD {
300
302
  role_id: string;
301
303
  asn_id: string;
302
304
  }
305
+ export declare enum ASN_SORTING_ORDER {
306
+ asc = "asc",
307
+ desc = "desc"
308
+ }
303
309
  export interface IASNMetafields {
304
310
  items_data: INestedItem[] | null;
305
311
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ASN_METAFIELDS_INCLUDE = exports.ASN_VIEW_PAGE_TYPE = exports.ASN_ITEM_INCLUDE = exports.ASN_HAND_DELIVERY_TRANSPORT_FIELD_PREFIX = exports.ASN_COURIER_TRANSPORT_FIELD_PREFIX = exports.ASN_AIR_TRANSPORT_FIELD_PREFIX = exports.ASN_SEA_TRANSPORT_FIELD_PREFIX = exports.ASN_RAIL_TRANSPORT_FIELD_PREFIX = exports.ASN_ROAD_TRANSPORT_FIELD_PREFIX = exports.ASN_MODE_OF_TRANSPORT_FIELDS = exports.ASN_INCLUDE = exports.IDENTIFICATION_DOCUMENT_TYPE = exports.COURIER_SERVICE_TYPE = exports.VEHICLE_TYPE = exports.MODE_OF_TRANSPORT = exports.SHIPMENT_TYPE = exports.ASN_STATUS = exports.ASN_CANCELLED_BY_ENTITY = void 0;
3
+ exports.ASN_METAFIELDS_INCLUDE = exports.ASN_SORTING_ORDER = exports.ASN_VIEW_PAGE_TYPE = exports.ASN_ITEM_INCLUDE = exports.ASN_HAND_DELIVERY_TRANSPORT_FIELD_PREFIX = exports.ASN_COURIER_TRANSPORT_FIELD_PREFIX = exports.ASN_AIR_TRANSPORT_FIELD_PREFIX = exports.ASN_SEA_TRANSPORT_FIELD_PREFIX = exports.ASN_RAIL_TRANSPORT_FIELD_PREFIX = exports.ASN_ROAD_TRANSPORT_FIELD_PREFIX = exports.ASN_MODE_OF_TRANSPORT_FIELDS = exports.ASN_INCLUDE = exports.IDENTIFICATION_DOCUMENT_TYPE = exports.COURIER_SERVICE_TYPE = exports.VEHICLE_TYPE = exports.MODE_OF_TRANSPORT = exports.SHIPMENT_TYPE = exports.ASN_STATUS = exports.ASN_CANCELLED_BY_ENTITY = void 0;
4
4
  var ASN_CANCELLED_BY_ENTITY;
5
5
  (function (ASN_CANCELLED_BY_ENTITY) {
6
6
  ASN_CANCELLED_BY_ENTITY["COMPANY"] = "COMPANY";
@@ -142,6 +142,11 @@ var ASN_VIEW_PAGE_TYPE;
142
142
  ASN_VIEW_PAGE_TYPE["GATE"] = "GATE";
143
143
  ASN_VIEW_PAGE_TYPE["PO"] = "PO";
144
144
  })(ASN_VIEW_PAGE_TYPE || (exports.ASN_VIEW_PAGE_TYPE = ASN_VIEW_PAGE_TYPE = {}));
145
+ var ASN_SORTING_ORDER;
146
+ (function (ASN_SORTING_ORDER) {
147
+ ASN_SORTING_ORDER["asc"] = "asc";
148
+ ASN_SORTING_ORDER["desc"] = "desc";
149
+ })(ASN_SORTING_ORDER || (exports.ASN_SORTING_ORDER = ASN_SORTING_ORDER = {}));
145
150
  var ASN_METAFIELDS_INCLUDE;
146
151
  (function (ASN_METAFIELDS_INCLUDE) {
147
152
  ASN_METAFIELDS_INCLUDE["items_data"] = "items_data";
@@ -101,4 +101,4 @@ export interface AadhaarParsedData {
101
101
  }
102
102
  export declare const parseAadhaarXML: (xmlString: string) => AadhaarParsedData | null;
103
103
  export declare const calculateAge: (dob: string) => number;
104
- export declare const UNDER_AGE_LIMIT = 18;
104
+ export declare const UNDER_AGE_LIMIT = 14;
@@ -78,4 +78,4 @@ const calculateAge = (dob) => {
78
78
  return age;
79
79
  };
80
80
  exports.calculateAge = calculateAge;
81
- exports.UNDER_AGE_LIMIT = 18;
81
+ exports.UNDER_AGE_LIMIT = 14;
@@ -38,63 +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>;
56
+ updatedAt: string;
57
57
  }
58
58
  export interface UnitPlantLocation {
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;
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;
70
70
  }
71
71
  export interface EnterpriseType {
72
- "sno.": string;
73
- data_year: string;
74
- classification_year: string;
75
- enterprise_type: string;
76
- classification_date: string;
72
+ "SNo.": string;
73
+ "Data Year": string;
74
+ "Classification Year": string;
75
+ "Enterprise Type": string;
76
+ "Classification Date": string;
77
77
  }
78
78
  export interface NationalIndustryClassificationCode {
79
- "sno.": string;
80
- nic_2_digit: string;
81
- nic_4_digit: string;
82
- nic_5_digit: string;
83
- activity: string;
84
- 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;
85
85
  }
86
86
  export interface OfficialAddress {
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;
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;
95
95
  pin: string;
96
- mobile: string;
97
- email: string;
96
+ Mobile: string;
97
+ Email: string;
98
98
  }
99
99
  export interface IVerifyUdyamReq {
100
100
  udyam_no: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "14.23.2",
3
+ "version": "14.23.5",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",