@stashfin/grpc 1.2.64 → 1.2.66

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.64",
3
+ "version": "1.2.66",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -0,0 +1,48 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "customers.aa.getbanklist";
3
+ export interface getBankListRequest {
4
+ }
5
+ export interface getBankListResponse {
6
+ fip: BankData[];
7
+ }
8
+ export interface BankData {
9
+ id: string;
10
+ name: string;
11
+ netBankingEnabled: boolean;
12
+ pdfJourneyEnabled: boolean;
13
+ }
14
+ export declare const getBankListRequest: {
15
+ encode(_: getBankListRequest, writer?: _m0.Writer): _m0.Writer;
16
+ decode(input: _m0.Reader | Uint8Array, length?: number): getBankListRequest;
17
+ fromJSON(_: any): getBankListRequest;
18
+ toJSON(_: getBankListRequest): unknown;
19
+ create<I extends Exact<DeepPartial<getBankListRequest>, I>>(base?: I): getBankListRequest;
20
+ fromPartial<I extends Exact<DeepPartial<getBankListRequest>, I>>(_: I): getBankListRequest;
21
+ };
22
+ export declare const getBankListResponse: {
23
+ encode(message: getBankListResponse, writer?: _m0.Writer): _m0.Writer;
24
+ decode(input: _m0.Reader | Uint8Array, length?: number): getBankListResponse;
25
+ fromJSON(object: any): getBankListResponse;
26
+ toJSON(message: getBankListResponse): unknown;
27
+ create<I extends Exact<DeepPartial<getBankListResponse>, I>>(base?: I): getBankListResponse;
28
+ fromPartial<I extends Exact<DeepPartial<getBankListResponse>, I>>(object: I): getBankListResponse;
29
+ };
30
+ export declare const BankData: {
31
+ encode(message: BankData, writer?: _m0.Writer): _m0.Writer;
32
+ decode(input: _m0.Reader | Uint8Array, length?: number): BankData;
33
+ fromJSON(object: any): BankData;
34
+ toJSON(message: BankData): unknown;
35
+ create<I extends Exact<DeepPartial<BankData>, I>>(base?: I): BankData;
36
+ fromPartial<I extends Exact<DeepPartial<BankData>, I>>(object: I): BankData;
37
+ };
38
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
39
+ 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 {} ? {
40
+ [K in keyof T]?: DeepPartial<T[K]>;
41
+ } : Partial<T>;
42
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
43
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
44
+ [K in keyof P]: Exact<P[K], I[K]>;
45
+ } & {
46
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
47
+ };
48
+ export {};
@@ -0,0 +1,198 @@
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/aa/getbanklist.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.BankData = exports.getBankListResponse = exports.getBankListRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "customers.aa.getbanklist";
15
+ function createBasegetBankListRequest() {
16
+ return {};
17
+ }
18
+ exports.getBankListRequest = {
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 = createBasegetBankListRequest();
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.getBankListRequest.fromPartial(base ?? {});
46
+ },
47
+ fromPartial(_) {
48
+ const message = createBasegetBankListRequest();
49
+ return message;
50
+ },
51
+ };
52
+ function createBasegetBankListResponse() {
53
+ return { fip: [] };
54
+ }
55
+ exports.getBankListResponse = {
56
+ encode(message, writer = minimal_1.default.Writer.create()) {
57
+ for (const v of message.fip) {
58
+ exports.BankData.encode(v, writer.uint32(10).fork()).ldelim();
59
+ }
60
+ return writer;
61
+ },
62
+ decode(input, length) {
63
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
64
+ let end = length === undefined ? reader.len : reader.pos + length;
65
+ const message = createBasegetBankListResponse();
66
+ while (reader.pos < end) {
67
+ const tag = reader.uint32();
68
+ switch (tag >>> 3) {
69
+ case 1:
70
+ if (tag !== 10) {
71
+ break;
72
+ }
73
+ message.fip.push(exports.BankData.decode(reader, reader.uint32()));
74
+ continue;
75
+ }
76
+ if ((tag & 7) === 4 || tag === 0) {
77
+ break;
78
+ }
79
+ reader.skipType(tag & 7);
80
+ }
81
+ return message;
82
+ },
83
+ fromJSON(object) {
84
+ return { fip: globalThis.Array.isArray(object?.fip) ? object.fip.map((e) => exports.BankData.fromJSON(e)) : [] };
85
+ },
86
+ toJSON(message) {
87
+ const obj = {};
88
+ if (message.fip?.length) {
89
+ obj.fip = message.fip.map((e) => exports.BankData.toJSON(e));
90
+ }
91
+ return obj;
92
+ },
93
+ create(base) {
94
+ return exports.getBankListResponse.fromPartial(base ?? {});
95
+ },
96
+ fromPartial(object) {
97
+ const message = createBasegetBankListResponse();
98
+ message.fip = object.fip?.map((e) => exports.BankData.fromPartial(e)) || [];
99
+ return message;
100
+ },
101
+ };
102
+ function createBaseBankData() {
103
+ return { id: "", name: "", netBankingEnabled: false, pdfJourneyEnabled: false };
104
+ }
105
+ exports.BankData = {
106
+ encode(message, writer = minimal_1.default.Writer.create()) {
107
+ if (message.id !== "") {
108
+ writer.uint32(10).string(message.id);
109
+ }
110
+ if (message.name !== "") {
111
+ writer.uint32(18).string(message.name);
112
+ }
113
+ if (message.netBankingEnabled !== false) {
114
+ writer.uint32(24).bool(message.netBankingEnabled);
115
+ }
116
+ if (message.pdfJourneyEnabled !== false) {
117
+ writer.uint32(32).bool(message.pdfJourneyEnabled);
118
+ }
119
+ return writer;
120
+ },
121
+ decode(input, length) {
122
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
123
+ let end = length === undefined ? reader.len : reader.pos + length;
124
+ const message = createBaseBankData();
125
+ while (reader.pos < end) {
126
+ const tag = reader.uint32();
127
+ switch (tag >>> 3) {
128
+ case 1:
129
+ if (tag !== 10) {
130
+ break;
131
+ }
132
+ message.id = reader.string();
133
+ continue;
134
+ case 2:
135
+ if (tag !== 18) {
136
+ break;
137
+ }
138
+ message.name = reader.string();
139
+ continue;
140
+ case 3:
141
+ if (tag !== 24) {
142
+ break;
143
+ }
144
+ message.netBankingEnabled = reader.bool();
145
+ continue;
146
+ case 4:
147
+ if (tag !== 32) {
148
+ break;
149
+ }
150
+ message.pdfJourneyEnabled = reader.bool();
151
+ continue;
152
+ }
153
+ if ((tag & 7) === 4 || tag === 0) {
154
+ break;
155
+ }
156
+ reader.skipType(tag & 7);
157
+ }
158
+ return message;
159
+ },
160
+ fromJSON(object) {
161
+ return {
162
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
163
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
164
+ netBankingEnabled: isSet(object.netBankingEnabled) ? globalThis.Boolean(object.netBankingEnabled) : false,
165
+ pdfJourneyEnabled: isSet(object.pdfJourneyEnabled) ? globalThis.Boolean(object.pdfJourneyEnabled) : false,
166
+ };
167
+ },
168
+ toJSON(message) {
169
+ const obj = {};
170
+ if (message.id !== "") {
171
+ obj.id = message.id;
172
+ }
173
+ if (message.name !== "") {
174
+ obj.name = message.name;
175
+ }
176
+ if (message.netBankingEnabled !== false) {
177
+ obj.netBankingEnabled = message.netBankingEnabled;
178
+ }
179
+ if (message.pdfJourneyEnabled !== false) {
180
+ obj.pdfJourneyEnabled = message.pdfJourneyEnabled;
181
+ }
182
+ return obj;
183
+ },
184
+ create(base) {
185
+ return exports.BankData.fromPartial(base ?? {});
186
+ },
187
+ fromPartial(object) {
188
+ const message = createBaseBankData();
189
+ message.id = object.id ?? "";
190
+ message.name = object.name ?? "";
191
+ message.netBankingEnabled = object.netBankingEnabled ?? false;
192
+ message.pdfJourneyEnabled = object.pdfJourneyEnabled ?? false;
193
+ return message;
194
+ },
195
+ };
196
+ function isSet(value) {
197
+ return value !== null && value !== undefined;
198
+ }
@@ -0,0 +1,36 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "customers.addsuspendedcustomer";
3
+ export interface addSuspendedCustomerRequest {
4
+ mobile: string;
5
+ email: string;
6
+ }
7
+ export interface addSuspendedCustomerResponse {
8
+ success: boolean;
9
+ }
10
+ export declare const addSuspendedCustomerRequest: {
11
+ encode(message: addSuspendedCustomerRequest, writer?: _m0.Writer): _m0.Writer;
12
+ decode(input: _m0.Reader | Uint8Array, length?: number): addSuspendedCustomerRequest;
13
+ fromJSON(object: any): addSuspendedCustomerRequest;
14
+ toJSON(message: addSuspendedCustomerRequest): unknown;
15
+ create<I extends Exact<DeepPartial<addSuspendedCustomerRequest>, I>>(base?: I): addSuspendedCustomerRequest;
16
+ fromPartial<I extends Exact<DeepPartial<addSuspendedCustomerRequest>, I>>(object: I): addSuspendedCustomerRequest;
17
+ };
18
+ export declare const addSuspendedCustomerResponse: {
19
+ encode(message: addSuspendedCustomerResponse, writer?: _m0.Writer): _m0.Writer;
20
+ decode(input: _m0.Reader | Uint8Array, length?: number): addSuspendedCustomerResponse;
21
+ fromJSON(object: any): addSuspendedCustomerResponse;
22
+ toJSON(message: addSuspendedCustomerResponse): unknown;
23
+ create<I extends Exact<DeepPartial<addSuspendedCustomerResponse>, I>>(base?: I): addSuspendedCustomerResponse;
24
+ fromPartial<I extends Exact<DeepPartial<addSuspendedCustomerResponse>, I>>(object: I): addSuspendedCustomerResponse;
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,133 @@
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/addsuspendedcustomer.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.addSuspendedCustomerResponse = exports.addSuspendedCustomerRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "customers.addsuspendedcustomer";
15
+ function createBaseaddSuspendedCustomerRequest() {
16
+ return { mobile: "", email: "" };
17
+ }
18
+ exports.addSuspendedCustomerRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.mobile !== "") {
21
+ writer.uint32(10).string(message.mobile);
22
+ }
23
+ if (message.email !== "") {
24
+ writer.uint32(18).string(message.email);
25
+ }
26
+ return writer;
27
+ },
28
+ decode(input, length) {
29
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
30
+ let end = length === undefined ? reader.len : reader.pos + length;
31
+ const message = createBaseaddSuspendedCustomerRequest();
32
+ while (reader.pos < end) {
33
+ const tag = reader.uint32();
34
+ switch (tag >>> 3) {
35
+ case 1:
36
+ if (tag !== 10) {
37
+ break;
38
+ }
39
+ message.mobile = reader.string();
40
+ continue;
41
+ case 2:
42
+ if (tag !== 18) {
43
+ break;
44
+ }
45
+ message.email = reader.string();
46
+ continue;
47
+ }
48
+ if ((tag & 7) === 4 || tag === 0) {
49
+ break;
50
+ }
51
+ reader.skipType(tag & 7);
52
+ }
53
+ return message;
54
+ },
55
+ fromJSON(object) {
56
+ return {
57
+ mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
58
+ email: isSet(object.email) ? globalThis.String(object.email) : "",
59
+ };
60
+ },
61
+ toJSON(message) {
62
+ const obj = {};
63
+ if (message.mobile !== "") {
64
+ obj.mobile = message.mobile;
65
+ }
66
+ if (message.email !== "") {
67
+ obj.email = message.email;
68
+ }
69
+ return obj;
70
+ },
71
+ create(base) {
72
+ return exports.addSuspendedCustomerRequest.fromPartial(base ?? {});
73
+ },
74
+ fromPartial(object) {
75
+ const message = createBaseaddSuspendedCustomerRequest();
76
+ message.mobile = object.mobile ?? "";
77
+ message.email = object.email ?? "";
78
+ return message;
79
+ },
80
+ };
81
+ function createBaseaddSuspendedCustomerResponse() {
82
+ return { success: false };
83
+ }
84
+ exports.addSuspendedCustomerResponse = {
85
+ encode(message, writer = minimal_1.default.Writer.create()) {
86
+ if (message.success !== false) {
87
+ writer.uint32(8).bool(message.success);
88
+ }
89
+ return writer;
90
+ },
91
+ decode(input, length) {
92
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
93
+ let end = length === undefined ? reader.len : reader.pos + length;
94
+ const message = createBaseaddSuspendedCustomerResponse();
95
+ while (reader.pos < end) {
96
+ const tag = reader.uint32();
97
+ switch (tag >>> 3) {
98
+ case 1:
99
+ if (tag !== 8) {
100
+ break;
101
+ }
102
+ message.success = reader.bool();
103
+ continue;
104
+ }
105
+ if ((tag & 7) === 4 || tag === 0) {
106
+ break;
107
+ }
108
+ reader.skipType(tag & 7);
109
+ }
110
+ return message;
111
+ },
112
+ fromJSON(object) {
113
+ return { success: isSet(object.success) ? globalThis.Boolean(object.success) : false };
114
+ },
115
+ toJSON(message) {
116
+ const obj = {};
117
+ if (message.success !== false) {
118
+ obj.success = message.success;
119
+ }
120
+ return obj;
121
+ },
122
+ create(base) {
123
+ return exports.addSuspendedCustomerResponse.fromPartial(base ?? {});
124
+ },
125
+ fromPartial(object) {
126
+ const message = createBaseaddSuspendedCustomerResponse();
127
+ message.success = object.success ?? false;
128
+ return message;
129
+ },
130
+ };
131
+ function isSet(value) {
132
+ return value !== null && value !== undefined;
133
+ }
@@ -25,6 +25,7 @@ export interface getCustomerByIdResponse {
25
25
  roi: number;
26
26
  processing_rate: number;
27
27
  emi_date: string;
28
+ loc_disabled: boolean;
28
29
  }
