@stashfin/grpc 1.2.94 → 1.2.95

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/ts/bureau.d.ts CHANGED
@@ -1,10 +1,21 @@
1
1
  import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
2
- import { bureauRequest, bureauResponse } from "./bureau/getbureau";
2
+ import { detailsRequest, detailsResponse } from "./bureau/getbasicdetails";
3
+ import { demogsRequest, demogsResponse } from "./bureau/getdemogs";
4
+ import { bureauRequest, bureauResponse } from "./bureau/getreport";
3
5
  export declare const protobufPackage = "service";
4
6
  export type bureauService = typeof bureauService;
5
7
  export declare const bureauService: {
6
- readonly getbureau: {
7
- readonly path: "/service.bureau/getbureau";
8
+ readonly getBasicDetails: {
9
+ readonly path: "/service.bureau/getBasicDetails";
10
+ readonly requestStream: false;
11
+ readonly responseStream: false;
12
+ readonly requestSerialize: (value: detailsRequest) => Buffer;
13
+ readonly requestDeserialize: (value: Buffer) => detailsRequest;
14
+ readonly responseSerialize: (value: detailsResponse) => Buffer;
15
+ readonly responseDeserialize: (value: Buffer) => detailsResponse;
16
+ };
17
+ readonly getReport: {
18
+ readonly path: "/service.bureau/getReport";
8
19
  readonly requestStream: false;
9
20
  readonly responseStream: false;
10
21
  readonly requestSerialize: (value: bureauRequest) => Buffer;
@@ -12,14 +23,31 @@ export declare const bureauService: {
12
23
  readonly responseSerialize: (value: bureauResponse) => Buffer;
13
24
  readonly responseDeserialize: (value: Buffer) => bureauResponse;
14
25
  };
26
+ readonly getDemogs: {
27
+ readonly path: "/service.bureau/getDemogs";
28
+ readonly requestStream: false;
29
+ readonly responseStream: false;
30
+ readonly requestSerialize: (value: demogsRequest) => Buffer;
31
+ readonly requestDeserialize: (value: Buffer) => demogsRequest;
32
+ readonly responseSerialize: (value: demogsResponse) => Buffer;
33
+ readonly responseDeserialize: (value: Buffer) => demogsResponse;
34
+ };
15
35
  };
16
36
  export interface bureauServer extends UntypedServiceImplementation {
17
- getbureau: handleUnaryCall<bureauRequest, bureauResponse>;
37
+ getBasicDetails: handleUnaryCall<detailsRequest, detailsResponse>;
38
+ getReport: handleUnaryCall<bureauRequest, bureauResponse>;
39
+ getDemogs: handleUnaryCall<demogsRequest, demogsResponse>;
18
40
  }
19
41
  export interface bureauClient extends Client {
20
- getbureau(request: bureauRequest, callback: (error: ServiceError | null, response: bureauResponse) => void): ClientUnaryCall;
21
- getbureau(request: bureauRequest, metadata: Metadata, callback: (error: ServiceError | null, response: bureauResponse) => void): ClientUnaryCall;
22
- getbureau(request: bureauRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: bureauResponse) => void): ClientUnaryCall;
42
+ getBasicDetails(request: detailsRequest, callback: (error: ServiceError | null, response: detailsResponse) => void): ClientUnaryCall;
43
+ getBasicDetails(request: detailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: detailsResponse) => void): ClientUnaryCall;
44
+ getBasicDetails(request: detailsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: detailsResponse) => void): ClientUnaryCall;
45
+ getReport(request: bureauRequest, callback: (error: ServiceError | null, response: bureauResponse) => void): ClientUnaryCall;
46
+ getReport(request: bureauRequest, metadata: Metadata, callback: (error: ServiceError | null, response: bureauResponse) => void): ClientUnaryCall;
47
+ getReport(request: bureauRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: bureauResponse) => void): ClientUnaryCall;
48
+ getDemogs(request: demogsRequest, callback: (error: ServiceError | null, response: demogsResponse) => void): ClientUnaryCall;
49
+ getDemogs(request: demogsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: demogsResponse) => void): ClientUnaryCall;
50
+ getDemogs(request: demogsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: demogsResponse) => void): ClientUnaryCall;
23
51
  }
