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