@stashfin/grpc 1.2.229 → 1.2.230
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/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/customers/verifyemail.js +117 -0
- package/ts/google/protobuf/timestamp.d.ts +127 -0
- package/ts/google/protobuf/timestamp.js +97 -0
- package/ts/growth/checkplanstatus.d.ts +4 -5
- package/ts/growth/checkplanstatus.js +6 -19
- package/ts/growth/getattachplandetails.d.ts +4 -5
- package/ts/growth/getattachplandetails.js +6 -19
- package/ts/growth/getchrplans.d.ts +4 -5
- package/ts/growth/getchrplans.js +6 -19
- package/ts/growth/getcredithealthreport.d.ts +30 -3
- package/ts/growth/getcredithealthreport.js +213 -35
- package/ts/growth/initiatepayment.d.ts +0 -1
- package/ts/growth/initiatepayment.js +9 -23
- package/ts/bureau/getbureaulist.d.ts +0 -52
- package/ts/bureau/getbureaulist.js +0 -276
|
@@ -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
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "growth.checkplanstatus";
|
|
3
3
|
export interface chrplansstatusrequest {
|
|
4
|
-
auth_token: string;
|
|
5
4
|
}
|
|
6
5
|
export interface planstatus {
|
|
7
6
|
planStatus: boolean;
|
|
@@ -13,12 +12,12 @@ export interface chrplanstatusresponse {
|
|
|
13
12
|
message: string;
|
|
14
13
|
}
|
|
15
14
|
export declare const chrplansstatusrequest: {
|
|
16
|
-
encode(
|
|
15
|
+
encode(_: chrplansstatusrequest, writer?: _m0.Writer): _m0.Writer;
|
|
17
16
|
decode(input: _m0.Reader | Uint8Array, length?: number): chrplansstatusrequest;
|
|
18
|
-
fromJSON(
|
|
19
|
-
toJSON(
|
|
17
|
+
fromJSON(_: any): chrplansstatusrequest;
|
|
18
|
+
toJSON(_: chrplansstatusrequest): unknown;
|
|
20
19
|
create<I extends Exact<DeepPartial<chrplansstatusrequest>, I>>(base?: I): chrplansstatusrequest;
|
|
21
|
-
fromPartial<I extends Exact<DeepPartial<chrplansstatusrequest>, I>>(
|
|
20
|
+
fromPartial<I extends Exact<DeepPartial<chrplansstatusrequest>, I>>(_: I): chrplansstatusrequest;
|
|
22
21
|
};
|
|
23
22
|
export declare const planstatus: {
|
|
24
23
|
encode(message: planstatus, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -13,13 +13,10 @@ exports.chrplanstatusresponse = exports.planstatus = exports.chrplansstatusreque
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "growth.checkplanstatus";
|
|
15
15
|
function createBasechrplansstatusrequest() {
|
|
16
|
-
return {
|
|
16
|
+
return {};
|
|
17
17
|
}
|
|
18
18
|
exports.chrplansstatusrequest = {
|
|
19
|
-
encode(
|
|
20
|
-
if (message.auth_token !== "") {
|
|
21
|
-
writer.uint32(10).string(message.auth_token);
|
|
22
|
-
}
|
|
19
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
23
20
|
return writer;
|
|
24
21
|
},
|
|
25
22
|
decode(input, length) {
|
|
@@ -29,12 +26,6 @@ exports.chrplansstatusrequest = {
|
|
|
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.auth_token = reader.string();
|
|
37
|
-
continue;
|
|
38
29
|
}
|
|
39
30
|
if ((tag & 7) === 4 || tag === 0) {
|
|
40
31
|
break;
|
|
@@ -43,22 +34,18 @@ exports.chrplansstatusrequest = {
|
|
|
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.auth_token !== "") {
|
|
52
|
-
obj.auth_token = message.auth_token;
|
|
53
|
-
}
|
|
54
42
|
return obj;
|
|
55
43
|
},
|
|
56
44
|
create(base) {
|
|
57
45
|
return exports.chrplansstatusrequest.fromPartial(base ?? {});
|
|
58
46
|
},
|
|
59
|
-
fromPartial(
|
|
47
|
+
fromPartial(_) {
|
|
60
48
|
const message = createBasechrplansstatusrequest();
|
|
61
|
-
message.auth_token = object.auth_token ?? "";
|
|
62
49
|
return message;
|
|
63
50
|
},
|
|
64
51
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "growth.getattachplandetails";
|
|
3
3
|
export interface chrattachplanrequest {
|
|
4
|
-
auth_token: string;
|
|
5
4
|
}
|
|
6
5
|
export interface plandata {
|
|
7
6
|
planId: number;
|
|
@@ -17,12 +16,12 @@ export interface chrattachplanresponse {
|
|
|
17
16
|
message: string;
|
|
18
17
|
}
|
|
19
18
|
export declare const chrattachplanrequest: {
|
|
20
|
-
encode(
|
|
19
|
+
encode(_: chrattachplanrequest, writer?: _m0.Writer): _m0.Writer;
|
|
21
20
|
decode(input: _m0.Reader | Uint8Array, length?: number): chrattachplanrequest;
|
|
22
|
-
fromJSON(
|
|
23
|
-
toJSON(
|
|
21
|
+
fromJSON(_: any): chrattachplanrequest;
|
|
22
|
+
toJSON(_: chrattachplanrequest): unknown;
|
|
24
23
|
create<I extends Exact<DeepPartial<chrattachplanrequest>, I>>(base?: I): chrattachplanrequest;
|
|
25
|
-
fromPartial<I extends Exact<DeepPartial<chrattachplanrequest>, I>>(
|
|
24
|
+
fromPartial<I extends Exact<DeepPartial<chrattachplanrequest>, I>>(_: I): chrattachplanrequest;
|
|
26
25
|
};
|
|
27
26
|
export declare const plandata: {
|
|
28
27
|
encode(message: plandata, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -13,13 +13,10 @@ exports.chrattachplanresponse = exports.plandata = exports.chrattachplanrequest
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "growth.getattachplandetails";
|
|
15
15
|
function createBasechrattachplanrequest() {
|
|
16
|
-
return {
|
|
16
|
+
return {};
|
|
17
17
|
}
|
|
18
18
|
exports.chrattachplanrequest = {
|
|
19
|
-
encode(
|
|
20
|
-
if (message.auth_token !== "") {
|
|
21
|
-
writer.uint32(10).string(message.auth_token);
|
|
22
|
-
}
|
|
19
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
23
20
|
return writer;
|
|
24
21
|
},
|
|
25
22
|
decode(input, length) {
|
|
@@ -29,12 +26,6 @@ exports.chrattachplanrequest = {
|
|
|
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.auth_token = reader.string();
|
|
37
|
-
continue;
|
|
38
29
|
}
|
|
39
30
|
if ((tag & 7) === 4 || tag === 0) {
|
|
40
31
|
break;
|
|
@@ -43,22 +34,18 @@ exports.chrattachplanrequest = {
|
|
|
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.auth_token !== "") {
|
|
52
|
-
obj.auth_token = message.auth_token;
|
|
53
|
-
}
|
|
54
42
|
return obj;
|
|
55
43
|
},
|
|
56
44
|
create(base) {
|
|
57
45
|
return exports.chrattachplanrequest.fromPartial(base ?? {});
|
|
58
46
|
},
|
|
59
|
-
fromPartial(
|
|
47
|
+
fromPartial(_) {
|
|
60
48
|
const message = createBasechrattachplanrequest();
|
|
61
|
-
message.auth_token = object.auth_token ?? "";
|
|
62
49
|
return message;
|
|
63
50
|
},
|
|
64
51
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "growth.getchrplans";
|
|
3
3
|
export interface chrplansrequest {
|
|
4
|
-
auth_token: string;
|
|
5
4
|
}
|
|
6
5
|
export interface plan {
|
|
7
6
|
id: number;
|
|
@@ -36,12 +35,12 @@ export interface chrplansresponse {
|
|
|
36
35
|
message: string;
|
|
37
36
|
}
|
|
38
37
|
export declare const chrplansrequest: {
|
|
39
|
-
encode(
|
|
38
|
+
encode(_: chrplansrequest, writer?: _m0.Writer): _m0.Writer;
|
|
40
39
|
decode(input: _m0.Reader | Uint8Array, length?: number): chrplansrequest;
|
|
41
|
-
fromJSON(
|
|
42
|
-
toJSON(
|
|
40
|
+
fromJSON(_: any): chrplansrequest;
|
|
41
|
+
toJSON(_: chrplansrequest): unknown;
|
|
43
42
|
create<I extends Exact<DeepPartial<chrplansrequest>, I>>(base?: I): chrplansrequest;
|
|
44
|
-
fromPartial<I extends Exact<DeepPartial<chrplansrequest>, I>>(
|
|
43
|
+
fromPartial<I extends Exact<DeepPartial<chrplansrequest>, I>>(_: I): chrplansrequest;
|
|
45
44
|
};
|
|
46
45
|
export declare const plan: {
|
|
47
46
|
encode(message: plan, writer?: _m0.Writer): _m0.Writer;
|
package/ts/growth/getchrplans.js
CHANGED
|
@@ -13,13 +13,10 @@ exports.chrplansresponse = exports.plandetailsdata = exports.feature = exports.p
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "growth.getchrplans";
|
|
15
15
|
function createBasechrplansrequest() {
|
|
16
|
-
return {
|
|
16
|
+
return {};
|
|
17
17
|
}
|
|
18
18
|
exports.chrplansrequest = {
|
|
19
|
-
encode(
|
|
20
|
-
if (message.auth_token !== "") {
|
|
21
|
-
writer.uint32(10).string(message.auth_token);
|
|
22
|
-
}
|
|
19
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
23
20
|
return writer;
|
|
24
21
|
},
|
|
25
22
|
decode(input, length) {
|
|
@@ -29,12 +26,6 @@ exports.chrplansrequest = {
|
|
|
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.auth_token = reader.string();
|
|
37
|
-
continue;
|
|
38
29
|
}
|
|
39
30
|
if ((tag & 7) === 4 || tag === 0) {
|
|
40
31
|
break;
|
|
@@ -43,22 +34,18 @@ exports.chrplansrequest = {
|
|
|
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.auth_token !== "") {
|
|
52
|
-
obj.auth_token = message.auth_token;
|
|
53
|
-
}
|
|
54
42
|
return obj;
|
|
55
43
|
},
|
|
56
44
|
create(base) {
|
|
57
45
|
return exports.chrplansrequest.fromPartial(base ?? {});
|
|
58
46
|
},
|
|
59
|
-
fromPartial(
|
|
47
|
+
fromPartial(_) {
|
|
60
48
|
const message = createBasechrplansrequest();
|
|
61
|
-
message.auth_token = object.auth_token ?? "";
|
|
62
49
|
return message;
|
|
63
50
|
},
|
|
64
51
|
};
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "growth.getcredithealthreport";
|
|
3
3
|
export interface credithealthreportrequest {
|
|
4
|
-
auth_token: string;
|
|
5
4
|
refresh_report: boolean;
|
|
6
5
|
}
|
|
6
|
+
export interface recommendedplan {
|
|
7
|
+
label: string;
|
|
8
|
+
benefits: string[];
|
|
9
|
+
cta_text: string;
|
|
10
|
+
amount: number;
|
|
11
|
+
plan_id: string;
|
|
12
|
+
}
|
|
13
|
+
export interface referandearn {
|
|
14
|
+
referral_amount: string;
|
|
15
|
+
}
|
|
7
16
|
export interface chrdata {
|
|
8
17
|
plan_type_text: string;
|
|
9
18
|
cibil_score: number;
|
|
@@ -13,8 +22,10 @@ export interface chrdata {
|
|
|
13
22
|
refresh_date: string;
|
|
14
23
|
refresh_enabled: number;
|
|
15
24
|
plan_subscription_id: number;
|
|
16
|
-
refer_and_earn
|
|
17
|
-
recommended_plan
|
|
25
|
+
refer_and_earn?: referandearn | undefined;
|
|
26
|
+
recommended_plan?: recommendedplan | undefined;
|
|
27
|
+
user_state: string;
|
|
28
|
+
recommended_plan_status: boolean;
|
|
18
29
|
}
|
|
19
30
|
export interface chrdatawrapper {
|
|
20
31
|
chr_data: chrdata | undefined;
|
|
@@ -33,6 +44,22 @@ export declare const credithealthreportrequest: {
|
|
|
33
44
|
create<I extends Exact<DeepPartial<credithealthreportrequest>, I>>(base?: I): credithealthreportrequest;
|
|
34
45
|
fromPartial<I extends Exact<DeepPartial<credithealthreportrequest>, I>>(object: I): credithealthreportrequest;
|
|
35
46
|
};
|
|
47
|
+
export declare const recommendedplan: {
|
|
48
|
+
encode(message: recommendedplan, writer?: _m0.Writer): _m0.Writer;
|
|
49
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): recommendedplan;
|
|
50
|
+
fromJSON(object: any): recommendedplan;
|
|
51
|
+
toJSON(message: recommendedplan): unknown;
|
|
52
|
+
create<I extends Exact<DeepPartial<recommendedplan>, I>>(base?: I): recommendedplan;
|
|
53
|
+
fromPartial<I extends Exact<DeepPartial<recommendedplan>, I>>(object: I): recommendedplan;
|
|
54
|
+
};
|
|
55
|
+
export declare const referandearn: {
|
|
56
|
+
encode(message: referandearn, writer?: _m0.Writer): _m0.Writer;
|
|
57
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): referandearn;
|
|
58
|
+
fromJSON(object: any): referandearn;
|
|
59
|
+
toJSON(message: referandearn): unknown;
|
|
60
|
+
create<I extends Exact<DeepPartial<referandearn>, I>>(base?: I): referandearn;
|
|
61
|
+
fromPartial<I extends Exact<DeepPartial<referandearn>, I>>(object: I): referandearn;
|
|
62
|
+
};
|
|
36
63
|
export declare const chrdata: {
|
|
37
64
|
encode(message: chrdata, writer?: _m0.Writer): _m0.Writer;
|
|
38
65
|
decode(input: _m0.Reader | Uint8Array, length?: number): chrdata;
|