@stashfin/grpc 1.2.95 → 1.2.98

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.95",
3
+ "version": "1.2.98",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -1,27 +1,27 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "customers.changempin";
3
- export interface ChangeMpinRequest {
3
+ export interface changeMpinRequest {
4
+ old_mpin: number;
4
5
  new_mpin: number;
5
- confirm_mpin: number;
6
6
  }
7
- export interface ChangeMpinResponse {
8
- success: boolean;
7
+ export interface changeMpinResponse {
8
+ id: number;
9
9
  }
10
- export declare const ChangeMpinRequest: {
11
- encode(message: ChangeMpinRequest, writer?: _m0.Writer): _m0.Writer;
12
- decode(input: _m0.Reader | Uint8Array, length?: number): ChangeMpinRequest;
13
- fromJSON(object: any): ChangeMpinRequest;
14
- toJSON(message: ChangeMpinRequest): unknown;
15
- create<I extends Exact<DeepPartial<ChangeMpinRequest>, I>>(base?: I): ChangeMpinRequest;
16
- fromPartial<I extends Exact<DeepPartial<ChangeMpinRequest>, I>>(object: I): ChangeMpinRequest;
10
+ export declare const changeMpinRequest: {
11
+ encode(message: changeMpinRequest, writer?: _m0.Writer): _m0.Writer;
12
+ decode(input: _m0.Reader | Uint8Array, length?: number): changeMpinRequest;
13
+ fromJSON(object: any): changeMpinRequest;
14
+ toJSON(message: changeMpinRequest): unknown;
15
+ create<I extends Exact<DeepPartial<changeMpinRequest>, I>>(base?: I): changeMpinRequest;
16
+ fromPartial<I extends Exact<DeepPartial<changeMpinRequest>, I>>(object: I): changeMpinRequest;
17
17
  };
18
- export declare const ChangeMpinResponse: {
19
- encode(message: ChangeMpinResponse, writer?: _m0.Writer): _m0.Writer;
20
- decode(input: _m0.Reader | Uint8Array, length?: number): ChangeMpinResponse;
21
- fromJSON(object: any): ChangeMpinResponse;
22
- toJSON(message: ChangeMpinResponse): unknown;
23
- create<I extends Exact<DeepPartial<ChangeMpinResponse>, I>>(base?: I): ChangeMpinResponse;
24
- fromPartial<I extends Exact<DeepPartial<ChangeMpinResponse>, I>>(object: I): ChangeMpinResponse;
18
+ export declare const changeMpinResponse: {
19
+ encode(message: changeMpinResponse, writer?: _m0.Writer): _m0.Writer;
20
+ decode(input: _m0.Reader | Uint8Array, length?: number): changeMpinResponse;
21
+ fromJSON(object: any): changeMpinResponse;
22
+ toJSON(message: changeMpinResponse): unknown;
23
+ create<I extends Exact<DeepPartial<changeMpinResponse>, I>>(base?: I): changeMpinResponse;
24
+ fromPartial<I extends Exact<DeepPartial<changeMpinResponse>, I>>(object: I): changeMpinResponse;
25
25
  };
26
26
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
27
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 {} ? {
@@ -8,27 +8,27 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
9
9
  };
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.ChangeMpinResponse = exports.ChangeMpinRequest = exports.protobufPackage = void 0;
11
+ exports.changeMpinResponse = exports.changeMpinRequest = exports.protobufPackage = void 0;
12
12
  /* eslint-disable */
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "customers.changempin";
15
- function createBaseChangeMpinRequest() {
16
- return { new_mpin: 0, confirm_mpin: 0 };
15
+ function createBasechangeMpinRequest() {
16
+ return { old_mpin: 0, new_mpin: 0 };
17
17
  }
18
- exports.ChangeMpinRequest = {
18
+ exports.changeMpinRequest = {
19
19
  encode(message, writer = minimal_1.default.Writer.create()) {
20
- if (message.new_mpin !== 0) {
21
- writer.uint32(8).int32(message.new_mpin);
20
+ if (message.old_mpin !== 0) {
21
+ writer.uint32(8).int32(message.old_mpin);
22
22
  }
23
- if (message.confirm_mpin !== 0) {
24
- writer.uint32(16).int32(message.confirm_mpin);
23
+ if (message.new_mpin !== 0) {
24
+ writer.uint32(16).int32(message.new_mpin);
25
25
  }
26
26
  return writer;
27
27
  },
28
28
  decode(input, length) {
29
29
  const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
30
30
  let end = length === undefined ? reader.len : reader.pos + length;
31
- const message = createBaseChangeMpinRequest();
31
+ const message = createBasechangeMpinRequest();
32
32
  while (reader.pos < end) {
33
33
  const tag = reader.uint32();
34
34
  switch (tag >>> 3) {
@@ -36,13 +36,13 @@ exports.ChangeMpinRequest = {
36
36
  if (tag !== 8) {
37
37
  break;
38
38
  }
39
- message.new_mpin = reader.int32();
39
+ message.old_mpin = reader.int32();
40
40
  continue;
41
41
  case 2:
42
42
  if (tag !== 16) {
43
43
  break;
44
44
  }
45
- message.confirm_mpin = reader.int32();
45
+ message.new_mpin = reader.int32();
46
46
  continue;
47
47
  }
48
48
  if ((tag & 7) === 4 || tag === 0) {
@@ -54,44 +54,44 @@ exports.ChangeMpinRequest = {
54
54
  },
55
55
  fromJSON(object) {
56
56
  return {
57
+ old_mpin: isSet(object.old_mpin) ? globalThis.Number(object.old_mpin) : 0,
57
58
  new_mpin: isSet(object.new_mpin) ? globalThis.Number(object.new_mpin) : 0,
58
- confirm_mpin: isSet(object.confirm_mpin) ? globalThis.Number(object.confirm_mpin) : 0,
59
59
  };
60
60
  },
61
61
  toJSON(message) {
62
62
  const obj = {};
63
+ if (message.old_mpin !== 0) {
64
+ obj.old_mpin = Math.round(message.old_mpin);
65
+ }
63
66
  if (message.new_mpin !== 0) {
64
67
  obj.new_mpin = Math.round(message.new_mpin);
65
68
  }
66
- if (message.confirm_mpin !== 0) {
67
- obj.confirm_mpin = Math.round(message.confirm_mpin);
68
- }
69
69
  return obj;
70
70
  },
71
71
  create(base) {
72
- return exports.ChangeMpinRequest.fromPartial(base ?? {});
72
+ return exports.changeMpinRequest.fromPartial(base ?? {});
73
73
  },
74
74
  fromPartial(object) {
75
- const message = createBaseChangeMpinRequest();
75
+ const message = createBasechangeMpinRequest();
76
+ message.old_mpin = object.old_mpin ?? 0;
76
77
  message.new_mpin = object.new_mpin ?? 0;
77
- message.confirm_mpin = object.confirm_mpin ?? 0;
78
78
  return message;
79
79
  },
80
80
  };
81
- function createBaseChangeMpinResponse() {
82
- return { success: false };
81
+ function createBasechangeMpinResponse() {
82
+ return { id: 0 };
83
83
  }
84
- exports.ChangeMpinResponse = {
84
+ exports.changeMpinResponse = {
85
85
  encode(message, writer = minimal_1.default.Writer.create()) {
86
- if (message.success !== false) {
87
- writer.uint32(8).bool(message.success);
86
+ if (message.id !== 0) {
87
+ writer.uint32(8).int32(message.id);
88
88
  }
89
89
  return writer;
90
90
  },
91
91
  decode(input, length) {
92
92
  const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
93
93
  let end = length === undefined ? reader.len : reader.pos + length;
94
- const message = createBaseChangeMpinResponse();
94
+ const message = createBasechangeMpinResponse();
95
95
  while (reader.pos < end) {
96
96
  const tag = reader.uint32();
97
97
  switch (tag >>> 3) {
@@ -99,7 +99,7 @@ exports.ChangeMpinResponse = {
99
99
  if (tag !== 8) {
100
100
  break;
101
101
  }
102
- message.success = reader.bool();
102
+ message.id = reader.int32();
103
103
  continue;
104
104
  }
105
105
  if ((tag & 7) === 4 || tag === 0) {
@@ -110,21 +110,21 @@ exports.ChangeMpinResponse = {
110
110
  return message;
111
111
  },
112
112
  fromJSON(object) {
113
- return { success: isSet(object.success) ? globalThis.Boolean(object.success) : false };
113
+ return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
114
114
  },
115
115
  toJSON(message) {
116
116
  const obj = {};
117
- if (message.success !== false) {
118
- obj.success = message.success;
117
+ if (message.id !== 0) {
118
+ obj.id = Math.round(message.id);
119
119
  }
120
120
  return obj;
121
121
  },
122
122
  create(base) {
123
- return exports.ChangeMpinResponse.fromPartial(base ?? {});
123
+ return exports.changeMpinResponse.fromPartial(base ?? {});
124
124
  },
125
125
  fromPartial(object) {
126
- const message = createBaseChangeMpinResponse();
127
- message.success = object.success ?? false;
126
+ const message = createBasechangeMpinResponse();
127
+ message.id = object.id ?? 0;
128
128
  return message;
129
129
  },
130
130
  };
@@ -1,8 +1,7 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "customers.forgotmpin";
3
3
  export interface forgotMpinRequest {
4
- otp: string;
5
- new_mpin: number;
4
+ mobile: string;
6
5
  }
7
6
  export interface forgotMpinResponse {
8
7
  id: number;
@@ -13,15 +13,12 @@ exports.forgotMpinResponse = exports.forgotMpinRequest = exports.protobufPackage
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "customers.forgotmpin";
15
15
  function createBaseforgotMpinRequest() {
16
- return { otp: "", new_mpin: 0 };
16
+ return { mobile: "" };
17
17
  }
18
18
  exports.forgotMpinRequest = {
19
19
  encode(message, writer = minimal_1.default.Writer.create()) {
20
- if (message.otp !== "") {
21
- writer.uint32(10).string(message.otp);
22
- }
23
- if (message.new_mpin !== 0) {
24
- writer.uint32(16).int32(message.new_mpin);
20
+ if (message.mobile !== "") {
21
+ writer.uint32(10).string(message.mobile);
25
22
  }
26
23
  return writer;
27
24
  },
@@ -36,13 +33,7 @@ exports.forgotMpinRequest = {
36
33
  if (tag !== 10) {
37
34
  break;
38
35
  }
39
- message.otp = reader.string();
40
- continue;
41
- case 2:
42
- if (tag !== 16) {
43
- break;
44
- }
45
- message.new_mpin = reader.int32();
36
+ message.mobile = reader.string();
46
37
  continue;
47
38
  }
48
39
  if ((tag & 7) === 4 || tag === 0) {
@@ -53,18 +44,12 @@ exports.forgotMpinRequest = {
53
44
  return message;
54
45
  },
55
46
  fromJSON(object) {
56
- return {
57
- otp: isSet(object.otp) ? globalThis.String(object.otp) : "",
58
- new_mpin: isSet(object.new_mpin) ? globalThis.Number(object.new_mpin) : 0,
59
- };
47
+ return { mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "" };
60
48
  },
61
49
  toJSON(message) {
62
50
  const obj = {};
63
- if (message.otp !== "") {
64
- obj.otp = message.otp;
65
- }
66
- if (message.new_mpin !== 0) {
67
- obj.new_mpin = Math.round(message.new_mpin);
51
+ if (message.mobile !== "") {
52
+ obj.mobile = message.mobile;
68
53
  }
69
54
  return obj;
70
55
  },
@@ -73,8 +58,7 @@ exports.forgotMpinRequest = {
73
58
  },
74
59
  fromPartial(object) {
75
60
  const message = createBaseforgotMpinRequest();
76
- message.otp = object.otp ?? "";
77
- message.new_mpin = object.new_mpin ?? 0;
61
+ message.mobile = object.mobile ?? "";
78
62
  return message;
79
63
  },
80
64
  };
@@ -0,0 +1,35 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "customers.forgotmpinverify";
3
+ export interface forgotMpinVerifyRequest {
4
+ otp: string;
5
+ }
6
+ export interface forgotMpinVerifyResponse {
7
+ success: boolean;
8
+ }
9
+ export declare const forgotMpinVerifyRequest: {
10
+ encode(message: forgotMpinVerifyRequest, writer?: _m0.Writer): _m0.Writer;
11
+ decode(input: _m0.Reader | Uint8Array, length?: number): forgotMpinVerifyRequest;
12
+ fromJSON(object: any): forgotMpinVerifyRequest;
13
+ toJSON(message: forgotMpinVerifyRequest): unknown;
14
+ create<I extends Exact<DeepPartial<forgotMpinVerifyRequest>, I>>(base?: I): forgotMpinVerifyRequest;
15
+ fromPartial<I extends Exact<DeepPartial<forgotMpinVerifyRequest>, I>>(object: I): forgotMpinVerifyRequest;
16
+ };
17
+ export declare const forgotMpinVerifyResponse: {
18
+ encode(message: forgotMpinVerifyResponse, writer?: _m0.Writer): _m0.Writer;
19
+ decode(input: _m0.Reader | Uint8Array, length?: number): forgotMpinVerifyResponse;
20
+ fromJSON(object: any): forgotMpinVerifyResponse;
21
+ toJSON(message: forgotMpinVerifyResponse): unknown;
22
+ create<I extends Exact<DeepPartial<forgotMpinVerifyResponse>, I>>(base?: I): forgotMpinVerifyResponse;
23
+ fromPartial<I extends Exact<DeepPartial<forgotMpinVerifyResponse>, I>>(object: I): forgotMpinVerifyResponse;
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/forgotmpinverify.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.forgotMpinVerifyResponse = exports.forgotMpinVerifyRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "customers.forgotmpinverify";
15
+ function createBaseforgotMpinVerifyRequest() {
16
+ return { otp: "" };
17
+ }
18
+ exports.forgotMpinVerifyRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.otp !== "") {
21
+ writer.uint32(10).string(message.otp);
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 = createBaseforgotMpinVerifyRequest();
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.otp = 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 { otp: isSet(object.otp) ? globalThis.String(object.otp) : "" };
48
+ },
49
+ toJSON(message) {
50
+ const obj = {};
51
+ if (message.otp !== "") {
52
+ obj.otp = message.otp;
53
+ }
54
+ return obj;
55
+ },
56
+ create(base) {
57
+ return exports.forgotMpinVerifyRequest.fromPartial(base ?? {});
58
+ },
59
+ fromPartial(object) {
60
+ const message = createBaseforgotMpinVerifyRequest();
61
+ message.otp = object.otp ?? "";
62
+ return message;
63
+ },
64
+ };
65
+ function createBaseforgotMpinVerifyResponse() {
66
+ return { success: false };
67
+ }
68
+ exports.forgotMpinVerifyResponse = {
69
+ encode(message, writer = minimal_1.default.Writer.create()) {
70
+ if (message.success !== false) {
71
+ writer.uint32(8).bool(message.success);
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 = createBaseforgotMpinVerifyResponse();
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.success = 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 { success: isSet(object.success) ? globalThis.Boolean(object.success) : false };
98
+ },
99
+ toJSON(message) {
100
+ const obj = {};
101
+ if (message.success !== false) {
102
+ obj.success = message.success;
103
+ }
104
+ return obj;
105
+ },
106
+ create(base) {
107
+ return exports.forgotMpinVerifyResponse.fromPartial(base ?? {});
108
+ },
109
+ fromPartial(object) {
110
+ const message = createBaseforgotMpinVerifyResponse();
111
+ message.success = object.success ?? false;
112
+ return message;
113
+ },
114
+ };
115
+ function isSet(value) {
116
+ return value !== null && value !== undefined;
117
+ }
@@ -2,7 +2,6 @@ import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "customers.updatemobileverifyotp";
3
3
  export interface updateMobileVerifyOtpRequest {
4
4
  new_mobile: string;
5
- current_mobile_otp: string;
6
5
  new_mobile_otp: string;
7
6
  }
8
7
  export interface updateMobileVerifyOtpResponse {
@@ -13,16 +13,13 @@ exports.updateMobileVerifyOtpResponse = exports.updateMobileVerifyOtpRequest = e
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "customers.updatemobileverifyotp";
15
15
  function createBaseupdateMobileVerifyOtpRequest() {
16
- return { new_mobile: "", current_mobile_otp: "", new_mobile_otp: "" };
16
+ return { new_mobile: "", new_mobile_otp: "" };
17
17
  }
18
18
  exports.updateMobileVerifyOtpRequest = {
19
19
  encode(message, writer = minimal_1.default.Writer.create()) {
20
20
  if (message.new_mobile !== "") {
21
21
  writer.uint32(10).string(message.new_mobile);
22
22
  }
23
- if (message.current_mobile_otp !== "") {
24
- writer.uint32(18).string(message.current_mobile_otp);
25
- }
26
23
  if (message.new_mobile_otp !== "") {
27
24
  writer.uint32(26).string(message.new_mobile_otp);
28
25
  }
@@ -41,12 +38,6 @@ exports.updateMobileVerifyOtpRequest = {
41
38
  }
42
39
  message.new_mobile = reader.string();
43
40
  continue;
44
- case 2:
45
- if (tag !== 18) {
46
- break;
47
- }
48
- message.current_mobile_otp = reader.string();
49
- continue;
50
41
  case 3:
51
42
  if (tag !== 26) {
52
43
  break;
@@ -64,7 +55,6 @@ exports.updateMobileVerifyOtpRequest = {
64
55
  fromJSON(object) {
65
56
  return {
66
57
  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
58
  new_mobile_otp: isSet(object.new_mobile_otp) ? globalThis.String(object.new_mobile_otp) : "",
69
59
  };
70
60
  },
@@ -73,9 +63,6 @@ exports.updateMobileVerifyOtpRequest = {
73
63
  if (message.new_mobile !== "") {
74
64
  obj.new_mobile = message.new_mobile;
75
65
  }
76
- if (message.current_mobile_otp !== "") {
77
- obj.current_mobile_otp = message.current_mobile_otp;
78
- }
79
66
  if (message.new_mobile_otp !== "") {
80
67
  obj.new_mobile_otp = message.new_mobile_otp;
81
68
  }
@@ -87,7 +74,6 @@ exports.updateMobileVerifyOtpRequest = {
87
74
  fromPartial(object) {
88
75
  const message = createBaseupdateMobileVerifyOtpRequest();
89
76
  message.new_mobile = object.new_mobile ?? "";
90
- message.current_mobile_otp = object.current_mobile_otp ?? "";
91
77
  message.new_mobile_otp = object.new_mobile_otp ?? "";
92
78
  return message;
93
79
  },
package/ts/customers.d.ts CHANGED
@@ -5,13 +5,13 @@ import { addAddressRequest, addAddressResponse } from "./customers/addaddress";
5
5
  import { addBankAccountDetailsRequest, addBankAccountDetailsResponse } from "./customers/addbankaccountdetails";
6
6
  import { addSuspendedCustomerRequest, addSuspendedCustomerResponse } from "./customers/addsuspendedcustomer";
7
7
  import { AddUserAppsRequest, AddUserAppsResponse } from "./customers/adduserapps";
8
- import { ChangeMpinRequest, ChangeMpinResponse } from "./customers/changempin";
8
+ import { changeMpinRequest, changeMpinResponse } from "./customers/changempin";
9
9
  import { createCustomerReferenceRequest, createCustomerReferenceResponse } from "./customers/createcustomerreference";
10
10
  import { deleteProfileRequest, deleteProfileResponse } from "./customers/deleteprofile";
11
11
  import { disableMpinRequest, disableMpinResponse } from "./customers/disablempin";
12
12
  import { fetchRCProfileRequest, fetchRCProfileResponse } from "./customers/fetchrcprofile";
13
13
  import { forgotMpinRequest, forgotMpinResponse } from "./customers/forgotmpin";
14
- import { forgotMpinOTPRequest, forgotMpinOTPResponse } from "./customers/forgotmpinotp";
14
+ import { forgotMpinVerifyRequest, forgotMpinVerifyResponse } from "./customers/forgotmpinverify";
15
15
  import { getBankAccountDetailsRequest, getBankAccountDetailsResponse } from "./customers/getbankaccountdetails";
16
16
  import { getBasicInfoRequest, getBasicInfoResponse } from "./customers/getbasicinfo";
17
17
  import { getCitiesRequest, getCitiesResponse } from "./customers/getcities";
@@ -26,7 +26,6 @@ import { getAllStatesRequest, getAllStatesResponse } from "./customers/getstates
26
26
  import { getstepRequest, getstepResponse } from "./customers/getstep";
27
27
  import { updateProfileBasicRequest, updateProfileBasicResponse } from "./customers/profilebasic";
28
28
  import { updateTncRequest, updateTncResponse } from "./customers/profileupdatetnc";
29
- import { resetMpinRequest, resetMpinResponse } from "./customers/resetmpin";
30
29
  import { saveBasicDetailsRequest, saveBasicDetailsResponse } from "./customers/savebasicdetails";
31
30
  import { saveUnlockLimitRequest, saveUnlockLimitResponse } from "./customers/saveunlocklimit";
32
31
  import { sendOtpRequest, sendOtpRespone } from "./customers/sendotp";
@@ -86,23 +85,14 @@ export declare const customersService: {
86
85
  readonly responseSerialize: (value: verifyMpinResponse) => Buffer;
87
86
  readonly responseDeserialize: (value: Buffer) => verifyMpinResponse;
88
87
  };
89
- readonly resetMpin: {
90
- readonly path: "/service.customers/resetMpin";
88
+ readonly changeMpin: {
89
+ readonly path: "/service.customers/changeMpin";
91
90
  readonly requestStream: false;
92
91
  readonly responseStream: false;
93
- readonly requestSerialize: (value: resetMpinRequest) => Buffer;
94
- readonly requestDeserialize: (value: Buffer) => resetMpinRequest;
95
- readonly responseSerialize: (value: resetMpinResponse) => Buffer;
96
- readonly responseDeserialize: (value: Buffer) => resetMpinResponse;
97
- };
98
- readonly forgotMpinOtp: {
99
- readonly path: "/service.customers/forgotMpinOtp";
100
- readonly requestStream: false;
101
- readonly responseStream: false;
102
- readonly requestSerialize: (value: forgotMpinOTPRequest) => Buffer;
103
- readonly requestDeserialize: (value: Buffer) => forgotMpinOTPRequest;
104
- readonly responseSerialize: (value: forgotMpinOTPResponse) => Buffer;
105
- readonly responseDeserialize: (value: Buffer) => forgotMpinOTPResponse;
92
+ readonly requestSerialize: (value: changeMpinRequest) => Buffer;
93
+ readonly requestDeserialize: (value: Buffer) => changeMpinRequest;
94
+ readonly responseSerialize: (value: changeMpinResponse) => Buffer;
95
+ readonly responseDeserialize: (value: Buffer) => changeMpinResponse;
106
96
  };
107
97
  readonly forgotMpin: {
108
98
  readonly path: "/service.customers/forgotMpin";
@@ -113,6 +103,15 @@ export declare const customersService: {
113
103
  readonly responseSerialize: (value: forgotMpinResponse) => Buffer;
114
104
  readonly responseDeserialize: (value: Buffer) => forgotMpinResponse;
115
105
  };
106
+ readonly forgotMpinVerify: {
107
+ readonly path: "/service.customers/forgotMpinVerify";
108
+ readonly requestStream: false;
109
+ readonly responseStream: false;
110
+ readonly requestSerialize: (value: forgotMpinVerifyRequest) => Buffer;
111
+ readonly requestDeserialize: (value: Buffer) => forgotMpinVerifyRequest;
112
+ readonly responseSerialize: (value: forgotMpinVerifyResponse) => Buffer;
113
+ readonly responseDeserialize: (value: Buffer) => forgotMpinVerifyResponse;
114
+ };
116
115
  readonly profileUpdatetnc: {
117
116
  readonly path: "/service.customers/profileUpdatetnc";
118
117
  readonly requestStream: false;
@@ -509,15 +508,6 @@ export declare const customersService: {
509
508
  readonly responseSerialize: (value: disableMpinResponse) => Buffer;
510
509
  readonly responseDeserialize: (value: Buffer) => disableMpinResponse;
511
510
  };
512
- readonly changempin: {
513
- readonly path: "/service.customers/changempin";
514
- readonly requestStream: false;
515
- readonly responseStream: false;
516
- readonly requestSerialize: (value: ChangeMpinRequest) => Buffer;
517
- readonly requestDeserialize: (value: Buffer) => ChangeMpinRequest;
518
- readonly responseSerialize: (value: ChangeMpinResponse) => Buffer;
519
- readonly responseDeserialize: (value: Buffer) => ChangeMpinResponse;
520
- };
521
511
  readonly updateMobileSendOtp: {
522
512
  readonly path: "/service.customers/updateMobileSendOtp";
523
513
  readonly requestStream: false;
@@ -542,9 +532,9 @@ export interface customersServer extends UntypedServiceImplementation {
542
532
  verifyOtp: handleUnaryCall<verifyOtpReqeust, verifyOtpResponse>;
543
533
  setmpin: handleUnaryCall<setMpinRequest, setMpinResponse>;
544
534
  verifyMpin: handleUnaryCall<verifyMpinRequest, verifyMpinResponse>;
545
- resetMpin: handleUnaryCall<resetMpinRequest, resetMpinResponse>;
546
- forgotMpinOtp: handleUnaryCall<forgotMpinOTPRequest, forgotMpinOTPResponse>;
535
+ changeMpin: handleUnaryCall<changeMpinRequest, changeMpinResponse>;
547
536
  forgotMpin: handleUnaryCall<forgotMpinRequest, forgotMpinResponse>;
537
+ forgotMpinVerify: handleUnaryCall<forgotMpinVerifyRequest, forgotMpinVerifyResponse>;
548
538
  profileUpdatetnc: handleUnaryCall<updateTncRequest, updateTncResponse>;
549
539
  updateProfileBasic: handleUnaryCall<updateProfileBasicRequest, updateProfileBasicResponse>;
550
540
  getProfile: handleUnaryCall<getCustomerProfileRequest, getCustomerProfileResponse>;
@@ -589,7 +579,6 @@ export interface customersServer extends UntypedServiceImplementation {
589
579
  addUserApps: handleUnaryCall<AddUserAppsRequest, AddUserAppsResponse>;
590
580
  fetchRcProfile: handleUnaryCall<fetchRCProfileRequest, fetchRCProfileResponse>;
591
581
  disablempin: handleUnaryCall<disableMpinRequest, disableMpinResponse>;
592
- changempin: handleUnaryCall<ChangeMpinRequest, ChangeMpinResponse>;
593
582
  updateMobileSendOtp: handleUnaryCall<updateMobileSendOtpRequest, updateMobileSendOtpResponse>;
594
583
  updatemobileverifyotp: handleUnaryCall<updateMobileVerifyOtpRequest, updateMobileVerifyOtpResponse>;
595
584
  }
@@ -606,15 +595,15 @@ export interface customersClient extends Client {
606
595
  verifyMpin(request: verifyMpinRequest, callback: (error: ServiceError | null, response: verifyMpinResponse) => void): ClientUnaryCall;
607
596
  verifyMpin(request: verifyMpinRequest, metadata: Metadata, callback: (error: ServiceError | null, response: verifyMpinResponse) => void): ClientUnaryCall;
608
597
  verifyMpin(request: verifyMpinRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: verifyMpinResponse) => void): ClientUnaryCall;
609
- resetMpin(request: resetMpinRequest, callback: (error: ServiceError | null, response: resetMpinResponse) => void): ClientUnaryCall;
610
- resetMpin(request: resetMpinRequest, metadata: Metadata, callback: (error: ServiceError | null, response: resetMpinResponse) => void): ClientUnaryCall;
611
- resetMpin(request: resetMpinRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: resetMpinResponse) => void): ClientUnaryCall;
612
- forgotMpinOtp(request: forgotMpinOTPRequest, callback: (error: ServiceError | null, response: forgotMpinOTPResponse) => void): ClientUnaryCall;
613
- forgotMpinOtp(request: forgotMpinOTPRequest, metadata: Metadata, callback: (error: ServiceError | null, response: forgotMpinOTPResponse) => void): ClientUnaryCall;
614
- forgotMpinOtp(request: forgotMpinOTPRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: forgotMpinOTPResponse) => void): ClientUnaryCall;
598
+ changeMpin(request: changeMpinRequest, callback: (error: ServiceError | null, response: changeMpinResponse) => void): ClientUnaryCall;
599
+ changeMpin(request: changeMpinRequest, metadata: Metadata, callback: (error: ServiceError | null, response: changeMpinResponse) => void): ClientUnaryCall;
600
+ changeMpin(request: changeMpinRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: changeMpinResponse) => void): ClientUnaryCall;
615
601
  forgotMpin(request: forgotMpinRequest, callback: (error: ServiceError | null, response: forgotMpinResponse) => void): ClientUnaryCall;
616
602
  forgotMpin(request: forgotMpinRequest, metadata: Metadata, callback: (error: ServiceError | null, response: forgotMpinResponse) => void): ClientUnaryCall;
617
603
  forgotMpin(request: forgotMpinRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: forgotMpinResponse) => void): ClientUnaryCall;
604
+ forgotMpinVerify(request: forgotMpinVerifyRequest, callback: (error: ServiceError | null, response: forgotMpinVerifyResponse) => void): ClientUnaryCall;
605
+ forgotMpinVerify(request: forgotMpinVerifyRequest, metadata: Metadata, callback: (error: ServiceError | null, response: forgotMpinVerifyResponse) => void): ClientUnaryCall;
606
+ forgotMpinVerify(request: forgotMpinVerifyRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: forgotMpinVerifyResponse) => void): ClientUnaryCall;
618
607
  profileUpdatetnc(request: updateTncRequest, callback: (error: ServiceError | null, response: updateTncResponse) => void): ClientUnaryCall;
619
608
  profileUpdatetnc(request: updateTncRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateTncResponse) => void): ClientUnaryCall;
620
609
  profileUpdatetnc(request: updateTncRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateTncResponse) => void): ClientUnaryCall;
@@ -747,9 +736,6 @@ export interface customersClient extends Client {
747
736
  disablempin(request: disableMpinRequest, callback: (error: ServiceError | null, response: disableMpinResponse) => void): ClientUnaryCall;
748
737
  disablempin(request: disableMpinRequest, metadata: Metadata, callback: (error: ServiceError | null, response: disableMpinResponse) => void): ClientUnaryCall;
749
738
  disablempin(request: disableMpinRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: disableMpinResponse) => void): ClientUnaryCall;
750
- changempin(request: ChangeMpinRequest, callback: (error: ServiceError | null, response: ChangeMpinResponse) => void): ClientUnaryCall;
751
- changempin(request: ChangeMpinRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ChangeMpinResponse) => void): ClientUnaryCall;
752
- changempin(request: ChangeMpinRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ChangeMpinResponse) => void): ClientUnaryCall;
753
739
  updateMobileSendOtp(request: updateMobileSendOtpRequest, callback: (error: ServiceError | null, response: updateMobileSendOtpResponse) => void): ClientUnaryCall;
754
740
  updateMobileSendOtp(request: updateMobileSendOtpRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateMobileSendOtpResponse) => void): ClientUnaryCall;
755
741
  updateMobileSendOtp(request: updateMobileSendOtpRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateMobileSendOtpResponse) => void): ClientUnaryCall;
package/ts/customers.js CHANGED
@@ -20,7 +20,7 @@ const deleteprofile_1 = require("./customers/deleteprofile");
20
20
  const disablempin_1 = require("./customers/disablempin");
21
21
  const fetchrcprofile_1 = require("./customers/fetchrcprofile");
22
22
  const forgotmpin_1 = require("./customers/forgotmpin");
23
- const forgotmpinotp_1 = require("./customers/forgotmpinotp");
23
+ const forgotmpinverify_1 = require("./customers/forgotmpinverify");
24
24
  const getbankaccountdetails_1 = require("./customers/getbankaccountdetails");
25
25
  const getbasicinfo_1 = require("./customers/getbasicinfo");
26
26
  const getcities_1 = require("./customers/getcities");
@@ -35,7 +35,6 @@ const getstates_1 = require("./customers/getstates");
35
35
  const getstep_1 = require("./customers/getstep");
36
36
  const profilebasic_1 = require("./customers/profilebasic");
37
37
  const profileupdatetnc_1 = require("./customers/profileupdatetnc");
38
- const resetmpin_1 = require("./customers/resetmpin");
39
38
  const savebasicdetails_1 = require("./customers/savebasicdetails");
40
39
  const saveunlocklimit_1 = require("./customers/saveunlocklimit");
41
40
  const sendotp_1 = require("./customers/sendotp");
@@ -94,23 +93,14 @@ exports.customersService = {
94
93
  responseSerialize: (value) => Buffer.from(verifympin_1.verifyMpinResponse.encode(value).finish()),
95
94
  responseDeserialize: (value) => verifympin_1.verifyMpinResponse.decode(value),
96
95
  },
97
- resetMpin: {
98
- path: "/service.customers/resetMpin",
96
+ changeMpin: {
97
+ path: "/service.customers/changeMpin",
99
98
  requestStream: false,
100
99
  responseStream: false,
101
- requestSerialize: (value) => Buffer.from(resetmpin_1.resetMpinRequest.encode(value).finish()),
102
- requestDeserialize: (value) => resetmpin_1.resetMpinRequest.decode(value),
103
- responseSerialize: (value) => Buffer.from(resetmpin_1.resetMpinResponse.encode(value).finish()),
104
- responseDeserialize: (value) => resetmpin_1.resetMpinResponse.decode(value),
105
- },
106
- forgotMpinOtp: {
107
- path: "/service.customers/forgotMpinOtp",
108
- requestStream: false,
109
- responseStream: false,
110
- requestSerialize: (value) => Buffer.from(forgotmpinotp_1.forgotMpinOTPRequest.encode(value).finish()),
111
- requestDeserialize: (value) => forgotmpinotp_1.forgotMpinOTPRequest.decode(value),
112
- responseSerialize: (value) => Buffer.from(forgotmpinotp_1.forgotMpinOTPResponse.encode(value).finish()),
113
- responseDeserialize: (value) => forgotmpinotp_1.forgotMpinOTPResponse.decode(value),
100
+ requestSerialize: (value) => Buffer.from(changempin_1.changeMpinRequest.encode(value).finish()),
101
+ requestDeserialize: (value) => changempin_1.changeMpinRequest.decode(value),
102
+ responseSerialize: (value) => Buffer.from(changempin_1.changeMpinResponse.encode(value).finish()),
103
+ responseDeserialize: (value) => changempin_1.changeMpinResponse.decode(value),
114
104
  },
115
105
  forgotMpin: {
116
106
  path: "/service.customers/forgotMpin",
@@ -121,6 +111,15 @@ exports.customersService = {
121
111
  responseSerialize: (value) => Buffer.from(forgotmpin_1.forgotMpinResponse.encode(value).finish()),
122
112
  responseDeserialize: (value) => forgotmpin_1.forgotMpinResponse.decode(value),
123
113
  },
114
+ forgotMpinVerify: {
115
+ path: "/service.customers/forgotMpinVerify",
116
+ requestStream: false,
117
+ responseStream: false,
118
+ requestSerialize: (value) => Buffer.from(forgotmpinverify_1.forgotMpinVerifyRequest.encode(value).finish()),
119
+ requestDeserialize: (value) => forgotmpinverify_1.forgotMpinVerifyRequest.decode(value),
120
+ responseSerialize: (value) => Buffer.from(forgotmpinverify_1.forgotMpinVerifyResponse.encode(value).finish()),
121
+ responseDeserialize: (value) => forgotmpinverify_1.forgotMpinVerifyResponse.decode(value),
122
+ },
124
123
  profileUpdatetnc: {
125
124
  path: "/service.customers/profileUpdatetnc",
126
125
  requestStream: false,
@@ -517,15 +516,6 @@ exports.customersService = {
517
516
  responseSerialize: (value) => Buffer.from(disablempin_1.disableMpinResponse.encode(value).finish()),
518
517
  responseDeserialize: (value) => disablempin_1.disableMpinResponse.decode(value),
519
518
  },
520
- changempin: {
521
- path: "/service.customers/changempin",
522
- requestStream: false,
523
- responseStream: false,
524
- requestSerialize: (value) => Buffer.from(changempin_1.ChangeMpinRequest.encode(value).finish()),
525
- requestDeserialize: (value) => changempin_1.ChangeMpinRequest.decode(value),
526
- responseSerialize: (value) => Buffer.from(changempin_1.ChangeMpinResponse.encode(value).finish()),
527
- responseDeserialize: (value) => changempin_1.ChangeMpinResponse.decode(value),
528
- },
529
519
  updateMobileSendOtp: {
530
520
  path: "/service.customers/updateMobileSendOtp",
531
521
  requestStream: false,