@stashfin/grpc 1.2.780 → 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.780",
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
+ }
@@ -9,8 +9,9 @@ export interface CkycV1SearchRequest {
9
9
  export interface CkycV1SearchResponse {
10
10
  message: string;
11
11
  status: string;
12
- step: string;
13
- transaction_id: string;
12
+ step?: string | undefined;
13
+ transaction_id?: string | undefined;
14
+ phone?: string | undefined;
14
15
  }
15
16
  export declare const CkycV1SearchRequest: {
16
17
  encode(message: CkycV1SearchRequest, writer?: _m0.Writer): _m0.Writer;
@@ -107,7 +107,7 @@ exports.CkycV1SearchRequest = {
107
107
  },
108
108
  };
109
109
  function createBaseCkycV1SearchResponse() {
110
- return { message: "", status: "", step: "", transaction_id: "" };
110
+ return { message: "", status: "", step: undefined, transaction_id: undefined, phone: undefined };
111
111
  }
112
112
  exports.CkycV1SearchResponse = {
113
113
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -117,12 +117,15 @@ exports.CkycV1SearchResponse = {
117
117
  if (message.status !== "") {
118
118
  writer.uint32(18).string(message.status);
119
119
  }
120
- if (message.step !== "") {
120
+ if (message.step !== undefined) {
121
121
  writer.uint32(26).string(message.step);
122
122
  }
123
- if (message.transaction_id !== "") {
123
+ if (message.transaction_id !== undefined) {
124
124
  writer.uint32(34).string(message.transaction_id);
125
125
  }
126
+ if (message.phone !== undefined) {
127
+ writer.uint32(42).string(message.phone);
128
+ }
126
129
  return writer;
127
130
  },
128
131
  decode(input, length) {
@@ -156,6 +159,12 @@ exports.CkycV1SearchResponse = {
156
159
  }
157
160
  message.transaction_id = reader.string();
158
161
  continue;
162
+ case 5:
163
+ if (tag !== 42) {
164
+ break;
165
+ }
166
+ message.phone = reader.string();
167
+ continue;
159
168
  }
160
169
  if ((tag & 7) === 4 || tag === 0) {
161
170
  break;
@@ -168,8 +177,9 @@ exports.CkycV1SearchResponse = {
168
177
  return {
169
178
  message: isSet(object.message) ? globalThis.String(object.message) : "",
170
179
  status: isSet(object.status) ? globalThis.String(object.status) : "",
171
- step: isSet(object.step) ? globalThis.String(object.step) : "",
172
- 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,
173
183
  };
174
184
  },
175
185
  toJSON(message) {
@@ -180,12 +190,15 @@ exports.CkycV1SearchResponse = {
180
190
  if (message.status !== "") {
181
191
  obj.status = message.status;
182
192
  }
183
- if (message.step !== "") {
193
+ if (message.step !== undefined) {
184
194
  obj.step = message.step;
185
195
  }
186
- if (message.transaction_id !== "") {
196
+ if (message.transaction_id !== undefined) {
187
197
  obj.transaction_id = message.transaction_id;
188
198
  }
199
+ if (message.phone !== undefined) {
200
+ obj.phone = message.phone;
201
+ }
189
202
  return obj;
190
203
  },
191
204
  create(base) {
@@ -195,8 +208,9 @@ exports.CkycV1SearchResponse = {
195
208
  const message = createBaseCkycV1SearchResponse();
196
209
  message.message = object.message ?? "";
197
210
  message.status = object.status ?? "";
198
- message.step = object.step ?? "";
199
- 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;
200
214
  return message;
201
215
  },
202
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");