@stashfin/grpc 1.2.52 → 1.2.58

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.
Files changed (126) hide show
  1. package/package.json +2 -1
  2. package/ts/customers/addaddress.d.ts +50 -0
  3. package/ts/customers/addaddress.js +265 -0
  4. package/ts/customers/addbankaccountdetails.d.ts +37 -0
  5. package/ts/customers/addbankaccountdetails.js +147 -0
  6. package/ts/customers/createcustomerreference.d.ts +43 -0
  7. package/ts/customers/createcustomerreference.js +226 -0
  8. package/ts/customers/forgotmpin.d.ts +36 -0
  9. package/ts/{customer/sendotp.js → customers/forgotmpin.js} +46 -46
  10. package/ts/customers/forgotmpinotp.d.ts +34 -0
  11. package/ts/customers/forgotmpinotp.js +104 -0
  12. package/ts/customers/getbankaccountdetails.js +1 -1
  13. package/ts/customers/getbasicinfo.d.ts +20 -3
  14. package/ts/customers/getbasicinfo.js +171 -24
  15. package/ts/customers/getcities.d.ts +47 -0
  16. package/ts/customers/getcities.js +183 -0
  17. package/ts/customers/getcustomerbyid.d.ts +5 -0
  18. package/ts/customers/getcustomerbyid.js +76 -1
  19. package/ts/customers/getdashboard.d.ts +1 -0
  20. package/ts/customers/getdashboard.js +49 -34
  21. package/ts/customers/getdashboardmaincard.js +1 -1
  22. package/ts/customers/getkycweburl.d.ts +34 -0
  23. package/ts/customers/getkycweburl.js +104 -0
  24. package/ts/customers/getprofessionalinfo.d.ts +18 -1
  25. package/ts/customers/getprofessionalinfo.js +148 -10
  26. package/ts/customers/getprofile.d.ts +17 -2
  27. package/ts/customers/getprofile.js +146 -26
  28. package/ts/customers/getstates.d.ts +46 -0
  29. package/ts/customers/getstates.js +170 -0
  30. package/ts/customers/getstep.d.ts +19 -28
  31. package/ts/customers/getstep.js +159 -173
  32. package/ts/customers/profilebasic.js +1 -1
  33. package/ts/customers/profileupdatetnc.js +1 -1
  34. package/ts/customers/resetmpin.d.ts +36 -0
  35. package/ts/customers/resetmpin.js +133 -0
  36. package/ts/customers/savebasicdetails.d.ts +47 -0
  37. package/ts/customers/savebasicdetails.js +185 -0
  38. package/ts/customers/saveunlocklimit.d.ts +34 -0
  39. package/ts/customers/saveunlocklimit.js +104 -0
  40. package/ts/customers/sendemailtoken.js +1 -1
  41. package/ts/customers/sendotp.js +1 -1
  42. package/ts/customers/setmpin.js +1 -1
  43. package/ts/customers/step1.d.ts +2 -0
  44. package/ts/customers/step1.js +32 -4
  45. package/ts/customers/step10.js +1 -1
  46. package/ts/customers/step2.d.ts +5 -6
  47. package/ts/customers/step2.js +22 -37
  48. package/ts/customers/step7.js +1 -1
  49. package/ts/customers/step8.js +1 -1
  50. package/ts/customers/step9.js +1 -1
  51. package/ts/customers/stepstatic.js +1 -1
  52. package/ts/customers/updatedigilockertxn.d.ts +37 -0
  53. package/ts/{customer/verifympin.js → customers/updatedigilockertxn.js} +46 -48
  54. package/ts/customers/updatedob.d.ts +35 -0
  55. package/ts/{customer/profileupdatetnc.js → customers/updatedob.js} +22 -22
  56. package/ts/customers/updatehypervergetxn.d.ts +36 -0
  57. package/ts/{customer/setmpin.js → customers/updatehypervergetxn.js} +30 -30
  58. package/ts/customers/verifyemail.js +1 -1
  59. package/ts/customers/verifympin.js +1 -1
  60. package/ts/customers/verifyotp.d.ts +1 -0
  61. package/ts/customers/verifyotp.js +16 -2
  62. package/ts/customers.d.ts +222 -28
  63. package/ts/customers.js +155 -17
  64. package/ts/example.js +1 -1
  65. package/ts/google/protobuf/timestamp.js +1 -1
  66. package/ts/loans/approveloan.js +1 -1
  67. package/ts/loans/banklist.d.ts +0 -11
  68. package/ts/loans/banklist.js +6 -60
  69. package/ts/loans/calculateemi.d.ts +16 -2
  70. package/ts/loans/calculateemi.js +115 -19
  71. package/ts/loans/creditlimit.d.ts +8 -0
  72. package/ts/loans/creditlimit.js +129 -2
  73. package/ts/loans/restructureloan.d.ts +36 -0
  74. package/ts/loans/restructureloan.js +133 -0
  75. package/ts/loans/transactionlist.d.ts +50 -0
  76. package/ts/loans/transactionlist.js +229 -0
  77. package/ts/loans/updateinstallments.js +1 -1
  78. package/ts/loans/updateloan.js +1 -1
  79. package/ts/loans.d.ts +28 -0
  80. package/ts/loans.js +21 -1
  81. package/ts/stashcash/creditsc.js +1 -1
  82. package/ts/stashcash/debitsc.js +1 -1
  83. package/ts/stashcash/getscbalance.js +1 -1
  84. package/ts/stashcash/getschistory.js +1 -1
  85. package/ts/stashcash/reversesc.js +1 -1
  86. package/ts/stashcash.js +1 -1
  87. package/ts/customer/getprofile.d.ts +0 -38
  88. package/ts/customer/getprofile.js +0 -162
  89. package/ts/customer/getstep.d.ts +0 -78
  90. package/ts/customer/getstep.js +0 -420
  91. package/ts/customer/profileupdatetnc.d.ts +0 -35
  92. package/ts/customer/sendotp.d.ts +0 -36
  93. package/ts/customer/setmpin.d.ts +0 -36
  94. package/ts/customer/step1.d.ts +0 -69
  95. package/ts/customer/step1.js +0 -395
  96. package/ts/customer/step10.d.ts +0 -73
  97. package/ts/customer/step10.js +0 -459
  98. package/ts/customer/step2.d.ts +0 -68
  99. package/ts/customer/step2.js +0 -381
  100. package/ts/customer/step7.d.ts +0 -68
  101. package/ts/customer/step7.js +0 -381
  102. package/ts/customer/step8.d.ts +0 -69
  103. package/ts/customer/step8.js +0 -395
  104. package/ts/customer/step9.d.ts +0 -75
  105. package/ts/customer/step9.js +0 -489
  106. package/ts/customer/stepstatic.d.ts +0 -66
  107. package/ts/customer/stepstatic.js +0 -352
  108. package/ts/customer/verifympin.d.ts +0 -37
  109. package/ts/customer/verifyotp.d.ts +0 -39
  110. package/ts/customer/verifyotp.js +0 -177
  111. package/ts/customer.d.ts +0 -262
  112. package/ts/customer.js +0 -190
  113. package/ts/google/protobuf/any.d.ts +0 -138
  114. package/ts/google/protobuf/any.js +0 -108
  115. package/ts/payments/checkpaymentstatus.d.ts +0 -51
  116. package/ts/payments/checkpaymentstatus.js +0 -259
  117. package/ts/payments/createorder.d.ts +0 -39
  118. package/ts/payments/createorder.js +0 -191
  119. package/ts/payments/getpaymentdetails.d.ts +0 -58
  120. package/ts/payments/getpaymentdetails.js +0 -367
  121. package/ts/payments/getpaymentoptions.d.ts +0 -50
  122. package/ts/payments/getpaymentoptions.js +0 -231
  123. package/ts/payments/initiatepayment.d.ts +0 -54
  124. package/ts/payments/initiatepayment.js +0 -299
  125. package/ts/payments.d.ts +0 -70
  126. package/ts/payments.js +0 -54