29
30
  export declare const getCustomerByIdRequest: {
30
31
  encode(message: getCustomerByIdRequest, writer?: _m0.Writer): _m0.Writer;
@@ -85,6 +85,7 @@ function createBasegetCustomerByIdResponse() {
85
85
  roi: 0,
86
86
  processing_rate: 0,
87
87
  emi_date: "",
88
+ loc_disabled: false,
88
89
  };
89
90
  }
90
91
  exports.getCustomerByIdResponse = {
@@ -152,6 +153,9 @@ exports.getCustomerByIdResponse = {
152
153
  if (message.emi_date !== "") {
153
154
  writer.uint32(170).string(message.emi_date);
154
155
  }
156
+ if (message.loc_disabled !== false) {
157
+ writer.uint32(176).bool(message.loc_disabled);
158
+ }
155
159
  return writer;
156
160
  },
157
161
  decode(input, length) {
@@ -287,6 +291,12 @@ exports.getCustomerByIdResponse = {
287
291
  }
288
292
  message.emi_date = reader.string();
289
293
  continue;
294
+ case 22:
295
+ if (tag !== 176) {
296
+ break;
297
+ }
298
+ message.loc_disabled = reader.bool();
299
+ continue;
290
300
  }
291
301
  if ((tag & 7) === 4 || tag === 0) {
292
302
  break;
@@ -318,6 +328,7 @@ exports.getCustomerByIdResponse = {
318
328
  roi: isSet(object.roi) ? globalThis.Number(object.roi) : 0,
319
329
  processing_rate: isSet(object.processing_rate) ? globalThis.Number(object.processing_rate) : 0,
320
330
  emi_date: isSet(object.emi_date) ? globalThis.String(object.emi_date) : "",
331
+ loc_disabled: isSet(object.loc_disabled) ? globalThis.Boolean(object.loc_disabled) : false,
321
332
  };
322
333
  },
323
334
  toJSON(message) {
@@ -385,6 +396,9 @@ exports.getCustomerByIdResponse = {
385
396
  if (message.emi_date !== "") {
386
397
  obj.emi_date = message.emi_date;
387
398
  }
399
+ if (message.loc_disabled !== false) {
400
+ obj.loc_disabled = message.loc_disabled;
401
+ }
388
402
  return obj;
389
403
  },
390
404
  create(base) {
@@ -413,6 +427,7 @@ exports.getCustomerByIdResponse = {
413
427
  message.roi = object.roi ?? 0;
414
428
  message.processing_rate = object.processing_rate ?? 0;
415
429
  message.emi_date = object.emi_date ?? "";
430
+ message.loc_disabled = object.loc_disabled ?? false;
416
431
  return message;
417
432
  },
418
433
  };
@@ -9,6 +9,7 @@ export interface getCustomerProfileResponse {
9
9
  profile_image: string;
10
10
  email: string;
11
11
  profile_completion_status: number;
12
+ action_type: string;
12
13
  details: ProfileDetail[];
13
14
  }
14
15
  export interface ProfileDetail {
@@ -57,6 +57,7 @@ function createBasegetCustomerProfileResponse() {
57
57
  profile_image: "",
58
58
  email: "",
59
59
  profile_completion_status: 0,
60
+ action_type: "",
60
61
  details: [],
61
62
  };
62
63
  }
@@ -80,8 +81,11 @@ exports.getCustomerProfileResponse = {
80
81
  if (message.profile_completion_status !== 0) {
81
82
  writer.uint32(48).int32(message.profile_completion_status);
82
83
  }
84
+ if (message.action_type !== "") {
85
+ writer.uint32(58).string(message.action_type);
86
+ }
83
87
  for (const v of message.details) {
84
- exports.ProfileDetail.encode(v, writer.uint32(58).fork()).ldelim();
88
+ exports.ProfileDetail.encode(v, writer.uint32(66).fork()).ldelim();
85
89
  }
86
90
  return writer;
87
91
  },
@@ -132,6 +136,12 @@ exports.getCustomerProfileResponse = {
132
136
  if (tag !== 58) {
133
137
  break;
134
138
  }
139
+ message.action_type = reader.string();
140
+ continue;
141
+ case 8:
142
+ if (tag !== 66) {
143
+ break;
144
+ }
135
145
  message.details.push(exports.ProfileDetail.decode(reader, reader.uint32()));
136
146
  continue;
137
147
  }
@@ -152,6 +162,7 @@ exports.getCustomerProfileResponse = {
152
162
  profile_completion_status: isSet(object.profile_completion_status)
153
163
  ? globalThis.Number(object.profile_completion_status)
154
164
  : 0,
165
+ action_type: isSet(object.action_type) ? globalThis.String(object.action_type) : "",
155
166
  details: globalThis.Array.isArray(object?.details)
156
167
  ? object.details.map((e) => exports.ProfileDetail.fromJSON(e))
157
168
  : [],
@@ -177,6 +188,9 @@ exports.getCustomerProfileResponse = {
177
188
  if (message.profile_completion_status !== 0) {
178
189
  obj.profile_completion_status = Math.round(message.profile_completion_status);
179
190
  }
191
+ if (message.action_type !== "") {
192
+ obj.action_type = message.action_type;
193
+ }
180
194
  if (message.details?.length) {
181
195
  obj.details = message.details.map((e) => exports.ProfileDetail.toJSON(e));
182
196
  }
@@ -193,6 +207,7 @@ exports.getCustomerProfileResponse = {
193
207
  message.profile_image = object.profile_image ?? "";
194
208
  message.email = object.email ?? "";
195
209
  message.profile_completion_status = object.profile_completion_status ?? 0;
210
+ message.action_type = object.action_type ?? "";
196
211
  message.details = object.details?.map((e) => exports.ProfileDetail.fromPartial(e)) || [];
197
212
  return message;
198
213
  },
@@ -0,0 +1,35 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "customers.updatelocdisabled";
3
+ export interface locDisabledRequest {
4
+ loc_disabled: boolean;
5
+ }
6
+ export interface locDisabledResponse {
7
+ status: boolean;
8
+ }
9
+ export declare const locDisabledRequest: {
10
+ encode(message: locDisabledRequest, writer?: _m0.Writer): _m0.Writer;
11
+ decode(input: _m0.Reader | Uint8Array, length?: number): locDisabledRequest;
12
+ fromJSON(object: any): locDisabledRequest;
13
+ toJSON(message: locDisabledRequest): unknown;
14
+ create<I extends Exact<DeepPartial<locDisabledRequest>, I>>(base?: I): locDisabledRequest;
15
+ fromPartial<I extends Exact<DeepPartial<locDisabledRequest>, I>>(object: I): locDisabledRequest;
16
+ };
17
+ export declare const locDisabledResponse: {
18
+ encode(message: locDisabledResponse, writer?: _m0.Writer): _m0.Writer;
19
+ decode(input: _m0.Reader | Uint8Array, length?: number): locDisabledResponse;
20
+ fromJSON(object: any): locDisabledResponse;
21
+ toJSON(message: locDisabledResponse): unknown;
22
+ create<I extends Exact<DeepPartial<locDisabledResponse>, I>>(base?: I): locDisabledResponse;
23
+ fromPartial<I extends Exact<DeepPartial<locDisabledResponse>, I>>(object: I): locDisabledResponse;
24
+ };
25
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
26
+ 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 {} ? {
27
+ [K in keyof T]?: DeepPartial<T[K]>;
28
+ } : Partial<T>;
29
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
30
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
31
+ [K in keyof P]: Exact<P[K], I[K]>;
32
+ } & {
33
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
34
+ };
35
+ export {};
@@ -0,0 +1,117 @@
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/updatelocdisabled.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.locDisabledResponse = exports.locDisabledRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "customers.updatelocdisabled";
15
+ function createBaselocDisabledRequest() {
16
+ return { loc_disabled: false };
17
+ }
18
+ exports.locDisabledRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.loc_disabled !== false) {
21
+ writer.uint32(8).bool(message.loc_disabled);
22
+ }
23
+ return writer;
24
+ },
25
+ decode(input, length) {
26
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
27
+ let end = length === undefined ? reader.len : reader.pos + length;
28
+ const message = createBaselocDisabledRequest();
29
+ while (reader.pos < end) {
30
+ const tag = reader.uint32();
31
+ switch (tag >>> 3) {
32
+ case 1:
33
+ if (tag !== 8) {
34
+ break;
35
+ }
36
+ message.loc_disabled = reader.bool();
37
+ continue;
38
+ }
39
+ if ((tag & 7) === 4 || tag === 0) {
40
+ break;
41
+ }
42
+ reader.skipType(tag & 7);
43
+ }
44
+ return message;
45
+ },
46
+ fromJSON(object) {
47
+ return { loc_disabled: isSet(object.loc_disabled) ? globalThis.Boolean(object.loc_disabled) : false };
48
+ },
49
+ toJSON(message) {
50
+ const obj = {};
51
+ if (message.loc_disabled !== false) {
52
+ obj.loc_disabled = message.loc_disabled;
53
+ }
54
+ return obj;
55
+ },
56
+ create(base) {
57
+ return exports.locDisabledRequest.fromPartial(base ?? {});
58
+ },
59
+ fromPartial(object) {
60
+ const message = createBaselocDisabledRequest();
61
+ message.loc_disabled = object.loc_disabled ?? false;
62
+ return message;
63
+ },
64
+ };
65
+ function createBaselocDisabledResponse() {
66
+ return { status: false };
67
+ }
68
+ exports.locDisabledResponse = {
69
+ encode(message, writer = minimal_1.default.Writer.create()) {
70
+ if (message.status !== false) {
71
+ writer.uint32(8).bool(message.status);
72
+ }
73
+ return writer;
74
+ },
75
+ decode(input, length) {
76
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
77
+ let end = length === undefined ? reader.len : reader.pos + length;
78
+ const message = createBaselocDisabledResponse();
79
+ while (reader.pos < end) {
80
+ const tag = reader.uint32();
81
+ switch (tag >>> 3) {
82
+ case 1:
83
+ if (tag !== 8) {
84
+ break;
85
+ }
86
+ message.status = reader.bool();
87
+ continue;
88
+ }
89
+ if ((tag & 7) === 4 || tag === 0) {
90
+ break;
91
+ }
92
+ reader.skipType(tag & 7);
93
+ }
94
+ return message;
95
+ },
96
+ fromJSON(object) {
97
+ return { status: isSet(object.status) ? globalThis.Boolean(object.status) : false };
98
+ },
99
+ toJSON(message) {
100
+ const obj = {};
101
+ if (message.status !== false) {
102
+ obj.status = message.status;
103
+ }
104
+ return obj;
105
+ },
106
+ create(base) {
107
+ return exports.locDisabledResponse.fromPartial(base ?? {});
108
+ },
109
+ fromPartial(object) {
110
+ const message = createBaselocDisabledResponse();
111
+ message.status = object.status ?? false;
112
+ return message;
113
+ },
114
+ };
115
+ function isSet(value) {
116
+ return value !== null && value !== undefined;
117
+ }
package/ts/customers.d.ts CHANGED
@@ -1,12 +1,13 @@
1
1
  import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
