@stashfin/grpc 1.2.173 → 1.2.175
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/addmoredetails.d.ts +1 -8
- package/ts/customers/addmoredetails.js +10 -43
- package/ts/customers/getaddresslist.d.ts +36 -0
- package/ts/customers/getaddresslist.js +134 -0
- package/ts/customers/getdashboard.d.ts +4 -3
- package/ts/customers/getdashboard.js +37 -23
- package/ts/customers/getdashboardmaincard.d.ts +2 -2
- package/ts/customers/getdashboardmaincard.js +15 -15
- package/ts/customers.d.ts +17 -0
- package/ts/customers.js +11 -0
package/package.json
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "customers.addmoredetails";
|
|
3
|
-
export declare enum OccupationType {
|
|
4
|
-
SELF_EMPLOYED = 0,
|
|
5
|
-
SALARIED = 1,
|
|
6
|
-
UNRECOGNIZED = -1
|
|
7
|
-
}
|
|
8
|
-
export declare function occupationTypeFromJSON(object: any): OccupationType;
|
|
9
|
-
export declare function occupationTypeToJSON(object: OccupationType): string;
|
|
10
3
|
export interface addMoreDetailsRequest {
|
|
11
4
|
father_name: string;
|
|
12
|
-
occupation:
|
|
5
|
+
occupation: string;
|
|
13
6
|
cur_house?: string | undefined;
|
|
14
7
|
cur_address_line1: string;
|
|
15
8
|
cur_address_line2: string;
|
|
@@ -8,47 +8,14 @@ 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.addMoreDetailsResponse = exports.addMoreDetailsRequest = exports.
|
|
12
|
-
exports.occupationTypeFromJSON = occupationTypeFromJSON;
|
|
13
|
-
exports.occupationTypeToJSON = occupationTypeToJSON;
|
|
11
|
+
exports.addMoreDetailsResponse = exports.addMoreDetailsRequest = exports.protobufPackage = void 0;
|
|
14
12
|
/* eslint-disable */
|
|
15
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
16
14
|
exports.protobufPackage = "customers.addmoredetails";
|
|
17
|
-
var OccupationType;
|
|
18
|
-
(function (OccupationType) {
|
|
19
|
-
OccupationType[OccupationType["SELF_EMPLOYED"] = 0] = "SELF_EMPLOYED";
|
|
20
|
-
OccupationType[OccupationType["SALARIED"] = 1] = "SALARIED";
|
|
21
|
-
OccupationType[OccupationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
22
|
-
})(OccupationType || (exports.OccupationType = OccupationType = {}));
|
|
23
|
-
function occupationTypeFromJSON(object) {
|
|
24
|
-
switch (object) {
|
|
25
|
-
case 0:
|
|
26
|
-
case "SELF_EMPLOYED":
|
|
27
|
-
return OccupationType.SELF_EMPLOYED;
|
|
28
|
-
case 1:
|
|
29
|
-
case "SALARIED":
|
|
30
|
-
return OccupationType.SALARIED;
|
|
31
|
-
case -1:
|
|
32
|
-
case "UNRECOGNIZED":
|
|
33
|
-
default:
|
|
34
|
-
return OccupationType.UNRECOGNIZED;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function occupationTypeToJSON(object) {
|
|
38
|
-
switch (object) {
|
|
39
|
-
case OccupationType.SELF_EMPLOYED:
|
|
40
|
-
return "SELF_EMPLOYED";
|
|
41
|
-
case OccupationType.SALARIED:
|
|
42
|
-
return "SALARIED";
|
|
43
|
-
case OccupationType.UNRECOGNIZED:
|
|
44
|
-
default:
|
|
45
|
-
return "UNRECOGNIZED";
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
15
|
function createBaseaddMoreDetailsRequest() {
|
|
49
16
|
return {
|
|
50
17
|
father_name: "",
|
|
51
|
-
occupation:
|
|
18
|
+
occupation: "",
|
|
52
19
|
cur_house: undefined,
|
|
53
20
|
cur_address_line1: "",
|
|
54
21
|
cur_address_line2: "",
|
|
@@ -65,8 +32,8 @@ exports.addMoreDetailsRequest = {
|
|
|
65
32
|
if (message.father_name !== "") {
|
|
66
33
|
writer.uint32(10).string(message.father_name);
|
|
67
34
|
}
|
|
68
|
-
if (message.occupation !==
|
|
69
|
-
writer.uint32(
|
|
35
|
+
if (message.occupation !== "") {
|
|
36
|
+
writer.uint32(18).string(message.occupation);
|
|
70
37
|
}
|
|
71
38
|
if (message.cur_house !== undefined) {
|
|
72
39
|
writer.uint32(26).string(message.cur_house);
|
|
@@ -111,10 +78,10 @@ exports.addMoreDetailsRequest = {
|
|
|
111
78
|
message.father_name = reader.string();
|
|
112
79
|
continue;
|
|
113
80
|
case 2:
|
|
114
|
-
if (tag !==
|
|
81
|
+
if (tag !== 18) {
|
|
115
82
|
break;
|
|
116
83
|
}
|
|
117
|
-
message.occupation = reader.
|
|
84
|
+
message.occupation = reader.string();
|
|
118
85
|
continue;
|
|
119
86
|
case 3:
|
|
120
87
|
if (tag !== 26) {
|
|
@@ -181,7 +148,7 @@ exports.addMoreDetailsRequest = {
|
|
|
181
148
|
fromJSON(object) {
|
|
182
149
|
return {
|
|
183
150
|
father_name: isSet(object.father_name) ? globalThis.String(object.father_name) : "",
|
|
184
|
-
occupation: isSet(object.occupation) ?
|
|
151
|
+
occupation: isSet(object.occupation) ? globalThis.String(object.occupation) : "",
|
|
185
152
|
cur_house: isSet(object.cur_house) ? globalThis.String(object.cur_house) : undefined,
|
|
186
153
|
cur_address_line1: isSet(object.cur_address_line1) ? globalThis.String(object.cur_address_line1) : "",
|
|
187
154
|
cur_address_line2: isSet(object.cur_address_line2) ? globalThis.String(object.cur_address_line2) : "",
|
|
@@ -198,8 +165,8 @@ exports.addMoreDetailsRequest = {
|
|
|
198
165
|
if (message.father_name !== "") {
|
|
199
166
|
obj.father_name = message.father_name;
|
|
200
167
|
}
|
|
201
|
-
if (message.occupation !==
|
|
202
|
-
obj.occupation =
|
|
168
|
+
if (message.occupation !== "") {
|
|
169
|
+
obj.occupation = message.occupation;
|
|
203
170
|
}
|
|
204
171
|
if (message.cur_house !== undefined) {
|
|
205
172
|
obj.cur_house = message.cur_house;
|
|
@@ -236,7 +203,7 @@ exports.addMoreDetailsRequest = {
|
|
|
236
203
|
fromPartial(object) {
|
|
237
204
|
const message = createBaseaddMoreDetailsRequest();
|
|
238
205
|
message.father_name = object.father_name ?? "";
|
|
239
|
-
message.occupation = object.occupation ??
|
|
206
|
+
message.occupation = object.occupation ?? "";
|
|
240
207
|
message.cur_house = object.cur_house ?? undefined;
|
|
241
208
|
message.cur_address_line1 = object.cur_address_line1 ?? "";
|
|
242
209
|
message.cur_address_line2 = object.cur_address_line2 ?? "";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.getaddresslist";
|
|
3
|
+
export interface getAddressRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface getAddressResponse {
|
|
6
|
+
residential_address: string;
|
|
7
|
+
permanent_address: string;
|
|
8
|
+
office_address: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const getAddressRequest: {
|
|
11
|
+
encode(_: getAddressRequest, writer?: _m0.Writer): _m0.Writer;
|
|
12
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getAddressRequest;
|
|
13
|
+
fromJSON(_: any): getAddressRequest;
|
|
14
|
+
toJSON(_: getAddressRequest): unknown;
|
|
15
|
+
create<I extends Exact<DeepPartial<getAddressRequest>, I>>(base?: I): getAddressRequest;
|
|
16
|
+
fromPartial<I extends Exact<DeepPartial<getAddressRequest>, I>>(_: I): getAddressRequest;
|
|
17
|
+
};
|
|
18
|
+
export declare const getAddressResponse: {
|
|
19
|
+
encode(message: getAddressResponse, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getAddressResponse;
|
|
21
|
+
fromJSON(object: any): getAddressResponse;
|
|
22
|
+
toJSON(message: getAddressResponse): unknown;
|
|
23
|
+
create<I extends Exact<DeepPartial<getAddressResponse>, I>>(base?: I): getAddressResponse;
|
|
24
|
+
fromPartial<I extends Exact<DeepPartial<getAddressResponse>, I>>(object: I): getAddressResponse;
|
|
25
|
+
};
|
|
26
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
27
|
+
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 {} ? {
|
|
28
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
29
|
+
} : Partial<T>;
|
|
30
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
31
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
32
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
33
|
+
} & {
|
|
34
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
35
|
+
};
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.28.0
|
|
6
|
+
// source: customers/getaddresslist.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.getAddressResponse = exports.getAddressRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.getaddresslist";
|
|
15
|
+
function createBasegetAddressRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.getAddressRequest = {
|
|
19
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
return writer;
|
|
21
|
+
},
|
|
22
|
+
decode(input, length) {
|
|
23
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
24
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
+
const message = createBasegetAddressRequest();
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
const tag = reader.uint32();
|
|
28
|
+
switch (tag >>> 3) {
|
|
29
|
+
}
|
|
30
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
reader.skipType(tag & 7);
|
|
34
|
+
}
|
|
35
|
+
return message;
|
|
36
|
+
},
|
|
37
|
+
fromJSON(_) {
|
|
38
|
+
return {};
|
|
39
|
+
},
|
|
40
|
+
toJSON(_) {
|
|
41
|
+
const obj = {};
|
|
42
|
+
return obj;
|
|
43
|
+
},
|
|
44
|
+
create(base) {
|
|
45
|
+
return exports.getAddressRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasegetAddressRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasegetAddressResponse() {
|
|
53
|
+
return { residential_address: "", permanent_address: "", office_address: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.getAddressResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.residential_address !== "") {
|
|
58
|
+
writer.uint32(10).string(message.residential_address);
|
|
59
|
+
}
|
|
60
|
+
if (message.permanent_address !== "") {
|
|
61
|
+
writer.uint32(18).string(message.permanent_address);
|
|
62
|
+
}
|
|
63
|
+
if (message.office_address !== "") {
|
|
64
|
+
writer.uint32(26).string(message.office_address);
|
|
65
|
+
}
|
|
66
|
+
return writer;
|
|
67
|
+
},
|
|
68
|
+
decode(input, length) {
|
|
69
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
70
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
71
|
+
const message = createBasegetAddressResponse();
|
|
72
|
+
while (reader.pos < end) {
|
|
73
|
+
const tag = reader.uint32();
|
|
74
|
+
switch (tag >>> 3) {
|
|
75
|
+
case 1:
|
|
76
|
+
if (tag !== 10) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
message.residential_address = reader.string();
|
|
80
|
+
continue;
|
|
81
|
+
case 2:
|
|
82
|
+
if (tag !== 18) {
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
message.permanent_address = reader.string();
|
|
86
|
+
continue;
|
|
87
|
+
case 3:
|
|
88
|
+
if (tag !== 26) {
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
message.office_address = reader.string();
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
reader.skipType(tag & 7);
|
|
98
|
+
}
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
fromJSON(object) {
|
|
102
|
+
return {
|
|
103
|
+
residential_address: isSet(object.residential_address) ? globalThis.String(object.residential_address) : "",
|
|
104
|
+
permanent_address: isSet(object.permanent_address) ? globalThis.String(object.permanent_address) : "",
|
|
105
|
+
office_address: isSet(object.office_address) ? globalThis.String(object.office_address) : "",
|
|
106
|
+
};
|
|
107
|
+
},
|
|
108
|
+
toJSON(message) {
|
|
109
|
+
const obj = {};
|
|
110
|
+
if (message.residential_address !== "") {
|
|
111
|
+
obj.residential_address = message.residential_address;
|
|
112
|
+
}
|
|
113
|
+
if (message.permanent_address !== "") {
|
|
114
|
+
obj.permanent_address = message.permanent_address;
|
|
115
|
+
}
|
|
116
|
+
if (message.office_address !== "") {
|
|
117
|
+
obj.office_address = message.office_address;
|
|
118
|
+
}
|
|
119
|
+
return obj;
|
|
120
|
+
},
|
|
121
|
+
create(base) {
|
|
122
|
+
return exports.getAddressResponse.fromPartial(base ?? {});
|
|
123
|
+
},
|
|
124
|
+
fromPartial(object) {
|
|
125
|
+
const message = createBasegetAddressResponse();
|
|
126
|
+
message.residential_address = object.residential_address ?? "";
|
|
127
|
+
message.permanent_address = object.permanent_address ?? "";
|
|
128
|
+
message.office_address = object.office_address ?? "";
|
|
129
|
+
return message;
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
function isSet(value) {
|
|
133
|
+
return value !== null && value !== undefined;
|
|
134
|
+
}
|
|
@@ -6,9 +6,10 @@ export interface getDashboardResponse {
|
|
|
6
6
|
blocks: Block[];
|
|
7
7
|
}
|
|
8
8
|
export interface Block {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
name: string;
|
|
10
|
+
title: string;
|
|
11
|
+
code: string;
|
|
12
|
+
group: string;
|
|
12
13
|
block_data: BlockData[];
|
|
13
14
|
}
|
|
14
15
|
export interface BlockData {
|
|
@@ -100,21 +100,24 @@ exports.getDashboardResponse = {
|
|
|
100
100
|
},
|
|
101
101
|
};
|
|
102
102
|
function createBaseBlock() {
|
|
103
|
-
return {
|
|
103
|
+
return { name: "", title: "", code: "", group: "", block_data: [] };
|
|
104
104
|
}
|
|
105
105
|
exports.Block = {
|
|
106
106
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
107
|
-
if (message.
|
|
108
|
-
writer.uint32(10).string(message.
|
|
107
|
+
if (message.name !== "") {
|
|
108
|
+
writer.uint32(10).string(message.name);
|
|
109
109
|
}
|
|
110
|
-
if (message.
|
|
111
|
-
writer.uint32(18).string(message.
|
|
110
|
+
if (message.title !== "") {
|
|
111
|
+
writer.uint32(18).string(message.title);
|
|
112
112
|
}
|
|
113
|
-
if (message.
|
|
114
|
-
writer.uint32(26).string(message.
|
|
113
|
+
if (message.code !== "") {
|
|
114
|
+
writer.uint32(26).string(message.code);
|
|
115
|
+
}
|
|
116
|
+
if (message.group !== "") {
|
|
117
|
+
writer.uint32(34).string(message.group);
|
|
115
118
|
}
|
|
116
119
|
for (const v of message.block_data) {
|
|
117
|
-
exports.BlockData.encode(v, writer.uint32(
|
|
120
|
+
exports.BlockData.encode(v, writer.uint32(42).fork()).ldelim();
|
|
118
121
|
}
|
|
119
122
|
return writer;
|
|
120
123
|
},
|
|
@@ -129,24 +132,30 @@ exports.Block = {
|
|
|
129
132
|
if (tag !== 10) {
|
|
130
133
|
break;
|
|
131
134
|
}
|
|
132
|
-
message.
|
|
135
|
+
message.name = reader.string();
|
|
133
136
|
continue;
|
|
134
137
|
case 2:
|
|
135
138
|
if (tag !== 18) {
|
|
136
139
|
break;
|
|
137
140
|
}
|
|
138
|
-
message.
|
|
141
|
+
message.title = reader.string();
|
|
139
142
|
continue;
|
|
140
143
|
case 3:
|
|
141
144
|
if (tag !== 26) {
|
|
142
145
|
break;
|
|
143
146
|
}
|
|
144
|
-
message.
|
|
147
|
+
message.code = reader.string();
|
|
145
148
|
continue;
|
|
146
149
|
case 4:
|
|
147
150
|
if (tag !== 34) {
|
|
148
151
|
break;
|
|
149
152
|
}
|
|
153
|
+
message.group = reader.string();
|
|
154
|
+
continue;
|
|
155
|
+
case 5:
|
|
156
|
+
if (tag !== 42) {
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
150
159
|
message.block_data.push(exports.BlockData.decode(reader, reader.uint32()));
|
|
151
160
|
continue;
|
|
152
161
|
}
|
|
@@ -159,9 +168,10 @@ exports.Block = {
|
|
|
159
168
|
},
|
|
160
169
|
fromJSON(object) {
|
|
161
170
|
return {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
171
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
172
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
173
|
+
code: isSet(object.code) ? globalThis.String(object.code) : "",
|
|
174
|
+
group: isSet(object.group) ? globalThis.String(object.group) : "",
|
|
165
175
|
block_data: globalThis.Array.isArray(object?.block_data)
|
|
166
176
|
? object.block_data.map((e) => exports.BlockData.fromJSON(e))
|
|
167
177
|
: [],
|
|
@@ -169,14 +179,17 @@ exports.Block = {
|
|
|
169
179
|
},
|
|
170
180
|
toJSON(message) {
|
|
171
181
|
const obj = {};
|
|
172
|
-
if (message.
|
|
173
|
-
obj.
|
|
182
|
+
if (message.name !== "") {
|
|
183
|
+
obj.name = message.name;
|
|
184
|
+
}
|
|
185
|
+
if (message.title !== "") {
|
|
186
|
+
obj.title = message.title;
|
|
174
187
|
}
|
|
175
|
-
if (message.
|
|
176
|
-
obj.
|
|
188
|
+
if (message.code !== "") {
|
|
189
|
+
obj.code = message.code;
|
|
177
190
|
}
|
|
178
|
-
if (message.
|
|
179
|
-
obj.
|
|
191
|
+
if (message.group !== "") {
|
|
192
|
+
obj.group = message.group;
|
|
180
193
|
}
|
|
181
194
|
if (message.block_data?.length) {
|
|
182
195
|
obj.block_data = message.block_data.map((e) => exports.BlockData.toJSON(e));
|
|
@@ -188,9 +201,10 @@ exports.Block = {
|
|
|
188
201
|
},
|
|
189
202
|
fromPartial(object) {
|
|
190
203
|
const message = createBaseBlock();
|
|
191
|
-
message.
|
|
192
|
-
message.
|
|
193
|
-
message.
|
|
204
|
+
message.name = object.name ?? "";
|
|
205
|
+
message.title = object.title ?? "";
|
|
206
|
+
message.code = object.code ?? "";
|
|
207
|
+
message.group = object.group ?? "";
|
|
194
208
|
message.block_data = object.block_data?.map((e) => exports.BlockData.fromPartial(e)) || [];
|
|
195
209
|
return message;
|
|
196
210
|
},
|
|
@@ -3,8 +3,8 @@ export declare const protobufPackage = "customers.getdashboardmaincard";
|
|
|
3
3
|
export interface getDashboardMainCardRequest {
|
|
4
4
|
}
|
|
5
5
|
export interface getDashboardMainCardResponse {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
name: string;
|
|
7
|
+
code: string;
|
|
8
8
|
block_data: MainCardData | undefined;
|
|
9
9
|
user_state: string;
|
|
10
10
|
}
|
|
@@ -50,15 +50,15 @@ exports.getDashboardMainCardRequest = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function createBasegetDashboardMainCardResponse() {
|
|
53
|
-
return {
|
|
53
|
+
return { name: "", code: "", block_data: undefined, user_state: "" };
|
|
54
54
|
}
|
|
55
55
|
exports.getDashboardMainCardResponse = {
|
|
56
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
-
if (message.
|
|
58
|
-
writer.uint32(10).string(message.
|
|
57
|
+
if (message.name !== "") {
|
|
58
|
+
writer.uint32(10).string(message.name);
|
|
59
59
|
}
|
|
60
|
-
if (message.
|
|
61
|
-
writer.uint32(18).string(message.
|
|
60
|
+
if (message.code !== "") {
|
|
61
|
+
writer.uint32(18).string(message.code);
|
|
62
62
|
}
|
|
63
63
|
if (message.block_data !== undefined) {
|
|
64
64
|
exports.MainCardData.encode(message.block_data, writer.uint32(26).fork()).ldelim();
|
|
@@ -79,13 +79,13 @@ exports.getDashboardMainCardResponse = {
|
|
|
79
79
|
if (tag !== 10) {
|
|
80
80
|
break;
|
|
81
81
|
}
|
|
82
|
-
message.
|
|
82
|
+
message.name = reader.string();
|
|
83
83
|
continue;
|
|
84
84
|
case 2:
|
|
85
85
|
if (tag !== 18) {
|
|
86
86
|
break;
|
|
87
87
|
}
|
|
88
|
-
message.
|
|
88
|
+
message.code = reader.string();
|
|
89
89
|
continue;
|
|
90
90
|
case 3:
|
|
91
91
|
if (tag !== 26) {
|
|
@@ -109,19 +109,19 @@ exports.getDashboardMainCardResponse = {
|
|
|
109
109
|
},
|
|
110
110
|
fromJSON(object) {
|
|
111
111
|
return {
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
113
|
+
code: isSet(object.code) ? globalThis.String(object.code) : "",
|
|
114
114
|
block_data: isSet(object.block_data) ? exports.MainCardData.fromJSON(object.block_data) : undefined,
|
|
115
115
|
user_state: isSet(object.user_state) ? globalThis.String(object.user_state) : "",
|
|
116
116
|
};
|
|
117
117
|
},
|
|
118
118
|
toJSON(message) {
|
|
119
119
|
const obj = {};
|
|
120
|
-
if (message.
|
|
121
|
-
obj.
|
|
120
|
+
if (message.name !== "") {
|
|
121
|
+
obj.name = message.name;
|
|
122
122
|
}
|
|
123
|
-
if (message.
|
|
124
|
-
obj.
|
|
123
|
+
if (message.code !== "") {
|
|
124
|
+
obj.code = message.code;
|
|
125
125
|
}
|
|
126
126
|
if (message.block_data !== undefined) {
|
|
127
127
|
obj.block_data = exports.MainCardData.toJSON(message.block_data);
|
|
@@ -136,8 +136,8 @@ exports.getDashboardMainCardResponse = {
|
|
|
136
136
|
},
|
|
137
137
|
fromPartial(object) {
|
|
138
138
|
const message = createBasegetDashboardMainCardResponse();
|
|
139
|
-
message.
|
|
140
|
-
message.
|
|
139
|
+
message.name = object.name ?? "";
|
|
140
|
+
message.code = object.code ?? "";
|
|
141
141
|
message.block_data = (object.block_data !== undefined && object.block_data !== null)
|
|
142
142
|
? exports.MainCardData.fromPartial(object.block_data)
|
|
143
143
|
: undefined;
|
package/ts/customers.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ import { disableMpinRequest, disableMpinResponse } from "./customers/disablempin
|
|
|
16
16
|
import { fetchRCProfileRequest, fetchRCProfileResponse } from "./customers/fetchrcprofile";
|
|
17
17
|
import { forgotMpinRequest, forgotMpinResponse } from "./customers/forgotmpin";
|
|
18
18
|
import { forgotMpinVerifyRequest, forgotMpinVerifyResponse } from "./customers/forgotmpinverify";
|
|
19
|
+
import { getAddressRequest, getAddressResponse } from "./customers/getaddresslist";
|
|
19
20
|
import { getBankAccountDetailsRequest, getBankAccountDetailsResponse } from "./customers/getbankaccountdetails";
|
|
20
21
|
import { getBasicInfoRequest, getBasicInfoResponse } from "./customers/getbasicinfo";
|
|
21
22
|
import { getCitiesRequest, getCitiesResponse } from "./customers/getcities";
|
|
@@ -570,6 +571,16 @@ export declare const customersService: {
|
|
|
570
571
|
readonly responseSerialize: (value: getOccupationListResponse) => Buffer;
|
|
571
572
|
readonly responseDeserialize: (value: Buffer) => getOccupationListResponse;
|
|
572
573
|
};
|
|
574
|
+
/** rpc reversePennyDrop(.customers.reversepennydrop.reversePennyDropRequest) returns (.customers.reversepennydrop.reversePennyDropResponse) {} */
|
|
575
|
+
readonly getAddressList: {
|
|
576
|
+
readonly path: "/service.customers/getAddressList";
|
|
577
|
+
readonly requestStream: false;
|
|
578
|
+
readonly responseStream: false;
|
|
579
|
+
readonly requestSerialize: (value: getAddressRequest) => Buffer;
|
|
580
|
+
readonly requestDeserialize: (value: Buffer) => getAddressRequest;
|
|
581
|
+
readonly responseSerialize: (value: getAddressResponse) => Buffer;
|
|
582
|
+
readonly responseDeserialize: (value: Buffer) => getAddressResponse;
|
|
583
|
+
};
|
|
573
584
|
};
|
|
574
585
|
export interface customersServer extends UntypedServiceImplementation {
|
|
575
586
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -629,6 +640,8 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
629
640
|
bulkSms: handleUnaryCall<bulkSMSRequest, bulkSMSResponse>;
|
|
630
641
|
addFathersName: handleUnaryCall<addFathersNameRequest, addFathersNameResponse>;
|
|
631
642
|
getOccupationList: handleUnaryCall<getOccupationListRequest, getOccupationListResponse>;
|
|
643
|
+
/** rpc reversePennyDrop(.customers.reversepennydrop.reversePennyDropRequest) returns (.customers.reversepennydrop.reversePennyDropResponse) {} */
|
|
644
|
+
getAddressList: handleUnaryCall<getAddressRequest, getAddressResponse>;
|
|
632
645
|
}
|
|
633
646
|
export interface customersClient extends Client {
|
|
634
647
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -802,6 +815,10 @@ export interface customersClient extends Client {
|
|
|
802
815
|
getOccupationList(request: getOccupationListRequest, callback: (error: ServiceError | null, response: getOccupationListResponse) => void): ClientUnaryCall;
|
|
803
816
|
getOccupationList(request: getOccupationListRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getOccupationListResponse) => void): ClientUnaryCall;
|
|
804
817
|
getOccupationList(request: getOccupationListRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getOccupationListResponse) => void): ClientUnaryCall;
|
|
818
|
+
/** rpc reversePennyDrop(.customers.reversepennydrop.reversePennyDropRequest) returns (.customers.reversepennydrop.reversePennyDropResponse) {} */
|
|
819
|
+
getAddressList(request: getAddressRequest, callback: (error: ServiceError | null, response: getAddressResponse) => void): ClientUnaryCall;
|
|
820
|
+
getAddressList(request: getAddressRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getAddressResponse) => void): ClientUnaryCall;
|
|
821
|
+
getAddressList(request: getAddressRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getAddressResponse) => void): ClientUnaryCall;
|
|
805
822
|
}
|
|
806
823
|
export declare const customersClient: {
|
|
807
824
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -25,6 +25,7 @@ const disablempin_1 = require("./customers/disablempin");
|
|
|
25
25
|
const fetchrcprofile_1 = require("./customers/fetchrcprofile");
|
|
26
26
|
const forgotmpin_1 = require("./customers/forgotmpin");
|
|
27
27
|
const forgotmpinverify_1 = require("./customers/forgotmpinverify");
|
|
28
|
+
const getaddresslist_1 = require("./customers/getaddresslist");
|
|
28
29
|
const getbankaccountdetails_1 = require("./customers/getbankaccountdetails");
|
|
29
30
|
const getbasicinfo_1 = require("./customers/getbasicinfo");
|
|
30
31
|
const getcities_1 = require("./customers/getcities");
|
|
@@ -578,5 +579,15 @@ exports.customersService = {
|
|
|
578
579
|
responseSerialize: (value) => Buffer.from(getoccupationlist_1.getOccupationListResponse.encode(value).finish()),
|
|
579
580
|
responseDeserialize: (value) => getoccupationlist_1.getOccupationListResponse.decode(value),
|
|
580
581
|
},
|
|
582
|
+
/** rpc reversePennyDrop(.customers.reversepennydrop.reversePennyDropRequest) returns (.customers.reversepennydrop.reversePennyDropResponse) {} */
|
|
583
|
+
getAddressList: {
|
|
584
|
+
path: "/service.customers/getAddressList",
|
|
585
|
+
requestStream: false,
|
|
586
|
+
responseStream: false,
|
|
587
|
+
requestSerialize: (value) => Buffer.from(getaddresslist_1.getAddressRequest.encode(value).finish()),
|
|
588
|
+
requestDeserialize: (value) => getaddresslist_1.getAddressRequest.decode(value),
|
|
589
|
+
responseSerialize: (value) => Buffer.from(getaddresslist_1.getAddressResponse.encode(value).finish()),
|
|
590
|
+
responseDeserialize: (value) => getaddresslist_1.getAddressResponse.decode(value),
|
|
591
|
+
},
|
|
581
592
|
};
|
|
582
593
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|