24
52
  export declare const bureauClient: {
25
53
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): bureauClient;
package/ts/bureau.js CHANGED
@@ -8,17 +8,37 @@ Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.bureauClient = exports.bureauService = exports.protobufPackage = void 0;
9
9
  /* eslint-disable */
10
10
  const grpc_js_1 = require("@grpc/grpc-js");
11
- const getbureau_1 = require("./bureau/getbureau");
11
+ const getbasicdetails_1 = require("./bureau/getbasicdetails");
12
+ const getdemogs_1 = require("./bureau/getdemogs");
13
+ const getreport_1 = require("./bureau/getreport");
12
14
  exports.protobufPackage = "service";
13
15
  exports.bureauService = {
14
- getbureau: {
15
- path: "/service.bureau/getbureau",
16
+ getBasicDetails: {
17
+ path: "/service.bureau/getBasicDetails",
16
18
  requestStream: false,
17
19
  responseStream: false,
18
- requestSerialize: (value) => Buffer.from(getbureau_1.bureauRequest.encode(value).finish()),
19
- requestDeserialize: (value) => getbureau_1.bureauRequest.decode(value),
20
- responseSerialize: (value) => Buffer.from(getbureau_1.bureauResponse.encode(value).finish()),
21
- responseDeserialize: (value) => getbureau_1.bureauResponse.decode(value),
20
+ requestSerialize: (value) => Buffer.from(getbasicdetails_1.detailsRequest.encode(value).finish()),
21
+ requestDeserialize: (value) => getbasicdetails_1.detailsRequest.decode(value),
22
+ responseSerialize: (value) => Buffer.from(getbasicdetails_1.detailsResponse.encode(value).finish()),
23
+ responseDeserialize: (value) => getbasicdetails_1.detailsResponse.decode(value),
24
+ },
25
+ getReport: {
26
+ path: "/service.bureau/getReport",
27
+ requestStream: false,
28
+ responseStream: false,
29
+ requestSerialize: (value) => Buffer.from(getreport_1.bureauRequest.encode(value).finish()),
30
+ requestDeserialize: (value) => getreport_1.bureauRequest.decode(value),
31
+ responseSerialize: (value) => Buffer.from(getreport_1.bureauResponse.encode(value).finish()),
32
+ responseDeserialize: (value) => getreport_1.bureauResponse.decode(value),
33
+ },
34
+ getDemogs: {
35
+ path: "/service.bureau/getDemogs",
36
+ requestStream: false,
37
+ responseStream: false,
38
+ requestSerialize: (value) => Buffer.from(getdemogs_1.demogsRequest.encode(value).finish()),
39
+ requestDeserialize: (value) => getdemogs_1.demogsRequest.decode(value),
40
+ responseSerialize: (value) => Buffer.from(getdemogs_1.demogsResponse.encode(value).finish()),
41
+ responseDeserialize: (value) => getdemogs_1.demogsResponse.decode(value),
22
42
  },
23
43
  };
24
44
  exports.bureauClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.bureauService, "service.bureau");
