@stashfin/grpc 1.2.408 → 1.2.410
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/enach/updatetxnstatus.d.ts +1 -4
- package/ts/customers/enach/updatetxnstatus.js +8 -64
- package/ts/customers/getrpdlink.d.ts +40 -0
- package/ts/customers/getrpdlink.js +190 -0
- package/ts/customers/sendemailtoken.d.ts +35 -0
- package/ts/customers/sendemailtoken.js +117 -0
- package/ts/customers/skipdlrcscreen.d.ts +35 -0
- package/ts/customers/skipdlrcscreen.js +117 -0
- package/ts/customers/step1.d.ts +69 -0
- package/ts/customers/step1.js +395 -0
- package/ts/customers/step10.d.ts +73 -0
- package/ts/customers/step10.js +459 -0
- package/ts/customers/step2.d.ts +68 -0
- package/ts/customers/step2.js +381 -0
- package/ts/customers/step7.d.ts +68 -0
- package/ts/customers/step7.js +381 -0
- package/ts/customers/step8.d.ts +69 -0
- package/ts/customers/step8.js +395 -0
- package/ts/customers/step9.d.ts +75 -0
- package/ts/customers/step9.js +489 -0
- package/ts/customers/stepstatic.d.ts +66 -0
- package/ts/customers/stepstatic.js +354 -0
- package/ts/customers/verifyemail.d.ts +35 -0
- package/ts/{loans/getvirtualaccountnumber.js → customers/verifyemail.js} +32 -32
- package/ts/google/protobuf/timestamp.d.ts +127 -0
- package/ts/google/protobuf/timestamp.js +97 -0
- package/ts/lamf/getloandetails.d.ts +3 -3
- package/ts/lamf/getloandetails.js +17 -15
- package/ts/lamf/submitotp.d.ts +1 -1
- package/ts/lamf/submitotp.js +5 -5
- package/ts/lamf/validateuser.d.ts +1 -1
- package/ts/lamf/validateuser.js +5 -5
- package/ts/loans/getvirtualaccountnumber.d.ts +0 -35
|
@@ -0,0 +1,97 @@
|
|
|
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: google/protobuf/timestamp.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.Timestamp = 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 = "google.protobuf";
|
|
16
|
+
function createBaseTimestamp() {
|
|
17
|
+
return { seconds: 0, nanos: 0 };
|
|
18
|
+
}
|
|
19
|
+
exports.Timestamp = {
|
|
20
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
+
if (message.seconds !== 0) {
|
|
22
|
+
writer.uint32(8).int64(message.seconds);
|
|
23
|
+
}
|
|
24
|
+
if (message.nanos !== 0) {
|
|
25
|
+
writer.uint32(16).int32(message.nanos);
|
|
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 = createBaseTimestamp();
|
|
33
|
+
while (reader.pos < end) {
|
|
34
|
+
const tag = reader.uint32();
|
|
35
|
+
switch (tag >>> 3) {
|
|
36
|
+
case 1:
|
|
37
|
+
if (tag !== 8) {
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
message.seconds = longToNumber(reader.int64());
|
|
41
|
+
continue;
|
|
42
|
+
case 2:
|
|
43
|
+
if (tag !== 16) {
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
message.nanos = reader.int32();
|
|
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
|
+
seconds: isSet(object.seconds) ? globalThis.Number(object.seconds) : 0,
|
|
59
|
+
nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0,
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
toJSON(message) {
|
|
63
|
+
const obj = {};
|
|
64
|
+
if (message.seconds !== 0) {
|
|
65
|
+
obj.seconds = Math.round(message.seconds);
|
|
66
|
+
}
|
|
67
|
+
if (message.nanos !== 0) {
|
|
68
|
+
obj.nanos = Math.round(message.nanos);
|
|
69
|
+
}
|
|
70
|
+
return obj;
|
|
71
|
+
},
|
|
72
|
+
create(base) {
|
|
73
|
+
return exports.Timestamp.fromPartial(base ?? {});
|
|
74
|
+
},
|
|
75
|
+
fromPartial(object) {
|
|
76
|
+
const message = createBaseTimestamp();
|
|
77
|
+
message.seconds = object.seconds ?? 0;
|
|
78
|
+
message.nanos = object.nanos ?? 0;
|
|
79
|
+
return message;
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
function longToNumber(long) {
|
|
83
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
84
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
85
|
+
}
|
|
86
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
87
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
88
|
+
}
|
|
89
|
+
return long.toNumber();
|
|
90
|
+
}
|
|
91
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
92
|
+
minimal_1.default.util.Long = long_1.default;
|
|
93
|
+
minimal_1.default.configure();
|
|
94
|
+
}
|
|
95
|
+
function isSet(value) {
|
|
96
|
+
return value !== null && value !== undefined;
|
|
97
|
+
}
|
|
@@ -7,8 +7,8 @@ export interface request {
|
|
|
7
7
|
}
|
|
8
8
|
export interface response {
|
|
9
9
|
statusCode?: number | undefined;
|
|
10
|
-
totatInvestedAmount
|
|
11
|
-
totalCurrentMarketValue
|
|
10
|
+
totatInvestedAmount?: number | undefined;
|
|
11
|
+
totalCurrentMarketValue?: number | undefined;
|
|
12
12
|
maxLoanAmount?: number | undefined;
|
|
13
13
|
data?: response_Data | undefined;
|
|
14
14
|
}
|
|
@@ -17,7 +17,7 @@ export interface response_Errors {
|
|
|
17
17
|
message?: string | undefined;
|
|
18
18
|
}
|
|
19
19
|
export interface response_Data {
|
|
20
|
-
reqId?:
|
|
20
|
+
reqId?: string | undefined;
|
|
21
21
|
errors: response_Errors[];
|
|
22
22
|
}
|
|
23
23
|
export declare const request: {
|
|
@@ -95,8 +95,8 @@ exports.request = {
|
|
|
95
95
|
function createBaseresponse() {
|
|
96
96
|
return {
|
|
97
97
|
statusCode: undefined,
|
|
98
|
-
totatInvestedAmount:
|
|
99
|
-
totalCurrentMarketValue:
|
|
98
|
+
totatInvestedAmount: undefined,
|
|
99
|
+
totalCurrentMarketValue: undefined,
|
|
100
100
|
maxLoanAmount: undefined,
|
|
101
101
|
data: undefined,
|
|
102
102
|
};
|
|
@@ -106,10 +106,10 @@ exports.response = {
|
|
|
106
106
|
if (message.statusCode !== undefined) {
|
|
107
107
|
writer.uint32(8).int32(message.statusCode);
|
|
108
108
|
}
|
|
109
|
-
if (message.totatInvestedAmount !==
|
|
109
|
+
if (message.totatInvestedAmount !== undefined) {
|
|
110
110
|
writer.uint32(17).double(message.totatInvestedAmount);
|
|
111
111
|
}
|
|
112
|
-
if (message.totalCurrentMarketValue !==
|
|
112
|
+
if (message.totalCurrentMarketValue !== undefined) {
|
|
113
113
|
writer.uint32(25).double(message.totalCurrentMarketValue);
|
|
114
114
|
}
|
|
115
115
|
if (message.maxLoanAmount !== undefined) {
|
|
@@ -168,10 +168,12 @@ exports.response = {
|
|
|
168
168
|
fromJSON(object) {
|
|
169
169
|
return {
|
|
170
170
|
statusCode: isSet(object.statusCode) ? globalThis.Number(object.statusCode) : undefined,
|
|
171
|
-
totatInvestedAmount: isSet(object.totatInvestedAmount)
|
|
171
|
+
totatInvestedAmount: isSet(object.totatInvestedAmount)
|
|
172
|
+
? globalThis.Number(object.totatInvestedAmount)
|
|
173
|
+
: undefined,
|
|
172
174
|
totalCurrentMarketValue: isSet(object.totalCurrentMarketValue)
|
|
173
175
|
? globalThis.Number(object.totalCurrentMarketValue)
|
|
174
|
-
:
|
|
176
|
+
: undefined,
|
|
175
177
|
maxLoanAmount: isSet(object.maxLoanAmount) ? globalThis.Number(object.maxLoanAmount) : undefined,
|
|
176
178
|
data: isSet(object.data) ? exports.response_Data.fromJSON(object.data) : undefined,
|
|
177
179
|
};
|
|
@@ -181,10 +183,10 @@ exports.response = {
|
|
|
181
183
|
if (message.statusCode !== undefined) {
|
|
182
184
|
obj.statusCode = Math.round(message.statusCode);
|
|
183
185
|
}
|
|
184
|
-
if (message.totatInvestedAmount !==
|
|
186
|
+
if (message.totatInvestedAmount !== undefined) {
|
|
185
187
|
obj.totatInvestedAmount = message.totatInvestedAmount;
|
|
186
188
|
}
|
|
187
|
-
if (message.totalCurrentMarketValue !==
|
|
189
|
+
if (message.totalCurrentMarketValue !== undefined) {
|
|
188
190
|
obj.totalCurrentMarketValue = message.totalCurrentMarketValue;
|
|
189
191
|
}
|
|
190
192
|
if (message.maxLoanAmount !== undefined) {
|
|
@@ -201,8 +203,8 @@ exports.response = {
|
|
|
201
203
|
fromPartial(object) {
|
|
202
204
|
const message = createBaseresponse();
|
|
203
205
|
message.statusCode = object.statusCode ?? undefined;
|
|
204
|
-
message.totatInvestedAmount = object.totatInvestedAmount ??
|
|
205
|
-
message.totalCurrentMarketValue = object.totalCurrentMarketValue ??
|
|
206
|
+
message.totatInvestedAmount = object.totatInvestedAmount ?? undefined;
|
|
207
|
+
message.totalCurrentMarketValue = object.totalCurrentMarketValue ?? undefined;
|
|
206
208
|
message.maxLoanAmount = object.maxLoanAmount ?? undefined;
|
|
207
209
|
message.data = (object.data !== undefined && object.data !== null)
|
|
208
210
|
? exports.response_Data.fromPartial(object.data)
|
|
@@ -282,7 +284,7 @@ function createBaseresponse_Data() {
|
|
|
282
284
|
exports.response_Data = {
|
|
283
285
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
284
286
|
if (message.reqId !== undefined) {
|
|
285
|
-
writer.uint32(
|
|
287
|
+
writer.uint32(10).string(message.reqId);
|
|
286
288
|
}
|
|
287
289
|
for (const v of message.errors) {
|
|
288
290
|
exports.response_Errors.encode(v, writer.uint32(18).fork()).ldelim();
|
|
@@ -297,10 +299,10 @@ exports.response_Data = {
|
|
|
297
299
|
const tag = reader.uint32();
|
|
298
300
|
switch (tag >>> 3) {
|
|
299
301
|
case 1:
|
|
300
|
-
if (tag !==
|
|
302
|
+
if (tag !== 10) {
|
|
301
303
|
break;
|
|
302
304
|
}
|
|
303
|
-
message.reqId = reader.
|
|
305
|
+
message.reqId = reader.string();
|
|
304
306
|
continue;
|
|
305
307
|
case 2:
|
|
306
308
|
if (tag !== 18) {
|
|
@@ -318,7 +320,7 @@ exports.response_Data = {
|
|
|
318
320
|
},
|
|
319
321
|
fromJSON(object) {
|
|
320
322
|
return {
|
|
321
|
-
reqId: isSet(object.reqId) ? globalThis.
|
|
323
|
+
reqId: isSet(object.reqId) ? globalThis.String(object.reqId) : undefined,
|
|
322
324
|
errors: globalThis.Array.isArray(object?.errors)
|
|
323
325
|
? object.errors.map((e) => exports.response_Errors.fromJSON(e))
|
|
324
326
|
: [],
|
|
@@ -327,7 +329,7 @@ exports.response_Data = {
|
|
|
327
329
|
toJSON(message) {
|
|
328
330
|
const obj = {};
|
|
329
331
|
if (message.reqId !== undefined) {
|
|
330
|
-
obj.reqId =
|
|
332
|
+
obj.reqId = message.reqId;
|
|
331
333
|
}
|
|
332
334
|
if (message.errors?.length) {
|
|
333
335
|
obj.errors = message.errors.map((e) => exports.response_Errors.toJSON(e));
|
package/ts/lamf/submitotp.d.ts
CHANGED
package/ts/lamf/submitotp.js
CHANGED
|
@@ -260,7 +260,7 @@ function createBaseresponse_Data() {
|
|
|
260
260
|
exports.response_Data = {
|
|
261
261
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
262
262
|
if (message.reqId !== undefined) {
|
|
263
|
-
writer.uint32(
|
|
263
|
+
writer.uint32(10).string(message.reqId);
|
|
264
264
|
}
|
|
265
265
|
for (const v of message.errors) {
|
|
266
266
|
exports.response_Errors.encode(v, writer.uint32(18).fork()).ldelim();
|
|
@@ -275,10 +275,10 @@ exports.response_Data = {
|
|
|
275
275
|
const tag = reader.uint32();
|
|
276
276
|
switch (tag >>> 3) {
|
|
277
277
|
case 1:
|
|
278
|
-
if (tag !==
|
|
278
|
+
if (tag !== 10) {
|
|
279
279
|
break;
|
|
280
280
|
}
|
|
281
|
-
message.reqId = reader.
|
|
281
|
+
message.reqId = reader.string();
|
|
282
282
|
continue;
|
|
283
283
|
case 2:
|
|
284
284
|
if (tag !== 18) {
|
|
@@ -296,7 +296,7 @@ exports.response_Data = {
|
|
|
296
296
|
},
|
|
297
297
|
fromJSON(object) {
|
|
298
298
|
return {
|
|
299
|
-
reqId: isSet(object.reqId) ? globalThis.
|
|
299
|
+
reqId: isSet(object.reqId) ? globalThis.String(object.reqId) : undefined,
|
|
300
300
|
errors: globalThis.Array.isArray(object?.errors)
|
|
301
301
|
? object.errors.map((e) => exports.response_Errors.fromJSON(e))
|
|
302
302
|
: [],
|
|
@@ -305,7 +305,7 @@ exports.response_Data = {
|
|
|
305
305
|
toJSON(message) {
|
|
306
306
|
const obj = {};
|
|
307
307
|
if (message.reqId !== undefined) {
|
|
308
|
-
obj.reqId =
|
|
308
|
+
obj.reqId = message.reqId;
|
|
309
309
|
}
|
|
310
310
|
if (message.errors?.length) {
|
|
311
311
|
obj.errors = message.errors.map((e) => exports.response_Errors.toJSON(e));
|
|
@@ -18,7 +18,7 @@ export interface response_Errors {
|
|
|
18
18
|
message?: string | undefined;
|
|
19
19
|
}
|
|
20
20
|
export interface response_Data {
|
|
21
|
-
reqId?:
|
|
21
|
+
reqId?: string | undefined;
|
|
22
22
|
otpRef?: string | undefined;
|
|
23
23
|
userSubjectReference?: string | undefined;
|
|
24
24
|
clientRefNo?: string | undefined;
|
package/ts/lamf/validateuser.js
CHANGED
|
@@ -303,7 +303,7 @@ function createBaseresponse_Data() {
|
|
|
303
303
|
exports.response_Data = {
|
|
304
304
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
305
305
|
if (message.reqId !== undefined) {
|
|
306
|
-
writer.uint32(
|
|
306
|
+
writer.uint32(10).string(message.reqId);
|
|
307
307
|
}
|
|
308
308
|
if (message.otpRef !== undefined) {
|
|
309
309
|
writer.uint32(18).string(message.otpRef);
|
|
@@ -330,10 +330,10 @@ exports.response_Data = {
|
|
|
330
330
|
const tag = reader.uint32();
|
|
331
331
|
switch (tag >>> 3) {
|
|
332
332
|
case 1:
|
|
333
|
-
if (tag !==
|
|
333
|
+
if (tag !== 10) {
|
|
334
334
|
break;
|
|
335
335
|
}
|
|
336
|
-
message.reqId = reader.
|
|
336
|
+
message.reqId = reader.string();
|
|
337
337
|
continue;
|
|
338
338
|
case 2:
|
|
339
339
|
if (tag !== 18) {
|
|
@@ -375,7 +375,7 @@ exports.response_Data = {
|
|
|
375
375
|
},
|
|
376
376
|
fromJSON(object) {
|
|
377
377
|
return {
|
|
378
|
-
reqId: isSet(object.reqId) ? globalThis.
|
|
378
|
+
reqId: isSet(object.reqId) ? globalThis.String(object.reqId) : undefined,
|
|
379
379
|
otpRef: isSet(object.otpRef) ? globalThis.String(object.otpRef) : undefined,
|
|
380
380
|
userSubjectReference: isSet(object.userSubjectReference)
|
|
381
381
|
? globalThis.String(object.userSubjectReference)
|
|
@@ -390,7 +390,7 @@ exports.response_Data = {
|
|
|
390
390
|
toJSON(message) {
|
|
391
391
|
const obj = {};
|
|
392
392
|
if (message.reqId !== undefined) {
|
|
393
|
-
obj.reqId =
|
|
393
|
+
obj.reqId = message.reqId;
|
|
394
394
|
}
|
|
395
395
|
if (message.otpRef !== undefined) {
|
|
396
396
|
obj.otpRef = message.otpRef;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "loans.getvirtualaccountnumber";
|
|
3
|
-
export interface getVirtualAccountNumberRequest {
|
|
4
|
-
customer_id: number;
|
|
5
|
-
}
|
|
6
|
-
export interface getVirtualAccountNumberResponse {
|
|
7
|
-
account_number: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const getVirtualAccountNumberRequest: {
|
|
10
|
-
encode(message: getVirtualAccountNumberRequest, writer?: _m0.Writer): _m0.Writer;
|
|
11
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): getVirtualAccountNumberRequest;
|
|
12
|
-
fromJSON(object: any): getVirtualAccountNumberRequest;
|
|
13
|
-
toJSON(message: getVirtualAccountNumberRequest): unknown;
|
|
14
|
-
create<I extends Exact<DeepPartial<getVirtualAccountNumberRequest>, I>>(base?: I): getVirtualAccountNumberRequest;
|
|
15
|
-
fromPartial<I extends Exact<DeepPartial<getVirtualAccountNumberRequest>, I>>(object: I): getVirtualAccountNumberRequest;
|
|
16
|
-
};
|
|
17
|
-
export declare const getVirtualAccountNumberResponse: {
|
|
18
|
-
encode(message: getVirtualAccountNumberResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): getVirtualAccountNumberResponse;
|
|
20
|
-
fromJSON(object: any): getVirtualAccountNumberResponse;
|
|
21
|
-
toJSON(message: getVirtualAccountNumberResponse): unknown;
|
|
22
|
-
create<I extends Exact<DeepPartial<getVirtualAccountNumberResponse>, I>>(base?: I): getVirtualAccountNumberResponse;
|
|
23
|
-
fromPartial<I extends Exact<DeepPartial<getVirtualAccountNumberResponse>, I>>(object: I): getVirtualAccountNumberResponse;
|
|
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 {};
|