@stashfin/grpc 1.2.11 → 1.2.14

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.11",
3
+ "version": "1.2.14",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -0,0 +1,36 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "customers.getbankaccountdetails";
3
+ export interface getBankAccountDetailsRequest {
4
+ }
5
+ export interface getBankAccountDetailsResponse {
6
+ account_number: string;
7
+ bank_name: string;
8
+ ifsc_code: string;
9
+ }
10
+ export declare const getBankAccountDetailsRequest: {
11
+ encode(_: getBankAccountDetailsRequest, writer?: _m0.Writer): _m0.Writer;
12
+ decode(input: _m0.Reader | Uint8Array, length?: number): getBankAccountDetailsRequest;
13
+ fromJSON(_: any): getBankAccountDetailsRequest;
14
+ toJSON(_: getBankAccountDetailsRequest): unknown;
15
+ create<I extends Exact<DeepPartial<getBankAccountDetailsRequest>, I>>(base?: I): getBankAccountDetailsRequest;
16
+ fromPartial<I extends Exact<DeepPartial<getBankAccountDetailsRequest>, I>>(_: I): getBankAccountDetailsRequest;
17
+ };
18
+ export declare const getBankAccountDetailsResponse: {
19
+ encode(message: getBankAccountDetailsResponse, writer?: _m0.Writer): _m0.Writer;
20
+ decode(input: _m0.Reader | Uint8Array, length?: number): getBankAccountDetailsResponse;
21
+ fromJSON(object: any): getBankAccountDetailsResponse;
22
+ toJSON(message: getBankAccountDetailsResponse): unknown;
23
+ create<I extends Exact<DeepPartial<getBankAccountDetailsResponse>, I>>(base?: I): getBankAccountDetailsResponse;
24
+ fromPartial<I extends Exact<DeepPartial<getBankAccountDetailsResponse>, I>>(object: I): getBankAccountDetailsResponse;
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 v3.20.3
6
+ // source: customers/getbankaccountdetails.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.getBankAccountDetailsResponse = exports.getBankAccountDetailsRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "customers.getbankaccountdetails";
15
+ function createBasegetBankAccountDetailsRequest() {
16
+ return {};
17
+ }
18
+ exports.getBankAccountDetailsRequest = {
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 = createBasegetBankAccountDetailsRequest();
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.getBankAccountDetailsRequest.fromPartial(base ?? {});
46
+ },
47
+ fromPartial(_) {
48
+ const message = createBasegetBankAccountDetailsRequest();
49
+ return message;
50
+ },
51
+ };
52
+ function createBasegetBankAccountDetailsResponse() {
53
+ return { account_number: "", bank_name: "", ifsc_code: "" };
54
+ }
55
+ exports.getBankAccountDetailsResponse = {
56
+ encode(message, writer = minimal_1.default.Writer.create()) {
57
+ if (message.account_number !== "") {
58
+ writer.uint32(10).string(message.account_number);
59
+ }
60
+ if (message.bank_name !== "") {
61
+ writer.uint32(18).string(message.bank_name);
62
+ }
63
+ if (message.ifsc_code !== "") {
64
+ writer.uint32(26).string(message.ifsc_code);
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 = createBasegetBankAccountDetailsResponse();
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.account_number = reader.string();
80
+ continue;
81
+ case 2:
82
+ if (tag !== 18) {
83
+ break;
84
+ }
85
+ message.bank_name = reader.string();
86
+ continue;
87
+ case 3:
88
+ if (tag !== 26) {
89
+ break;
90
+ }
91
+ message.ifsc_code = 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
+ account_number: isSet(object.account_number) ? globalThis.String(object.account_number) : "",
104
+ bank_name: isSet(object.bank_name) ? globalThis.String(object.bank_name) : "",
105
+ ifsc_code: isSet(object.ifsc_code) ? globalThis.String(object.ifsc_code) : "",
106
+ };
107
+ },
108
+ toJSON(message) {
109
+ const obj = {};
110
+ if (message.account_number !== "") {
111
+ obj.account_number = message.account_number;
112
+ }
113
+ if (message.bank_name !== "") {
114
+ obj.bank_name = message.bank_name;
115
+ }
116
+ if (message.ifsc_code !== "") {
117
+ obj.ifsc_code = message.ifsc_code;
118
+ }
119
+ return obj;
120
+ },
121
+ create(base) {
122
+ return exports.getBankAccountDetailsResponse.fromPartial(base ?? {});
123
+ },
124
+ fromPartial(object) {
125
+ const message = createBasegetBankAccountDetailsResponse();
126
+ message.account_number = object.account_number ?? "";
127
+ message.bank_name = object.bank_name ?? "";
128
+ message.ifsc_code = object.ifsc_code ?? "";
129
+ return message;
130
+ },
131
+ };
132
+ function isSet(value) {
133
+ return value !== null && value !== undefined;
134
+ }
@@ -0,0 +1,39 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "customers.getbasicinfo";
3
+ export interface getBasicInfoRequest {
4
+ }
5
+ export interface getBasicInfoResponse {
6
+ mobile: string;
7
+ pan: string;
8
+ aadhar: string;
9
+ personal_email: string;
10
+ curr_address: string;
11
+ permanent_address: string;
12
+ }
13
+ export declare const getBasicInfoRequest: {
14
+ encode(_: getBasicInfoRequest, writer?: _m0.Writer): _m0.Writer;
15
+ decode(input: _m0.Reader | Uint8Array, length?: number): getBasicInfoRequest;
16
+ fromJSON(_: any): getBasicInfoRequest;
17
+ toJSON(_: getBasicInfoRequest): unknown;
18
+ create<I extends Exact<DeepPartial<getBasicInfoRequest>, I>>(base?: I): getBasicInfoRequest;
19
+ fromPartial<I extends Exact<DeepPartial<getBasicInfoRequest>, I>>(_: I): getBasicInfoRequest;
20
+ };
21
+ export declare const getBasicInfoResponse: {
22
+ encode(message: getBasicInfoResponse, writer?: _m0.Writer): _m0.Writer;
23
+ decode(input: _m0.Reader | Uint8Array, length?: number): getBasicInfoResponse;
24
+ fromJSON(object: any): getBasicInfoResponse;
25
+ toJSON(message: getBasicInfoResponse): unknown;
26
+ create<I extends Exact<DeepPartial<getBasicInfoResponse>, I>>(base?: I): getBasicInfoResponse;
27
+ fromPartial<I extends Exact<DeepPartial<getBasicInfoResponse>, I>>(object: I): getBasicInfoResponse;
28
+ };
29
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
30
+ 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
+ [K in keyof T]?: DeepPartial<T[K]>;
32
+ } : Partial<T>;
33
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
34
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
35
+ [K in keyof P]: Exact<P[K], I[K]>;
36
+ } & {
37
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
38
+ };
39
+ export {};
@@ -0,0 +1,176 @@
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/getbasicinfo.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.getBasicInfoResponse = exports.getBasicInfoRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "customers.getbasicinfo";
15
+ function createBasegetBasicInfoRequest() {
16
+ return {};
17
+ }
18
+ exports.getBasicInfoRequest = {
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 = createBasegetBasicInfoRequest();
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.getBasicInfoRequest.fromPartial(base ?? {});
46
+ },
47
+ fromPartial(_) {
48
+ const message = createBasegetBasicInfoRequest();
49
+ return message;
50
+ },
51
+ };
52
+ function createBasegetBasicInfoResponse() {
53
+ return { mobile: "", pan: "", aadhar: "", personal_email: "", curr_address: "", permanent_address: "" };
54
+ }
55
+ exports.getBasicInfoResponse = {
56
+ encode(message, writer = minimal_1.default.Writer.create()) {
57
+ if (message.mobile !== "") {
58
+ writer.uint32(10).string(message.mobile);
59
+ }
60
+ if (message.pan !== "") {
61
+ writer.uint32(18).string(message.pan);
62
+ }
63
+ if (message.aadhar !== "") {
64
+ writer.uint32(26).string(message.aadhar);
65
+ }
66
+ if (message.personal_email !== "") {
67
+ writer.uint32(34).string(message.personal_email);
68
+ }
69
+ if (message.curr_address !== "") {
70
+ writer.uint32(42).string(message.curr_address);
71
+ }
72
+ if (message.permanent_address !== "") {
73
+ writer.uint32(50).string(message.permanent_address);
74
+ }
75
+ return writer;
76
+ },
77
+ decode(input, length) {
78
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
79
+ let end = length === undefined ? reader.len : reader.pos + length;
80
+ const message = createBasegetBasicInfoResponse();
81
+ while (reader.pos < end) {
82
+ const tag = reader.uint32();
83
+ switch (tag >>> 3) {
84
+ case 1:
85
+ if (tag !== 10) {
86
+ break;
87
+ }
88
+ message.mobile = reader.string();
89
+ continue;
90
+ case 2:
91
+ if (tag !== 18) {
92
+ break;
93
+ }
94
+ message.pan = reader.string();
95
+ continue;
96
+ case 3:
97
+ if (tag !== 26) {
98
+ break;
99
+ }
100
+ message.aadhar = reader.string();
101
+ continue;
102
+ case 4:
103
+ if (tag !== 34) {
104
+ break;
105
+ }
106
+ message.personal_email = reader.string();
107
+ continue;
108
+ case 5:
109
+ if (tag !== 42) {
110
+ break;
111
+ }
112
+ message.curr_address = reader.string();
113
+ continue;
114
+ case 6:
115
+ if (tag !== 50) {
116
+ break;
117
+ }
118
+ message.permanent_address = reader.string();
119
+ continue;
120
+ }
121
+ if ((tag & 7) === 4 || tag === 0) {
122
+ break;
123
+ }
124
+ reader.skipType(tag & 7);
125
+ }
126
+ return message;
127
+ },
128
+ fromJSON(object) {
129
+ return {
130
+ mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
131
+ pan: isSet(object.pan) ? globalThis.String(object.pan) : "",
132
+ aadhar: isSet(object.aadhar) ? globalThis.String(object.aadhar) : "",
133
+ personal_email: isSet(object.personal_email) ? globalThis.String(object.personal_email) : "",
134
+ curr_address: isSet(object.curr_address) ? globalThis.String(object.curr_address) : "",
135
+ permanent_address: isSet(object.permanent_address) ? globalThis.String(object.permanent_address) : "",
136
+ };
137
+ },
138
+ toJSON(message) {
139
+ const obj = {};
140
+ if (message.mobile !== "") {
141
+ obj.mobile = message.mobile;
142
+ }
143
+ if (message.pan !== "") {
144
+ obj.pan = message.pan;
145
+ }
146
+ if (message.aadhar !== "") {
147
+ obj.aadhar = message.aadhar;
148
+ }
149
+ if (message.personal_email !== "") {
150
+ obj.personal_email = message.personal_email;
151
+ }
152
+ if (message.curr_address !== "") {
153
+ obj.curr_address = message.curr_address;
154
+ }
155
+ if (message.permanent_address !== "") {
156
+ obj.permanent_address = message.permanent_address;
157
+ }
158
+ return obj;
159
+ },
160
+ create(base) {
161
+ return exports.getBasicInfoResponse.fromPartial(base ?? {});
162
+ },
163
+ fromPartial(object) {
164
+ const message = createBasegetBasicInfoResponse();
165
+ message.mobile = object.mobile ?? "";
166
+ message.pan = object.pan ?? "";
167
+ message.aadhar = object.aadhar ?? "";
168
+ message.personal_email = object.personal_email ?? "";
169
+ message.curr_address = object.curr_address ?? "";
170
+ message.permanent_address = object.permanent_address ?? "";
171
+ return message;
172
+ },
173
+ };
174
+ function isSet(value) {
175
+ return value !== null && value !== undefined;
176
+ }
@@ -0,0 +1,37 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "customers.getprofessionalinfo";
3
+ export interface getProfessionalInfoRequest {
4
+ }
5
+ export interface getProfessionalInfoResponse {
6
+ company_name: string;
7
+ designation: string;
8
+ official_email: string;
9
+ office_addr: string;
10
+ }
11
+ export declare const getProfessionalInfoRequest: {
12
+ encode(_: getProfessionalInfoRequest, writer?: _m0.Writer): _m0.Writer;
13
+ decode(input: _m0.Reader | Uint8Array, length?: number): getProfessionalInfoRequest;
14
+ fromJSON(_: any): getProfessionalInfoRequest;
15
+ toJSON(_: getProfessionalInfoRequest): unknown;
16
+ create<I extends Exact<DeepPartial<getProfessionalInfoRequest>, I>>(base?: I): getProfessionalInfoRequest;
17
+ fromPartial<I extends Exact<DeepPartial<getProfessionalInfoRequest>, I>>(_: I): getProfessionalInfoRequest;
18
+ };
19
+ export declare const getProfessionalInfoResponse: {
20
+ encode(message: getProfessionalInfoResponse, writer?: _m0.Writer): _m0.Writer;
21
+ decode(input: _m0.Reader | Uint8Array, length?: number): getProfessionalInfoResponse;
22
+ fromJSON(object: any): getProfessionalInfoResponse;
23
+ toJSON(message: getProfessionalInfoResponse): unknown;
24
+ create<I extends Exact<DeepPartial<getProfessionalInfoResponse>, I>>(base?: I): getProfessionalInfoResponse;
25
+ fromPartial<I extends Exact<DeepPartial<getProfessionalInfoResponse>, I>>(object: I): getProfessionalInfoResponse;
26
+ };
27
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
28
+ 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
+ [K in keyof T]?: DeepPartial<T[K]>;
30
+ } : Partial<T>;
31
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
32
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
33
+ [K in keyof P]: Exact<P[K], I[K]>;
34
+ } & {
35
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
36
+ };
37
+ export {};
@@ -0,0 +1,148 @@
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/getprofessionalinfo.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.getProfessionalInfoResponse = exports.getProfessionalInfoRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "customers.getprofessionalinfo";
15
+ function createBasegetProfessionalInfoRequest() {
16
+ return {};
17
+ }
18
+ exports.getProfessionalInfoRequest = {
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 = createBasegetProfessionalInfoRequest();
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.getProfessionalInfoRequest.fromPartial(base ?? {});
46
+ },
47
+ fromPartial(_) {
48
+ const message = createBasegetProfessionalInfoRequest();
49
+ return message;
50
+ },
51
+ };
52
+ function createBasegetProfessionalInfoResponse() {
53
+ return { company_name: "", designation: "", official_email: "", office_addr: "" };
54
+ }
55
+ exports.getProfessionalInfoResponse = {
56
+ encode(message, writer = minimal_1.default.Writer.create()) {
57
+ if (message.company_name !== "") {
58
+ writer.uint32(10).string(message.company_name);
59
+ }
60
+ if (message.designation !== "") {
61
+ writer.uint32(18).string(message.designation);
62
+ }
63
+ if (message.official_email !== "") {
64
+ writer.uint32(26).string(message.official_email);
65
+ }
66
+ if (message.office_addr !== "") {
67
+ writer.uint32(34).string(message.office_addr);
68
+ }
69
+ return writer;
70
+ },
71
+ decode(input, length) {
72
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
73
+ let end = length === undefined ? reader.len : reader.pos + length;
74
+ const message = createBasegetProfessionalInfoResponse();
75
+ while (reader.pos < end) {
76
+ const tag = reader.uint32();
77
+ switch (tag >>> 3) {
78
+ case 1:
79
+ if (tag !== 10) {
80
+ break;
81
+ }
82
+ message.company_name = reader.string();
83
+ continue;
84
+ case 2:
85
+ if (tag !== 18) {
86
+ break;
87
+ }
88
+ message.designation = reader.string();
89
+ continue;
90
+ case 3:
91
+ if (tag !== 26) {
92
+ break;
93
+ }
94
+ message.official_email = reader.string();
95
+ continue;
96
+ case 4:
97
+ if (tag !== 34) {
98
+ break;
99
+ }
100
+ message.office_addr = reader.string();
101
+ continue;
102
+ }
103
+ if ((tag & 7) === 4 || tag === 0) {
104
+ break;
105
+ }
106
+ reader.skipType(tag & 7);
107
+ }
108
+ return message;
109
+ },
110
+ fromJSON(object) {
111
+ return {
112
+ company_name: isSet(object.company_name) ? globalThis.String(object.company_name) : "",
113
+ designation: isSet(object.designation) ? globalThis.String(object.designation) : "",
114
+ official_email: isSet(object.official_email) ? globalThis.String(object.official_email) : "",
115
+ office_addr: isSet(object.office_addr) ? globalThis.String(object.office_addr) : "",
116
+ };
117
+ },
118
+ toJSON(message) {
119
+ const obj = {};
120
+ if (message.company_name !== "") {
121
+ obj.company_name = message.company_name;
122
+ }
123
+ if (message.designation !== "") {
124
+ obj.designation = message.designation;
125
+ }
126
+ if (message.official_email !== "") {
127
+ obj.official_email = message.official_email;
128
+ }
129
+ if (message.office_addr !== "") {
130
+ obj.office_addr = message.office_addr;
131
+ }
132
+ return obj;
133
+ },
134
+ create(base) {
135
+ return exports.getProfessionalInfoResponse.fromPartial(base ?? {});
136
+ },
137
+ fromPartial(object) {
138
+ const message = createBasegetProfessionalInfoResponse();
139
+ message.company_name = object.company_name ?? "";
140
+ message.designation = object.designation ?? "";
141
+ message.official_email = object.official_email ?? "";
142
+ message.office_addr = object.office_addr ?? "";
143
+ return message;
144
+ },
145
+ };
146
+ function isSet(value) {
147
+ return value !== null && value !== undefined;
148
+ }
package/ts/customers.d.ts CHANGED
@@ -1,7 +1,10 @@
1
1
  import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
