@stashfin/grpc 1.2.52 → 1.2.54
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/README.md +74 -0
- package/package.json +3 -2
- package/src/proto/customers/addaddress.proto +25 -0
- package/src/proto/customers/addbankaccountdetails.proto +13 -0
- package/src/proto/customers/createcustomerreference.proto +21 -0
- package/src/proto/customers/forgotmpin.proto +12 -0
- package/src/proto/customers/forgotmpinotp.proto +10 -0
- package/src/proto/customers/getbankaccountdetails.proto +11 -0
- package/src/proto/customers/getbasicinfo.proto +24 -0
- package/src/proto/customers/getcities.proto +16 -0
- package/src/proto/customers/getcustomerbyid.proto +31 -0
- package/src/proto/customers/getdashboard.proto +47 -0
- package/src/proto/customers/getdashboardmaincard.proto +37 -0
- package/src/proto/customers/getkycweburl.proto +10 -0
- package/src/proto/customers/getprofessionalinfo.proto +22 -0
- package/src/proto/customers/getprofile.proto +22 -0
- package/src/proto/customers/getstates.proto +15 -0
- package/src/proto/customers/getstep.proto +30 -0
- package/src/proto/customers/profilebasic.proto +14 -0
- package/src/proto/customers/profileupdatetnc.proto +11 -0
- package/src/proto/customers/resetmpin.proto +13 -0
- package/src/proto/customers/savebasicdetails.proto +16 -0
- package/src/proto/customers/saveunlocklimit.proto +10 -0
- package/src/proto/customers/sendemailtoken.proto +11 -0
- package/src/proto/customers/sendotp.proto +14 -0
- package/src/proto/customers/setmpin.proto +12 -0
- package/src/proto/customers/step10.proto +34 -0
- package/src/proto/customers/step7.proto +29 -0
- package/src/proto/customers/step8.proto +30 -0
- package/src/proto/customers/step9.proto +36 -0
- package/src/proto/customers/stepstatic.proto +27 -0
- package/src/proto/customers/updatedigilockertxn.proto +13 -0
- package/src/proto/customers/updatedob.proto +13 -0
- package/src/proto/customers/updatehypervergetxn.proto +12 -0
- package/src/proto/customers/verifyemail.proto +11 -0
- package/src/proto/customers/verifympin.proto +13 -0
- package/src/proto/customers/verifyotp.proto +17 -0
- package/src/proto/customers.proto +83 -0
- package/src/proto/example.proto +20 -0
- package/src/proto/loans/approveloan.proto +15 -0
- package/src/proto/loans/banklist.proto +12 -0
- package/src/proto/loans/calculateemi.proto +20 -0
- package/src/proto/loans/creditlimit.proto +18 -0
- package/src/proto/loans/restructureloan.proto +12 -0
- package/src/proto/loans/transactionlist.proto +18 -0
- package/src/proto/loans/updateinstallments.proto +19 -0
- package/src/proto/loans/updateloan.proto +15 -0
- package/src/proto/loans.proto +23 -0
- package/src/proto/stashcash/creditsc.proto +22 -0
- package/src/proto/stashcash/debitsc.proto +27 -0
- package/src/proto/stashcash/getscbalance.proto +21 -0
- package/src/proto/stashcash/getschistory.proto +35 -0
- package/src/proto/stashcash/reversesc.proto +20 -0
- package/src/proto/stashcash.proto +17 -0
- package/src/ts/customers/addaddress.ts +310 -0
- package/src/ts/customers/addbankaccountdetails.ts +184 -0
- package/src/ts/customers/createcustomerreference.ts +276 -0
- package/src/ts/customers/getbankaccountdetails.ts +169 -0
- package/src/ts/customers/getbasicinfo.ts +385 -0
- package/src/ts/customers/getcities.ts +227 -0
- package/src/ts/customers/getcustomerbyid.ts +492 -0
- package/src/ts/customers/getdashboard.ts +728 -0
- package/src/ts/customers/getdashboardmaincard.ts +608 -0
- package/src/ts/customers/getkycweburl.ts +133 -0
- package/src/ts/customers/getprofessionalinfo.ts +344 -0
- package/src/ts/customers/getprofile.ts +338 -0
- package/src/ts/customers/getstates.ts +212 -0
- package/src/ts/customers/getstep.ts +483 -0
- package/src/ts/customers/profilebasic.ts +198 -0
- package/src/ts/customers/profileupdatetnc.ts +148 -0
- package/src/ts/customers/resetmpin.ts +166 -0
- package/src/ts/customers/savebasicdetails.ts +229 -0
- package/src/ts/customers/saveunlocklimit.ts +133 -0
- package/src/ts/customers/sendemailtoken.ts +148 -0
- package/src/ts/customers/sendotp.ts +202 -0
- package/src/ts/customers/setmpin.ts +166 -0
- package/src/ts/customers/step10.ts +544 -0
- package/src/ts/customers/step7.ts +456 -0
- package/src/ts/customers/step8.ts +472 -0
- package/src/ts/customers/step9.ts +578 -0
- package/src/ts/customers/stepstatic.ts +425 -0
- package/src/ts/customers/updatedigilockertxn.ts +182 -0
- package/src/ts/customers/updatehypervergetxn.ts +166 -0
- package/src/ts/customers/verifyemail.ts +148 -0
- package/src/ts/customers/verifympin.ts +184 -0
- package/src/ts/customers/verifyotp.ts +232 -0
- package/src/ts/customers.ts +1038 -0
- package/src/ts/example.ts +294 -0
- package/{ts/google/protobuf/timestamp.d.ts → src/ts/google/protobuf/timestamp.ts} +126 -30
- package/src/ts/loans/approveloan.ts +214 -0
- package/src/ts/loans/banklist.ts +183 -0
- package/src/ts/loans/calculateemi.ts +295 -0
- package/src/ts/loans/creditlimit.ts +294 -0
- package/src/ts/loans/restructureloan.ts +166 -0
- package/src/ts/loans/transactionlist.ts +281 -0
- package/src/ts/loans/updateinstallments.ts +271 -0
- package/src/ts/loans/updateloan.ts +214 -0
- package/src/ts/loans.ts +221 -0
- package/src/ts/stashcash/creditsc.ts +361 -0
- package/src/ts/stashcash/debitsc.ts +450 -0
- package/src/ts/stashcash/getscbalance.ts +351 -0
- package/src/ts/stashcash/getschistory.ts +566 -0
- package/src/ts/stashcash/reversesc.ts +329 -0
- package/src/ts/stashcash.ts +152 -0
- package/tsconfig.json +18 -0
- package/ts/customer/getprofile.d.ts +0 -38
- package/ts/customer/getprofile.js +0 -162
- package/ts/customer/getstep.d.ts +0 -78
- package/ts/customer/getstep.js +0 -420
- package/ts/customer/profileupdatetnc.d.ts +0 -35
- package/ts/customer/profileupdatetnc.js +0 -117
- package/ts/customer/sendotp.d.ts +0 -36
- package/ts/customer/sendotp.js +0 -133
- package/ts/customer/setmpin.d.ts +0 -36
- package/ts/customer/setmpin.js +0 -133
- package/ts/customer/step1.d.ts +0 -69
- package/ts/customer/step1.js +0 -395
- package/ts/customer/step10.d.ts +0 -73
- package/ts/customer/step10.js +0 -459
- package/ts/customer/step2.d.ts +0 -68
- package/ts/customer/step2.js +0 -381
- package/ts/customer/step7.d.ts +0 -68
- package/ts/customer/step7.js +0 -381
- package/ts/customer/step8.d.ts +0 -69
- package/ts/customer/step8.js +0 -395
- package/ts/customer/step9.d.ts +0 -75
- package/ts/customer/step9.js +0 -489
- package/ts/customer/stepstatic.d.ts +0 -66
- package/ts/customer/stepstatic.js +0 -352
- package/ts/customer/verifympin.d.ts +0 -37
- package/ts/customer/verifympin.js +0 -149
- package/ts/customer/verifyotp.d.ts +0 -39
- package/ts/customer/verifyotp.js +0 -177
- package/ts/customer.d.ts +0 -262
- package/ts/customer.js +0 -190
- package/ts/customers/getbankaccountdetails.d.ts +0 -36
- package/ts/customers/getbankaccountdetails.js +0 -134
- package/ts/customers/getbasicinfo.d.ts +0 -39
- package/ts/customers/getbasicinfo.js +0 -176
- package/ts/customers/getcustomerbyid.d.ts +0 -50
- package/ts/customers/getcustomerbyid.js +0 -346
- package/ts/customers/getdashboard.d.ts +0 -90
- package/ts/customers/getdashboard.js +0 -603
- package/ts/customers/getdashboardmaincard.d.ts +0 -69
- package/ts/customers/getdashboardmaincard.js +0 -520
- package/ts/customers/getprofessionalinfo.d.ts +0 -37
- package/ts/customers/getprofessionalinfo.js +0 -148
- package/ts/customers/getprofile.d.ts +0 -38
- package/ts/customers/getprofile.js +0 -162
- package/ts/customers/getstep.d.ts +0 -78
- package/ts/customers/getstep.js +0 -420
- package/ts/customers/profilebasic.d.ts +0 -38
- package/ts/customers/profilebasic.js +0 -161
- package/ts/customers/profileupdatetnc.d.ts +0 -35
- package/ts/customers/profileupdatetnc.js +0 -117
- package/ts/customers/sendemailtoken.d.ts +0 -35
- package/ts/customers/sendemailtoken.js +0 -117
- package/ts/customers/sendotp.d.ts +0 -38
- package/ts/customers/sendotp.js +0 -165
- package/ts/customers/setmpin.d.ts +0 -36
- package/ts/customers/setmpin.js +0 -133
- package/ts/customers/step1.d.ts +0 -69
- package/ts/customers/step1.js +0 -395
- package/ts/customers/step10.d.ts +0 -73
- package/ts/customers/step10.js +0 -459
- package/ts/customers/step2.d.ts +0 -68
- package/ts/customers/step2.js +0 -381
- package/ts/customers/step7.d.ts +0 -68
- package/ts/customers/step7.js +0 -381
- package/ts/customers/step8.d.ts +0 -69
- package/ts/customers/step8.js +0 -395
- package/ts/customers/step9.d.ts +0 -75
- package/ts/customers/step9.js +0 -489
- package/ts/customers/stepstatic.d.ts +0 -66
- package/ts/customers/stepstatic.js +0 -354
- package/ts/customers/verifyemail.d.ts +0 -35
- package/ts/customers/verifyemail.js +0 -117
- package/ts/customers/verifympin.d.ts +0 -37
- package/ts/customers/verifympin.js +0 -149
- package/ts/customers/verifyotp.d.ts +0 -40
- package/ts/customers/verifyotp.js +0 -191
- package/ts/customers.d.ts +0 -388
- package/ts/customers.js +0 -280
- package/ts/example.d.ts +0 -78
- package/ts/example.js +0 -199
- package/ts/google/protobuf/any.d.ts +0 -138
- package/ts/google/protobuf/any.js +0 -108
- package/ts/google/protobuf/timestamp.js +0 -97
- package/ts/loans/approveloan.d.ts +0 -39
- package/ts/loans/approveloan.js +0 -175
- package/ts/loans/banklist.d.ts +0 -48
- package/ts/loans/banklist.js +0 -202
- package/ts/loans/calculateemi.d.ts +0 -37
- package/ts/loans/calculateemi.js +0 -147
- package/ts/loans/creditlimit.d.ts +0 -35
- package/ts/loans/creditlimit.js +0 -120
- package/ts/loans/updateinstallments.d.ts +0 -42
- package/ts/loans/updateinstallments.js +0 -226
- package/ts/loans/updateloan.d.ts +0 -39
- package/ts/loans/updateloan.js +0 -175
- package/ts/loans.d.ts +0 -98
- package/ts/loans.js +0 -74
- package/ts/payments/checkpaymentstatus.d.ts +0 -51
- package/ts/payments/checkpaymentstatus.js +0 -259
- package/ts/payments/createorder.d.ts +0 -39
- package/ts/payments/createorder.js +0 -191
- package/ts/payments/getpaymentdetails.d.ts +0 -58
- package/ts/payments/getpaymentdetails.js +0 -367
- package/ts/payments/getpaymentoptions.d.ts +0 -50
- package/ts/payments/getpaymentoptions.js +0 -231
- package/ts/payments/initiatepayment.d.ts +0 -54
- package/ts/payments/initiatepayment.js +0 -299
- package/ts/payments.d.ts +0 -70
- package/ts/payments.js +0 -54
- package/ts/stashcash/creditsc.d.ts +0 -54
- package/ts/stashcash/creditsc.js +0 -301
- package/ts/stashcash/debitsc.d.ts +0 -59
- package/ts/stashcash/debitsc.js +0 -380
- package/ts/stashcash/getscbalance.d.ts +0 -53
- package/ts/stashcash/getscbalance.js +0 -293
- package/ts/stashcash/getschistory.d.ts +0 -73
- package/ts/stashcash/getschistory.js +0 -479
- package/ts/stashcash/reversesc.d.ts +0 -52
- package/ts/stashcash/reversesc.js +0 -273
- package/ts/stashcash.d.ts +0 -84
- package/ts/stashcash.js +0 -64
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v1.181.0
|
|
4
|
+
// protoc v3.20.3
|
|
5
|
+
// source: example.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import {
|
|
9
|
+
type CallOptions,
|
|
10
|
+
ChannelCredentials,
|
|
11
|
+
Client,
|
|
12
|
+
type ClientOptions,
|
|
13
|
+
type ClientUnaryCall,
|
|
14
|
+
type handleUnaryCall,
|
|
15
|
+
makeGenericClientConstructor,
|
|
16
|
+
Metadata,
|
|
17
|
+
type ServiceError,
|
|
18
|
+
type UntypedServiceImplementation,
|
|
19
|
+
} from "@grpc/grpc-js";
|
|
20
|
+
import _m0 from "protobufjs/minimal";
|
|
21
|
+
|
|
22
|
+
export const protobufPackage = "service";
|
|
23
|
+
|
|
24
|
+
export interface ExampleRequest {
|
|
25
|
+
name: string;
|
|
26
|
+
id: number;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface ExampleResponse {
|
|
30
|
+
message: string;
|
|
31
|
+
id: number;
|
|
32
|
+
name: string;
|
|
33
|
+
status: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function createBaseExampleRequest(): ExampleRequest {
|
|
37
|
+
return { name: "", id: 0 };
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const ExampleRequest = {
|
|
41
|
+
encode(message: ExampleRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
42
|
+
if (message.name !== "") {
|
|
43
|
+
writer.uint32(10).string(message.name);
|
|
44
|
+
}
|
|
45
|
+
if (message.id !== 0) {
|
|
46
|
+
writer.uint32(16).int32(message.id);
|
|
47
|
+
}
|
|
48
|
+
return writer;
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ExampleRequest {
|
|
52
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
53
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
54
|
+
const message = createBaseExampleRequest();
|
|
55
|
+
while (reader.pos < end) {
|
|
56
|
+
const tag = reader.uint32();
|
|
57
|
+
switch (tag >>> 3) {
|
|
58
|
+
case 1:
|
|
59
|
+
if (tag !== 10) {
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
message.name = reader.string();
|
|
64
|
+
continue;
|
|
65
|
+
case 2:
|
|
66
|
+
if (tag !== 16) {
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
message.id = reader.int32();
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
reader.skipType(tag & 7);
|
|
77
|
+
}
|
|
78
|
+
return message;
|
|
79
|
+
},
|
|
80
|
+
|
|
81
|
+
fromJSON(object: any): ExampleRequest {
|
|
82
|
+
return {
|
|
83
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
84
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
85
|
+
};
|
|
86
|
+
},
|
|
87
|
+
|
|
88
|
+
toJSON(message: ExampleRequest): unknown {
|
|
89
|
+
const obj: any = {};
|
|
90
|
+
if (message.name !== "") {
|
|
91
|
+
obj.name = message.name;
|
|
92
|
+
}
|
|
93
|
+
if (message.id !== 0) {
|
|
94
|
+
obj.id = Math.round(message.id);
|
|
95
|
+
}
|
|
96
|
+
return obj;
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
create<I extends Exact<DeepPartial<ExampleRequest>, I>>(base?: I): ExampleRequest {
|
|
100
|
+
return ExampleRequest.fromPartial(base ?? ({} as any));
|
|
101
|
+
},
|
|
102
|
+
fromPartial<I extends Exact<DeepPartial<ExampleRequest>, I>>(object: I): ExampleRequest {
|
|
103
|
+
const message = createBaseExampleRequest();
|
|
104
|
+
message.name = object.name ?? "";
|
|
105
|
+
message.id = object.id ?? 0;
|
|
106
|
+
return message;
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
function createBaseExampleResponse(): ExampleResponse {
|
|
111
|
+
return { message: "", id: 0, name: "", status: "" };
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export const ExampleResponse = {
|
|
115
|
+
encode(message: ExampleResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
116
|
+
if (message.message !== "") {
|
|
117
|
+
writer.uint32(10).string(message.message);
|
|
118
|
+
}
|
|
119
|
+
if (message.id !== 0) {
|
|
120
|
+
writer.uint32(16).int32(message.id);
|
|
121
|
+
}
|
|
122
|
+
if (message.name !== "") {
|
|
123
|
+
writer.uint32(26).string(message.name);
|
|
124
|
+
}
|
|
125
|
+
if (message.status !== "") {
|
|
126
|
+
writer.uint32(34).string(message.status);
|
|
127
|
+
}
|
|
128
|
+
return writer;
|
|
129
|
+
},
|
|
130
|
+
|
|
131
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ExampleResponse {
|
|
132
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
133
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
134
|
+
const message = createBaseExampleResponse();
|
|
135
|
+
while (reader.pos < end) {
|
|
136
|
+
const tag = reader.uint32();
|
|
137
|
+
switch (tag >>> 3) {
|
|
138
|
+
case 1:
|
|
139
|
+
if (tag !== 10) {
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
message.message = reader.string();
|
|
144
|
+
continue;
|
|
145
|
+
case 2:
|
|
146
|
+
if (tag !== 16) {
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
message.id = reader.int32();
|
|
151
|
+
continue;
|
|
152
|
+
case 3:
|
|
153
|
+
if (tag !== 26) {
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
message.name = reader.string();
|
|
158
|
+
continue;
|
|
159
|
+
case 4:
|
|
160
|
+
if (tag !== 34) {
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
message.status = reader.string();
|
|
165
|
+
continue;
|
|
166
|
+
}
|
|
167
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
reader.skipType(tag & 7);
|
|
171
|
+
}
|
|
172
|
+
return message;
|
|
173
|
+
},
|
|
174
|
+
|
|
175
|
+
fromJSON(object: any): ExampleResponse {
|
|
176
|
+
return {
|
|
177
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
178
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
179
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
180
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
181
|
+
};
|
|
182
|
+
},
|
|
183
|
+
|
|
184
|
+
toJSON(message: ExampleResponse): unknown {
|
|
185
|
+
const obj: any = {};
|
|
186
|
+
if (message.message !== "") {
|
|
187
|
+
obj.message = message.message;
|
|
188
|
+
}
|
|
189
|
+
if (message.id !== 0) {
|
|
190
|
+
obj.id = Math.round(message.id);
|
|
191
|
+
}
|
|
192
|
+
if (message.name !== "") {
|
|
193
|
+
obj.name = message.name;
|
|
194
|
+
}
|
|
195
|
+
if (message.status !== "") {
|
|
196
|
+
obj.status = message.status;
|
|
197
|
+
}
|
|
198
|
+
return obj;
|
|
199
|
+
},
|
|
200
|
+
|
|
201
|
+
create<I extends Exact<DeepPartial<ExampleResponse>, I>>(base?: I): ExampleResponse {
|
|
202
|
+
return ExampleResponse.fromPartial(base ?? ({} as any));
|
|
203
|
+
},
|
|
204
|
+
fromPartial<I extends Exact<DeepPartial<ExampleResponse>, I>>(object: I): ExampleResponse {
|
|
205
|
+
const message = createBaseExampleResponse();
|
|
206
|
+
message.message = object.message ?? "";
|
|
207
|
+
message.id = object.id ?? 0;
|
|
208
|
+
message.name = object.name ?? "";
|
|
209
|
+
message.status = object.status ?? "";
|
|
210
|
+
return message;
|
|
211
|
+
},
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
export type ExampleService = typeof ExampleService;
|
|
215
|
+
export const ExampleService = {
|
|
216
|
+
getExample: {
|
|
217
|
+
path: "/service.Example/GetExample",
|
|
218
|
+
requestStream: false,
|
|
219
|
+
responseStream: false,
|
|
220
|
+
requestSerialize: (value: ExampleRequest) => Buffer.from(ExampleRequest.encode(value).finish()),
|
|
221
|
+
requestDeserialize: (value: Buffer) => ExampleRequest.decode(value),
|
|
222
|
+
responseSerialize: (value: ExampleResponse) => Buffer.from(ExampleResponse.encode(value).finish()),
|
|
223
|
+
responseDeserialize: (value: Buffer) => ExampleResponse.decode(value),
|
|
224
|
+
},
|
|
225
|
+
setExample: {
|
|
226
|
+
path: "/service.Example/SetExample",
|
|
227
|
+
requestStream: false,
|
|
228
|
+
responseStream: false,
|
|
229
|
+
requestSerialize: (value: ExampleRequest) => Buffer.from(ExampleRequest.encode(value).finish()),
|
|
230
|
+
requestDeserialize: (value: Buffer) => ExampleRequest.decode(value),
|
|
231
|
+
responseSerialize: (value: ExampleResponse) => Buffer.from(ExampleResponse.encode(value).finish()),
|
|
232
|
+
responseDeserialize: (value: Buffer) => ExampleResponse.decode(value),
|
|
233
|
+
},
|
|
234
|
+
} as const;
|
|
235
|
+
|
|
236
|
+
export interface ExampleServer extends UntypedServiceImplementation {
|
|
237
|
+
getExample: handleUnaryCall<ExampleRequest, ExampleResponse>;
|
|
238
|
+
setExample: handleUnaryCall<ExampleRequest, ExampleResponse>;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export interface ExampleClient extends Client {
|
|
242
|
+
getExample(
|
|
243
|
+
request: ExampleRequest,
|
|
244
|
+
callback: (error: ServiceError | null, response: ExampleResponse) => void,
|
|
245
|
+
): ClientUnaryCall;
|
|
246
|
+
getExample(
|
|
247
|
+
request: ExampleRequest,
|
|
248
|
+
metadata: Metadata,
|
|
249
|
+
callback: (error: ServiceError | null, response: ExampleResponse) => void,
|
|
250
|
+
): ClientUnaryCall;
|
|
251
|
+
getExample(
|
|
252
|
+
request: ExampleRequest,
|
|
253
|
+
metadata: Metadata,
|
|
254
|
+
options: Partial<CallOptions>,
|
|
255
|
+
callback: (error: ServiceError | null, response: ExampleResponse) => void,
|
|
256
|
+
): ClientUnaryCall;
|
|
257
|
+
setExample(
|
|
258
|
+
request: ExampleRequest,
|
|
259
|
+
callback: (error: ServiceError | null, response: ExampleResponse) => void,
|
|
260
|
+
): ClientUnaryCall;
|
|
261
|
+
setExample(
|
|
262
|
+
request: ExampleRequest,
|
|
263
|
+
metadata: Metadata,
|
|
264
|
+
callback: (error: ServiceError | null, response: ExampleResponse) => void,
|
|
265
|
+
): ClientUnaryCall;
|
|
266
|
+
setExample(
|
|
267
|
+
request: ExampleRequest,
|
|
268
|
+
metadata: Metadata,
|
|
269
|
+
options: Partial<CallOptions>,
|
|
270
|
+
callback: (error: ServiceError | null, response: ExampleResponse) => void,
|
|
271
|
+
): ClientUnaryCall;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export const ExampleClient = makeGenericClientConstructor(ExampleService, "service.Example") as unknown as {
|
|
275
|
+
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): ExampleClient;
|
|
276
|
+
service: typeof ExampleService;
|
|
277
|
+
serviceName: string;
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
281
|
+
|
|
282
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
283
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
284
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
285
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
286
|
+
: Partial<T>;
|
|
287
|
+
|
|
288
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
289
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
290
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
291
|
+
|
|
292
|
+
function isSet(value: any): boolean {
|
|
293
|
+
return value !== null && value !== undefined;
|
|
294
|
+
}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v1.181.0
|
|
4
|
+
// protoc v3.20.3
|
|
5
|
+
// source: google/protobuf/timestamp.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import Long from "long";
|
|
1
9
|
import _m0 from "protobufjs/minimal";
|
|
2
|
-
|
|
10
|
+
|
|
11
|
+
export const protobufPackage = "google.protobuf";
|
|
12
|
+
|
|
3
13
|
/**
|
|
4
14
|
* A Timestamp represents a point in time independent of any time zone or local
|
|
5
15
|
* calendar, encoded as a count of seconds and fractions of seconds at
|
|
@@ -92,36 +102,122 @@ export declare const protobufPackage = "google.protobuf";
|
|
|
92
102
|
* ) to obtain a formatter capable of generating timestamps in this format.
|
|
93
103
|
*/
|
|
94
104
|
export interface Timestamp {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
/**
|
|
106
|
+
* Represents seconds of UTC time since Unix epoch
|
|
107
|
+
* 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
|
108
|
+
* 9999-12-31T23:59:59Z inclusive.
|
|
109
|
+
*/
|
|
110
|
+
seconds: number;
|
|
111
|
+
/**
|
|
112
|
+
* Non-negative fractions of a second at nanosecond resolution. Negative
|
|
113
|
+
* second values with fractions must still have non-negative nanos values
|
|
114
|
+
* that count forward in time. Must be from 0 to 999,999,999
|
|
115
|
+
* inclusive.
|
|
116
|
+
*/
|
|
117
|
+
nanos: number;
|
|
108
118
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
119
|
+
|
|
120
|
+
function createBaseTimestamp(): Timestamp {
|
|
121
|
+
return { seconds: 0, nanos: 0 };
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export const Timestamp = {
|
|
125
|
+
encode(message: Timestamp, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
126
|
+
if (message.seconds !== 0) {
|
|
127
|
+
writer.uint32(8).int64(message.seconds);
|
|
128
|
+
}
|
|
129
|
+
if (message.nanos !== 0) {
|
|
130
|
+
writer.uint32(16).int32(message.nanos);
|
|
131
|
+
}
|
|
132
|
+
return writer;
|
|
133
|
+
},
|
|
134
|
+
|
|
135
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Timestamp {
|
|
136
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
137
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
138
|
+
const message = createBaseTimestamp();
|
|
139
|
+
while (reader.pos < end) {
|
|
140
|
+
const tag = reader.uint32();
|
|
141
|
+
switch (tag >>> 3) {
|
|
142
|
+
case 1:
|
|
143
|
+
if (tag !== 8) {
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
message.seconds = longToNumber(reader.int64() as Long);
|
|
148
|
+
continue;
|
|
149
|
+
case 2:
|
|
150
|
+
if (tag !== 16) {
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
message.nanos = reader.int32();
|
|
155
|
+
continue;
|
|
156
|
+
}
|
|
157
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
reader.skipType(tag & 7);
|
|
161
|
+
}
|
|
162
|
+
return message;
|
|
163
|
+
},
|
|
164
|
+
|
|
165
|
+
fromJSON(object: any): Timestamp {
|
|
166
|
+
return {
|
|
167
|
+
seconds: isSet(object.seconds) ? globalThis.Number(object.seconds) : 0,
|
|
168
|
+
nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0,
|
|
169
|
+
};
|
|
170
|
+
},
|
|
171
|
+
|
|
172
|
+
toJSON(message: Timestamp): unknown {
|
|
173
|
+
const obj: any = {};
|
|
174
|
+
if (message.seconds !== 0) {
|
|
175
|
+
obj.seconds = Math.round(message.seconds);
|
|
176
|
+
}
|
|
177
|
+
if (message.nanos !== 0) {
|
|
178
|
+
obj.nanos = Math.round(message.nanos);
|
|
179
|
+
}
|
|
180
|
+
return obj;
|
|
181
|
+
},
|
|
182
|
+
|
|
183
|
+
create<I extends Exact<DeepPartial<Timestamp>, I>>(base?: I): Timestamp {
|
|
184
|
+
return Timestamp.fromPartial(base ?? ({} as any));
|
|
185
|
+
},
|
|
186
|
+
fromPartial<I extends Exact<DeepPartial<Timestamp>, I>>(object: I): Timestamp {
|
|
187
|
+
const message = createBaseTimestamp();
|
|
188
|
+
message.seconds = object.seconds ?? 0;
|
|
189
|
+
message.nanos = object.nanos ?? 0;
|
|
190
|
+
return message;
|
|
191
|
+
},
|
|
116
192
|
};
|
|
193
|
+
|
|
117
194
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
195
|
+
|
|
196
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
197
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
198
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
199
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
200
|
+
: Partial<T>;
|
|
201
|
+
|
|
121
202
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
122
|
-
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
203
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
204
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
205
|
+
|
|
206
|
+
function longToNumber(long: Long): number {
|
|
207
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
208
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
209
|
+
}
|
|
210
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
211
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
212
|
+
}
|
|
213
|
+
return long.toNumber();
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
if (_m0.util.Long !== Long) {
|
|
217
|
+
_m0.util.Long = Long as any;
|
|
218
|
+
_m0.configure();
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
function isSet(value: any): boolean {
|
|
222
|
+
return value !== null && value !== undefined;
|
|
223
|
+
}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v1.181.0
|
|
4
|
+
// protoc v3.20.3
|
|
5
|
+
// source: loans/approveloan.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import _m0 from "protobufjs/minimal";
|
|
9
|
+
|
|
10
|
+
export const protobufPackage = "loans.approveloan";
|
|
11
|
+
|
|
12
|
+
export interface approveLoanRequest {
|
|
13
|
+
bank_id: number;
|
|
14
|
+
amount: number;
|
|
15
|
+
tenure: number;
|
|
16
|
+
customer_id: number;
|
|
17
|
+
ip: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface approveLoanResponse {
|
|
21
|
+
id: number;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function createBaseapproveLoanRequest(): approveLoanRequest {
|
|
25
|
+
return { bank_id: 0, amount: 0, tenure: 0, customer_id: 0, ip: "" };
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const approveLoanRequest = {
|
|
29
|
+
encode(message: approveLoanRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
30
|
+
if (message.bank_id !== 0) {
|
|
31
|
+
writer.uint32(8).int32(message.bank_id);
|
|
32
|
+
}
|
|
33
|
+
if (message.amount !== 0) {
|
|
34
|
+
writer.uint32(16).int32(message.amount);
|
|
35
|
+
}
|
|
36
|
+
if (message.tenure !== 0) {
|
|
37
|
+
writer.uint32(24).int32(message.tenure);
|
|
38
|
+
}
|
|
39
|
+
if (message.customer_id !== 0) {
|
|
40
|
+
writer.uint32(32).int32(message.customer_id);
|
|
41
|
+
}
|
|
42
|
+
if (message.ip !== "") {
|
|
43
|
+
writer.uint32(42).string(message.ip);
|
|
44
|
+
}
|
|
45
|
+
return writer;
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): approveLoanRequest {
|
|
49
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
50
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
51
|
+
const message = createBaseapproveLoanRequest();
|
|
52
|
+
while (reader.pos < end) {
|
|
53
|
+
const tag = reader.uint32();
|
|
54
|
+
switch (tag >>> 3) {
|
|
55
|
+
case 1:
|
|
56
|
+
if (tag !== 8) {
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message.bank_id = reader.int32();
|
|
61
|
+
continue;
|
|
62
|
+
case 2:
|
|
63
|
+
if (tag !== 16) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
message.amount = reader.int32();
|
|
68
|
+
continue;
|
|
69
|
+
case 3:
|
|
70
|
+
if (tag !== 24) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
message.tenure = reader.int32();
|
|
75
|
+
continue;
|
|
76
|
+
case 4:
|
|
77
|
+
if (tag !== 32) {
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
message.customer_id = reader.int32();
|
|
82
|
+
continue;
|
|
83
|
+
case 5:
|
|
84
|
+
if (tag !== 42) {
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
message.ip = reader.string();
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
reader.skipType(tag & 7);
|
|
95
|
+
}
|
|
96
|
+
return message;
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
fromJSON(object: any): approveLoanRequest {
|
|
100
|
+
return {
|
|
101
|
+
bank_id: isSet(object.bank_id) ? globalThis.Number(object.bank_id) : 0,
|
|
102
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
103
|
+
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
104
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
105
|
+
ip: isSet(object.ip) ? globalThis.String(object.ip) : "",
|
|
106
|
+
};
|
|
107
|
+
},
|
|
108
|
+
|
|
109
|
+
toJSON(message: approveLoanRequest): unknown {
|
|
110
|
+
const obj: any = {};
|
|
111
|
+
if (message.bank_id !== 0) {
|
|
112
|
+
obj.bank_id = Math.round(message.bank_id);
|
|
113
|
+
}
|
|
114
|
+
if (message.amount !== 0) {
|
|
115
|
+
obj.amount = Math.round(message.amount);
|
|
116
|
+
}
|
|
117
|
+
if (message.tenure !== 0) {
|
|
118
|
+
obj.tenure = Math.round(message.tenure);
|
|
119
|
+
}
|
|
120
|
+
if (message.customer_id !== 0) {
|
|
121
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
122
|
+
}
|
|
123
|
+
if (message.ip !== "") {
|
|
124
|
+
obj.ip = message.ip;
|
|
125
|
+
}
|
|
126
|
+
return obj;
|
|
127
|
+
},
|
|
128
|
+
|
|
129
|
+
create<I extends Exact<DeepPartial<approveLoanRequest>, I>>(base?: I): approveLoanRequest {
|
|
130
|
+
return approveLoanRequest.fromPartial(base ?? ({} as any));
|
|
131
|
+
},
|
|
132
|
+
fromPartial<I extends Exact<DeepPartial<approveLoanRequest>, I>>(object: I): approveLoanRequest {
|
|
133
|
+
const message = createBaseapproveLoanRequest();
|
|
134
|
+
message.bank_id = object.bank_id ?? 0;
|
|
135
|
+
message.amount = object.amount ?? 0;
|
|
136
|
+
message.tenure = object.tenure ?? 0;
|
|
137
|
+
message.customer_id = object.customer_id ?? 0;
|
|
138
|
+
message.ip = object.ip ?? "";
|
|
139
|
+
return message;
|
|
140
|
+
},
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
function createBaseapproveLoanResponse(): approveLoanResponse {
|
|
144
|
+
return { id: 0 };
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export const approveLoanResponse = {
|
|
148
|
+
encode(message: approveLoanResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
149
|
+
if (message.id !== 0) {
|
|
150
|
+
writer.uint32(8).int32(message.id);
|
|
151
|
+
}
|
|
152
|
+
return writer;
|
|
153
|
+
},
|
|
154
|
+
|
|
155
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): approveLoanResponse {
|
|
156
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
157
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
158
|
+
const message = createBaseapproveLoanResponse();
|
|
159
|
+
while (reader.pos < end) {
|
|
160
|
+
const tag = reader.uint32();
|
|
161
|
+
switch (tag >>> 3) {
|
|
162
|
+
case 1:
|
|
163
|
+
if (tag !== 8) {
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
message.id = reader.int32();
|
|
168
|
+
continue;
|
|
169
|
+
}
|
|
170
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
reader.skipType(tag & 7);
|
|
174
|
+
}
|
|
175
|
+
return message;
|
|
176
|
+
},
|
|
177
|
+
|
|
178
|
+
fromJSON(object: any): approveLoanResponse {
|
|
179
|
+
return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
180
|
+
},
|
|
181
|
+
|
|
182
|
+
toJSON(message: approveLoanResponse): unknown {
|
|
183
|
+
const obj: any = {};
|
|
184
|
+
if (message.id !== 0) {
|
|
185
|
+
obj.id = Math.round(message.id);
|
|
186
|
+
}
|
|
187
|
+
return obj;
|
|
188
|
+
},
|
|
189
|
+
|
|
190
|
+
create<I extends Exact<DeepPartial<approveLoanResponse>, I>>(base?: I): approveLoanResponse {
|
|
191
|
+
return approveLoanResponse.fromPartial(base ?? ({} as any));
|
|
192
|
+
},
|
|
193
|
+
fromPartial<I extends Exact<DeepPartial<approveLoanResponse>, I>>(object: I): approveLoanResponse {
|
|
194
|
+
const message = createBaseapproveLoanResponse();
|
|
195
|
+
message.id = object.id ?? 0;
|
|
196
|
+
return message;
|
|
197
|
+
},
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
201
|
+
|
|
202
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
203
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
204
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
205
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
206
|
+
: Partial<T>;
|
|
207
|
+
|
|
208
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
209
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
210
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
211
|
+
|
|
212
|
+
function isSet(value: any): boolean {
|
|
213
|
+
return value !== null && value !== undefined;
|
|
214
|
+
}
|