@stashfin/grpc 1.2.779 → 1.2.780

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.779",
3
+ "version": "1.2.780",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -4,6 +4,7 @@ export interface CkycV1SearchRequest {
4
4
  pan: string;
5
5
  customer_id: number;
6
6
  loan_id: number;
7
+ phone: string;
7
8
  }
8
9
  export interface CkycV1SearchResponse {
9
10
  message: string;
@@ -13,7 +13,7 @@ exports.CkycV1SearchResponse = exports.CkycV1SearchRequest = exports.protobufPac
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "kyc.ckycsearchv1";
15
15
  function createBaseCkycV1SearchRequest() {
16
- return { pan: "", customer_id: 0, loan_id: 0 };
16
+ return { pan: "", customer_id: 0, loan_id: 0, phone: "" };
17
17
  }
18
18
  exports.CkycV1SearchRequest = {
19
19
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -26,6 +26,9 @@ exports.CkycV1SearchRequest = {
26
26
  if (message.loan_id !== 0) {
27
27
  writer.uint32(24).int32(message.loan_id);
28
28
  }
29
+ if (message.phone !== "") {
30
+ writer.uint32(34).string(message.phone);
31
+ }
29
32
  return writer;
30
33
  },
31
34
  decode(input, length) {
@@ -53,6 +56,12 @@ exports.CkycV1SearchRequest = {
53
56
  }
54
57
  message.loan_id = reader.int32();
55
58
  continue;
59
+ case 4:
60
+ if (tag !== 34) {
61
+ break;
62
+ }
63
+ message.phone = reader.string();
64
+ continue;
56
65
  }
57
66
  if ((tag & 7) === 4 || tag === 0) {
58
67
  break;
@@ -66,6 +75,7 @@ exports.CkycV1SearchRequest = {
66
75
  pan: isSet(object.pan) ? globalThis.String(object.pan) : "",
67
76
  customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
68
77
  loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
78
+ phone: isSet(object.phone) ? globalThis.String(object.phone) : "",
69
79
  };
70
80
  },
71
81
  toJSON(message) {
@@ -79,6 +89,9 @@ exports.CkycV1SearchRequest = {
79
89
  if (message.loan_id !== 0) {
80
90
  obj.loan_id = Math.round(message.loan_id);
81
91
  }
92
+ if (message.phone !== "") {
93
+ obj.phone = message.phone;
94
+ }
82
95
  return obj;
83
96
  },
84
97
  create(base) {
@@ -89,6 +102,7 @@ exports.CkycV1SearchRequest = {
89
102
  message.pan = object.pan ?? "";
90
103
  message.customer_id = object.customer_id ?? 0;
91
104
  message.loan_id = object.loan_id ?? 0;
105
+ message.phone = object.phone ?? "";
92
106
  return message;
93
107
  },
94
108
  };