@stashfin/grpc 1.2.683 → 1.2.684

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.683",
3
+ "version": "1.2.684",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
package/ts/growth.d.ts CHANGED
@@ -1,10 +1,4 @@
1
1
  import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
2
- import { chrplansstatusrequest, chrplanstatusresponse } from "./growth/checkplanstatus";
3
- import { chrattachplanrequest, chrattachplanresponse } from "./growth/getattachplandetails";
4
- import { paymentstatusrequest, paymentstatusresponse } from "./growth/getchrpaymentstatus";
5
- import { chrPlansRequest, chrPlansResponse } from "./growth/getchrplans";
6
- import { credithealthreportrequest, credithealthreportresponse } from "./growth/getcredithealthreport";
7
- import { initiatepaymentrequest, initiatepaymentresponse } from "./growth/initiatepayment";
8
2
  import { notifychrrequest, notifychrresponse } from "./growth/notifychrpayment";
9
3
  export declare const protobufPackage = "service";
10
4
  export type growthService = typeof growthService;
@@ -18,92 +12,14 @@ export declare const growthService: {
18
12
  readonly responseSerialize: (value: notifychrresponse) => Buffer;
19
13
  readonly responseDeserialize: (value: Buffer) => notifychrresponse;
20
14
  };
21
- readonly checkplanstatus: {
22
- readonly path: "/service.growth/checkplanstatus";
23
- readonly requestStream: false;
24
- readonly responseStream: false;
25
- readonly requestSerialize: (value: chrplansstatusrequest) => Buffer;
26
- readonly requestDeserialize: (value: Buffer) => chrplansstatusrequest;
27
- readonly responseSerialize: (value: chrplanstatusresponse) => Buffer;
28
- readonly responseDeserialize: (value: Buffer) => chrplanstatusresponse;
29
- };
30
- readonly getattachplandetails: {
31
- readonly path: "/service.growth/getattachplandetails";
32
- readonly requestStream: false;
33
- readonly responseStream: false;
34
- readonly requestSerialize: (value: chrattachplanrequest) => Buffer;
35
- readonly requestDeserialize: (value: Buffer) => chrattachplanrequest;
36
- readonly responseSerialize: (value: chrattachplanresponse) => Buffer;
37
- readonly responseDeserialize: (value: Buffer) => chrattachplanresponse;
38
- };
39
- readonly getchrplans: {
40
- readonly path: "/service.growth/getchrplans";
41
- readonly requestStream: false;
42
- readonly responseStream: false;
43
- readonly requestSerialize: (value: chrPlansRequest) => Buffer;
44
- readonly requestDeserialize: (value: Buffer) => chrPlansRequest;
45
- readonly responseSerialize: (value: chrPlansResponse) => Buffer;
46
- readonly responseDeserialize: (value: Buffer) => chrPlansResponse;
47
- };
48
- readonly getcredithealthreport: {
49
- readonly path: "/service.growth/getcredithealthreport";
50
- readonly requestStream: false;
51
- readonly responseStream: false;
52
- readonly requestSerialize: (value: credithealthreportrequest) => Buffer;
53
- readonly requestDeserialize: (value: Buffer) => credithealthreportrequest;
54
- readonly responseSerialize: (value: credithealthreportresponse) => Buffer;
55
- readonly responseDeserialize: (value: Buffer) => credithealthreportresponse;
56
- };
57
- readonly initiatepayment: {
58
- readonly path: "/service.growth/initiatepayment";
59
- readonly requestStream: false;
60
- readonly responseStream: false;
61
- readonly requestSerialize: (value: initiatepaymentrequest) => Buffer;
62
- readonly requestDeserialize: (value: Buffer) => initiatepaymentrequest;
63
- readonly responseSerialize: (value: initiatepaymentresponse) => Buffer;
64
- readonly responseDeserialize: (value: Buffer) => initiatepaymentresponse;
65
- };
66
- readonly getchrpaymentstatus: {
67
- readonly path: "/service.growth/getchrpaymentstatus";
68
- readonly requestStream: false;
69
- readonly responseStream: false;
70
- readonly requestSerialize: (value: paymentstatusrequest) => Buffer;
71
- readonly requestDeserialize: (value: Buffer) => paymentstatusrequest;
72
- readonly responseSerialize: (value: paymentstatusresponse) => Buffer;
73
- readonly responseDeserialize: (value: Buffer) => paymentstatusresponse;
74
- };
75
15
  };
