@stashfin/grpc 1.2.849 → 1.2.851

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.849",
3
+ "version": "1.2.851",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -12,7 +12,7 @@ export interface getAllBbpsTnxRequest {
12
12
  isDownload?: boolean | undefined;
13
13
  status?: string | undefined;
14
14
  customer_id?: string | undefined;
15
- customer_account_no?: string | undefined;
15
+ account_no?: string | undefined;
16
16
  }
17
17
  export interface BBPSTransactions {
18
18
  transaction_id?: number | undefined;
@@ -25,7 +25,7 @@ export interface BBPSTransactions {
25
25
  created_at?: string | undefined;
26
26
  updated_at?: string | undefined;
27
27
  customer_id?: number | undefined;
28
- customer_account_no?: string | undefined;
28
+ account_no?: string | undefined;
29
29
  biller_id?: string | undefined;
30
30
  pg_txn_ref_id?: string | undefined;
31
31
  }
@@ -24,7 +24,7 @@ function createBasegetAllBbpsTnxRequest() {
24
24
  isDownload: undefined,
25
25
  status: undefined,
26
26
  customer_id: undefined,
27
- customer_account_no: undefined,
27
+ account_no: undefined,
28
28
  };
29
29
  }
30
30
  exports.getAllBbpsTnxRequest = {
@@ -59,8 +59,8 @@ exports.getAllBbpsTnxRequest = {
59
59
  if (message.customer_id !== undefined) {
60
60
  writer.uint32(82).string(message.customer_id);
61
61
  }
62
- if (message.customer_account_no !== undefined) {
63
- writer.uint32(90).string(message.customer_account_no);
62
+ if (message.account_no !== undefined) {
63
+ writer.uint32(90).string(message.account_no);
64
64
  }
65
65
  return writer;
66
66
  },
@@ -135,7 +135,7 @@ exports.getAllBbpsTnxRequest = {
135
135
  if (tag !== 90) {
136
136
  break;
137
137
  }
138
- message.customer_account_no = reader.string();
138
+ message.account_no = reader.string();
139
139
  continue;
140
140
  }
141
141
  if ((tag & 7) === 4 || tag === 0) {
@@ -157,9 +157,7 @@ exports.getAllBbpsTnxRequest = {
157
157
  isDownload: isSet(object.isDownload) ? globalThis.Boolean(object.isDownload) : undefined,
158
158
  status: isSet(object.status) ? globalThis.String(object.status) : undefined,
159
159
  customer_id: isSet(object.customer_id) ? globalThis.String(object.customer_id) : undefined,
160
- customer_account_no: isSet(object.customer_account_no)
161
- ? globalThis.String(object.customer_account_no)
162
- : undefined,
160
+ account_no: isSet(object.account_no) ? globalThis.String(object.account_no) : undefined,
163
161
  };
164
162
  },
165
163
  toJSON(message) {
@@ -194,8 +192,8 @@ exports.getAllBbpsTnxRequest = {
194
192
  if (message.customer_id !== undefined) {
195
193
  obj.customer_id = message.customer_id;
196
194
  }
197
- if (message.customer_account_no !== undefined) {
198
- obj.customer_account_no = message.customer_account_no;
195
+ if (message.account_no !== undefined) {
196
+ obj.account_no = message.account_no;
199
197
  }
200
198
  return obj;
201
199
  },
@@ -214,7 +212,7 @@ exports.getAllBbpsTnxRequest = {
214
212
  message.isDownload = object.isDownload ?? undefined;
215
213
  message.status = object.status ?? undefined;
216
214
  message.customer_id = object.customer_id ?? undefined;
217
- message.customer_account_no = object.customer_account_no ?? undefined;
215
+ message.account_no = object.account_no ?? undefined;
218
216
  return message;
219
217
  },
220
218
  };
@@ -230,7 +228,7 @@ function createBaseBBPSTransactions() {
230
228
  created_at: undefined,
231
229
  updated_at: undefined,
232
230
  customer_id: undefined,
233
- customer_account_no: undefined,
231
+ account_no: undefined,
234
232
  biller_id: undefined,
235
233
  pg_txn_ref_id: undefined,
236
234
  };
@@ -267,8 +265,8 @@ exports.BBPSTransactions = {
267
265
  if (message.customer_id !== undefined) {
268
266
  writer.uint32(80).int32(message.customer_id);
269
267
  }
270
- if (message.customer_account_no !== undefined) {
271
- writer.uint32(90).string(message.customer_account_no);
268
+ if (message.account_no !== undefined) {
269
+ writer.uint32(90).string(message.account_no);
272
270
  }
273
271
  if (message.biller_id !== undefined) {
274
272
  writer.uint32(98).string(message.biller_id);
@@ -349,7 +347,7 @@ exports.BBPSTransactions = {
349
347
  if (tag !== 90) {
350
348
  break;
351
349
  }
352
- message.customer_account_no = reader.string();
350
+ message.account_no = reader.string();
353
351
  continue;
354
352
  case 12:
355
353
  if (tag !== 98) {
@@ -383,9 +381,7 @@ exports.BBPSTransactions = {
383
381
  created_at: isSet(object.created_at) ? globalThis.String(object.created_at) : undefined,
384
382
  updated_at: isSet(object.updated_at) ? globalThis.String(object.updated_at) : undefined,
385
383
  customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : undefined,
386
- customer_account_no: isSet(object.customer_account_no)
387
- ? globalThis.String(object.customer_account_no)
388
- : undefined,
384
+ account_no: isSet(object.account_no) ? globalThis.String(object.account_no) : undefined,
389
385
  biller_id: isSet(object.biller_id) ? globalThis.String(object.biller_id) : undefined,
390
386
  pg_txn_ref_id: isSet(object.pg_txn_ref_id) ? globalThis.String(object.pg_txn_ref_id) : undefined,
391
387
  };
@@ -422,8 +418,8 @@ exports.BBPSTransactions = {
422
418
  if (message.customer_id !== undefined) {
423
419
  obj.customer_id = Math.round(message.customer_id);
424
420
  }
425
- if (message.customer_account_no !== undefined) {
426
- obj.customer_account_no = message.customer_account_no;
421
+ if (message.account_no !== undefined) {
422
+ obj.account_no = message.account_no;
427
423
  }
428
424
  if (message.biller_id !== undefined) {
429
425
  obj.biller_id = message.biller_id;
@@ -448,7 +444,7 @@ exports.BBPSTransactions = {
448
444
  message.created_at = object.created_at ?? undefined;
449
445
  message.updated_at = object.updated_at ?? undefined;
450
446
  message.customer_id = object.customer_id ?? undefined;
451
- message.customer_account_no = object.customer_account_no ?? undefined;
447
+ message.account_no = object.account_no ?? undefined;
452
448
  message.biller_id = object.biller_id ?? undefined;
453
449
  message.pg_txn_ref_id = object.pg_txn_ref_id ?? undefined;
454
450
  return message;
@@ -20,6 +20,7 @@ export interface getCustomerByIdResponse {
20
20
  is_bureau_fetched: boolean;
21
21
  next_step?: string | undefined;
22
22
  is_akara_registered?: string | undefined;
23
+ eqx_customer_category?: string | undefined;
23
24
  }
24
25
  export declare const getCustomerByIdRequest: {
25
26
  encode(message: getCustomerByIdRequest, writer?: _m0.Writer): _m0.Writer;
@@ -81,6 +81,7 @@ function createBasegetCustomerByIdResponse() {
81
81
  is_bureau_fetched: false,
82
82
  next_step: undefined,
83
83
  is_akara_registered: undefined,
84
+ eqx_customer_category: undefined,
84
85
  };
85
86
  }
86
87
  exports.getCustomerByIdResponse = {
@@ -133,6 +134,9 @@ exports.getCustomerByIdResponse = {
133
134
  if (message.is_akara_registered !== undefined) {
134
135
  writer.uint32(130).string(message.is_akara_registered);
135
136
  }
137
+ if (message.eqx_customer_category !== undefined) {
138
+ writer.uint32(138).string(message.eqx_customer_category);
139
+ }
136
140
  return writer;
137
141
  },
138
142
  decode(input, length) {
@@ -238,6 +242,12 @@ exports.getCustomerByIdResponse = {
238
242
  }
239
243
  message.is_akara_registered = reader.string();
240
244
  continue;
245
+ case 17:
246
+ if (tag !== 138) {
247
+ break;
248
+ }
249
+ message.eqx_customer_category = reader.string();
250
+ continue;
241
251
  }
242
252
  if ((tag & 7) === 4 || tag === 0) {
243
253
  break;
@@ -266,6 +276,9 @@ exports.getCustomerByIdResponse = {
266
276
  is_akara_registered: isSet(object.is_akara_registered)
267
277
  ? globalThis.String(object.is_akara_registered)
268
278
  : undefined,
279
+ eqx_customer_category: isSet(object.eqx_customer_category)
280
+ ? globalThis.String(object.eqx_customer_category)
281
+ : undefined,
269
282
  };
270
283
  },
271
284
  toJSON(message) {
@@ -318,6 +331,9 @@ exports.getCustomerByIdResponse = {
318
331
  if (message.is_akara_registered !== undefined) {
319
332
  obj.is_akara_registered = message.is_akara_registered;
320
333
  }
334
+ if (message.eqx_customer_category !== undefined) {
335
+ obj.eqx_customer_category = message.eqx_customer_category;
336
+ }
321
337
  return obj;
322
338
  },
323
339
  create(base) {
@@ -341,6 +357,7 @@ exports.getCustomerByIdResponse = {
341
357
  message.is_bureau_fetched = object.is_bureau_fetched ?? false;
342
358
  message.next_step = object.next_step ?? undefined;
343
359
  message.is_akara_registered = object.is_akara_registered ?? undefined;
360
+ message.eqx_customer_category = object.eqx_customer_category ?? undefined;
344
361
  return message;
345
362
  },
346
363
  };
@@ -0,0 +1,35 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "kyc.ckycvalidation";
3
+ export interface ckycValidationRequest {
4
+ customer_id: number;
5
+ }
6
+ export interface ckycValidationResponse {
7
+ ckycValidated: boolean;
8
+ }
9
+ export declare const ckycValidationRequest: {
10
+ encode(message: ckycValidationRequest, writer?: _m0.Writer): _m0.Writer;
11
+ decode(input: _m0.Reader | Uint8Array, length?: number): ckycValidationRequest;
12
+ fromJSON(object: any): ckycValidationRequest;
13
+ toJSON(message: ckycValidationRequest): unknown;
14
+ create<I extends Exact<DeepPartial<ckycValidationRequest>, I>>(base?: I): ckycValidationRequest;
15
+ fromPartial<I extends Exact<DeepPartial<ckycValidationRequest>, I>>(object: I): ckycValidationRequest;
16
+ };
17
+ export declare const ckycValidationResponse: {
18
+ encode(message: ckycValidationResponse, writer?: _m0.Writer): _m0.Writer;
19
+ decode(input: _m0.Reader | Uint8Array, length?: number): ckycValidationResponse;
20
+ fromJSON(object: any): ckycValidationResponse;
21
+ toJSON(message: ckycValidationResponse): unknown;
22
+ create<I extends Exact<DeepPartial<ckycValidationResponse>, I>>(base?: I): ckycValidationResponse;
23
+ fromPartial<I extends Exact<DeepPartial<ckycValidationResponse>, I>>(object: I): ckycValidationResponse;
24
+ };
25
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
26
+ 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 {} ? {
27
+ [K in keyof T]?: DeepPartial<T[K]>;
28
+ } : Partial<T>;
29
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
30
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
31
+ [K in keyof P]: Exact<P[K], I[K]>;
32
+ } & {
33
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
34
+ };
35
+ export {};
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.0
5
+ // protoc v6.31.1
6
+ // source: kyc/ckycvalidation.proto
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9
+ };
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.ckycValidationResponse = exports.ckycValidationRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "kyc.ckycvalidation";
15
+ function createBaseckycValidationRequest() {
16
+ return { customer_id: 0 };
17
+ }
18
+ exports.ckycValidationRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.customer_id !== 0) {
21
+ writer.uint32(8).int32(message.customer_id);
22
+ }
23
+ return writer;
24
+ },
25
+ decode(input, length) {
26
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
27
+ let end = length === undefined ? reader.len : reader.pos + length;
28
+ const message = createBaseckycValidationRequest();
29
+ while (reader.pos < end) {
30
+ const tag = reader.uint32();
31
+ switch (tag >>> 3) {
32
+ case 1:
33
+ if (tag !== 8) {
34
+ break;
35
+ }
36
+ message.customer_id = reader.int32();
37
+ continue;
38
+ }
39
+ if ((tag & 7) === 4 || tag === 0) {
40
+ break;
41
+ }
42
+ reader.skipType(tag & 7);
43
+ }
44
+ return message;
45
+ },
46
+ fromJSON(object) {
47
+ return { customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0 };
48
+ },
49
+ toJSON(message) {
50
+ const obj = {};
51
+ if (message.customer_id !== 0) {
52
+ obj.customer_id = Math.round(message.customer_id);
53
+ }
54
+ return obj;
55
+ },
56
+ create(base) {
57
+ return exports.ckycValidationRequest.fromPartial(base ?? {});
58
+ },
59
+ fromPartial(object) {
60
+ const message = createBaseckycValidationRequest();
61
+ message.customer_id = object.customer_id ?? 0;
62
+ return message;
63
+ },
64
+ };
65
+ function createBaseckycValidationResponse() {
66
+ return { ckycValidated: false };
67
+ }
68
+ exports.ckycValidationResponse = {
69
+ encode(message, writer = minimal_1.default.Writer.create()) {
70
+ if (message.ckycValidated !== false) {
71
+ writer.uint32(8).bool(message.ckycValidated);
72
+ }
73
+ return writer;
74
+ },
75
+ decode(input, length) {
76
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
77
+ let end = length === undefined ? reader.len : reader.pos + length;
78
+ const message = createBaseckycValidationResponse();
79
+ while (reader.pos < end) {
80
+ const tag = reader.uint32();
81
+ switch (tag >>> 3) {
82
+ case 1:
83
+ if (tag !== 8) {
84
+ break;
85
+ }
86
+ message.ckycValidated = reader.bool();
87
+ continue;
88
+ }
89
+ if ((tag & 7) === 4 || tag === 0) {
90
+ break;
91
+ }
92
+ reader.skipType(tag & 7);
93
+ }
94
+ return message;
95
+ },
96
+ fromJSON(object) {
97
+ return { ckycValidated: isSet(object.ckycValidated) ? globalThis.Boolean(object.ckycValidated) : false };
98
+ },
99
+ toJSON(message) {
100
+ const obj = {};
101
+ if (message.ckycValidated !== false) {
102
+ obj.ckycValidated = message.ckycValidated;
103
+ }
104
+ return obj;
105
+ },
106
+ create(base) {
107
+ return exports.ckycValidationResponse.fromPartial(base ?? {});
108
+ },
109
+ fromPartial(object) {
110
+ const message = createBaseckycValidationResponse();
111
+ message.ckycValidated = object.ckycValidated ?? false;
112
+ return message;
113
+ },
114
+ };
115
+ function isSet(value) {
116
+ return value !== null && value !== undefined;
117
+ }
package/ts/kyc.d.ts CHANGED
@@ -5,6 +5,7 @@ import { bureauWpRequest, bureauWpResponse } from "./kyc/bureauidwhatsapp";
5
5
  import { ckycFetchRecordRequest, ckycFetchRecordResponse } from "./kyc/ckycfetchrecord";
6
6
  import { ckycResendOtpRequest, ckycResendOtpResponse } from "./kyc/ckycresendotp";
7
7
  import { CkycV1SearchRequest, CkycV1SearchResponse } from "./kyc/ckycsearchv1";
8
+ import { ckycValidationRequest, ckycValidationResponse } from "./kyc/ckycvalidation";
8
9
  import { faceMatchRequest, faceMatchResponse } from "./kyc/facematch";
9
10
  import { fetchAadhaarByPanRequest, fetchAadhaarByPanResponse } from "./kyc/fetchaadhaarbypan";
10
11
  import { fetchEmploymentHistoryRequest, fetchEmploymentHistoryResponse } from "./kyc/fetchemploymenthistory";
@@ -151,6 +152,15 @@ export declare const kycService: {
151
152
  readonly responseSerialize: (value: ckycResendOtpResponse) => Buffer;
152
153
  readonly responseDeserialize: (value: Buffer) => ckycResendOtpResponse;
153
154
  };
155
+ readonly validateCkyc: {
156
+ readonly path: "/service.kyc/validateCkyc";
157
+ readonly requestStream: false;
158
+ readonly responseStream: false;
159
+ readonly requestSerialize: (value: ckycValidationRequest) => Buffer;
160
+ readonly requestDeserialize: (value: Buffer) => ckycValidationRequest;
161
+ readonly responseSerialize: (value: ckycValidationResponse) => Buffer;
162
+ readonly responseDeserialize: (value: Buffer) => ckycValidationResponse;
163
+ };
154
164
  };
155
165
  export interface kycServer extends UntypedServiceImplementation {
156
166
  fetchUanList: handleUnaryCall<fetchUanListRequest, fetchUanListResponse>;
@@ -168,6 +178,7 @@ export interface kycServer extends UntypedServiceImplementation {
168
178
  searchCkyc: handleUnaryCall<CkycV1SearchRequest, CkycV1SearchResponse>;
169
179
  ckycFetchRecord: handleUnaryCall<ckycFetchRecordRequest, ckycFetchRecordResponse>;
170
180
  ckycResendOtp: handleUnaryCall<ckycResendOtpRequest, ckycResendOtpResponse>;
181
+ validateCkyc: handleUnaryCall<ckycValidationRequest, ckycValidationResponse>;
171
182
  }
172
183
  export interface kycClient extends Client {
173
184
  fetchUanList(request: fetchUanListRequest, callback: (error: ServiceError | null, response: fetchUanListResponse) => void): ClientUnaryCall;
@@ -215,6 +226,9 @@ export interface kycClient extends Client {
215
226
  ckycResendOtp(request: ckycResendOtpRequest, callback: (error: ServiceError | null, response: ckycResendOtpResponse) => void): ClientUnaryCall;
216
227
  ckycResendOtp(request: ckycResendOtpRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ckycResendOtpResponse) => void): ClientUnaryCall;
217
228
  ckycResendOtp(request: ckycResendOtpRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ckycResendOtpResponse) => void): ClientUnaryCall;
229
+ validateCkyc(request: ckycValidationRequest, callback: (error: ServiceError | null, response: ckycValidationResponse) => void): ClientUnaryCall;
230
+ validateCkyc(request: ckycValidationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ckycValidationResponse) => void): ClientUnaryCall;
231
+ validateCkyc(request: ckycValidationRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ckycValidationResponse) => void): ClientUnaryCall;
218
232
  }
219
233
  export declare const kycClient: {
220
234
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): kycClient;
package/ts/kyc.js CHANGED
@@ -14,6 +14,7 @@ const bureauidwhatsapp_1 = require("./kyc/bureauidwhatsapp");
14
14
  const ckycfetchrecord_1 = require("./kyc/ckycfetchrecord");
15
15
  const ckycresendotp_1 = require("./kyc/ckycresendotp");
16
16
  const ckycsearchv1_1 = require("./kyc/ckycsearchv1");
17
+ const ckycvalidation_1 = require("./kyc/ckycvalidation");
17
18
  const facematch_1 = require("./kyc/facematch");
18
19
  const fetchaadhaarbypan_1 = require("./kyc/fetchaadhaarbypan");
19
20
  const fetchemploymenthistory_1 = require("./kyc/fetchemploymenthistory");
@@ -159,5 +160,14 @@ exports.kycService = {
159
160
  responseSerialize: (value) => Buffer.from(ckycresendotp_1.ckycResendOtpResponse.encode(value).finish()),
160
161
  responseDeserialize: (value) => ckycresendotp_1.ckycResendOtpResponse.decode(value),
161
162
  },
163
+ validateCkyc: {
164
+ path: "/service.kyc/validateCkyc",
165
+ requestStream: false,
166
+ responseStream: false,
167
+ requestSerialize: (value) => Buffer.from(ckycvalidation_1.ckycValidationRequest.encode(value).finish()),
168
+ requestDeserialize: (value) => ckycvalidation_1.ckycValidationRequest.decode(value),
169
+ responseSerialize: (value) => Buffer.from(ckycvalidation_1.ckycValidationResponse.encode(value).finish()),
170
+ responseDeserialize: (value) => ckycvalidation_1.ckycValidationResponse.decode(value),
171
+ },
162
172
  };
163
173
  exports.kycClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.kycService, "service.kyc");