@stashfin/grpc 1.2.54 → 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 (214) hide show
  1. package/package.json +3 -3
  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/customers/forgotmpin.js +133 -0
  10. package/ts/customers/forgotmpinotp.d.ts +34 -0
  11. package/ts/customers/forgotmpinotp.js +104 -0
  12. package/ts/customers/getbankaccountdetails.d.ts +36 -0
  13. package/ts/customers/getbankaccountdetails.js +134 -0
  14. package/ts/customers/getbasicinfo.d.ts +56 -0
  15. package/ts/customers/getbasicinfo.js +323 -0
  16. package/ts/customers/getcities.d.ts +47 -0
  17. package/ts/customers/getcities.js +183 -0
  18. package/ts/customers/getcustomerbyid.d.ts +55 -0
  19. package/ts/customers/getcustomerbyid.js +421 -0
  20. package/ts/customers/getdashboard.d.ts +91 -0
  21. package/ts/customers/getdashboard.js +618 -0
  22. package/ts/customers/getdashboardmaincard.d.ts +69 -0
  23. package/ts/customers/getdashboardmaincard.js +520 -0
  24. package/ts/customers/getkycweburl.d.ts +34 -0
  25. package/ts/customers/getkycweburl.js +104 -0
  26. package/ts/customers/getprofessionalinfo.d.ts +54 -0
  27. package/ts/customers/getprofessionalinfo.js +286 -0
  28. package/ts/customers/getprofile.d.ts +53 -0
  29. package/ts/customers/getprofile.js +282 -0
  30. package/ts/customers/getstates.d.ts +46 -0
  31. package/ts/customers/getstates.js +170 -0
  32. package/ts/customers/getstep.d.ts +69 -0
  33. package/ts/customers/getstep.js +406 -0
  34. package/ts/customers/profilebasic.d.ts +38 -0
  35. package/ts/customers/profilebasic.js +161 -0
  36. package/ts/customers/profileupdatetnc.d.ts +35 -0
  37. package/ts/customers/profileupdatetnc.js +117 -0
  38. package/ts/customers/resetmpin.d.ts +36 -0
  39. package/ts/customers/resetmpin.js +133 -0
  40. package/ts/customers/savebasicdetails.d.ts +47 -0
  41. package/ts/customers/savebasicdetails.js +185 -0
  42. package/ts/customers/saveunlocklimit.d.ts +34 -0
  43. package/ts/customers/saveunlocklimit.js +104 -0
  44. package/ts/customers/sendemailtoken.d.ts +35 -0
  45. package/ts/customers/sendemailtoken.js +117 -0
  46. package/ts/customers/sendotp.d.ts +38 -0
  47. package/ts/customers/sendotp.js +165 -0
  48. package/ts/customers/setmpin.d.ts +36 -0
  49. package/ts/customers/setmpin.js +133 -0
  50. package/ts/customers/step1.d.ts +71 -0
  51. package/ts/customers/step1.js +423 -0
  52. package/ts/customers/step10.d.ts +73 -0
  53. package/ts/customers/step10.js +459 -0
  54. package/ts/customers/step2.d.ts +67 -0
  55. package/ts/customers/step2.js +366 -0
  56. package/ts/customers/step7.d.ts +68 -0
  57. package/ts/customers/step7.js +381 -0
  58. package/ts/customers/step8.d.ts +69 -0
  59. package/ts/customers/step8.js +395 -0
  60. package/ts/customers/step9.d.ts +75 -0
  61. package/ts/customers/step9.js +489 -0
  62. package/ts/customers/stepstatic.d.ts +66 -0
  63. package/ts/customers/stepstatic.js +354 -0
  64. package/ts/customers/updatedigilockertxn.d.ts +37 -0
  65. package/ts/customers/updatedigilockertxn.js +147 -0
  66. package/ts/customers/updatedob.d.ts +35 -0
  67. package/ts/customers/updatedob.js +117 -0
  68. package/ts/customers/updatehypervergetxn.d.ts +36 -0
  69. package/ts/customers/updatehypervergetxn.js +133 -0
  70. package/ts/customers/verifyemail.d.ts +35 -0
  71. package/ts/customers/verifyemail.js +117 -0
  72. package/ts/customers/verifympin.d.ts +37 -0
  73. package/ts/customers/verifympin.js +149 -0
  74. package/ts/customers/verifyotp.d.ts +41 -0
  75. package/ts/customers/verifyotp.js +205 -0
  76. package/ts/customers.d.ts +582 -0
  77. package/ts/customers.js +418 -0
  78. package/ts/example.d.ts +78 -0
  79. package/ts/example.js +199 -0
  80. package/{src/ts/google/protobuf/timestamp.ts → ts/google/protobuf/timestamp.d.ts} +30 -126
  81. package/ts/google/protobuf/timestamp.js +97 -0
  82. package/ts/loans/approveloan.d.ts +39 -0
  83. package/ts/loans/approveloan.js +175 -0
  84. package/ts/loans/banklist.d.ts +37 -0
  85. package/ts/loans/banklist.js +148 -0
  86. package/ts/loans/calculateemi.d.ts +51 -0
  87. package/ts/loans/calculateemi.js +243 -0
  88. package/ts/loans/creditlimit.d.ts +43 -0
  89. package/ts/loans/creditlimit.js +247 -0
  90. package/ts/loans/restructureloan.d.ts +36 -0
  91. package/ts/loans/restructureloan.js +133 -0
  92. package/ts/loans/transactionlist.d.ts +50 -0
  93. package/ts/loans/transactionlist.js +229 -0
  94. package/ts/loans/updateinstallments.d.ts +42 -0
  95. package/ts/loans/updateinstallments.js +226 -0
  96. package/ts/loans/updateloan.d.ts +39 -0
  97. package/ts/loans/updateloan.js +175 -0
  98. package/ts/loans.d.ts +126 -0
  99. package/ts/loans.js +94 -0
  100. package/ts/stashcash/creditsc.d.ts +54 -0
  101. package/ts/stashcash/creditsc.js +301 -0
  102. package/ts/stashcash/debitsc.d.ts +59 -0
  103. package/ts/stashcash/debitsc.js +380 -0
  104. package/ts/stashcash/getscbalance.d.ts +53 -0
  105. package/ts/stashcash/getscbalance.js +293 -0
  106. package/ts/stashcash/getschistory.d.ts +73 -0
  107. package/ts/stashcash/getschistory.js +479 -0
  108. package/ts/stashcash/reversesc.d.ts +52 -0
  109. package/ts/stashcash/reversesc.js +273 -0
  110. package/ts/stashcash.d.ts +84 -0
  111. package/ts/stashcash.js +64 -0
  112. package/README.md +0 -74
  113. package/src/proto/customers/addaddress.proto +0 -25
  114. package/src/proto/customers/addbankaccountdetails.proto +0 -13
  115. package/src/proto/customers/createcustomerreference.proto +0 -21
  116. package/src/proto/customers/forgotmpin.proto +0 -12
  117. package/src/proto/customers/forgotmpinotp.proto +0 -10
  118. package/src/proto/customers/getbankaccountdetails.proto +0 -11
  119. package/src/proto/customers/getbasicinfo.proto +0 -24
  120. package/src/proto/customers/getcities.proto +0 -16
  121. package/src/proto/customers/getcustomerbyid.proto +0 -31
  122. package/src/proto/customers/getdashboard.proto +0 -47
  123. package/src/proto/customers/getdashboardmaincard.proto +0 -37
  124. package/src/proto/customers/getkycweburl.proto +0 -10
  125. package/src/proto/customers/getprofessionalinfo.proto +0 -22
  126. package/src/proto/customers/getprofile.proto +0 -22
  127. package/src/proto/customers/getstates.proto +0 -15
  128. package/src/proto/customers/getstep.proto +0 -30
  129. package/src/proto/customers/profilebasic.proto +0 -14
  130. package/src/proto/customers/profileupdatetnc.proto +0 -11
  131. package/src/proto/customers/resetmpin.proto +0 -13
  132. package/src/proto/customers/savebasicdetails.proto +0 -16
  133. package/src/proto/customers/saveunlocklimit.proto +0 -10
  134. package/src/proto/customers/sendemailtoken.proto +0 -11
  135. package/src/proto/customers/sendotp.proto +0 -14
  136. package/src/proto/customers/setmpin.proto +0 -12
  137. package/src/proto/customers/step10.proto +0 -34
  138. package/src/proto/customers/step7.proto +0 -29
  139. package/src/proto/customers/step8.proto +0 -30
  140. package/src/proto/customers/step9.proto +0 -36
  141. package/src/proto/customers/stepstatic.proto +0 -27
  142. package/src/proto/customers/updatedigilockertxn.proto +0 -13
  143. package/src/proto/customers/updatedob.proto +0 -13
  144. package/src/proto/customers/updatehypervergetxn.proto +0 -12
  145. package/src/proto/customers/verifyemail.proto +0 -11
  146. package/src/proto/customers/verifympin.proto +0 -13
  147. package/src/proto/customers/verifyotp.proto +0 -17
  148. package/src/proto/customers.proto +0 -83
  149. package/src/proto/example.proto +0 -20
  150. package/src/proto/loans/approveloan.proto +0 -15
  151. package/src/proto/loans/banklist.proto +0 -12
  152. package/src/proto/loans/calculateemi.proto +0 -20
  153. package/src/proto/loans/creditlimit.proto +0 -18
  154. package/src/proto/loans/restructureloan.proto +0 -12
  155. package/src/proto/loans/transactionlist.proto +0 -18
  156. package/src/proto/loans/updateinstallments.proto +0 -19
  157. package/src/proto/loans/updateloan.proto +0 -15
  158. package/src/proto/loans.proto +0 -23
  159. package/src/proto/stashcash/creditsc.proto +0 -22
  160. package/src/proto/stashcash/debitsc.proto +0 -27
  161. package/src/proto/stashcash/getscbalance.proto +0 -21
  162. package/src/proto/stashcash/getschistory.proto +0 -35
  163. package/src/proto/stashcash/reversesc.proto +0 -20
  164. package/src/proto/stashcash.proto +0 -17
  165. package/src/ts/customers/addaddress.ts +0 -310
  166. package/src/ts/customers/addbankaccountdetails.ts +0 -184
  167. package/src/ts/customers/createcustomerreference.ts +0 -276
  168. package/src/ts/customers/getbankaccountdetails.ts +0 -169
  169. package/src/ts/customers/getbasicinfo.ts +0 -385
  170. package/src/ts/customers/getcities.ts +0 -227
  171. package/src/ts/customers/getcustomerbyid.ts +0 -492
  172. package/src/ts/customers/getdashboard.ts +0 -728
  173. package/src/ts/customers/getdashboardmaincard.ts +0 -608
  174. package/src/ts/customers/getkycweburl.ts +0 -133
  175. package/src/ts/customers/getprofessionalinfo.ts +0 -344
  176. package/src/ts/customers/getprofile.ts +0 -338
  177. package/src/ts/customers/getstates.ts +0 -212
  178. package/src/ts/customers/getstep.ts +0 -483
  179. package/src/ts/customers/profilebasic.ts +0 -198
  180. package/src/ts/customers/profileupdatetnc.ts +0 -148
  181. package/src/ts/customers/resetmpin.ts +0 -166
  182. package/src/ts/customers/savebasicdetails.ts +0 -229
  183. package/src/ts/customers/saveunlocklimit.ts +0 -133
  184. package/src/ts/customers/sendemailtoken.ts +0 -148
  185. package/src/ts/customers/sendotp.ts +0 -202
  186. package/src/ts/customers/setmpin.ts +0 -166
  187. package/src/ts/customers/step10.ts +0 -544
  188. package/src/ts/customers/step7.ts +0 -456
  189. package/src/ts/customers/step8.ts +0 -472
  190. package/src/ts/customers/step9.ts +0 -578
  191. package/src/ts/customers/stepstatic.ts +0 -425
  192. package/src/ts/customers/updatedigilockertxn.ts +0 -182
  193. package/src/ts/customers/updatehypervergetxn.ts +0 -166
  194. package/src/ts/customers/verifyemail.ts +0 -148
  195. package/src/ts/customers/verifympin.ts +0 -184
  196. package/src/ts/customers/verifyotp.ts +0 -232
  197. package/src/ts/customers.ts +0 -1038
  198. package/src/ts/example.ts +0 -294
  199. package/src/ts/loans/approveloan.ts +0 -214
  200. package/src/ts/loans/banklist.ts +0 -183
  201. package/src/ts/loans/calculateemi.ts +0 -295
  202. package/src/ts/loans/creditlimit.ts +0 -294
  203. package/src/ts/loans/restructureloan.ts +0 -166
  204. package/src/ts/loans/transactionlist.ts +0 -281
  205. package/src/ts/loans/updateinstallments.ts +0 -271
  206. package/src/ts/loans/updateloan.ts +0 -214
  207. package/src/ts/loans.ts +0 -221
  208. package/src/ts/stashcash/creditsc.ts +0 -361
  209. package/src/ts/stashcash/debitsc.ts +0 -450
  210. package/src/ts/stashcash/getscbalance.ts +0 -351
  211. package/src/ts/stashcash/getschistory.ts +0 -566
  212. package/src/ts/stashcash/reversesc.ts +0 -329
  213. package/src/ts/stashcash.ts +0 -152
  214. package/tsconfig.json +0 -18