2
+ import { getBankListRequest, getBankListResponse } from "./customers/aa/getbanklist";
2
3
  import { addAddressRequest, addAddressResponse } from "./customers/addaddress";
3
4
  import { addBankAccountDetailsRequest, addBankAccountDetailsResponse } from "./customers/addbankaccountdetails";
5
+ import { addSuspendedCustomerRequest, addSuspendedCustomerResponse } from "./customers/addsuspendedcustomer";
4
6
  import { createCustomerReferenceRequest, createCustomerReferenceResponse } from "./customers/createcustomerreference";
5
7
  import { deleteProfileRequest, deleteProfileResponse } from "./customers/deleteprofile";
6
8
  import { forgotMpinRequest, forgotMpinResponse } from "./customers/forgotmpin";
7
9
  import { forgotMpinOTPRequest, forgotMpinOTPResponse } from "./customers/forgotmpinotp";
8
10
  import { getBankAccountDetailsRequest, getBankAccountDetailsResponse } from "./customers/getbankaccountdetails";
9
- import { getBankListRequest, getBankListResponse } from "./customers/getbanklist";
10
11
  import { getBasicInfoRequest, getBasicInfoResponse } from "./customers/getbasicinfo";
11
12
  import { getCitiesRequest, getCitiesResponse } from "./customers/getcities";