76
16
  export interface growthServer extends UntypedServiceImplementation {
77
17
  notifychrpayment: handleUnaryCall<notifychrrequest, notifychrresponse>;
78
- checkplanstatus: handleUnaryCall<chrplansstatusrequest, chrplanstatusresponse>;
79
- getattachplandetails: handleUnaryCall<chrattachplanrequest, chrattachplanresponse>;
80
- getchrplans: handleUnaryCall<chrPlansRequest, chrPlansResponse>;
81
- getcredithealthreport: handleUnaryCall<credithealthreportrequest, credithealthreportresponse>;
82
- initiatepayment: handleUnaryCall<initiatepaymentrequest, initiatepaymentresponse>;
83
- getchrpaymentstatus: handleUnaryCall<paymentstatusrequest, paymentstatusresponse>;
84
18
  }
85
19
  export interface growthClient extends Client {
86
20
  notifychrpayment(request: notifychrrequest, callback: (error: ServiceError | null, response: notifychrresponse) => void): ClientUnaryCall;
87
21
  notifychrpayment(request: notifychrrequest, metadata: Metadata, callback: (error: ServiceError | null, response: notifychrresponse) => void): ClientUnaryCall;
88
22
  notifychrpayment(request: notifychrrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: notifychrresponse) => void): ClientUnaryCall;
89
- checkplanstatus(request: chrplansstatusrequest, callback: (error: ServiceError | null, response: chrplanstatusresponse) => void): ClientUnaryCall;
90
- checkplanstatus(request: chrplansstatusrequest, metadata: Metadata, callback: (error: ServiceError | null, response: chrplanstatusresponse) => void): ClientUnaryCall;
91
- checkplanstatus(request: chrplansstatusrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: chrplanstatusresponse) => void): ClientUnaryCall;
92
- getattachplandetails(request: chrattachplanrequest, callback: (error: ServiceError | null, response: chrattachplanresponse) => void): ClientUnaryCall;
93
- getattachplandetails(request: chrattachplanrequest, metadata: Metadata, callback: (error: ServiceError | null, response: chrattachplanresponse) => void): ClientUnaryCall;
94
- getattachplandetails(request: chrattachplanrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: chrattachplanresponse) => void): ClientUnaryCall;
95
- getchrplans(request: chrPlansRequest, callback: (error: ServiceError | null, response: chrPlansResponse) => void): ClientUnaryCall;
96
- getchrplans(request: chrPlansRequest, metadata: Metadata, callback: (error: ServiceError | null, response: chrPlansResponse) => void): ClientUnaryCall;
97
- getchrplans(request: chrPlansRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: chrPlansResponse) => void): ClientUnaryCall;
98
- getcredithealthreport(request: credithealthreportrequest, callback: (error: ServiceError | null, response: credithealthreportresponse) => void): ClientUnaryCall;
99
- getcredithealthreport(request: credithealthreportrequest, metadata: Metadata, callback: (error: ServiceError | null, response: credithealthreportresponse) => void): ClientUnaryCall;
100
- getcredithealthreport(request: credithealthreportrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: credithealthreportresponse) => void): ClientUnaryCall;
101
- initiatepayment(request: initiatepaymentrequest, callback: (error: ServiceError | null, response: initiatepaymentresponse) => void): ClientUnaryCall;
102
- initiatepayment(request: initiatepaymentrequest, metadata: Metadata, callback: (error: ServiceError | null, response: initiatepaymentresponse) => void): ClientUnaryCall;
103
- initiatepayment(request: initiatepaymentrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: initiatepaymentresponse) => void): ClientUnaryCall;
104
- getchrpaymentstatus(request: paymentstatusrequest, callback: (error: ServiceError | null, response: paymentstatusresponse) => void): ClientUnaryCall;
105
- getchrpaymentstatus(request: paymentstatusrequest, metadata: Metadata, callback: (error: ServiceError | null, response: paymentstatusresponse) => void): ClientUnaryCall;
106
- getchrpaymentstatus(request: paymentstatusrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: paymentstatusresponse) => void): ClientUnaryCall;
107
23
  }
108
24
  export declare const growthClient: {
109
25
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): growthClient;
package/ts/growth.js CHANGED
@@ -8,12 +8,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.growthClient = exports.growthService = exports.protobufPackage = void 0;
9
9
  /* eslint-disable */
10
10
  const grpc_js_1 = require("@grpc/grpc-js");
11
- const checkplanstatus_1 = require("./growth/checkplanstatus");
12
- const getattachplandetails_1 = require("./growth/getattachplandetails");
13
- const getchrpaymentstatus_1 = require("./growth/getchrpaymentstatus");
14
- const getchrplans_1 = require("./growth/getchrplans");
15
- const getcredithealthreport_1 = require("./growth/getcredithealthreport");
16
- const initiatepayment_1 = require("./growth/initiatepayment");
17
11
  const notifychrpayment_1 = require("./growth/notifychrpayment");
