@stashfin/grpc 1.2.54 → 1.2.59

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