12
13
  import { getCustomerByIdRequest, getCustomerByIdResponse } from "./customers/getcustomerbyid";
@@ -33,6 +34,7 @@ import { stepstaticRequest, stepstaticResponse } from "./customers/stepstatic";
33
34
  import { updateDigiLockerTxnRequest, updateDigiLockerTxnResponse } from "./customers/updatedigilockertxn";
34
35
  import { updateDOBRequest, updateDOBResponse } from "./customers/updatedob";
35
36
  import { updateHypervergeTxnRequest, updateHypervergeTxnResponse } from "./customers/updatehypervergetxn";
37
+ import { locDisabledRequest, locDisabledResponse } from "./customers/updatelocdisabled";
36
38
  import { validatePanRequest, validatePanResponse } from "./customers/validatepan";
37
39
  import { verifyEmailRequest, verifyEmailResponse } from "./customers/verifyemail";
38
40
  import { verifyMpinRequest, verifyMpinResponse } from "./customers/verifympin";
@@ -436,6 +438,24 @@ export declare const customersService: {
436
438
  readonly responseSerialize: (value: getBankListResponse) => Buffer;
437
439
  readonly responseDeserialize: (value: Buffer) => getBankListResponse;
438
440
  };
441
+ readonly addSuspendedCustomer: {
442
+ readonly path: "/service.customers/addSuspendedCustomer";
443
+ readonly requestStream: false;
444
+ readonly responseStream: false;
445
+ readonly requestSerialize: (value: addSuspendedCustomerRequest) => Buffer;
446
+ readonly requestDeserialize: (value: Buffer) => addSuspendedCustomerRequest;
447
+ readonly responseSerialize: (value: addSuspendedCustomerResponse) => Buffer;
448
+ readonly responseDeserialize: (value: Buffer) => addSuspendedCustomerResponse;
449
+ };
450
+ readonly updatelocdisabled: {
451
+ readonly path: "/service.customers/updatelocdisabled";
452
+ readonly requestStream: false;
453
+ readonly responseStream: false;
454
+ readonly requestSerialize: (value: locDisabledRequest) => Buffer;
455
+ readonly requestDeserialize: (value: Buffer) => locDisabledRequest;
456
+ readonly responseSerialize: (value: locDisabledResponse) => Buffer;
457
+ readonly responseDeserialize: (value: Buffer) => locDisabledResponse;
458
+ };
439
459
  };
