@stashfin/grpc 1.2.11 → 1.2.12
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
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.getbankaccountdetails";
|
|
3
|
+
export interface getBankAccountDetailsRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface getBankAccountDetailsResponse {
|
|
6
|
+
account_number: string;
|
|
7
|
+
bank_name: string;
|
|
8
|
+
ifsc_code: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const getBankAccountDetailsRequest: {
|
|
11
|
+
encode(_: getBankAccountDetailsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
12
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getBankAccountDetailsRequest;
|
|
13
|
+
fromJSON(_: any): getBankAccountDetailsRequest;
|
|
14
|
+
toJSON(_: getBankAccountDetailsRequest): unknown;
|
|
15
|
+
create<I extends Exact<DeepPartial<getBankAccountDetailsRequest>, I>>(base?: I): getBankAccountDetailsRequest;
|
|
16
|
+
fromPartial<I extends Exact<DeepPartial<getBankAccountDetailsRequest>, I>>(_: I): getBankAccountDetailsRequest;
|
|
17
|
+
};
|
|
18
|
+
export declare const getBankAccountDetailsResponse: {
|
|
19
|
+
encode(message: getBankAccountDetailsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getBankAccountDetailsResponse;
|
|
21
|
+
fromJSON(object: any): getBankAccountDetailsResponse;
|
|
22
|
+
toJSON(message: getBankAccountDetailsResponse): unknown;
|
|
23
|
+
create<I extends Exact<DeepPartial<getBankAccountDetailsResponse>, I>>(base?: I): getBankAccountDetailsResponse;
|
|
24
|
+
fromPartial<I extends Exact<DeepPartial<getBankAccountDetailsResponse>, I>>(object: I): getBankAccountDetailsResponse;
|
|
25
|
+
};
|
|
26
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
27
|
+
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 {} ? {
|
|
28
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
29
|
+
} : Partial<T>;
|
|
30
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
31
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
32
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
33
|
+
} & {
|
|
34
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
35
|
+
};
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,134 @@
|
|
|
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 v3.20.3
|
|
6
|
+
// source: customers/getbankaccountdetails.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.getBankAccountDetailsResponse = exports.getBankAccountDetailsRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.getbankaccountdetails";
|
|
15
|
+
function createBasegetBankAccountDetailsRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.getBankAccountDetailsRequest = {
|
|
19
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
return writer;
|
|
21
|
+
},
|
|
22
|
+
decode(input, length) {
|
|
23
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
24
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
+
const message = createBasegetBankAccountDetailsRequest();
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
const tag = reader.uint32();
|
|
28
|
+
switch (tag >>> 3) {
|
|
29
|
+
}
|
|
30
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
reader.skipType(tag & 7);
|
|
34
|
+
}
|
|
35
|
+
return message;
|
|
36
|
+
},
|
|
37
|
+
fromJSON(_) {
|
|
38
|
+
return {};
|
|
39
|
+
},
|
|
40
|
+
toJSON(_) {
|
|
41
|
+
const obj = {};
|
|
42
|
+
return obj;
|
|
43
|
+
},
|
|
44
|
+
create(base) {
|
|
45
|
+
return exports.getBankAccountDetailsRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasegetBankAccountDetailsRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasegetBankAccountDetailsResponse() {
|
|
53
|
+
return { account_number: "", bank_name: "", ifsc_code: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.getBankAccountDetailsResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.account_number !== "") {
|
|
58
|
+
writer.uint32(10).string(message.account_number);
|
|
59
|
+
}
|
|
60
|
+
if (message.bank_name !== "") {
|
|
61
|
+
writer.uint32(18).string(message.bank_name);
|
|
62
|
+
}
|
|
63
|
+
if (message.ifsc_code !== "") {
|
|
64
|
+
writer.uint32(26).string(message.ifsc_code);
|
|
65
|
+
}
|
|
66
|
+
return writer;
|
|
67
|
+
},
|
|
68
|
+
decode(input, length) {
|
|
69
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
70
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
71
|
+
const message = createBasegetBankAccountDetailsResponse();
|
|
72
|
+
while (reader.pos < end) {
|
|
73
|
+
const tag = reader.uint32();
|
|
74
|
+
switch (tag >>> 3) {
|
|
75
|
+
case 1:
|
|
76
|
+
if (tag !== 10) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
message.account_number = reader.string();
|
|
80
|
+
continue;
|
|
81
|
+
case 2:
|
|
82
|
+
if (tag !== 18) {
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
message.bank_name = reader.string();
|
|
86
|
+
continue;
|
|
87
|
+
case 3:
|
|
88
|
+
if (tag !== 26) {
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
message.ifsc_code = reader.string();
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
reader.skipType(tag & 7);
|
|
98
|
+
}
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
fromJSON(object) {
|
|
102
|
+
return {
|
|
103
|
+
account_number: isSet(object.account_number) ? globalThis.String(object.account_number) : "",
|
|
104
|
+
bank_name: isSet(object.bank_name) ? globalThis.String(object.bank_name) : "",
|
|
105
|
+
ifsc_code: isSet(object.ifsc_code) ? globalThis.String(object.ifsc_code) : "",
|
|
106
|
+
};
|
|
107
|
+
},
|
|
108
|
+
toJSON(message) {
|
|
109
|
+
const obj = {};
|
|
110
|
+
if (message.account_number !== "") {
|
|
111
|
+
obj.account_number = message.account_number;
|
|
112
|
+
}
|
|
113
|
+
if (message.bank_name !== "") {
|
|
114
|
+
obj.bank_name = message.bank_name;
|
|
115
|
+
}
|
|
116
|
+
if (message.ifsc_code !== "") {
|
|
117
|
+
obj.ifsc_code = message.ifsc_code;
|
|
118
|
+
}
|
|
119
|
+
return obj;
|
|
120
|
+
},
|
|
121
|
+
create(base) {
|
|
122
|
+
return exports.getBankAccountDetailsResponse.fromPartial(base ?? {});
|
|
123
|
+
},
|
|
124
|
+
fromPartial(object) {
|
|
125
|
+
const message = createBasegetBankAccountDetailsResponse();
|
|
126
|
+
message.account_number = object.account_number ?? "";
|
|
127
|
+
message.bank_name = object.bank_name ?? "";
|
|
128
|
+
message.ifsc_code = object.ifsc_code ?? "";
|
|
129
|
+
return message;
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
function isSet(value) {
|
|
133
|
+
return value !== null && value !== undefined;
|
|
134
|
+
}
|
package/ts/customers.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 { getBankAccountDetailsRequest, getBankAccountDetailsResponse } from "./customers/getbankaccountdetails";
|
|
2
3
|
import { getCustomerByIdRequest, getCustomerByIdResponse } from "./customers/getcustomerbyid";
|
|
3
4
|
import { getDashboardRequest, getDashboardResponse } from "./customers/getdashboard";
|
|
4
5
|
import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./customers/getdashboardmaincard";
|
|
@@ -238,6 +239,15 @@ export declare const customersService: {
|
|
|
238
239
|
readonly responseSerialize: (value: getDashboardMainCardResponse) => Buffer;
|
|
239
240
|
readonly responseDeserialize: (value: Buffer) => getDashboardMainCardResponse;
|
|
240
241
|
};
|
|
242
|
+
readonly getBankAccountDetails: {
|
|
243
|
+
readonly path: "/service.customers/getBankAccountDetails";
|
|
244
|
+
readonly requestStream: false;
|
|
245
|
+
readonly responseStream: false;
|
|
246
|
+
readonly requestSerialize: (value: getBankAccountDetailsRequest) => Buffer;
|
|
247
|
+
readonly requestDeserialize: (value: Buffer) => getBankAccountDetailsRequest;
|
|
248
|
+
readonly responseSerialize: (value: getBankAccountDetailsResponse) => Buffer;
|
|
249
|
+
readonly responseDeserialize: (value: Buffer) => getBankAccountDetailsResponse;
|
|
250
|
+
};
|
|
241
251
|
};
|
|
242
252
|
export interface customersServer extends UntypedServiceImplementation {
|
|
243
253
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -264,6 +274,7 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
264
274
|
getCustomerById: handleUnaryCall<getCustomerByIdRequest, getCustomerByIdResponse>;
|
|
265
275
|
getDashboard: handleUnaryCall<getDashboardRequest, getDashboardResponse>;
|
|
266
276
|
getDashboardMainCard: handleUnaryCall<getDashboardMainCardRequest, getDashboardMainCardResponse>;
|
|
277
|
+
getBankAccountDetails: handleUnaryCall<getBankAccountDetailsRequest, getBankAccountDetailsResponse>;
|
|
267
278
|
}
|
|
268
279
|
export interface customersClient extends Client {
|
|
269
280
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -338,6 +349,9 @@ export interface customersClient extends Client {
|
|
|
338
349
|
getDashboardMainCard(request: getDashboardMainCardRequest, callback: (error: ServiceError | null, response: getDashboardMainCardResponse) => void): ClientUnaryCall;
|
|
339
350
|
getDashboardMainCard(request: getDashboardMainCardRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getDashboardMainCardResponse) => void): ClientUnaryCall;
|
|
340
351
|
getDashboardMainCard(request: getDashboardMainCardRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getDashboardMainCardResponse) => void): ClientUnaryCall;
|
|
352
|
+
getBankAccountDetails(request: getBankAccountDetailsRequest, callback: (error: ServiceError | null, response: getBankAccountDetailsResponse) => void): ClientUnaryCall;
|
|
353
|
+
getBankAccountDetails(request: getBankAccountDetailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getBankAccountDetailsResponse) => void): ClientUnaryCall;
|
|
354
|
+
getBankAccountDetails(request: getBankAccountDetailsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getBankAccountDetailsResponse) => void): ClientUnaryCall;
|
|
341
355
|
}
|
|
342
356
|
export declare const customersClient: {
|
|
343
357
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.customersClient = exports.customersService = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
|
+
const getbankaccountdetails_1 = require("./customers/getbankaccountdetails");
|
|
11
12
|
const getcustomerbyid_1 = require("./customers/getcustomerbyid");
|
|
12
13
|
const getdashboard_1 = require("./customers/getdashboard");
|
|
13
14
|
const getdashboardmaincard_1 = require("./customers/getdashboardmaincard");
|
|
@@ -246,5 +247,14 @@ exports.customersService = {
|
|
|
246
247
|
responseSerialize: (value) => Buffer.from(getdashboardmaincard_1.getDashboardMainCardResponse.encode(value).finish()),
|
|
247
248
|
responseDeserialize: (value) => getdashboardmaincard_1.getDashboardMainCardResponse.decode(value),
|
|
248
249
|
},
|
|
250
|
+
getBankAccountDetails: {
|
|
251
|
+
path: "/service.customers/getBankAccountDetails",
|
|
252
|
+
requestStream: false,
|
|
253
|
+
responseStream: false,
|
|
254
|
+
requestSerialize: (value) => Buffer.from(getbankaccountdetails_1.getBankAccountDetailsRequest.encode(value).finish()),
|
|
255
|
+
requestDeserialize: (value) => getbankaccountdetails_1.getBankAccountDetailsRequest.decode(value),
|
|
256
|
+
responseSerialize: (value) => Buffer.from(getbankaccountdetails_1.getBankAccountDetailsResponse.encode(value).finish()),
|
|
257
|
+
responseDeserialize: (value) => getbankaccountdetails_1.getBankAccountDetailsResponse.decode(value),
|
|
258
|
+
},
|
|
249
259
|
};
|
|
250
260
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|