@@ -1,425 +0,0 @@
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: customers/stepstatic.proto
6
-
7
- /* eslint-disable */
8
- import _m0 from "protobufjs/minimal";
9
-
10
- export const protobufPackage = "customers.stepstatic";
11
-
12
- export interface stepstaticRequest {
13
- }
14
-
15
- export interface Validation {
16
- key: string;
17
- value: string;
18
- message: string;
19
- }
20
-
21
- export interface stepstaticResponse {
22
- page: string;
23
- type: string;
24
- button_text: string;
25
- data: stepstaticResponse_Field[];
26
- }
27
-
28
- export interface stepstaticResponse_Field {
29
- label: string;
30
- key: string;
31
- input_type: string;
32
- data_type: string;
33
- icon: string;
34
- validations: Validation[];
35
- }
36
-
37
- function createBasestepstaticRequest(): stepstaticRequest {
38
- return {};
39
- }
40
-
41
- export const stepstaticRequest = {
42
- encode(_: stepstaticRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
43
- return writer;
44
- },
45
-
46
- decode(input: _m0.Reader | Uint8Array, length?: number): stepstaticRequest {
47
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
48
- let end = length === undefined ? reader.len : reader.pos + length;
49
- const message = createBasestepstaticRequest();
50
- while (reader.pos < end) {
51
- const tag = reader.uint32();
52
- switch (tag >>> 3) {
53
- }
54
- if ((tag & 7) === 4 || tag === 0) {
55
- break;
56
- }
57
- reader.skipType(tag & 7);
58
- }
59
- return message;
60
- },
61
-
62
- fromJSON(_: any): stepstaticRequest {
63
- return {};
64
- },
65
-
66
- toJSON(_: stepstaticRequest): unknown {
67
- const obj: any = {};
68
- return obj;
69
- },
70
-
71
- create<I extends Exact<DeepPartial<stepstaticRequest>, I>>(base?: I): stepstaticRequest {
72
- return stepstaticRequest.fromPartial(base ?? ({} as any));
73
- },
74
- fromPartial<I extends Exact<DeepPartial<stepstaticRequest>, I>>(_: I): stepstaticRequest {
75
- const message = createBasestepstaticRequest();
76
- return message;
77
- },
78
- };
79
-
80
- function createBaseValidation(): Validation {
81
- return { key: "", value: "", message: "" };
82
- }
83
-
84
- export const Validation = {
85
- encode(message: Validation, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
86
- if (message.key !== "") {
87
- writer.uint32(10).string(message.key);
88
- }
89
- if (message.value !== "") {
90
- writer.uint32(18).string(message.value);
91
- }
92
- if (message.message !== "") {
93
- writer.uint32(26).string(message.message);
94
- }
95
- return writer;
96
- },
97
-
98
- decode(input: _m0.Reader | Uint8Array, length?: number): Validation {
99
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
100
- let end = length === undefined ? reader.len : reader.pos + length;
101
- const message = createBaseValidation();
102
- while (reader.pos < end) {
103
- const tag = reader.uint32();
104
- switch (tag >>> 3) {
105
- case 1:
106
- if (tag !== 10) {
107
- break;
108
- }
109
-
110
- message.key = reader.string();
111
- continue;
112
- case 2:
113
- if (tag !== 18) {
114
- break;
115
- }
116
-
117
- message.value = reader.string();
118
- continue;
119
- case 3:
120
- if (tag !== 26) {
121
- break;
122
- }
123
-
124
- message.message = reader.string();
125
- continue;
126
- }
127
- if ((tag & 7) === 4 || tag === 0) {
128
- break;
129
- }
130
- reader.skipType(tag & 7);
131
- }
132
- return message;
133
- },
134
-
135
- fromJSON(object: any): Validation {
136
- return {
137
- key: isSet(object.key) ? globalThis.String(object.key) : "",
138
- value: isSet(object.value) ? globalThis.String(object.value) : "",
139
- message: isSet(object.message) ? globalThis.String(object.message) : "",
140
- };
141
- },
142
-
143
- toJSON(message: Validation): unknown {
144
- const obj: any = {};
145
- if (message.key !== "") {
146
- obj.key = message.key;
147
- }
148
- if (message.value !== "") {
149
- obj.value = message.value;
150
- }
151
- if (message.message !== "") {
152
- obj.message = message.message;
153
- }
154
- return obj;
155
- },
156
-
157
- create<I extends Exact<DeepPartial<Validation>, I>>(base?: I): Validation {
158
- return Validation.fromPartial(base ?? ({} as any));
159
- },
160
- fromPartial<I extends Exact<DeepPartial<Validation>, I>>(object: I): Validation {
161
- const message = createBaseValidation();
162
- message.key = object.key ?? "";
163
- message.value = object.value ?? "";
164
- message.message = object.message ?? "";
165
- return message;
166
- },
167
- };
168
-
169
- function createBasestepstaticResponse(): stepstaticResponse {
170
- return { page: "", type: "", button_text: "", data: [] };
171
- }
172
-
173
- export const stepstaticResponse = {
174
- encode(message: stepstaticResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
175
- if (message.page !== "") {
176
- writer.uint32(10).string(message.page);
177
- }
178
- if (message.type !== "") {
179
- writer.uint32(18).string(message.type);
180
- }
181
- if (message.button_text !== "") {
182
- writer.uint32(26).string(message.button_text);
183
- }
184
- for (const v of message.data) {
185
- stepstaticResponse_Field.encode(v!, writer.uint32(34).fork()).ldelim();
186
- }
187
- return writer;
188
- },
189
-
190
- decode(input: _m0.Reader | Uint8Array, length?: number): stepstaticResponse {
191
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
192
- let end = length === undefined ? reader.len : reader.pos + length;
193
- const message = createBasestepstaticResponse();
194
- while (reader.pos < end) {
195
- const tag = reader.uint32();
196
- switch (tag >>> 3) {
197
- case 1:
198
- if (tag !== 10) {
199
- break;
200
- }
201
-
202
- message.page = reader.string();
203
- continue;
204
- case 2:
205
- if (tag !== 18) {
206
- break;
207
- }
208
-
209
- message.type = reader.string();
210
- continue;
211
- case 3:
212
- if (tag !== 26) {
213
- break;
214
- }
215
-
216
- message.button_text = reader.string();
217
- continue;
218
- case 4:
219
- if (tag !== 34) {
220
- break;
221
- }
222
-
223
- message.data.push(stepstaticResponse_Field.decode(reader, reader.uint32()));
224
- continue;
225
- }
226
- if ((tag & 7) === 4 || tag === 0) {
227
- break;
228
- }
229
- reader.skipType(tag & 7);
230
- }
231
- return message;
232
- },
233
-
234
- fromJSON(object: any): stepstaticResponse {
235
- return {
236
- page: isSet(object.page) ? globalThis.String(object.page) : "",
237
- type: isSet(object.type) ? globalThis.String(object.type) : "",
238
- button_text: isSet(object.button_text) ? globalThis.String(object.button_text) : "",
239
- data: globalThis.Array.isArray(object?.data)
240
- ? object.data.map((e: any) => stepstaticResponse_Field.fromJSON(e))
241
- : [],
242
- };
243
- },
244
-
245
- toJSON(message: stepstaticResponse): unknown {
246
- const obj: any = {};
247
- if (message.page !== "") {
248
- obj.page = message.page;
249
- }
250
- if (message.type !== "") {
251
- obj.type = message.type;
252
- }
253
- if (message.button_text !== "") {
254
- obj.button_text = message.button_text;
255
- }
256
- if (message.data?.length) {
257
- obj.data = message.data.map((e) => stepstaticResponse_Field.toJSON(e));
258
- }
259
- return obj;
260
- },
261
-
262
- create<I extends Exact<DeepPartial<stepstaticResponse>, I>>(base?: I): stepstaticResponse {
263
- return stepstaticResponse.fromPartial(base ?? ({} as any));
264
- },
265
- fromPartial<I extends Exact<DeepPartial<stepstaticResponse>, I>>(object: I): stepstaticResponse {
266
- const message = createBasestepstaticResponse();
267
- message.page = object.page ?? "";
268
- message.type = object.type ?? "";
269
- message.button_text = object.button_text ?? "";
270
- message.data = object.data?.map((e) => stepstaticResponse_Field.fromPartial(e)) || [];
271
- return message;
272
- },
273
- };
274
-
275
- function createBasestepstaticResponse_Field(): stepstaticResponse_Field {
276
- return { label: "", key: "", input_type: "", data_type: "", icon: "", validations: [] };
277
- }
278
-
279
- export const stepstaticResponse_Field = {
280
- encode(message: stepstaticResponse_Field, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
281
- if (message.label !== "") {
282
- writer.uint32(10).string(message.label);
283
- }
284
- if (message.key !== "") {
285
- writer.uint32(18).string(message.key);
286
- }
287
- if (message.input_type !== "") {
288
- writer.uint32(26).string(message.input_type);
289
- }
290
- if (message.data_type !== "") {
291
- writer.uint32(34).string(message.data_type);
292
- }
293
- if (message.icon !== "") {
294
- writer.uint32(42).string(message.icon);
295
- }
296
- for (const v of message.validations) {
297
- Validation.encode(v!, writer.uint32(58).fork()).ldelim();
298
- }
299
- return writer;
300
- },
301
-
302
- decode(input: _m0.Reader | Uint8Array, length?: number): stepstaticResponse_Field {
303
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
304
- let end = length === undefined ? reader.len : reader.pos + length;
305
- const message = createBasestepstaticResponse_Field();
306
- while (reader.pos < end) {
307
- const tag = reader.uint32();
308
- switch (tag >>> 3) {
309
- case 1:
310
- if (tag !== 10) {
311
- break;
312
- }
313
-
314
- message.label = reader.string();
315
- continue;
316
- case 2:
317
- if (tag !== 18) {
318
- break;
319
- }
320
-
321
- message.key = reader.string();
322
- continue;
323
- case 3:
324
- if (tag !== 26) {
325
- break;
326
- }
327
-
328
- message.input_type = reader.string();
329
- continue;
330
- case 4:
331
- if (tag !== 34) {
332
- break;
333
- }
334
-
335
- message.data_type = reader.string();
336
- continue;
337
- case 5:
338
- if (tag !== 42) {
339
- break;
340
- }
341
-
342
- message.icon = reader.string();
343
- continue;
344
- case 7:
345
- if (tag !== 58) {
346
- break;
347
- }
348
-
349
- message.validations.push(Validation.decode(reader, reader.uint32()));
350
- continue;
351
- }
352
- if ((tag & 7) === 4 || tag === 0) {
353
- break;
354
- }
355
- reader.skipType(tag & 7);
356
- }
357
- return message;
358
- },
359
-
360
- fromJSON(object: any): stepstaticResponse_Field {
361
- return {
362
- label: isSet(object.label) ? globalThis.String(object.label) : "",
363
- key: isSet(object.key) ? globalThis.String(object.key) : "",
364
- input_type: isSet(object.input_type) ? globalThis.String(object.input_type) : "",
365
- data_type: isSet(object.data_type) ? globalThis.String(object.data_type) : "",
366
- icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
367
- validations: globalThis.Array.isArray(object?.validations)
368
- ? object.validations.map((e: any) => Validation.fromJSON(e))
369
- : [],
370
- };
371
- },
372
-
373
- toJSON(message: stepstaticResponse_Field): unknown {
374
- const obj: any = {};
375
- if (message.label !== "") {
376
- obj.label = message.label;
377
- }
378
- if (message.key !== "") {
379
- obj.key = message.key;
380
- }
381
- if (message.input_type !== "") {
382
- obj.input_type = message.input_type;
383
- }
384
- if (message.data_type !== "") {
385
- obj.data_type = message.data_type;
386
- }
387
- if (message.icon !== "") {
388
- obj.icon = message.icon;
389
- }
390
- if (message.validations?.length) {
391
- obj.validations = message.validations.map((e) => Validation.toJSON(e));
392
- }
393
- return obj;
394
- },
395
-
396
- create<I extends Exact<DeepPartial<stepstaticResponse_Field>, I>>(base?: I): stepstaticResponse_Field {
397
- return stepstaticResponse_Field.fromPartial(base ?? ({} as any));
398
- },
399
- fromPartial<I extends Exact<DeepPartial<stepstaticResponse_Field>, I>>(object: I): stepstaticResponse_Field {
400
- const message = createBasestepstaticResponse_Field();
401
- message.label = object.label ?? "";
402
- message.key = object.key ?? "";
403
- message.input_type = object.input_type ?? "";
404
- message.data_type = object.data_type ?? "";
405
- message.icon = object.icon ?? "";
406
- message.validations = object.validations?.map((e) => Validation.fromPartial(e)) || [];
407
- return message;
408
- },
409
- };
410
-
411
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
412
-
413
- export type DeepPartial<T> = T extends Builtin ? T
414
- : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
415
- : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
416
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
417
- : Partial<T>;
418
-
419
- type KeysOfUnion<T> = T extends T ? keyof T : never;
420
- export type Exact<P, I extends P> = P extends Builtin ? P
421
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
422
-
423
- function isSet(value: any): boolean {
424
- return value !== null && value !== undefined;
425
- }
@@ -1,182 +0,0 @@
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: customers/updatedigilockertxn.proto
6
-
7
- /* eslint-disable */
8
- import _m0 from "protobufjs/minimal";
9
-
10
- export const protobufPackage = "customers.updatedigilockertxn";
11
-
12
- export interface updateDigiLockerTxnRequest {
13
- payload: string;
14
- transactionId: string;
15
- status: string;
16
- }
17
-
18
- export interface updateDigiLockerTxnResponse {
19
- status: boolean;
20
- }
21
-
22
- function createBaseupdateDigiLockerTxnRequest(): updateDigiLockerTxnRequest {
23
- return { payload: "", transactionId: "", status: "" };
24
- }
25
-
26
- export const updateDigiLockerTxnRequest = {
27
- encode(message: updateDigiLockerTxnRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
28
- if (message.payload !== "") {
29
- writer.uint32(10).string(message.payload);
30
- }
31
- if (message.transactionId !== "") {
32
- writer.uint32(18).string(message.transactionId);
33
- }
34
- if (message.status !== "") {
35
- writer.uint32(26).string(message.status);
36
- }
37
- return writer;
38
- },
39
-
40
- decode(input: _m0.Reader | Uint8Array, length?: number): updateDigiLockerTxnRequest {
41
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
42
- let end = length === undefined ? reader.len : reader.pos + length;
43
- const message = createBaseupdateDigiLockerTxnRequest();
44
- while (reader.pos < end) {
45
- const tag = reader.uint32();
46
- switch (tag >>> 3) {
47
- case 1:
48
- if (tag !== 10) {
49
- break;
50
- }
51
-
52
- message.payload = reader.string();
53
- continue;
54
- case 2:
55
- if (tag !== 18) {
56
- break;
57
- }
58
-
59
- message.transactionId = reader.string();
60
- continue;
61
- case 3:
62
- if (tag !== 26) {
63
- break;
64
- }
65
-
66
- message.status = reader.string();
67
- continue;
68
- }
69
- if ((tag & 7) === 4 || tag === 0) {
70
- break;
71
- }
72
- reader.skipType(tag & 7);
73
- }
74
- return message;
75
- },
76
-
77
- fromJSON(object: any): updateDigiLockerTxnRequest {
78
- return {
79
- payload: isSet(object.payload) ? globalThis.String(object.payload) : "",
80
- transactionId: isSet(object.transactionId) ? globalThis.String(object.transactionId) : "",
81
- status: isSet(object.status) ? globalThis.String(object.status) : "",
82
- };
83
- },
84
-
85
- toJSON(message: updateDigiLockerTxnRequest): unknown {
86
- const obj: any = {};
87
- if (message.payload !== "") {
88
- obj.payload = message.payload;
89
- }
90
- if (message.transactionId !== "") {
91
- obj.transactionId = message.transactionId;
92
- }
93
- if (message.status !== "") {
94
- obj.status = message.status;
95
- }
96
- return obj;
97
- },
98
-
99
- create<I extends Exact<DeepPartial<updateDigiLockerTxnRequest>, I>>(base?: I): updateDigiLockerTxnRequest {
100
- return updateDigiLockerTxnRequest.fromPartial(base ?? ({} as any));
101
- },
102
- fromPartial<I extends Exact<DeepPartial<updateDigiLockerTxnRequest>, I>>(object: I): updateDigiLockerTxnRequest {
103
- const message = createBaseupdateDigiLockerTxnRequest();
104
- message.payload = object.payload ?? "";
105
- message.transactionId = object.transactionId ?? "";
106
- message.status = object.status ?? "";
107
- return message;
108
- },
109
- };
110
-
111
- function createBaseupdateDigiLockerTxnResponse(): updateDigiLockerTxnResponse {
112
- return { status: false };
113
- }
114
-
115
- export const updateDigiLockerTxnResponse = {
116
- encode(message: updateDigiLockerTxnResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
117
- if (message.status !== false) {
118
- writer.uint32(8).bool(message.status);
119
- }
120
- return writer;
121
- },
122
-
123
- decode(input: _m0.Reader | Uint8Array, length?: number): updateDigiLockerTxnResponse {
124
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
125
- let end = length === undefined ? reader.len : reader.pos + length;
126
- const message = createBaseupdateDigiLockerTxnResponse();
127
- while (reader.pos < end) {
128
- const tag = reader.uint32();
129
- switch (tag >>> 3) {
130
- case 1:
131
- if (tag !== 8) {
132
- break;
133
- }
134
-
135
- message.status = reader.bool();
136
- continue;
137
- }
138
- if ((tag & 7) === 4 || tag === 0) {
139
- break;
140
- }
141
- reader.skipType(tag & 7);
142
- }
143
- return message;
144
- },
145
-
146
- fromJSON(object: any): updateDigiLockerTxnResponse {
147
- return { status: isSet(object.status) ? globalThis.Boolean(object.status) : false };
148
- },
149
-
150
- toJSON(message: updateDigiLockerTxnResponse): unknown {
151
- const obj: any = {};
152
- if (message.status !== false) {
153
- obj.status = message.status;
154
- }
155
- return obj;
156
- },
157
-
158
- create<I extends Exact<DeepPartial<updateDigiLockerTxnResponse>, I>>(base?: I): updateDigiLockerTxnResponse {
159
- return updateDigiLockerTxnResponse.fromPartial(base ?? ({} as any));
160
- },
161
- fromPartial<I extends Exact<DeepPartial<updateDigiLockerTxnResponse>, I>>(object: I): updateDigiLockerTxnResponse {
162
- const message = createBaseupdateDigiLockerTxnResponse();
163
- message.status = object.status ?? false;
164
- return message;
165
- },
166
- };
167
-
168
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
169
-
170
- export type DeepPartial<T> = T extends Builtin ? T
171
- : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
172
- : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
173
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
174
- : Partial<T>;
175
-
176
- type KeysOfUnion<T> = T extends T ? keyof T : never;
177
- export type Exact<P, I extends P> = P extends Builtin ? P
178
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
179
-
180
- function isSet(value: any): boolean {
181
- return value !== null && value !== undefined;
182
- }