18
12
  exports.protobufPackage = "service";
19
13
  exports.growthService = {
@@ -26,59 +20,5 @@ exports.growthService = {
26
20
  responseSerialize: (value) => Buffer.from(notifychrpayment_1.notifychrresponse.encode(value).finish()),
27
21
  responseDeserialize: (value) => notifychrpayment_1.notifychrresponse.decode(value),
28
22
  },
29
- checkplanstatus: {
30
- path: "/service.growth/checkplanstatus",
31
- requestStream: false,
32
- responseStream: false,
33
- requestSerialize: (value) => Buffer.from(checkplanstatus_1.chrplansstatusrequest.encode(value).finish()),
34
- requestDeserialize: (value) => checkplanstatus_1.chrplansstatusrequest.decode(value),
35
- responseSerialize: (value) => Buffer.from(checkplanstatus_1.chrplanstatusresponse.encode(value).finish()),
36
- responseDeserialize: (value) => checkplanstatus_1.chrplanstatusresponse.decode(value),
37
- },
38
- getattachplandetails: {
39
- path: "/service.growth/getattachplandetails",
40
- requestStream: false,
41
- responseStream: false,
42
- requestSerialize: (value) => Buffer.from(getattachplandetails_1.chrattachplanrequest.encode(value).finish()),
43
- requestDeserialize: (value) => getattachplandetails_1.chrattachplanrequest.decode(value),
44
- responseSerialize: (value) => Buffer.from(getattachplandetails_1.chrattachplanresponse.encode(value).finish()),
45
- responseDeserialize: (value) => getattachplandetails_1.chrattachplanresponse.decode(value),
46
- },
47
- getchrplans: {
48
- path: "/service.growth/getchrplans",
49
- requestStream: false,
50
- responseStream: false,
51
- requestSerialize: (value) => Buffer.from(getchrplans_1.chrPlansRequest.encode(value).finish()),
52
- requestDeserialize: (value) => getchrplans_1.chrPlansRequest.decode(value),
53
- responseSerialize: (value) => Buffer.from(getchrplans_1.chrPlansResponse.encode(value).finish()),
54
- responseDeserialize: (value) => getchrplans_1.chrPlansResponse.decode(value),
55
- },
56
- getcredithealthreport: {
57
- path: "/service.growth/getcredithealthreport",
58
- requestStream: false,
59
- responseStream: false,
60
- requestSerialize: (value) => Buffer.from(getcredithealthreport_1.credithealthreportrequest.encode(value).finish()),
61
- requestDeserialize: (value) => getcredithealthreport_1.credithealthreportrequest.decode(value),
62
- responseSerialize: (value) => Buffer.from(getcredithealthreport_1.credithealthreportresponse.encode(value).finish()),
63
- responseDeserialize: (value) => getcredithealthreport_1.credithealthreportresponse.decode(value),
64
- },
65
- initiatepayment: {
66
- path: "/service.growth/initiatepayment",
67
- requestStream: false,
68
- responseStream: false,
69
- requestSerialize: (value) => Buffer.from(initiatepayment_1.initiatepaymentrequest.encode(value).finish()),
70
- requestDeserialize: (value) => initiatepayment_1.initiatepaymentrequest.decode(value),
71
- responseSerialize: (value) => Buffer.from(initiatepayment_1.initiatepaymentresponse.encode(value).finish()),
72
- responseDeserialize: (value) => initiatepayment_1.initiatepaymentresponse.decode(value),
73
- },
74
- getchrpaymentstatus: {
75
- path: "/service.growth/getchrpaymentstatus",
76
- requestStream: false,
77
- responseStream: false,
78
- requestSerialize: (value) => Buffer.from(getchrpaymentstatus_1.paymentstatusrequest.encode(value).finish()),
79
- requestDeserialize: (value) => getchrpaymentstatus_1.paymentstatusrequest.decode(value),
80
- responseSerialize: (value) => Buffer.from(getchrpaymentstatus_1.paymentstatusresponse.encode(value).finish()),
81
- responseDeserialize: (value) => getchrpaymentstatus_1.paymentstatusresponse.decode(value),
82
- },
83
23
  };
84
24
  exports.growthClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.growthService, "service.growth");
