@stashfin/grpc 1.2.779 → 1.2.781

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.781",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -0,0 +1,39 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "kyc.ckycfetchrecord";
3
+ export interface ckycFetchRecordRequest {
4
+ customer_id: string;
5
+ otp: string;
6
+ loan_id: number;
7
+ transaction_id: string;
8
+ }
9
+ export interface ckycFetchRecordResponse {
10
+ message: string;
11
+ status: string;
12
+ }
13
+ export declare const ckycFetchRecordRequest: {
14
+ encode(message: ckycFetchRecordRequest, writer?: _m0.Writer): _m0.Writer;
15
+ decode(input: _m0.Reader | Uint8Array, length?: number): ckycFetchRecordRequest;
16
+ fromJSON(object: any): ckycFetchRecordRequest;
17
+ toJSON(message: ckycFetchRecordRequest): unknown;
18
+ create<I extends Exact<DeepPartial<ckycFetchRecordRequest>, I>>(base?: I): ckycFetchRecordRequest;
19
+ fromPartial<I extends Exact<DeepPartial<ckycFetchRecordRequest>, I>>(object: I): ckycFetchRecordRequest;
20
+ };
21
+ export declare const ckycFetchRecordResponse: {
22
+ encode(message: ckycFetchRecordResponse, writer?: _m0.Writer): _m0.Writer;
23
+ decode(input: _m0.Reader | Uint8Array, length?: number): ckycFetchRecordResponse;
24
+ fromJSON(object: any): ckycFetchRecordResponse;
25
+ toJSON(message: ckycFetchRecordResponse): unknown;
26
+ create<I extends Exact<DeepPartial<ckycFetchRecordResponse>, I>>(base?: I): ckycFetchRecordResponse;
27
+ fromPartial<I extends Exact<DeepPartial<ckycFetchRecordResponse>, I>>(object: I): ckycFetchRecordResponse;
28
+ };
29
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
30
+ 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 {} ? {
31
+ [K in keyof T]?: DeepPartial<T[K]>;
32
+ } : Partial<T>;
33
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
34
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
35
+ [K in keyof P]: Exact<P[K], I[K]>;
36
+ } & {
37
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
38
+ };
39
+ export {};
@@ -0,0 +1,177 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.1
5
+ // protoc v3.20.3
6
+ // source: kyc/ckycfetchrecord.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.ckycFetchRecordResponse = exports.ckycFetchRecordRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "kyc.ckycfetchrecord";
15
+ function createBaseckycFetchRecordRequest() {
16
+ return { customer_id: "", otp: "", loan_id: 0, transaction_id: "" };
17
+ }
18
+ exports.ckycFetchRecordRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.customer_id !== "") {
21
+ writer.uint32(10).string(message.customer_id);
22
+ }
23
+ if (message.otp !== "") {
24
+ writer.uint32(18).string(message.otp);
25
+ }
26
+ if (message.loan_id !== 0) {
27
+ writer.uint32(24).int32(message.loan_id);
28
+ }
29
+ if (message.transaction_id !== "") {
30
+ writer.uint32(34).string(message.transaction_id);
31
+ }
32
+ return writer;
33
+ },
34
+ decode(input, length) {
35
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
36
+ let end = length === undefined ? reader.len : reader.pos + length;
37
+ const message = createBaseckycFetchRecordRequest();
38
+ while (reader.pos < end) {
39
+ const tag = reader.uint32();
40
+ switch (tag >>> 3) {
41
+ case 1:
42
+ if (tag !== 10) {
43
+ break;
44
+ }
45
+ message.customer_id = reader.string();
46
+ continue;
47
+ case 2:
48
+ if (tag !== 18) {
49
+ break;
50
+ }
51
+ message.otp = reader.string();
52
+ continue;
53
+ case 3:
54
+ if (tag !== 24) {
55
+ break;
56
+ }
57
+ message.loan_id = reader.int32();
58
+ continue;
59
+ case 4:
60
+ if (tag !== 34) {
61
+ break;
62
+ }
63
+ message.transaction_id = reader.string();
64
+ continue;
65
+ }
66
+ if ((tag & 7) === 4 || tag === 0) {
67
+ break;
68
+ }
69
+ reader.skipType(tag & 7);
70
+ }
71
+ return message;
72
+ },
73
+ fromJSON(object) {
74
+ return {
75
+ customer_id: isSet(object.customer_id) ? globalThis.String(object.customer_id) : "",
76
+ otp: isSet(object.otp) ? globalThis.String(object.otp) : "",
77
+ loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
78
+ transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
79
+ };
80
+ },
81
+ toJSON(message) {
82
+ const obj = {};
83
+ if (message.customer_id !== "") {
84
+ obj.customer_id = message.customer_id;
85
+ }
86
+ if (message.otp !== "") {
87
+ obj.otp = message.otp;
88
+ }
89
+ if (message.loan_id !== 0) {
90
+ obj.loan_id = Math.round(message.loan_id);
91
+ }
92
+ if (message.transaction_id !== "") {
93
+ obj.transaction_id = message.transaction_id;
94
+ }
95
+ return obj;
96
+ },
97
+ create(base) {
98
+ return exports.ckycFetchRecordRequest.fromPartial(base ?? {});
99
+ },
100
+ fromPartial(object) {
101
+ const message = createBaseckycFetchRecordRequest();
102
+ message.customer_id = object.customer_id ?? "";
103
+ message.otp = object.otp ?? "";
104
+ message.loan_id = object.loan_id ?? 0;
105
+ message.transaction_id = object.transaction_id ?? "";
106
+ return message;
107
+ },
108
+ };
109
+ function createBaseckycFetchRecordResponse() {
110
+ return { message: "", status: "" };
111
+ }
112
+ exports.ckycFetchRecordResponse = {
113
+ encode(message, writer = minimal_1.default.Writer.create()) {
114
+ if (message.message !== "") {
115
+ writer.uint32(10).string(message.message);
116
+ }
117
+ if (message.status !== "") {
118
+ writer.uint32(18).string(message.status);
119
+ }
120
+ return writer;
121
+ },
122
+ decode(input, length) {
123
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
124
+ let end = length === undefined ? reader.len : reader.pos + length;
125
+ const message = createBaseckycFetchRecordResponse();
126
+ while (reader.pos < end) {
127
+ const tag = reader.uint32();
128
+ switch (tag >>> 3) {
129
+ case 1:
130
+ if (tag !== 10) {
131
+ break;
132
+ }
133
+ message.message = reader.string();
134
+ continue;
135
+ case 2:
136
+ if (tag !== 18) {
137
+ break;
138
+ }
139
+ message.status = reader.string();
140
+ continue;
141
+ }
142
+ if ((tag & 7) === 4 || tag === 0) {
143
+ break;
144
+ }
145
+ reader.skipType(tag & 7);
146
+ }
147
+ return message;
148
+ },
149
+ fromJSON(object) {
150
+ return {
151
+ message: isSet(object.message) ? globalThis.String(object.message) : "",
152
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
153
+ };
154
+ },
155
+ toJSON(message) {
156
+ const obj = {};
157
+ if (message.message !== "") {
158
+ obj.message = message.message;
159
+ }
160
+ if (message.status !== "") {
161
+ obj.status = message.status;
162
+ }
163
+ return obj;
164
+ },
165
+ create(base) {
166
+ return exports.ckycFetchRecordResponse.fromPartial(base ?? {});
167
+ },
168
+ fromPartial(object) {
169
+ const message = createBaseckycFetchRecordResponse();
170
+ message.message = object.message ?? "";
171
+ message.status = object.status ?? "";
172
+ return message;
173
+ },
174
+ };
175
+ function isSet(value) {
176
+ return value !== null && value !== undefined;
177
+ }
@@ -4,12 +4,14 @@ 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;
10
11
  status: string;