2
+ import { getBankAccountDetailsRequest, getBankAccountDetailsResponse } from "./customers/getbankaccountdetails";
3
+ import { getBasicInfoRequest, getBasicInfoResponse } from "./customers/getbasicinfo";
2
4
  import { getCustomerByIdRequest, getCustomerByIdResponse } from "./customers/getcustomerbyid";
3
5
  import { getDashboardRequest, getDashboardResponse } from "./customers/getdashboard";
4
6
  import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./customers/getdashboardmaincard";
7
+ import { getProfessionalInfoRequest, getProfessionalInfoResponse } from "./customers/getprofessionalinfo";
5
8
  import { getCustomerProfileRequest, getCustomerProfileResponse } from "./customers/getprofile";
6
9
  import { getstepRequest, getstepResponse } from "./customers/getstep";
7
10
  import { updateProfileBasicRequest, updateProfileBasicResponse } from "./customers/profilebasic";
@@ -238,6 +241,33 @@ export declare const customersService: {
238
241
  readonly responseSerialize: (value: getDashboardMainCardResponse) => Buffer;
239
242
  readonly responseDeserialize: (value: Buffer) => getDashboardMainCardResponse;
240
243
  };
244
+ readonly getBankAccountDetails: {
245
+ readonly path: "/service.customers/getBankAccountDetails";
246
+ readonly requestStream: false;
247
+ readonly responseStream: false;
248
+ readonly requestSerialize: (value: getBankAccountDetailsRequest) => Buffer;
249
+ readonly requestDeserialize: (value: Buffer) => getBankAccountDetailsRequest;
250
+ readonly responseSerialize: (value: getBankAccountDetailsResponse) => Buffer;
251
+ readonly responseDeserialize: (value: Buffer) => getBankAccountDetailsResponse;
252
+ };
253
+ readonly getBasicInfo: {
254
+ readonly path: "/service.customers/getBasicInfo";
255
+ readonly requestStream: false;
256
+ readonly responseStream: false;
257
+ readonly requestSerialize: (value: getBasicInfoRequest) => Buffer;
258
+ readonly requestDeserialize: (value: Buffer) => getBasicInfoRequest;
259
+ readonly responseSerialize: (value: getBasicInfoResponse) => Buffer;
260
+ readonly responseDeserialize: (value: Buffer) => getBasicInfoResponse;
261
+ };
262
+ readonly getProfessionalInfo: {
263
+ readonly path: "/service.customers/getProfessionalInfo";
264
+ readonly requestStream: false;
265
+ readonly responseStream: false;
266
+ readonly requestSerialize: (value: getProfessionalInfoRequest) => Buffer;
267
+ readonly requestDeserialize: (value: Buffer) => getProfessionalInfoRequest;
268
+ readonly responseSerialize: (value: getProfessionalInfoResponse) => Buffer;
269
+ readonly responseDeserialize: (value: Buffer) => getProfessionalInfoResponse;
270
+ };
241
271
  };
