kcommons 14.18.1 → 14.19.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.
package/build/index.d.ts CHANGED
@@ -116,6 +116,7 @@ export * from "./typings/verification_apis/fssaiVerification.typings";
116
116
  export * from "./typings/verification_apis/panVerification.typings";
117
117
  export * from "./typings/verification_apis/bankAccountVerification.typings";
118
118
  export * from "./typings/verification_apis/cinVerification.typings";
119
+ export * from "./typings/verification_apis/aadhaarVerification.typings";
119
120
  export * from "./typings/kpis/basKPIS.typings";
120
121
  export * from "./typings/kpis/company/main/purchase/totalSavings.typings";
121
122
  export * from "./typings/kpis/company/main/purchase/purchaseTrend.typings";
package/build/index.js CHANGED
@@ -141,6 +141,7 @@ __exportStar(require("./typings/verification_apis/fssaiVerification.typings"), e
141
141
  __exportStar(require("./typings/verification_apis/panVerification.typings"), exports);
142
142
  __exportStar(require("./typings/verification_apis/bankAccountVerification.typings"), exports);
143
143
  __exportStar(require("./typings/verification_apis/cinVerification.typings"), exports);
144
+ __exportStar(require("./typings/verification_apis/aadhaarVerification.typings"), exports);
144
145
  // KPIs
145
146
  __exportStar(require("./typings/kpis/basKPIS.typings"), exports);
146
147
  // Main Dashboard KPIS
@@ -4,11 +4,11 @@ import { INestedUser } from "./user.typings";
4
4
  export interface ITemporaryWorkerForm {
5
5
  id: string;
6
6
  first_name: string;
7
- middle_name: string | null;
7
+ middle_name: string;
8
8
  last_name: string;
9
9
  age: number;
10
10
  gender: GENDER;
11
- contact: string;
11
+ contact: string | null;
12
12
  email: string | null;
13
13
  pincode: string | null;
14
14
  area: string | null;
@@ -29,6 +29,7 @@ export interface ITemporaryWorkerForm {
29
29
  company: INestedCompany | null;
30
30
  created_by_user: INestedUser | null;
31
31
  last_updated_by_user: INestedUser | null;
32
+ dob: string | null;
32
33
  }
33
34
  export interface INestedTemporaryWorkerForm extends Omit<ITemporaryWorkerForm, "company" | "created_by_usr" | "last_updated_by_user"> {
34
35
  }
@@ -100,3 +101,4 @@ export interface AadhaarParsedData {
100
101
  }
101
102
  export declare const parseAadhaarXML: (xmlString: string) => AadhaarParsedData | null;
102
103
  export declare const calculateAge: (dob: string) => number;
104
+ export declare const UNDER_AGE_LIMIT = 18;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.calculateAge = exports.parseAadhaarXML = exports.GENDER = exports.TEMPORARY_WORKER_FORM_INCLUDE = void 0;
3
+ exports.UNDER_AGE_LIMIT = exports.calculateAge = exports.parseAadhaarXML = exports.GENDER = exports.TEMPORARY_WORKER_FORM_INCLUDE = void 0;
4
4
  var TEMPORARY_WORKER_FORM_INCLUDE;
5
5
  (function (TEMPORARY_WORKER_FORM_INCLUDE) {
6
6
  TEMPORARY_WORKER_FORM_INCLUDE["company"] = "company";
@@ -78,3 +78,4 @@ const calculateAge = (dob) => {
78
78
  return age;
79
79
  };
80
80
  exports.calculateAge = calculateAge;
81
+ exports.UNDER_AGE_LIMIT = 18;
@@ -0,0 +1,26 @@
1
+ export interface IAadhaarVerificationURLResponse {
2
+ txn_id: string | null;
3
+ api_category: string | null;
4
+ api_name: string | null;
5
+ billable: string | null;
6
+ message: string | null;
7
+ status: string | null;
8
+ result: AadhaarURLData;
9
+ datetime: string | null;
10
+ }
11
+ export interface AadhaarURLData {
12
+ url: string | null;
13
+ }
14
+ export interface IAadhaarVerificationAadhaarResponse {
15
+ txn_id: string | null;
16
+ api_category: string | null;
17
+ api_name: string | null;
18
+ billable: string | null;
19
+ message: string | null;
20
+ status: string | null;
21
+ result: AadhaarData;
22
+ datetime: string | null;
23
+ }
24
+ export interface AadhaarData {
25
+ aadhaar: string | null;
26
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "14.18.1",
3
+ "version": "14.19.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",