@stashfin/grpc 1.2.169 → 1.2.170

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 (189) hide show
  1. package/package.json +1 -1
  2. package/ts/bureau/getbasicdetails.d.ts +57 -0
  3. package/ts/bureau/getbasicdetails.js +341 -0
  4. package/ts/bureau/getdemogs.d.ts +113 -0
  5. package/ts/bureau/getdemogs.js +611 -0
  6. package/ts/bureau/getreport.d.ts +188 -0
  7. package/ts/bureau/getreport.js +1640 -0
  8. package/ts/bureau.d.ts +56 -0
  9. package/ts/bureau.js +44 -0
  10. package/ts/colender/disburseLoan.d.ts +44 -0
  11. package/ts/colender/disburseLoan.js +256 -0
  12. package/ts/colender/forecloseLoan.d.ts +41 -0
  13. package/ts/colender/forecloseLoan.js +205 -0
  14. package/ts/colender/repayLoan.d.ts +48 -0
  15. package/ts/colender/repayLoan.js +313 -0
  16. package/ts/colender.d.ts +56 -0
  17. package/ts/colender.js +44 -0
  18. package/ts/customers/aa/getbanklist.d.ts +48 -0
  19. package/ts/customers/aa/getbanklist.js +198 -0
  20. package/ts/customers/aa/initiate.d.ts +40 -0
  21. package/ts/customers/aa/initiate.js +209 -0
  22. package/ts/customers/addaddress.d.ts +50 -0
  23. package/ts/customers/addaddress.js +265 -0
  24. package/ts/customers/addbankaccountdetails.d.ts +37 -0
  25. package/ts/customers/addbankaccountdetails.js +147 -0
  26. package/ts/customers/addfathersname.d.ts +35 -0
  27. package/ts/customers/addfathersname.js +117 -0
  28. package/ts/customers/addgstnumber.d.ts +35 -0
  29. package/ts/customers/addgstnumber.js +117 -0
  30. package/ts/customers/addmoredetails.d.ts +60 -0
  31. package/ts/customers/addmoredetails.js +314 -0
  32. package/ts/customers/addsuspendedcustomer.d.ts +36 -0
  33. package/ts/customers/addsuspendedcustomer.js +133 -0
  34. package/ts/customers/adduserapps.d.ts +74 -0
  35. package/ts/customers/adduserapps.js +210 -0
  36. package/ts/customers/bulksms.d.ts +48 -0
  37. package/ts/customers/bulksms.js +201 -0
  38. package/ts/customers/changempin.d.ts +36 -0
  39. package/ts/customers/changempin.js +133 -0
  40. package/ts/customers/createcustomerreference.d.ts +43 -0
  41. package/ts/customers/createcustomerreference.js +226 -0
  42. package/ts/customers/deleteprofile.d.ts +35 -0
  43. package/ts/customers/deleteprofile.js +120 -0
  44. package/ts/customers/disablempin.d.ts +34 -0
  45. package/ts/customers/disablempin.js +104 -0
  46. package/ts/customers/fetchrcprofile.d.ts +45 -0
  47. package/ts/customers/fetchrcprofile.js +271 -0
  48. package/ts/customers/forgotmpin.d.ts +35 -0
  49. package/ts/customers/forgotmpin.js +117 -0
  50. package/ts/customers/forgotmpinverify.d.ts +36 -0
  51. package/ts/customers/forgotmpinverify.js +133 -0
  52. package/ts/customers/getbankaccountdetails.d.ts +37 -0
  53. package/ts/customers/getbankaccountdetails.js +148 -0
  54. package/ts/customers/getbasicinfo.d.ts +56 -0
  55. package/ts/customers/getbasicinfo.js +323 -0
  56. package/ts/customers/getcities.d.ts +47 -0
  57. package/ts/customers/getcities.js +183 -0
  58. package/ts/customers/getcompanyaccdetails.d.ts +37 -0
  59. package/ts/customers/getcompanyaccdetails.js +148 -0
  60. package/ts/customers/getcustomerbyid.d.ts +142 -0
  61. package/ts/customers/getcustomerbyid.js +1521 -0
  62. package/ts/customers/getdashboard.d.ts +88 -0
  63. package/ts/customers/getdashboard.js +574 -0
  64. package/ts/customers/getdashboardmaincard.d.ts +70 -0
  65. package/ts/customers/getdashboardmaincard.js +534 -0
  66. package/ts/customers/getdocuments.d.ts +46 -0
  67. package/ts/customers/getdocuments.js +174 -0
  68. package/ts/customers/getlimit.d.ts +37 -0
  69. package/ts/customers/getlimit.js +148 -0
  70. package/ts/customers/getprofessionalinfo.d.ts +54 -0
  71. package/ts/customers/getprofessionalinfo.js +286 -0
  72. package/ts/customers/getprofile.d.ts +54 -0
  73. package/ts/customers/getprofile.js +296 -0
  74. package/ts/customers/getselfieetxnid.d.ts +34 -0
  75. package/ts/customers/getselfieetxnid.js +104 -0
  76. package/ts/customers/getstates.d.ts +46 -0
  77. package/ts/customers/getstates.js +170 -0
  78. package/ts/customers/getstep.d.ts +69 -0
  79. package/ts/customers/getstep.js +406 -0
  80. package/ts/customers/logout.d.ts +34 -0
  81. package/ts/customers/logout.js +104 -0
  82. package/ts/customers/profilebasic.d.ts +40 -0
  83. package/ts/customers/profilebasic.js +189 -0
  84. package/ts/customers/profileupdatetnc.d.ts +35 -0
  85. package/ts/customers/profileupdatetnc.js +117 -0
  86. package/ts/customers/savebasicdetails.d.ts +47 -0
  87. package/ts/customers/savebasicdetails.js +185 -0
  88. package/ts/customers/saveunlocklimit.d.ts +34 -0
  89. package/ts/customers/saveunlocklimit.js +104 -0
  90. package/ts/customers/sendotp.d.ts +38 -0
  91. package/ts/customers/sendotp.js +165 -0
  92. package/ts/customers/sendotptoemail.d.ts +35 -0
  93. package/ts/customers/sendotptoemail.js +117 -0
  94. package/ts/customers/setmpin.d.ts +36 -0
  95. package/ts/customers/setmpin.js +133 -0
  96. package/ts/customers/skipscreen.d.ts +44 -0
  97. package/ts/customers/skipscreen.js +162 -0
  98. package/ts/customers/updatecustomerbyid.d.ts +48 -0
  99. package/ts/customers/updatecustomerbyid.js +201 -0
  100. package/ts/customers/updatedlnumber.d.ts +35 -0
  101. package/ts/customers/updatedlnumber.js +119 -0
  102. package/ts/customers/updatedob.d.ts +35 -0
  103. package/ts/customers/updatedob.js +117 -0
  104. package/ts/customers/updatelocstatus.d.ts +36 -0
  105. package/ts/customers/updatelocstatus.js +133 -0
  106. package/ts/customers/updatemobilesendotp.d.ts +35 -0
  107. package/ts/customers/updatemobilesendotp.js +117 -0
  108. package/ts/customers/updatemobileverifyotp.d.ts +36 -0
  109. package/ts/customers/updatemobileverifyotp.js +133 -0
  110. package/ts/customers/updateokyctxn.d.ts +37 -0
  111. package/ts/customers/updateokyctxn.js +147 -0
  112. package/ts/customers/updateselfieetxn.d.ts +36 -0
  113. package/ts/customers/updateselfieetxn.js +133 -0
  114. package/ts/customers/updatevehiclenumber.d.ts +35 -0
  115. package/ts/customers/updatevehiclenumber.js +117 -0
  116. package/ts/customers/uploaddocuments.d.ts +37 -0
  117. package/ts/customers/uploaddocuments.js +172 -0
  118. package/ts/customers/validatepan.d.ts +45 -0
  119. package/ts/customers/validatepan.js +274 -0
  120. package/ts/customers/verifympin.d.ts +37 -0
  121. package/ts/customers/verifympin.js +149 -0
  122. package/ts/customers/verifyotp.d.ts +41 -0
  123. package/ts/customers/verifyotp.js +205 -0
  124. package/ts/customers/verifyotptoemail.d.ts +35 -0
  125. package/ts/customers/verifyotptoemail.js +117 -0
  126. package/ts/customers.d.ts +796 -0
  127. package/ts/customers.js +572 -0
  128. package/ts/example.d.ts +78 -0
  129. package/ts/example.js +199 -0
  130. package/ts/growth/processchrpayment.d.ts +40 -0
  131. package/ts/growth/processchrpayment.js +205 -0
  132. package/ts/growth.d.ts +28 -0
  133. package/ts/growth.js +24 -0
  134. package/ts/loans/approveloan.d.ts +81 -0
  135. package/ts/loans/approveloan.js +703 -0
  136. package/ts/loans/banklist.d.ts +37 -0
  137. package/ts/loans/banklist.js +148 -0
  138. package/ts/loans/calculateemi.d.ts +57 -0
  139. package/ts/loans/calculateemi.js +340 -0
  140. package/ts/loans/creditlimit.d.ts +51 -0
  141. package/ts/loans/creditlimit.js +381 -0
  142. package/ts/loans/futurepaymentmoredetails.d.ts +50 -0
  143. package/ts/loans/futurepaymentmoredetails.js +230 -0
  144. package/ts/loans/getbilldetails.d.ts +38 -0
  145. package/ts/loans/getbilldetails.js +161 -0
  146. package/ts/loans/getcustomerloanstatus.d.ts +34 -0
  147. package/ts/loans/getcustomerloanstatus.js +104 -0
  148. package/ts/loans/getloanbyid.d.ts +48 -0
  149. package/ts/loans/getloanbyid.js +318 -0
  150. package/ts/loans/getnextdueamount.d.ts +34 -0
  151. package/ts/loans/getnextdueamount.js +104 -0
  152. package/ts/loans/getpendingemiamount.d.ts +34 -0
  153. package/ts/loans/getpendingemiamount.js +104 -0
  154. package/ts/loans/getsummarystaticfields.d.ts +80 -0
  155. package/ts/loans/getsummarystaticfields.js +700 -0
  156. package/ts/loans/loansummary.d.ts +66 -0
  157. package/ts/loans/loansummary.js +593 -0
  158. package/ts/loans/paymentallocation.d.ts +38 -0
  159. package/ts/loans/paymentallocation.js +161 -0
  160. package/ts/loans/paymenthistory.d.ts +47 -0
  161. package/ts/loans/paymenthistory.js +188 -0
  162. package/ts/loans/restructureloan.d.ts +36 -0
  163. package/ts/loans/restructureloan.js +133 -0
  164. package/ts/loans/sendemail.d.ts +35 -0
  165. package/ts/loans/sendemail.js +117 -0
  166. package/ts/loans/sendnocemail.d.ts +35 -0
  167. package/ts/loans/sendnocemail.js +117 -0
  168. package/ts/loans/transactionlist.d.ts +52 -0
  169. package/ts/loans/transactionlist.js +257 -0
  170. package/ts/loans/updateinstallments.d.ts +42 -0
  171. package/ts/loans/updateinstallments.js +226 -0
  172. package/ts/loans/updateloan.d.ts +37 -0
  173. package/ts/loans/updateloan.js +147 -0
  174. package/ts/loans.d.ts +294 -0
  175. package/ts/loans.js +214 -0
  176. package/ts/payments.d.ts +239 -0
  177. package/ts/payments.js +1117 -0
  178. package/ts/stashcash/creditsc.d.ts +54 -0
  179. package/ts/stashcash/creditsc.js +301 -0
  180. package/ts/stashcash/debitsc.d.ts +59 -0
  181. package/ts/stashcash/debitsc.js +380 -0
  182. package/ts/stashcash/getscbalance.d.ts +53 -0
  183. package/ts/stashcash/getscbalance.js +293 -0
  184. package/ts/stashcash/getschistory.d.ts +73 -0
  185. package/ts/stashcash/getschistory.js +479 -0
  186. package/ts/stashcash/reversesc.d.ts +52 -0
  187. package/ts/stashcash/reversesc.js +273 -0
  188. package/ts/stashcash.d.ts +84 -0
  189. package/ts/stashcash.js +64 -0