@@ -0,0 +1,35 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "customers.updatemobilesendotp";
3
+ export interface updateMobileSendOtpRequest {
4
+ new_mobile: string;
5
+ }
6
+ export interface updateMobileSendOtpResponse {
7
+ status: string;
8
+ }
9
+ export declare const updateMobileSendOtpRequest: {
10
+ encode(message: updateMobileSendOtpRequest, writer?: _m0.Writer): _m0.Writer;
11
+ decode(input: _m0.Reader | Uint8Array, length?: number): updateMobileSendOtpRequest;
12
+ fromJSON(object: any): updateMobileSendOtpRequest;
13
+ toJSON(message: updateMobileSendOtpRequest): unknown;
14
+ create<I extends Exact<DeepPartial<updateMobileSendOtpRequest>, I>>(base?: I): updateMobileSendOtpRequest;
15
+ fromPartial<I extends Exact<DeepPartial<updateMobileSendOtpRequest>, I>>(object: I): updateMobileSendOtpRequest;
16
+ };
17
+ export declare const updateMobileSendOtpResponse: {
18
+ encode(message: updateMobileSendOtpResponse, writer?: _m0.Writer): _m0.Writer;
19
+ decode(input: _m0.Reader | Uint8Array, length?: number): updateMobileSendOtpResponse;
20
+ fromJSON(object: any): updateMobileSendOtpResponse;
21
+ toJSON(message: updateMobileSendOtpResponse): unknown;
22
+ create<I extends Exact<DeepPartial<updateMobileSendOtpResponse>, I>>(base?: I): updateMobileSendOtpResponse;
23
+ fromPartial<I extends Exact<DeepPartial<updateMobileSendOtpResponse>, I>>(object: I): updateMobileSendOtpResponse;
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 v5.27.3
6
+ // source: customers/updatemobilesendotp.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.updateMobileSendOtpResponse = exports.updateMobileSendOtpRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "customers.updatemobilesendotp";
15
+ function createBaseupdateMobileSendOtpRequest() {
16
+ return { new_mobile: "" };
17
+ }
18
+ exports.updateMobileSendOtpRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.new_mobile !== "") {
21
+ writer.uint32(10).string(message.new_mobile);
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 = createBaseupdateMobileSendOtpRequest();
29
+ while (reader.pos < end) {
30
+ const tag = reader.uint32();
31
+ switch (tag >>> 3) {
32
+ case 1:
33
+ if (tag !== 10) {
34
+ break;
35
+ }
36
+ message.new_mobile = reader.string();
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 { new_mobile: isSet(object.new_mobile) ? globalThis.String(object.new_mobile) : "" };
48
+ },
49
+ toJSON(message) {
50
+ const obj = {};
51
+ if (message.new_mobile !== "") {
52
+ obj.new_mobile = message.new_mobile;
53
+ }
54
+ return obj;
55
+ },
56
+ create(base) {
57
+ return exports.updateMobileSendOtpRequest.fromPartial(base ?? {});
58
+ },
59
+ fromPartial(object) {
60
+ const message = createBaseupdateMobileSendOtpRequest();
61
+ message.new_mobile = object.new_mobile ?? "";
62
+ return message;
63
+ },
64
+ };
65
+ function createBaseupdateMobileSendOtpResponse() {
66
+ return { status: "" };
67
+ }
68
+ exports.updateMobileSendOtpResponse = {
69
+ encode(message, writer = minimal_1.default.Writer.create()) {
70
+ if (message.status !== "") {
71
+ writer.uint32(10).string(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 = createBaseupdateMobileSendOtpResponse();
79
+ while (reader.pos < end) {
80
+ const tag = reader.uint32();
81
+ switch (tag >>> 3) {
82
+ case 1:
83
+ if (tag !== 10) {
84
+ break;
85
+ }
86
+ message.status = reader.string();
87
+ continue;
88
+ }
89
+ if ((tag & 7) === 4 || tag === 0) {
90
+ break;
91
+ }
92
+ reader.skipType(tag & 7);
93
+ }
94
+ return message;
95
+ },
96
+ fromJSON(object) {
97
+ return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
98
+ },
99
+ toJSON(message) {
100
+ const obj = {};
101
+ if (message.status !== "") {
102
+ obj.status = message.status;
103
+ }
104
+ return obj;
105
+ },
106
+ create(base) {
107
+ return exports.updateMobileSendOtpResponse.fromPartial(base ?? {});
108
+ },
109
+ fromPartial(object) {
110
+ const message = createBaseupdateMobileSendOtpResponse();
111
+ message.status = object.status ?? "";
112
+ return message;
113
+ },
114
+ };
115
+ function isSet(value) {
116
+ return value !== null && value !== undefined;
117
+ }
@@ -0,0 +1,37 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "customers.updatemobileverifyotp";
3
+ export interface updateMobileVerifyOtpRequest {
4
+ new_mobile: string;
5
+ current_mobile_otp: string;
6
+ new_mobile_otp: string;
7
+ }
8
+ export interface updateMobileVerifyOtpResponse {
9
+ status: string;
10
+ }
11
+ export declare const updateMobileVerifyOtpRequest: {
12
+ encode(message: updateMobileVerifyOtpRequest, writer?: _m0.Writer): _m0.Writer;
13
+ decode(input: _m0.Reader | Uint8Array, length?: number): updateMobileVerifyOtpRequest;
14
+ fromJSON(object: any): updateMobileVerifyOtpRequest;
15
+ toJSON(message: updateMobileVerifyOtpRequest): unknown;
16
+ create<I extends Exact<DeepPartial<updateMobileVerifyOtpRequest>, I>>(base?: I): updateMobileVerifyOtpRequest;
17
+ fromPartial<I extends Exact<DeepPartial<updateMobileVerifyOtpRequest>, I>>(object: I): updateMobileVerifyOtpRequest;
18
+ };
19
+ export declare const updateMobileVerifyOtpResponse: {
20
+ encode(message: updateMobileVerifyOtpResponse, writer?: _m0.Writer): _m0.Writer;
21
+ decode(input: _m0.Reader | Uint8Array, length?: number): updateMobileVerifyOtpResponse;
22
+ fromJSON(object: any): updateMobileVerifyOtpResponse;
23
+ toJSON(message: updateMobileVerifyOtpResponse): unknown;
24
+ create<I extends Exact<DeepPartial<updateMobileVerifyOtpResponse>, I>>(base?: I): updateMobileVerifyOtpResponse;
25
+ fromPartial<I extends Exact<DeepPartial<updateMobileVerifyOtpResponse>, I>>(object: I): updateMobileVerifyOtpResponse;
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,147 @@
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.27.3
6
+ // source: customers/updatemobileverifyotp.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.updateMobileVerifyOtpResponse = exports.updateMobileVerifyOtpRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "customers.updatemobileverifyotp";
15
+ function createBaseupdateMobileVerifyOtpRequest() {
16
+ return { new_mobile: "", current_mobile_otp: "", new_mobile_otp: "" };
17
+ }
18
+ exports.updateMobileVerifyOtpRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.new_mobile !== "") {
21
+ writer.uint32(10).string(message.new_mobile);
22
+ }
23
+ if (message.current_mobile_otp !== "") {
24
+ writer.uint32(18).string(message.current_mobile_otp);
25
+ }
26
+ if (message.new_mobile_otp !== "") {
27
+ writer.uint32(26).string(message.new_mobile_otp);
28
+ }
29
+ return writer;
30
+ },
31
+ decode(input, length) {
32
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
33
+ let end = length === undefined ? reader.len : reader.pos + length;
34
+ const message = createBaseupdateMobileVerifyOtpRequest();
35
+ while (reader.pos < end) {
36
+ const tag = reader.uint32();
37
+ switch (tag >>> 3) {
38
+ case 1:
39
+ if (tag !== 10) {
40
+ break;
41
+ }
42
+ message.new_mobile = reader.string();
43
+ continue;
44
+ case 2:
45
+ if (tag !== 18) {
46
+ break;
47
+ }
48
+ message.current_mobile_otp = reader.string();
49
+ continue;
50
+ case 3:
51
+ if (tag !== 26) {
52
+ break;
53
+ }
54
+ message.new_mobile_otp = reader.string();
55
+ continue;
56
+ }
57
+ if ((tag & 7) === 4 || tag === 0) {
58
+ break;
59
+ }
60
+ reader.skipType(tag & 7);
61
+ }
62
+ return message;
63
+ },
64
+ fromJSON(object) {
65
+ return {
66
+ new_mobile: isSet(object.new_mobile) ? globalThis.String(object.new_mobile) : "",
67
+ current_mobile_otp: isSet(object.current_mobile_otp) ? globalThis.String(object.current_mobile_otp) : "",
68
+ new_mobile_otp: isSet(object.new_mobile_otp) ? globalThis.String(object.new_mobile_otp) : "",
69
+ };
70
+ },
71
+ toJSON(message) {
72
+ const obj = {};
73
+ if (message.new_mobile !== "") {
74
+ obj.new_mobile = message.new_mobile;
75
+ }
76
+ if (message.current_mobile_otp !== "") {
77
+ obj.current_mobile_otp = message.current_mobile_otp;
78
+ }
79
+ if (message.new_mobile_otp !== "") {
80
+ obj.new_mobile_otp = message.new_mobile_otp;
81
+ }
82
+ return obj;
83
+ },
84
+ create(base) {
85
+ return exports.updateMobileVerifyOtpRequest.fromPartial(base ?? {});
86
+ },
87
+ fromPartial(object) {
88
+ const message = createBaseupdateMobileVerifyOtpRequest();
89
+ message.new_mobile = object.new_mobile ?? "";
90
+ message.current_mobile_otp = object.current_mobile_otp ?? "";
91
+ message.new_mobile_otp = object.new_mobile_otp ?? "";
92
+ return message;
93
+ },
94
+ };
95
+ function createBaseupdateMobileVerifyOtpResponse() {
96
+ return { status: "" };
97
+ }
98
+ exports.updateMobileVerifyOtpResponse = {
99
+ encode(message, writer = minimal_1.default.Writer.create()) {
100
+ if (message.status !== "") {
101
+ writer.uint32(10).string(message.status);
102
+ }
103
+ return writer;
104
+ },
105
+ decode(input, length) {
106
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
107
+ let end = length === undefined ? reader.len : reader.pos + length;
108
+ const message = createBaseupdateMobileVerifyOtpResponse();
109
+ while (reader.pos < end) {
110
+ const tag = reader.uint32();
111
+ switch (tag >>> 3) {
112
+ case 1:
113
+ if (tag !== 10) {
114
+ break;
115
+ }
116
+ message.status = reader.string();
117
+ continue;
118
+ }
119
+ if ((tag & 7) === 4 || tag === 0) {
120
+ break;
121
+ }
122
+ reader.skipType(tag & 7);
123
+ }
124
+ return message;
125
+ },
126
+ fromJSON(object) {
127
+ return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
128
+ },
129
+ toJSON(message) {
130
+ const obj = {};
131
+ if (message.status !== "") {
132
+ obj.status = message.status;
133
+ }
134
+ return obj;
135
+ },
136
+ create(base) {
137
+ return exports.updateMobileVerifyOtpResponse.fromPartial(base ?? {});
138
+ },
139
+ fromPartial(object) {
140
+ const message = createBaseupdateMobileVerifyOtpResponse();
141
+ message.status = object.status ?? "";
142
+ return message;
143
+ },
144
+ };
145
+ function isSet(value) {
146
+ return value !== null && value !== undefined;
147
+ }
package/ts/customers.d.ts CHANGED
@@ -41,7 +41,8 @@ import { updateDigiLockerTxnRequest, updateDigiLockerTxnResponse } from "./custo
41
41
  import { updateDOBRequest, updateDOBResponse } from "./customers/updatedob";
42
42
  import { updateHypervergeTxnRequest, updateHypervergeTxnResponse } from "./customers/updatehypervergetxn";
43
43
  import { locStatusRequest, locStatusResponse } from "./customers/updatelocstatus";
44
- import { updateMobileRequest, updateMobileResponse } from "./customers/updatemobile";
44
+ import { updateMobileSendOtpRequest, updateMobileSendOtpResponse } from "./customers/updatemobilesendotp";
45
+ import { updateMobileVerifyOtpRequest, updateMobileVerifyOtpResponse } from "./customers/updatemobileverifyotp";
45
46
  import { validatePanRequest, validatePanResponse } from "./customers/validatepan";
46
47
  import { verifyMpinRequest, verifyMpinResponse } from "./customers/verifympin";
47
48
  import { verifyOtpReqeust, verifyOtpResponse } from "./customers/verifyotp";
@@ -517,14 +518,23 @@ export declare const customersService: {
517
518
  readonly responseSerialize: (value: ChangeMpinResponse) => Buffer;
518
519
  readonly responseDeserialize: (value: Buffer) => ChangeMpinResponse;
519
520
  };
520
- readonly updateMobile: {
521
- readonly path: "/service.customers/updateMobile";
521
+ readonly updateMobileSendOtp: {
522
+ readonly path: "/service.customers/updateMobileSendOtp";
522
523
  readonly requestStream: false;
523
524
  readonly responseStream: false;
524
- readonly requestSerialize: (value: updateMobileRequest) => Buffer;
525
- readonly requestDeserialize: (value: Buffer) => updateMobileRequest;
526
- readonly responseSerialize: (value: updateMobileResponse) => Buffer;
527
- readonly responseDeserialize: (value: Buffer) => updateMobileResponse;
525
+ readonly requestSerialize: (value: updateMobileSendOtpRequest) => Buffer;
526
+ readonly requestDeserialize: (value: Buffer) => updateMobileSendOtpRequest;
527
+ readonly responseSerialize: (value: updateMobileSendOtpResponse) => Buffer;
528
+ readonly responseDeserialize: (value: Buffer) => updateMobileSendOtpResponse;
529
+ };
530
+ readonly updatemobileverifyotp: {
531
+ readonly path: "/service.customers/updatemobileverifyotp";
532
+ readonly requestStream: false;
533
+ readonly responseStream: false;
534
+ readonly requestSerialize: (value: updateMobileVerifyOtpRequest) => Buffer;
535
+ readonly requestDeserialize: (value: Buffer) => updateMobileVerifyOtpRequest;
536
+ readonly responseSerialize: (value: updateMobileVerifyOtpResponse) => Buffer;
537
+ readonly responseDeserialize: (value: Buffer) => updateMobileVerifyOtpResponse;
528
538
  };
529
539
  };
530
540
  export interface customersServer extends UntypedServiceImplementation {
@@ -580,7 +590,8 @@ export interface customersServer extends UntypedServiceImplementation {
580
590
  fetchRcProfile: handleUnaryCall<fetchRCProfileRequest, fetchRCProfileResponse>;
581
591
  disablempin: handleUnaryCall<disableMpinRequest, disableMpinResponse>;
582
592
  changempin: handleUnaryCall<ChangeMpinRequest, ChangeMpinResponse>;
583
- updateMobile: handleUnaryCall<updateMobileRequest, updateMobileResponse>;
593
+ updateMobileSendOtp: handleUnaryCall<updateMobileSendOtpRequest, updateMobileSendOtpResponse>;
594
+ updatemobileverifyotp: handleUnaryCall<updateMobileVerifyOtpRequest, updateMobileVerifyOtpResponse>;
584
595
  }
585
596
  export interface customersClient extends Client {
586
597
  sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
@@ -739,9 +750,12 @@ export interface customersClient extends Client {
739
750
  changempin(request: ChangeMpinRequest, callback: (error: ServiceError | null, response: ChangeMpinResponse) => void): ClientUnaryCall;
740
751
  changempin(request: ChangeMpinRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ChangeMpinResponse) => void): ClientUnaryCall;
741
752
  changempin(request: ChangeMpinRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ChangeMpinResponse) => void): ClientUnaryCall;
742
- updateMobile(request: updateMobileRequest, callback: (error: ServiceError | null, response: updateMobileResponse) => void): ClientUnaryCall;
743
- updateMobile(request: updateMobileRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateMobileResponse) => void): ClientUnaryCall;
744
- updateMobile(request: updateMobileRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateMobileResponse) => void): ClientUnaryCall;
753
+ updateMobileSendOtp(request: updateMobileSendOtpRequest, callback: (error: ServiceError | null, response: updateMobileSendOtpResponse) => void): ClientUnaryCall;
754
+ updateMobileSendOtp(request: updateMobileSendOtpRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateMobileSendOtpResponse) => void): ClientUnaryCall;
755
+ updateMobileSendOtp(request: updateMobileSendOtpRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateMobileSendOtpResponse) => void): ClientUnaryCall;
756
+ updatemobileverifyotp(request: updateMobileVerifyOtpRequest, callback: (error: ServiceError | null, response: updateMobileVerifyOtpResponse) => void): ClientUnaryCall;
757
+ updatemobileverifyotp(request: updateMobileVerifyOtpRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateMobileVerifyOtpResponse) => void): ClientUnaryCall;
758
+ updatemobileverifyotp(request: updateMobileVerifyOtpRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateMobileVerifyOtpResponse) => void): ClientUnaryCall;
745
759
  }
