@experian-ecs/connected-api-sdk 1.0.1
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/LICENSE.md +12 -0
- package/LICENSE.txt +12 -0
- package/README.md +606 -0
- package/dist/esm/index.mjs +809 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/index.d.ts +1364 -0
- package/dist/umd/index.umd.js +16 -0
- package/dist/umd/index.umd.js.map +1 -0
- package/package.json +92 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,1364 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* Copyright © 2025 EXPERIAN. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* This code is provided for inclusion in a website and is intended solely for execution by end
|
|
6
|
+
* users in web browsers or on an application server. Unauthorized modification, redistribution, or any other use is prohibited. This
|
|
7
|
+
* notice should be included with any use of this code.
|
|
8
|
+
*
|
|
9
|
+
* THIS CODE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
|
|
10
|
+
* BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
|
11
|
+
* IN NO EVENT SHALL CSIDENTITY CORPORATION OR ITS AFFILIATES BE LIABLE FOR ANY CLAIM, DAMAGES, OR
|
|
12
|
+
* OTHER LIABILITY ARISING FROM OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS CODE.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
type ConnectedSolutionsAPIErrorData = {
|
|
16
|
+
dev_url: string;
|
|
17
|
+
code: string;
|
|
18
|
+
message: string;
|
|
19
|
+
};
|
|
20
|
+
type ConnectedSolutionsSDKErrorTypes = 'api_error' | 'auth_error' | 'sdk_error' | 'unknown_error';
|
|
21
|
+
type ConnectedSolutionsClientRawError = {
|
|
22
|
+
message: string;
|
|
23
|
+
type: ConnectedSolutionsSDKErrorTypes;
|
|
24
|
+
status?: number;
|
|
25
|
+
data?: ConnectedSolutionsAPIErrorData;
|
|
26
|
+
};
|
|
27
|
+
declare function generateError(rawError: ConnectedSolutionsClientRawError): ConnectedSolutionsClientApiError | ConnectedSolutionsClientAuthError | ConnectedSolutionsClientSDKError | ConnectedSolutionsClientUnknownError;
|
|
28
|
+
declare class ConnectedSolutionsClientError extends Error {
|
|
29
|
+
readonly message: string;
|
|
30
|
+
readonly data?: ConnectedSolutionsAPIErrorData;
|
|
31
|
+
readonly status?: number;
|
|
32
|
+
constructor(raw: ConnectedSolutionsClientRawError);
|
|
33
|
+
static generateError: typeof generateError;
|
|
34
|
+
}
|
|
35
|
+
declare class ConnectedSolutionsClientApiError extends ConnectedSolutionsClientError {
|
|
36
|
+
constructor(args: ConnectedSolutionsClientRawError);
|
|
37
|
+
}
|
|
38
|
+
declare class ConnectedSolutionsClientAuthError extends ConnectedSolutionsClientError {
|
|
39
|
+
constructor(args: ConnectedSolutionsClientRawError);
|
|
40
|
+
}
|
|
41
|
+
declare class ConnectedSolutionsClientUnknownError extends ConnectedSolutionsClientError {
|
|
42
|
+
constructor(args: ConnectedSolutionsClientRawError);
|
|
43
|
+
}
|
|
44
|
+
declare class ConnectedSolutionsClientSDKError extends ConnectedSolutionsClientError {
|
|
45
|
+
constructor(args: ConnectedSolutionsClientRawError);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
type Entitlements = {
|
|
49
|
+
items: Entitlement[];
|
|
50
|
+
};
|
|
51
|
+
type Entitlement = {
|
|
52
|
+
id: string;
|
|
53
|
+
customer_id: string;
|
|
54
|
+
name: string;
|
|
55
|
+
description: string;
|
|
56
|
+
available_at: string;
|
|
57
|
+
entitled_products: EntitledProduct[];
|
|
58
|
+
created_at: string;
|
|
59
|
+
updated_at: string;
|
|
60
|
+
};
|
|
61
|
+
type EntitledProductStatus = 'ENTITLED' | 'ACTIVATED' | 'DEACTIVATED' | 'ACTIVATION_PENDING' | 'ACTIVATION_FAILED' | 'ACTIVATION_DROPPED';
|
|
62
|
+
type EntitledProduct = {
|
|
63
|
+
id: EntitlementId;
|
|
64
|
+
global_product_id: GlobalProductId;
|
|
65
|
+
name: string;
|
|
66
|
+
description: string;
|
|
67
|
+
status: EntitledProductStatus;
|
|
68
|
+
status_updated_at: string;
|
|
69
|
+
type: string;
|
|
70
|
+
entitled_at: string;
|
|
71
|
+
next_action?: EntitlementNextAction;
|
|
72
|
+
};
|
|
73
|
+
type ActivationRule = {
|
|
74
|
+
rule_type: string;
|
|
75
|
+
missing_elements: string[];
|
|
76
|
+
dependency: string[];
|
|
77
|
+
};
|
|
78
|
+
type EntitlementNextAction = {
|
|
79
|
+
complete_activation_rules: {
|
|
80
|
+
rules: ActivationRule[];
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
type EntitleCustomerResponse = {
|
|
84
|
+
product: {
|
|
85
|
+
id: ProductConfigId;
|
|
86
|
+
name: string;
|
|
87
|
+
description: string;
|
|
88
|
+
category: string | null;
|
|
89
|
+
type: string | null;
|
|
90
|
+
};
|
|
91
|
+
entitled_at: string;
|
|
92
|
+
};
|
|
93
|
+
interface ProductEligibility {
|
|
94
|
+
id: ProductConfigId;
|
|
95
|
+
on_demand_eligibility: OnDemandEligibility;
|
|
96
|
+
}
|
|
97
|
+
type ProductDeliveryCadence = 'DAILY' | 'WEEKLY' | 'BI_WEEKLY' | 'MONTHLY' | 'QUARTERLY' | 'YEARLY';
|
|
98
|
+
interface OnDemandEligibility {
|
|
99
|
+
last_received_at: string;
|
|
100
|
+
next_available_at: string;
|
|
101
|
+
cadence: ProductDeliveryCadence;
|
|
102
|
+
eligible: boolean;
|
|
103
|
+
usage_count: number;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* @example "ent_01GDJY5HNM4A68S8RFZ14DX35W"
|
|
107
|
+
*/
|
|
108
|
+
type EntitlementId = string;
|
|
109
|
+
/**
|
|
110
|
+
* @example "cus_01GDJXZ7J6H3D4YCE56C64C9EA"
|
|
111
|
+
*/
|
|
112
|
+
type CustomerId = string;
|
|
113
|
+
/**
|
|
114
|
+
* @example "procfg_01GDJY6T7JZCPQWWSFNDT3B77C"
|
|
115
|
+
*/
|
|
116
|
+
type ProductConfigId = string;
|
|
117
|
+
/**
|
|
118
|
+
* @example "pro_01GDJY6T7JZCPQWWSFNDT3B77C"
|
|
119
|
+
*/
|
|
120
|
+
type GlobalProductId = string;
|
|
121
|
+
|
|
122
|
+
declare class EntitlementsService extends ApiClient {
|
|
123
|
+
#private;
|
|
124
|
+
constructor(config: ConnectedSolutionsSDKConfig);
|
|
125
|
+
getEntitlements(requestOptions: {
|
|
126
|
+
customer_id: string;
|
|
127
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<Entitlements>>;
|
|
128
|
+
getEntitlementById({ entitlement_id }: {
|
|
129
|
+
entitlement_id: string;
|
|
130
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<Entitlement>>;
|
|
131
|
+
createEntitlement(requestOptions: {
|
|
132
|
+
name: string;
|
|
133
|
+
description: string;
|
|
134
|
+
product_config_ids: string[];
|
|
135
|
+
customer_id: string;
|
|
136
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<Entitlement>>;
|
|
137
|
+
updateEntitlement(requestOptions: {
|
|
138
|
+
entitlement_id: string;
|
|
139
|
+
product_config_ids: string[];
|
|
140
|
+
customer_id: string;
|
|
141
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<Entitlement>>;
|
|
142
|
+
deleteEntitlement({ entitlement_id }: {
|
|
143
|
+
entitlement_id: string;
|
|
144
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse>;
|
|
145
|
+
activateEntitlement({ entitlement_id }: {
|
|
146
|
+
entitlement_id: string;
|
|
147
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<Entitlement>>;
|
|
148
|
+
entitleCustomerToNewProduct(requestOptions: {
|
|
149
|
+
product_config_id: string;
|
|
150
|
+
entitlement_id: string;
|
|
151
|
+
customer_id: string;
|
|
152
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<EntitleCustomerResponse>>;
|
|
153
|
+
activateProduct(requestOptions: {
|
|
154
|
+
product_config_id: string;
|
|
155
|
+
entitlement_id: string;
|
|
156
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<Entitlement>>;
|
|
157
|
+
getProductEligibility(requestOptions: {
|
|
158
|
+
product_config_id: string;
|
|
159
|
+
customer_id: string;
|
|
160
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<ProductEligibility>>;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
interface CreditScore {
|
|
164
|
+
score_id: string;
|
|
165
|
+
bureau: Bureau;
|
|
166
|
+
score_model: ScoreModel;
|
|
167
|
+
score_range: ScoreRange;
|
|
168
|
+
score_change: number;
|
|
169
|
+
score: number;
|
|
170
|
+
score_rating: ScoreRating;
|
|
171
|
+
score_date: string;
|
|
172
|
+
frequency: ScoreUpdateFrequency;
|
|
173
|
+
next_score_date: string;
|
|
174
|
+
credit_score_factor: CreditScoreFactor;
|
|
175
|
+
score_ingredients?: ScoreIngredient[];
|
|
176
|
+
}
|
|
177
|
+
type Bureau = 'EXPERIAN' | 'EQUIFAX' | 'TRANSUNION';
|
|
178
|
+
type ScoreModelVersion = 'FICO8' | 'VANTAGE30' | 'FICO9' | 'FICO3' | 'FICOMORTGAGE2' | 'FICOBANKCARD2' | 'FICOBANKCARD8' | 'FICOBANKCARD9' | 'FICOAUTO2' | 'FICOAUTO8' | 'FICOAUTO9' | 'VANTAGE20';
|
|
179
|
+
interface ScoreModel {
|
|
180
|
+
min: number;
|
|
181
|
+
max: number;
|
|
182
|
+
disclosure: {
|
|
183
|
+
short_form: string;
|
|
184
|
+
long_form: string;
|
|
185
|
+
};
|
|
186
|
+
version: ScoreModelVersion;
|
|
187
|
+
ranges: ScoreRange[];
|
|
188
|
+
}
|
|
189
|
+
interface ScoreRange {
|
|
190
|
+
start: number;
|
|
191
|
+
end: number;
|
|
192
|
+
rating: ScoreRating;
|
|
193
|
+
fill?: string;
|
|
194
|
+
}
|
|
195
|
+
type ScoreRating = 'Very Poor' | 'Poor' | 'Fair' | 'Good' | 'Very Good' | 'Excellent' | 'Exceptional';
|
|
196
|
+
interface ScoreUpdateFrequency {
|
|
197
|
+
schedule: 'ONDEMAND' | 'ONSCHEDULE';
|
|
198
|
+
time_period: 'MONTHLY' | 'YEARLY' | 'WEEKLY' | 'DAILY' | 'SEMI-ANNUALLY' | 'ANNUALLY';
|
|
199
|
+
number_of_units_allowed: number;
|
|
200
|
+
}
|
|
201
|
+
interface CreditScoreFactor {
|
|
202
|
+
factors: ScoreFactor[] | null;
|
|
203
|
+
}
|
|
204
|
+
interface ScoreFactor {
|
|
205
|
+
code: string;
|
|
206
|
+
short_copy: string;
|
|
207
|
+
long_copy: string;
|
|
208
|
+
is_positive: boolean | null;
|
|
209
|
+
}
|
|
210
|
+
interface CreditScoreIngredient {
|
|
211
|
+
ingredientType: ScoreIngredientType;
|
|
212
|
+
bureau: Bureau;
|
|
213
|
+
}
|
|
214
|
+
interface ScoreIngredient {
|
|
215
|
+
rating_name: ScoreRating;
|
|
216
|
+
ingredient_type: ScoreIngredientType;
|
|
217
|
+
impact: ScoreIngredientImpact;
|
|
218
|
+
description: string;
|
|
219
|
+
help_text: string;
|
|
220
|
+
attributes: ScoreIngredientAttribute[];
|
|
221
|
+
}
|
|
222
|
+
type ScoreIngredientType = 'payment_history' | 'amount_of_debt' | 'credit_history_length' | 'amount_of_new_credit' | 'credit_mix';
|
|
223
|
+
type ScoreIngredientImpact = '35%' | '30%' | '15%' | '10%';
|
|
224
|
+
interface ScoreIngredientAttribute {
|
|
225
|
+
attribute_type: string;
|
|
226
|
+
display_name: string;
|
|
227
|
+
description: string;
|
|
228
|
+
help_text: string;
|
|
229
|
+
value: string;
|
|
230
|
+
value_type: ScoreIngredientAttributeValueType;
|
|
231
|
+
sub_value_type?: ScoreIngredientAttributeSubValueType;
|
|
232
|
+
}
|
|
233
|
+
type ScoreIngredientAttributeValueType = 'Integer' | 'String' | 'Percentage';
|
|
234
|
+
type ScoreIngredientAttributeSubValueType = 'months' | 'years' | 'days' | 'amount';
|
|
235
|
+
interface CreditScorePostRequest {
|
|
236
|
+
product_config_id: string;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
type CreditScoreSimulator = FicoScoreSimulator | VantageScoreSimulator;
|
|
240
|
+
type Scenario = FicoScenario | VantageScenario;
|
|
241
|
+
type ScenarioVariation = VantageScenarioVariation | FicoScenarioVariation;
|
|
242
|
+
type FicoScoreSimulator = {
|
|
243
|
+
bureau: Bureau;
|
|
244
|
+
score_date: string;
|
|
245
|
+
best_action: string;
|
|
246
|
+
score_model: ScoreModelVersion;
|
|
247
|
+
current_score: number;
|
|
248
|
+
current_score_rating: ScoreRating;
|
|
249
|
+
simulations: FicoScenario[];
|
|
250
|
+
};
|
|
251
|
+
type FicoScenario = {
|
|
252
|
+
category: SimulationCategoryType;
|
|
253
|
+
scenario: string;
|
|
254
|
+
title: string;
|
|
255
|
+
display_name: string;
|
|
256
|
+
description: string;
|
|
257
|
+
variations: FicoScenarioVariation[];
|
|
258
|
+
};
|
|
259
|
+
type VantageScoreSimulator = {
|
|
260
|
+
bureau: Bureau;
|
|
261
|
+
score_model: ScoreModelVersion;
|
|
262
|
+
current_score: number;
|
|
263
|
+
current_score_rating: ScoreRating;
|
|
264
|
+
simulations: VantageScenario[];
|
|
265
|
+
};
|
|
266
|
+
type VantageScenario = {
|
|
267
|
+
category: SimulationCategoryType;
|
|
268
|
+
scenario: string;
|
|
269
|
+
simulated_score: number;
|
|
270
|
+
score_impact: number;
|
|
271
|
+
impact: ImpactType;
|
|
272
|
+
value: number;
|
|
273
|
+
title: string;
|
|
274
|
+
display_name: string;
|
|
275
|
+
description: string;
|
|
276
|
+
simulation_error_code: number;
|
|
277
|
+
simulation_error: string;
|
|
278
|
+
variations: VantageScenarioVariation[];
|
|
279
|
+
};
|
|
280
|
+
type VantageScenarioVariation = {
|
|
281
|
+
value: number;
|
|
282
|
+
simulated_score: number;
|
|
283
|
+
simulated_score_rating: ScoreRating;
|
|
284
|
+
score_impact: number;
|
|
285
|
+
impact: ImpactType;
|
|
286
|
+
simulation_error_code: number;
|
|
287
|
+
simulation_error: string;
|
|
288
|
+
};
|
|
289
|
+
type FicoScenarioVariation = {
|
|
290
|
+
name: 'limit' | 'months' | 'amount' | 'date_opened' | 'balance_amount' | 'medical_flag' | 'I_MTG' | 'I_AUT' | 'I_STU' | 'I_OTH';
|
|
291
|
+
slider_min_value: number;
|
|
292
|
+
slider_max_value: number;
|
|
293
|
+
value: number;
|
|
294
|
+
};
|
|
295
|
+
type SimulationCategoryType = 'GENERAL_CREDIT' | 'REVOLVING_CREDIT' | 'MORTGAGE_ACCOUNTS' | 'INSTALLMENT_ACCOUNTS' | 'MAKING_PAYMENTS' | 'NEW_ACCOUNTS' | 'NEGATIVE_ACTIONS';
|
|
296
|
+
type ImpactType = 'positive' | 'negative';
|
|
297
|
+
interface CreditScoreSimulatorPostRequest {
|
|
298
|
+
scenario: string;
|
|
299
|
+
variations: FicoScenarioVariation[];
|
|
300
|
+
}
|
|
301
|
+
interface CreditScoreSimulatorPostResponse {
|
|
302
|
+
simulated_score: number;
|
|
303
|
+
simulated_score_rating: ScoreRating;
|
|
304
|
+
score_impact: number;
|
|
305
|
+
impact: ImpactType;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
declare class CreditScoreSimulatorService extends ApiClient {
|
|
309
|
+
#private;
|
|
310
|
+
constructor(config: ConnectedSolutionsSDKConfig);
|
|
311
|
+
getSimulations(requestOptions: {
|
|
312
|
+
product_config_id: string;
|
|
313
|
+
run_all?: boolean;
|
|
314
|
+
cateogory?: SimulationCategoryType;
|
|
315
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<CreditScoreSimulator>>;
|
|
316
|
+
simulateScenario(requestOptions: CreditScoreSimulatorPostRequest & {
|
|
317
|
+
product_config_id: string;
|
|
318
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<CreditScoreSimulatorPostResponse>>;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
type MappedScoreModelVersion = {
|
|
322
|
+
[key in ScoreModelVersion]: key;
|
|
323
|
+
};
|
|
324
|
+
type FicoScoreModelVersion = MappedScoreModelVersion['FICO3'] | MappedScoreModelVersion['FICO8'] | MappedScoreModelVersion['FICO9'] | MappedScoreModelVersion['FICOBANKCARD2'] | MappedScoreModelVersion['FICOBANKCARD8'] | MappedScoreModelVersion['FICOBANKCARD9'] | MappedScoreModelVersion['FICOAUTO2'] | MappedScoreModelVersion['FICOAUTO8'] | MappedScoreModelVersion['FICOAUTO9'] | MappedScoreModelVersion['FICOMORTGAGE2'];
|
|
325
|
+
type VantageScoreModelVersion = MappedScoreModelVersion['VANTAGE20'] | MappedScoreModelVersion['VANTAGE30'];
|
|
326
|
+
type PlanSetProgressStatus = 'OFF_TRACK' | 'ON_TRACK' | 'TARGET_SCORE_AND_PLAN_SET';
|
|
327
|
+
type PlanNotSetProgressStatus = 'TARGET_SCORE_AND_PLAN_NOT_SET';
|
|
328
|
+
type PlanCompletedProgressStatus = 'TARGET_NOT_MET' | 'COMPLETED';
|
|
329
|
+
type BaseCreditScorePlan<ScoreModelType, ProgressStatusType, ScorePlanType> = {
|
|
330
|
+
score: number;
|
|
331
|
+
score_date: string;
|
|
332
|
+
minimum_attainable_score: number;
|
|
333
|
+
maximum_attainable_score: number;
|
|
334
|
+
score_model: ScoreModelType;
|
|
335
|
+
progress_status: ProgressStatusType;
|
|
336
|
+
score_plan: ScorePlanType;
|
|
337
|
+
};
|
|
338
|
+
type FicoCreditScorePlanNotSet = BaseCreditScorePlan<FicoScoreModelVersion, PlanNotSetProgressStatus, null>;
|
|
339
|
+
type FicoCreditScorePlanSet = BaseCreditScorePlan<FicoScoreModelVersion, PlanSetProgressStatus, FicoScorePlanSet>;
|
|
340
|
+
type FicoCreditScorePlanCompleted = BaseCreditScorePlan<FicoScoreModelVersion, PlanCompletedProgressStatus, FicoScorePlanCompleted>;
|
|
341
|
+
type VantageCreditScorePlanNotSet = BaseCreditScorePlan<VantageScoreModelVersion, PlanNotSetProgressStatus, null>;
|
|
342
|
+
type VantageCreditScorePlanSet = BaseCreditScorePlan<VantageScoreModelVersion, PlanSetProgressStatus, VantageScorePlanSet>;
|
|
343
|
+
type VantageCreditScorePlanCompleted = BaseCreditScorePlan<VantageScoreModelVersion, PlanCompletedProgressStatus, VantageScorePlanCompleted>;
|
|
344
|
+
type FicoCreditScorePlan = FicoCreditScorePlanNotSet | FicoCreditScorePlanSet | FicoCreditScorePlanCompleted;
|
|
345
|
+
type VantageCreditScorePlan = VantageCreditScorePlanNotSet | VantageCreditScorePlanSet | VantageCreditScorePlanCompleted;
|
|
346
|
+
type CreditScorePlan = FicoCreditScorePlan | VantageCreditScorePlan;
|
|
347
|
+
type Action = {
|
|
348
|
+
code: string;
|
|
349
|
+
text: string;
|
|
350
|
+
additional_text?: string;
|
|
351
|
+
};
|
|
352
|
+
interface VantageStatement {
|
|
353
|
+
actions: Action[];
|
|
354
|
+
}
|
|
355
|
+
interface FicoStatement extends VantageStatement {
|
|
356
|
+
code: string;
|
|
357
|
+
text: string;
|
|
358
|
+
}
|
|
359
|
+
interface FicoScorePlanRevisionsRequest {
|
|
360
|
+
target_score: number;
|
|
361
|
+
}
|
|
362
|
+
interface VantageScorePlanRevisionsRequest {
|
|
363
|
+
max_actions_per_plan: number;
|
|
364
|
+
}
|
|
365
|
+
type ScorePlanRevisionsRequest = FicoScorePlanRevisionsRequest | VantageScorePlanRevisionsRequest;
|
|
366
|
+
type BaseScorePlanRevision<StatementType, ScoreModelType> = {
|
|
367
|
+
original_score: number;
|
|
368
|
+
target_score: number;
|
|
369
|
+
target_duration: '3' | '6' | '9' | '12';
|
|
370
|
+
statement: StatementType;
|
|
371
|
+
score_model: ScoreModelType;
|
|
372
|
+
};
|
|
373
|
+
type FicoScorePlanRevision = BaseScorePlanRevision<FicoStatement, FicoScoreModelVersion>;
|
|
374
|
+
type VantageScorePlanRevision = BaseScorePlanRevision<VantageStatement, VantageScoreModelVersion>;
|
|
375
|
+
type ScorePlanRevision = FicoScorePlanRevision | VantageScorePlanRevision;
|
|
376
|
+
type BaseScorePlanCreateResponse<ScorePlanRevisionType> = ScorePlanRevisionType & {
|
|
377
|
+
start_date: string;
|
|
378
|
+
};
|
|
379
|
+
type FicoScorePlanCreateResponse = BaseScorePlanCreateResponse<FicoScorePlanRevision>;
|
|
380
|
+
type VantageScorePlanCreateResponse = BaseScorePlanCreateResponse<VantageScorePlanRevision>;
|
|
381
|
+
type ScorePlanCreateResponse = FicoScorePlanCreateResponse | VantageScorePlanCreateResponse;
|
|
382
|
+
type BaseScorePlanSet<ScorePlanCreateResponseType> = ScorePlanCreateResponseType & {
|
|
383
|
+
score_change: number;
|
|
384
|
+
remaining_days: number;
|
|
385
|
+
end_date: string;
|
|
386
|
+
};
|
|
387
|
+
type FicoScorePlanSet = BaseScorePlanSet<FicoScorePlanCreateResponse>;
|
|
388
|
+
type VantageScorePlanSet = BaseScorePlanSet<VantageScorePlanCreateResponse>;
|
|
389
|
+
type ScorePlanSet = FicoScorePlanSet | VantageScorePlanSet;
|
|
390
|
+
type BaseScorePlanCompleted<ScorePlanSetType> = ScorePlanSetType & {
|
|
391
|
+
target_met_date: string;
|
|
392
|
+
};
|
|
393
|
+
type FicoScorePlanCompleted = BaseScorePlanCompleted<FicoScorePlanSet>;
|
|
394
|
+
type VantageScorePlanCompleted = BaseScorePlanCompleted<VantageScorePlanSet>;
|
|
395
|
+
type ScorePlanCompleted = FicoScorePlanCompleted | VantageScorePlanCompleted;
|
|
396
|
+
|
|
397
|
+
declare class CreditScorePlannerService extends ApiClient {
|
|
398
|
+
#private;
|
|
399
|
+
constructor(config: ConnectedSolutionsSDKConfig);
|
|
400
|
+
getCreditScorePlan(requestOptions: {
|
|
401
|
+
product_config_id: string;
|
|
402
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<CreditScorePlan>>;
|
|
403
|
+
createCreditScorePlan(requestOptions: ScorePlanRevision & {
|
|
404
|
+
product_config_id: string;
|
|
405
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<ScorePlanCreateResponse>>;
|
|
406
|
+
deleteCreditScorePlan(requestOptions: {
|
|
407
|
+
product_config_id: string;
|
|
408
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<void>>;
|
|
409
|
+
getCreditScorePlanRevisions(requestOptions: ScorePlanRevisionsRequest & {
|
|
410
|
+
product_config_id: string;
|
|
411
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<ScorePlanRevision[]>>;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
interface CreditAttributes {
|
|
415
|
+
bureau: Bureau;
|
|
416
|
+
reported_at: string;
|
|
417
|
+
categories: CreditAttributeCategory[];
|
|
418
|
+
attributes: CreditAttribute[];
|
|
419
|
+
}
|
|
420
|
+
interface CreditAttributeCategory {
|
|
421
|
+
name: AttributeCategoryName;
|
|
422
|
+
primary_attribute_name: string;
|
|
423
|
+
primary_attribute_rating: AttributeCategoryRating;
|
|
424
|
+
related_attribute_names: string[];
|
|
425
|
+
impact: AttributeCategoryImpact;
|
|
426
|
+
relevant_score_factors: AttributeRelevantScoreFactor[];
|
|
427
|
+
high_credit_utilization_accounts?: AttributeHighCreditUtilizationAccount[];
|
|
428
|
+
oldest_open_accounts?: AttributeOldestOpenAccount[];
|
|
429
|
+
recent_hard_inquiries?: AttributeHardInquiry[];
|
|
430
|
+
}
|
|
431
|
+
type AttributeCategoryName = 'PAYMENT_HISTORY' | 'CREDIT_UTILIZATION' | 'PUBLIC_RECORDS' | 'CREDIT_AGE' | 'CREDIT_MIX' | 'HARD_INQUIRIES';
|
|
432
|
+
interface AttributeCategoryRating {
|
|
433
|
+
value: AttributeCategoryRatingName;
|
|
434
|
+
scale: AttributeCategoryRatingScale;
|
|
435
|
+
}
|
|
436
|
+
type AttributeCategoryRatingName = 'POOR' | 'AVERAGE' | 'GOOD' | 'EXCELLENT' | 'NO_RATING';
|
|
437
|
+
interface AttributeCategoryRatingScale {
|
|
438
|
+
type: AttributeCategoryRatingScaleType;
|
|
439
|
+
values: AttributeCategoryRatingScaleValue[];
|
|
440
|
+
}
|
|
441
|
+
type AttributeCategoryRatingScaleType = 'COUNT' | 'PERCENTAGE' | 'MONTHS';
|
|
442
|
+
interface AttributeCategoryRatingScaleValue {
|
|
443
|
+
value: AttributeCategoryRatingScaleValueName;
|
|
444
|
+
min: number;
|
|
445
|
+
max?: number;
|
|
446
|
+
}
|
|
447
|
+
type AttributeCategoryRatingScaleValueName = 'POOR' | 'AVERAGE' | 'GOOD' | 'EXCELLENT';
|
|
448
|
+
type AttributeCategoryImpact = 'VERY_HIGH_IMPACT' | 'HIGH_IMPACT' | 'MEDIUM_IMPACT' | 'LOW_IMPACT';
|
|
449
|
+
interface AttributeRelevantScoreFactor {
|
|
450
|
+
code: string;
|
|
451
|
+
positive: boolean;
|
|
452
|
+
short_description?: string;
|
|
453
|
+
long_description?: string;
|
|
454
|
+
}
|
|
455
|
+
interface AttributeHighCreditUtilizationAccount {
|
|
456
|
+
name: string;
|
|
457
|
+
utilization_percentage: number | null;
|
|
458
|
+
reported_at?: string;
|
|
459
|
+
}
|
|
460
|
+
interface AttributeOldestOpenAccount {
|
|
461
|
+
name: string;
|
|
462
|
+
type: string;
|
|
463
|
+
opened_at?: string;
|
|
464
|
+
}
|
|
465
|
+
interface AttributeHardInquiry {
|
|
466
|
+
name: string;
|
|
467
|
+
inquiried_at?: string;
|
|
468
|
+
}
|
|
469
|
+
interface CreditAttribute {
|
|
470
|
+
name: string;
|
|
471
|
+
description: string;
|
|
472
|
+
value: string;
|
|
473
|
+
exception?: string;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
declare class CreditAttributesService extends ApiClient {
|
|
477
|
+
#private;
|
|
478
|
+
constructor(config: ConnectedSolutionsSDKConfig);
|
|
479
|
+
getCreditAttributes(fetchOptions?: RequestInit): Promise<ApiClientResponse<CreditAttributes[]>>;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
type BearerToken = {
|
|
483
|
+
access_token: string;
|
|
484
|
+
token_type: string;
|
|
485
|
+
expires_in: number;
|
|
486
|
+
expires: string;
|
|
487
|
+
};
|
|
488
|
+
type AuthCredentials = {
|
|
489
|
+
grantType: 'client_credentials' | 'trusted_partner';
|
|
490
|
+
clientId: string;
|
|
491
|
+
clientSecret: string;
|
|
492
|
+
customerId?: string;
|
|
493
|
+
};
|
|
494
|
+
type AuthServiceConfig = Omit<ConnectedSolutionsSDKConfig, 'token'>;
|
|
495
|
+
declare class AuthService {
|
|
496
|
+
#private;
|
|
497
|
+
config: AuthServiceConfig;
|
|
498
|
+
baseUrl: string;
|
|
499
|
+
constructor(config: AuthServiceConfig);
|
|
500
|
+
getAccessToken(credentials: AuthCredentials): Promise<{
|
|
501
|
+
data: BearerToken;
|
|
502
|
+
errors: any;
|
|
503
|
+
meta: {
|
|
504
|
+
status: number;
|
|
505
|
+
statusText: string;
|
|
506
|
+
};
|
|
507
|
+
error?: undefined;
|
|
508
|
+
} | {
|
|
509
|
+
data: any;
|
|
510
|
+
error: any;
|
|
511
|
+
meta: {
|
|
512
|
+
status: any;
|
|
513
|
+
statusText: any;
|
|
514
|
+
};
|
|
515
|
+
errors?: undefined;
|
|
516
|
+
}>;
|
|
517
|
+
getCacheLength(): number;
|
|
518
|
+
clearCache(): void;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
type AlertMetadata = {
|
|
522
|
+
alert_id: string;
|
|
523
|
+
customer_id: string;
|
|
524
|
+
bureau: string;
|
|
525
|
+
alert_type: string;
|
|
526
|
+
alert_subtype: string;
|
|
527
|
+
event_key: string;
|
|
528
|
+
schema_version: string;
|
|
529
|
+
tenant_id: string;
|
|
530
|
+
};
|
|
531
|
+
type AlertDisposition = {
|
|
532
|
+
read_status: 'Y' | 'N';
|
|
533
|
+
};
|
|
534
|
+
type Address = {
|
|
535
|
+
address_line: string;
|
|
536
|
+
city: string;
|
|
537
|
+
state: string;
|
|
538
|
+
zipcode: string;
|
|
539
|
+
};
|
|
540
|
+
type Company = {
|
|
541
|
+
name: string;
|
|
542
|
+
phone: string;
|
|
543
|
+
business_type: string;
|
|
544
|
+
address: Address;
|
|
545
|
+
};
|
|
546
|
+
type DormantAccountDetails = {
|
|
547
|
+
company: Company;
|
|
548
|
+
balance_amount: string;
|
|
549
|
+
balance_date: string;
|
|
550
|
+
};
|
|
551
|
+
type NewInquiryDetails = {
|
|
552
|
+
company: Company;
|
|
553
|
+
inquiry_date: string;
|
|
554
|
+
trigger: string;
|
|
555
|
+
trigger_description: string;
|
|
556
|
+
};
|
|
557
|
+
type NewAccountDetails = {
|
|
558
|
+
company: Company;
|
|
559
|
+
balance_amount: string;
|
|
560
|
+
open_date: string;
|
|
561
|
+
status_date: string;
|
|
562
|
+
trigger: string;
|
|
563
|
+
trigger_description: string;
|
|
564
|
+
};
|
|
565
|
+
type NewAddressDetails = {
|
|
566
|
+
current_address: Address;
|
|
567
|
+
previous_address: Address;
|
|
568
|
+
};
|
|
569
|
+
type SpecialCommentsDetails = {
|
|
570
|
+
company: Company;
|
|
571
|
+
balance_amount: string;
|
|
572
|
+
is_collection: string;
|
|
573
|
+
payment_status: string;
|
|
574
|
+
open_date: string;
|
|
575
|
+
status_date: string;
|
|
576
|
+
};
|
|
577
|
+
type SkipCannotLocateDetails = {
|
|
578
|
+
company: Company;
|
|
579
|
+
balance_amount: string;
|
|
580
|
+
is_collection: string;
|
|
581
|
+
payment_status: string;
|
|
582
|
+
open_date: string;
|
|
583
|
+
status_date: string;
|
|
584
|
+
};
|
|
585
|
+
type LostOrStolenCardDetails = {
|
|
586
|
+
company: Company;
|
|
587
|
+
balance_amount: string;
|
|
588
|
+
is_collection: string;
|
|
589
|
+
payment_status: string;
|
|
590
|
+
open_date: string;
|
|
591
|
+
status_date: string;
|
|
592
|
+
};
|
|
593
|
+
type CardOverLimitDetails = {
|
|
594
|
+
company: Company;
|
|
595
|
+
balance_amount: string;
|
|
596
|
+
credit_limit: string;
|
|
597
|
+
is_collection: string;
|
|
598
|
+
payment_status: string;
|
|
599
|
+
open_date: string;
|
|
600
|
+
status_date: string;
|
|
601
|
+
};
|
|
602
|
+
type PastDueDetails = {
|
|
603
|
+
company: Company;
|
|
604
|
+
balance_amount: string;
|
|
605
|
+
is_collection: string;
|
|
606
|
+
payment_status: string;
|
|
607
|
+
open_date: string;
|
|
608
|
+
status_date: string;
|
|
609
|
+
};
|
|
610
|
+
type DerogatoryDetails = {
|
|
611
|
+
company: Company;
|
|
612
|
+
balance_amount: string;
|
|
613
|
+
is_collection: string;
|
|
614
|
+
payment_status: string;
|
|
615
|
+
open_date: string;
|
|
616
|
+
status_date: string;
|
|
617
|
+
};
|
|
618
|
+
type SettlementDetails = {
|
|
619
|
+
company: Company;
|
|
620
|
+
balance_amount: string;
|
|
621
|
+
is_collection: string;
|
|
622
|
+
payment_status: string;
|
|
623
|
+
open_date: string;
|
|
624
|
+
status_date: string;
|
|
625
|
+
};
|
|
626
|
+
type ClosedAccountDetails = {
|
|
627
|
+
company: Company;
|
|
628
|
+
balance_amount: string;
|
|
629
|
+
is_collection: string;
|
|
630
|
+
payment_status: string;
|
|
631
|
+
open_date: string;
|
|
632
|
+
status_date: string;
|
|
633
|
+
};
|
|
634
|
+
type AccountInBankruptcyDetails = {
|
|
635
|
+
company: Company;
|
|
636
|
+
balance_amount: string;
|
|
637
|
+
is_collection: string;
|
|
638
|
+
payment_status: string;
|
|
639
|
+
open_date: string;
|
|
640
|
+
status_date: string;
|
|
641
|
+
};
|
|
642
|
+
type PublicRecordBankruptcyDetails = {
|
|
643
|
+
company: Company;
|
|
644
|
+
balance_amount: string;
|
|
645
|
+
court_name: string;
|
|
646
|
+
payment_status: string;
|
|
647
|
+
file_date: string;
|
|
648
|
+
};
|
|
649
|
+
type CollectionDetails = {
|
|
650
|
+
company: Company;
|
|
651
|
+
balance_amount: string;
|
|
652
|
+
is_collection: string;
|
|
653
|
+
payment_status: string;
|
|
654
|
+
open_date: string;
|
|
655
|
+
status_date: string;
|
|
656
|
+
};
|
|
657
|
+
type DeceasedDetails = {
|
|
658
|
+
company: Company;
|
|
659
|
+
balance_amount: string;
|
|
660
|
+
is_collection: string;
|
|
661
|
+
payment_status: string;
|
|
662
|
+
open_date: string;
|
|
663
|
+
status_date: string;
|
|
664
|
+
};
|
|
665
|
+
type CreditBalanceIncreaseDetails = {
|
|
666
|
+
company: Company;
|
|
667
|
+
balance_amount: string;
|
|
668
|
+
balance_date: string;
|
|
669
|
+
previous_balance_amount: string;
|
|
670
|
+
previous_balance_date: string;
|
|
671
|
+
credit_limit: string;
|
|
672
|
+
previous_credit_limit: string;
|
|
673
|
+
};
|
|
674
|
+
type CreditBalanceDecreaseDetails = {
|
|
675
|
+
company: Company;
|
|
676
|
+
balance_amount: string;
|
|
677
|
+
balance_date: string;
|
|
678
|
+
previous_balance_amount: string;
|
|
679
|
+
previous_balance_date: string;
|
|
680
|
+
credit_limit: string;
|
|
681
|
+
previous_credit_limit: string;
|
|
682
|
+
};
|
|
683
|
+
type CreditLimitIncreaseDetails = {
|
|
684
|
+
company: Company;
|
|
685
|
+
balance_amount: string;
|
|
686
|
+
balance_date: string;
|
|
687
|
+
previous_balance_amount: string;
|
|
688
|
+
previous_balance_date: string;
|
|
689
|
+
credit_limit: string;
|
|
690
|
+
previous_credit_limit: string;
|
|
691
|
+
};
|
|
692
|
+
type CreditLimitDecreaseDetails = {
|
|
693
|
+
company: Company;
|
|
694
|
+
balance_amount: string;
|
|
695
|
+
balance_date: string;
|
|
696
|
+
previous_balance_amount: string;
|
|
697
|
+
previous_balance_date: string;
|
|
698
|
+
credit_limit: string;
|
|
699
|
+
previous_credit_limit: string;
|
|
700
|
+
};
|
|
701
|
+
type CreditUsageIncreaseDetails = {
|
|
702
|
+
company: Company;
|
|
703
|
+
balance_amount: string;
|
|
704
|
+
balance_date: string;
|
|
705
|
+
previous_balance_amount: string;
|
|
706
|
+
previous_balance_date: string;
|
|
707
|
+
credit_limit: string;
|
|
708
|
+
previous_credit_limit: string;
|
|
709
|
+
};
|
|
710
|
+
type CreditUsageDecreaseDetails = {
|
|
711
|
+
company: Company;
|
|
712
|
+
balance_amount: string;
|
|
713
|
+
balance_date: string;
|
|
714
|
+
previous_balance_amount: string;
|
|
715
|
+
previous_balance_date: string;
|
|
716
|
+
credit_limit: string;
|
|
717
|
+
previous_credit_limit: string;
|
|
718
|
+
};
|
|
719
|
+
type AccountClosedDetails = {
|
|
720
|
+
company: Company;
|
|
721
|
+
balance_amount: string;
|
|
722
|
+
notice_date: string;
|
|
723
|
+
current_status: string;
|
|
724
|
+
previous_status: string;
|
|
725
|
+
};
|
|
726
|
+
type AccountCurrentDetails = {
|
|
727
|
+
company: Company;
|
|
728
|
+
balance_amount: string;
|
|
729
|
+
notice_date: string;
|
|
730
|
+
current_status: string;
|
|
731
|
+
previous_status: string;
|
|
732
|
+
};
|
|
733
|
+
type AccountImprovedDetails = {
|
|
734
|
+
company: Company;
|
|
735
|
+
balance_amount: string;
|
|
736
|
+
notice_date: string;
|
|
737
|
+
current_status: string;
|
|
738
|
+
previous_status: string;
|
|
739
|
+
};
|
|
740
|
+
type AccountPaidDetails = {
|
|
741
|
+
company: Company;
|
|
742
|
+
balance_amount: string;
|
|
743
|
+
notice_date: string;
|
|
744
|
+
current_status: string;
|
|
745
|
+
previous_status: string;
|
|
746
|
+
};
|
|
747
|
+
type CreditScoreTriggerReasons = {
|
|
748
|
+
score_rating_changed: string;
|
|
749
|
+
score_goal_achieved: string;
|
|
750
|
+
score_below_goal: string;
|
|
751
|
+
score_rating_increase: string;
|
|
752
|
+
score_rating_decrease: string;
|
|
753
|
+
score_increase: string;
|
|
754
|
+
score_decrease: string;
|
|
755
|
+
};
|
|
756
|
+
type CreditScoreFeaturePreferences = {
|
|
757
|
+
point_change: string;
|
|
758
|
+
risk_change: string;
|
|
759
|
+
goal_achieved: string;
|
|
760
|
+
};
|
|
761
|
+
type CreditScoreIncreaseDetails = {
|
|
762
|
+
alert_trigger_reasons: CreditScoreTriggerReasons;
|
|
763
|
+
feature_preferences: CreditScoreFeaturePreferences;
|
|
764
|
+
score_model: string;
|
|
765
|
+
new_score_id: string;
|
|
766
|
+
new_score_date: string;
|
|
767
|
+
new_score: string;
|
|
768
|
+
previous_score_id: string;
|
|
769
|
+
previous_score_date: string;
|
|
770
|
+
previous_score: string;
|
|
771
|
+
score_change: string;
|
|
772
|
+
new_score_rating: string;
|
|
773
|
+
previous_score_rating: string;
|
|
774
|
+
goal_value: string;
|
|
775
|
+
};
|
|
776
|
+
type CreditScoreDecreaseDetails = {
|
|
777
|
+
alert_trigger_reasons: CreditScoreTriggerReasons;
|
|
778
|
+
feature_preferences: CreditScoreFeaturePreferences;
|
|
779
|
+
score_model: string;
|
|
780
|
+
new_score_id: string;
|
|
781
|
+
new_score_date: string;
|
|
782
|
+
new_score: string;
|
|
783
|
+
previous_score_id: string;
|
|
784
|
+
previous_score_date: string;
|
|
785
|
+
previous_score: string;
|
|
786
|
+
score_change: string;
|
|
787
|
+
new_score_rating: string;
|
|
788
|
+
previous_score_rating: string;
|
|
789
|
+
goal_value: string;
|
|
790
|
+
};
|
|
791
|
+
type CreditScoreRatingIncreaseDetails = {
|
|
792
|
+
alert_trigger_reasons: CreditScoreTriggerReasons;
|
|
793
|
+
feature_preferences: CreditScoreFeaturePreferences;
|
|
794
|
+
score_model: string;
|
|
795
|
+
new_score_id: string;
|
|
796
|
+
new_score_date: string;
|
|
797
|
+
new_score: string;
|
|
798
|
+
previous_score_id: string;
|
|
799
|
+
previous_score_date: string;
|
|
800
|
+
previous_score: string;
|
|
801
|
+
score_change: string;
|
|
802
|
+
new_score_rating: string;
|
|
803
|
+
previous_score_rating: string;
|
|
804
|
+
goal_value: string;
|
|
805
|
+
};
|
|
806
|
+
type CreditScoreRatingDecreaseDetails = {
|
|
807
|
+
alert_trigger_reasons: CreditScoreTriggerReasons;
|
|
808
|
+
feature_preferences: CreditScoreFeaturePreferences;
|
|
809
|
+
score_model: string;
|
|
810
|
+
new_score_id: string;
|
|
811
|
+
new_score_date: string;
|
|
812
|
+
new_score: string;
|
|
813
|
+
previous_score_id: string;
|
|
814
|
+
previous_score_date: string;
|
|
815
|
+
previous_score: string;
|
|
816
|
+
score_change: string;
|
|
817
|
+
new_score_rating: string;
|
|
818
|
+
previous_score_rating: string;
|
|
819
|
+
goal_value: string;
|
|
820
|
+
};
|
|
821
|
+
type CreditScoreGoalAchievedDetails = {
|
|
822
|
+
alert_trigger_reasons: CreditScoreTriggerReasons;
|
|
823
|
+
feature_preferences: CreditScoreFeaturePreferences;
|
|
824
|
+
score_model: string;
|
|
825
|
+
new_score_id: string;
|
|
826
|
+
new_score_date: string;
|
|
827
|
+
new_score: string;
|
|
828
|
+
previous_score_id: string;
|
|
829
|
+
previous_score_date: string;
|
|
830
|
+
previous_score: string;
|
|
831
|
+
score_change: string;
|
|
832
|
+
new_score_rating: string;
|
|
833
|
+
previous_score_rating: string;
|
|
834
|
+
goal_value: string;
|
|
835
|
+
};
|
|
836
|
+
type CreditScoreBelowGoalDetails = {
|
|
837
|
+
alert_trigger_reasons: CreditScoreTriggerReasons;
|
|
838
|
+
feature_preferences: CreditScoreFeaturePreferences;
|
|
839
|
+
score_model: string;
|
|
840
|
+
new_score_id: string;
|
|
841
|
+
new_score_date: string;
|
|
842
|
+
new_score: string;
|
|
843
|
+
previous_score_id: string;
|
|
844
|
+
previous_score_date: string;
|
|
845
|
+
previous_score: string;
|
|
846
|
+
score_change: string;
|
|
847
|
+
new_score_rating: string;
|
|
848
|
+
previous_score_rating: string;
|
|
849
|
+
goal_value: string;
|
|
850
|
+
};
|
|
851
|
+
type AlertDetails = DormantAccountDetails | NewInquiryDetails | NewAccountDetails | NewAddressDetails | SpecialCommentsDetails | SkipCannotLocateDetails | LostOrStolenCardDetails | CardOverLimitDetails | PastDueDetails | DerogatoryDetails | SettlementDetails | ClosedAccountDetails | AccountInBankruptcyDetails | PublicRecordBankruptcyDetails | CollectionDetails | DeceasedDetails | CreditBalanceIncreaseDetails | CreditBalanceDecreaseDetails | CreditLimitIncreaseDetails | CreditLimitDecreaseDetails | CreditUsageIncreaseDetails | CreditUsageDecreaseDetails | AccountClosedDetails | AccountCurrentDetails | AccountImprovedDetails | AccountPaidDetails | CreditScoreIncreaseDetails | CreditScoreDecreaseDetails | CreditScoreRatingIncreaseDetails | CreditScoreRatingDecreaseDetails | CreditScoreGoalAchievedDetails | CreditScoreBelowGoalDetails;
|
|
852
|
+
type AlertData<AlertDetailsType = AlertDetails> = {
|
|
853
|
+
alert_date: string;
|
|
854
|
+
alert_severity?: string;
|
|
855
|
+
alert_summary_header: string;
|
|
856
|
+
alert_summary_subheader: string;
|
|
857
|
+
alert_details: AlertDetailsType;
|
|
858
|
+
alert_disposition: AlertDisposition;
|
|
859
|
+
};
|
|
860
|
+
type Impact = {
|
|
861
|
+
impact_header: string;
|
|
862
|
+
impact_content_body: string;
|
|
863
|
+
risk_header: string;
|
|
864
|
+
risk_body: string;
|
|
865
|
+
};
|
|
866
|
+
type Supcontent = {
|
|
867
|
+
supcontent_header: string;
|
|
868
|
+
supcontent_body: string;
|
|
869
|
+
};
|
|
870
|
+
type Alert<AlertDetailsType = AlertDetails> = {
|
|
871
|
+
alert_metadata: AlertMetadata;
|
|
872
|
+
alert_data: AlertData<AlertDetailsType>;
|
|
873
|
+
impact: Impact;
|
|
874
|
+
supcontent: Supcontent;
|
|
875
|
+
};
|
|
876
|
+
type Alerts = {
|
|
877
|
+
pagination_token?: string;
|
|
878
|
+
alerts: Alert[];
|
|
879
|
+
};
|
|
880
|
+
type DeserializedAlertsPaginationToken = {
|
|
881
|
+
exAlertId: {
|
|
882
|
+
S: string;
|
|
883
|
+
};
|
|
884
|
+
exCustomerId: {
|
|
885
|
+
S: string;
|
|
886
|
+
};
|
|
887
|
+
};
|
|
888
|
+
type AlertCount = {
|
|
889
|
+
total: number;
|
|
890
|
+
read: number;
|
|
891
|
+
unread: number;
|
|
892
|
+
};
|
|
893
|
+
type TotalAlertCounts = {
|
|
894
|
+
credit: AlertCount;
|
|
895
|
+
identity: AlertCount;
|
|
896
|
+
score_change: AlertCount;
|
|
897
|
+
};
|
|
898
|
+
|
|
899
|
+
declare class AlertsService extends ApiClient {
|
|
900
|
+
#private;
|
|
901
|
+
constructor(config: ConnectedSolutionsSDKConfig);
|
|
902
|
+
getAlerts(requestOptions?: {
|
|
903
|
+
page_limit: number;
|
|
904
|
+
next_page_token: string | null;
|
|
905
|
+
disposition_status?: 'READ' | 'UNREAD';
|
|
906
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<Alerts>>;
|
|
907
|
+
getAlertById({ id }: {
|
|
908
|
+
id: string;
|
|
909
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<Alert>>;
|
|
910
|
+
markAlertAsRead({ id }: {
|
|
911
|
+
id: string;
|
|
912
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<Alert>>;
|
|
913
|
+
getAlertCounts(fetchOptions?: RequestInit): Promise<ApiClientResponse<TotalAlertCounts>>;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
type CreditReportType = 'EXPERIAN' | 'EXPERIAN_FICO2' | 'EXPERIAN_FICOMORTGAGE2' | 'EXPERIAN_FICO8' | 'EXPERIAN_FICO9' | 'EXPERIAN_VANTAGE30' | 'TRIBUREAU' | 'TRIBUREAU_EXPERIAN_FICO2' | 'TRIBUREAU_FICOMORTGAGE2' | 'TRIBUREAU_FICO8' | 'TRIBUREAU_VANTAGE30';
|
|
917
|
+
type CreditReportScoreDetail = {
|
|
918
|
+
bureau: Bureau;
|
|
919
|
+
score_model: ScoreModelVersion;
|
|
920
|
+
score: number;
|
|
921
|
+
};
|
|
922
|
+
type CreditReportScoreRating = 'VERY_POOR' | 'POOR' | 'FAIR' | 'GOOD' | 'VERY_GOOD' | 'EXCELLENT' | 'EXCEPTIONAL';
|
|
923
|
+
type ReportDisplayScoreDetails = {
|
|
924
|
+
score: number;
|
|
925
|
+
score_rating: CreditReportScoreRating;
|
|
926
|
+
score_date: string;
|
|
927
|
+
score_model: ScoreModelVersion;
|
|
928
|
+
};
|
|
929
|
+
type CreditReportMeta = {
|
|
930
|
+
id: string;
|
|
931
|
+
report_type: CreditReportType;
|
|
932
|
+
report_date: string;
|
|
933
|
+
report_read: boolean;
|
|
934
|
+
score_details: CreditReportScoreDetail[];
|
|
935
|
+
};
|
|
936
|
+
type PersonalAddress = {
|
|
937
|
+
house_number: string;
|
|
938
|
+
street_name: string;
|
|
939
|
+
suffix: string;
|
|
940
|
+
unit: string;
|
|
941
|
+
city: string;
|
|
942
|
+
state: string;
|
|
943
|
+
zip_code: string;
|
|
944
|
+
};
|
|
945
|
+
type Name = {
|
|
946
|
+
first_name: string;
|
|
947
|
+
middle_name: string;
|
|
948
|
+
last_name: string;
|
|
949
|
+
};
|
|
950
|
+
type Statement = {
|
|
951
|
+
created_at: string;
|
|
952
|
+
statement: string;
|
|
953
|
+
};
|
|
954
|
+
type PaymentHistoryCode = '' | 'No Data' | 'OK' | '30' | '60' | '90' | '120' | '150' | '180' | 'ND' | 'CLS' | 'CRD' | 'FS' | 'IC' | 'C' | 'F' | 'VS' | 'CO' | 'R' | 'PBC' | 'G' | 'D' | 'BK';
|
|
955
|
+
type Month = 'jan' | 'feb' | 'mar' | 'apr' | 'may' | 'jun' | 'jul' | 'aug' | 'sep' | 'oct' | 'nov' | 'dec';
|
|
956
|
+
type PaymentSummary = {
|
|
957
|
+
year: number;
|
|
958
|
+
summary_per_month: Record<Month, PaymentHistoryCode>;
|
|
959
|
+
};
|
|
960
|
+
type CreditorAddress = {
|
|
961
|
+
name: string;
|
|
962
|
+
address: string;
|
|
963
|
+
city: string;
|
|
964
|
+
state: string;
|
|
965
|
+
zip_code: string;
|
|
966
|
+
};
|
|
967
|
+
type ContactInfo = {
|
|
968
|
+
state: string;
|
|
969
|
+
name: string;
|
|
970
|
+
zip_code: string;
|
|
971
|
+
address: string;
|
|
972
|
+
city: string;
|
|
973
|
+
phone_number: string;
|
|
974
|
+
};
|
|
975
|
+
type Account = {
|
|
976
|
+
credit_usage?: number | null;
|
|
977
|
+
paid_off: number | null;
|
|
978
|
+
balance: string;
|
|
979
|
+
balance_updated_at: string;
|
|
980
|
+
credit_limit: number | null;
|
|
981
|
+
account_name: string;
|
|
982
|
+
account_number: string;
|
|
983
|
+
account_condition: string;
|
|
984
|
+
account_type: string;
|
|
985
|
+
opened_at: string;
|
|
986
|
+
category: string;
|
|
987
|
+
payment_summaries: PaymentSummary[];
|
|
988
|
+
payment_status: string;
|
|
989
|
+
payment_status_updated_at: string;
|
|
990
|
+
monthly_payment: string;
|
|
991
|
+
responsibility: string;
|
|
992
|
+
terms: string;
|
|
993
|
+
company_sold_to: string;
|
|
994
|
+
original_creditor: string;
|
|
995
|
+
comments: string[];
|
|
996
|
+
your_statements: string[];
|
|
997
|
+
contact_info: ContactInfo;
|
|
998
|
+
past_due_amount: number | null;
|
|
999
|
+
original_balance: number | null;
|
|
1000
|
+
highest_balance: number | null;
|
|
1001
|
+
last_payment_at: string | null;
|
|
1002
|
+
creditor_comments: string[];
|
|
1003
|
+
balloon_payment: string;
|
|
1004
|
+
};
|
|
1005
|
+
type CreditInquiry = {
|
|
1006
|
+
creditor_name: string;
|
|
1007
|
+
inquiry_at: string;
|
|
1008
|
+
removal_at: string;
|
|
1009
|
+
business_type: string;
|
|
1010
|
+
creditor_address: CreditorAddress;
|
|
1011
|
+
creditor_phone: string;
|
|
1012
|
+
};
|
|
1013
|
+
type CollectionAccount = {
|
|
1014
|
+
account_name: string;
|
|
1015
|
+
original_creditor: string;
|
|
1016
|
+
balance: number | null;
|
|
1017
|
+
balance_updated_at: string;
|
|
1018
|
+
original_balance: number | null;
|
|
1019
|
+
highest_balance: number | null;
|
|
1020
|
+
account_number: string;
|
|
1021
|
+
opened_at: string;
|
|
1022
|
+
account_type: string;
|
|
1023
|
+
payment_status: string;
|
|
1024
|
+
payment_status_updated_at: string;
|
|
1025
|
+
payment_summaries: PaymentSummary[];
|
|
1026
|
+
comments: string[];
|
|
1027
|
+
your_statements: string[];
|
|
1028
|
+
contact_info: ContactInfo;
|
|
1029
|
+
};
|
|
1030
|
+
type PublicRecord = {
|
|
1031
|
+
filed_at: string;
|
|
1032
|
+
type: string;
|
|
1033
|
+
court: string;
|
|
1034
|
+
reference_number: string;
|
|
1035
|
+
amount: string;
|
|
1036
|
+
};
|
|
1037
|
+
type ReportDisplay = {
|
|
1038
|
+
bureau: Bureau;
|
|
1039
|
+
personal_info: {
|
|
1040
|
+
names: Name[];
|
|
1041
|
+
year_of_birth: number;
|
|
1042
|
+
current_address: PersonalAddress;
|
|
1043
|
+
address_updated_at: string;
|
|
1044
|
+
previous_addresses: PersonalAddress[];
|
|
1045
|
+
employer_names: string[];
|
|
1046
|
+
statements: Statement[];
|
|
1047
|
+
};
|
|
1048
|
+
accounts_info: {
|
|
1049
|
+
credit_usage: number | null;
|
|
1050
|
+
credit_available: number | null;
|
|
1051
|
+
credit_limit: number | null;
|
|
1052
|
+
accounts: Account[];
|
|
1053
|
+
};
|
|
1054
|
+
score_details: ReportDisplayScoreDetails[];
|
|
1055
|
+
credit_inquiries: CreditInquiry[];
|
|
1056
|
+
collection_accounts: CollectionAccount[];
|
|
1057
|
+
public_records: PublicRecord[];
|
|
1058
|
+
};
|
|
1059
|
+
type CreditReport = {
|
|
1060
|
+
report_data: string;
|
|
1061
|
+
created_at: string;
|
|
1062
|
+
read: boolean;
|
|
1063
|
+
id: string;
|
|
1064
|
+
report_display: ReportDisplay[];
|
|
1065
|
+
type: CreditReportType;
|
|
1066
|
+
};
|
|
1067
|
+
|
|
1068
|
+
declare class CreditReportsService extends ApiClient {
|
|
1069
|
+
#private;
|
|
1070
|
+
constructor(config: ConnectedSolutionsSDKConfig);
|
|
1071
|
+
getReports(requestOptions?: {
|
|
1072
|
+
product_config_id?: string;
|
|
1073
|
+
include_fields?: string;
|
|
1074
|
+
report_date?: string;
|
|
1075
|
+
report_between?: string;
|
|
1076
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<CreditReport[]>>;
|
|
1077
|
+
getReportById(requestOptions: {
|
|
1078
|
+
id: string;
|
|
1079
|
+
include_fields?: string;
|
|
1080
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<CreditReport>>;
|
|
1081
|
+
getReportsMeta(requestOptions?: {
|
|
1082
|
+
product_config_id?: string;
|
|
1083
|
+
report_date?: string;
|
|
1084
|
+
report_between?: string;
|
|
1085
|
+
latest_only?: boolean;
|
|
1086
|
+
report_read?: boolean;
|
|
1087
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<CreditReportMeta[]>>;
|
|
1088
|
+
getReportMetaById(requestOptions: {
|
|
1089
|
+
id: string;
|
|
1090
|
+
product_config_id?: string;
|
|
1091
|
+
include_fields?: string;
|
|
1092
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<CreditReportMeta>>;
|
|
1093
|
+
markReportAsRead(requestOptions: {
|
|
1094
|
+
id: string;
|
|
1095
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse>;
|
|
1096
|
+
orderReport(requestOptions: {
|
|
1097
|
+
product_config_id: string;
|
|
1098
|
+
include_fields?: string;
|
|
1099
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<CreditReport>>;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
type Customer = {
|
|
1103
|
+
customer_id: string;
|
|
1104
|
+
reference_id: string;
|
|
1105
|
+
people_id: string;
|
|
1106
|
+
first_name: string;
|
|
1107
|
+
middle_initial: string;
|
|
1108
|
+
last_name: string;
|
|
1109
|
+
suffix: string;
|
|
1110
|
+
addresses: CustomerAddress[];
|
|
1111
|
+
phones: CustomerPhone[];
|
|
1112
|
+
emails: CustomerEmail[];
|
|
1113
|
+
social_security_number: string;
|
|
1114
|
+
date_of_birth: string;
|
|
1115
|
+
disclosures: CustomerDisclosure[];
|
|
1116
|
+
authentication_status: {
|
|
1117
|
+
is_authenticated: boolean;
|
|
1118
|
+
verification_method: string;
|
|
1119
|
+
authenticated_at: string;
|
|
1120
|
+
};
|
|
1121
|
+
created_at: string;
|
|
1122
|
+
updated_at: string;
|
|
1123
|
+
outside_auth: boolean;
|
|
1124
|
+
};
|
|
1125
|
+
type CustomerAddress = {
|
|
1126
|
+
address_type: string;
|
|
1127
|
+
address1: string;
|
|
1128
|
+
address2?: string;
|
|
1129
|
+
city: string;
|
|
1130
|
+
state: string;
|
|
1131
|
+
zip: string;
|
|
1132
|
+
country_code: string;
|
|
1133
|
+
};
|
|
1134
|
+
type CustomerPhone = {
|
|
1135
|
+
phone_type: string;
|
|
1136
|
+
phone_country_code: string;
|
|
1137
|
+
phone_number: string;
|
|
1138
|
+
};
|
|
1139
|
+
type CustomerEmail = {
|
|
1140
|
+
email_type: string;
|
|
1141
|
+
email_address: string;
|
|
1142
|
+
};
|
|
1143
|
+
type CustomerDisclosure = {
|
|
1144
|
+
accepted_at: string;
|
|
1145
|
+
};
|
|
1146
|
+
type CustomerSearchOptions = {
|
|
1147
|
+
next_cursor?: string;
|
|
1148
|
+
count: number;
|
|
1149
|
+
people_id?: string;
|
|
1150
|
+
reference_id?: string;
|
|
1151
|
+
created_at?: string;
|
|
1152
|
+
created_before?: string;
|
|
1153
|
+
email_address?: string;
|
|
1154
|
+
phone?: string;
|
|
1155
|
+
name?: {
|
|
1156
|
+
first_name?: string;
|
|
1157
|
+
last_name?: string;
|
|
1158
|
+
};
|
|
1159
|
+
address?: CustomerAddress;
|
|
1160
|
+
social_security_number?: string;
|
|
1161
|
+
date_of_birth?: string;
|
|
1162
|
+
};
|
|
1163
|
+
type CustomerSearchResults = {
|
|
1164
|
+
next_cursor?: string;
|
|
1165
|
+
items: Customer[];
|
|
1166
|
+
};
|
|
1167
|
+
type CreateCustomerOptions = Partial<Pick<Customer, 'people_id' | 'reference_id' | 'first_name' | 'middle_initial' | 'last_name' | 'suffix' | 'social_security_number' | 'date_of_birth' | 'addresses' | 'phones' | 'emails' | 'outside_auth' | 'disclosures'>> & {
|
|
1168
|
+
disclosure: CustomerDisclosure;
|
|
1169
|
+
};
|
|
1170
|
+
|
|
1171
|
+
declare class CustomersService extends ApiClient {
|
|
1172
|
+
#private;
|
|
1173
|
+
constructor(config: ConnectedSolutionsSDKConfig);
|
|
1174
|
+
getCustomerById(requestOptions: {
|
|
1175
|
+
customer_id: string;
|
|
1176
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<Customer>>;
|
|
1177
|
+
updateCustomer(requestOptions: Pick<Customer, 'customer_id'> & Partial<Omit<Customer, 'customer_id'>>, fetchOptions?: RequestInit): Promise<ApiClientResponse<Customer>>;
|
|
1178
|
+
deleteCustomer(requestOptions: {
|
|
1179
|
+
customer_id: string;
|
|
1180
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse>;
|
|
1181
|
+
createCustomer(requestOptions: CreateCustomerOptions, fetchOptions?: RequestInit): Promise<ApiClientResponse<Customer>>;
|
|
1182
|
+
searchCustomers(requestOptions: CustomerSearchOptions, fetchOptions?: RequestInit): Promise<ApiClientResponse<CustomerSearchResults>>;
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
type AuthQuestions = {
|
|
1186
|
+
questions: AuthQuestion[];
|
|
1187
|
+
is_authenticated: boolean;
|
|
1188
|
+
authentication_id: string;
|
|
1189
|
+
authentication_session_id: string;
|
|
1190
|
+
};
|
|
1191
|
+
type AuthQuestion = {
|
|
1192
|
+
question_order: number;
|
|
1193
|
+
question_type: {
|
|
1194
|
+
code: string;
|
|
1195
|
+
description: string;
|
|
1196
|
+
};
|
|
1197
|
+
question_text: string;
|
|
1198
|
+
question_select: {
|
|
1199
|
+
choice_id: string;
|
|
1200
|
+
text: string;
|
|
1201
|
+
}[];
|
|
1202
|
+
};
|
|
1203
|
+
type AuthAnswersRequest = {
|
|
1204
|
+
answers: AuthAnswer[];
|
|
1205
|
+
authentication_id: string;
|
|
1206
|
+
authentication_session_id: string;
|
|
1207
|
+
};
|
|
1208
|
+
type AuthAnswer = {
|
|
1209
|
+
answer_order: number;
|
|
1210
|
+
choice_id: string;
|
|
1211
|
+
};
|
|
1212
|
+
|
|
1213
|
+
declare class CustomerAuthService extends ApiClient {
|
|
1214
|
+
#private;
|
|
1215
|
+
constructor(config: ConnectedSolutionsSDKConfig);
|
|
1216
|
+
getAuthQuestions(fetchOptions?: RequestInit): Promise<ApiClientResponse<AuthQuestions>>;
|
|
1217
|
+
submitAuthAnswers(answers: AuthAnswersRequest, fetchOptions?: RequestInit): Promise<ApiClientResponse>;
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
type CreateRegistrationsRequest = {
|
|
1221
|
+
customer: Partial<Omit<Customer, 'disclosures'> & {
|
|
1222
|
+
disclosure: CustomerDisclosure;
|
|
1223
|
+
}>;
|
|
1224
|
+
entitlement: {
|
|
1225
|
+
name: string;
|
|
1226
|
+
description: string;
|
|
1227
|
+
available_at: string;
|
|
1228
|
+
product_config_ids: string[];
|
|
1229
|
+
};
|
|
1230
|
+
};
|
|
1231
|
+
type CreateRegistrationsResponse = {
|
|
1232
|
+
customer: Customer;
|
|
1233
|
+
entitlement: Entitlement;
|
|
1234
|
+
};
|
|
1235
|
+
|
|
1236
|
+
declare class RegistrationsService extends ApiClient {
|
|
1237
|
+
#private;
|
|
1238
|
+
constructor(config: ConnectedSolutionsSDKConfig);
|
|
1239
|
+
createRegistration(requestOptions: CreateRegistrationsRequest, fetchOptions?: RequestInit): Promise<ApiClientResponse<CreateRegistrationsResponse>>;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
type ProductConfig = {
|
|
1243
|
+
id: string;
|
|
1244
|
+
name: string;
|
|
1245
|
+
description: string;
|
|
1246
|
+
product_type: string;
|
|
1247
|
+
delivery: {
|
|
1248
|
+
type: string;
|
|
1249
|
+
cadence?: string;
|
|
1250
|
+
};
|
|
1251
|
+
created_at: string;
|
|
1252
|
+
updated_at: string;
|
|
1253
|
+
};
|
|
1254
|
+
type ProductConfigs = {
|
|
1255
|
+
previous_cursor: string;
|
|
1256
|
+
next_cursor: string;
|
|
1257
|
+
items: ProductConfig[];
|
|
1258
|
+
};
|
|
1259
|
+
|
|
1260
|
+
declare class ProductConfigsService extends ApiClient {
|
|
1261
|
+
#private;
|
|
1262
|
+
constructor(config: ConnectedSolutionsSDKConfig);
|
|
1263
|
+
getProductConfigs(fetchOptions?: RequestInit): Promise<ApiClientResponse<ProductConfigs>>;
|
|
1264
|
+
getProductConfigById(requestOptions: {
|
|
1265
|
+
product_config_id: string;
|
|
1266
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<ProductConfig>>;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
type ConnectedSolutionsSDKConfigInternal = {
|
|
1270
|
+
environment: 'PRODUCTION' | 'SANDBOX';
|
|
1271
|
+
token: string | null;
|
|
1272
|
+
};
|
|
1273
|
+
type ConnectedSolutionsSDKConfig = Partial<ConnectedSolutionsSDKConfigInternal>;
|
|
1274
|
+
interface ConnectedSolutionsSDK {
|
|
1275
|
+
alerts: AlertsService;
|
|
1276
|
+
auth: AuthService;
|
|
1277
|
+
creditReports: CreditReportsService;
|
|
1278
|
+
creditScores: CreditScoresService;
|
|
1279
|
+
creditAttributes: CreditAttributesService;
|
|
1280
|
+
creditScorePlanner: CreditScorePlannerService;
|
|
1281
|
+
creditScoreSimulator: CreditScoreSimulatorService;
|
|
1282
|
+
customerAuth: CustomerAuthService;
|
|
1283
|
+
customers: CustomersService;
|
|
1284
|
+
entitlements: EntitlementsService;
|
|
1285
|
+
productConfigs: ProductConfigsService;
|
|
1286
|
+
registrations: RegistrationsService;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
type ConnectedSolutionsClientMeta = {
|
|
1290
|
+
status: number;
|
|
1291
|
+
statusText: string;
|
|
1292
|
+
};
|
|
1293
|
+
type ConnectedSolutionsClientErrors = ConnectedSolutionsClientApiError | ConnectedSolutionsClientAuthError | ConnectedSolutionsClientUnknownError | ConnectedSolutionsClientSDKError;
|
|
1294
|
+
type ApiClientResponse<DataType = Record<string, unknown>> = {
|
|
1295
|
+
data: DataType;
|
|
1296
|
+
error: undefined;
|
|
1297
|
+
meta: ConnectedSolutionsClientMeta;
|
|
1298
|
+
} | {
|
|
1299
|
+
data: undefined;
|
|
1300
|
+
error: ConnectedSolutionsClientErrors;
|
|
1301
|
+
meta: ConnectedSolutionsClientMeta;
|
|
1302
|
+
};
|
|
1303
|
+
declare class ApiClient {
|
|
1304
|
+
#private;
|
|
1305
|
+
config: ConnectedSolutionsSDKConfig;
|
|
1306
|
+
baseUrl: string;
|
|
1307
|
+
contentstackUrl: string;
|
|
1308
|
+
constructor(config: ConnectedSolutionsSDKConfig);
|
|
1309
|
+
setConfig(partialConfig: Partial<ConnectedSolutionsSDKConfig>): void;
|
|
1310
|
+
fetchWithAuth<DataType>(input: RequestInfo, init?: RequestInit): Promise<ApiClientResponse<DataType>>;
|
|
1311
|
+
fetchRequest<DataType>(input: RequestInfo, init?: RequestInit): Promise<ApiClientResponse<DataType>>;
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
declare class CreditScoresService extends ApiClient {
|
|
1315
|
+
#private;
|
|
1316
|
+
constructor(config: ConnectedSolutionsSDKConfig);
|
|
1317
|
+
getCreditScores(options?: {
|
|
1318
|
+
product_config_id?: string;
|
|
1319
|
+
include_factors?: boolean;
|
|
1320
|
+
include_ingredients?: boolean;
|
|
1321
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<CreditScore[]>>;
|
|
1322
|
+
orderCreditScore(requestOptions: {
|
|
1323
|
+
product_config_id: string;
|
|
1324
|
+
include_factors?: boolean;
|
|
1325
|
+
include_ingredients?: boolean;
|
|
1326
|
+
}, fetchOptions?: RequestInit): Promise<ApiClientResponse<CreditScore>>;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
declare class SDKClient extends ApiClient implements ConnectedSolutionsSDK {
|
|
1330
|
+
#private;
|
|
1331
|
+
alerts: AlertsService;
|
|
1332
|
+
auth: AuthService;
|
|
1333
|
+
creditReports: CreditReportsService;
|
|
1334
|
+
creditScores: CreditScoresService;
|
|
1335
|
+
creditAttributes: CreditAttributesService;
|
|
1336
|
+
creditScorePlanner: CreditScorePlannerService;
|
|
1337
|
+
creditScoreSimulator: CreditScoreSimulatorService;
|
|
1338
|
+
customerAuth: CustomerAuthService;
|
|
1339
|
+
customers: CustomersService;
|
|
1340
|
+
entitlements: EntitlementsService;
|
|
1341
|
+
productConfigs: ProductConfigsService;
|
|
1342
|
+
registrations: RegistrationsService;
|
|
1343
|
+
static getInstance(config: ConnectedSolutionsSDKConfig): SDKClient;
|
|
1344
|
+
static clearInstance(): void;
|
|
1345
|
+
private constructor();
|
|
1346
|
+
}
|
|
1347
|
+
declare function createSDK(userConfig: ConnectedSolutionsSDKConfig): SDKClient;
|
|
1348
|
+
|
|
1349
|
+
declare function isPlanCompleted(plan: CreditScorePlan): plan is FicoCreditScorePlanCompleted | VantageCreditScorePlanCompleted;
|
|
1350
|
+
declare function isPlanSet(plan: CreditScorePlan): plan is FicoCreditScorePlanCompleted | FicoCreditScorePlanSet | VantageCreditScorePlanCompleted | VantageCreditScorePlanSet;
|
|
1351
|
+
declare function isVantagePlan(plan: CreditScorePlan): plan is VantageCreditScorePlan;
|
|
1352
|
+
declare function isFicoPlan(plan: CreditScorePlan): plan is FicoCreditScorePlan;
|
|
1353
|
+
declare function isFicoRevisionsRequest(request: ScorePlanRevisionsRequest): request is FicoScorePlanRevisionsRequest;
|
|
1354
|
+
declare function isVantageRevisionsRequest(request: ScorePlanRevisionsRequest): request is VantageScorePlanRevisionsRequest;
|
|
1355
|
+
declare function isFicoRevision(revision: ScorePlanRevision): revision is FicoScorePlanRevision;
|
|
1356
|
+
declare function isVantageRevision(revision: ScorePlanRevision): revision is VantageScorePlanRevision;
|
|
1357
|
+
|
|
1358
|
+
declare function isFicoSimulator(data?: CreditScoreSimulator): data is FicoScoreSimulator;
|
|
1359
|
+
declare function isVantageScenario(scenario?: Scenario): scenario is VantageScenario;
|
|
1360
|
+
declare function isFicoScenario(scenario: Scenario): scenario is FicoScenario;
|
|
1361
|
+
declare function isFicoScenarioVariation(variation?: ScenarioVariation): variation is FicoScenarioVariation;
|
|
1362
|
+
declare function isVantageScenarioVariation(variation?: ScenarioVariation): variation is VantageScenarioVariation;
|
|
1363
|
+
|
|
1364
|
+
export { type Account, type AccountClosedDetails, type AccountCurrentDetails, type AccountImprovedDetails, type AccountInBankruptcyDetails, type AccountPaidDetails, type Action, type ActivationRule, type Address, type Alert, type AlertCount, type AlertData, type AlertDetails, type AlertDisposition, type AlertMetadata, type Alerts, type ApiClientResponse, type AttributeCategoryImpact, type AttributeCategoryName, type AttributeCategoryRating, type AttributeCategoryRatingName, type AttributeCategoryRatingScale, type AttributeCategoryRatingScaleType, type AttributeCategoryRatingScaleValue, type AttributeCategoryRatingScaleValueName, type AttributeHardInquiry, type AttributeHighCreditUtilizationAccount, type AttributeOldestOpenAccount, type AttributeRelevantScoreFactor, type AuthAnswer, type AuthAnswersRequest, type AuthCredentials, type AuthQuestion, type AuthQuestions, type AuthServiceConfig, type BearerToken, type Bureau, type CardOverLimitDetails, type ClosedAccountDetails, type CollectionAccount, type CollectionDetails, type Company, type ConnectedSolutionsAPIErrorData, ConnectedSolutionsClientApiError, ConnectedSolutionsClientAuthError, ConnectedSolutionsClientError, type ConnectedSolutionsClientErrors, type ConnectedSolutionsClientMeta, type ConnectedSolutionsClientRawError, ConnectedSolutionsClientSDKError, ConnectedSolutionsClientUnknownError, type ConnectedSolutionsSDK, type ConnectedSolutionsSDKConfig, type ConnectedSolutionsSDKConfigInternal, type ConnectedSolutionsSDKErrorTypes, type ContactInfo, type CreateCustomerOptions, type CreateRegistrationsRequest, type CreateRegistrationsResponse, type CreditAttribute, type CreditAttributeCategory, type CreditAttributes, type CreditBalanceDecreaseDetails, type CreditBalanceIncreaseDetails, type CreditInquiry, type CreditLimitDecreaseDetails, type CreditLimitIncreaseDetails, type CreditReport, type CreditReportMeta, type CreditReportScoreDetail, type CreditReportScoreRating, type CreditReportType, type CreditScore, type CreditScoreBelowGoalDetails, type CreditScoreDecreaseDetails, type CreditScoreFactor, type CreditScoreFeaturePreferences, type CreditScoreGoalAchievedDetails, type CreditScoreIncreaseDetails, type CreditScoreIngredient, type CreditScorePlan, type CreditScorePostRequest, type CreditScoreRatingDecreaseDetails, type CreditScoreRatingIncreaseDetails, type CreditScoreSimulator, type CreditScoreSimulatorPostRequest, type CreditScoreSimulatorPostResponse, type CreditScoreTriggerReasons, type CreditUsageDecreaseDetails, type CreditUsageIncreaseDetails, type CreditorAddress, type Customer, type CustomerAddress, type CustomerDisclosure, type CustomerEmail, type CustomerId, type CustomerPhone, type CustomerSearchOptions, type CustomerSearchResults, type DeceasedDetails, type DerogatoryDetails, type DeserializedAlertsPaginationToken, type DormantAccountDetails, type EntitleCustomerResponse, type EntitledProduct, type EntitledProductStatus, type Entitlement, type EntitlementId, type EntitlementNextAction, type Entitlements, type FicoCreditScorePlan, type FicoCreditScorePlanCompleted, type FicoCreditScorePlanNotSet, type FicoCreditScorePlanSet, type FicoScenario, type FicoScenarioVariation, type FicoScoreModelVersion, type FicoScorePlanCompleted, type FicoScorePlanCreateResponse, type FicoScorePlanRevision, type FicoScorePlanRevisionsRequest, type FicoScorePlanSet, type FicoScoreSimulator, type FicoStatement, type GlobalProductId, type Impact, type ImpactType, type LostOrStolenCardDetails, type MappedScoreModelVersion, type Month, type Name, type NewAccountDetails, type NewAddressDetails, type NewInquiryDetails, type OnDemandEligibility, type PastDueDetails, type PaymentHistoryCode, type PaymentSummary, type PersonalAddress, type PlanCompletedProgressStatus, type PlanNotSetProgressStatus, type PlanSetProgressStatus, type ProductConfigId, type ProductDeliveryCadence, type ProductEligibility, type PublicRecord, type PublicRecordBankruptcyDetails, type ReportDisplay, type ReportDisplayScoreDetails, type Scenario, type ScenarioVariation, type ScoreFactor, type ScoreIngredient, type ScoreIngredientAttribute, type ScoreIngredientAttributeSubValueType, type ScoreIngredientAttributeValueType, type ScoreIngredientImpact, type ScoreIngredientType, type ScoreModel, type ScoreModelVersion, type ScorePlanCompleted, type ScorePlanCreateResponse, type ScorePlanRevision, type ScorePlanRevisionsRequest, type ScorePlanSet, type ScoreRange, type ScoreRating, type ScoreUpdateFrequency, type SettlementDetails, type SimulationCategoryType, type SkipCannotLocateDetails, type SpecialCommentsDetails, type Statement, type Supcontent, type TotalAlertCounts, type VantageCreditScorePlan, type VantageCreditScorePlanCompleted, type VantageCreditScorePlanNotSet, type VantageCreditScorePlanSet, type VantageScenario, type VantageScenarioVariation, type VantageScoreModelVersion, type VantageScorePlanCompleted, type VantageScorePlanCreateResponse, type VantageScorePlanRevision, type VantageScorePlanRevisionsRequest, type VantageScorePlanSet, type VantageScoreSimulator, type VantageStatement, createSDK, createSDK as default, isFicoPlan, isFicoRevision, isFicoRevisionsRequest, isFicoScenario, isFicoScenarioVariation, isFicoSimulator, isPlanCompleted, isPlanSet, isVantagePlan, isVantageRevision, isVantageRevisionsRequest, isVantageScenario, isVantageScenarioVariation };
|