@@ -0,0 +1,52 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "kyc.amldetails";
3
+ export interface amlDetailsRequest {
4
+ first_name: string;
5
+ middle_name: string;
6
+ last_name: string;
7
+ phone: string;
8
+ gender: string;
9
+ pan_number: string;
10
+ dob: string;
11
+ pincode: string;
12
+ email: string;
13
+ create_date: string;
14
+ customer_id: number;
15
+ }
16
+ export interface amlDetailsResponse {
17
+ hit_count: number;
18
+ confirmed_hits: string;
19
+ doc_file: string;
20
+ response_data: string;
21
+ overall_status: string;
22
+ validation_outcome: string;
23
+ hits_detected: string;
24
+ request_id: string;
25
+ }
26
+ export declare const amlDetailsRequest: {
27
+ encode(message: amlDetailsRequest, writer?: _m0.Writer): _m0.Writer;
28
+ decode(input: _m0.Reader | Uint8Array, length?: number): amlDetailsRequest;
29
+ fromJSON(object: any): amlDetailsRequest;
30
+ toJSON(message: amlDetailsRequest): unknown;
31
+ create<I extends Exact<DeepPartial<amlDetailsRequest>, I>>(base?: I): amlDetailsRequest;
32
+ fromPartial<I extends Exact<DeepPartial<amlDetailsRequest>, I>>(object: I): amlDetailsRequest;
33
+ };
34
+ export declare const amlDetailsResponse: {
35
+ encode(message: amlDetailsResponse, writer?: _m0.Writer): _m0.Writer;
36
+ decode(input: _m0.Reader | Uint8Array, length?: number): amlDetailsResponse;
37
+ fromJSON(object: any): amlDetailsResponse;
38
+ toJSON(message: amlDetailsResponse): unknown;
39
+ create<I extends Exact<DeepPartial<amlDetailsResponse>, I>>(base?: I): amlDetailsResponse;
40
+ fromPartial<I extends Exact<DeepPartial<amlDetailsResponse>, I>>(object: I): amlDetailsResponse;
41
+ };
42
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
43
+ 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 {} ? {
44
+ [K in keyof T]?: DeepPartial<T[K]>;
45
+ } : Partial<T>;
46
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
47
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
48
+ [K in keyof P]: Exact<P[K], I[K]>;
49
+ } & {
50
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
51
+ };
52
+ export {};
@@ -0,0 +1,380 @@
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/amldetails.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.amlDetailsResponse = exports.amlDetailsRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "kyc.amldetails";
15
+ function createBaseamlDetailsRequest() {
16
+ return {
17
+ first_name: "",
18
+ middle_name: "",
19
+ last_name: "",
20
+ phone: "",
21
+ gender: "",
22
+ pan_number: "",
23
+ dob: "",
24
+ pincode: "",
25
+ email: "",
26
+ create_date: "",
27
+ customer_id: 0,
28
+ };
29
+ }
30
+ exports.amlDetailsRequest = {
31
+ encode(message, writer = minimal_1.default.Writer.create()) {
32
+ if (message.first_name !== "") {
33
+ writer.uint32(10).string(message.first_name);
34
+ }
35
+ if (message.middle_name !== "") {
36
+ writer.uint32(18).string(message.middle_name);
37
+ }
38
+ if (message.last_name !== "") {
39
+ writer.uint32(26).string(message.last_name);
40
+ }
41
+ if (message.phone !== "") {
42
+ writer.uint32(34).string(message.phone);
43
+ }
44
+ if (message.gender !== "") {
45
+ writer.uint32(42).string(message.gender);
46
+ }
47
+ if (message.pan_number !== "") {
48
+ writer.uint32(50).string(message.pan_number);
49
+ }
50
+ if (message.dob !== "") {
51
+ writer.uint32(58).string(message.dob);
52
+ }
53
+ if (message.pincode !== "") {
54
+ writer.uint32(66).string(message.pincode);
55
+ }
56
+ if (message.email !== "") {
57
+ writer.uint32(74).string(message.email);
58
+ }
59
+ if (message.create_date !== "") {
60
+ writer.uint32(82).string(message.create_date);
61
+ }
62
+ if (message.customer_id !== 0) {
63
+ writer.uint32(88).int32(message.customer_id);
64
+ }
65
+ return writer;
66
+ },
67
+ decode(input, length) {
68
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
69
+ let end = length === undefined ? reader.len : reader.pos + length;
70
+ const message = createBaseamlDetailsRequest();
71
+ while (reader.pos < end) {
72
+ const tag = reader.uint32();
73
+ switch (tag >>> 3) {
74
+ case 1:
75
+ if (tag !== 10) {
76
+ break;
77
+ }
78
+ message.first_name = reader.string();
79
+ continue;
80
+ case 2:
81
+ if (tag !== 18) {
82
+ break;
83
+ }
84
+ message.middle_name = reader.string();
85
+ continue;
86
+ case 3:
87
+ if (tag !== 26) {
88
+ break;
89
+ }
90
+ message.last_name = reader.string();
91
+ continue;
92
+ case 4:
93
+ if (tag !== 34) {
94
+ break;
95
+ }
96
+ message.phone = reader.string();
97
+ continue;
98
+ case 5:
99
+ if (tag !== 42) {
100
+ break;
101
+ }
102
+ message.gender = reader.string();
103
+ continue;
104
+ case 6:
105
+ if (tag !== 50) {
106
+ break;
107
+ }
108
+ message.pan_number = reader.string();
109
+ continue;
110
+ case 7:
111
+ if (tag !== 58) {
112
+ break;
113
+ }
114
+ message.dob = reader.string();
115
+ continue;
116
+ case 8:
117
+ if (tag !== 66) {
118
+ break;
119
+ }
120
+ message.pincode = reader.string();
121
+ continue;
122
+ case 9:
123
+ if (tag !== 74) {
124
+ break;
125
+ }
126
+ message.email = reader.string();
127
+ continue;
128
+ case 10:
129
+ if (tag !== 82) {
130
+ break;
131
+ }
132
+ message.create_date = reader.string();
133
+ continue;
134
+ case 11:
135
+ if (tag !== 88) {
136
+ break;
137
+ }
138
+ message.customer_id = reader.int32();
139
+ continue;
140
+ }
141
+ if ((tag & 7) === 4 || tag === 0) {
142
+ break;
143
+ }
144
+ reader.skipType(tag & 7);
145
+ }
146
+ return message;
147
+ },
148
+ fromJSON(object) {
149
+ return {
150
+ first_name: isSet(object.first_name) ? globalThis.String(object.first_name) : "",
151
+ middle_name: isSet(object.middle_name) ? globalThis.String(object.middle_name) : "",
152
+ last_name: isSet(object.last_name) ? globalThis.String(object.last_name) : "",
153
+ phone: isSet(object.phone) ? globalThis.String(object.phone) : "",
154
+ gender: isSet(object.gender) ? globalThis.String(object.gender) : "",
155
+ pan_number: isSet(object.pan_number) ? globalThis.String(object.pan_number) : "",
156
+ dob: isSet(object.dob) ? globalThis.String(object.dob) : "",
157
+ pincode: isSet(object.pincode) ? globalThis.String(object.pincode) : "",
158
+ email: isSet(object.email) ? globalThis.String(object.email) : "",
159
+ create_date: isSet(object.create_date) ? globalThis.String(object.create_date) : "",
160
+ customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
161
+ };
162
+ },
163
+ toJSON(message) {
164
+ const obj = {};
165
+ if (message.first_name !== "") {
166
+ obj.first_name = message.first_name;
167
+ }
168
+ if (message.middle_name !== "") {
169
+ obj.middle_name = message.middle_name;
170
+ }
171
+ if (message.last_name !== "") {
172
+ obj.last_name = message.last_name;
173
+ }
174
+ if (message.phone !== "") {
175
+ obj.phone = message.phone;
176
+ }
177
+ if (message.gender !== "") {
178
+ obj.gender = message.gender;
179
+ }
180
+ if (message.pan_number !== "") {
181
+ obj.pan_number = message.pan_number;
182
+ }
183
+ if (message.dob !== "") {
184
+ obj.dob = message.dob;
185
+ }
186
+ if (message.pincode !== "") {
187
+ obj.pincode = message.pincode;
188
+ }
189
+ if (message.email !== "") {
190
+ obj.email = message.email;
191
+ }
192
+ if (message.create_date !== "") {
193
+ obj.create_date = message.create_date;
194
+ }
195
+ if (message.customer_id !== 0) {
196
+ obj.customer_id = Math.round(message.customer_id);
197
+ }
198
+ return obj;
199
+ },
200
+ create(base) {
201
+ return exports.amlDetailsRequest.fromPartial(base ?? {});
202
+ },
203
+ fromPartial(object) {
204
+ const message = createBaseamlDetailsRequest();
205
+ message.first_name = object.first_name ?? "";
206
+ message.middle_name = object.middle_name ?? "";
207
+ message.last_name = object.last_name ?? "";
208
+ message.phone = object.phone ?? "";
209
+ message.gender = object.gender ?? "";
210
+ message.pan_number = object.pan_number ?? "";
211
+ message.dob = object.dob ?? "";
212
+ message.pincode = object.pincode ?? "";
213
+ message.email = object.email ?? "";
214
+ message.create_date = object.create_date ?? "";
215
+ message.customer_id = object.customer_id ?? 0;
216
+ return message;
217
+ },
218
+ };
219
+ function createBaseamlDetailsResponse() {
220
+ return {
221
+ hit_count: 0,
222
+ confirmed_hits: "",
223
+ doc_file: "",
224
+ response_data: "",
225
+ overall_status: "",
226
+ validation_outcome: "",
227
+ hits_detected: "",
228
+ request_id: "",
229
+ };
230
+ }
231
+ exports.amlDetailsResponse = {
232
+ encode(message, writer = minimal_1.default.Writer.create()) {
233
+ if (message.hit_count !== 0) {
234
+ writer.uint32(8).int32(message.hit_count);
235
+ }
236
+ if (message.confirmed_hits !== "") {
237
+ writer.uint32(18).string(message.confirmed_hits);
238
+ }
239
+ if (message.doc_file !== "") {
240
+ writer.uint32(26).string(message.doc_file);
241
+ }
242
+ if (message.response_data !== "") {
243
+ writer.uint32(34).string(message.response_data);
244
+ }
245
+ if (message.overall_status !== "") {
246
+ writer.uint32(42).string(message.overall_status);
247
+ }
248
+ if (message.validation_outcome !== "") {
249
+ writer.uint32(50).string(message.validation_outcome);
250
+ }
251
+ if (message.hits_detected !== "") {
252
+ writer.uint32(58).string(message.hits_detected);
253
+ }
254
+ if (message.request_id !== "") {
255
+ writer.uint32(66).string(message.request_id);
256
+ }
257
+ return writer;
258
+ },
259
+ decode(input, length) {
260
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
261
+ let end = length === undefined ? reader.len : reader.pos + length;
262
+ const message = createBaseamlDetailsResponse();
263
+ while (reader.pos < end) {
264
+ const tag = reader.uint32();
265
+ switch (tag >>> 3) {
266
+ case 1:
267
+ if (tag !== 8) {
268
+ break;
269
+ }
270
+ message.hit_count = reader.int32();
271
+ continue;
272
+ case 2:
273
+ if (tag !== 18) {
274
+ break;
275
+ }
276
+ message.confirmed_hits = reader.string();
277
+ continue;
278
+ case 3:
279
+ if (tag !== 26) {
280
+ break;
281
+ }
282
+ message.doc_file = reader.string();
283
+ continue;
284
+ case 4:
285
+ if (tag !== 34) {
286
+ break;
287
+ }
288
+ message.response_data = reader.string();
289
+ continue;
290
+ case 5:
291
+ if (tag !== 42) {
292
+ break;
293
+ }
294
+ message.overall_status = reader.string();
295
+ continue;
296
+ case 6:
297
+ if (tag !== 50) {
298
+ break;
299
+ }
300
+ message.validation_outcome = reader.string();
301
+ continue;
302
+ case 7:
303
+ if (tag !== 58) {
304
+ break;
305
+ }
306
+ message.hits_detected = reader.string();
307
+ continue;
308
+ case 8:
309
+ if (tag !== 66) {
310
+ break;
311
+ }
312
+ message.request_id = reader.string();
313
+ continue;
314
+ }
315
+ if ((tag & 7) === 4 || tag === 0) {
316
+ break;
317
+ }
318
+ reader.skipType(tag & 7);
319
+ }
320
+ return message;
321
+ },
322
+ fromJSON(object) {
323
+ return {
324
+ hit_count: isSet(object.hit_count) ? globalThis.Number(object.hit_count) : 0,
325
+ confirmed_hits: isSet(object.confirmed_hits) ? globalThis.String(object.confirmed_hits) : "",
326
+ doc_file: isSet(object.doc_file) ? globalThis.String(object.doc_file) : "",
327
+ response_data: isSet(object.response_data) ? globalThis.String(object.response_data) : "",
328
+ overall_status: isSet(object.overall_status) ? globalThis.String(object.overall_status) : "",
329
+ validation_outcome: isSet(object.validation_outcome) ? globalThis.String(object.validation_outcome) : "",
330
+ hits_detected: isSet(object.hits_detected) ? globalThis.String(object.hits_detected) : "",
331
+ request_id: isSet(object.request_id) ? globalThis.String(object.request_id) : "",
332
+ };
333
+ },
334
+ toJSON(message) {
335
+ const obj = {};
336
+ if (message.hit_count !== 0) {
337
+ obj.hit_count = Math.round(message.hit_count);
338
+ }
339
+ if (message.confirmed_hits !== "") {
340
+ obj.confirmed_hits = message.confirmed_hits;
341
+ }
342
+ if (message.doc_file !== "") {
343
+ obj.doc_file = message.doc_file;
344
+ }
345
+ if (message.response_data !== "") {
346
+ obj.response_data = message.response_data;
347
+ }
348
+ if (message.overall_status !== "") {
349
+ obj.overall_status = message.overall_status;
350
+ }
351
+ if (message.validation_outcome !== "") {
352
+ obj.validation_outcome = message.validation_outcome;
353
+ }
354
+ if (message.hits_detected !== "") {
355
+ obj.hits_detected = message.hits_detected;
356
+ }
357
+ if (message.request_id !== "") {
358
+ obj.request_id = message.request_id;
359
+ }
360
+ return obj;
361
+ },
362
+ create(base) {
363
+ return exports.amlDetailsResponse.fromPartial(base ?? {});
364
+ },
365
+ fromPartial(object) {
366
+ const message = createBaseamlDetailsResponse();
367
+ message.hit_count = object.hit_count ?? 0;
368
+ message.confirmed_hits = object.confirmed_hits ?? "";
369
+ message.doc_file = object.doc_file ?? "";
370
+ message.response_data = object.response_data ?? "";
371
+ message.overall_status = object.overall_status ?? "";
372
+ message.validation_outcome = object.validation_outcome ?? "";
373
+ message.hits_detected = object.hits_detected ?? "";
374
+ message.request_id = object.request_id ?? "";
375
+ return message;
376
+ },
377
+ };
378
+ function isSet(value) {
379
+ return value !== null && value !== undefined;
380
+ }
package/ts/kyc.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
2
+ import { amlDetailsRequest, amlDetailsResponse } from "./kyc/amldetails";
2
3
  import { authbridgeRequest, authbridgeResponse } from "./kyc/authbridgepancomprehend";