440
460
  export interface customersServer extends UntypedServiceImplementation {
441
461
  sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
@@ -482,6 +502,8 @@ export interface customersServer extends UntypedServiceImplementation {
482
502
  validatePan: handleUnaryCall<validatePanRequest, validatePanResponse>;
483
503
  deleteProfile: handleUnaryCall<deleteProfileRequest, deleteProfileResponse>;
484
504
  getBankList: handleUnaryCall<getBankListRequest, getBankListResponse>;
505
+ addSuspendedCustomer: handleUnaryCall<addSuspendedCustomerRequest, addSuspendedCustomerResponse>;
506
+ updatelocdisabled: handleUnaryCall<locDisabledRequest, locDisabledResponse>;
485
507
  }
486
508
  export interface customersClient extends Client {
487
509
  sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
@@ -616,6 +638,12 @@ export interface customersClient extends Client {
616
638
  getBankList(request: getBankListRequest, callback: (error: ServiceError | null, response: getBankListResponse) => void): ClientUnaryCall;
617
639
  getBankList(request: getBankListRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getBankListResponse) => void): ClientUnaryCall;
618
640
  getBankList(request: getBankListRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getBankListResponse) => void): ClientUnaryCall;
641
+ addSuspendedCustomer(request: addSuspendedCustomerRequest, callback: (error: ServiceError | null, response: addSuspendedCustomerResponse) => void): ClientUnaryCall;
642
+ addSuspendedCustomer(request: addSuspendedCustomerRequest, metadata: Metadata, callback: (error: ServiceError | null, response: addSuspendedCustomerResponse) => void): ClientUnaryCall;
643
+ addSuspendedCustomer(request: addSuspendedCustomerRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: addSuspendedCustomerResponse) => void): ClientUnaryCall;
644
+ updatelocdisabled(request: locDisabledRequest, callback: (error: ServiceError | null, response: locDisabledResponse) => void): ClientUnaryCall;
645
+ updatelocdisabled(request: locDisabledRequest, metadata: Metadata, callback: (error: ServiceError | null, response: locDisabledResponse) => void): ClientUnaryCall;
646
+ updatelocdisabled(request: locDisabledRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: locDisabledResponse) => void): ClientUnaryCall;
619
647
  }