package/ts/customer.d.ts DELETED
@@ -1,262 +0,0 @@
1
- import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
2
- import { request as request9, response as response10 } from "./customer/getprofile";
3
- import { request as request11, response as response12 } from "./customer/getstep";
4
- import { request as request7, response as response8 } from "./customer/profileupdatetnc";
5
- import { request, response } from "./customer/sendotp";
6
- import { request as request3, response as response4 } from "./customer/setmpin";
7
- import { request as request13, response as response14 } from "./customer/step1";
8
- import { request as request25, response as response26 } from "./customer/step10";
9
- import { request as request15, response as response16 } from "./customer/step2";
10
- import { request as request19, response as response20 } from "./customer/step7";
11
- import { request as request21, response as response22 } from "./customer/step8";
12
- import { request as request23, response as response24 } from "./customer/step9";
13
- import { request as request17, response as response18 } from "./customer/stepstatic";
14
- import { request as request5, response as response6 } from "./customer/verifympin";
15
- import { request as request1, response as response2 } from "./customer/verifyotp";
16
- export declare const protobufPackage = "customer";
17
- export type CustomerService = typeof CustomerService;
18
- export declare const CustomerService: {
19
- readonly sendOtp: {
20
- readonly path: "/customer.Customer/sendOtp";
21
- readonly requestStream: false;
22
- readonly responseStream: false;
23
- readonly requestSerialize: (value: request) => Buffer;
24
- readonly requestDeserialize: (value: Buffer) => request;
25
- readonly responseSerialize: (value: response) => Buffer;
26
- readonly responseDeserialize: (value: Buffer) => response;
27
- };
28
- readonly verifyOtp: {
29
- readonly path: "/customer.Customer/verifyOtp";
30
- readonly requestStream: false;
31
- readonly responseStream: false;
32
- readonly requestSerialize: (value: request1) => Buffer;
33
- readonly requestDeserialize: (value: Buffer) => request1;
34
- readonly responseSerialize: (value: response2) => Buffer;
35
- readonly responseDeserialize: (value: Buffer) => response2;
36
- };
37
- readonly setmpin: {
38
- readonly path: "/customer.Customer/setmpin";
39
- readonly requestStream: false;
40
- readonly responseStream: false;
41
- readonly requestSerialize: (value: request3) => Buffer;
42
- readonly requestDeserialize: (value: Buffer) => request3;
43
- readonly responseSerialize: (value: response4) => Buffer;
44
- readonly responseDeserialize: (value: Buffer) => response4;
45
- };
46
- readonly verifyMpin: {
47
- readonly path: "/customer.Customer/verifyMpin";
48
- readonly requestStream: false;
49
- readonly responseStream: false;
50
- readonly requestSerialize: (value: request5) => Buffer;
51
- readonly requestDeserialize: (value: Buffer) => request5;
52
- readonly responseSerialize: (value: response6) => Buffer;
53
- readonly responseDeserialize: (value: Buffer) => response6;
54
- };
55
- readonly profileUpdatetnc: {
56
- readonly path: "/customer.Customer/profileUpdatetnc";
57
- readonly requestStream: false;
58
- readonly responseStream: false;
59
- readonly requestSerialize: (value: request7) => Buffer;
60
- readonly requestDeserialize: (value: Buffer) => request7;
61
- readonly responseSerialize: (value: response8) => Buffer;
62
- readonly responseDeserialize: (value: Buffer) => response8;
63
- };
64
- readonly getProfile: {
65
- readonly path: "/customer.Customer/getProfile";
66
- readonly requestStream: false;
67
- readonly responseStream: false;
68
- readonly requestSerialize: (value: request9) => Buffer;
69
- readonly requestDeserialize: (value: Buffer) => request9;
70
- readonly responseSerialize: (value: response10) => Buffer;
71
- readonly responseDeserialize: (value: Buffer) => response10;
72
- };
73
- readonly getstep: {
74
- readonly path: "/customer.Customer/getstep";
75
- readonly requestStream: false;
76
- readonly responseStream: false;
77
- readonly requestSerialize: (value: request11) => Buffer;
78
- readonly requestDeserialize: (value: Buffer) => request11;
79
- readonly responseSerialize: (value: response12) => Buffer;
80
- readonly responseDeserialize: (value: Buffer) => response12;
81
- };
82
- readonly step1: {
83
- readonly path: "/customer.Customer/step1";
84
- readonly requestStream: false;
85
- readonly responseStream: false;
86
- readonly requestSerialize: (value: request13) => Buffer;
87
- readonly requestDeserialize: (value: Buffer) => request13;
88
- readonly responseSerialize: (value: response14) => Buffer;
89
- readonly responseDeserialize: (value: Buffer) => response14;
90
- };
91
- readonly step2: {
92
- readonly path: "/customer.Customer/step2";
93
- readonly requestStream: false;
94
- readonly responseStream: false;
95
- readonly requestSerialize: (value: request15) => Buffer;
96
- readonly requestDeserialize: (value: Buffer) => request15;
97
- readonly responseSerialize: (value: response16) => Buffer;
98
- readonly responseDeserialize: (value: Buffer) => response16;
99
- };
100
- readonly step3: {
101
- readonly path: "/customer.Customer/step3";
102
- readonly requestStream: false;
103
- readonly responseStream: false;
104
- readonly requestSerialize: (value: request17) => Buffer;
105
- readonly requestDeserialize: (value: Buffer) => request17;
106
- readonly responseSerialize: (value: response18) => Buffer;
107
- readonly responseDeserialize: (value: Buffer) => response18;
108
- };
109
- readonly step4: {
110
- readonly path: "/customer.Customer/step4";
111
- readonly requestStream: false;
112
- readonly responseStream: false;
113
- readonly requestSerialize: (value: request17) => Buffer;
114
- readonly requestDeserialize: (value: Buffer) => request17;
115
- readonly responseSerialize: (value: response18) => Buffer;
116
- readonly responseDeserialize: (value: Buffer) => response18;
117
- };
118
- readonly step5: {
119
- readonly path: "/customer.Customer/step5";
120
- readonly requestStream: false;
121
- readonly responseStream: false;
122
- readonly requestSerialize: (value: request17) => Buffer;
123
- readonly requestDeserialize: (value: Buffer) => request17;
124
- readonly responseSerialize: (value: response18) => Buffer;
125
- readonly responseDeserialize: (value: Buffer) => response18;
126
- };
127
- readonly step6: {
128
- readonly path: "/customer.Customer/step6";
129
- readonly requestStream: false;
130
- readonly responseStream: false;
131
- readonly requestSerialize: (value: request17) => Buffer;
132
- readonly requestDeserialize: (value: Buffer) => request17;
133
- readonly responseSerialize: (value: response18) => Buffer;
134
- readonly responseDeserialize: (value: Buffer) => response18;
135
- };
136
- readonly step7: {
137
- readonly path: "/customer.Customer/step7";
138
- readonly requestStream: false;
139
- readonly responseStream: false;
140
- readonly requestSerialize: (value: request19) => Buffer;
141
- readonly requestDeserialize: (value: Buffer) => request19;
142
- readonly responseSerialize: (value: response20) => Buffer;
143
- readonly responseDeserialize: (value: Buffer) => response20;
144
- };
145
- readonly step8: {
146
- readonly path: "/customer.Customer/step8";
147
- readonly requestStream: false;
148
- readonly responseStream: false;
149
- readonly requestSerialize: (value: request21) => Buffer;
150
- readonly requestDeserialize: (value: Buffer) => request21;
151
- readonly responseSerialize: (value: response22) => Buffer;
152
- readonly responseDeserialize: (value: Buffer) => response22;
153
- };
154
- readonly step9: {
155
- readonly path: "/customer.Customer/step9";
156
- readonly requestStream: false;
157
- readonly responseStream: false;
158
- readonly requestSerialize: (value: request23) => Buffer;
159
- readonly requestDeserialize: (value: Buffer) => request23;
160
- readonly responseSerialize: (value: response24) => Buffer;
161
- readonly responseDeserialize: (value: Buffer) => response24;
162
- };
163
- readonly step10: {
164
- readonly path: "/customer.Customer/step10";
165
- readonly requestStream: false;
166
- readonly responseStream: false;
167
- readonly requestSerialize: (value: request25) => Buffer;
168
- readonly requestDeserialize: (value: Buffer) => request25;
169
- readonly responseSerialize: (value: response26) => Buffer;
170
- readonly responseDeserialize: (value: Buffer) => response26;
171
- };
172
- readonly step11: {
173
- readonly path: "/customer.Customer/step11";
174
- readonly requestStream: false;
175
- readonly responseStream: false;
176
- readonly requestSerialize: (value: request17) => Buffer;
177
- readonly requestDeserialize: (value: Buffer) => request17;
178
- readonly responseSerialize: (value: response18) => Buffer;
179
- readonly responseDeserialize: (value: Buffer) => response18;
180
- };
181
- };
182
- export interface CustomerServer extends UntypedServiceImplementation {
183
- sendOtp: handleUnaryCall<request, response>;
184
- verifyOtp: handleUnaryCall<request1, response2>;
185
- setmpin: handleUnaryCall<request3, response4>;
186
- verifyMpin: handleUnaryCall<request5, response6>;
187
- profileUpdatetnc: handleUnaryCall<request7, response8>;
188
- getProfile: handleUnaryCall<request9, response10>;
189
- getstep: handleUnaryCall<request11, response12>;
190
- step1: handleUnaryCall<request13, response14>;
191
- step2: handleUnaryCall<request15, response16>;
192
- step3: handleUnaryCall<request17, response18>;
193
- step4: handleUnaryCall<request17, response18>;
194
- step5: handleUnaryCall<request17, response18>;
195
- step6: handleUnaryCall<request17, response18>;
196
- step7: handleUnaryCall<request19, response20>;
197
- step8: handleUnaryCall<request21, response22>;
198
- step9: handleUnaryCall<request23, response24>;
199
- step10: handleUnaryCall<request25, response26>;
200
- step11: handleUnaryCall<request17, response18>;
201
- }
202
- export interface CustomerClient extends Client {
203
- sendOtp(request: request, callback: (error: ServiceError | null, response: response) => void): ClientUnaryCall;
204
- sendOtp(request: request, metadata: Metadata, callback: (error: ServiceError | null, response: response) => void): ClientUnaryCall;
205
- sendOtp(request: request, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response) => void): ClientUnaryCall;
206
- verifyOtp(request: request1, callback: (error: ServiceError | null, response: response2) => void): ClientUnaryCall;
207
- verifyOtp(request: request1, metadata: Metadata, callback: (error: ServiceError | null, response: response2) => void): ClientUnaryCall;
208
- verifyOtp(request: request1, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response2) => void): ClientUnaryCall;
209
- setmpin(request: request3, callback: (error: ServiceError | null, response: response4) => void): ClientUnaryCall;
210
- setmpin(request: request3, metadata: Metadata, callback: (error: ServiceError | null, response: response4) => void): ClientUnaryCall;
211
- setmpin(request: request3, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response4) => void): ClientUnaryCall;
212
- verifyMpin(request: request5, callback: (error: ServiceError | null, response: response6) => void): ClientUnaryCall;
213
- verifyMpin(request: request5, metadata: Metadata, callback: (error: ServiceError | null, response: response6) => void): ClientUnaryCall;
214
- verifyMpin(request: request5, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response6) => void): ClientUnaryCall;
215
- profileUpdatetnc(request: request7, callback: (error: ServiceError | null, response: response8) => void): ClientUnaryCall;
216
- profileUpdatetnc(request: request7, metadata: Metadata, callback: (error: ServiceError | null, response: response8) => void): ClientUnaryCall;
217
- profileUpdatetnc(request: request7, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response8) => void): ClientUnaryCall;
218
- getProfile(request: request9, callback: (error: ServiceError | null, response: response10) => void): ClientUnaryCall;
219
- getProfile(request: request9, metadata: Metadata, callback: (error: ServiceError | null, response: response10) => void): ClientUnaryCall;
220
- getProfile(request: request9, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response10) => void): ClientUnaryCall;
221
- getstep(request: request11, callback: (error: ServiceError | null, response: response12) => void): ClientUnaryCall;
222
- getstep(request: request11, metadata: Metadata, callback: (error: ServiceError | null, response: response12) => void): ClientUnaryCall;
223
- getstep(request: request11, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response12) => void): ClientUnaryCall;
224
- step1(request: request13, callback: (error: ServiceError | null, response: response14) => void): ClientUnaryCall;
225
- step1(request: request13, metadata: Metadata, callback: (error: ServiceError | null, response: response14) => void): ClientUnaryCall;
226
- step1(request: request13, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response14) => void): ClientUnaryCall;
227
- step2(request: request15, callback: (error: ServiceError | null, response: response16) => void): ClientUnaryCall;
228
- step2(request: request15, metadata: Metadata, callback: (error: ServiceError | null, response: response16) => void): ClientUnaryCall;
229
- step2(request: request15, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response16) => void): ClientUnaryCall;
230
- step3(request: request17, callback: (error: ServiceError | null, response: response18) => void): ClientUnaryCall;
231
- step3(request: request17, metadata: Metadata, callback: (error: ServiceError | null, response: response18) => void): ClientUnaryCall;
232
- step3(request: request17, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response18) => void): ClientUnaryCall;
233
- step4(request: request17, callback: (error: ServiceError | null, response: response18) => void): ClientUnaryCall;
234
- step4(request: request17, metadata: Metadata, callback: (error: ServiceError | null, response: response18) => void): ClientUnaryCall;
235
- step4(request: request17, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response18) => void): ClientUnaryCall;
236
- step5(request: request17, callback: (error: ServiceError | null, response: response18) => void): ClientUnaryCall;
237
- step5(request: request17, metadata: Metadata, callback: (error: ServiceError | null, response: response18) => void): ClientUnaryCall;
238
- step5(request: request17, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response18) => void): ClientUnaryCall;
239
- step6(request: request17, callback: (error: ServiceError | null, response: response18) => void): ClientUnaryCall;
240
- step6(request: request17, metadata: Metadata, callback: (error: ServiceError | null, response: response18) => void): ClientUnaryCall;
241
- step6(request: request17, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response18) => void): ClientUnaryCall;
242
- step7(request: request19, callback: (error: ServiceError | null, response: response20) => void): ClientUnaryCall;
243
- step7(request: request19, metadata: Metadata, callback: (error: ServiceError | null, response: response20) => void): ClientUnaryCall;
244
- step7(request: request19, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response20) => void): ClientUnaryCall;
245
- step8(request: request21, callback: (error: ServiceError | null, response: response22) => void): ClientUnaryCall;
246
- step8(request: request21, metadata: Metadata, callback: (error: ServiceError | null, response: response22) => void): ClientUnaryCall;
247
- step8(request: request21, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response22) => void): ClientUnaryCall;
248
- step9(request: request23, callback: (error: ServiceError | null, response: response24) => void): ClientUnaryCall;
249
- step9(request: request23, metadata: Metadata, callback: (error: ServiceError | null, response: response24) => void): ClientUnaryCall;
250
- step9(request: request23, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response24) => void): ClientUnaryCall;
251
- step10(request: request25, callback: (error: ServiceError | null, response: response26) => void): ClientUnaryCall;
252
- step10(request: request25, metadata: Metadata, callback: (error: ServiceError | null, response: response26) => void): ClientUnaryCall;
253
- step10(request: request25, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response26) => void): ClientUnaryCall;
254
- step11(request: request17, callback: (error: ServiceError | null, response: response18) => void): ClientUnaryCall;
255
- step11(request: request17, metadata: Metadata, callback: (error: ServiceError | null, response: response18) => void): ClientUnaryCall;
256
- step11(request: request17, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response18) => void): ClientUnaryCall;
257
- }
258
- export declare const CustomerClient: {
259
- new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): CustomerClient;
260
- service: typeof CustomerService;
261
- serviceName: string;
262
- };
package/ts/customer.js DELETED
@@ -1,190 +0,0 @@
1
- "use strict";
2
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
- // versions:
4
- // protoc-gen-ts_proto v1.180.0
5
- // protoc v3.20.3
6
- // source: customer.proto
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.CustomerClient = exports.CustomerService = exports.protobufPackage = void 0;
9
- /* eslint-disable */
10
- const grpc_js_1 = require("@grpc/grpc-js");
11
- const getprofile_1 = require("./customer/getprofile");
12
- const getstep_1 = require("./customer/getstep");
13
- const profileupdatetnc_1 = require("./customer/profileupdatetnc");
14
- const sendotp_1 = require("./customer/sendotp");
15
- const setmpin_1 = require("./customer/setmpin");
16
- const step1_1 = require("./customer/step1");
17
- const step10_1 = require("./customer/step10");
18
- const step2_1 = require("./customer/step2");
19
- const step7_1 = require("./customer/step7");
20
- const step8_1 = require("./customer/step8");
21
- const step9_1 = require("./customer/step9");
22
- const stepstatic_1 = require("./customer/stepstatic");
23
- const verifympin_1 = require("./customer/verifympin");
24
- const verifyotp_1 = require("./customer/verifyotp");
25
- exports.protobufPackage = "customer";
26
- exports.CustomerService = {
27
- sendOtp: {
28
- path: "/customer.Customer/sendOtp",
29
- requestStream: false,
30
- responseStream: false,
31
- requestSerialize: (value) => Buffer.from(sendotp_1.request.encode(value).finish()),
32
- requestDeserialize: (value) => sendotp_1.request.decode(value),
33
- responseSerialize: (value) => Buffer.from(sendotp_1.response.encode(value).finish()),
34
- responseDeserialize: (value) => sendotp_1.response.decode(value),
35
- },
36
- verifyOtp: {
37
- path: "/customer.Customer/verifyOtp",
38
- requestStream: false,
39
- responseStream: false,
40
- requestSerialize: (value) => Buffer.from(verifyotp_1.request.encode(value).finish()),
41
- requestDeserialize: (value) => verifyotp_1.request.decode(value),
42
- responseSerialize: (value) => Buffer.from(verifyotp_1.response.encode(value).finish()),
43
- responseDeserialize: (value) => verifyotp_1.response.decode(value),
44
- },
45
- setmpin: {
46
- path: "/customer.Customer/setmpin",
47
- requestStream: false,
48
- responseStream: false,
49
- requestSerialize: (value) => Buffer.from(setmpin_1.request.encode(value).finish()),
50
- requestDeserialize: (value) => setmpin_1.request.decode(value),
51
- responseSerialize: (value) => Buffer.from(setmpin_1.response.encode(value).finish()),
52
- responseDeserialize: (value) => setmpin_1.response.decode(value),
53
- },
54
- verifyMpin: {
55
- path: "/customer.Customer/verifyMpin",
56
- requestStream: false,
57
- responseStream: false,
58
- requestSerialize: (value) => Buffer.from(verifympin_1.request.encode(value).finish()),
59
- requestDeserialize: (value) => verifympin_1.request.decode(value),
60
- responseSerialize: (value) => Buffer.from(verifympin_1.response.encode(value).finish()),
61
- responseDeserialize: (value) => verifympin_1.response.decode(value),
62
- },
63
- profileUpdatetnc: {
64
- path: "/customer.Customer/profileUpdatetnc",
65
- requestStream: false,
66
- responseStream: false,
67
- requestSerialize: (value) => Buffer.from(profileupdatetnc_1.request.encode(value).finish()),
68
- requestDeserialize: (value) => profileupdatetnc_1.request.decode(value),
69
- responseSerialize: (value) => Buffer.from(profileupdatetnc_1.response.encode(value).finish()),
70
- responseDeserialize: (value) => profileupdatetnc_1.response.decode(value),
71
- },
72
- getProfile: {
73
- path: "/customer.Customer/getProfile",
74
- requestStream: false,
75
- responseStream: false,
76
- requestSerialize: (value) => Buffer.from(getprofile_1.request.encode(value).finish()),
77
- requestDeserialize: (value) => getprofile_1.request.decode(value),
78
- responseSerialize: (value) => Buffer.from(getprofile_1.response.encode(value).finish()),
79
- responseDeserialize: (value) => getprofile_1.response.decode(value),
80
- },
81
- getstep: {
82
- path: "/customer.Customer/getstep",
83
- requestStream: false,
84
- responseStream: false,
85
- requestSerialize: (value) => Buffer.from(getstep_1.request.encode(value).finish()),
86
- requestDeserialize: (value) => getstep_1.request.decode(value),
87
- responseSerialize: (value) => Buffer.from(getstep_1.response.encode(value).finish()),
88
- responseDeserialize: (value) => getstep_1.response.decode(value),
89
- },
90
- step1: {
91
- path: "/customer.Customer/step1",
92
- requestStream: false,
93
- responseStream: false,
94
- requestSerialize: (value) => Buffer.from(step1_1.request.encode(value).finish()),
95
- requestDeserialize: (value) => step1_1.request.decode(value),
96
- responseSerialize: (value) => Buffer.from(step1_1.response.encode(value).finish()),
97
- responseDeserialize: (value) => step1_1.response.decode(value),
98
- },
99
- step2: {
100
- path: "/customer.Customer/step2",
101
- requestStream: false,
102
- responseStream: false,
103
- requestSerialize: (value) => Buffer.from(step2_1.request.encode(value).finish()),
104
- requestDeserialize: (value) => step2_1.request.decode(value),
105
- responseSerialize: (value) => Buffer.from(step2_1.response.encode(value).finish()),
106
- responseDeserialize: (value) => step2_1.response.decode(value),
107
- },
108
- step3: {
109
- path: "/customer.Customer/step3",
110
- requestStream: false,
111
- responseStream: false,
112
- requestSerialize: (value) => Buffer.from(stepstatic_1.request.encode(value).finish()),
113
- requestDeserialize: (value) => stepstatic_1.request.decode(value),
114
- responseSerialize: (value) => Buffer.from(stepstatic_1.response.encode(value).finish()),
115
- responseDeserialize: (value) => stepstatic_1.response.decode(value),
116
- },
117
- step4: {
118
- path: "/customer.Customer/step4",
119
- requestStream: false,
120
- responseStream: false,
121
- requestSerialize: (value) => Buffer.from(stepstatic_1.request.encode(value).finish()),
122
- requestDeserialize: (value) => stepstatic_1.request.decode(value),
123
- responseSerialize: (value) => Buffer.from(stepstatic_1.response.encode(value).finish()),
124
- responseDeserialize: (value) => stepstatic_1.response.decode(value),
125
- },
126
- step5: {
127
- path: "/customer.Customer/step5",
128
- requestStream: false,
129
- responseStream: false,
130
- requestSerialize: (value) => Buffer.from(stepstatic_1.request.encode(value).finish()),
131
- requestDeserialize: (value) => stepstatic_1.request.decode(value),
132
- responseSerialize: (value) => Buffer.from(stepstatic_1.response.encode(value).finish()),
133
- responseDeserialize: (value) => stepstatic_1.response.decode(value),
134
- },
135
- step6: {
136
- path: "/customer.Customer/step6",
137
- requestStream: false,
138
- responseStream: false,
139
- requestSerialize: (value) => Buffer.from(stepstatic_1.request.encode(value).finish()),
140
- requestDeserialize: (value) => stepstatic_1.request.decode(value),
141
- responseSerialize: (value) => Buffer.from(stepstatic_1.response.encode(value).finish()),
142
- responseDeserialize: (value) => stepstatic_1.response.decode(value),
143
- },
144
- step7: {
145
- path: "/customer.Customer/step7",
146
- requestStream: false,
147
- responseStream: false,
148
- requestSerialize: (value) => Buffer.from(step7_1.request.encode(value).finish()),
149
- requestDeserialize: (value) => step7_1.request.decode(value),
150
- responseSerialize: (value) => Buffer.from(step7_1.response.encode(value).finish()),
151
- responseDeserialize: (value) => step7_1.response.decode(value),
152
- },
153
- step8: {
154
- path: "/customer.Customer/step8",
155
- requestStream: false,
156
- responseStream: false,
157
- requestSerialize: (value) => Buffer.from(step8_1.request.encode(value).finish()),
158
- requestDeserialize: (value) => step8_1.request.decode(value),
159
- responseSerialize: (value) => Buffer.from(step8_1.response.encode(value).finish()),
160
- responseDeserialize: (value) => step8_1.response.decode(value),
161
- },
162
- step9: {
163
- path: "/customer.Customer/step9",
164
- requestStream: false,
165
- responseStream: false,
166
- requestSerialize: (value) => Buffer.from(step9_1.request.encode(value).finish()),
167
- requestDeserialize: (value) => step9_1.request.decode(value),
168
- responseSerialize: (value) => Buffer.from(step9_1.response.encode(value).finish()),
169
- responseDeserialize: (value) => step9_1.response.decode(value),
170
- },
171
- step10: {
172
- path: "/customer.Customer/step10",
173
- requestStream: false,
174
- responseStream: false,
175
- requestSerialize: (value) => Buffer.from(step10_1.request.encode(value).finish()),
176
- requestDeserialize: (value) => step10_1.request.decode(value),
177
- responseSerialize: (value) => Buffer.from(step10_1.response.encode(value).finish()),
178
- responseDeserialize: (value) => step10_1.response.decode(value),
179
- },
180
- step11: {
181
- path: "/customer.Customer/step11",
182
- requestStream: false,
183
- responseStream: false,
184
- requestSerialize: (value) => Buffer.from(stepstatic_1.request.encode(value).finish()),
185
- requestDeserialize: (value) => stepstatic_1.request.decode(value),
186
- responseSerialize: (value) => Buffer.from(stepstatic_1.response.encode(value).finish()),
187
- responseDeserialize: (value) => stepstatic_1.response.decode(value),
188
- },
189
- };
190
- exports.CustomerClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.CustomerService, "customer.Customer");
@@ -1,138 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "google.protobuf";
3
- /**
4
- * `Any` contains an arbitrary serialized protocol buffer message along with a
5
- * URL that describes the type of the serialized message.
6
- *
7
- * Protobuf library provides support to pack/unpack Any values in the form
8
- * of utility functions or additional generated methods of the Any type.
9
- *
10
- * Example 1: Pack and unpack a message in C++.
11
- *
12
- * Foo foo = ...;
13
- * Any any;
14
- * any.PackFrom(foo);
15
- * ...
16
- * if (any.UnpackTo(&foo)) {
17
- * ...
18
- * }
19
- *
20
- * Example 2: Pack and unpack a message in Java.
21
- *
22
- * Foo foo = ...;
23
- * Any any = Any.pack(foo);
24
- * ...
25
- * if (any.is(Foo.class)) {
26
- * foo = any.unpack(Foo.class);
27
- * }
28
- *
29
- * Example 3: Pack and unpack a message in Python.
30
- *
31
- * foo = Foo(...)
32
- * any = Any()
33
- * any.Pack(foo)
34
- * ...
35
- * if any.Is(Foo.DESCRIPTOR):
36
- * any.Unpack(foo)
37
- * ...
38
- *
39
- * Example 4: Pack and unpack a message in Go
40
- *
41
- * foo := &pb.Foo{...}
42
- * any, err := anypb.New(foo)
43
- * if err != nil {
44
- * ...
45
- * }
46
- * ...
47
- * foo := &pb.Foo{}
48
- * if err := any.UnmarshalTo(foo); err != nil {
49
- * ...
50
- * }
51
- *
52
- * The pack methods provided by protobuf library will by default use
53
- * 'type.googleapis.com/full.type.name' as the type URL and the unpack
54
- * methods only use the fully qualified type name after the last '/'
55
- * in the type URL, for example "foo.bar.com/x/y.z" will yield type
56
- * name "y.z".
57
- *
58
- * JSON
59
- *
60
- * The JSON representation of an `Any` value uses the regular
61
- * representation of the deserialized, embedded message, with an
62
- * additional field `@type` which contains the type URL. Example:
63
- *
64
- * package google.profile;
65
- * message Person {
66
- * string first_name = 1;
67
- * string last_name = 2;
68
- * }
69
- *
70
- * {
71
- * "@type": "type.googleapis.com/google.profile.Person",
72
- * "firstName": <string>,
73
- * "lastName": <string>
74
- * }
75
- *
76
- * If the embedded message type is well-known and has a custom JSON
77
- * representation, that representation will be embedded adding a field
78
- * `value` which holds the custom JSON in addition to the `@type`
79
- * field. Example (for message [google.protobuf.Duration][]):
80
- *
81
- * {
82
- * "@type": "type.googleapis.com/google.protobuf.Duration",
83
- * "value": "1.212s"
84
- * }
85
- */
86
- export interface Any {
87
- /**
88
- * A URL/resource name that uniquely identifies the type of the serialized
89
- * protocol buffer message. This string must contain at least
90
- * one "/" character. The last segment of the URL's path must represent
91
- * the fully qualified name of the type (as in
92
- * `path/google.protobuf.Duration`). The name should be in a canonical form
93
- * (e.g., leading "." is not accepted).
94
- *
95
- * In practice, teams usually precompile into the binary all types that they
96
- * expect it to use in the context of Any. However, for URLs which use the
97
- * scheme `http`, `https`, or no scheme, one can optionally set up a type
98
- * server that maps type URLs to message definitions as follows:
99
- *
100
- * * If no scheme is provided, `https` is assumed.
101
- * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
102
- * value in binary format, or produce an error.
103
- * * Applications are allowed to cache lookup results based on the
104
- * URL, or have them precompiled into a binary to avoid any
105
- * lookup. Therefore, binary compatibility needs to be preserved
106
- * on changes to types. (Use versioned type names to manage
107
- * breaking changes.)
108
- *
109
- * Note: this functionality is not currently available in the official
110
- * protobuf release, and it is not used for type URLs beginning with
111
- * type.googleapis.com.
112
- *
113
- * Schemes other than `http`, `https` (or the empty scheme) might be
114
- * used with implementation specific semantics.
115
- */
116
- type_url: string;
117
- /** Must be a valid serialized protocol buffer of the above specified type. */
118
- value: Uint8Array;
119
- }
120
- export declare const Any: {
121
- encode(message: Any, writer?: _m0.Writer): _m0.Writer;
122
- decode(input: _m0.Reader | Uint8Array, length?: number): Any;
123
- fromJSON(object: any): Any;
124
- toJSON(message: Any): unknown;
125
- create<I extends Exact<DeepPartial<Any>, I>>(base?: I): Any;
126
- fromPartial<I extends Exact<DeepPartial<Any>, I>>(object: I): Any;
127
- };
128
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
129
- 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 {} ? {
130
- [K in keyof T]?: DeepPartial<T[K]>;
131
- } : Partial<T>;
132
- type KeysOfUnion<T> = T extends T ? keyof T : never;
133
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
134
- [K in keyof P]: Exact<P[K], I[K]>;
135
- } & {
136
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
137
- };
138
- export {};