@stashfin/grpc 1.2.677 → 1.2.679
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/eqxcustomers/creditguidance.d.ts +34 -47
- package/ts/eqxcustomers/creditguidance.js +100 -116
- package/ts/growth/getchrplans.d.ts +31 -94
- package/ts/growth/getchrplans.js +61 -566
- package/ts/growth.d.ts +9 -9
- package/ts/growth.js +4 -4
package/package.json
CHANGED
|
@@ -1,52 +1,31 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "eqxcustomers.creditguidance";
|
|
3
|
-
/**
|
|
4
|
-
export interface
|
|
5
|
-
/** The
|
|
6
|
-
description: string;
|
|
7
|
-
}
|
|
8
|
-
/** Define the CreditScenario message to hold each credit scenario */
|
|
9
|
-
export interface CreditScenario {
|
|
10
|
-
/** The category of the user (e.g., New to Credit) */
|
|
3
|
+
/** Message representing each credit guidance data. */
|
|
4
|
+
export interface CreditGuidance {
|
|
5
|
+
/** The category of the guidance */
|
|
11
6
|
category: string;
|
|
12
|
-
/** The title
|
|
7
|
+
/** The title of the guidance */
|
|
13
8
|
title: string;
|
|
14
|
-
/** A
|
|
9
|
+
/** A description of the guidance */
|
|
15
10
|
description: string;
|
|
16
|
-
/** List of
|
|
17
|
-
tips:
|
|
18
|
-
/** The goal
|
|
11
|
+
/** List of tips related to the category */
|
|
12
|
+
tips: string[];
|
|
13
|
+
/** The goal that the guidance aims to help the user achieve */
|
|
19
14
|
goal: string;
|
|
20
15
|
}
|
|
21
|
-
/**
|
|
22
|
-
export interface
|
|
23
|
-
/**
|
|
24
|
-
|
|
16
|
+
/** A map that stores guidance data by category name. */
|
|
17
|
+
export interface getCreditGuidanceResponse {
|
|
18
|
+
/** The map will have a key as string (category name) and the value as CreditGuidance. */
|
|
19
|
+
guidance: {
|
|
20
|
+
[key: string]: CreditGuidance;
|
|
21
|
+
};
|
|
25
22
|
}
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
export interface getCreditGuidanceResponse_GuidanceEntry {
|
|
24
|
+
key: string;
|
|
25
|
+
value: CreditGuidance | undefined;
|
|
28
26
|
}
|
|
29
|
-
|
|
30
|
-
export interface getCreditGuidanceResponse {
|
|
31
|
-
/** The credit guidance data */
|
|
32
|
-
credit_guidance: CreditGuidance | undefined;
|
|
27
|
+
export interface getCreditGuidanceRequest {
|
|
33
28
|
}
|
|
34
|
-
export declare const CreditTip: {
|
|
35
|
-
encode(message: CreditTip, writer?: _m0.Writer): _m0.Writer;
|
|
36
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): CreditTip;
|
|
37
|
-
fromJSON(object: any): CreditTip;
|
|
38
|
-
toJSON(message: CreditTip): unknown;
|
|
39
|
-
create<I extends Exact<DeepPartial<CreditTip>, I>>(base?: I): CreditTip;
|
|
40
|
-
fromPartial<I extends Exact<DeepPartial<CreditTip>, I>>(object: I): CreditTip;
|
|
41
|
-
};
|
|
42
|
-
export declare const CreditScenario: {
|
|
43
|
-
encode(message: CreditScenario, writer?: _m0.Writer): _m0.Writer;
|
|
44
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): CreditScenario;
|
|
45
|
-
fromJSON(object: any): CreditScenario;
|
|
46
|
-
toJSON(message: CreditScenario): unknown;
|
|
47
|
-
create<I extends Exact<DeepPartial<CreditScenario>, I>>(base?: I): CreditScenario;
|
|
48
|
-
fromPartial<I extends Exact<DeepPartial<CreditScenario>, I>>(object: I): CreditScenario;
|
|
49
|
-
};
|
|
50
29
|
export declare const CreditGuidance: {
|
|
51
30
|
encode(message: CreditGuidance, writer?: _m0.Writer): _m0.Writer;
|
|
52
31
|
decode(input: _m0.Reader | Uint8Array, length?: number): CreditGuidance;
|
|
@@ -55,14 +34,6 @@ export declare const CreditGuidance: {
|
|
|
55
34
|
create<I extends Exact<DeepPartial<CreditGuidance>, I>>(base?: I): CreditGuidance;
|
|
56
35
|
fromPartial<I extends Exact<DeepPartial<CreditGuidance>, I>>(object: I): CreditGuidance;
|
|
57
36
|
};
|
|
58
|
-
export declare const getCreditGuidanceRequest: {
|
|
59
|
-
encode(_: getCreditGuidanceRequest, writer?: _m0.Writer): _m0.Writer;
|
|
60
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): getCreditGuidanceRequest;
|
|
61
|
-
fromJSON(_: any): getCreditGuidanceRequest;
|
|
62
|
-
toJSON(_: getCreditGuidanceRequest): unknown;
|
|
63
|
-
create<I extends Exact<DeepPartial<getCreditGuidanceRequest>, I>>(base?: I): getCreditGuidanceRequest;
|
|
64
|
-
fromPartial<I extends Exact<DeepPartial<getCreditGuidanceRequest>, I>>(_: I): getCreditGuidanceRequest;
|
|
65
|
-
};
|
|
66
37
|
export declare const getCreditGuidanceResponse: {
|
|
67
38
|
encode(message: getCreditGuidanceResponse, writer?: _m0.Writer): _m0.Writer;
|
|
68
39
|
decode(input: _m0.Reader | Uint8Array, length?: number): getCreditGuidanceResponse;
|
|
@@ -71,6 +42,22 @@ export declare const getCreditGuidanceResponse: {
|
|
|
71
42
|
create<I extends Exact<DeepPartial<getCreditGuidanceResponse>, I>>(base?: I): getCreditGuidanceResponse;
|
|
72
43
|
fromPartial<I extends Exact<DeepPartial<getCreditGuidanceResponse>, I>>(object: I): getCreditGuidanceResponse;
|
|
73
44
|
};
|
|
45
|
+
export declare const getCreditGuidanceResponse_GuidanceEntry: {
|
|
46
|
+
encode(message: getCreditGuidanceResponse_GuidanceEntry, writer?: _m0.Writer): _m0.Writer;
|
|
47
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getCreditGuidanceResponse_GuidanceEntry;
|
|
48
|
+
fromJSON(object: any): getCreditGuidanceResponse_GuidanceEntry;
|
|
49
|
+
toJSON(message: getCreditGuidanceResponse_GuidanceEntry): unknown;
|
|
50
|
+
create<I extends Exact<DeepPartial<getCreditGuidanceResponse_GuidanceEntry>, I>>(base?: I): getCreditGuidanceResponse_GuidanceEntry;
|
|
51
|
+
fromPartial<I extends Exact<DeepPartial<getCreditGuidanceResponse_GuidanceEntry>, I>>(object: I): getCreditGuidanceResponse_GuidanceEntry;
|
|
52
|
+
};
|
|
53
|
+
export declare const getCreditGuidanceRequest: {
|
|
54
|
+
encode(_: getCreditGuidanceRequest, writer?: _m0.Writer): _m0.Writer;
|
|
55
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getCreditGuidanceRequest;
|
|
56
|
+
fromJSON(_: any): getCreditGuidanceRequest;
|
|
57
|
+
toJSON(_: getCreditGuidanceRequest): unknown;
|
|
58
|
+
create<I extends Exact<DeepPartial<getCreditGuidanceRequest>, I>>(base?: I): getCreditGuidanceRequest;
|
|
59
|
+
fromPartial<I extends Exact<DeepPartial<getCreditGuidanceRequest>, I>>(_: I): getCreditGuidanceRequest;
|
|
60
|
+
};
|
|
74
61
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
75
62
|
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 {} ? {
|
|
76
63
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -8,64 +8,14 @@ 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.getCreditGuidanceRequest = exports.getCreditGuidanceResponse_GuidanceEntry = exports.getCreditGuidanceResponse = exports.CreditGuidance = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "eqxcustomers.creditguidance";
|
|
15
|
-
function
|
|
16
|
-
return { description: "" };
|
|
17
|
-
}
|
|
18
|
-
exports.CreditTip = {
|
|
19
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
if (message.description !== "") {
|
|
21
|
-
writer.uint32(10).string(message.description);
|
|
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 = createBaseCreditTip();
|
|
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.description = 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 { description: isSet(object.description) ? globalThis.String(object.description) : "" };
|
|
48
|
-
},
|
|
49
|
-
toJSON(message) {
|
|
50
|
-
const obj = {};
|
|
51
|
-
if (message.description !== "") {
|
|
52
|
-
obj.description = message.description;
|
|
53
|
-
}
|
|
54
|
-
return obj;
|
|
55
|
-
},
|
|
56
|
-
create(base) {
|
|
57
|
-
return exports.CreditTip.fromPartial(base ?? {});
|
|
58
|
-
},
|
|
59
|
-
fromPartial(object) {
|
|
60
|
-
const message = createBaseCreditTip();
|
|
61
|
-
message.description = object.description ?? "";
|
|
62
|
-
return message;
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
function createBaseCreditScenario() {
|
|
15
|
+
function createBaseCreditGuidance() {
|
|
66
16
|
return { category: "", title: "", description: "", tips: [], goal: "" };
|
|
67
17
|
}
|
|
68
|
-
exports.
|
|
18
|
+
exports.CreditGuidance = {
|
|
69
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
20
|
if (message.category !== "") {
|
|
71
21
|
writer.uint32(10).string(message.category);
|
|
@@ -77,7 +27,7 @@ exports.CreditScenario = {
|
|
|
77
27
|
writer.uint32(26).string(message.description);
|
|
78
28
|
}
|
|
79
29
|
for (const v of message.tips) {
|
|
80
|
-
|
|
30
|
+
writer.uint32(34).string(v);
|
|
81
31
|
}
|
|
82
32
|
if (message.goal !== "") {
|
|
83
33
|
writer.uint32(42).string(message.goal);
|
|
@@ -87,7 +37,7 @@ exports.CreditScenario = {
|
|
|
87
37
|
decode(input, length) {
|
|
88
38
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
89
39
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
90
|
-
const message =
|
|
40
|
+
const message = createBaseCreditGuidance();
|
|
91
41
|
while (reader.pos < end) {
|
|
92
42
|
const tag = reader.uint32();
|
|
93
43
|
switch (tag >>> 3) {
|
|
@@ -113,7 +63,7 @@ exports.CreditScenario = {
|
|
|
113
63
|
if (tag !== 34) {
|
|
114
64
|
break;
|
|
115
65
|
}
|
|
116
|
-
message.tips.push(
|
|
66
|
+
message.tips.push(reader.string());
|
|
117
67
|
continue;
|
|
118
68
|
case 5:
|
|
119
69
|
if (tag !== 42) {
|
|
@@ -134,7 +84,7 @@ exports.CreditScenario = {
|
|
|
134
84
|
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
135
85
|
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
136
86
|
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
137
|
-
tips: globalThis.Array.isArray(object?.tips) ? object.tips.map((e) =>
|
|
87
|
+
tips: globalThis.Array.isArray(object?.tips) ? object.tips.map((e) => globalThis.String(e)) : [],
|
|
138
88
|
goal: isSet(object.goal) ? globalThis.String(object.goal) : "",
|
|
139
89
|
};
|
|
140
90
|
},
|
|
@@ -150,7 +100,7 @@ exports.CreditScenario = {
|
|
|
150
100
|
obj.description = message.description;
|
|
151
101
|
}
|
|
152
102
|
if (message.tips?.length) {
|
|
153
|
-
obj.tips = message.tips
|
|
103
|
+
obj.tips = message.tips;
|
|
154
104
|
}
|
|
155
105
|
if (message.goal !== "") {
|
|
156
106
|
obj.goal = message.goal;
|
|
@@ -158,32 +108,32 @@ exports.CreditScenario = {
|
|
|
158
108
|
return obj;
|
|
159
109
|
},
|
|
160
110
|
create(base) {
|
|
161
|
-
return exports.
|
|
111
|
+
return exports.CreditGuidance.fromPartial(base ?? {});
|
|
162
112
|
},
|
|
163
113
|
fromPartial(object) {
|
|
164
|
-
const message =
|
|
114
|
+
const message = createBaseCreditGuidance();
|
|
165
115
|
message.category = object.category ?? "";
|
|
166
116
|
message.title = object.title ?? "";
|
|
167
117
|
message.description = object.description ?? "";
|
|
168
|
-
message.tips = object.tips?.map((e) =>
|
|
118
|
+
message.tips = object.tips?.map((e) => e) || [];
|
|
169
119
|
message.goal = object.goal ?? "";
|
|
170
120
|
return message;
|
|
171
121
|
},
|
|
172
122
|
};
|
|
173
|
-
function
|
|
174
|
-
return {
|
|
123
|
+
function createBasegetCreditGuidanceResponse() {
|
|
124
|
+
return { guidance: {} };
|
|
175
125
|
}
|
|
176
|
-
exports.
|
|
126
|
+
exports.getCreditGuidanceResponse = {
|
|
177
127
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
178
|
-
|
|
179
|
-
exports.
|
|
180
|
-
}
|
|
128
|
+
Object.entries(message.guidance).forEach(([key, value]) => {
|
|
129
|
+
exports.getCreditGuidanceResponse_GuidanceEntry.encode({ key: key, value }, writer.uint32(10).fork()).ldelim();
|
|
130
|
+
});
|
|
181
131
|
return writer;
|
|
182
132
|
},
|
|
183
133
|
decode(input, length) {
|
|
184
134
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
185
135
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
186
|
-
const message =
|
|
136
|
+
const message = createBasegetCreditGuidanceResponse();
|
|
187
137
|
while (reader.pos < end) {
|
|
188
138
|
const tag = reader.uint32();
|
|
189
139
|
switch (tag >>> 3) {
|
|
@@ -191,7 +141,10 @@ exports.CreditGuidance = {
|
|
|
191
141
|
if (tag !== 10) {
|
|
192
142
|
break;
|
|
193
143
|
}
|
|
194
|
-
|
|
144
|
+
const entry1 = exports.getCreditGuidanceResponse_GuidanceEntry.decode(reader, reader.uint32());
|
|
145
|
+
if (entry1.value !== undefined) {
|
|
146
|
+
message.guidance[entry1.key] = entry1.value;
|
|
147
|
+
}
|
|
195
148
|
continue;
|
|
196
149
|
}
|
|
197
150
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -203,41 +156,73 @@ exports.CreditGuidance = {
|
|
|
203
156
|
},
|
|
204
157
|
fromJSON(object) {
|
|
205
158
|
return {
|
|
206
|
-
|
|
207
|
-
? object.
|
|
208
|
-
|
|
159
|
+
guidance: isObject(object.guidance)
|
|
160
|
+
? Object.entries(object.guidance).reduce((acc, [key, value]) => {
|
|
161
|
+
acc[key] = exports.CreditGuidance.fromJSON(value);
|
|
162
|
+
return acc;
|
|
163
|
+
}, {})
|
|
164
|
+
: {},
|
|
209
165
|
};
|
|
210
166
|
},
|
|
211
167
|
toJSON(message) {
|
|
212
168
|
const obj = {};
|
|
213
|
-
if (message.
|
|
214
|
-
|
|
169
|
+
if (message.guidance) {
|
|
170
|
+
const entries = Object.entries(message.guidance);
|
|
171
|
+
if (entries.length > 0) {
|
|
172
|
+
obj.guidance = {};
|
|
173
|
+
entries.forEach(([k, v]) => {
|
|
174
|
+
obj.guidance[k] = exports.CreditGuidance.toJSON(v);
|
|
175
|
+
});
|
|
176
|
+
}
|
|
215
177
|
}
|
|
216
178
|
return obj;
|
|
217
179
|
},
|
|
218
180
|
create(base) {
|
|
219
|
-
return exports.
|
|
181
|
+
return exports.getCreditGuidanceResponse.fromPartial(base ?? {});
|
|
220
182
|
},
|
|
221
183
|
fromPartial(object) {
|
|
222
|
-
const message =
|
|
223
|
-
message.
|
|
184
|
+
const message = createBasegetCreditGuidanceResponse();
|
|
185
|
+
message.guidance = Object.entries(object.guidance ?? {}).reduce((acc, [key, value]) => {
|
|
186
|
+
if (value !== undefined) {
|
|
187
|
+
acc[key] = exports.CreditGuidance.fromPartial(value);
|
|
188
|
+
}
|
|
189
|
+
return acc;
|
|
190
|
+
}, {});
|
|
224
191
|
return message;
|
|
225
192
|
},
|
|
226
193
|
};
|
|
227
|
-
function
|
|
228
|
-
return {};
|
|
194
|
+
function createBasegetCreditGuidanceResponse_GuidanceEntry() {
|
|
195
|
+
return { key: "", value: undefined };
|
|
229
196
|
}
|
|
230
|
-
exports.
|
|
231
|
-
encode(
|
|
197
|
+
exports.getCreditGuidanceResponse_GuidanceEntry = {
|
|
198
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
199
|
+
if (message.key !== "") {
|
|
200
|
+
writer.uint32(10).string(message.key);
|
|
201
|
+
}
|
|
202
|
+
if (message.value !== undefined) {
|
|
203
|
+
exports.CreditGuidance.encode(message.value, writer.uint32(18).fork()).ldelim();
|
|
204
|
+
}
|
|
232
205
|
return writer;
|
|
233
206
|
},
|
|
234
207
|
decode(input, length) {
|
|
235
208
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
236
209
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
237
|
-
const message =
|
|
210
|
+
const message = createBasegetCreditGuidanceResponse_GuidanceEntry();
|
|
238
211
|
while (reader.pos < end) {
|
|
239
212
|
const tag = reader.uint32();
|
|
240
213
|
switch (tag >>> 3) {
|
|
214
|
+
case 1:
|
|
215
|
+
if (tag !== 10) {
|
|
216
|
+
break;
|
|
217
|
+
}
|
|
218
|
+
message.key = reader.string();
|
|
219
|
+
continue;
|
|
220
|
+
case 2:
|
|
221
|
+
if (tag !== 18) {
|
|
222
|
+
break;
|
|
223
|
+
}
|
|
224
|
+
message.value = exports.CreditGuidance.decode(reader, reader.uint32());
|
|
225
|
+
continue;
|
|
241
226
|
}
|
|
242
227
|
if ((tag & 7) === 4 || tag === 0) {
|
|
243
228
|
break;
|
|
@@ -246,44 +231,48 @@ exports.getCreditGuidanceRequest = {
|
|
|
246
231
|
}
|
|
247
232
|
return message;
|
|
248
233
|
},
|
|
249
|
-
fromJSON(
|
|
250
|
-
return {
|
|
234
|
+
fromJSON(object) {
|
|
235
|
+
return {
|
|
236
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
237
|
+
value: isSet(object.value) ? exports.CreditGuidance.fromJSON(object.value) : undefined,
|
|
238
|
+
};
|
|
251
239
|
},
|
|
252
|
-
toJSON(
|
|
240
|
+
toJSON(message) {
|
|
253
241
|
const obj = {};
|
|
242
|
+
if (message.key !== "") {
|
|
243
|
+
obj.key = message.key;
|
|
244
|
+
}
|
|
245
|
+
if (message.value !== undefined) {
|
|
246
|
+
obj.value = exports.CreditGuidance.toJSON(message.value);
|
|
247
|
+
}
|
|
254
248
|
return obj;
|
|
255
249
|
},
|
|
256
250
|
create(base) {
|
|
257
|
-
return exports.
|
|
251
|
+
return exports.getCreditGuidanceResponse_GuidanceEntry.fromPartial(base ?? {});
|
|
258
252
|
},
|
|
259
|
-
fromPartial(
|
|
260
|
-
const message =
|
|
253
|
+
fromPartial(object) {
|
|
254
|
+
const message = createBasegetCreditGuidanceResponse_GuidanceEntry();
|
|
255
|
+
message.key = object.key ?? "";
|
|
256
|
+
message.value = (object.value !== undefined && object.value !== null)
|
|
257
|
+
? exports.CreditGuidance.fromPartial(object.value)
|
|
258
|
+
: undefined;
|
|
261
259
|
return message;
|
|
262
260
|
},
|
|
263
261
|
};
|
|
264
|
-
function
|
|
265
|
-
return {
|
|
262
|
+
function createBasegetCreditGuidanceRequest() {
|
|
263
|
+
return {};
|
|
266
264
|
}
|
|
267
|
-
exports.
|
|
268
|
-
encode(
|
|
269
|
-
if (message.credit_guidance !== undefined) {
|
|
270
|
-
exports.CreditGuidance.encode(message.credit_guidance, writer.uint32(10).fork()).ldelim();
|
|
271
|
-
}
|
|
265
|
+
exports.getCreditGuidanceRequest = {
|
|
266
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
272
267
|
return writer;
|
|
273
268
|
},
|
|
274
269
|
decode(input, length) {
|
|
275
270
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
276
271
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
277
|
-
const message =
|
|
272
|
+
const message = createBasegetCreditGuidanceRequest();
|
|
278
273
|
while (reader.pos < end) {
|
|
279
274
|
const tag = reader.uint32();
|
|
280
275
|
switch (tag >>> 3) {
|
|
281
|
-
case 1:
|
|
282
|
-
if (tag !== 10) {
|
|
283
|
-
break;
|
|
284
|
-
}
|
|
285
|
-
message.credit_guidance = exports.CreditGuidance.decode(reader, reader.uint32());
|
|
286
|
-
continue;
|
|
287
276
|
}
|
|
288
277
|
if ((tag & 7) === 4 || tag === 0) {
|
|
289
278
|
break;
|
|
@@ -292,29 +281,24 @@ exports.getCreditGuidanceResponse = {
|
|
|
292
281
|
}
|
|
293
282
|
return message;
|
|
294
283
|
},
|
|
295
|
-
fromJSON(
|
|
296
|
-
return {
|
|
297
|
-
credit_guidance: isSet(object.credit_guidance) ? exports.CreditGuidance.fromJSON(object.credit_guidance) : undefined,
|
|
298
|
-
};
|
|
284
|
+
fromJSON(_) {
|
|
285
|
+
return {};
|
|
299
286
|
},
|
|
300
|
-
toJSON(
|
|
287
|
+
toJSON(_) {
|
|
301
288
|
const obj = {};
|
|
302
|
-
if (message.credit_guidance !== undefined) {
|
|
303
|
-
obj.credit_guidance = exports.CreditGuidance.toJSON(message.credit_guidance);
|
|
304
|
-
}
|
|
305
289
|
return obj;
|
|
306
290
|
},
|
|
307
291
|
create(base) {
|
|
308
|
-
return exports.
|
|
292
|
+
return exports.getCreditGuidanceRequest.fromPartial(base ?? {});
|
|
309
293
|
},
|
|
310
|
-
fromPartial(
|
|
311
|
-
const message =
|
|
312
|
-
message.credit_guidance = (object.credit_guidance !== undefined && object.credit_guidance !== null)
|
|
313
|
-
? exports.CreditGuidance.fromPartial(object.credit_guidance)
|
|
314
|
-
: undefined;
|
|
294
|
+
fromPartial(_) {
|
|
295
|
+
const message = createBasegetCreditGuidanceRequest();
|
|
315
296
|
return message;
|
|
316
297
|
},
|
|
317
298
|
};
|
|
299
|
+
function isObject(value) {
|
|
300
|
+
return typeof value === "object" && value !== null;
|
|
301
|
+
}
|
|
318
302
|
function isSet(value) {
|
|
319
303
|
return value !== null && value !== undefined;
|
|
320
304
|
}
|
|
@@ -1,103 +1,40 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "growth.getchrplans";
|
|
3
|
-
export interface
|
|
3
|
+
export interface chrPlansRequest {
|
|
4
4
|
}
|
|
5
|
-
export interface
|
|
6
|
-
id: number;
|
|
7
|
-
product_type: string;
|
|
8
|
-
duration_text: string;
|
|
9
|
-
price: string;
|
|
10
|
-
discounted_price: string;
|
|
11
|
-
recommended: number;
|
|
12
|
-
}
|
|
13
|
-
export interface product {
|
|
14
|
-
id: number;
|
|
15
|
-
type: string;
|
|
16
|
-
title: string;
|
|
17
|
-
feature_ids: number[];
|
|
18
|
-
}
|
|
19
|
-
export interface feature {
|
|
20
|
-
id: number;
|
|
21
|
-
text: string;
|
|
22
|
-
}
|
|
23
|
-
export interface plandetailsdata {
|
|
24
|
-
header: string;
|
|
25
|
-
message: string;
|
|
26
|
-
recommended_plan_status: boolean;
|
|
27
|
-
recommended_plan_data: plandetailsdata_recommendedplan | undefined;
|
|
28
|
-
bureau_logo: string;
|
|
29
|
-
plans: plan[];
|
|
30
|
-
products: product[];
|
|
31
|
-
features: feature[];
|
|
32
|
-
}
|
|
33
|
-
export interface plandetailsdata_recommendedplan {
|
|
34
|
-
label: string;
|
|
35
|
-
benefits: string[];
|
|
36
|
-
cta_text: string;
|
|
37
|
-
amount: number;
|
|
5
|
+
export interface PlanData {
|
|
38
6
|
plan_id: number;
|
|
7
|
+
amount: number;
|
|
8
|
+
discount: number;
|
|
9
|
+
discounted_price: number;
|
|
10
|
+
is_active: boolean;
|
|
39
11
|
}
|
|
40
|
-
export interface
|
|
41
|
-
|
|
42
|
-
statusCode: number;
|
|
43
|
-
data: plandetailsdata | undefined;
|
|
44
|
-
message: string;
|
|
12
|
+
export interface chrPlansResponse {
|
|
13
|
+
data: PlanData[];
|
|
45
14
|
}
|
|
46
|
-
export declare const
|
|
47
|
-
encode(_:
|
|
48
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
49
|
-
fromJSON(_: any):
|
|
50
|
-
toJSON(_:
|
|
51
|
-
create<I extends Exact<DeepPartial<
|
|
52
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
53
|
-
};
|
|
54
|
-
export declare const
|
|
55
|
-
encode(message:
|
|
56
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
57
|
-
fromJSON(object: any):
|
|
58
|
-
toJSON(message:
|
|
59
|
-
create<I extends Exact<DeepPartial<
|
|
60
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
61
|
-
};
|
|
62
|
-
export declare const
|
|
63
|
-
encode(message:
|
|
64
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
65
|
-
fromJSON(object: any):
|
|
66
|
-
toJSON(message:
|
|
67
|
-
create<I extends Exact<DeepPartial<
|
|
68
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
69
|
-
};
|
|
70
|
-
export declare const feature: {
|
|
71
|
-
encode(message: feature, writer?: _m0.Writer): _m0.Writer;
|
|
72
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): feature;
|
|
73
|
-
fromJSON(object: any): feature;
|
|
74
|
-
toJSON(message: feature): unknown;
|
|
75
|
-
create<I extends Exact<DeepPartial<feature>, I>>(base?: I): feature;
|
|
76
|
-
fromPartial<I extends Exact<DeepPartial<feature>, I>>(object: I): feature;
|
|
77
|
-
};
|
|
78
|
-
export declare const plandetailsdata: {
|
|
79
|
-
encode(message: plandetailsdata, writer?: _m0.Writer): _m0.Writer;
|
|
80
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): plandetailsdata;
|
|
81
|
-
fromJSON(object: any): plandetailsdata;
|
|
82
|
-
toJSON(message: plandetailsdata): unknown;
|
|
83
|
-
create<I extends Exact<DeepPartial<plandetailsdata>, I>>(base?: I): plandetailsdata;
|
|
84
|
-
fromPartial<I extends Exact<DeepPartial<plandetailsdata>, I>>(object: I): plandetailsdata;
|
|
85
|
-
};
|
|
86
|
-
export declare const plandetailsdata_recommendedplan: {
|
|
87
|
-
encode(message: plandetailsdata_recommendedplan, writer?: _m0.Writer): _m0.Writer;
|
|
88
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): plandetailsdata_recommendedplan;
|
|
89
|
-
fromJSON(object: any): plandetailsdata_recommendedplan;
|
|
90
|
-
toJSON(message: plandetailsdata_recommendedplan): unknown;
|
|
91
|
-
create<I extends Exact<DeepPartial<plandetailsdata_recommendedplan>, I>>(base?: I): plandetailsdata_recommendedplan;
|
|
92
|
-
fromPartial<I extends Exact<DeepPartial<plandetailsdata_recommendedplan>, I>>(object: I): plandetailsdata_recommendedplan;
|
|
93
|
-
};
|
|
94
|
-
export declare const chrplansresponse: {
|
|
95
|
-
encode(message: chrplansresponse, writer?: _m0.Writer): _m0.Writer;
|
|
96
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): chrplansresponse;
|
|
97
|
-
fromJSON(object: any): chrplansresponse;
|
|
98
|
-
toJSON(message: chrplansresponse): unknown;
|
|
99
|
-
create<I extends Exact<DeepPartial<chrplansresponse>, I>>(base?: I): chrplansresponse;
|
|
100
|
-
fromPartial<I extends Exact<DeepPartial<chrplansresponse>, I>>(object: I): chrplansresponse;
|
|
15
|
+
export declare const chrPlansRequest: {
|
|
16
|
+
encode(_: chrPlansRequest, writer?: _m0.Writer): _m0.Writer;
|
|
17
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): chrPlansRequest;
|
|
18
|
+
fromJSON(_: any): chrPlansRequest;
|
|
19
|
+
toJSON(_: chrPlansRequest): unknown;
|
|
20
|
+
create<I extends Exact<DeepPartial<chrPlansRequest>, I>>(base?: I): chrPlansRequest;
|
|
21
|
+
fromPartial<I extends Exact<DeepPartial<chrPlansRequest>, I>>(_: I): chrPlansRequest;
|
|
22
|
+
};
|
|
23
|
+
export declare const PlanData: {
|
|
24
|
+
encode(message: PlanData, writer?: _m0.Writer): _m0.Writer;
|
|
25
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PlanData;
|
|
26
|
+
fromJSON(object: any): PlanData;
|
|
27
|
+
toJSON(message: PlanData): unknown;
|
|
28
|
+
create<I extends Exact<DeepPartial<PlanData>, I>>(base?: I): PlanData;
|
|
29
|
+
fromPartial<I extends Exact<DeepPartial<PlanData>, I>>(object: I): PlanData;
|
|
30
|
+
};
|
|
31
|
+
export declare const chrPlansResponse: {
|
|
32
|
+
encode(message: chrPlansResponse, writer?: _m0.Writer): _m0.Writer;
|
|
33
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): chrPlansResponse;
|
|
34
|
+
fromJSON(object: any): chrPlansResponse;
|
|
35
|
+
toJSON(message: chrPlansResponse): unknown;
|
|
36
|
+
create<I extends Exact<DeepPartial<chrPlansResponse>, I>>(base?: I): chrPlansResponse;
|
|
37
|
+
fromPartial<I extends Exact<DeepPartial<chrPlansResponse>, I>>(object: I): chrPlansResponse;
|
|
101
38
|
};
|
|
102
39
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
103
40
|
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 {} ? {
|