@stashfin/grpc 1.2.28 → 1.2.31
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 +1 -1
- package/ts/customers/addaddress.d.ts +50 -0
- package/ts/customers/addaddress.js +265 -0
- package/ts/customers/getbasicinfo.d.ts +19 -2
- package/ts/customers/getbasicinfo.js +163 -16
- package/ts/customers/getprofessionalinfo.d.ts +18 -1
- package/ts/customers/getprofessionalinfo.js +147 -9
- package/ts/customers.d.ts +14 -0
- package/ts/customers.js +10 -0
package/package.json
CHANGED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.addaddress";
|
|
3
|
+
export declare enum AddressType {
|
|
4
|
+
CURRENT = 0,
|
|
5
|
+
PERMANENT = 1,
|
|
6
|
+
OFFICE = 2,
|
|
7
|
+
UNRECOGNIZED = -1
|
|
8
|
+
}
|
|
9
|
+
export declare function addressTypeFromJSON(object: any): AddressType;
|
|
10
|
+
export declare function addressTypeToJSON(object: AddressType): string;
|
|
11
|
+
export interface addAddressRequest {
|
|
12
|
+
address_type: AddressType;
|
|
13
|
+
house_flat_no: string;
|
|
14
|
+
address_line_1: string;
|
|
15
|
+
address_line_2: string;
|
|
16
|
+
landmark: string;
|
|
17
|
+
state_id: number;
|
|
18
|
+
city_id: number;
|
|
19
|
+
pin_code: string;
|
|
20
|
+
}
|
|
21
|
+
export interface addAddressResponse {
|
|
22
|
+
id: number;
|
|
23
|
+
}
|
|
24
|
+
export declare const addAddressRequest: {
|
|
25
|
+
encode(message: addAddressRequest, writer?: _m0.Writer): _m0.Writer;
|
|
26
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): addAddressRequest;
|
|
27
|
+
fromJSON(object: any): addAddressRequest;
|
|
28
|
+
toJSON(message: addAddressRequest): unknown;
|
|
29
|
+
create<I extends Exact<DeepPartial<addAddressRequest>, I>>(base?: I): addAddressRequest;
|
|
30
|
+
fromPartial<I extends Exact<DeepPartial<addAddressRequest>, I>>(object: I): addAddressRequest;
|
|
31
|
+
};
|
|
32
|
+
export declare const addAddressResponse: {
|
|
33
|
+
encode(message: addAddressResponse, writer?: _m0.Writer): _m0.Writer;
|
|
34
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): addAddressResponse;
|
|
35
|
+
fromJSON(object: any): addAddressResponse;
|
|
36
|
+
toJSON(message: addAddressResponse): unknown;
|
|
37
|
+
create<I extends Exact<DeepPartial<addAddressResponse>, I>>(base?: I): addAddressResponse;
|
|
38
|
+
fromPartial<I extends Exact<DeepPartial<addAddressResponse>, I>>(object: I): addAddressResponse;
|
|
39
|
+
};
|
|
40
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
41
|
+
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 {} ? {
|
|
42
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
43
|
+
} : Partial<T>;
|
|
44
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
45
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
46
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
47
|
+
} & {
|
|
48
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
49
|
+
};
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,265 @@
|
|
|
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 v3.20.3
|
|
6
|
+
// source: customers/addaddress.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.addAddressResponse = exports.addAddressRequest = exports.AddressType = exports.protobufPackage = void 0;
|
|
12
|
+
exports.addressTypeFromJSON = addressTypeFromJSON;
|
|
13
|
+
exports.addressTypeToJSON = addressTypeToJSON;
|
|
14
|
+
/* eslint-disable */
|
|
15
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
16
|
+
exports.protobufPackage = "customers.addaddress";
|
|
17
|
+
var AddressType;
|
|
18
|
+
(function (AddressType) {
|
|
19
|
+
AddressType[AddressType["CURRENT"] = 0] = "CURRENT";
|
|
20
|
+
AddressType[AddressType["PERMANENT"] = 1] = "PERMANENT";
|
|
21
|
+
AddressType[AddressType["OFFICE"] = 2] = "OFFICE";
|
|
22
|
+
AddressType[AddressType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
23
|
+
})(AddressType || (exports.AddressType = AddressType = {}));
|
|
24
|
+
function addressTypeFromJSON(object) {
|
|
25
|
+
switch (object) {
|
|
26
|
+
case 0:
|
|
27
|
+
case "CURRENT":
|
|
28
|
+
return AddressType.CURRENT;
|
|
29
|
+
case 1:
|
|
30
|
+
case "PERMANENT":
|
|
31
|
+
return AddressType.PERMANENT;
|
|
32
|
+
case 2:
|
|
33
|
+
case "OFFICE":
|
|
34
|
+
return AddressType.OFFICE;
|
|
35
|
+
case -1:
|
|
36
|
+
case "UNRECOGNIZED":
|
|
37
|
+
default:
|
|
38
|
+
return AddressType.UNRECOGNIZED;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function addressTypeToJSON(object) {
|
|
42
|
+
switch (object) {
|
|
43
|
+
case AddressType.CURRENT:
|
|
44
|
+
return "CURRENT";
|
|
45
|
+
case AddressType.PERMANENT:
|
|
46
|
+
return "PERMANENT";
|
|
47
|
+
case AddressType.OFFICE:
|
|
48
|
+
return "OFFICE";
|
|
49
|
+
case AddressType.UNRECOGNIZED:
|
|
50
|
+
default:
|
|
51
|
+
return "UNRECOGNIZED";
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function createBaseaddAddressRequest() {
|
|
55
|
+
return {
|
|
56
|
+
address_type: 0,
|
|
57
|
+
house_flat_no: "",
|
|
58
|
+
address_line_1: "",
|
|
59
|
+
address_line_2: "",
|
|
60
|
+
landmark: "",
|
|
61
|
+
state_id: 0,
|
|
62
|
+
city_id: 0,
|
|
63
|
+
pin_code: "",
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
exports.addAddressRequest = {
|
|
67
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
68
|
+
if (message.address_type !== 0) {
|
|
69
|
+
writer.uint32(8).int32(message.address_type);
|
|
70
|
+
}
|
|
71
|
+
if (message.house_flat_no !== "") {
|
|
72
|
+
writer.uint32(18).string(message.house_flat_no);
|
|
73
|
+
}
|
|
74
|
+
if (message.address_line_1 !== "") {
|
|
75
|
+
writer.uint32(26).string(message.address_line_1);
|
|
76
|
+
}
|
|
77
|
+
if (message.address_line_2 !== "") {
|
|
78
|
+
writer.uint32(34).string(message.address_line_2);
|
|
79
|
+
}
|
|
80
|
+
if (message.landmark !== "") {
|
|
81
|
+
writer.uint32(42).string(message.landmark);
|
|
82
|
+
}
|
|
83
|
+
if (message.state_id !== 0) {
|
|
84
|
+
writer.uint32(56).int32(message.state_id);
|
|
85
|
+
}
|
|
86
|
+
if (message.city_id !== 0) {
|
|
87
|
+
writer.uint32(64).int32(message.city_id);
|
|
88
|
+
}
|
|
89
|
+
if (message.pin_code !== "") {
|
|
90
|
+
writer.uint32(74).string(message.pin_code);
|
|
91
|
+
}
|
|
92
|
+
return writer;
|
|
93
|
+
},
|
|
94
|
+
decode(input, length) {
|
|
95
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
96
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
97
|
+
const message = createBaseaddAddressRequest();
|
|
98
|
+
while (reader.pos < end) {
|
|
99
|
+
const tag = reader.uint32();
|
|
100
|
+
switch (tag >>> 3) {
|
|
101
|
+
case 1:
|
|
102
|
+
if (tag !== 8) {
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
message.address_type = reader.int32();
|
|
106
|
+
continue;
|
|
107
|
+
case 2:
|
|
108
|
+
if (tag !== 18) {
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
message.house_flat_no = reader.string();
|
|
112
|
+
continue;
|
|
113
|
+
case 3:
|
|
114
|
+
if (tag !== 26) {
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
message.address_line_1 = reader.string();
|
|
118
|
+
continue;
|
|
119
|
+
case 4:
|
|
120
|
+
if (tag !== 34) {
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
message.address_line_2 = reader.string();
|
|
124
|
+
continue;
|
|
125
|
+
case 5:
|
|
126
|
+
if (tag !== 42) {
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
message.landmark = reader.string();
|
|
130
|
+
continue;
|
|
131
|
+
case 7:
|
|
132
|
+
if (tag !== 56) {
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
message.state_id = reader.int32();
|
|
136
|
+
continue;
|
|
137
|
+
case 8:
|
|
138
|
+
if (tag !== 64) {
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
message.city_id = reader.int32();
|
|
142
|
+
continue;
|
|
143
|
+
case 9:
|
|
144
|
+
if (tag !== 74) {
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
message.pin_code = reader.string();
|
|
148
|
+
continue;
|
|
149
|
+
}
|
|
150
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
reader.skipType(tag & 7);
|
|
154
|
+
}
|
|
155
|
+
return message;
|
|
156
|
+
},
|
|
157
|
+
fromJSON(object) {
|
|
158
|
+
return {
|
|
159
|
+
address_type: isSet(object.address_type) ? addressTypeFromJSON(object.address_type) : 0,
|
|
160
|
+
house_flat_no: isSet(object.house_flat_no) ? globalThis.String(object.house_flat_no) : "",
|
|
161
|
+
address_line_1: isSet(object.address_line_1) ? globalThis.String(object.address_line_1) : "",
|
|
162
|
+
address_line_2: isSet(object.address_line_2) ? globalThis.String(object.address_line_2) : "",
|
|
163
|
+
landmark: isSet(object.landmark) ? globalThis.String(object.landmark) : "",
|
|
164
|
+
state_id: isSet(object.state_id) ? globalThis.Number(object.state_id) : 0,
|
|
165
|
+
city_id: isSet(object.city_id) ? globalThis.Number(object.city_id) : 0,
|
|
166
|
+
pin_code: isSet(object.pin_code) ? globalThis.String(object.pin_code) : "",
|
|
167
|
+
};
|
|
168
|
+
},
|
|
169
|
+
toJSON(message) {
|
|
170
|
+
const obj = {};
|
|
171
|
+
if (message.address_type !== 0) {
|
|
172
|
+
obj.address_type = addressTypeToJSON(message.address_type);
|
|
173
|
+
}
|
|
174
|
+
if (message.house_flat_no !== "") {
|
|
175
|
+
obj.house_flat_no = message.house_flat_no;
|
|
176
|
+
}
|
|
177
|
+
if (message.address_line_1 !== "") {
|
|
178
|
+
obj.address_line_1 = message.address_line_1;
|
|
179
|
+
}
|
|
180
|
+
if (message.address_line_2 !== "") {
|
|
181
|
+
obj.address_line_2 = message.address_line_2;
|
|
182
|
+
}
|
|
183
|
+
if (message.landmark !== "") {
|
|
184
|
+
obj.landmark = message.landmark;
|
|
185
|
+
}
|
|
186
|
+
if (message.state_id !== 0) {
|
|
187
|
+
obj.state_id = Math.round(message.state_id);
|
|
188
|
+
}
|
|
189
|
+
if (message.city_id !== 0) {
|
|
190
|
+
obj.city_id = Math.round(message.city_id);
|
|
191
|
+
}
|
|
192
|
+
if (message.pin_code !== "") {
|
|
193
|
+
obj.pin_code = message.pin_code;
|
|
194
|
+
}
|
|
195
|
+
return obj;
|
|
196
|
+
},
|
|
197
|
+
create(base) {
|
|
198
|
+
return exports.addAddressRequest.fromPartial(base ?? {});
|
|
199
|
+
},
|
|
200
|
+
fromPartial(object) {
|
|
201
|
+
const message = createBaseaddAddressRequest();
|
|
202
|
+
message.address_type = object.address_type ?? 0;
|
|
203
|
+
message.house_flat_no = object.house_flat_no ?? "";
|
|
204
|
+
message.address_line_1 = object.address_line_1 ?? "";
|
|
205
|
+
message.address_line_2 = object.address_line_2 ?? "";
|
|
206
|
+
message.landmark = object.landmark ?? "";
|
|
207
|
+
message.state_id = object.state_id ?? 0;
|
|
208
|
+
message.city_id = object.city_id ?? 0;
|
|
209
|
+
message.pin_code = object.pin_code ?? "";
|
|
210
|
+
return message;
|
|
211
|
+
},
|
|
212
|
+
};
|
|
213
|
+
function createBaseaddAddressResponse() {
|
|
214
|
+
return { id: 0 };
|
|
215
|
+
}
|
|
216
|
+
exports.addAddressResponse = {
|
|
217
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
218
|
+
if (message.id !== 0) {
|
|
219
|
+
writer.uint32(8).int32(message.id);
|
|
220
|
+
}
|
|
221
|
+
return writer;
|
|
222
|
+
},
|
|
223
|
+
decode(input, length) {
|
|
224
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
225
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
226
|
+
const message = createBaseaddAddressResponse();
|
|
227
|
+
while (reader.pos < end) {
|
|
228
|
+
const tag = reader.uint32();
|
|
229
|
+
switch (tag >>> 3) {
|
|
230
|
+
case 1:
|
|
231
|
+
if (tag !== 8) {
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
message.id = reader.int32();
|
|
235
|
+
continue;
|
|
236
|
+
}
|
|
237
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
238
|
+
break;
|
|
239
|
+
}
|
|
240
|
+
reader.skipType(tag & 7);
|
|
241
|
+
}
|
|
242
|
+
return message;
|
|
243
|
+
},
|
|
244
|
+
fromJSON(object) {
|
|
245
|
+
return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
246
|
+
},
|
|
247
|
+
toJSON(message) {
|
|
248
|
+
const obj = {};
|
|
249
|
+
if (message.id !== 0) {
|
|
250
|
+
obj.id = Math.round(message.id);
|
|
251
|
+
}
|
|
252
|
+
return obj;
|
|
253
|
+
},
|
|
254
|
+
create(base) {
|
|
255
|
+
return exports.addAddressResponse.fromPartial(base ?? {});
|
|
256
|
+
},
|
|
257
|
+
fromPartial(object) {
|
|
258
|
+
const message = createBaseaddAddressResponse();
|
|
259
|
+
message.id = object.id ?? 0;
|
|
260
|
+
return message;
|
|
261
|
+
},
|
|
262
|
+
};
|
|
263
|
+
function isSet(value) {
|
|
264
|
+
return value !== null && value !== undefined;
|
|
265
|
+
}
|
|
@@ -7,8 +7,17 @@ export interface getBasicInfoResponse {
|
|
|
7
7
|
pan: string;
|
|
8
8
|
aadhaar: string;
|
|
9
9
|
personal_email: string;
|
|
10
|
-
curr_address:
|
|
11
|
-
permanent_address:
|
|
10
|
+
curr_address: Address | undefined;
|
|
11
|
+
permanent_address: Address | undefined;
|
|
12
|
+
}
|
|
13
|
+
export interface Address {
|
|
14
|
+
house_flat_no: string;
|
|
15
|
+
address_line_1: string;
|
|
16
|
+
address_line_2: string;
|
|
17
|
+
landmark: string;
|
|
18
|
+
city: string;
|
|
19
|
+
state: string;
|
|
20
|
+
pin_code: string;
|
|
12
21
|
}
|
|
13
22
|
export declare const getBasicInfoRequest: {
|
|
14
23
|
encode(_: getBasicInfoRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -26,6 +35,14 @@ export declare const getBasicInfoResponse: {
|
|
|
26
35
|
create<I extends Exact<DeepPartial<getBasicInfoResponse>, I>>(base?: I): getBasicInfoResponse;
|
|
27
36
|
fromPartial<I extends Exact<DeepPartial<getBasicInfoResponse>, I>>(object: I): getBasicInfoResponse;
|
|
28
37
|
};
|
|
38
|
+
export declare const Address: {
|
|
39
|
+
encode(message: Address, writer?: _m0.Writer): _m0.Writer;
|
|
40
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Address;
|
|
41
|
+
fromJSON(object: any): Address;
|
|
42
|
+
toJSON(message: Address): unknown;
|
|
43
|
+
create<I extends Exact<DeepPartial<Address>, I>>(base?: I): Address;
|
|
44
|
+
fromPartial<I extends Exact<DeepPartial<Address>, I>>(object: I): Address;
|
|
45
|
+
};
|
|
29
46
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
30
47
|
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 {} ? {
|
|
31
48
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.getBasicInfoResponse = exports.getBasicInfoRequest = exports.protobufPackage = void 0;
|
|
11
|
+
exports.Address = exports.getBasicInfoResponse = exports.getBasicInfoRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.getbasicinfo";
|
|
@@ -50,7 +50,14 @@ exports.getBasicInfoRequest = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function createBasegetBasicInfoResponse() {
|
|
53
|
-
return {
|
|
53
|
+
return {
|
|
54
|
+
mobile: "",
|
|
55
|
+
pan: "",
|
|
56
|
+
aadhaar: "",
|
|
57
|
+
personal_email: "",
|
|
58
|
+
curr_address: undefined,
|
|
59
|
+
permanent_address: undefined,
|
|
60
|
+
};
|
|
54
61
|
}
|
|
55
62
|
exports.getBasicInfoResponse = {
|
|
56
63
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -66,11 +73,11 @@ exports.getBasicInfoResponse = {
|
|
|
66
73
|
if (message.personal_email !== "") {
|
|
67
74
|
writer.uint32(34).string(message.personal_email);
|
|
68
75
|
}
|
|
69
|
-
if (message.curr_address !==
|
|
70
|
-
writer.uint32(42).
|
|
76
|
+
if (message.curr_address !== undefined) {
|
|
77
|
+
exports.Address.encode(message.curr_address, writer.uint32(42).fork()).ldelim();
|
|
71
78
|
}
|
|
72
|
-
if (message.permanent_address !==
|
|
73
|
-
writer.uint32(50).
|
|
79
|
+
if (message.permanent_address !== undefined) {
|
|
80
|
+
exports.Address.encode(message.permanent_address, writer.uint32(50).fork()).ldelim();
|
|
74
81
|
}
|
|
75
82
|
return writer;
|
|
76
83
|
},
|
|
@@ -109,13 +116,13 @@ exports.getBasicInfoResponse = {
|
|
|
109
116
|
if (tag !== 42) {
|
|
110
117
|
break;
|
|
111
118
|
}
|
|
112
|
-
message.curr_address = reader.
|
|
119
|
+
message.curr_address = exports.Address.decode(reader, reader.uint32());
|
|
113
120
|
continue;
|
|
114
121
|
case 6:
|
|
115
122
|
if (tag !== 50) {
|
|
116
123
|
break;
|
|
117
124
|
}
|
|
118
|
-
message.permanent_address = reader.
|
|
125
|
+
message.permanent_address = exports.Address.decode(reader, reader.uint32());
|
|
119
126
|
continue;
|
|
120
127
|
}
|
|
121
128
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -131,8 +138,8 @@ exports.getBasicInfoResponse = {
|
|
|
131
138
|
pan: isSet(object.pan) ? globalThis.String(object.pan) : "",
|
|
132
139
|
aadhaar: isSet(object.aadhaar) ? globalThis.String(object.aadhaar) : "",
|
|
133
140
|
personal_email: isSet(object.personal_email) ? globalThis.String(object.personal_email) : "",
|
|
134
|
-
curr_address: isSet(object.curr_address) ?
|
|
135
|
-
permanent_address: isSet(object.permanent_address) ?
|
|
141
|
+
curr_address: isSet(object.curr_address) ? exports.Address.fromJSON(object.curr_address) : undefined,
|
|
142
|
+
permanent_address: isSet(object.permanent_address) ? exports.Address.fromJSON(object.permanent_address) : undefined,
|
|
136
143
|
};
|
|
137
144
|
},
|
|
138
145
|
toJSON(message) {
|
|
@@ -149,11 +156,11 @@ exports.getBasicInfoResponse = {
|
|
|
149
156
|
if (message.personal_email !== "") {
|
|
150
157
|
obj.personal_email = message.personal_email;
|
|
151
158
|
}
|
|
152
|
-
if (message.curr_address !==
|
|
153
|
-
obj.curr_address = message.curr_address;
|
|
159
|
+
if (message.curr_address !== undefined) {
|
|
160
|
+
obj.curr_address = exports.Address.toJSON(message.curr_address);
|
|
154
161
|
}
|
|
155
|
-
if (message.permanent_address !==
|
|
156
|
-
obj.permanent_address = message.permanent_address;
|
|
162
|
+
if (message.permanent_address !== undefined) {
|
|
163
|
+
obj.permanent_address = exports.Address.toJSON(message.permanent_address);
|
|
157
164
|
}
|
|
158
165
|
return obj;
|
|
159
166
|
},
|
|
@@ -166,8 +173,148 @@ exports.getBasicInfoResponse = {
|
|
|
166
173
|
message.pan = object.pan ?? "";
|
|
167
174
|
message.aadhaar = object.aadhaar ?? "";
|
|
168
175
|
message.personal_email = object.personal_email ?? "";
|
|
169
|
-
message.curr_address = object.curr_address
|
|
170
|
-
|
|
176
|
+
message.curr_address = (object.curr_address !== undefined && object.curr_address !== null)
|
|
177
|
+
? exports.Address.fromPartial(object.curr_address)
|
|
178
|
+
: undefined;
|
|
179
|
+
message.permanent_address = (object.permanent_address !== undefined && object.permanent_address !== null)
|
|
180
|
+
? exports.Address.fromPartial(object.permanent_address)
|
|
181
|
+
: undefined;
|
|
182
|
+
return message;
|
|
183
|
+
},
|
|
184
|
+
};
|
|
185
|
+
function createBaseAddress() {
|
|
186
|
+
return { house_flat_no: "", address_line_1: "", address_line_2: "", landmark: "", city: "", state: "", pin_code: "" };
|
|
187
|
+
}
|
|
188
|
+
exports.Address = {
|
|
189
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
190
|
+
if (message.house_flat_no !== "") {
|
|
191
|
+
writer.uint32(10).string(message.house_flat_no);
|
|
192
|
+
}
|
|
193
|
+
if (message.address_line_1 !== "") {
|
|
194
|
+
writer.uint32(18).string(message.address_line_1);
|
|
195
|
+
}
|
|
196
|
+
if (message.address_line_2 !== "") {
|
|
197
|
+
writer.uint32(26).string(message.address_line_2);
|
|
198
|
+
}
|
|
199
|
+
if (message.landmark !== "") {
|
|
200
|
+
writer.uint32(34).string(message.landmark);
|
|
201
|
+
}
|
|
202
|
+
if (message.city !== "") {
|
|
203
|
+
writer.uint32(42).string(message.city);
|
|
204
|
+
}
|
|
205
|
+
if (message.state !== "") {
|
|
206
|
+
writer.uint32(50).string(message.state);
|
|
207
|
+
}
|
|
208
|
+
if (message.pin_code !== "") {
|
|
209
|
+
writer.uint32(58).string(message.pin_code);
|
|
210
|
+
}
|
|
211
|
+
return writer;
|
|
212
|
+
},
|
|
213
|
+
decode(input, length) {
|
|
214
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
215
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
216
|
+
const message = createBaseAddress();
|
|
217
|
+
while (reader.pos < end) {
|
|
218
|
+
const tag = reader.uint32();
|
|
219
|
+
switch (tag >>> 3) {
|
|
220
|
+
case 1:
|
|
221
|
+
if (tag !== 10) {
|
|
222
|
+
break;
|
|
223
|
+
}
|
|
224
|
+
message.house_flat_no = reader.string();
|
|
225
|
+
continue;
|
|
226
|
+
case 2:
|
|
227
|
+
if (tag !== 18) {
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
message.address_line_1 = reader.string();
|
|
231
|
+
continue;
|
|
232
|
+
case 3:
|
|
233
|
+
if (tag !== 26) {
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
message.address_line_2 = reader.string();
|
|
237
|
+
continue;
|
|
238
|
+
case 4:
|
|
239
|
+
if (tag !== 34) {
|
|
240
|
+
break;
|
|
241
|
+
}
|
|
242
|
+
message.landmark = reader.string();
|
|
243
|
+
continue;
|
|
244
|
+
case 5:
|
|
245
|
+
if (tag !== 42) {
|
|
246
|
+
break;
|
|
247
|
+
}
|
|
248
|
+
message.city = reader.string();
|
|
249
|
+
continue;
|
|
250
|
+
case 6:
|
|
251
|
+
if (tag !== 50) {
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
message.state = reader.string();
|
|
255
|
+
continue;
|
|
256
|
+
case 7:
|
|
257
|
+
if (tag !== 58) {
|
|
258
|
+
break;
|
|
259
|
+
}
|
|
260
|
+
message.pin_code = reader.string();
|
|
261
|
+
continue;
|
|
262
|
+
}
|
|
263
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
264
|
+
break;
|
|
265
|
+
}
|
|
266
|
+
reader.skipType(tag & 7);
|
|
267
|
+
}
|
|
268
|
+
return message;
|
|
269
|
+
},
|
|
270
|
+
fromJSON(object) {
|
|
271
|
+
return {
|
|
272
|
+
house_flat_no: isSet(object.house_flat_no) ? globalThis.String(object.house_flat_no) : "",
|
|
273
|
+
address_line_1: isSet(object.address_line_1) ? globalThis.String(object.address_line_1) : "",
|
|
274
|
+
address_line_2: isSet(object.address_line_2) ? globalThis.String(object.address_line_2) : "",
|
|
275
|
+
landmark: isSet(object.landmark) ? globalThis.String(object.landmark) : "",
|
|
276
|
+
city: isSet(object.city) ? globalThis.String(object.city) : "",
|
|
277
|
+
state: isSet(object.state) ? globalThis.String(object.state) : "",
|
|
278
|
+
pin_code: isSet(object.pin_code) ? globalThis.String(object.pin_code) : "",
|
|
279
|
+
};
|
|
280
|
+
},
|
|
281
|
+
toJSON(message) {
|
|
282
|
+
const obj = {};
|
|
283
|
+
if (message.house_flat_no !== "") {
|
|
284
|
+
obj.house_flat_no = message.house_flat_no;
|
|
285
|
+
}
|
|
286
|
+
if (message.address_line_1 !== "") {
|
|
287
|
+
obj.address_line_1 = message.address_line_1;
|
|
288
|
+
}
|
|
289
|
+
if (message.address_line_2 !== "") {
|
|
290
|
+
obj.address_line_2 = message.address_line_2;
|
|
291
|
+
}
|
|
292
|
+
if (message.landmark !== "") {
|
|
293
|
+
obj.landmark = message.landmark;
|
|
294
|
+
}
|
|
295
|
+
if (message.city !== "") {
|
|
296
|
+
obj.city = message.city;
|
|
297
|
+
}
|
|
298
|
+
if (message.state !== "") {
|
|
299
|
+
obj.state = message.state;
|
|
300
|
+
}
|
|
301
|
+
if (message.pin_code !== "") {
|
|
302
|
+
obj.pin_code = message.pin_code;
|
|
303
|
+
}
|
|
304
|
+
return obj;
|
|
305
|
+
},
|
|
306
|
+
create(base) {
|
|
307
|
+
return exports.Address.fromPartial(base ?? {});
|
|
308
|
+
},
|
|
309
|
+
fromPartial(object) {
|
|
310
|
+
const message = createBaseAddress();
|
|
311
|
+
message.house_flat_no = object.house_flat_no ?? "";
|
|
312
|
+
message.address_line_1 = object.address_line_1 ?? "";
|
|
313
|
+
message.address_line_2 = object.address_line_2 ?? "";
|
|
314
|
+
message.landmark = object.landmark ?? "";
|
|
315
|
+
message.city = object.city ?? "";
|
|
316
|
+
message.state = object.state ?? "";
|
|
317
|
+
message.pin_code = object.pin_code ?? "";
|
|
171
318
|
return message;
|
|
172
319
|
},
|
|
173
320
|
};
|
|
@@ -6,7 +6,16 @@ export interface getProfessionalInfoResponse {
|
|
|
6
6
|
company_name: string;
|
|
7
7
|
designation: string;
|
|
8
8
|
official_email: string;
|
|
9
|
-
office_addr:
|
|
9
|
+
office_addr: Address | undefined;
|
|
10
|
+
}
|
|
11
|
+
export interface Address {
|
|
12
|
+
house_flat_no: string;
|
|
13
|
+
address_line_1: string;
|
|
14
|
+
address_line_2: string;
|
|
15
|
+
landmark: string;
|
|
16
|
+
city: string;
|
|
17
|
+
state: string;
|
|
18
|
+
pin_code: string;
|
|
10
19
|
}
|
|
11
20
|
export declare const getProfessionalInfoRequest: {
|
|
12
21
|
encode(_: getProfessionalInfoRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -24,6 +33,14 @@ export declare const getProfessionalInfoResponse: {
|
|
|
24
33
|
create<I extends Exact<DeepPartial<getProfessionalInfoResponse>, I>>(base?: I): getProfessionalInfoResponse;
|
|
25
34
|
fromPartial<I extends Exact<DeepPartial<getProfessionalInfoResponse>, I>>(object: I): getProfessionalInfoResponse;
|
|
26
35
|
};
|
|
36
|
+
export declare const Address: {
|
|
37
|
+
encode(message: Address, writer?: _m0.Writer): _m0.Writer;
|
|
38
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Address;
|
|
39
|
+
fromJSON(object: any): Address;
|
|
40
|
+
toJSON(message: Address): unknown;
|
|
41
|
+
create<I extends Exact<DeepPartial<Address>, I>>(base?: I): Address;
|
|
42
|
+
fromPartial<I extends Exact<DeepPartial<Address>, I>>(object: I): Address;
|
|
43
|
+
};
|
|
27
44
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
28
45
|
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 {} ? {
|
|
29
46
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.getProfessionalInfoResponse = exports.getProfessionalInfoRequest = exports.protobufPackage = void 0;
|
|
11
|
+
exports.Address = exports.getProfessionalInfoResponse = exports.getProfessionalInfoRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.getprofessionalinfo";
|
|
@@ -50,7 +50,7 @@ exports.getProfessionalInfoRequest = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function createBasegetProfessionalInfoResponse() {
|
|
53
|
-
return { company_name: "", designation: "", official_email: "", office_addr:
|
|
53
|
+
return { company_name: "", designation: "", official_email: "", office_addr: undefined };
|
|
54
54
|
}
|
|
55
55
|
exports.getProfessionalInfoResponse = {
|
|
56
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -63,8 +63,8 @@ exports.getProfessionalInfoResponse = {
|
|
|
63
63
|
if (message.official_email !== "") {
|
|
64
64
|
writer.uint32(26).string(message.official_email);
|
|
65
65
|
}
|
|
66
|
-
if (message.office_addr !==
|
|
67
|
-
writer.uint32(34).
|
|
66
|
+
if (message.office_addr !== undefined) {
|
|
67
|
+
exports.Address.encode(message.office_addr, writer.uint32(34).fork()).ldelim();
|
|
68
68
|
}
|
|
69
69
|
return writer;
|
|
70
70
|
},
|
|
@@ -97,7 +97,7 @@ exports.getProfessionalInfoResponse = {
|
|
|
97
97
|
if (tag !== 34) {
|
|
98
98
|
break;
|
|
99
99
|
}
|
|
100
|
-
message.office_addr = reader.
|
|
100
|
+
message.office_addr = exports.Address.decode(reader, reader.uint32());
|
|
101
101
|
continue;
|
|
102
102
|
}
|
|
103
103
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -112,7 +112,7 @@ exports.getProfessionalInfoResponse = {
|
|
|
112
112
|
company_name: isSet(object.company_name) ? globalThis.String(object.company_name) : "",
|
|
113
113
|
designation: isSet(object.designation) ? globalThis.String(object.designation) : "",
|
|
114
114
|
official_email: isSet(object.official_email) ? globalThis.String(object.official_email) : "",
|
|
115
|
-
office_addr: isSet(object.office_addr) ?
|
|
115
|
+
office_addr: isSet(object.office_addr) ? exports.Address.fromJSON(object.office_addr) : undefined,
|
|
116
116
|
};
|
|
117
117
|
},
|
|
118
118
|
toJSON(message) {
|
|
@@ -126,8 +126,8 @@ exports.getProfessionalInfoResponse = {
|
|
|
126
126
|
if (message.official_email !== "") {
|
|
127
127
|
obj.official_email = message.official_email;
|
|
128
128
|
}
|
|
129
|
-
if (message.office_addr !==
|
|
130
|
-
obj.office_addr = message.office_addr;
|
|
129
|
+
if (message.office_addr !== undefined) {
|
|
130
|
+
obj.office_addr = exports.Address.toJSON(message.office_addr);
|
|
131
131
|
}
|
|
132
132
|
return obj;
|
|
133
133
|
},
|
|
@@ -139,7 +139,145 @@ exports.getProfessionalInfoResponse = {
|
|
|
139
139
|
message.company_name = object.company_name ?? "";
|
|
140
140
|
message.designation = object.designation ?? "";
|
|
141
141
|
message.official_email = object.official_email ?? "";
|
|
142
|
-
message.office_addr = object.office_addr
|
|
142
|
+
message.office_addr = (object.office_addr !== undefined && object.office_addr !== null)
|
|
143
|
+
? exports.Address.fromPartial(object.office_addr)
|
|
144
|
+
: undefined;
|
|
145
|
+
return message;
|
|
146
|
+
},
|
|
147
|
+
};
|
|
148
|
+
function createBaseAddress() {
|
|
149
|
+
return { house_flat_no: "", address_line_1: "", address_line_2: "", landmark: "", city: "", state: "", pin_code: "" };
|
|
150
|
+
}
|
|
151
|
+
exports.Address = {
|
|
152
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
153
|
+
if (message.house_flat_no !== "") {
|
|
154
|
+
writer.uint32(10).string(message.house_flat_no);
|
|
155
|
+
}
|
|
156
|
+
if (message.address_line_1 !== "") {
|
|
157
|
+
writer.uint32(18).string(message.address_line_1);
|
|
158
|
+
}
|
|
159
|
+
if (message.address_line_2 !== "") {
|
|
160
|
+
writer.uint32(26).string(message.address_line_2);
|
|
161
|
+
}
|
|
162
|
+
if (message.landmark !== "") {
|
|
163
|
+
writer.uint32(34).string(message.landmark);
|
|
164
|
+
}
|
|
165
|
+
if (message.city !== "") {
|
|
166
|
+
writer.uint32(42).string(message.city);
|
|
167
|
+
}
|
|
168
|
+
if (message.state !== "") {
|
|
169
|
+
writer.uint32(50).string(message.state);
|
|
170
|
+
}
|
|
171
|
+
if (message.pin_code !== "") {
|
|
172
|
+
writer.uint32(58).string(message.pin_code);
|
|
173
|
+
}
|
|
174
|
+
return writer;
|
|
175
|
+
},
|
|
176
|
+
decode(input, length) {
|
|
177
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
178
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
179
|
+
const message = createBaseAddress();
|
|
180
|
+
while (reader.pos < end) {
|
|
181
|
+
const tag = reader.uint32();
|
|
182
|
+
switch (tag >>> 3) {
|
|
183
|
+
case 1:
|
|
184
|
+
if (tag !== 10) {
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
message.house_flat_no = reader.string();
|
|
188
|
+
continue;
|
|
189
|
+
case 2:
|
|
190
|
+
if (tag !== 18) {
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
193
|
+
message.address_line_1 = reader.string();
|
|
194
|
+
continue;
|
|
195
|
+
case 3:
|
|
196
|
+
if (tag !== 26) {
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
message.address_line_2 = reader.string();
|
|
200
|
+
continue;
|
|
201
|
+
case 4:
|
|
202
|
+
if (tag !== 34) {
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
message.landmark = reader.string();
|
|
206
|
+
continue;
|
|
207
|
+
case 5:
|
|
208
|
+
if (tag !== 42) {
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
message.city = reader.string();
|
|
212
|
+
continue;
|
|
213
|
+
case 6:
|
|
214
|
+
if (tag !== 50) {
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
message.state = reader.string();
|
|
218
|
+
continue;
|
|
219
|
+
case 7:
|
|
220
|
+
if (tag !== 58) {
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
message.pin_code = reader.string();
|
|
224
|
+
continue;
|
|
225
|
+
}
|
|
226
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
reader.skipType(tag & 7);
|
|
230
|
+
}
|
|
231
|
+
return message;
|
|
232
|
+
},
|
|
233
|
+
fromJSON(object) {
|
|
234
|
+
return {
|
|
235
|
+
house_flat_no: isSet(object.house_flat_no) ? globalThis.String(object.house_flat_no) : "",
|
|
236
|
+
address_line_1: isSet(object.address_line_1) ? globalThis.String(object.address_line_1) : "",
|
|
237
|
+
address_line_2: isSet(object.address_line_2) ? globalThis.String(object.address_line_2) : "",
|
|
238
|
+
landmark: isSet(object.landmark) ? globalThis.String(object.landmark) : "",
|
|
239
|
+
city: isSet(object.city) ? globalThis.String(object.city) : "",
|
|
240
|
+
state: isSet(object.state) ? globalThis.String(object.state) : "",
|
|
241
|
+
pin_code: isSet(object.pin_code) ? globalThis.String(object.pin_code) : "",
|
|
242
|
+
};
|
|
243
|
+
},
|
|
244
|
+
toJSON(message) {
|
|
245
|
+
const obj = {};
|
|
246
|
+
if (message.house_flat_no !== "") {
|
|
247
|
+
obj.house_flat_no = message.house_flat_no;
|
|
248
|
+
}
|
|
249
|
+
if (message.address_line_1 !== "") {
|
|
250
|
+
obj.address_line_1 = message.address_line_1;
|
|
251
|
+
}
|
|
252
|
+
if (message.address_line_2 !== "") {
|
|
253
|
+
obj.address_line_2 = message.address_line_2;
|
|
254
|
+
}
|
|
255
|
+
if (message.landmark !== "") {
|
|
256
|
+
obj.landmark = message.landmark;
|
|
257
|
+
}
|
|
258
|
+
if (message.city !== "") {
|
|
259
|
+
obj.city = message.city;
|
|
260
|
+
}
|
|
261
|
+
if (message.state !== "") {
|
|
262
|
+
obj.state = message.state;
|
|
263
|
+
}
|
|
264
|
+
if (message.pin_code !== "") {
|
|
265
|
+
obj.pin_code = message.pin_code;
|
|
266
|
+
}
|
|
267
|
+
return obj;
|
|
268
|
+
},
|
|
269
|
+
create(base) {
|
|
270
|
+
return exports.Address.fromPartial(base ?? {});
|
|
271
|
+
},
|
|
272
|
+
fromPartial(object) {
|
|
273
|
+
const message = createBaseAddress();
|
|
274
|
+
message.house_flat_no = object.house_flat_no ?? "";
|
|
275
|
+
message.address_line_1 = object.address_line_1 ?? "";
|
|
276
|
+
message.address_line_2 = object.address_line_2 ?? "";
|
|
277
|
+
message.landmark = object.landmark ?? "";
|
|
278
|
+
message.city = object.city ?? "";
|
|
279
|
+
message.state = object.state ?? "";
|
|
280
|
+
message.pin_code = object.pin_code ?? "";
|
|
143
281
|
return message;
|
|
144
282
|
},
|
|
145
283
|
};
|
package/ts/customers.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
+
import { addAddressRequest, addAddressResponse } from "./customers/addaddress";
|
|
2
3
|
import { createCustomerReferenceRequest, createCustomerReferenceResponse } from "./customers/createcustomerreference";
|
|
3
4
|
import { getBankAccountDetailsRequest, getBankAccountDetailsResponse } from "./customers/getbankaccountdetails";
|
|
4
5
|
import { getBasicInfoRequest, getBasicInfoResponse } from "./customers/getbasicinfo";
|
|
@@ -336,6 +337,15 @@ export declare const customersService: {
|
|
|
336
337
|
readonly responseSerialize: (value: updateHypervergeTxnResponse) => Buffer;
|
|
337
338
|
readonly responseDeserialize: (value: Buffer) => updateHypervergeTxnResponse;
|
|
338
339
|
};
|
|
340
|
+
readonly addAddress: {
|
|
341
|
+
readonly path: "/service.customers/addAddress";
|
|
342
|
+
readonly requestStream: false;
|
|
343
|
+
readonly responseStream: false;
|
|
344
|
+
readonly requestSerialize: (value: addAddressRequest) => Buffer;
|
|
345
|
+
readonly requestDeserialize: (value: Buffer) => addAddressRequest;
|
|
346
|
+
readonly responseSerialize: (value: addAddressResponse) => Buffer;
|
|
347
|
+
readonly responseDeserialize: (value: Buffer) => addAddressResponse;
|
|
348
|
+
};
|
|
339
349
|
};
|
|
340
350
|
export interface customersServer extends UntypedServiceImplementation {
|
|
341
351
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -372,6 +382,7 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
372
382
|
getCitiesByStateId: handleUnaryCall<getCitiesRequest, getCitiesResponse>;
|
|
373
383
|
updateDigiLockerTxn: handleUnaryCall<updateDigiLockerTxnRequest, updateDigiLockerTxnResponse>;
|
|
374
384
|
updateHypervergeTxn: handleUnaryCall<updateHypervergeTxnRequest, updateHypervergeTxnResponse>;
|
|
385
|
+
addAddress: handleUnaryCall<addAddressRequest, addAddressResponse>;
|
|
375
386
|
}
|
|
376
387
|
export interface customersClient extends Client {
|
|
377
388
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -476,6 +487,9 @@ export interface customersClient extends Client {
|
|
|
476
487
|
updateHypervergeTxn(request: updateHypervergeTxnRequest, callback: (error: ServiceError | null, response: updateHypervergeTxnResponse) => void): ClientUnaryCall;
|
|
477
488
|
updateHypervergeTxn(request: updateHypervergeTxnRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateHypervergeTxnResponse) => void): ClientUnaryCall;
|
|
478
489
|
updateHypervergeTxn(request: updateHypervergeTxnRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateHypervergeTxnResponse) => void): ClientUnaryCall;
|
|
490
|
+
addAddress(request: addAddressRequest, callback: (error: ServiceError | null, response: addAddressResponse) => void): ClientUnaryCall;
|
|
491
|
+
addAddress(request: addAddressRequest, metadata: Metadata, callback: (error: ServiceError | null, response: addAddressResponse) => void): ClientUnaryCall;
|
|
492
|
+
addAddress(request: addAddressRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: addAddressResponse) => void): ClientUnaryCall;
|
|
479
493
|
}
|
|
480
494
|
export declare const customersClient: {
|
|
481
495
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.customersClient = exports.customersService = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
|
+
const addaddress_1 = require("./customers/addaddress");
|
|
11
12
|
const createcustomerreference_1 = require("./customers/createcustomerreference");
|
|
12
13
|
const getbankaccountdetails_1 = require("./customers/getbankaccountdetails");
|
|
13
14
|
const getbasicinfo_1 = require("./customers/getbasicinfo");
|
|
@@ -344,5 +345,14 @@ exports.customersService = {
|
|
|
344
345
|
responseSerialize: (value) => Buffer.from(updatehypervergetxn_1.updateHypervergeTxnResponse.encode(value).finish()),
|
|
345
346
|
responseDeserialize: (value) => updatehypervergetxn_1.updateHypervergeTxnResponse.decode(value),
|
|
346
347
|
},
|
|
348
|
+
addAddress: {
|
|
349
|
+
path: "/service.customers/addAddress",
|
|
350
|
+
requestStream: false,
|
|
351
|
+
responseStream: false,
|
|
352
|
+
requestSerialize: (value) => Buffer.from(addaddress_1.addAddressRequest.encode(value).finish()),
|
|
353
|
+
requestDeserialize: (value) => addaddress_1.addAddressRequest.decode(value),
|
|
354
|
+
responseSerialize: (value) => Buffer.from(addaddress_1.addAddressResponse.encode(value).finish()),
|
|
355
|
+
responseDeserialize: (value) => addaddress_1.addAddressResponse.decode(value),
|
|
356
|
+
},
|
|
347
357
|
};
|
|
348
358
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|