620
648
  export declare const customersClient: {
621
649
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
package/ts/customers.js CHANGED
@@ -8,14 +8,15 @@ 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 getbanklist_1 = require("./customers/aa/getbanklist");
11
12
  const addaddress_1 = require("./customers/addaddress");
12
13
  const addbankaccountdetails_1 = require("./customers/addbankaccountdetails");
14
+ const addsuspendedcustomer_1 = require("./customers/addsuspendedcustomer");
13
15
  const createcustomerreference_1 = require("./customers/createcustomerreference");
14
16
  const deleteprofile_1 = require("./customers/deleteprofile");
15
17
  const forgotmpin_1 = require("./customers/forgotmpin");
16
18
  const forgotmpinotp_1 = require("./customers/forgotmpinotp");
17
19
  const getbankaccountdetails_1 = require("./customers/getbankaccountdetails");
18
- const getbanklist_1 = require("./customers/getbanklist");
19
20
  const getbasicinfo_1 = require("./customers/getbasicinfo");
20
21
  const getcities_1 = require("./customers/getcities");
21
22
  const getcustomerbyid_1 = require("./customers/getcustomerbyid");
@@ -42,6 +43,7 @@ const stepstatic_1 = require("./customers/stepstatic");
42
43
  const updatedigilockertxn_1 = require("./customers/updatedigilockertxn");
43
44
  const updatedob_1 = require("./customers/updatedob");
44
45
  const updatehypervergetxn_1 = require("./customers/updatehypervergetxn");
46
+ const updatelocdisabled_1 = require("./customers/updatelocdisabled");
45
47
  const validatepan_1 = require("./customers/validatepan");
46
48
  const verifyemail_1 = require("./customers/verifyemail");
47
49
  const verifympin_1 = require("./customers/verifympin");
@@ -444,5 +446,23 @@ exports.customersService = {
444
446
  responseSerialize: (value) => Buffer.from(getbanklist_1.getBankListResponse.encode(value).finish()),
445
447
  responseDeserialize: (value) => getbanklist_1.getBankListResponse.decode(value),
446
448
  },
449
+ addSuspendedCustomer: {
450
+ path: "/service.customers/addSuspendedCustomer",
451
+ requestStream: false,
452
+ responseStream: false,
453
+ requestSerialize: (value) => Buffer.from(addsuspendedcustomer_1.addSuspendedCustomerRequest.encode(value).finish()),
454
+ requestDeserialize: (value) => addsuspendedcustomer_1.addSuspendedCustomerRequest.decode(value),
455
+ responseSerialize: (value) => Buffer.from(addsuspendedcustomer_1.addSuspendedCustomerResponse.encode(value).finish()),
456
+ responseDeserialize: (value) => addsuspendedcustomer_1.addSuspendedCustomerResponse.decode(value),
457
+ },
458
+ updatelocdisabled: {
459
+ path: "/service.customers/updatelocdisabled",
460
+ requestStream: false,
461
+ responseStream: false,
462
+ requestSerialize: (value) => Buffer.from(updatelocdisabled_1.locDisabledRequest.encode(value).finish()),
463
+ requestDeserialize: (value) => updatelocdisabled_1.locDisabledRequest.decode(value),
464
+ responseSerialize: (value) => Buffer.from(updatelocdisabled_1.locDisabledResponse.encode(value).finish()),
465
+ responseDeserialize: (value) => updatelocdisabled_1.locDisabledResponse.decode(value),
466
+ },
447
467
  };