@@ -0,0 +1,41 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "customers.verifyotp";
3
+ export interface verifyOtpReqeust {
4
+ mobile: string;
5
+ device_id: string;
6
+ otp: string;
7
+ token: string;
8
+ tnc: boolean;
9
+ is_rooted: boolean;
10
+ }
11
+ export interface verifyOtpResponse {
12
+ ismpin: boolean;
13
+ jwttoken: string;
14
+ }
15
+ export declare const verifyOtpReqeust: {
16
+ encode(message: verifyOtpReqeust, writer?: _m0.Writer): _m0.Writer;
17
+ decode(input: _m0.Reader | Uint8Array, length?: number): verifyOtpReqeust;
18
+ fromJSON(object: any): verifyOtpReqeust;
19
+ toJSON(message: verifyOtpReqeust): unknown;
20
+ create<I extends Exact<DeepPartial<verifyOtpReqeust>, I>>(base?: I): verifyOtpReqeust;
21
+ fromPartial<I extends Exact<DeepPartial<verifyOtpReqeust>, I>>(object: I): verifyOtpReqeust;
22
+ };
23
+ export declare const verifyOtpResponse: {
24
+ encode(message: verifyOtpResponse, writer?: _m0.Writer): _m0.Writer;
25
+ decode(input: _m0.Reader | Uint8Array, length?: number): verifyOtpResponse;
26
+ fromJSON(object: any): verifyOtpResponse;
27
+ toJSON(message: verifyOtpResponse): unknown;
28
+ create<I extends Exact<DeepPartial<verifyOtpResponse>, I>>(base?: I): verifyOtpResponse;
29
+ fromPartial<I extends Exact<DeepPartial<verifyOtpResponse>, I>>(object: I): verifyOtpResponse;
30
+ };
31
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
32
+ 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 {} ? {
33
+ [K in keyof T]?: DeepPartial<T[K]>;
34
+ } : Partial<T>;
35
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
36
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
37
+ [K in keyof P]: Exact<P[K], I[K]>;
38
+ } & {
39
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
40
+ };
41
+ export {};
@@ -0,0 +1,205 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.0
5
+ // protoc v5.27.4
6
+ // source: customers/verifyotp.proto
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9
+ };
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.verifyOtpResponse = exports.verifyOtpReqeust = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "customers.verifyotp";
15
+ function createBaseverifyOtpReqeust() {
16
+ return { mobile: "", device_id: "", otp: "", token: "", tnc: false, is_rooted: false };
17
+ }
18
+ exports.verifyOtpReqeust = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.mobile !== "") {
21
+ writer.uint32(10).string(message.mobile);
22
+ }
23
+ if (message.device_id !== "") {
24
+ writer.uint32(18).string(message.device_id);
25
+ }
26
+ if (message.otp !== "") {
27
+ writer.uint32(26).string(message.otp);
28
+ }
29
+ if (message.token !== "") {
30
+ writer.uint32(34).string(message.token);
31
+ }
32
+ if (message.tnc !== false) {
33
+ writer.uint32(40).bool(message.tnc);
34
+ }
35
+ if (message.is_rooted !== false) {
36
+ writer.uint32(48).bool(message.is_rooted);
37
+ }
38
+ return writer;
39
+ },
40
+ decode(input, length) {
41
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
42
+ let end = length === undefined ? reader.len : reader.pos + length;
43
+ const message = createBaseverifyOtpReqeust();
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
+ message.mobile = reader.string();
52
+ continue;
53
+ case 2:
54
+ if (tag !== 18) {
55
+ break;
56
+ }
57
+ message.device_id = reader.string();
58
+ continue;
59
+ case 3:
60
+ if (tag !== 26) {
61
+ break;
62
+ }
63
+ message.otp = reader.string();
64
+ continue;
65
+ case 4:
66
+ if (tag !== 34) {
67
+ break;
68
+ }
69
+ message.token = reader.string();
70
+ continue;
71
+ case 5:
72
+ if (tag !== 40) {
73
+ break;
74
+ }
75
+ message.tnc = reader.bool();
76
+ continue;
77
+ case 6:
78
+ if (tag !== 48) {
79
+ break;
80
+ }
81
+ message.is_rooted = reader.bool();
82
+ continue;
83
+ }
84
+ if ((tag & 7) === 4 || tag === 0) {
85
+ break;
86
+ }
87
+ reader.skipType(tag & 7);
88
+ }
89
+ return message;
90
+ },
91
+ fromJSON(object) {
92
+ return {
93
+ mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
94
+ device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
95
+ otp: isSet(object.otp) ? globalThis.String(object.otp) : "",
96
+ token: isSet(object.token) ? globalThis.String(object.token) : "",
97
+ tnc: isSet(object.tnc) ? globalThis.Boolean(object.tnc) : false,
98
+ is_rooted: isSet(object.is_rooted) ? globalThis.Boolean(object.is_rooted) : false,
99
+ };
100
+ },
101
+ toJSON(message) {
102
+ const obj = {};
103
+ if (message.mobile !== "") {
104
+ obj.mobile = message.mobile;
105
+ }
106
+ if (message.device_id !== "") {
107
+ obj.device_id = message.device_id;
108
+ }
109
+ if (message.otp !== "") {
110
+ obj.otp = message.otp;
111
+ }
112
+ if (message.token !== "") {
113
+ obj.token = message.token;
114
+ }
115
+ if (message.tnc !== false) {
116
+ obj.tnc = message.tnc;
117
+ }
118
+ if (message.is_rooted !== false) {
119
+ obj.is_rooted = message.is_rooted;
120
+ }
121
+ return obj;
122
+ },
123
+ create(base) {
124
+ return exports.verifyOtpReqeust.fromPartial(base ?? {});
125
+ },
126
+ fromPartial(object) {
127
+ const message = createBaseverifyOtpReqeust();
128
+ message.mobile = object.mobile ?? "";
129
+ message.device_id = object.device_id ?? "";
130
+ message.otp = object.otp ?? "";
131
+ message.token = object.token ?? "";
132
+ message.tnc = object.tnc ?? false;
133
+ message.is_rooted = object.is_rooted ?? false;
134
+ return message;
135
+ },
136
+ };
137
+ function createBaseverifyOtpResponse() {
138
+ return { ismpin: false, jwttoken: "" };
139
+ }
140
+ exports.verifyOtpResponse = {
141
+ encode(message, writer = minimal_1.default.Writer.create()) {
142
+ if (message.ismpin !== false) {
143
+ writer.uint32(8).bool(message.ismpin);
144
+ }
145
+ if (message.jwttoken !== "") {
146
+ writer.uint32(18).string(message.jwttoken);
147
+ }
148
+ return writer;
149
+ },
150
+ decode(input, length) {
151
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
152
+ let end = length === undefined ? reader.len : reader.pos + length;
153
+ const message = createBaseverifyOtpResponse();
154
+ while (reader.pos < end) {
155
+ const tag = reader.uint32();
156
+ switch (tag >>> 3) {
157
+ case 1:
158
+ if (tag !== 8) {
159
+ break;
160
+ }
161
+ message.ismpin = reader.bool();
162
+ continue;
163
+ case 2:
164
+ if (tag !== 18) {
165
+ break;
166
+ }
167
+ message.jwttoken = reader.string();
168
+ continue;
169
+ }
170
+ if ((tag & 7) === 4 || tag === 0) {
171
+ break;
172
+ }
173
+ reader.skipType(tag & 7);
174
+ }
175
+ return message;
176
+ },
177
+ fromJSON(object) {
178
+ return {
179
+ ismpin: isSet(object.ismpin) ? globalThis.Boolean(object.ismpin) : false,
180
+ jwttoken: isSet(object.jwttoken) ? globalThis.String(object.jwttoken) : "",
181
+ };
182
+ },
183
+ toJSON(message) {
184
+ const obj = {};
185
+ if (message.ismpin !== false) {
186
+ obj.ismpin = message.ismpin;
187
+ }
188
+ if (message.jwttoken !== "") {
189
+ obj.jwttoken = message.jwttoken;
190
+ }
191
+ return obj;
192
+ },
193
+ create(base) {
194
+ return exports.verifyOtpResponse.fromPartial(base ?? {});
195
+ },
196
+ fromPartial(object) {
197
+ const message = createBaseverifyOtpResponse();
198
+ message.ismpin = object.ismpin ?? false;
199
+ message.jwttoken = object.jwttoken ?? "";
200
+ return message;
201
+ },
202
+ };
203
+ function isSet(value) {
204
+ return value !== null && value !== undefined;
205
+ }
@@ -0,0 +1,35 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "customers.verifyotptoemail";
3
+ export interface verifyEmailOtpRequest {
4
+ otp: string;
5
+ }
6
+ export interface verifyEmailOtpResponse {
7
+ status: boolean;
8
+ }
9
+ export declare const verifyEmailOtpRequest: {
10
+ encode(message: verifyEmailOtpRequest, writer?: _m0.Writer): _m0.Writer;
11
+ decode(input: _m0.Reader | Uint8Array, length?: number): verifyEmailOtpRequest;
12
+ fromJSON(object: any): verifyEmailOtpRequest;
13
+ toJSON(message: verifyEmailOtpRequest): unknown;
14
+ create<I extends Exact<DeepPartial<verifyEmailOtpRequest>, I>>(base?: I): verifyEmailOtpRequest;
15
+ fromPartial<I extends Exact<DeepPartial<verifyEmailOtpRequest>, I>>(object: I): verifyEmailOtpRequest;
16
+ };
17
+ export declare const verifyEmailOtpResponse: {
18
+ encode(message: verifyEmailOtpResponse, writer?: _m0.Writer): _m0.Writer;
19
+ decode(input: _m0.Reader | Uint8Array, length?: number): verifyEmailOtpResponse;
20
+ fromJSON(object: any): verifyEmailOtpResponse;
21
+ toJSON(message: verifyEmailOtpResponse): unknown;
22
+ create<I extends Exact<DeepPartial<verifyEmailOtpResponse>, I>>(base?: I): verifyEmailOtpResponse;
23
+ fromPartial<I extends Exact<DeepPartial<verifyEmailOtpResponse>, I>>(object: I): verifyEmailOtpResponse;
24
+ };
25
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
26
+ 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 {} ? {
27
+ [K in keyof T]?: DeepPartial<T[K]>;
28
+ } : Partial<T>;
29
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
30
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
31
+ [K in keyof P]: Exact<P[K], I[K]>;
32
+ } & {
33
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
34
+ };
35
+ export {};
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.0
5
+ // protoc v5.27.4
6
+ // source: customers/verifyotptoemail.proto
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9
+ };
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.verifyEmailOtpResponse = exports.verifyEmailOtpRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "customers.verifyotptoemail";
15
+ function createBaseverifyEmailOtpRequest() {
16
+ return { otp: "" };
17
+ }
18
+ exports.verifyEmailOtpRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.otp !== "") {
21
+ writer.uint32(10).string(message.otp);
22
+ }
23
+ return writer;
24
+ },
25
+ decode(input, length) {
26
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
27
+ let end = length === undefined ? reader.len : reader.pos + length;
28
+ const message = createBaseverifyEmailOtpRequest();
29
+ while (reader.pos < end) {
30
+ const tag = reader.uint32();
31
+ switch (tag >>> 3) {
32
+ case 1:
33
+ if (tag !== 10) {
34
+ break;
35
+ }
36
+ message.otp = reader.string();
37
+ continue;
38
+ }
39
+ if ((tag & 7) === 4 || tag === 0) {
40
+ break;
41
+ }
42
+ reader.skipType(tag & 7);
43
+ }
44
+ return message;
45
+ },
46
+ fromJSON(object) {
47
+ return { otp: isSet(object.otp) ? globalThis.String(object.otp) : "" };
48
+ },
49
+ toJSON(message) {
50
+ const obj = {};
51
+ if (message.otp !== "") {
52
+ obj.otp = message.otp;
53
+ }
54
+ return obj;
55
+ },
56
+ create(base) {
57
+ return exports.verifyEmailOtpRequest.fromPartial(base ?? {});
58
+ },
59
+ fromPartial(object) {
60
+ const message = createBaseverifyEmailOtpRequest();
61
+ message.otp = object.otp ?? "";
62
+ return message;
63
+ },
64
+ };
65
+ function createBaseverifyEmailOtpResponse() {
66
+ return { status: false };
67
+ }
68
+ exports.verifyEmailOtpResponse = {
69
+ encode(message, writer = minimal_1.default.Writer.create()) {
70
+ if (message.status !== false) {
71
+ writer.uint32(8).bool(message.status);
72
+ }
73
+ return writer;
74
+ },
75
+ decode(input, length) {
76
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
77
+ let end = length === undefined ? reader.len : reader.pos + length;
78
+ const message = createBaseverifyEmailOtpResponse();
79
+ while (reader.pos < end) {
80
+ const tag = reader.uint32();
81
+ switch (tag >>> 3) {
82
+ case 1:
83
+ if (tag !== 8) {
84
+ break;
85
+ }
86
+ message.status = reader.bool();
87
+ continue;
88
+ }
89
+ if ((tag & 7) === 4 || tag === 0) {
90
+ break;
91
+ }
92
+ reader.skipType(tag & 7);
93
+ }
94
+ return message;
95
+ },
96
+ fromJSON(object) {
97
+ return { status: isSet(object.status) ? globalThis.Boolean(object.status) : false };
98
+ },
99
+ toJSON(message) {
100
+ const obj = {};
101
+ if (message.status !== false) {
102
+ obj.status = message.status;
103
+ }
104
+ return obj;
105
+ },
106
+ create(base) {
107
+ return exports.verifyEmailOtpResponse.fromPartial(base ?? {});
108
+ },
109
+ fromPartial(object) {
110
+ const message = createBaseverifyEmailOtpResponse();
111
+ message.status = object.status ?? false;
112
+ return message;
113
+ },
114
+ };
115
+ function isSet(value) {
116
+ return value !== null && value !== undefined;
117
+ }