3
4
  import { faceMatchRequest, faceMatchResponse } from "./kyc/facematch";
4
5
  import { fetchAadhaarByPanRequest, fetchAadhaarByPanResponse } from "./kyc/fetchaadhaarbypan";
@@ -82,6 +83,15 @@ export declare const kycService: {
82
83
  readonly responseSerialize: (value: authbridgeResponse) => Buffer;
83
84
  readonly responseDeserialize: (value: Buffer) => authbridgeResponse;
84
85
  };
86
+ readonly fetchAmlDetails: {
87
+ readonly path: "/service.kyc/fetchAmlDetails";
88
+ readonly requestStream: false;
89
+ readonly responseStream: false;
90
+ readonly requestSerialize: (value: amlDetailsRequest) => Buffer;
91
+ readonly requestDeserialize: (value: Buffer) => amlDetailsRequest;
92
+ readonly responseSerialize: (value: amlDetailsResponse) => Buffer;
93
+ readonly responseDeserialize: (value: Buffer) => amlDetailsResponse;
94
+ };
85
95
  };
86
96
  export interface kycServer extends UntypedServiceImplementation {
87
97
  fetchUanList: handleUnaryCall<fetchUanListRequest, fetchUanListResponse>;
@@ -92,6 +102,7 @@ export interface kycServer extends UntypedServiceImplementation {
92
102
  getSelfieRedirectionUrl: handleUnaryCall<GetSelfieRedirectionUrlRequest, GetSelfieRedirectionUrlResponse>;
93
103
  fetchAadhaarByPan: handleUnaryCall<fetchAadhaarByPanRequest, fetchAadhaarByPanResponse>;
94
104
  authBridgePanComprehand: handleUnaryCall<authbridgeRequest, authbridgeResponse>;
105
+ fetchAmlDetails: handleUnaryCall<amlDetailsRequest, amlDetailsResponse>;
95
106
  }
96
107
  export interface kycClient extends Client {
97
108
  fetchUanList(request: fetchUanListRequest, callback: (error: ServiceError | null, response: fetchUanListResponse) => void): ClientUnaryCall;
@@ -118,6 +129,9 @@ export interface kycClient extends Client {
118
129
  authBridgePanComprehand(request: authbridgeRequest, callback: (error: ServiceError | null, response: authbridgeResponse) => void): ClientUnaryCall;
119
130
  authBridgePanComprehand(request: authbridgeRequest, metadata: Metadata, callback: (error: ServiceError | null, response: authbridgeResponse) => void): ClientUnaryCall;
120
131
  authBridgePanComprehand(request: authbridgeRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: authbridgeResponse) => void): ClientUnaryCall;
132
+ fetchAmlDetails(request: amlDetailsRequest, callback: (error: ServiceError | null, response: amlDetailsResponse) => void): ClientUnaryCall;
133
+ fetchAmlDetails(request: amlDetailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: amlDetailsResponse) => void): ClientUnaryCall;
134
+ fetchAmlDetails(request: amlDetailsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: amlDetailsResponse) => void): ClientUnaryCall;
121
135
  }
