@stashfin/grpc 1.2.101 → 1.2.106

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.101",
3
+ "version": "1.2.106",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -5,7 +5,7 @@ export interface changeMpinRequest {
5
5
  new_mpin: number;
6
6
  }
7
7
  export interface changeMpinResponse {
8
- id: number;
8
+ status: string;
9
9
  }
10
10
  export declare const changeMpinRequest: {
11
11
  encode(message: changeMpinRequest, writer?: _m0.Writer): _m0.Writer;
@@ -79,12 +79,12 @@ exports.changeMpinRequest = {
79
79
  },
80
80
  };
81
81
  function createBasechangeMpinResponse() {
82
- return { id: 0 };
82
+ return { status: "" };
83
83
  }
84
84
  exports.changeMpinResponse = {
85
85
  encode(message, writer = minimal_1.default.Writer.create()) {
86
- if (message.id !== 0) {
87
- writer.uint32(8).int32(message.id);
86
+ if (message.status !== "") {
87
+ writer.uint32(10).string(message.status);
88
88
  }
89
89
  return writer;
90
90
  },
@@ -96,10 +96,10 @@ exports.changeMpinResponse = {
96
96
  const tag = reader.uint32();
97
97
  switch (tag >>> 3) {
98
98
  case 1:
99
- if (tag !== 8) {
99
+ if (tag !== 10) {
100
100
  break;
101
101
  }
102
- message.id = reader.int32();
102
+ message.status = reader.string();
103
103
  continue;
104
104
  }
105
105
  if ((tag & 7) === 4 || tag === 0) {
@@ -110,12 +110,12 @@ exports.changeMpinResponse = {
110
110
  return message;
111
111
  },
112
112
  fromJSON(object) {
113
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
113
+ return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
114
114
  },
115
115
  toJSON(message) {
116
116
  const obj = {};
117
- if (message.id !== 0) {
118
- obj.id = Math.round(message.id);
117
+ if (message.status !== "") {
118
+ obj.status = message.status;
119
119
  }
120
120
  return obj;
121
121
  },
@@ -124,7 +124,7 @@ exports.changeMpinResponse = {
124
124
  },
125
125
  fromPartial(object) {
126
126
  const message = createBasechangeMpinResponse();
127
- message.id = object.id ?? 0;
127
+ message.status = object.status ?? "";
128
128
  return message;
129
129
  },
130
130
  };
@@ -1,6 +1,7 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "customers.forgotmpinverify";
3
3
  export interface forgotMpinVerifyRequest {
4
+ mobile: string;
4
5
  otp: string;
5
6
  }
6
7
  export interface forgotMpinVerifyResponse {
@@ -13,12 +13,15 @@ exports.forgotMpinVerifyResponse = exports.forgotMpinVerifyRequest = exports.pro
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "customers.forgotmpinverify";
15
15
  function createBaseforgotMpinVerifyRequest() {
16
- return { otp: "" };
16
+ return { mobile: "", otp: "" };
17
17
  }
18
18
  exports.forgotMpinVerifyRequest = {
19
19
  encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.mobile !== "") {
21
+ writer.uint32(10).string(message.mobile);
22
+ }
20
23
  if (message.otp !== "") {
21
- writer.uint32(10).string(message.otp);
24
+ writer.uint32(18).string(message.otp);
22
25
  }
23
26
  return writer;
24
27
  },
@@ -33,6 +36,12 @@ exports.forgotMpinVerifyRequest = {
33
36
  if (tag !== 10) {
34
37
  break;
35
38
  }
39
+ message.mobile = reader.string();
40
+ continue;
41
+ case 2:
42
+ if (tag !== 18) {
43
+ break;
44
+ }
36
45
  message.otp = reader.string();
37
46
  continue;
38
47
  }
@@ -44,10 +53,16 @@ exports.forgotMpinVerifyRequest = {
44
53
  return message;
45
54
  },
46
55
  fromJSON(object) {
47
- return { otp: isSet(object.otp) ? globalThis.String(object.otp) : "" };
56
+ return {
57
+ mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
58
+ otp: isSet(object.otp) ? globalThis.String(object.otp) : "",
59
+ };
48
60
  },
49
61
  toJSON(message) {
50
62
  const obj = {};
63
+ if (message.mobile !== "") {
64
+ obj.mobile = message.mobile;
65
+ }
51
66
  if (message.otp !== "") {
52
67
  obj.otp = message.otp;
53
68
  }
@@ -58,6 +73,7 @@ exports.forgotMpinVerifyRequest = {
58
73
  },
59
74
  fromPartial(object) {
60
75
  const message = createBaseforgotMpinVerifyRequest();
76
+ message.mobile = object.mobile ?? "";
61
77
  message.otp = object.otp ?? "";
62
78
  return message;
63
79
  },
@@ -13,19 +13,84 @@ export interface getCustomerByIdResponse {
13
13
  mother_maiden_name: string;
14
14
  dob: string;
15
15
  company_name: string;
16
+ official_email: string;
16
17
  pincode: string;
18
+ mpin: string;
19
+ pan: string;
20
+ aadhaar: string;
21
+ mobile_verified: number;
22
+ email_verified: number;
23
+ ip: string;
24
+ device_id: string;
25
+ is_registered: number;
26
+ mobile_hash?: string | undefined;
27
+ email_hash: string;
28
+ os_version: string;
29
+ push_id: string;
30
+ state: string;
17
31
  app_version: string;
18
32
  biometric_enabled: boolean;
19
33
  journey_sequence: number;
20
34
  category: string;
21
35
  loc_limit: number;
22
36
  status: string;
37
+ loc_disabled: boolean;
38
+ source: string;
39
+ tnc_version: string;
40
+ login_date: string;
23
41
  min_tenure: number;
24
42
  max_tenure: number;
25
43
  roi: number;
26
44
  processing_rate: number;
45
+ agent_id: number;
46
+ application_type: string;
47
+ application_status: string;
48
+ customer_type: string;
49
+ avg_salary: number;
50
+ suspended_apps: number;
51
+ is_active: number;
52
+ is_deleted: number;
53
+ journey_updated_at: string;
54
+ aadhaar_name: string;
55
+ crn: string;
56
+ nsdl_dob: string;
57
+ gender: string;
58
+ gst_no: string;
59
+ language: string;
60
+ latitude: number;
61
+ longitude: number;
62
+ marital_status: string;
63
+ occupation: string;
64
+ office_addr: Address | undefined;
65
+ organization: string;
66
+ pan_url: string;
67
+ per_addr: Address | undefined;
68
+ res_addr: Address | undefined;
69
+ salary: number;
70
+ salary_date: string;
71
+ salary_mode: string;
72
+ selfie_url: string;
73
+ kyc_type: string;
27
74
  emi_date: string;
28
- loc_disabled: boolean;
75
+ phone_matched: number;
76
+ dob_matched: number;
77
+ nsdl_dob_matched: string;
78
+ okyc_dob: string;
79
+ dob_attempts: number;
80
+ is_upgradable: number;
81
+ has_imps: number;
82
+ journey_inactive: number;
83
+ repeat_journey: number;
84
+ mobile_network: string;
85
+ }
86
+ export interface Address {
87
+ house_flat_no: string;
88
+ address_line_1: string;
89
+ address_line_2: string;
90
+ landmark: string;
91
+ city: string;
92
+ state: string;
93
+ pin_code: string;
29
94
  }
30
95
  export declare const getCustomerByIdRequest: {
31
96
  encode(message: getCustomerByIdRequest, writer?: _m0.Writer): _m0.Writer;
@@ -43,6 +108,14 @@ export declare const getCustomerByIdResponse: {
43
108
  create<I extends Exact<DeepPartial<getCustomerByIdResponse>, I>>(base?: I): getCustomerByIdResponse;
44
109
  fromPartial<I extends Exact<DeepPartial<getCustomerByIdResponse>, I>>(object: I): getCustomerByIdResponse;
45
110
  };
111
+ export declare const Address: {
112
+ encode(message: Address, writer?: _m0.Writer): _m0.Writer;
113
+ decode(input: _m0.Reader | Uint8Array, length?: number): Address;
114
+ fromJSON(object: any): Address;
115
+ toJSON(message: Address): unknown;
116
+ create<I extends Exact<DeepPartial<Address>, I>>(base?: I): Address;
117
+ fromPartial<I extends Exact<DeepPartial<Address>, I>>(object: I): Address;
118
+ };
46
119
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
47
120
  export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
48
121
  [K in keyof T]?: DeepPartial<T[K]>;