@stashfin/grpc 1.2.841 → 1.2.843

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.841",
3
+ "version": "1.2.843",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -6,9 +6,6 @@ export interface getAllCustomersRequest {
6
6
  id?: number | undefined;
7
7
  mobile?: string | undefined;
8
8
  email?: string | undefined;
9
- upi_linked?: string | undefined;
10
- category?: string | undefined;
11
- created_at?: string | undefined;
12
9
  }
13
10
  export interface Customer {
14
11
  id?: number | undefined;
@@ -20,7 +17,6 @@ export interface Customer {
20
17
  vpa?: string | undefined;
21
18
  upi_linked?: string | undefined;
22
19
  utm_source?: string | undefined;
23
- category?: string | undefined;
24
20
  created_at?: string | undefined;
25
21
  }
26
22
  export interface getAllCustomersResponse {
@@ -14,16 +14,7 @@ const long_1 = __importDefault(require("long"));
14
14
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
15
15
  exports.protobufPackage = "eqxcustomers.getallcustomers";
16
16
  function createBasegetAllCustomersRequest() {
17
- return {
18
- page: undefined,
19
- limit: undefined,
20
- id: undefined,
21
- mobile: undefined,
22
- email: undefined,
23
- upi_linked: undefined,
24
- category: undefined,
25
- created_at: undefined,
26
- };
17
+ return { page: undefined, limit: undefined, id: undefined, mobile: undefined, email: undefined };
27
18
  }
28
19
  exports.getAllCustomersRequest = {
29
20
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -42,15 +33,6 @@ exports.getAllCustomersRequest = {
42
33
  if (message.email !== undefined) {
43
34
  writer.uint32(42).string(message.email);
44
35
  }
45
- if (message.upi_linked !== undefined) {
46
- writer.uint32(50).string(message.upi_linked);
47
- }
48
- if (message.category !== undefined) {
49
- writer.uint32(58).string(message.category);
50
- }
51
- if (message.created_at !== undefined) {
52
- writer.uint32(66).string(message.created_at);
53
- }
54
36
  return writer;
55
37
  },
56
38
  decode(input, length) {
@@ -90,24 +72,6 @@ exports.getAllCustomersRequest = {
90
72
  }
91
73
  message.email = reader.string();
92
74
  continue;
93
- case 6:
94
- if (tag !== 50) {
95
- break;
96
- }
97
- message.upi_linked = reader.string();
98
- continue;
99
- case 7:
100
- if (tag !== 58) {
101
- break;
102
- }
103
- message.category = reader.string();
104
- continue;
105
- case 8:
106
- if (tag !== 66) {
107
- break;
108
- }
109
- message.created_at = reader.string();
110
- continue;
111
75
  }
112
76
  if ((tag & 7) === 4 || tag === 0) {
113
77
  break;
@@ -123,9 +87,6 @@ exports.getAllCustomersRequest = {
123
87
  id: isSet(object.id) ? globalThis.Number(object.id) : undefined,
124
88
  mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : undefined,
125
89
  email: isSet(object.email) ? globalThis.String(object.email) : undefined,
126
- upi_linked: isSet(object.upi_linked) ? globalThis.String(object.upi_linked) : undefined,
127
- category: isSet(object.category) ? globalThis.String(object.category) : undefined,
128
- created_at: isSet(object.created_at) ? globalThis.String(object.created_at) : undefined,
129
90
  };
130
91
  },
131
92
  toJSON(message) {
@@ -145,15 +106,6 @@ exports.getAllCustomersRequest = {
145
106
  if (message.email !== undefined) {
146
107
  obj.email = message.email;
147
108
  }
148
- if (message.upi_linked !== undefined) {
149
- obj.upi_linked = message.upi_linked;
150
- }
151
- if (message.category !== undefined) {
152
- obj.category = message.category;
153
- }
154
- if (message.created_at !== undefined) {
155
- obj.created_at = message.created_at;
156
- }
157
109
  return obj;
158
110
  },
159
111
  create(base) {
@@ -166,9 +118,6 @@ exports.getAllCustomersRequest = {
166
118
  message.id = object.id ?? undefined;
167
119
  message.mobile = object.mobile ?? undefined;
168
120
  message.email = object.email ?? undefined;
169
- message.upi_linked = object.upi_linked ?? undefined;
170
- message.category = object.category ?? undefined;
171
- message.created_at = object.created_at ?? undefined;
172
121
  return message;
173
122
  },
174
123
  };
@@ -183,7 +132,6 @@ function createBaseCustomer() {
183
132
  vpa: undefined,
184
133
  upi_linked: undefined,
185
134
  utm_source: undefined,
186
- category: undefined,
187
135
  created_at: undefined,
188
136
  };
189
137
  }
@@ -216,11 +164,8 @@ exports.Customer = {
216
164
  if (message.utm_source !== undefined) {
217
165
  writer.uint32(74).string(message.utm_source);
218
166
  }
219
- if (message.category !== undefined) {
220
- writer.uint32(82).string(message.category);
221
- }
222
167
  if (message.created_at !== undefined) {
223
- writer.uint32(90).string(message.created_at);
168
+ writer.uint32(82).string(message.created_at);
224
169
  }
225
170
  return writer;
226
171
  },
@@ -289,12 +234,6 @@ exports.Customer = {
289
234
  if (tag !== 82) {
290
235
  break;
291
236
  }
292
- message.category = reader.string();
293
- continue;
294
- case 11:
295
- if (tag !== 90) {
296
- break;
297
- }
298
237
  message.created_at = reader.string();
299
238
  continue;
300
239
  }
@@ -316,7 +255,6 @@ exports.Customer = {
316
255
  vpa: isSet(object.vpa) ? globalThis.String(object.vpa) : undefined,
317
256
  upi_linked: isSet(object.upi_linked) ? globalThis.String(object.upi_linked) : undefined,
318
257
  utm_source: isSet(object.utm_source) ? globalThis.String(object.utm_source) : undefined,
319
- category: isSet(object.category) ? globalThis.String(object.category) : undefined,
320
258
  created_at: isSet(object.created_at) ? globalThis.String(object.created_at) : undefined,
321
259
  };
322
260
  },
@@ -349,9 +287,6 @@ exports.Customer = {
349
287
  if (message.utm_source !== undefined) {
350
288
  obj.utm_source = message.utm_source;
351
289
  }
352
- if (message.category !== undefined) {
353
- obj.category = message.category;
354
- }
355
290
  if (message.created_at !== undefined) {
356
291
  obj.created_at = message.created_at;
357
292
  }
@@ -371,7 +306,6 @@ exports.Customer = {
371
306
  message.vpa = object.vpa ?? undefined;
372
307
  message.upi_linked = object.upi_linked ?? undefined;
373
308
  message.utm_source = object.utm_source ?? undefined;
374
- message.category = object.category ?? undefined;
375
309
  message.created_at = object.created_at ?? undefined;
376
310
  return message;
377
311
  },
package/ts/kyc.d.ts CHANGED
@@ -61,6 +61,15 @@ export declare const kycService: {
61
61
  readonly responseSerialize: (value: CustomerPanDetailResponse) => Buffer;
62
62
  readonly responseDeserialize: (value: Buffer) => CustomerPanDetailResponse;
63
63
  };
64
+ readonly panValidationV2: {
65
+ readonly path: "/service.kyc/panValidationV2";
66
+ readonly requestStream: false;
67
+ readonly responseStream: false;
68
+ readonly requestSerialize: (value: CustomerPanDetailRequest) => Buffer;
69
+ readonly requestDeserialize: (value: Buffer) => CustomerPanDetailRequest;
70
+ readonly responseSerialize: (value: CustomerPanDetailResponse) => Buffer;
71
+ readonly responseDeserialize: (value: Buffer) => CustomerPanDetailResponse;
72
+ };
64
73
  readonly getSelfieRedirectionUrl: {
65
74
  readonly path: "/service.kyc/getSelfieRedirectionUrl";
66
75
  readonly requestStream: false;
@@ -149,6 +158,7 @@ export interface kycServer extends UntypedServiceImplementation {
149
158
  getSelfieTxnId: handleUnaryCall<selfieTxnIdRequest, selfieTxnIdResponse>;
150
159
  faceMatch: handleUnaryCall<faceMatchRequest, faceMatchResponse>;
151
160
  panValidation: handleUnaryCall<CustomerPanDetailRequest, CustomerPanDetailResponse>;
161
+ panValidationV2: handleUnaryCall<CustomerPanDetailRequest, CustomerPanDetailResponse>;
152
162
  getSelfieRedirectionUrl: handleUnaryCall<GetSelfieRedirectionUrlRequest, GetSelfieRedirectionUrlResponse>;
153
163
  fetchAadhaarByPan: handleUnaryCall<fetchAadhaarByPanRequest, fetchAadhaarByPanResponse>;
154
164
  authBridgePanComprehand: handleUnaryCall<authbridgeRequest, authbridgeResponse>;
@@ -175,6 +185,9 @@ export interface kycClient extends Client {
175
185
  panValidation(request: CustomerPanDetailRequest, callback: (error: ServiceError | null, response: CustomerPanDetailResponse) => void): ClientUnaryCall;
176
186
  panValidation(request: CustomerPanDetailRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CustomerPanDetailResponse) => void): ClientUnaryCall;
177
187
  panValidation(request: CustomerPanDetailRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CustomerPanDetailResponse) => void): ClientUnaryCall;
188
+ panValidationV2(request: CustomerPanDetailRequest, callback: (error: ServiceError | null, response: CustomerPanDetailResponse) => void): ClientUnaryCall;
189
+ panValidationV2(request: CustomerPanDetailRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CustomerPanDetailResponse) => void): ClientUnaryCall;
190
+ panValidationV2(request: CustomerPanDetailRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CustomerPanDetailResponse) => void): ClientUnaryCall;
178
191
  getSelfieRedirectionUrl(request: GetSelfieRedirectionUrlRequest, callback: (error: ServiceError | null, response: GetSelfieRedirectionUrlResponse) => void): ClientUnaryCall;
179
192
  getSelfieRedirectionUrl(request: GetSelfieRedirectionUrlRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetSelfieRedirectionUrlResponse) => void): ClientUnaryCall;
180
193
  getSelfieRedirectionUrl(request: GetSelfieRedirectionUrlRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetSelfieRedirectionUrlResponse) => void): ClientUnaryCall;
package/ts/kyc.js CHANGED
@@ -69,6 +69,15 @@ exports.kycService = {
69
69
  responseSerialize: (value) => Buffer.from(nsdlpanvalidate_1.CustomerPanDetailResponse.encode(value).finish()),
70
70
  responseDeserialize: (value) => nsdlpanvalidate_1.CustomerPanDetailResponse.decode(value),
71
71
  },
72
+ panValidationV2: {
73
+ path: "/service.kyc/panValidationV2",
74
+ requestStream: false,
75
+ responseStream: false,
76
+ requestSerialize: (value) => Buffer.from(nsdlpanvalidate_1.CustomerPanDetailRequest.encode(value).finish()),
77
+ requestDeserialize: (value) => nsdlpanvalidate_1.CustomerPanDetailRequest.decode(value),
78
+ responseSerialize: (value) => Buffer.from(nsdlpanvalidate_1.CustomerPanDetailResponse.encode(value).finish()),
79
+ responseDeserialize: (value) => nsdlpanvalidate_1.CustomerPanDetailResponse.decode(value),
80
+ },
72
81
  getSelfieRedirectionUrl: {
73
82
  path: "/service.kyc/getSelfieRedirectionUrl",
74
83
  requestStream: false,