11
- step: string;
12
- transaction_id: string;
12
+ step?: string | undefined;
13
+ transaction_id?: string | undefined;
14
+ phone?: string | undefined;
13
15
  }
14
16
  export declare const CkycV1SearchRequest: {
15
17
  encode(message: CkycV1SearchRequest, writer?: _m0.Writer): _m0.Writer;
@@ -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,11 +102,12 @@ 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
  };
95
109
  function createBaseCkycV1SearchResponse() {
96
- return { message: "", status: "", step: "", transaction_id: "" };
110
+ return { message: "", status: "", step: undefined, transaction_id: undefined, phone: undefined };
97
111
  }
98
112
  exports.CkycV1SearchResponse = {
99
113
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -103,12 +117,15 @@ exports.CkycV1SearchResponse = {
103
117
  if (message.status !== "") {
104
118
  writer.uint32(18).string(message.status);
105
119
  }
106
- if (message.step !== "") {
120
+ if (message.step !== undefined) {
107
121
  writer.uint32(26).string(message.step);
108
122
  }
109
- if (message.transaction_id !== "") {
123
+ if (message.transaction_id !== undefined) {
110
124
  writer.uint32(34).string(message.transaction_id);
111
125
  }
126
+ if (message.phone !== undefined) {
127
+ writer.uint32(42).string(message.phone);
128
+ }
112
129
  return writer;
113
130
  },
114
131
  decode(input, length) {
@@ -142,6 +159,12 @@ exports.CkycV1SearchResponse = {
142
159
  }
143
160
  message.transaction_id = reader.string();
144
161
  continue;
162
+ case 5:
163
+ if (tag !== 42) {
164
+ break;
165
+ }
166
+ message.phone = reader.string();
167
+ continue;
145
168
  }
146
169
  if ((tag & 7) === 4 || tag === 0) {
147
170
  break;
@@ -154,8 +177,9 @@ exports.CkycV1SearchResponse = {
154
177
  return {
155
178
  message: isSet(object.message) ? globalThis.String(object.message) : "",
156
179
  status: isSet(object.status) ? globalThis.String(object.status) : "",
157
- step: isSet(object.step) ? globalThis.String(object.step) : "",
158
- transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
180
+ step: isSet(object.step) ? globalThis.String(object.step) : undefined,
181
+ transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : undefined,
182
+ phone: isSet(object.phone) ? globalThis.String(object.phone) : undefined,
159
183
  };
160
184
  },
161
185
  toJSON(message) {
@@ -166,12 +190,15 @@ exports.CkycV1SearchResponse = {
166
190
  if (message.status !== "") {
167
191
  obj.status = message.status;
168
192
  }
169
- if (message.step !== "") {
193
+ if (message.step !== undefined) {
170
194
  obj.step = message.step;
171
195
  }
172
- if (message.transaction_id !== "") {
196
+ if (message.transaction_id !== undefined) {
173
197
  obj.transaction_id = message.transaction_id;
174
198
  }
199
+ if (message.phone !== undefined) {
200
+ obj.phone = message.phone;
201
+ }
175
202
  return obj;
176
203
  },
177
204
  create(base) {
@@ -181,8 +208,9 @@ exports.CkycV1SearchResponse = {
181
208
  const message = createBaseCkycV1SearchResponse();
182
209
  message.message = object.message ?? "";
183
210
  message.status = object.status ?? "";
184
- message.step = object.step ?? "";
185
- message.transaction_id = object.transaction_id ?? "";
211
+ message.step = object.step ?? undefined;
212
+ message.transaction_id = object.transaction_id ?? undefined;
213
+ message.phone = object.phone ?? undefined;
186
214
  return message;
187
215
  },
188
216
  };
package/ts/kyc.d.ts CHANGED
@@ -2,6 +2,7 @@ import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type
2
2
  import { amlDetailsRequest, amlDetailsResponse } from "./kyc/amldetails";
3
3
  import { authbridgeRequest, authbridgeResponse } from "./kyc/authbridgepancomprehend";
4
4
  import { bureauWpRequest, bureauWpResponse } from "./kyc/bureauidwhatsapp";
5
+ import { ckycFetchRecordRequest, ckycFetchRecordResponse } from "./kyc/ckycfetchrecord";
5
6
  import { CkycV1SearchRequest, CkycV1SearchResponse } from "./kyc/ckycsearchv1";
6
7
  import { faceMatchRequest, faceMatchResponse } from "./kyc/facematch";
7
8
  import { fetchAadhaarByPanRequest, fetchAadhaarByPanResponse } from "./kyc/fetchaadhaarbypan";
@@ -122,6 +123,15 @@ export declare const kycService: {
122
123
  readonly responseSerialize: (value: CkycV1SearchResponse) => Buffer;
123
124
  readonly responseDeserialize: (value: Buffer) => CkycV1SearchResponse;
124
125
  };
126
+ readonly ckycFetchRecord: {
127
+ readonly path: "/service.kyc/ckycFetchRecord";
128
+ readonly requestStream: false;
129
+ readonly responseStream: false;
130
+ readonly requestSerialize: (value: ckycFetchRecordRequest) => Buffer;
131
+ readonly requestDeserialize: (value: Buffer) => ckycFetchRecordRequest;
132
+ readonly responseSerialize: (value: ckycFetchRecordResponse) => Buffer;
133
+ readonly responseDeserialize: (value: Buffer) => ckycFetchRecordResponse;
134
+ };
125
135
  };
126
136
  export interface kycServer extends UntypedServiceImplementation {
127
137
  fetchUanList: handleUnaryCall<fetchUanListRequest, fetchUanListResponse>;
@@ -136,6 +146,7 @@ export interface kycServer extends UntypedServiceImplementation {
136
146
  fetchWhatsAppDetails: handleUnaryCall<bureauWpRequest, bureauWpResponse>;
137
147
  getOkycLinkHyperverge: handleUnaryCall<okyclinkHypervergeRequest, okyclinkHypervergeResponse>;
138
148
  searchCkyc: handleUnaryCall<CkycV1SearchRequest, CkycV1SearchResponse>;
149
+ ckycFetchRecord: handleUnaryCall<ckycFetchRecordRequest, ckycFetchRecordResponse>;
139
150
  }
140
151
  export interface kycClient extends Client {
141
152
  fetchUanList(request: fetchUanListRequest, callback: (error: ServiceError | null, response: fetchUanListResponse) => void): ClientUnaryCall;
@@ -174,6 +185,9 @@ export interface kycClient extends Client {
174
185
  searchCkyc(request: CkycV1SearchRequest, callback: (error: ServiceError | null, response: CkycV1SearchResponse) => void): ClientUnaryCall;
175
186
  searchCkyc(request: CkycV1SearchRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CkycV1SearchResponse) => void): ClientUnaryCall;
176
187
  searchCkyc(request: CkycV1SearchRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CkycV1SearchResponse) => void): ClientUnaryCall;
188
+ ckycFetchRecord(request: ckycFetchRecordRequest, callback: (error: ServiceError | null, response: ckycFetchRecordResponse) => void): ClientUnaryCall;
189
+ ckycFetchRecord(request: ckycFetchRecordRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ckycFetchRecordResponse) => void): ClientUnaryCall;
190
+ ckycFetchRecord(request: ckycFetchRecordRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ckycFetchRecordResponse) => void): ClientUnaryCall;
177
191
  }
178
192
  export declare const kycClient: {
179
193
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): kycClient;
package/ts/kyc.js CHANGED
@@ -11,6 +11,7 @@ const grpc_js_1 = require("@grpc/grpc-js");
11
11
  const amldetails_1 = require("./kyc/amldetails");
12
12
  const authbridgepancomprehend_1 = require("./kyc/authbridgepancomprehend");
13
13
  const bureauidwhatsapp_1 = require("./kyc/bureauidwhatsapp");
14
+ const ckycfetchrecord_1 = require("./kyc/ckycfetchrecord");
14
15
  const ckycsearchv1_1 = require("./kyc/ckycsearchv1");
15
16
  const facematch_1 = require("./kyc/facematch");
16
17
  const fetchaadhaarbypan_1 = require("./kyc/fetchaadhaarbypan");
@@ -130,5 +131,14 @@ exports.kycService = {
130
131
  responseSerialize: (value) => Buffer.from(ckycsearchv1_1.CkycV1SearchResponse.encode(value).finish()),
131
132
  responseDeserialize: (value) => ckycsearchv1_1.CkycV1SearchResponse.decode(value),
132
133
  },
134
+ ckycFetchRecord: {
135
+ path: "/service.kyc/ckycFetchRecord",
136
+ requestStream: false,
137
+ responseStream: false,
138
+ requestSerialize: (value) => Buffer.from(ckycfetchrecord_1.ckycFetchRecordRequest.encode(value).finish()),
139
+ requestDeserialize: (value) => ckycfetchrecord_1.ckycFetchRecordRequest.decode(value),
140
+ responseSerialize: (value) => Buffer.from(ckycfetchrecord_1.ckycFetchRecordResponse.encode(value).finish()),
141
+ responseDeserialize: (value) => ckycfetchrecord_1.ckycFetchRecordResponse.decode(value),
142
+ },
133
143
  };
134
144
  exports.kycClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.kycService, "service.kyc");