448
468
  exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
@@ -0,0 +1,34 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "loans.getcustomerloanstatus";
3
+ export interface getCustomerLoanStatusRequest {
4
+ }
5
+ export interface getCustomerLoanStatusResponse {
6
+ is_loc: boolean;
7
+ }
8
+ export declare const getCustomerLoanStatusRequest: {
9
+ encode(_: getCustomerLoanStatusRequest, writer?: _m0.Writer): _m0.Writer;
10
+ decode(input: _m0.Reader | Uint8Array, length?: number): getCustomerLoanStatusRequest;
11
+ fromJSON(_: any): getCustomerLoanStatusRequest;
12
+ toJSON(_: getCustomerLoanStatusRequest): unknown;
13
+ create<I extends Exact<DeepPartial<getCustomerLoanStatusRequest>, I>>(base?: I): getCustomerLoanStatusRequest;
14
+ fromPartial<I extends Exact<DeepPartial<getCustomerLoanStatusRequest>, I>>(_: I): getCustomerLoanStatusRequest;
15
+ };
16
+ export declare const getCustomerLoanStatusResponse: {
17
+ encode(message: getCustomerLoanStatusResponse, writer?: _m0.Writer): _m0.Writer;
18
+ decode(input: _m0.Reader | Uint8Array, length?: number): getCustomerLoanStatusResponse;
19
+ fromJSON(object: any): getCustomerLoanStatusResponse;
20
+ toJSON(message: getCustomerLoanStatusResponse): unknown;
21
+ create<I extends Exact<DeepPartial<getCustomerLoanStatusResponse>, I>>(base?: I): getCustomerLoanStatusResponse;
22
+ fromPartial<I extends Exact<DeepPartial<getCustomerLoanStatusResponse>, I>>(object: I): getCustomerLoanStatusResponse;
23
+ };
24
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
25
+ 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 {} ? {
26
+ [K in keyof T]?: DeepPartial<T[K]>;
27
+ } : Partial<T>;
28
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
29
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
30
+ [K in keyof P]: Exact<P[K], I[K]>;
31
+ } & {
32
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
33
+ };
34
+ export {};
@@ -0,0 +1,104 @@
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: loans/getcustomerloanstatus.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.getCustomerLoanStatusResponse = exports.getCustomerLoanStatusRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "loans.getcustomerloanstatus";
15
+ function createBasegetCustomerLoanStatusRequest() {
16
+ return {};
17
+ }
18
+ exports.getCustomerLoanStatusRequest = {
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 = createBasegetCustomerLoanStatusRequest();
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.getCustomerLoanStatusRequest.fromPartial(base ?? {});
46
+ },
47
+ fromPartial(_) {
48
+ const message = createBasegetCustomerLoanStatusRequest();
49
+ return message;
50
+ },
51
+ };
52
+ function createBasegetCustomerLoanStatusResponse() {
53
+ return { is_loc: false };
54
+ }
55
+ exports.getCustomerLoanStatusResponse = {
56
+ encode(message, writer = minimal_1.default.Writer.create()) {
57
+ if (message.is_loc !== false) {
58
+ writer.uint32(8).bool(message.is_loc);
59
+ }
60
+ return writer;
61
+ },
62
+ decode(input, length) {
63
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
64
+ let end = length === undefined ? reader.len : reader.pos + length;
65
+ const message = createBasegetCustomerLoanStatusResponse();
66
+ while (reader.pos < end) {
67
+ const tag = reader.uint32();
68
+ switch (tag >>> 3) {
69
+ case 1:
70
+ if (tag !== 8) {
71
+ break;
72
+ }
73
+ message.is_loc = reader.bool();
74
+ continue;
75
+ }
76
+ if ((tag & 7) === 4 || tag === 0) {
77
+ break;
78
+ }
79
+ reader.skipType(tag & 7);
80
+ }
81
+ return message;
82
+ },
83
+ fromJSON(object) {
84
+ return { is_loc: isSet(object.is_loc) ? globalThis.Boolean(object.is_loc) : false };
85
+ },
86
+ toJSON(message) {
87
+ const obj = {};
88
+ if (message.is_loc !== false) {
89
+ obj.is_loc = message.is_loc;
90
+ }
91
+ return obj;
92
+ },
93
+ create(base) {
94
+ return exports.getCustomerLoanStatusResponse.fromPartial(base ?? {});
95
+ },
96
+ fromPartial(object) {
97
+ const message = createBasegetCustomerLoanStatusResponse();
98
+ message.is_loc = object.is_loc ?? false;
99
+ return message;
100
+ },
101
+ };
102
+ function isSet(value) {
103
+ return value !== null && value !== undefined;
104
+ }
package/ts/loans.d.ts CHANGED
@@ -3,6 +3,7 @@ import { approveLoanRequest, approveLoanResponse } from "./loans/approveloan";
3
3
  import { bankListRequest, bankListResponse } from "./loans/banklist";