122
136
  export declare const kycClient: {
123
137
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): kycClient;
package/ts/kyc.js CHANGED
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.kycClient = exports.kycService = exports.protobufPackage = void 0;
9
9
  /* eslint-disable */
10
10
  const grpc_js_1 = require("@grpc/grpc-js");
11
+ const amldetails_1 = require("./kyc/amldetails");
11
12
  const authbridgepancomprehend_1 = require("./kyc/authbridgepancomprehend");
12
13
  const facematch_1 = require("./kyc/facematch");
13
14
  const fetchaadhaarbypan_1 = require("./kyc/fetchaadhaarbypan");
@@ -90,5 +91,14 @@ exports.kycService = {
90
91
  responseSerialize: (value) => Buffer.from(authbridgepancomprehend_1.authbridgeResponse.encode(value).finish()),
91
92
  responseDeserialize: (value) => authbridgepancomprehend_1.authbridgeResponse.decode(value),
92
93
  },
94
+ fetchAmlDetails: {
95
+ path: "/service.kyc/fetchAmlDetails",
96
+ requestStream: false,
97
+ responseStream: false,
98
+ requestSerialize: (value) => Buffer.from(amldetails_1.amlDetailsRequest.encode(value).finish()),
99
+ requestDeserialize: (value) => amldetails_1.amlDetailsRequest.decode(value),
100
+ responseSerialize: (value) => Buffer.from(amldetails_1.amlDetailsResponse.encode(value).finish()),
101
+ responseDeserialize: (value) => amldetails_1.amlDetailsResponse.decode(value),
102
+ },
93
103
  };