746
760
  export declare const customersClient: {
747
761
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
package/ts/customers.js CHANGED
@@ -50,7 +50,8 @@ const updatedigilockertxn_1 = require("./customers/updatedigilockertxn");
50
50
  const updatedob_1 = require("./customers/updatedob");
51
51
  const updatehypervergetxn_1 = require("./customers/updatehypervergetxn");
52
52
  const updatelocstatus_1 = require("./customers/updatelocstatus");
53
- const updatemobile_1 = require("./customers/updatemobile");
53
+ const updatemobilesendotp_1 = require("./customers/updatemobilesendotp");
54
+ const updatemobileverifyotp_1 = require("./customers/updatemobileverifyotp");
54
55
  const validatepan_1 = require("./customers/validatepan");
55
56
  const verifympin_1 = require("./customers/verifympin");
56
57
  const verifyotp_1 = require("./customers/verifyotp");
@@ -525,14 +526,23 @@ exports.customersService = {
525
526
  responseSerialize: (value) => Buffer.from(changempin_1.ChangeMpinResponse.encode(value).finish()),
526
527
  responseDeserialize: (value) => changempin_1.ChangeMpinResponse.decode(value),
527
528
  },
528
- updateMobile: {
529
- path: "/service.customers/updateMobile",
529
+ updateMobileSendOtp: {
530
+ path: "/service.customers/updateMobileSendOtp",
530
531
  requestStream: false,
531
532
  responseStream: false,
532
- requestSerialize: (value) => Buffer.from(updatemobile_1.updateMobileRequest.encode(value).finish()),
533
- requestDeserialize: (value) => updatemobile_1.updateMobileRequest.decode(value),
534
- responseSerialize: (value) => Buffer.from(updatemobile_1.updateMobileResponse.encode(value).finish()),
535
- responseDeserialize: (value) => updatemobile_1.updateMobileResponse.decode(value),
533
+ requestSerialize: (value) => Buffer.from(updatemobilesendotp_1.updateMobileSendOtpRequest.encode(value).finish()),
534
+ requestDeserialize: (value) => updatemobilesendotp_1.updateMobileSendOtpRequest.decode(value),
535
+ responseSerialize: (value) => Buffer.from(updatemobilesendotp_1.updateMobileSendOtpResponse.encode(value).finish()),
536
+ responseDeserialize: (value) => updatemobilesendotp_1.updateMobileSendOtpResponse.decode(value),
537
+ },
538
+ updatemobileverifyotp: {
539
+ path: "/service.customers/updatemobileverifyotp",
540
+ requestStream: false,
541
+ responseStream: false,
542
+ requestSerialize: (value) => Buffer.from(updatemobileverifyotp_1.updateMobileVerifyOtpRequest.encode(value).finish()),
543
+ requestDeserialize: (value) => updatemobileverifyotp_1.updateMobileVerifyOtpRequest.decode(value),
544
+ responseSerialize: (value) => Buffer.from(updatemobileverifyotp_1.updateMobileVerifyOtpResponse.encode(value).finish()),
545
+ responseDeserialize: (value) => updatemobileverifyotp_1.updateMobileVerifyOtpResponse.decode(value),
536
546
  },
537
547
  };
538
548
  exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
@@ -6,6 +6,7 @@ export interface approveLoanRequest {
6
6
  tenure: number;
7
7
  customer_id: number;
8
8
  ip: string;
9
+ addons: number;
9
10
  }
10
11
  export interface approveLoanResponse {
11
12
  id: number;
@@ -13,7 +13,7 @@ exports.approveLoanResponse = exports.approveLoanRequest = exports.protobufPacka
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "loans.approveloan";
15
15
  function createBaseapproveLoanRequest() {
16
- return { bank_id: 0, amount: 0, tenure: 0, customer_id: 0, ip: "" };
16
+ return { bank_id: 0, amount: 0, tenure: 0, customer_id: 0, ip: "", addons: 0 };
17
17
  }
18
18
  exports.approveLoanRequest = {
19
19
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -32,6 +32,9 @@ exports.approveLoanRequest = {
32
32
  if (message.ip !== "") {
33
33
  writer.uint32(42).string(message.ip);
34
34
  }
35
+ if (message.addons !== 0) {
36
+ writer.uint32(48).int32(message.addons);
37
+ }
35
38
  return writer;
36
39
  },
37
40
  decode(input, length) {
@@ -71,6 +74,12 @@ exports.approveLoanRequest = {
71
74
  }
72
75
  message.ip = reader.string();
73
76
  continue;
77
+ case 6:
78
+ if (tag !== 48) {
79
+ break;
80
+ }
81
+ message.addons = reader.int32();
82
+ continue;
74
83
  }
75
84
  if ((tag & 7) === 4 || tag === 0) {
76
85
  break;
@@ -86,6 +95,7 @@ exports.approveLoanRequest = {
86
95
  tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
87
96
  customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
88
97
  ip: isSet(object.ip) ? globalThis.String(object.ip) : "",
98
+ addons: isSet(object.addons) ? globalThis.Number(object.addons) : 0,
89
99
  };
90
100
  },
91
101
  toJSON(message) {
@@ -105,6 +115,9 @@ exports.approveLoanRequest = {
105
115
  if (message.ip !== "") {
106
116
  obj.ip = message.ip;
107
117
  }
118
+ if (message.addons !== 0) {
119
+ obj.addons = Math.round(message.addons);
120
+ }
108
121
  return obj;
109
122
  },
110
123
  create(base) {
@@ -117,6 +130,7 @@ exports.approveLoanRequest = {
117
130
  message.tenure = object.tenure ?? 0;
118
131
  message.customer_id = object.customer_id ?? 0;
119
132
  message.ip = object.ip ?? "";
133
+ message.addons = object.addons ?? 0;
120
134
  return message;
121
135
  },
122
136
  };
@@ -13,12 +13,6 @@ export interface creditLimitResponse {
13
13
  request_max_percentage: number;
14
14
  bill_date: string;
15
15
  minimum_request_amount: number;
16
- sanctioned_limit_info_popup_heading: string;
17
- sanctioned_limit_info_popup_body: string;
18
- exposure_limit_info_popup_heading: string;
19
- exposure_limit_info_popup_body: string;
20
- sanctioned_limit_heading: string;
21
- exposure_limit_heading: string;
22
16
  sanctioned_limit: number;
23
17
  remaining_sanctioned_limit: number;
24
18
  }