4
4
  import { calculateEmiRequest, calculateEmiResponse } from "./loans/calculateemi";
5
5
  import { creditLimitRequest, creditLimitResponse } from "./loans/creditlimit";
6
+ import { getCustomerLoanStatusRequest, getCustomerLoanStatusResponse } from "./loans/getcustomerloanstatus";
6
7
  import { loanSummaryRequest, loanSummaryResponse } from "./loans/loansummary";
7
8
  import { paymentAllocationRequest, paymentAllocationResponse } from "./loans/paymentallocation";
8
9
  import { restructureLoanRequest, restructureLoanResponse } from "./loans/restructureloan";
@@ -102,6 +103,15 @@ export declare const loansService: {
102
103
  readonly responseSerialize: (value: loanSummaryResponse) => Buffer;
103
104
  readonly responseDeserialize: (value: Buffer) => loanSummaryResponse;
104
105
  };
106
+ readonly getCustomerLoanStatus: {
107
+ readonly path: "/service.loans/getCustomerLoanStatus";
108
+ readonly requestStream: false;
109
+ readonly responseStream: false;
110
+ readonly requestSerialize: (value: getCustomerLoanStatusRequest) => Buffer;
111
+ readonly requestDeserialize: (value: Buffer) => getCustomerLoanStatusRequest;
112
+ readonly responseSerialize: (value: getCustomerLoanStatusResponse) => Buffer;
113
+ readonly responseDeserialize: (value: Buffer) => getCustomerLoanStatusResponse;
114
+ };
105
115
  };
106
116
  export interface loansServer extends UntypedServiceImplementation {
107
117
  creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
@@ -114,6 +124,7 @@ export interface loansServer extends UntypedServiceImplementation {
114
124
  transactionList: handleUnaryCall<transactionListRequest, transactionListResponse>;
115
125
  paymentAllocation: handleUnaryCall<paymentAllocationRequest, paymentAllocationResponse>;
116
126
  loanSummary: handleUnaryCall<loanSummaryRequest, loanSummaryResponse>;
127
+ getCustomerLoanStatus: handleUnaryCall<getCustomerLoanStatusRequest, getCustomerLoanStatusResponse>;
117
128
  }
118
129
  export interface loansClient extends Client {
119
130
  creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
@@ -146,6 +157,9 @@ export interface loansClient extends Client {
146
157
  loanSummary(request: loanSummaryRequest, callback: (error: ServiceError | null, response: loanSummaryResponse) => void): ClientUnaryCall;
147
158
  loanSummary(request: loanSummaryRequest, metadata: Metadata, callback: (error: ServiceError | null, response: loanSummaryResponse) => void): ClientUnaryCall;
148
159
  loanSummary(request: loanSummaryRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: loanSummaryResponse) => void): ClientUnaryCall;
160
+ getCustomerLoanStatus(request: getCustomerLoanStatusRequest, callback: (error: ServiceError | null, response: getCustomerLoanStatusResponse) => void): ClientUnaryCall;
161
+ getCustomerLoanStatus(request: getCustomerLoanStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getCustomerLoanStatusResponse) => void): ClientUnaryCall;
162
+ getCustomerLoanStatus(request: getCustomerLoanStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getCustomerLoanStatusResponse) => void): ClientUnaryCall;
149
163
  }
150
164
  export declare const loansClient: {
151
165
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
package/ts/loans.js CHANGED
@@ -12,6 +12,7 @@ const approveloan_1 = require("./loans/approveloan");
12
12
  const banklist_1 = require("./loans/banklist");
13
13
  const calculateemi_1 = require("./loans/calculateemi");
14
14
  const creditlimit_1 = require("./loans/creditlimit");
15
+ const getcustomerloanstatus_1 = require("./loans/getcustomerloanstatus");
15
16
  const loansummary_1 = require("./loans/loansummary");
16
17
  const paymentallocation_1 = require("./loans/paymentallocation");
17
18
  const restructureloan_1 = require("./loans/restructureloan");
@@ -110,5 +111,14 @@ exports.loansService = {
110
111
  responseSerialize: (value) => Buffer.from(loansummary_1.loanSummaryResponse.encode(value).finish()),
111
112
  responseDeserialize: (value) => loansummary_1.loanSummaryResponse.decode(value),
112
113
  },
114
+ getCustomerLoanStatus: {
115
+ path: "/service.loans/getCustomerLoanStatus",
116
+ requestStream: false,
117
+ responseStream: false,
118
+ requestSerialize: (value) => Buffer.from(getcustomerloanstatus_1.getCustomerLoanStatusRequest.encode(value).finish()),
119
+ requestDeserialize: (value) => getcustomerloanstatus_1.getCustomerLoanStatusRequest.decode(value),
120
+ responseSerialize: (value) => Buffer.from(getcustomerloanstatus_1.getCustomerLoanStatusResponse.encode(value).finish()),
121
+ responseDeserialize: (value) => getcustomerloanstatus_1.getCustomerLoanStatusResponse.decode(value),
122
+ },
113
123
  };
114
124
  exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");