242
272
  export interface customersServer extends UntypedServiceImplementation {
243
273
  sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
@@ -264,6 +294,9 @@ export interface customersServer extends UntypedServiceImplementation {
264
294
  getCustomerById: handleUnaryCall<getCustomerByIdRequest, getCustomerByIdResponse>;
265
295
  getDashboard: handleUnaryCall<getDashboardRequest, getDashboardResponse>;
266
296
  getDashboardMainCard: handleUnaryCall<getDashboardMainCardRequest, getDashboardMainCardResponse>;
297
+ getBankAccountDetails: handleUnaryCall<getBankAccountDetailsRequest, getBankAccountDetailsResponse>;
298
+ getBasicInfo: handleUnaryCall<getBasicInfoRequest, getBasicInfoResponse>;
299
+ getProfessionalInfo: handleUnaryCall<getProfessionalInfoRequest, getProfessionalInfoResponse>;
267
300
  }
268
301
  export interface customersClient extends Client {
269
302
  sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
@@ -338,6 +371,15 @@ export interface customersClient extends Client {
338
371
  getDashboardMainCard(request: getDashboardMainCardRequest, callback: (error: ServiceError | null, response: getDashboardMainCardResponse) => void): ClientUnaryCall;
339
372
  getDashboardMainCard(request: getDashboardMainCardRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getDashboardMainCardResponse) => void): ClientUnaryCall;
340
373
  getDashboardMainCard(request: getDashboardMainCardRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getDashboardMainCardResponse) => void): ClientUnaryCall;
374
+ getBankAccountDetails(request: getBankAccountDetailsRequest, callback: (error: ServiceError | null, response: getBankAccountDetailsResponse) => void): ClientUnaryCall;
375
+ getBankAccountDetails(request: getBankAccountDetailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getBankAccountDetailsResponse) => void): ClientUnaryCall;
376
+ getBankAccountDetails(request: getBankAccountDetailsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getBankAccountDetailsResponse) => void): ClientUnaryCall;
377
+ getBasicInfo(request: getBasicInfoRequest, callback: (error: ServiceError | null, response: getBasicInfoResponse) => void): ClientUnaryCall;
378
+ getBasicInfo(request: getBasicInfoRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getBasicInfoResponse) => void): ClientUnaryCall;
379
+ getBasicInfo(request: getBasicInfoRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getBasicInfoResponse) => void): ClientUnaryCall;
380
+ getProfessionalInfo(request: getProfessionalInfoRequest, callback: (error: ServiceError | null, response: getProfessionalInfoResponse) => void): ClientUnaryCall;
381
+ getProfessionalInfo(request: getProfessionalInfoRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getProfessionalInfoResponse) => void): ClientUnaryCall;
382
+ getProfessionalInfo(request: getProfessionalInfoRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getProfessionalInfoResponse) => void): ClientUnaryCall;
341
383
  }