94
104
  exports.kycClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.kycService, "service.kyc");
@@ -40,6 +40,7 @@ export interface Offer {
40
40
  stats?: Stats | undefined;
41
41
  validity?: string | undefined;
42
42
  sub_title?: string | undefined;
43
+ offer_code?: string | undefined;
43
44
  }
44
45
  export interface Rule {
45
46
  data: RulesData[];
@@ -202,6 +202,7 @@ function createBaseOffer() {
202
202
  stats: undefined,
203
203
  validity: undefined,
204
204
  sub_title: undefined,
205
+ offer_code: undefined,
205
206
  };
206
207
  }
207
208
  exports.Offer = {
@@ -293,6 +294,9 @@ exports.Offer = {
293
294
  if (message.sub_title !== undefined) {
294
295
  writer.uint32(234).string(message.sub_title);
295
296
  }
297
+ if (message.offer_code !== undefined) {
298
+ writer.uint32(242).string(message.offer_code);
299
+ }
296
300
  return writer;
297
301
  },
298
302
  decode(input, length) {
@@ -476,6 +480,12 @@ exports.Offer = {
476
480
  }
477
481
  message.sub_title = reader.string();
478
482
  continue;
483
+ case 30:
484
+ if (tag !== 242) {
485
+ break;
486
+ }
487
+ message.offer_code = reader.string();
488
+ continue;
479
489
  }
480
490
  if ((tag & 7) === 4 || tag === 0) {
481
491
  break;
@@ -515,6 +525,7 @@ exports.Offer = {
515
525
  stats: isSet(object.stats) ? exports.Stats.fromJSON(object.stats) : undefined,
516
526
  validity: isSet(object.validity) ? globalThis.String(object.validity) : undefined,
517
527
  sub_title: isSet(object.sub_title) ? globalThis.String(object.sub_title) : undefined,
528
+ offer_code: isSet(object.offer_code) ? globalThis.String(object.offer_code) : undefined,
518
529
  };
519
530
  },
520
531
  toJSON(message) {
@@ -606,6 +617,9 @@ exports.Offer = {
606
617
  if (message.sub_title !== undefined) {
607
618
  obj.sub_title = message.sub_title;
608
619
  }
620
+ if (message.offer_code !== undefined) {
621
+ obj.offer_code = message.offer_code;
622
+ }
609
623
  return obj;
610
624
  },
611
625
  create(base) {
@@ -644,6 +658,7 @@ exports.Offer = {
644
658
  message.stats = (object.stats !== undefined && object.stats !== null) ? exports.Stats.fromPartial(object.stats) : undefined;
645
659
  message.validity = object.validity ?? undefined;
646
660
  message.sub_title = object.sub_title ?? undefined;
661
+ message.offer_code = object.offer_code ?? undefined;
647
662
  return message;
648
663
  },
649
664
  };