@stashfin/grpc 1.2.331 → 1.2.335
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/ts/customers/cb/updatecbstandalonejourney.d.ts +34 -0
- package/ts/customers/{skipdlrcscreen.js → cb/updatecbstandalonejourney.js} +20 -33
- package/ts/customers/enach/updatetxnstatus.d.ts +4 -1
- package/ts/customers/enach/updatetxnstatus.js +64 -8
- package/ts/customers/getcustomerdetailsbymobile.d.ts +42 -0
- package/ts/customers/getcustomerdetailsbymobile.js +219 -0
- package/ts/customers.d.ts +28 -0
- package/ts/customers.js +20 -0
- package/ts/loans/getvirtualaccountnumber.d.ts +35 -0
- package/ts/{customers/verifyemail.js → loans/getvirtualaccountnumber.js} +32 -32
- package/ts/customers/getrpdlink.d.ts +0 -40
- package/ts/customers/getrpdlink.js +0 -190
- package/ts/customers/sendemailtoken.d.ts +0 -35
- package/ts/customers/sendemailtoken.js +0 -117
- package/ts/customers/skipdlrcscreen.d.ts +0 -35
- package/ts/customers/step1.d.ts +0 -69
- package/ts/customers/step1.js +0 -395
- package/ts/customers/step10.d.ts +0 -73
- package/ts/customers/step10.js +0 -459
- package/ts/customers/step2.d.ts +0 -68
- package/ts/customers/step2.js +0 -381
- package/ts/customers/step7.d.ts +0 -68
- package/ts/customers/step7.js +0 -381
- package/ts/customers/step8.d.ts +0 -69
- package/ts/customers/step8.js +0 -395
- package/ts/customers/step9.d.ts +0 -75
- package/ts/customers/step9.js +0 -489
- package/ts/customers/stepstatic.d.ts +0 -66
- package/ts/customers/stepstatic.js +0 -354
- package/ts/customers/verifyemail.d.ts +0 -35
- package/ts/google/protobuf/timestamp.d.ts +0 -127
- package/ts/google/protobuf/timestamp.js +0 -97
package/package.json
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.cb.updatecbstandalonejourney";
|
|
3
|
+
export interface updateCbStandAloneJourneyRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface updateCbStandAloneJourneyResponse {
|
|
6
|
+
status: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const updateCbStandAloneJourneyRequest: {
|
|
9
|
+
encode(_: updateCbStandAloneJourneyRequest, writer?: _m0.Writer): _m0.Writer;
|
|
10
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateCbStandAloneJourneyRequest;
|
|
11
|
+
fromJSON(_: any): updateCbStandAloneJourneyRequest;
|
|
12
|
+
toJSON(_: updateCbStandAloneJourneyRequest): unknown;
|
|
13
|
+
create<I extends Exact<DeepPartial<updateCbStandAloneJourneyRequest>, I>>(base?: I): updateCbStandAloneJourneyRequest;
|
|
14
|
+
fromPartial<I extends Exact<DeepPartial<updateCbStandAloneJourneyRequest>, I>>(_: I): updateCbStandAloneJourneyRequest;
|
|
15
|
+
};
|
|
16
|
+
export declare const updateCbStandAloneJourneyResponse: {
|
|
17
|
+
encode(message: updateCbStandAloneJourneyResponse, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateCbStandAloneJourneyResponse;
|
|
19
|
+
fromJSON(object: any): updateCbStandAloneJourneyResponse;
|
|
20
|
+
toJSON(message: updateCbStandAloneJourneyResponse): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<updateCbStandAloneJourneyResponse>, I>>(base?: I): updateCbStandAloneJourneyResponse;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<updateCbStandAloneJourneyResponse>, I>>(object: I): updateCbStandAloneJourneyResponse;
|
|
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 {};
|
|
@@ -2,39 +2,30 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.0
|
|
5
|
-
// protoc v5.
|
|
6
|
-
// source: customers/
|
|
5
|
+
// protoc v5.28.2
|
|
6
|
+
// source: customers/cb/updatecbstandalonejourney.proto
|
|
7
7
|
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.
|
|
11
|
+
exports.updateCbStandAloneJourneyResponse = exports.updateCbStandAloneJourneyRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
-
exports.protobufPackage = "customers.
|
|
15
|
-
function
|
|
16
|
-
return {
|
|
14
|
+
exports.protobufPackage = "customers.cb.updatecbstandalonejourney";
|
|
15
|
+
function createBaseupdateCbStandAloneJourneyRequest() {
|
|
16
|
+
return {};
|
|
17
17
|
}
|
|
18
|
-
exports.
|
|
19
|
-
encode(
|
|
20
|
-
if (message.page !== "") {
|
|
21
|
-
writer.uint32(10).string(message.page);
|
|
22
|
-
}
|
|
18
|
+
exports.updateCbStandAloneJourneyRequest = {
|
|
19
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
23
20
|
return writer;
|
|
24
21
|
},
|
|
25
22
|
decode(input, length) {
|
|
26
23
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
24
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
-
const message =
|
|
25
|
+
const message = createBaseupdateCbStandAloneJourneyRequest();
|
|
29
26
|
while (reader.pos < end) {
|
|
30
27
|
const tag = reader.uint32();
|
|
31
28
|
switch (tag >>> 3) {
|
|
32
|
-
case 1:
|
|
33
|
-
if (tag !== 10) {
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
message.page = reader.string();
|
|
37
|
-
continue;
|
|
38
29
|
}
|
|
39
30
|
if ((tag & 7) === 4 || tag === 0) {
|
|
40
31
|
break;
|
|
@@ -43,29 +34,25 @@ exports.skipDlRcScreenRequest = {
|
|
|
43
34
|
}
|
|
44
35
|
return message;
|
|
45
36
|
},
|
|
46
|
-
fromJSON(
|
|
47
|
-
return {
|
|
37
|
+
fromJSON(_) {
|
|
38
|
+
return {};
|
|
48
39
|
},
|
|
49
|
-
toJSON(
|
|
40
|
+
toJSON(_) {
|
|
50
41
|
const obj = {};
|
|
51
|
-
if (message.page !== "") {
|
|
52
|
-
obj.page = message.page;
|
|
53
|
-
}
|
|
54
42
|
return obj;
|
|
55
43
|
},
|
|
56
44
|
create(base) {
|
|
57
|
-
return exports.
|
|
45
|
+
return exports.updateCbStandAloneJourneyRequest.fromPartial(base ?? {});
|
|
58
46
|
},
|
|
59
|
-
fromPartial(
|
|
60
|
-
const message =
|
|
61
|
-
message.page = object.page ?? "";
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBaseupdateCbStandAloneJourneyRequest();
|
|
62
49
|
return message;
|
|
63
50
|
},
|
|
64
51
|
};
|
|
65
|
-
function
|
|
52
|
+
function createBaseupdateCbStandAloneJourneyResponse() {
|
|
66
53
|
return { status: "" };
|
|
67
54
|
}
|
|
68
|
-
exports.
|
|
55
|
+
exports.updateCbStandAloneJourneyResponse = {
|
|
69
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
57
|
if (message.status !== "") {
|
|
71
58
|
writer.uint32(10).string(message.status);
|
|
@@ -75,7 +62,7 @@ exports.skipDlRcScreenResponse = {
|
|
|
75
62
|
decode(input, length) {
|
|
76
63
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
77
64
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
|
-
const message =
|
|
65
|
+
const message = createBaseupdateCbStandAloneJourneyResponse();
|
|
79
66
|
while (reader.pos < end) {
|
|
80
67
|
const tag = reader.uint32();
|
|
81
68
|
switch (tag >>> 3) {
|
|
@@ -104,10 +91,10 @@ exports.skipDlRcScreenResponse = {
|
|
|
104
91
|
return obj;
|
|
105
92
|
},
|
|
106
93
|
create(base) {
|
|
107
|
-
return exports.
|
|
94
|
+
return exports.updateCbStandAloneJourneyResponse.fromPartial(base ?? {});
|
|
108
95
|
},
|
|
109
96
|
fromPartial(object) {
|
|
110
|
-
const message =
|
|
97
|
+
const message = createBaseupdateCbStandAloneJourneyResponse();
|
|
111
98
|
message.status = object.status ?? "";
|
|
112
99
|
return message;
|
|
113
100
|
},
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "customers.enach.updatetxnstatus";
|
|
3
3
|
export interface updateTxnStatusRequest {
|
|
4
|
-
|
|
4
|
+
order_id: string;
|
|
5
5
|
status: string;
|
|
6
|
+
mode?: string | undefined;
|
|
7
|
+
customer_id?: number | undefined;
|
|
8
|
+
clint_id?: string | undefined;
|
|
6
9
|
}
|
|
7
10
|
export interface updateTxnStatusResponse {
|
|
8
11
|
status: string;
|
|
@@ -10,19 +10,29 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.updateTxnStatusResponse = exports.updateTxnStatusRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
|
+
const long_1 = __importDefault(require("long"));
|
|
13
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
15
|
exports.protobufPackage = "customers.enach.updatetxnstatus";
|
|
15
16
|
function createBaseupdateTxnStatusRequest() {
|
|
16
|
-
return {
|
|
17
|
+
return { order_id: "", status: "", mode: undefined, customer_id: undefined, clint_id: undefined };
|
|
17
18
|
}
|
|
18
19
|
exports.updateTxnStatusRequest = {
|
|
19
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
if (message.
|
|
21
|
-
writer.uint32(10).string(message.
|
|
21
|
+
if (message.order_id !== "") {
|
|
22
|
+
writer.uint32(10).string(message.order_id);
|
|
22
23
|
}
|
|
23
24
|
if (message.status !== "") {
|
|
24
25
|
writer.uint32(18).string(message.status);
|
|
25
26
|
}
|
|
27
|
+
if (message.mode !== undefined) {
|
|
28
|
+
writer.uint32(26).string(message.mode);
|
|
29
|
+
}
|
|
30
|
+
if (message.customer_id !== undefined) {
|
|
31
|
+
writer.uint32(32).int64(message.customer_id);
|
|
32
|
+
}
|
|
33
|
+
if (message.clint_id !== undefined) {
|
|
34
|
+
writer.uint32(42).string(message.clint_id);
|
|
35
|
+
}
|
|
26
36
|
return writer;
|
|
27
37
|
},
|
|
28
38
|
decode(input, length) {
|
|
@@ -36,7 +46,7 @@ exports.updateTxnStatusRequest = {
|
|
|
36
46
|
if (tag !== 10) {
|
|
37
47
|
break;
|
|
38
48
|
}
|
|
39
|
-
message.
|
|
49
|
+
message.order_id = reader.string();
|
|
40
50
|
continue;
|
|
41
51
|
case 2:
|
|
42
52
|
if (tag !== 18) {
|
|
@@ -44,6 +54,24 @@ exports.updateTxnStatusRequest = {
|
|
|
44
54
|
}
|
|
45
55
|
message.status = reader.string();
|
|
46
56
|
continue;
|
|
57
|
+
case 3:
|
|
58
|
+
if (tag !== 26) {
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
message.mode = reader.string();
|
|
62
|
+
continue;
|
|
63
|
+
case 4:
|
|
64
|
+
if (tag !== 32) {
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
message.customer_id = longToNumber(reader.int64());
|
|
68
|
+
continue;
|
|
69
|
+
case 5:
|
|
70
|
+
if (tag !== 42) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.clint_id = reader.string();
|
|
74
|
+
continue;
|
|
47
75
|
}
|
|
48
76
|
if ((tag & 7) === 4 || tag === 0) {
|
|
49
77
|
break;
|
|
@@ -54,18 +82,30 @@ exports.updateTxnStatusRequest = {
|
|
|
54
82
|
},
|
|
55
83
|
fromJSON(object) {
|
|
56
84
|
return {
|
|
57
|
-
|
|
85
|
+
order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "",
|
|
58
86
|
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
87
|
+
mode: isSet(object.mode) ? globalThis.String(object.mode) : undefined,
|
|
88
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : undefined,
|
|
89
|
+
clint_id: isSet(object.clint_id) ? globalThis.String(object.clint_id) : undefined,
|
|
59
90
|
};
|
|
60
91
|
},
|
|
61
92
|
toJSON(message) {
|
|
62
93
|
const obj = {};
|
|
63
|
-
if (message.
|
|
64
|
-
obj.
|
|
94
|
+
if (message.order_id !== "") {
|
|
95
|
+
obj.order_id = message.order_id;
|
|
65
96
|
}
|
|
66
97
|
if (message.status !== "") {
|
|
67
98
|
obj.status = message.status;
|
|
68
99
|
}
|
|
100
|
+
if (message.mode !== undefined) {
|
|
101
|
+
obj.mode = message.mode;
|
|
102
|
+
}
|
|
103
|
+
if (message.customer_id !== undefined) {
|
|
104
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
105
|
+
}
|
|
106
|
+
if (message.clint_id !== undefined) {
|
|
107
|
+
obj.clint_id = message.clint_id;
|
|
108
|
+
}
|
|
69
109
|
return obj;
|
|
70
110
|
},
|
|
71
111
|
create(base) {
|
|
@@ -73,8 +113,11 @@ exports.updateTxnStatusRequest = {
|
|
|
73
113
|
},
|
|
74
114
|
fromPartial(object) {
|
|
75
115
|
const message = createBaseupdateTxnStatusRequest();
|
|
76
|
-
message.
|
|
116
|
+
message.order_id = object.order_id ?? "";
|
|
77
117
|
message.status = object.status ?? "";
|
|
118
|
+
message.mode = object.mode ?? undefined;
|
|
119
|
+
message.customer_id = object.customer_id ?? undefined;
|
|
120
|
+
message.clint_id = object.clint_id ?? undefined;
|
|
78
121
|
return message;
|
|
79
122
|
},
|
|
80
123
|
};
|
|
@@ -128,6 +171,19 @@ exports.updateTxnStatusResponse = {
|
|
|
128
171
|
return message;
|
|
129
172
|
},
|
|
130
173
|
};
|
|
174
|
+
function longToNumber(long) {
|
|
175
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
176
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
177
|
+
}
|
|
178
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
179
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
180
|
+
}
|
|
181
|
+
return long.toNumber();
|
|
182
|
+
}
|
|
183
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
184
|
+
minimal_1.default.util.Long = long_1.default;
|
|
185
|
+
minimal_1.default.configure();
|
|
186
|
+
}
|
|
131
187
|
function isSet(value) {
|
|
132
188
|
return value !== null && value !== undefined;
|
|
133
189
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.getcustomerdetailsbymobile";
|
|
3
|
+
export interface getCustomerDetailsRequest {
|
|
4
|
+
mobile: string;
|
|
5
|
+
dob: string;
|
|
6
|
+
}
|
|
7
|
+
export interface getCustomerDetailsResponse {
|
|
8
|
+
customerId: number;
|
|
9
|
+
first_name: string;
|
|
10
|
+
middle_name: string;
|
|
11
|
+
last_name: string;
|
|
12
|
+
mobile: string;
|
|
13
|
+
/** Date of birth in the format YYYY-MM-DD */
|
|
14
|
+
dob: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const getCustomerDetailsRequest: {
|
|
17
|
+
encode(message: getCustomerDetailsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getCustomerDetailsRequest;
|
|
19
|
+
fromJSON(object: any): getCustomerDetailsRequest;
|
|
20
|
+
toJSON(message: getCustomerDetailsRequest): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<getCustomerDetailsRequest>, I>>(base?: I): getCustomerDetailsRequest;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<getCustomerDetailsRequest>, I>>(object: I): getCustomerDetailsRequest;
|
|
23
|
+
};
|
|
24
|
+
export declare const getCustomerDetailsResponse: {
|
|
25
|
+
encode(message: getCustomerDetailsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
26
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getCustomerDetailsResponse;
|
|
27
|
+
fromJSON(object: any): getCustomerDetailsResponse;
|
|
28
|
+
toJSON(message: getCustomerDetailsResponse): unknown;
|
|
29
|
+
create<I extends Exact<DeepPartial<getCustomerDetailsResponse>, I>>(base?: I): getCustomerDetailsResponse;
|
|
30
|
+
fromPartial<I extends Exact<DeepPartial<getCustomerDetailsResponse>, I>>(object: I): getCustomerDetailsResponse;
|
|
31
|
+
};
|
|
32
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
33
|
+
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 {} ? {
|
|
34
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
35
|
+
} : Partial<T>;
|
|
36
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
37
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
38
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
39
|
+
} & {
|
|
40
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
41
|
+
};
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.28.2
|
|
6
|
+
// source: customers/getcustomerdetailsbymobile.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.getCustomerDetailsResponse = exports.getCustomerDetailsRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const long_1 = __importDefault(require("long"));
|
|
14
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
|
+
exports.protobufPackage = "customers.getcustomerdetailsbymobile";
|
|
16
|
+
function createBasegetCustomerDetailsRequest() {
|
|
17
|
+
return { mobile: "", dob: "" };
|
|
18
|
+
}
|
|
19
|
+
exports.getCustomerDetailsRequest = {
|
|
20
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
+
if (message.mobile !== "") {
|
|
22
|
+
writer.uint32(10).string(message.mobile);
|
|
23
|
+
}
|
|
24
|
+
if (message.dob !== "") {
|
|
25
|
+
writer.uint32(18).string(message.dob);
|
|
26
|
+
}
|
|
27
|
+
return writer;
|
|
28
|
+
},
|
|
29
|
+
decode(input, length) {
|
|
30
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
31
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
32
|
+
const message = createBasegetCustomerDetailsRequest();
|
|
33
|
+
while (reader.pos < end) {
|
|
34
|
+
const tag = reader.uint32();
|
|
35
|
+
switch (tag >>> 3) {
|
|
36
|
+
case 1:
|
|
37
|
+
if (tag !== 10) {
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
message.mobile = reader.string();
|
|
41
|
+
continue;
|
|
42
|
+
case 2:
|
|
43
|
+
if (tag !== 18) {
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
message.dob = reader.string();
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
reader.skipType(tag & 7);
|
|
53
|
+
}
|
|
54
|
+
return message;
|
|
55
|
+
},
|
|
56
|
+
fromJSON(object) {
|
|
57
|
+
return {
|
|
58
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
59
|
+
dob: isSet(object.dob) ? globalThis.String(object.dob) : "",
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
toJSON(message) {
|
|
63
|
+
const obj = {};
|
|
64
|
+
if (message.mobile !== "") {
|
|
65
|
+
obj.mobile = message.mobile;
|
|
66
|
+
}
|
|
67
|
+
if (message.dob !== "") {
|
|
68
|
+
obj.dob = message.dob;
|
|
69
|
+
}
|
|
70
|
+
return obj;
|
|
71
|
+
},
|
|
72
|
+
create(base) {
|
|
73
|
+
return exports.getCustomerDetailsRequest.fromPartial(base ?? {});
|
|
74
|
+
},
|
|
75
|
+
fromPartial(object) {
|
|
76
|
+
const message = createBasegetCustomerDetailsRequest();
|
|
77
|
+
message.mobile = object.mobile ?? "";
|
|
78
|
+
message.dob = object.dob ?? "";
|
|
79
|
+
return message;
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
function createBasegetCustomerDetailsResponse() {
|
|
83
|
+
return { customerId: 0, first_name: "", middle_name: "", last_name: "", mobile: "", dob: "" };
|
|
84
|
+
}
|
|
85
|
+
exports.getCustomerDetailsResponse = {
|
|
86
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
87
|
+
if (message.customerId !== 0) {
|
|
88
|
+
writer.uint32(8).int64(message.customerId);
|
|
89
|
+
}
|
|
90
|
+
if (message.first_name !== "") {
|
|
91
|
+
writer.uint32(18).string(message.first_name);
|
|
92
|
+
}
|
|
93
|
+
if (message.middle_name !== "") {
|
|
94
|
+
writer.uint32(26).string(message.middle_name);
|
|
95
|
+
}
|
|
96
|
+
if (message.last_name !== "") {
|
|
97
|
+
writer.uint32(34).string(message.last_name);
|
|
98
|
+
}
|
|
99
|
+
if (message.mobile !== "") {
|
|
100
|
+
writer.uint32(42).string(message.mobile);
|
|
101
|
+
}
|
|
102
|
+
if (message.dob !== "") {
|
|
103
|
+
writer.uint32(50).string(message.dob);
|
|
104
|
+
}
|
|
105
|
+
return writer;
|
|
106
|
+
},
|
|
107
|
+
decode(input, length) {
|
|
108
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
109
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
110
|
+
const message = createBasegetCustomerDetailsResponse();
|
|
111
|
+
while (reader.pos < end) {
|
|
112
|
+
const tag = reader.uint32();
|
|
113
|
+
switch (tag >>> 3) {
|
|
114
|
+
case 1:
|
|
115
|
+
if (tag !== 8) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
message.customerId = longToNumber(reader.int64());
|
|
119
|
+
continue;
|
|
120
|
+
case 2:
|
|
121
|
+
if (tag !== 18) {
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
message.first_name = reader.string();
|
|
125
|
+
continue;
|
|
126
|
+
case 3:
|
|
127
|
+
if (tag !== 26) {
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
message.middle_name = reader.string();
|
|
131
|
+
continue;
|
|
132
|
+
case 4:
|
|
133
|
+
if (tag !== 34) {
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
message.last_name = reader.string();
|
|
137
|
+
continue;
|
|
138
|
+
case 5:
|
|
139
|
+
if (tag !== 42) {
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
message.mobile = reader.string();
|
|
143
|
+
continue;
|
|
144
|
+
case 6:
|
|
145
|
+
if (tag !== 50) {
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
message.dob = reader.string();
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
151
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
reader.skipType(tag & 7);
|
|
155
|
+
}
|
|
156
|
+
return message;
|
|
157
|
+
},
|
|
158
|
+
fromJSON(object) {
|
|
159
|
+
return {
|
|
160
|
+
customerId: isSet(object.customerId) ? globalThis.Number(object.customerId) : 0,
|
|
161
|
+
first_name: isSet(object.first_name) ? globalThis.String(object.first_name) : "",
|
|
162
|
+
middle_name: isSet(object.middle_name) ? globalThis.String(object.middle_name) : "",
|
|
163
|
+
last_name: isSet(object.last_name) ? globalThis.String(object.last_name) : "",
|
|
164
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
165
|
+
dob: isSet(object.dob) ? globalThis.String(object.dob) : "",
|
|
166
|
+
};
|
|
167
|
+
},
|
|
168
|
+
toJSON(message) {
|
|
169
|
+
const obj = {};
|
|
170
|
+
if (message.customerId !== 0) {
|
|
171
|
+
obj.customerId = Math.round(message.customerId);
|
|
172
|
+
}
|
|
173
|
+
if (message.first_name !== "") {
|
|
174
|
+
obj.first_name = message.first_name;
|
|
175
|
+
}
|
|
176
|
+
if (message.middle_name !== "") {
|
|
177
|
+
obj.middle_name = message.middle_name;
|
|
178
|
+
}
|
|
179
|
+
if (message.last_name !== "") {
|
|
180
|
+
obj.last_name = message.last_name;
|
|
181
|
+
}
|
|
182
|
+
if (message.mobile !== "") {
|
|
183
|
+
obj.mobile = message.mobile;
|
|
184
|
+
}
|
|
185
|
+
if (message.dob !== "") {
|
|
186
|
+
obj.dob = message.dob;
|
|
187
|
+
}
|
|
188
|
+
return obj;
|
|
189
|
+
},
|
|
190
|
+
create(base) {
|
|
191
|
+
return exports.getCustomerDetailsResponse.fromPartial(base ?? {});
|
|
192
|
+
},
|
|
193
|
+
fromPartial(object) {
|
|
194
|
+
const message = createBasegetCustomerDetailsResponse();
|
|
195
|
+
message.customerId = object.customerId ?? 0;
|
|
196
|
+
message.first_name = object.first_name ?? "";
|
|
197
|
+
message.middle_name = object.middle_name ?? "";
|
|
198
|
+
message.last_name = object.last_name ?? "";
|
|
199
|
+
message.mobile = object.mobile ?? "";
|
|
200
|
+
message.dob = object.dob ?? "";
|
|
201
|
+
return message;
|
|
202
|
+
},
|
|
203
|
+
};
|
|
204
|
+
function longToNumber(long) {
|
|
205
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
206
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
207
|
+
}
|
|
208
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
209
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
210
|
+
}
|
|
211
|
+
return long.toNumber();
|
|
212
|
+
}
|
|
213
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
214
|
+
minimal_1.default.util.Long = long_1.default;
|
|
215
|
+
minimal_1.default.configure();
|
|
216
|
+
}
|
|
217
|
+
function isSet(value) {
|
|
218
|
+
return value !== null && value !== undefined;
|
|
219
|
+
}
|
package/ts/customers.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { getPaymentSummaryRequest, getPaymentSummaryResponse } from "./customers
|
|
|
19
19
|
import { lessCsImproveRequest, lessCsImproveResponse } from "./customers/cb/lesscsimprove";
|
|
20
20
|
import { moreCsImproveRequest, moreCsImproveResponse } from "./customers/cb/morecsimprove";
|
|
21
21
|
import { saveCreditBuilderRequest, saveCreditBuilderResponse } from "./customers/cb/savecreditbuilder";
|
|
22
|
+
import { updateCbStandAloneJourneyRequest, updateCbStandAloneJourneyResponse } from "./customers/cb/updatecbstandalonejourney";
|
|
22
23
|
import { updateCBTxnStatusRequest, updateCBTxnStatusResponse } from "./customers/cb/updatecbtxnstatus";
|
|
23
24
|
import { changeMpinRequest, changeMpinResponse } from "./customers/changempin";
|
|
24
25
|
import { createCustomerReferenceRequest, createCustomerReferenceResponse } from "./customers/createcustomerreference";
|
|
@@ -45,6 +46,7 @@ import { getBasicInfoRequest, getBasicInfoResponse } from "./customers/getbasici
|
|
|
45
46
|
import { getCitiesRequest, getCitiesResponse } from "./customers/getcities";
|
|
46
47
|
import { getCompanyAccDetailsRequest, getCompanyAccDetailsResponse } from "./customers/getcompanyaccdetails";
|
|
47
48
|
import { getCustomerByIdRequest, getCustomerByIdResponse } from "./customers/getcustomerbyid";
|
|
49
|
+
import { getCustomerDetailsRequest, getCustomerDetailsResponse } from "./customers/getcustomerdetailsbymobile";
|
|
48
50
|
import { getDashboardRequest, getDashboardResponse } from "./customers/getdashboard";
|
|
49
51
|
import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./customers/getdashboardmaincard";
|
|
50
52
|
import { getDocumentsRequest, getDocumentsResponse } from "./customers/getdocuments";
|
|
@@ -960,6 +962,24 @@ export declare const customersService: {
|
|
|
960
962
|
readonly responseSerialize: (value: syncDecisionEngineResponse) => Buffer;
|
|
961
963
|
readonly responseDeserialize: (value: Buffer) => syncDecisionEngineResponse;
|
|
962
964
|
};
|
|
965
|
+
readonly updateCbStandAloneJourney: {
|
|
966
|
+
readonly path: "/service.customers/updateCbStandAloneJourney";
|
|
967
|
+
readonly requestStream: false;
|
|
968
|
+
readonly responseStream: false;
|
|
969
|
+
readonly requestSerialize: (value: updateCbStandAloneJourneyRequest) => Buffer;
|
|
970
|
+
readonly requestDeserialize: (value: Buffer) => updateCbStandAloneJourneyRequest;
|
|
971
|
+
readonly responseSerialize: (value: updateCbStandAloneJourneyResponse) => Buffer;
|
|
972
|
+
readonly responseDeserialize: (value: Buffer) => updateCbStandAloneJourneyResponse;
|
|
973
|
+
};
|
|
974
|
+
readonly getCustomerDetailsbyMobile: {
|
|
975
|
+
readonly path: "/service.customers/getCustomerDetailsbyMobile";
|
|
976
|
+
readonly requestStream: false;
|
|
977
|
+
readonly responseStream: false;
|
|
978
|
+
readonly requestSerialize: (value: getCustomerDetailsRequest) => Buffer;
|
|
979
|
+
readonly requestDeserialize: (value: Buffer) => getCustomerDetailsRequest;
|
|
980
|
+
readonly responseSerialize: (value: getCustomerDetailsResponse) => Buffer;
|
|
981
|
+
readonly responseDeserialize: (value: Buffer) => getCustomerDetailsResponse;
|
|
982
|
+
};
|
|
963
983
|
};
|
|
964
984
|
export interface customersServer extends UntypedServiceImplementation {
|
|
965
985
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -1058,6 +1078,8 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
1058
1078
|
createVaNumber: handleUnaryCall<createVaNumberRequest, createVaNumberResponse>;
|
|
1059
1079
|
deleteDocument: handleUnaryCall<deleteDocumentRequest, deleteDocumentResponse>;
|
|
1060
1080
|
syncDecisionEngine: handleUnaryCall<syncDecisionEngineRequest, syncDecisionEngineResponse>;
|
|
1081
|
+
updateCbStandAloneJourney: handleUnaryCall<updateCbStandAloneJourneyRequest, updateCbStandAloneJourneyResponse>;
|
|
1082
|
+
getCustomerDetailsbyMobile: handleUnaryCall<getCustomerDetailsRequest, getCustomerDetailsResponse>;
|
|
1061
1083
|
}
|
|
1062
1084
|
export interface customersClient extends Client {
|
|
1063
1085
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -1348,6 +1370,12 @@ export interface customersClient extends Client {
|
|
|
1348
1370
|
syncDecisionEngine(request: syncDecisionEngineRequest, callback: (error: ServiceError | null, response: syncDecisionEngineResponse) => void): ClientUnaryCall;
|
|
1349
1371
|
syncDecisionEngine(request: syncDecisionEngineRequest, metadata: Metadata, callback: (error: ServiceError | null, response: syncDecisionEngineResponse) => void): ClientUnaryCall;
|
|
1350
1372
|
syncDecisionEngine(request: syncDecisionEngineRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: syncDecisionEngineResponse) => void): ClientUnaryCall;
|
|
1373
|
+
updateCbStandAloneJourney(request: updateCbStandAloneJourneyRequest, callback: (error: ServiceError | null, response: updateCbStandAloneJourneyResponse) => void): ClientUnaryCall;
|
|
1374
|
+
updateCbStandAloneJourney(request: updateCbStandAloneJourneyRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateCbStandAloneJourneyResponse) => void): ClientUnaryCall;
|
|
1375
|
+
updateCbStandAloneJourney(request: updateCbStandAloneJourneyRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateCbStandAloneJourneyResponse) => void): ClientUnaryCall;
|
|
1376
|
+
getCustomerDetailsbyMobile(request: getCustomerDetailsRequest, callback: (error: ServiceError | null, response: getCustomerDetailsResponse) => void): ClientUnaryCall;
|
|
1377
|
+
getCustomerDetailsbyMobile(request: getCustomerDetailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getCustomerDetailsResponse) => void): ClientUnaryCall;
|
|
1378
|
+
getCustomerDetailsbyMobile(request: getCustomerDetailsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getCustomerDetailsResponse) => void): ClientUnaryCall;
|
|
1351
1379
|
}
|
|
1352
1380
|
export declare const customersClient: {
|
|
1353
1381
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -28,6 +28,7 @@ const getpaymentsummary_1 = require("./customers/cb/getpaymentsummary");
|
|
|
28
28
|
const lesscsimprove_1 = require("./customers/cb/lesscsimprove");
|
|
29
29
|
const morecsimprove_1 = require("./customers/cb/morecsimprove");
|
|
30
30
|
const savecreditbuilder_1 = require("./customers/cb/savecreditbuilder");
|
|
31
|
+
const updatecbstandalonejourney_1 = require("./customers/cb/updatecbstandalonejourney");
|
|
31
32
|
const updatecbtxnstatus_1 = require("./customers/cb/updatecbtxnstatus");
|
|
32
33
|
const changempin_1 = require("./customers/changempin");
|
|
33
34
|
const createcustomerreference_1 = require("./customers/createcustomerreference");
|
|
@@ -54,6 +55,7 @@ const getbasicinfo_1 = require("./customers/getbasicinfo");
|
|
|
54
55
|
const getcities_1 = require("./customers/getcities");
|
|
55
56
|
const getcompanyaccdetails_1 = require("./customers/getcompanyaccdetails");
|
|
56
57
|
const getcustomerbyid_1 = require("./customers/getcustomerbyid");
|
|
58
|
+
const getcustomerdetailsbymobile_1 = require("./customers/getcustomerdetailsbymobile");
|
|
57
59
|
const getdashboard_1 = require("./customers/getdashboard");
|
|
58
60
|
const getdashboardmaincard_1 = require("./customers/getdashboardmaincard");
|
|
59
61
|
const getdocuments_1 = require("./customers/getdocuments");
|
|
@@ -968,5 +970,23 @@ exports.customersService = {
|
|
|
968
970
|
responseSerialize: (value) => Buffer.from(syncdecisionengine_1.syncDecisionEngineResponse.encode(value).finish()),
|
|
969
971
|
responseDeserialize: (value) => syncdecisionengine_1.syncDecisionEngineResponse.decode(value),
|
|
970
972
|
},
|
|
973
|
+
updateCbStandAloneJourney: {
|
|
974
|
+
path: "/service.customers/updateCbStandAloneJourney",
|
|
975
|
+
requestStream: false,
|
|
976
|
+
responseStream: false,
|
|
977
|
+
requestSerialize: (value) => Buffer.from(updatecbstandalonejourney_1.updateCbStandAloneJourneyRequest.encode(value).finish()),
|
|
978
|
+
requestDeserialize: (value) => updatecbstandalonejourney_1.updateCbStandAloneJourneyRequest.decode(value),
|
|
979
|
+
responseSerialize: (value) => Buffer.from(updatecbstandalonejourney_1.updateCbStandAloneJourneyResponse.encode(value).finish()),
|
|
980
|
+
responseDeserialize: (value) => updatecbstandalonejourney_1.updateCbStandAloneJourneyResponse.decode(value),
|
|
981
|
+
},
|
|
982
|
+
getCustomerDetailsbyMobile: {
|
|
983
|
+
path: "/service.customers/getCustomerDetailsbyMobile",
|
|
984
|
+
requestStream: false,
|
|
985
|
+
responseStream: false,
|
|
986
|
+
requestSerialize: (value) => Buffer.from(getcustomerdetailsbymobile_1.getCustomerDetailsRequest.encode(value).finish()),
|
|
987
|
+
requestDeserialize: (value) => getcustomerdetailsbymobile_1.getCustomerDetailsRequest.decode(value),
|
|
988
|
+
responseSerialize: (value) => Buffer.from(getcustomerdetailsbymobile_1.getCustomerDetailsResponse.encode(value).finish()),
|
|
989
|
+
responseDeserialize: (value) => getcustomerdetailsbymobile_1.getCustomerDetailsResponse.decode(value),
|
|
990
|
+
},
|
|
971
991
|
};
|
|
972
992
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|