342
384
  export declare const customersClient: {
343
385
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
package/ts/customers.js CHANGED
@@ -8,9 +8,12 @@ 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 getbankaccountdetails_1 = require("./customers/getbankaccountdetails");
12
+ const getbasicinfo_1 = require("./customers/getbasicinfo");
11
13
  const getcustomerbyid_1 = require("./customers/getcustomerbyid");
12
14
  const getdashboard_1 = require("./customers/getdashboard");
13
15
  const getdashboardmaincard_1 = require("./customers/getdashboardmaincard");
16
+ const getprofessionalinfo_1 = require("./customers/getprofessionalinfo");
14
17
  const getprofile_1 = require("./customers/getprofile");
15
18
  const getstep_1 = require("./customers/getstep");
16
19
  const profilebasic_1 = require("./customers/profilebasic");
@@ -246,5 +249,32 @@ exports.customersService = {
246
249
  responseSerialize: (value) => Buffer.from(getdashboardmaincard_1.getDashboardMainCardResponse.encode(value).finish()),
247
250
  responseDeserialize: (value) => getdashboardmaincard_1.getDashboardMainCardResponse.decode(value),
248
251
  },
252
+ getBankAccountDetails: {
253
+ path: "/service.customers/getBankAccountDetails",
254
+ requestStream: false,
255
+ responseStream: false,
256
+ requestSerialize: (value) => Buffer.from(getbankaccountdetails_1.getBankAccountDetailsRequest.encode(value).finish()),
257
+ requestDeserialize: (value) => getbankaccountdetails_1.getBankAccountDetailsRequest.decode(value),
258
+ responseSerialize: (value) => Buffer.from(getbankaccountdetails_1.getBankAccountDetailsResponse.encode(value).finish()),
259
+ responseDeserialize: (value) => getbankaccountdetails_1.getBankAccountDetailsResponse.decode(value),
260
+ },
261
+ getBasicInfo: {
262
+ path: "/service.customers/getBasicInfo",
263
+ requestStream: false,
264
+ responseStream: false,
265
+ requestSerialize: (value) => Buffer.from(getbasicinfo_1.getBasicInfoRequest.encode(value).finish()),
266
+ requestDeserialize: (value) => getbasicinfo_1.getBasicInfoRequest.decode(value),
267
+ responseSerialize: (value) => Buffer.from(getbasicinfo_1.getBasicInfoResponse.encode(value).finish()),
268
+ responseDeserialize: (value) => getbasicinfo_1.getBasicInfoResponse.decode(value),
269
+ },
270
+ getProfessionalInfo: {
271
+ path: "/service.customers/getProfessionalInfo",
272
+ requestStream: false,
273
+ responseStream: false,
274
+ requestSerialize: (value) => Buffer.from(getprofessionalinfo_1.getProfessionalInfoRequest.encode(value).finish()),
275
+ requestDeserialize: (value) => getprofessionalinfo_1.getProfessionalInfoRequest.decode(value),
276
+ responseSerialize: (value) => Buffer.from(getprofessionalinfo_1.getProfessionalInfoResponse.encode(value).finish()),
277
+ responseDeserialize: (value) => getprofessionalinfo_1.getProfessionalInfoResponse.decode(value),
278
+ },
249
279
  };
250
280
  exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");