@stashfin/grpc 1.2.52 → 1.2.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +74 -0
- package/package.json +3 -2
- package/src/proto/customers/addaddress.proto +25 -0
- package/src/proto/customers/addbankaccountdetails.proto +13 -0
- package/src/proto/customers/createcustomerreference.proto +21 -0
- package/src/proto/customers/forgotmpin.proto +12 -0
- package/src/proto/customers/forgotmpinotp.proto +10 -0
- package/src/proto/customers/getbankaccountdetails.proto +11 -0
- package/src/proto/customers/getbasicinfo.proto +24 -0
- package/src/proto/customers/getcities.proto +16 -0
- package/src/proto/customers/getcustomerbyid.proto +31 -0
- package/src/proto/customers/getdashboard.proto +47 -0
- package/src/proto/customers/getdashboardmaincard.proto +37 -0
- package/src/proto/customers/getkycweburl.proto +10 -0
- package/src/proto/customers/getprofessionalinfo.proto +22 -0
- package/src/proto/customers/getprofile.proto +22 -0
- package/src/proto/customers/getstates.proto +15 -0
- package/src/proto/customers/getstep.proto +30 -0
- package/src/proto/customers/profilebasic.proto +14 -0
- package/src/proto/customers/profileupdatetnc.proto +11 -0
- package/src/proto/customers/resetmpin.proto +13 -0
- package/src/proto/customers/savebasicdetails.proto +16 -0
- package/src/proto/customers/saveunlocklimit.proto +10 -0
- package/src/proto/customers/sendemailtoken.proto +11 -0
- package/src/proto/customers/sendotp.proto +14 -0
- package/src/proto/customers/setmpin.proto +12 -0
- package/src/proto/customers/step10.proto +34 -0
- package/src/proto/customers/step7.proto +29 -0
- package/src/proto/customers/step8.proto +30 -0
- package/src/proto/customers/step9.proto +36 -0
- package/src/proto/customers/stepstatic.proto +27 -0
- package/src/proto/customers/updatedigilockertxn.proto +13 -0
- package/src/proto/customers/updatedob.proto +13 -0
- package/src/proto/customers/updatehypervergetxn.proto +12 -0
- package/src/proto/customers/verifyemail.proto +11 -0
- package/src/proto/customers/verifympin.proto +13 -0
- package/src/proto/customers/verifyotp.proto +17 -0
- package/src/proto/customers.proto +83 -0
- package/src/proto/example.proto +20 -0
- package/src/proto/loans/approveloan.proto +15 -0
- package/src/proto/loans/banklist.proto +12 -0
- package/src/proto/loans/calculateemi.proto +20 -0
- package/src/proto/loans/creditlimit.proto +18 -0
- package/src/proto/loans/restructureloan.proto +12 -0
- package/src/proto/loans/transactionlist.proto +18 -0
- package/src/proto/loans/updateinstallments.proto +19 -0
- package/src/proto/loans/updateloan.proto +15 -0
- package/src/proto/loans.proto +23 -0
- package/src/proto/stashcash/creditsc.proto +22 -0
- package/src/proto/stashcash/debitsc.proto +27 -0
- package/src/proto/stashcash/getscbalance.proto +21 -0
- package/src/proto/stashcash/getschistory.proto +35 -0
- package/src/proto/stashcash/reversesc.proto +20 -0
- package/src/proto/stashcash.proto +17 -0
- package/src/ts/customers/addaddress.ts +310 -0
- package/src/ts/customers/addbankaccountdetails.ts +184 -0
- package/src/ts/customers/createcustomerreference.ts +276 -0
- package/src/ts/customers/getbankaccountdetails.ts +169 -0
- package/src/ts/customers/getbasicinfo.ts +385 -0
- package/src/ts/customers/getcities.ts +227 -0
- package/src/ts/customers/getcustomerbyid.ts +492 -0
- package/src/ts/customers/getdashboard.ts +728 -0
- package/src/ts/customers/getdashboardmaincard.ts +608 -0
- package/src/ts/customers/getkycweburl.ts +133 -0
- package/src/ts/customers/getprofessionalinfo.ts +344 -0
- package/src/ts/customers/getprofile.ts +338 -0
- package/src/ts/customers/getstates.ts +212 -0
- package/src/ts/customers/getstep.ts +483 -0
- package/src/ts/customers/profilebasic.ts +198 -0
- package/src/ts/customers/profileupdatetnc.ts +148 -0
- package/src/ts/customers/resetmpin.ts +166 -0
- package/src/ts/customers/savebasicdetails.ts +229 -0
- package/src/ts/customers/saveunlocklimit.ts +133 -0
- package/src/ts/customers/sendemailtoken.ts +148 -0
- package/src/ts/customers/sendotp.ts +202 -0
- package/src/ts/customers/setmpin.ts +166 -0
- package/src/ts/customers/step10.ts +544 -0
- package/src/ts/customers/step7.ts +456 -0
- package/src/ts/customers/step8.ts +472 -0
- package/src/ts/customers/step9.ts +578 -0
- package/src/ts/customers/stepstatic.ts +425 -0
- package/src/ts/customers/updatedigilockertxn.ts +182 -0
- package/src/ts/customers/updatehypervergetxn.ts +166 -0
- package/src/ts/customers/verifyemail.ts +148 -0
- package/src/ts/customers/verifympin.ts +184 -0
- package/src/ts/customers/verifyotp.ts +232 -0
- package/src/ts/customers.ts +1038 -0
- package/src/ts/example.ts +294 -0
- package/{ts/google/protobuf/timestamp.d.ts → src/ts/google/protobuf/timestamp.ts} +126 -30
- package/src/ts/loans/approveloan.ts +214 -0
- package/src/ts/loans/banklist.ts +183 -0
- package/src/ts/loans/calculateemi.ts +295 -0
- package/src/ts/loans/creditlimit.ts +294 -0
- package/src/ts/loans/restructureloan.ts +166 -0
- package/src/ts/loans/transactionlist.ts +281 -0
- package/src/ts/loans/updateinstallments.ts +271 -0
- package/src/ts/loans/updateloan.ts +214 -0
- package/src/ts/loans.ts +221 -0
- package/src/ts/stashcash/creditsc.ts +361 -0
- package/src/ts/stashcash/debitsc.ts +450 -0
- package/src/ts/stashcash/getscbalance.ts +351 -0
- package/src/ts/stashcash/getschistory.ts +566 -0
- package/src/ts/stashcash/reversesc.ts +329 -0
- package/src/ts/stashcash.ts +152 -0
- package/tsconfig.json +18 -0
- package/ts/customer/getprofile.d.ts +0 -38
- package/ts/customer/getprofile.js +0 -162
- package/ts/customer/getstep.d.ts +0 -78
- package/ts/customer/getstep.js +0 -420
- package/ts/customer/profileupdatetnc.d.ts +0 -35
- package/ts/customer/profileupdatetnc.js +0 -117
- package/ts/customer/sendotp.d.ts +0 -36
- package/ts/customer/sendotp.js +0 -133
- package/ts/customer/setmpin.d.ts +0 -36
- package/ts/customer/setmpin.js +0 -133
- package/ts/customer/step1.d.ts +0 -69
- package/ts/customer/step1.js +0 -395
- package/ts/customer/step10.d.ts +0 -73
- package/ts/customer/step10.js +0 -459
- package/ts/customer/step2.d.ts +0 -68
- package/ts/customer/step2.js +0 -381
- package/ts/customer/step7.d.ts +0 -68
- package/ts/customer/step7.js +0 -381
- package/ts/customer/step8.d.ts +0 -69
- package/ts/customer/step8.js +0 -395
- package/ts/customer/step9.d.ts +0 -75
- package/ts/customer/step9.js +0 -489
- package/ts/customer/stepstatic.d.ts +0 -66
- package/ts/customer/stepstatic.js +0 -352
- package/ts/customer/verifympin.d.ts +0 -37
- package/ts/customer/verifympin.js +0 -149
- package/ts/customer/verifyotp.d.ts +0 -39
- package/ts/customer/verifyotp.js +0 -177
- package/ts/customer.d.ts +0 -262
- package/ts/customer.js +0 -190
- package/ts/customers/getbankaccountdetails.d.ts +0 -36
- package/ts/customers/getbankaccountdetails.js +0 -134
- package/ts/customers/getbasicinfo.d.ts +0 -39
- package/ts/customers/getbasicinfo.js +0 -176
- package/ts/customers/getcustomerbyid.d.ts +0 -50
- package/ts/customers/getcustomerbyid.js +0 -346
- package/ts/customers/getdashboard.d.ts +0 -90
- package/ts/customers/getdashboard.js +0 -603
- package/ts/customers/getdashboardmaincard.d.ts +0 -69
- package/ts/customers/getdashboardmaincard.js +0 -520
- package/ts/customers/getprofessionalinfo.d.ts +0 -37
- package/ts/customers/getprofessionalinfo.js +0 -148
- package/ts/customers/getprofile.d.ts +0 -38
- package/ts/customers/getprofile.js +0 -162
- package/ts/customers/getstep.d.ts +0 -78
- package/ts/customers/getstep.js +0 -420
- package/ts/customers/profilebasic.d.ts +0 -38
- package/ts/customers/profilebasic.js +0 -161
- package/ts/customers/profileupdatetnc.d.ts +0 -35
- package/ts/customers/profileupdatetnc.js +0 -117
- package/ts/customers/sendemailtoken.d.ts +0 -35
- package/ts/customers/sendemailtoken.js +0 -117
- package/ts/customers/sendotp.d.ts +0 -38
- package/ts/customers/sendotp.js +0 -165
- package/ts/customers/setmpin.d.ts +0 -36
- package/ts/customers/setmpin.js +0 -133
- package/ts/customers/step1.d.ts +0 -69
- package/ts/customers/step1.js +0 -395
- package/ts/customers/step10.d.ts +0 -73
- package/ts/customers/step10.js +0 -459
- package/ts/customers/step2.d.ts +0 -68
- package/ts/customers/step2.js +0 -381
- package/ts/customers/step7.d.ts +0 -68
- package/ts/customers/step7.js +0 -381
- package/ts/customers/step8.d.ts +0 -69
- package/ts/customers/step8.js +0 -395
- package/ts/customers/step9.d.ts +0 -75
- package/ts/customers/step9.js +0 -489
- package/ts/customers/stepstatic.d.ts +0 -66
- package/ts/customers/stepstatic.js +0 -354
- package/ts/customers/verifyemail.d.ts +0 -35
- package/ts/customers/verifyemail.js +0 -117
- package/ts/customers/verifympin.d.ts +0 -37
- package/ts/customers/verifympin.js +0 -149
- package/ts/customers/verifyotp.d.ts +0 -40
- package/ts/customers/verifyotp.js +0 -191
- package/ts/customers.d.ts +0 -388
- package/ts/customers.js +0 -280
- package/ts/example.d.ts +0 -78
- package/ts/example.js +0 -199
- package/ts/google/protobuf/any.d.ts +0 -138
- package/ts/google/protobuf/any.js +0 -108
- package/ts/google/protobuf/timestamp.js +0 -97
- package/ts/loans/approveloan.d.ts +0 -39
- package/ts/loans/approveloan.js +0 -175
- package/ts/loans/banklist.d.ts +0 -48
- package/ts/loans/banklist.js +0 -202
- package/ts/loans/calculateemi.d.ts +0 -37
- package/ts/loans/calculateemi.js +0 -147
- package/ts/loans/creditlimit.d.ts +0 -35
- package/ts/loans/creditlimit.js +0 -120
- package/ts/loans/updateinstallments.d.ts +0 -42
- package/ts/loans/updateinstallments.js +0 -226
- package/ts/loans/updateloan.d.ts +0 -39
- package/ts/loans/updateloan.js +0 -175
- package/ts/loans.d.ts +0 -98
- package/ts/loans.js +0 -74
- package/ts/payments/checkpaymentstatus.d.ts +0 -51
- package/ts/payments/checkpaymentstatus.js +0 -259
- package/ts/payments/createorder.d.ts +0 -39
- package/ts/payments/createorder.js +0 -191
- package/ts/payments/getpaymentdetails.d.ts +0 -58
- package/ts/payments/getpaymentdetails.js +0 -367
- package/ts/payments/getpaymentoptions.d.ts +0 -50
- package/ts/payments/getpaymentoptions.js +0 -231
- package/ts/payments/initiatepayment.d.ts +0 -54
- package/ts/payments/initiatepayment.js +0 -299
- package/ts/payments.d.ts +0 -70
- package/ts/payments.js +0 -54
- package/ts/stashcash/creditsc.d.ts +0 -54
- package/ts/stashcash/creditsc.js +0 -301
- package/ts/stashcash/debitsc.d.ts +0 -59
- package/ts/stashcash/debitsc.js +0 -380
- package/ts/stashcash/getscbalance.d.ts +0 -53
- package/ts/stashcash/getscbalance.js +0 -293
- package/ts/stashcash/getschistory.d.ts +0 -73
- package/ts/stashcash/getschistory.js +0 -479
- package/ts/stashcash/reversesc.d.ts +0 -52
- package/ts/stashcash/reversesc.js +0 -273
- package/ts/stashcash.d.ts +0 -84
- package/ts/stashcash.js +0 -64
|
@@ -0,0 +1,148 @@
|
|
|
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/sendemailtoken.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import _m0 from "protobufjs/minimal";
|
|
9
|
+
|
|
10
|
+
export const protobufPackage = "customers.sendemailtoken";
|
|
11
|
+
|
|
12
|
+
export interface sendEmailTokenRequest {
|
|
13
|
+
email: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface sendEmailTokenResponse {
|
|
17
|
+
token: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function createBasesendEmailTokenRequest(): sendEmailTokenRequest {
|
|
21
|
+
return { email: "" };
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const sendEmailTokenRequest = {
|
|
25
|
+
encode(message: sendEmailTokenRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
26
|
+
if (message.email !== "") {
|
|
27
|
+
writer.uint32(10).string(message.email);
|
|
28
|
+
}
|
|
29
|
+
return writer;
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): sendEmailTokenRequest {
|
|
33
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
34
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35
|
+
const message = createBasesendEmailTokenRequest();
|
|
36
|
+
while (reader.pos < end) {
|
|
37
|
+
const tag = reader.uint32();
|
|
38
|
+
switch (tag >>> 3) {
|
|
39
|
+
case 1:
|
|
40
|
+
if (tag !== 10) {
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
message.email = reader.string();
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
reader.skipType(tag & 7);
|
|
51
|
+
}
|
|
52
|
+
return message;
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
fromJSON(object: any): sendEmailTokenRequest {
|
|
56
|
+
return { email: isSet(object.email) ? globalThis.String(object.email) : "" };
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
toJSON(message: sendEmailTokenRequest): unknown {
|
|
60
|
+
const obj: any = {};
|
|
61
|
+
if (message.email !== "") {
|
|
62
|
+
obj.email = message.email;
|
|
63
|
+
}
|
|
64
|
+
return obj;
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
create<I extends Exact<DeepPartial<sendEmailTokenRequest>, I>>(base?: I): sendEmailTokenRequest {
|
|
68
|
+
return sendEmailTokenRequest.fromPartial(base ?? ({} as any));
|
|
69
|
+
},
|
|
70
|
+
fromPartial<I extends Exact<DeepPartial<sendEmailTokenRequest>, I>>(object: I): sendEmailTokenRequest {
|
|
71
|
+
const message = createBasesendEmailTokenRequest();
|
|
72
|
+
message.email = object.email ?? "";
|
|
73
|
+
return message;
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
function createBasesendEmailTokenResponse(): sendEmailTokenResponse {
|
|
78
|
+
return { token: "" };
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export const sendEmailTokenResponse = {
|
|
82
|
+
encode(message: sendEmailTokenResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
83
|
+
if (message.token !== "") {
|
|
84
|
+
writer.uint32(10).string(message.token);
|
|
85
|
+
}
|
|
86
|
+
return writer;
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): sendEmailTokenResponse {
|
|
90
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
91
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
92
|
+
const message = createBasesendEmailTokenResponse();
|
|
93
|
+
while (reader.pos < end) {
|
|
94
|
+
const tag = reader.uint32();
|
|
95
|
+
switch (tag >>> 3) {
|
|
96
|
+
case 1:
|
|
97
|
+
if (tag !== 10) {
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
message.token = reader.string();
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
reader.skipType(tag & 7);
|
|
108
|
+
}
|
|
109
|
+
return message;
|
|
110
|
+
},
|
|
111
|
+
|
|
112
|
+
fromJSON(object: any): sendEmailTokenResponse {
|
|
113
|
+
return { token: isSet(object.token) ? globalThis.String(object.token) : "" };
|
|
114
|
+
},
|
|
115
|
+
|
|
116
|
+
toJSON(message: sendEmailTokenResponse): unknown {
|
|
117
|
+
const obj: any = {};
|
|
118
|
+
if (message.token !== "") {
|
|
119
|
+
obj.token = message.token;
|
|
120
|
+
}
|
|
121
|
+
return obj;
|
|
122
|
+
},
|
|
123
|
+
|
|
124
|
+
create<I extends Exact<DeepPartial<sendEmailTokenResponse>, I>>(base?: I): sendEmailTokenResponse {
|
|
125
|
+
return sendEmailTokenResponse.fromPartial(base ?? ({} as any));
|
|
126
|
+
},
|
|
127
|
+
fromPartial<I extends Exact<DeepPartial<sendEmailTokenResponse>, I>>(object: I): sendEmailTokenResponse {
|
|
128
|
+
const message = createBasesendEmailTokenResponse();
|
|
129
|
+
message.token = object.token ?? "";
|
|
130
|
+
return message;
|
|
131
|
+
},
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
135
|
+
|
|
136
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
137
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
138
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
139
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
140
|
+
: Partial<T>;
|
|
141
|
+
|
|
142
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
143
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
144
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
145
|
+
|
|
146
|
+
function isSet(value: any): boolean {
|
|
147
|
+
return value !== null && value !== undefined;
|
|
148
|
+
}
|
|
@@ -0,0 +1,202 @@
|
|
|
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/sendotp.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import _m0 from "protobufjs/minimal";
|
|
9
|
+
|
|
10
|
+
export const protobufPackage = "customers.sendotp";
|
|
11
|
+
|
|
12
|
+
export interface sendOtpRequest {
|
|
13
|
+
mobile: string;
|
|
14
|
+
device_id: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface sendOtpRespone {
|
|
18
|
+
ismpin: boolean;
|
|
19
|
+
token: string;
|
|
20
|
+
is_device_registered: boolean;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function createBasesendOtpRequest(): sendOtpRequest {
|
|
24
|
+
return { mobile: "", device_id: "" };
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export const sendOtpRequest = {
|
|
28
|
+
encode(message: sendOtpRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
29
|
+
if (message.mobile !== "") {
|
|
30
|
+
writer.uint32(10).string(message.mobile);
|
|
31
|
+
}
|
|
32
|
+
if (message.device_id !== "") {
|
|
33
|
+
writer.uint32(18).string(message.device_id);
|
|
34
|
+
}
|
|
35
|
+
return writer;
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): sendOtpRequest {
|
|
39
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
40
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
41
|
+
const message = createBasesendOtpRequest();
|
|
42
|
+
while (reader.pos < end) {
|
|
43
|
+
const tag = reader.uint32();
|
|
44
|
+
switch (tag >>> 3) {
|
|
45
|
+
case 1:
|
|
46
|
+
if (tag !== 10) {
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message.mobile = reader.string();
|
|
51
|
+
continue;
|
|
52
|
+
case 2:
|
|
53
|
+
if (tag !== 18) {
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
message.device_id = reader.string();
|
|
58
|
+
continue;
|
|
59
|
+
}
|
|
60
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
reader.skipType(tag & 7);
|
|
64
|
+
}
|
|
65
|
+
return message;
|
|
66
|
+
},
|
|
67
|
+
|
|
68
|
+
fromJSON(object: any): sendOtpRequest {
|
|
69
|
+
return {
|
|
70
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
71
|
+
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
toJSON(message: sendOtpRequest): unknown {
|
|
76
|
+
const obj: any = {};
|
|
77
|
+
if (message.mobile !== "") {
|
|
78
|
+
obj.mobile = message.mobile;
|
|
79
|
+
}
|
|
80
|
+
if (message.device_id !== "") {
|
|
81
|
+
obj.device_id = message.device_id;
|
|
82
|
+
}
|
|
83
|
+
return obj;
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
create<I extends Exact<DeepPartial<sendOtpRequest>, I>>(base?: I): sendOtpRequest {
|
|
87
|
+
return sendOtpRequest.fromPartial(base ?? ({} as any));
|
|
88
|
+
},
|
|
89
|
+
fromPartial<I extends Exact<DeepPartial<sendOtpRequest>, I>>(object: I): sendOtpRequest {
|
|
90
|
+
const message = createBasesendOtpRequest();
|
|
91
|
+
message.mobile = object.mobile ?? "";
|
|
92
|
+
message.device_id = object.device_id ?? "";
|
|
93
|
+
return message;
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
function createBasesendOtpRespone(): sendOtpRespone {
|
|
98
|
+
return { ismpin: false, token: "", is_device_registered: false };
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export const sendOtpRespone = {
|
|
102
|
+
encode(message: sendOtpRespone, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
103
|
+
if (message.ismpin !== false) {
|
|
104
|
+
writer.uint32(8).bool(message.ismpin);
|
|
105
|
+
}
|
|
106
|
+
if (message.token !== "") {
|
|
107
|
+
writer.uint32(18).string(message.token);
|
|
108
|
+
}
|
|
109
|
+
if (message.is_device_registered !== false) {
|
|
110
|
+
writer.uint32(24).bool(message.is_device_registered);
|
|
111
|
+
}
|
|
112
|
+
return writer;
|
|
113
|
+
},
|
|
114
|
+
|
|
115
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): sendOtpRespone {
|
|
116
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
117
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
118
|
+
const message = createBasesendOtpRespone();
|
|
119
|
+
while (reader.pos < end) {
|
|
120
|
+
const tag = reader.uint32();
|
|
121
|
+
switch (tag >>> 3) {
|
|
122
|
+
case 1:
|
|
123
|
+
if (tag !== 8) {
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
message.ismpin = reader.bool();
|
|
128
|
+
continue;
|
|
129
|
+
case 2:
|
|
130
|
+
if (tag !== 18) {
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
message.token = reader.string();
|
|
135
|
+
continue;
|
|
136
|
+
case 3:
|
|
137
|
+
if (tag !== 24) {
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
message.is_device_registered = reader.bool();
|
|
142
|
+
continue;
|
|
143
|
+
}
|
|
144
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
reader.skipType(tag & 7);
|
|
148
|
+
}
|
|
149
|
+
return message;
|
|
150
|
+
},
|
|
151
|
+
|
|
152
|
+
fromJSON(object: any): sendOtpRespone {
|
|
153
|
+
return {
|
|
154
|
+
ismpin: isSet(object.ismpin) ? globalThis.Boolean(object.ismpin) : false,
|
|
155
|
+
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
156
|
+
is_device_registered: isSet(object.is_device_registered)
|
|
157
|
+
? globalThis.Boolean(object.is_device_registered)
|
|
158
|
+
: false,
|
|
159
|
+
};
|
|
160
|
+
},
|
|
161
|
+
|
|
162
|
+
toJSON(message: sendOtpRespone): unknown {
|
|
163
|
+
const obj: any = {};
|
|
164
|
+
if (message.ismpin !== false) {
|
|
165
|
+
obj.ismpin = message.ismpin;
|
|
166
|
+
}
|
|
167
|
+
if (message.token !== "") {
|
|
168
|
+
obj.token = message.token;
|
|
169
|
+
}
|
|
170
|
+
if (message.is_device_registered !== false) {
|
|
171
|
+
obj.is_device_registered = message.is_device_registered;
|
|
172
|
+
}
|
|
173
|
+
return obj;
|
|
174
|
+
},
|
|
175
|
+
|
|
176
|
+
create<I extends Exact<DeepPartial<sendOtpRespone>, I>>(base?: I): sendOtpRespone {
|
|
177
|
+
return sendOtpRespone.fromPartial(base ?? ({} as any));
|
|
178
|
+
},
|
|
179
|
+
fromPartial<I extends Exact<DeepPartial<sendOtpRespone>, I>>(object: I): sendOtpRespone {
|
|
180
|
+
const message = createBasesendOtpRespone();
|
|
181
|
+
message.ismpin = object.ismpin ?? false;
|
|
182
|
+
message.token = object.token ?? "";
|
|
183
|
+
message.is_device_registered = object.is_device_registered ?? false;
|
|
184
|
+
return message;
|
|
185
|
+
},
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
189
|
+
|
|
190
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
191
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
192
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
193
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
194
|
+
: Partial<T>;
|
|
195
|
+
|
|
196
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
197
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
198
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
199
|
+
|
|
200
|
+
function isSet(value: any): boolean {
|
|
201
|
+
return value !== null && value !== undefined;
|
|
202
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
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/setmpin.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import _m0 from "protobufjs/minimal";
|
|
9
|
+
|
|
10
|
+
export const protobufPackage = "customers.setmpin";
|
|
11
|
+
|
|
12
|
+
export interface setMpinRequest {
|
|
13
|
+
mobile: string;
|
|
14
|
+
mpin: number;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface setMpinResponse {
|
|
18
|
+
status: boolean;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function createBasesetMpinRequest(): setMpinRequest {
|
|
22
|
+
return { mobile: "", mpin: 0 };
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const setMpinRequest = {
|
|
26
|
+
encode(message: setMpinRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
27
|
+
if (message.mobile !== "") {
|
|
28
|
+
writer.uint32(10).string(message.mobile);
|
|
29
|
+
}
|
|
30
|
+
if (message.mpin !== 0) {
|
|
31
|
+
writer.uint32(16).int32(message.mpin);
|
|
32
|
+
}
|
|
33
|
+
return writer;
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): setMpinRequest {
|
|
37
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
38
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
39
|
+
const message = createBasesetMpinRequest();
|
|
40
|
+
while (reader.pos < end) {
|
|
41
|
+
const tag = reader.uint32();
|
|
42
|
+
switch (tag >>> 3) {
|
|
43
|
+
case 1:
|
|
44
|
+
if (tag !== 10) {
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message.mobile = reader.string();
|
|
49
|
+
continue;
|
|
50
|
+
case 2:
|
|
51
|
+
if (tag !== 16) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
message.mpin = reader.int32();
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
reader.skipType(tag & 7);
|
|
62
|
+
}
|
|
63
|
+
return message;
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
fromJSON(object: any): setMpinRequest {
|
|
67
|
+
return {
|
|
68
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
69
|
+
mpin: isSet(object.mpin) ? globalThis.Number(object.mpin) : 0,
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
toJSON(message: setMpinRequest): unknown {
|
|
74
|
+
const obj: any = {};
|
|
75
|
+
if (message.mobile !== "") {
|
|
76
|
+
obj.mobile = message.mobile;
|
|
77
|
+
}
|
|
78
|
+
if (message.mpin !== 0) {
|
|
79
|
+
obj.mpin = Math.round(message.mpin);
|
|
80
|
+
}
|
|
81
|
+
return obj;
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
create<I extends Exact<DeepPartial<setMpinRequest>, I>>(base?: I): setMpinRequest {
|
|
85
|
+
return setMpinRequest.fromPartial(base ?? ({} as any));
|
|
86
|
+
},
|
|
87
|
+
fromPartial<I extends Exact<DeepPartial<setMpinRequest>, I>>(object: I): setMpinRequest {
|
|
88
|
+
const message = createBasesetMpinRequest();
|
|
89
|
+
message.mobile = object.mobile ?? "";
|
|
90
|
+
message.mpin = object.mpin ?? 0;
|
|
91
|
+
return message;
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
function createBasesetMpinResponse(): setMpinResponse {
|
|
96
|
+
return { status: false };
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export const setMpinResponse = {
|
|
100
|
+
encode(message: setMpinResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
101
|
+
if (message.status !== false) {
|
|
102
|
+
writer.uint32(8).bool(message.status);
|
|
103
|
+
}
|
|
104
|
+
return writer;
|
|
105
|
+
},
|
|
106
|
+
|
|
107
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): setMpinResponse {
|
|
108
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
109
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
110
|
+
const message = createBasesetMpinResponse();
|
|
111
|
+
while (reader.pos < end) {
|
|
112
|
+
const tag = reader.uint32();
|
|
113
|
+
switch (tag >>> 3) {
|
|
114
|
+
case 1:
|
|
115
|
+
if (tag !== 8) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
message.status = reader.bool();
|
|
120
|
+
continue;
|
|
121
|
+
}
|
|
122
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
reader.skipType(tag & 7);
|
|
126
|
+
}
|
|
127
|
+
return message;
|
|
128
|
+
},
|
|
129
|
+
|
|
130
|
+
fromJSON(object: any): setMpinResponse {
|
|
131
|
+
return { status: isSet(object.status) ? globalThis.Boolean(object.status) : false };
|
|
132
|
+
},
|
|
133
|
+
|
|
134
|
+
toJSON(message: setMpinResponse): unknown {
|
|
135
|
+
const obj: any = {};
|
|
136
|
+
if (message.status !== false) {
|
|
137
|
+
obj.status = message.status;
|
|
138
|
+
}
|
|
139
|
+
return obj;
|
|
140
|
+
},
|
|
141
|
+
|
|
142
|
+
create<I extends Exact<DeepPartial<setMpinResponse>, I>>(base?: I): setMpinResponse {
|
|
143
|
+
return setMpinResponse.fromPartial(base ?? ({} as any));
|
|
144
|
+
},
|
|
145
|
+
fromPartial<I extends Exact<DeepPartial<setMpinResponse>, I>>(object: I): setMpinResponse {
|
|
146
|
+
const message = createBasesetMpinResponse();
|
|
147
|
+
message.status = object.status ?? false;
|
|
148
|
+
return message;
|
|
149
|
+
},
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
153
|
+
|
|
154
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
155
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
156
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
157
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
158
|
+
: Partial<T>;
|
|
159
|
+
|
|
160
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
161
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
162
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
163
|
+
|
|
164
|
+
function isSet(value: any): boolean {
|
|
165
|
+
return value !== null && value !== undefined;
|
|
166
|
+
}
|