@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,133 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,344 @@
|
|
|
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
|
+
}
|