@experian-ecs/connected-api-sdk 1.4.0 → 1.5.0

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.
@@ -12,25 +12,25 @@
12
12
  * OTHER LIABILITY ARISING FROM OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS CODE.
13
13
  */
14
14
 
15
- var Kt = Object.defineProperty;
16
- var Rt = (r) => {
15
+ var zt = Object.defineProperty;
16
+ var Wt = (r) => {
17
17
  throw TypeError(r);
18
18
  };
19
- var Ht = (r, e, t) => e in r ? Kt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
20
- var h = (r, e, t) => Ht(r, typeof e != "symbol" ? e + "" : e, t), ot = (r, e, t) => e.has(r) || Rt("Cannot " + t);
21
- var c = (r, e, t) => (ot(r, e, "read from private field"), t ? t.call(r) : e.get(r)), d = (r, e, t) => e.has(r) ? Rt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), B = (r, e, t, n) => (ot(r, e, "write to private field"), n ? n.call(r, t) : e.set(r, t), t), y = (r, e, t) => (ot(r, e, "access private method"), t);
22
- function Xt(r) {
19
+ var Qt = (r, e, t) => e in r ? zt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
20
+ var h = (r, e, t) => Qt(r, typeof e != "symbol" ? e + "" : e, t), ut = (r, e, t) => e.has(r) || Wt("Cannot " + t);
21
+ var c = (r, e, t) => (ut(r, e, "read from private field"), t ? t.call(r) : e.get(r)), d = (r, e, t) => e.has(r) ? Wt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t), J = (r, e, t, n) => (ut(r, e, "write to private field"), n ? n.call(r, t) : e.set(r, t), t), y = (r, e, t) => (ut(r, e, "access private method"), t);
22
+ function Yt(r) {
23
23
  switch (r.type) {
24
24
  case "client_side_error":
25
- return new zt(r);
25
+ return new Zt(r);
26
26
  case "authentication_error":
27
- return new Qt(r);
27
+ return new qt(r);
28
28
  case "server_side_error":
29
- return new Yt(r);
29
+ return new Ot(r);
30
30
  case "rate_limit_error":
31
- return new qt(r);
31
+ return new ee(r);
32
32
  default:
33
- return new Zt(r);
33
+ return new te(r);
34
34
  }
35
35
  }
36
36
  class p extends Error {
@@ -43,33 +43,33 @@ class p extends Error {
43
43
  this.message = ((n = t.data) == null ? void 0 : n.message) || t.message || "", this.data = t.data, this.status = t.status;
44
44
  }
45
45
  }
46
- h(p, "generateError", Xt);
47
- class zt extends p {
46
+ h(p, "generateError", Yt);
47
+ class Zt extends p {
48
48
  constructor(e) {
49
49
  super(e), this.name = "ConnectedSolutionsClientSideError";
50
50
  }
51
51
  }
52
- class Qt extends p {
52
+ class qt extends p {
53
53
  constructor(e) {
54
54
  super(e), this.name = "ConnectedSolutionsClientAuthenticationError";
55
55
  }
56
56
  }
57
- class Yt extends p {
57
+ class Ot extends p {
58
58
  constructor(e) {
59
59
  super(e), this.name = "ConnectedSolutionsClientServerSideError";
60
60
  }
61
61
  }
62
- class Zt extends p {
62
+ class te extends p {
63
63
  constructor(e) {
64
64
  super(e), this.name = "ConnectedSolutionsClientSDKError";
65
65
  }
66
66
  }
67
- class qt extends p {
67
+ class ee extends p {
68
68
  constructor(e) {
69
69
  super(e), this.name = "ConnectedSolutionsClientRateLimitError";
70
70
  }
71
71
  }
72
- function xt(r) {
72
+ function jt(r) {
73
73
  switch (r) {
74
74
  case "CLIENT_SIDE_ERROR":
75
75
  return "client_side_error";
@@ -83,38 +83,38 @@ function xt(r) {
83
83
  return "sdk_error";
84
84
  }
85
85
  }
86
- function Nt(r) {
86
+ function kt(r) {
87
87
  return r === 401 ? "authentication_error" : r === 429 ? "rate_limit_error" : r && r >= 500 ? "server_side_error" : r && r >= 400 ? "client_side_error" : "sdk_error";
88
88
  }
89
- const Wt = {
89
+ const It = {
90
90
  PRODUCTION: "https://connected-api.experian.com",
91
91
  SANDBOX: "https://sandbox.connected-api.experian.com",
92
92
  UAT: "https://uat.connected-api.experian.com",
93
93
  INTEGRATION: "https://integration.connected-api.experian.com",
94
94
  DEVELOPMENT: "https://develop.connected-api.experian.com"
95
- }, Ot = {
95
+ }, re = {
96
96
  PRODUCTION: "https://unity-contentstack.integration.us-exp-api.experiancs.com",
97
97
  SANDBOX: "https://unity-contentstack.dev.us-exp-api.experiancs.com",
98
98
  UAT: "https://unity-contentstack.dev.us-exp-api.experiancs.com",
99
99
  INTEGRATION: "https://unity-contentstack.dev.us-exp-api.experiancs.com",
100
100
  DEVELOPMENT: "https://unity-contentstack.dev.us-exp-api.experiancs.com"
101
101
  };
102
- var k, ut, jt;
102
+ var I, ht, Lt;
103
103
  class m {
104
104
  constructor(e) {
105
- d(this, k);
105
+ d(this, I);
106
106
  h(this, "config");
107
107
  h(this, "baseUrl", "");
108
108
  h(this, "contentstackUrl", "");
109
109
  const n = e.environment ?? "PRODUCTION";
110
- this.config = e, this.baseUrl = Wt[n], this.contentstackUrl = Ot[n];
110
+ this.config = e, this.baseUrl = It[n], this.contentstackUrl = re[n];
111
111
  }
112
112
  setConfig(e) {
113
113
  "environment" in e && (this.config.environment = e.environment), "token" in e && (this.config.token = e.token);
114
114
  }
115
115
  async fetchWithAuth(e, t) {
116
116
  try {
117
- y(this, k, ut).call(this);
117
+ y(this, I, ht).call(this);
118
118
  const n = typeof Headers < "u" && new Headers(t == null ? void 0 : t.headers);
119
119
  n && !n.Authorization && n.set("Authorization", `Bearer ${this.config.token}`);
120
120
  const s = {
@@ -137,7 +137,7 @@ class m {
137
137
  async fetchRequest(e, t) {
138
138
  var n;
139
139
  try {
140
- y(this, k, ut).call(this);
140
+ y(this, I, ht).call(this);
141
141
  const s = await fetch(e, t);
142
142
  if (!(s != null && s.ok)) {
143
143
  let a;
@@ -148,12 +148,12 @@ class m {
148
148
  };
149
149
  if ((n = s == null ? void 0 : s.headers.get("content-type")) != null && n.includes("application/json")) {
150
150
  const g = await s.clone().json();
151
- u.data = g.error, u.type = xt(g.error.type);
151
+ u.data = g.error, u.type = jt(g.error.type);
152
152
  } else
153
- u.type = Nt(s == null ? void 0 : s.status);
153
+ u.type = kt(s == null ? void 0 : s.status);
154
154
  throw p.generateError(u);
155
155
  }
156
- return y(this, k, jt).call(this, s) ? {
156
+ return y(this, I, Lt).call(this, s) ? {
157
157
  data: await s.clone().json(),
158
158
  error: void 0,
159
159
  meta: {
@@ -181,7 +181,7 @@ class m {
181
181
  }
182
182
  }
183
183
  }
184
- k = new WeakSet(), ut = function() {
184
+ I = new WeakSet(), ht = function() {
185
185
  if (!this.config.token) {
186
186
  const e = {
187
187
  type: "sdk_error",
@@ -189,18 +189,18 @@ k = new WeakSet(), ut = function() {
189
189
  };
190
190
  throw p.generateError(e);
191
191
  }
192
- }, jt = function(e) {
192
+ }, Lt = function(e) {
193
193
  var t, n;
194
194
  return ((t = e == null ? void 0 : e.headers.get("content-type")) == null ? void 0 : t.includes("application/json")) || ((n = e == null ? void 0 : e.headers.get("content-type")) == null ? void 0 : n.includes("application/octet-stream"));
195
195
  };
196
- var z, G, ht;
197
- const Q = class Q extends m {
196
+ var Y, M, yt;
197
+ const Z = class Z extends m {
198
198
  constructor(t) {
199
199
  super(t);
200
- d(this, G);
200
+ d(this, M);
201
201
  }
202
202
  async getCreditScores(t, n) {
203
- const s = t == null ? void 0 : t.version, i = y(this, G, ht).call(this, s), o = {
203
+ const s = t == null ? void 0 : t.version, i = y(this, M, yt).call(this, s), o = {
204
204
  ...t != null && t.product_config_id ? { product_config_id: t.product_config_id } : {},
205
205
  ...t != null && t.include_factors ? { include_factors: t.include_factors.toString() } : {},
206
206
  ...t != null && t.include_ingredients ? { include_ingredients: t.include_ingredients.toString() } : {}
@@ -208,7 +208,7 @@ const Q = class Q extends m {
208
208
  return this.fetchWithAuth(l, n);
209
209
  }
210
210
  async orderCreditScore(t, n) {
211
- const s = t.version, i = y(this, G, ht).call(this, s), o = {
211
+ const s = t.version, i = y(this, M, yt).call(this, s), o = {
212
212
  ...t != null && t.include_factors ? { include_factors: t.include_factors.toString() } : {},
213
213
  ...t != null && t.include_ingredients ? { include_ingredients: t.include_ingredients.toString() } : {}
214
214
  }, a = new URLSearchParams(o).toString(), u = a ? `?${a}` : "", l = `${this.baseUrl}${i}${u}`;
@@ -225,15 +225,15 @@ const Q = class Q extends m {
225
225
  });
226
226
  }
227
227
  };
228
- z = new WeakMap(), G = new WeakSet(), /**
228
+ Y = new WeakMap(), M = new WeakSet(), /**
229
229
  * Get the versioned API path for credit scores.
230
230
  * @param version The API version to use.
231
231
  * @returns The versioned API path.
232
232
  */
233
- ht = function(t = "v1") {
234
- return `/${t}${c(Q, z)}`;
235
- }, d(Q, z, "/credit/scores");
236
- let dt = Q;
233
+ yt = function(t = "v1") {
234
+ return `/${t}${c(Z, Y)}`;
235
+ }, d(Z, Y, "/credit/scores");
236
+ let lt = Z;
237
237
  var f;
238
238
  const $ = class $ extends m {
239
239
  constructor(e) {
@@ -341,29 +341,29 @@ const $ = class $ extends m {
341
341
  }
342
342
  };
343
343
  f = new WeakMap(), d($, f, "/v1/entitlements");
344
- let lt = $;
345
- var Y, Z, It;
346
- const q = class q extends m {
344
+ let gt = $;
345
+ var q, O, Vt;
346
+ const tt = class tt extends m {
347
347
  constructor(t) {
348
348
  super(t);
349
- d(this, Z);
349
+ d(this, O);
350
350
  }
351
351
  async getCreditAttributes(t, n) {
352
- const s = t == null ? void 0 : t.version, i = y(this, Z, It).call(this, s), o = `${this.baseUrl}${i}`;
352
+ const s = t == null ? void 0 : t.version, i = y(this, O, Vt).call(this, s), o = `${this.baseUrl}${i}`;
353
353
  return this.fetchWithAuth(o, n);
354
354
  }
355
355
  };
356
- Y = new WeakMap(), Z = new WeakSet(), /**
356
+ q = new WeakMap(), O = new WeakSet(), /**
357
357
  * Get the versioned API path for credit attributes.
358
358
  * @param version The API version to use.
359
359
  * @returns The versioned API path.
360
360
  */
361
- It = function(t = "v1") {
362
- return `/${t}${c(q, Y)}`;
363
- }, d(q, Y, "/credit/attributes");
364
- let yt = q;
365
- var M;
366
- const D = class D extends m {
361
+ Vt = function(t = "v1") {
362
+ return `/${t}${c(tt, q)}`;
363
+ }, d(tt, q, "/credit/attributes");
364
+ let $t = tt;
365
+ var H;
366
+ const F = class F extends m {
367
367
  constructor(e) {
368
368
  super(e);
369
369
  }
@@ -371,13 +371,13 @@ const D = class D extends m {
371
371
  const n = {
372
372
  ...e,
373
373
  ...e != null && e.run_all ? { run_all: e.run_all.toString() } : {}
374
- }, s = new URLSearchParams(n).toString(), i = s ? `?${s}` : "", o = `${this.baseUrl}${c(D, M)}${i}`;
374
+ }, s = new URLSearchParams(n).toString(), i = s ? `?${s}` : "", o = `${this.baseUrl}${c(F, H)}${i}`;
375
375
  return this.fetchWithAuth(o, t);
376
376
  }
377
377
  async simulateScenario(e, t) {
378
378
  const { product_config_id: n, ...s } = e, i = new URLSearchParams({ product_config_id: n }).toString(), o = i ? `?${i}` : "";
379
379
  return this.fetchWithAuth(
380
- `${this.baseUrl}${c(D, M)}${o}`,
380
+ `${this.baseUrl}${c(F, H)}${o}`,
381
381
  {
382
382
  method: "POST",
383
383
  headers: {
@@ -390,21 +390,21 @@ const D = class D extends m {
390
390
  );
391
391
  }
392
392
  };
393
- M = new WeakMap(), d(D, M, "/v1/credit/tools/simulator");
394
- let gt = D;
395
- var j, O;
396
- const P = class P extends m {
393
+ H = new WeakMap(), d(F, H, "/v1/credit/tools/simulator");
394
+ let ft = F;
395
+ var j, et;
396
+ const U = class U extends m {
397
397
  constructor(e) {
398
398
  super(e);
399
399
  }
400
400
  async getCreditScorePlan(e, t) {
401
- const n = new URLSearchParams(e).toString(), s = n ? `?${n}` : "", i = `${this.baseUrl}${c(P, j)}${s}`;
401
+ const n = new URLSearchParams(e).toString(), s = n ? `?${n}` : "", i = `${this.baseUrl}${c(U, j)}${s}`;
402
402
  return this.fetchWithAuth(i, {
403
403
  ...t ?? {}
404
404
  });
405
405
  }
406
406
  async createCreditScorePlan(e, t) {
407
- const { product_config_id: n, ...s } = e, i = new URLSearchParams({ product_config_id: n }).toString(), o = i ? `?${i}` : "", a = `${this.baseUrl}${c(P, j)}${o}`;
407
+ const { product_config_id: n, ...s } = e, i = new URLSearchParams({ product_config_id: n }).toString(), o = i ? `?${i}` : "", a = `${this.baseUrl}${c(U, j)}${o}`;
408
408
  return this.fetchWithAuth(a, {
409
409
  method: "POST",
410
410
  headers: {
@@ -416,14 +416,14 @@ const P = class P extends m {
416
416
  });
417
417
  }
418
418
  async deleteCreditScorePlan(e, t) {
419
- const n = new URLSearchParams(e).toString(), s = n ? `?${n}` : "", i = `${this.baseUrl}${c(P, j)}${s}`;
419
+ const n = new URLSearchParams(e).toString(), s = n ? `?${n}` : "", i = `${this.baseUrl}${c(U, j)}${s}`;
420
420
  return this.fetchWithAuth(i, {
421
421
  method: "DELETE",
422
422
  ...t ?? {}
423
423
  });
424
424
  }
425
425
  async getCreditScorePlanRevisions(e, t) {
426
- const { product_config_id: n, ...s } = e, i = new URLSearchParams({ product_config_id: n }).toString(), o = i ? `?${i}` : "", a = `${this.baseUrl}${c(P, j)}${c(P, O)}${o}`;
426
+ const { product_config_id: n, ...s } = e, i = new URLSearchParams({ product_config_id: n }).toString(), o = i ? `?${i}` : "", a = `${this.baseUrl}${c(U, j)}${c(U, et)}${o}`;
427
427
  return this.fetchWithAuth(a, {
428
428
  method: "POST",
429
429
  body: JSON.stringify(s),
@@ -435,10 +435,10 @@ const P = class P extends m {
435
435
  });
436
436
  }
437
437
  };
438
- j = new WeakMap(), O = new WeakMap(), d(P, j, "/v1/credit/tools/planners"), d(P, O, "/revisions");
439
- let $t = P;
440
- var I;
441
- const W = class W extends m {
438
+ j = new WeakMap(), et = new WeakMap(), d(U, j, "/v1/credit/tools/planners"), d(U, et, "/revisions");
439
+ let mt = U;
440
+ var k;
441
+ const x = class x extends m {
442
442
  constructor(e) {
443
443
  super(e);
444
444
  }
@@ -447,74 +447,74 @@ const W = class W extends m {
447
447
  page_limit: "10",
448
448
  next_page_token: "",
449
449
  ...e ?? {}
450
- }, s = new URLSearchParams(n).toString(), i = `${this.baseUrl}${c(W, I)}?${s}`;
450
+ }, s = new URLSearchParams(n).toString(), i = `${this.baseUrl}${c(x, k)}?${s}`;
451
451
  return this.fetchWithAuth(i, t);
452
452
  }
453
453
  async getAlertById({ id: e }, t) {
454
- const n = `${this.baseUrl}${c(W, I)}/${e}`;
454
+ const n = `${this.baseUrl}${c(x, k)}/${e}`;
455
455
  return this.fetchWithAuth(n, t);
456
456
  }
457
457
  async markAlertAsRead({ id: e }, t) {
458
- const n = `${this.baseUrl}${c(W, I)}/${e}/dispose`;
458
+ const n = `${this.baseUrl}${c(x, k)}/${e}/dispose`;
459
459
  return this.fetchWithAuth(n, {
460
460
  method: "PATCH",
461
461
  ...t ?? {}
462
462
  });
463
463
  }
464
464
  async getAlertCounts(e) {
465
- const t = `${this.baseUrl}${c(W, I)}/counts`;
465
+ const t = `${this.baseUrl}${c(x, k)}/counts`;
466
466
  return this.fetchWithAuth(t, e);
467
467
  }
468
468
  };
469
- I = new WeakMap(), d(W, I, "/v1/events-alerts");
470
- let ft = W;
471
- function kt(r) {
469
+ k = new WeakMap(), d(x, k, "/v1/events-alerts");
470
+ let bt = x;
471
+ function Bt(r) {
472
472
  return !(r != null && r.version) || (r == null ? void 0 : r.version) === "v1";
473
473
  }
474
- function te(r) {
474
+ function ne(r) {
475
475
  return (r == null ? void 0 : r.version) === "v2";
476
476
  }
477
- function wt(r) {
478
- return r !== void 0 && kt(r) && "include_fields" in r && typeof r.include_fields == "string";
477
+ function xt(r) {
478
+ return r !== void 0 && Bt(r) && "include_fields" in r && typeof r.include_fields == "string";
479
479
  }
480
- function ee(r) {
481
- return r !== void 0 && kt(r) && ("include_fields" in r && typeof r.include_fields == "string" || "report_date" in r && typeof r.report_date == "string" || "product_config_id" in r && typeof r.product_config_id == "string" || "report_between" in r && typeof r.report_between == "string");
480
+ function se(r) {
481
+ return r !== void 0 && Bt(r) && ("include_fields" in r && typeof r.include_fields == "string" || "report_date" in r && typeof r.report_date == "string" || "product_config_id" in r && typeof r.product_config_id == "string" || "report_between" in r && typeof r.report_between == "string");
482
482
  }
483
- function re(r) {
484
- return r !== void 0 && te(r) && ("product_config_id" in r && typeof r.product_config_id == "string" || "report_between" in r && typeof r.report_between == "string");
483
+ function ie(r) {
484
+ return r !== void 0 && ne(r) && ("product_config_id" in r && typeof r.product_config_id == "string" || "report_between" in r && typeof r.report_between == "string");
485
485
  }
486
- var tt, C, N;
487
- const et = class et extends m {
486
+ var rt, v, W;
487
+ const nt = class nt extends m {
488
488
  constructor(t) {
489
489
  super(t);
490
- d(this, C);
490
+ d(this, v);
491
491
  }
492
492
  async getReports(t, n) {
493
- const s = t == null ? void 0 : t.version, i = y(this, C, N).call(this, s), o = {};
494
- ee(t) && (t.report_between && (o.report_between = t.report_between.toString()), t.include_fields && (o.include_fields = t.include_fields.toString()), t.report_date && (o.report_date = t.report_date.toString()), t.product_config_id && (o.product_config_id = t.product_config_id.toString())), re(t) && (t.product_config_id && (o.product_config_id = t.product_config_id.toString()), t.report_between && (o.report_between = t.report_between.toString()));
493
+ const s = t == null ? void 0 : t.version, i = y(this, v, W).call(this, s), o = {};
494
+ se(t) && (t.report_between && (o.report_between = t.report_between.toString()), t.include_fields && (o.include_fields = t.include_fields.toString()), t.report_date && (o.report_date = t.report_date.toString()), t.product_config_id && (o.product_config_id = t.product_config_id.toString())), ie(t) && (t.product_config_id && (o.product_config_id = t.product_config_id.toString()), t.report_between && (o.report_between = t.report_between.toString()));
495
495
  const a = new URLSearchParams(o).toString(), u = a ? `?${a}` : "", l = `${this.baseUrl}${i}${u}`;
496
496
  return this.fetchWithAuth(l, n);
497
497
  }
498
498
  async getReportById(t, n) {
499
- const { id: s, version: i } = t, o = y(this, C, N).call(this, i), a = {};
500
- wt(t) && (a.include_fields = t.include_fields.toString());
499
+ const { id: s, version: i } = t, o = y(this, v, W).call(this, i), a = {};
500
+ xt(t) && (a.include_fields = t.include_fields.toString());
501
501
  const u = new URLSearchParams(a).toString(), l = u ? `?${u}` : "", g = `${this.baseUrl}${o}/${s}${l}`;
502
502
  return this.fetchWithAuth(g, n);
503
503
  }
504
504
  async getReportsMeta(t, n) {
505
- const { version: s, latest_only: i, report_read: o, ...a } = t ?? {}, u = y(this, C, N).call(this, s), l = {
505
+ const { version: s, latest_only: i, report_read: o, ...a } = t ?? {}, u = y(this, v, W).call(this, s), l = {
506
506
  ...a ?? {},
507
507
  ...i ? { latest_only: i.toString() } : {},
508
508
  ...o ? { report_read: o.toString() } : {}
509
- }, g = new URLSearchParams(l).toString(), T = g ? `?${g}` : "", ct = `${this.baseUrl}${u}/meta${T}`;
510
- return this.fetchWithAuth(ct, n);
509
+ }, g = new URLSearchParams(l).toString(), T = g ? `?${g}` : "", at = `${this.baseUrl}${u}/meta${T}`;
510
+ return this.fetchWithAuth(at, n);
511
511
  }
512
512
  async getReportMetaById(t, n) {
513
- const { id: s, version: i, ...o } = t, a = y(this, C, N).call(this, i), u = new URLSearchParams(o).toString(), l = u ? `?${u}` : "", g = `${this.baseUrl}${a}/${s}/meta${l}`;
513
+ const { id: s, version: i, ...o } = t, a = y(this, v, W).call(this, i), u = new URLSearchParams(o).toString(), l = u ? `?${u}` : "", g = `${this.baseUrl}${a}/${s}/meta${l}`;
514
514
  return this.fetchWithAuth(g, n);
515
515
  }
516
516
  async markReportAsRead(t, n) {
517
- const { id: s, version: i } = t, o = y(this, C, N).call(this, i), a = `${this.baseUrl}${o}`;
517
+ const { id: s, version: i } = t, o = y(this, v, W).call(this, i), a = `${this.baseUrl}${o}`;
518
518
  if (i === "v2") {
519
519
  const l = `${a}/${s}/disposition`, g = t;
520
520
  return this.fetchWithAuth(l, {
@@ -536,8 +536,8 @@ const et = class et extends m {
536
536
  });
537
537
  }
538
538
  async orderReport(t, n) {
539
- const s = {}, i = t == null ? void 0 : t.version, o = y(this, C, N).call(this, i);
540
- wt(t) && (s.include_fields = t.include_fields.toString());
539
+ const s = {}, i = t == null ? void 0 : t.version, o = y(this, v, W).call(this, i);
540
+ xt(t) && (s.include_fields = t.include_fields.toString());
541
541
  const a = new URLSearchParams(s).toString(), u = a ? `?${a}` : "", l = `${this.baseUrl}${o}${u}`;
542
542
  return this.fetchWithAuth(l, {
543
543
  method: "POST",
@@ -552,15 +552,15 @@ const et = class et extends m {
552
552
  });
553
553
  }
554
554
  };
555
- tt = new WeakMap(), C = new WeakSet(), /**
555
+ rt = new WeakMap(), v = new WeakSet(), /**
556
556
  * Get the versioned API path for credit reports.
557
557
  * @param version The API version to use.
558
558
  * @returns The versioned API path.
559
559
  */
560
- N = function(t = "v1") {
561
- return `/${t}${c(et, tt)}`;
562
- }, d(et, tt, "/credit/reports");
563
- let mt = et;
560
+ W = function(t = "v1") {
561
+ return `/${t}${c(nt, rt)}`;
562
+ }, d(nt, rt, "/credit/reports");
563
+ let _t = nt;
564
564
  var w;
565
565
  const R = class R extends m {
566
566
  constructor(e) {
@@ -615,18 +615,18 @@ const R = class R extends m {
615
615
  }
616
616
  };
617
617
  w = new WeakMap(), d(R, w, "/v1/customers");
618
- let bt = R;
619
- var K;
620
- const J = class J extends m {
618
+ let St = R;
619
+ var X;
620
+ const K = class K extends m {
621
621
  constructor(e) {
622
622
  super(e);
623
623
  }
624
624
  async getAuthQuestions(e) {
625
- const t = `${this.baseUrl}${c(J, K)}/questions`;
625
+ const t = `${this.baseUrl}${c(K, X)}/questions`;
626
626
  return this.fetchWithAuth(t, e);
627
627
  }
628
628
  async submitAuthAnswers(e, t) {
629
- const n = `${this.baseUrl}${c(J, K)}/questions`;
629
+ const n = `${this.baseUrl}${c(K, X)}/questions`;
630
630
  return this.fetchWithAuth(n, {
631
631
  method: "POST",
632
632
  headers: {
@@ -638,15 +638,15 @@ const J = class J extends m {
638
638
  });
639
639
  }
640
640
  };
641
- K = new WeakMap(), d(J, K, "/v1/authentication");
642
- let _t = J;
643
- var rt;
644
- const nt = class nt extends m {
641
+ X = new WeakMap(), d(K, X, "/v1/authentication");
642
+ let At = K;
643
+ var st;
644
+ const it = class it extends m {
645
645
  constructor(e) {
646
646
  super(e);
647
647
  }
648
648
  async createRegistration(e, t) {
649
- const n = `${this.baseUrl}${c(nt, rt)}`;
649
+ const n = `${this.baseUrl}${c(it, st)}`;
650
650
  return this.fetchWithAuth(n, {
651
651
  method: "POST",
652
652
  headers: {
@@ -658,52 +658,52 @@ const nt = class nt extends m {
658
658
  });
659
659
  }
660
660
  };
661
- rt = new WeakMap(), d(nt, rt, "/v1/registrations");
662
- let St = nt;
663
- var st, H, Tt;
664
- const it = class it extends m {
661
+ st = new WeakMap(), d(it, st, "/v1/registrations");
662
+ let Tt = it;
663
+ var ct, z, Ut;
664
+ const ot = class ot extends m {
665
665
  constructor(t) {
666
666
  super(t);
667
- d(this, H);
667
+ d(this, z);
668
668
  }
669
669
  async getProductConfigs(t, n) {
670
- const { fromEntries: s, entries: i } = Object, { isArray: o } = Array, a = t == null ? void 0 : t.version, u = y(this, H, Tt).call(this, a), { version: l, ...g } = s(
671
- i(t).filter(([Et, L]) => L != null).map(([Et, L]) => [
672
- Et,
670
+ const { fromEntries: s, entries: i } = Object, { isArray: o } = Array, a = t == null ? void 0 : t.version, u = y(this, z, Ut).call(this, a), { version: l, ...g } = s(
671
+ i(t).filter(([Nt, L]) => L != null).map(([Nt, L]) => [
672
+ Nt,
673
673
  o(L) ? L.join(",") : L.toString()
674
674
  ])
675
- ), T = new URLSearchParams(g).toString(), ct = T ? `?${T}` : "", Mt = `${this.baseUrl}${u}${ct}`;
676
- return this.fetchWithAuth(Mt, {
675
+ ), T = new URLSearchParams(g).toString(), at = T ? `?${T}` : "", Xt = `${this.baseUrl}${u}${at}`;
676
+ return this.fetchWithAuth(Xt, {
677
677
  ...n || {}
678
678
  });
679
679
  }
680
680
  async getProductConfigById(t, n) {
681
- const s = t == null ? void 0 : t.version, i = y(this, H, Tt).call(this, s), o = `${this.baseUrl}${i}/${t.product_config_id}`;
681
+ const s = t == null ? void 0 : t.version, i = y(this, z, Ut).call(this, s), o = `${this.baseUrl}${i}/${t.product_config_id}`;
682
682
  return this.fetchWithAuth(o, {
683
683
  ...n ?? {}
684
684
  });
685
685
  }
686
686
  };
687
- st = new WeakMap(), H = new WeakSet(), /**
687
+ ct = new WeakMap(), z = new WeakSet(), /**
688
688
  * Get the versioned API path for Product Config.
689
689
  * @param version The API version to use.
690
690
  * @returns The versioned API path.
691
691
  */
692
- Tt = function(t = "v1") {
693
- return `/${t}${c(it, st)}`;
694
- }, d(it, st, "/product-configs");
695
- let At = it;
692
+ Ut = function(t = "v1") {
693
+ return `/${t}${c(ot, ct)}`;
694
+ }, d(ot, ct, "/product-configs");
695
+ let pt = ot;
696
696
  var E;
697
- const U = class U extends m {
697
+ const P = class P extends m {
698
698
  constructor(e) {
699
699
  super(e);
700
700
  }
701
701
  async getSurvey(e) {
702
- const t = `${this.baseUrl}${c(U, E)}/surveys`;
702
+ const t = `${this.baseUrl}${c(P, E)}/surveys`;
703
703
  return this.fetchWithAuth(t, e);
704
704
  }
705
705
  async submitSurvey(e, t) {
706
- const n = `${this.baseUrl}${c(U, E)}/surveys`;
706
+ const n = `${this.baseUrl}${c(P, E)}/surveys`;
707
707
  return this.fetchWithAuth(n, {
708
708
  method: "POST",
709
709
  headers: {
@@ -715,7 +715,7 @@ const U = class U extends m {
715
715
  });
716
716
  }
717
717
  async getScore(e) {
718
- const t = `${this.baseUrl}${c(U, E)}/scores?latest=TRUE`;
718
+ const t = `${this.baseUrl}${c(P, E)}/scores?latest=TRUE`;
719
719
  return this.fetchWithAuth(t, e);
720
720
  }
721
721
  async getPlan(e, t) {
@@ -723,11 +723,11 @@ const U = class U extends m {
723
723
  action_status: e.action_status,
724
724
  ...e.cursor ? { cursor: e.cursor } : {},
725
725
  ...e.count ? { count: e.count.toString() } : {}
726
- }, s = new URLSearchParams(n).toString(), i = s ? `?${s}` : "", o = `${this.baseUrl}${c(U, E)}/plans${i}`;
726
+ }, s = new URLSearchParams(n).toString(), i = s ? `?${s}` : "", o = `${this.baseUrl}${c(P, E)}/plans${i}`;
727
727
  return this.fetchWithAuth(o, t);
728
728
  }
729
729
  async createPlan(e) {
730
- const t = `${this.baseUrl}${c(U, E)}/plans`;
730
+ const t = `${this.baseUrl}${c(P, E)}/plans`;
731
731
  return this.fetchWithAuth(t, {
732
732
  method: "POST",
733
733
  headers: {
@@ -739,7 +739,7 @@ const U = class U extends m {
739
739
  });
740
740
  }
741
741
  async updateAction(e, t) {
742
- const { action_id: n, ...s } = e, i = `${this.baseUrl}${c(U, E)}/plans/actions/${n}`;
742
+ const { action_id: n, ...s } = e, i = `${this.baseUrl}${c(P, E)}/plans/actions/${n}`;
743
743
  return this.fetchWithAuth(i, {
744
744
  method: "PUT",
745
745
  headers: {
@@ -751,8 +751,8 @@ const U = class U extends m {
751
751
  });
752
752
  }
753
753
  };
754
- E = new WeakMap(), d(U, E, "/v1/ihs");
755
- let pt = U;
754
+ E = new WeakMap(), d(P, E, "/v1/ihs");
755
+ let Pt = P;
756
756
  var _;
757
757
  const b = class b extends m {
758
758
  constructor(e) {
@@ -855,49 +855,101 @@ const b = class b extends m {
855
855
  }
856
856
  };
857
857
  _ = new WeakMap(), d(b, _, "/v1/dim");
858
- let Pt = b;
859
- const at = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
858
+ let Ct = b;
859
+ var B;
860
+ const V = class V extends m {
861
+ constructor(e) {
862
+ super(e);
863
+ }
864
+ /**
865
+ * Get the current credit lock status
866
+ */
867
+ async getCreditLockStatus(e, t) {
868
+ const n = new URLSearchParams({
869
+ product_config_id: e.product_config_id
870
+ }).toString(), s = n ? `?${n}` : "", i = `${this.baseUrl}${c(V, B)}/lock-status${s}`;
871
+ return this.fetchWithAuth(i, t);
872
+ }
873
+ /**
874
+ * Lock credit file
875
+ */
876
+ async lockCredit(e, t) {
877
+ const n = `${this.baseUrl}${c(V, B)}/lock`;
878
+ return this.fetchWithAuth(n, {
879
+ method: "POST",
880
+ headers: {
881
+ ...(t == null ? void 0 : t.headers) ?? {},
882
+ "Content-Type": "application/json"
883
+ },
884
+ body: JSON.stringify({
885
+ product_config_id: e.product_config_id
886
+ }),
887
+ ...t ?? {}
888
+ });
889
+ }
890
+ /**
891
+ * Unlock credit file
892
+ */
893
+ async unlockCredit(e, t) {
894
+ const n = `${this.baseUrl}${c(V, B)}/unlock`;
895
+ return this.fetchWithAuth(n, {
896
+ method: "POST",
897
+ headers: {
898
+ ...(t == null ? void 0 : t.headers) ?? {},
899
+ "Content-Type": "application/json"
900
+ },
901
+ body: JSON.stringify({
902
+ product_config_id: e.product_config_id
903
+ }),
904
+ ...t ?? {}
905
+ });
906
+ }
907
+ };
908
+ B = new WeakMap(), d(V, B, "/v1/credit");
909
+ let vt = V;
910
+ const dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
860
911
  __proto__: null,
861
- AlertsService: ft,
862
- CreditAttributesService: yt,
863
- CreditReportsService: mt,
864
- CreditScorePlannerService: $t,
865
- CreditScoreSimulatorService: gt,
866
- CreditScoresService: dt,
867
- CustomerAuthService: _t,
868
- CustomersService: bt,
869
- DigitalIdentityManagerService: Pt,
870
- EntitlementsService: lt,
871
- IdentityHealthScoreService: pt,
872
- ProductConfigsService: At,
873
- RegistrationsService: St
912
+ AlertsService: bt,
913
+ CreditAttributesService: $t,
914
+ CreditLockUnlockService: vt,
915
+ CreditReportsService: _t,
916
+ CreditScorePlannerService: mt,
917
+ CreditScoreSimulatorService: ft,
918
+ CreditScoresService: lt,
919
+ CustomerAuthService: At,
920
+ CustomersService: St,
921
+ DigitalIdentityManagerService: Ct,
922
+ EntitlementsService: gt,
923
+ IdentityHealthScoreService: Pt,
924
+ ProductConfigsService: pt,
925
+ RegistrationsService: Tt
874
926
  }, Symbol.toStringTag, { value: "Module" }));
875
- function ne(r) {
927
+ function ce(r) {
876
928
  return `${r[0].toLowerCase()}${r.substring(1)}`.replace(
877
929
  "Service",
878
930
  ""
879
931
  );
880
932
  }
881
- const se = typeof process < "u" && process.versions && process.versions.node && typeof window > "u";
882
- var S, V, X, A, Lt, vt, Vt, Bt;
883
- const F = class F {
933
+ const oe = typeof process < "u" && process.versions && process.versions.node && typeof window > "u";
934
+ var S, D, Q, A, Dt, Rt, Jt, Ft;
935
+ const G = class G {
884
936
  constructor(e) {
885
937
  d(this, A);
886
938
  h(this, "config");
887
939
  d(this, S);
888
- d(this, V, null);
940
+ d(this, D, null);
889
941
  h(this, "baseUrl", "");
890
- this.config = e, this.baseUrl = Wt[e.environment ?? "PRODUCTION"], B(this, S, /* @__PURE__ */ new Map());
942
+ this.config = e, this.baseUrl = It[e.environment ?? "PRODUCTION"], J(this, S, /* @__PURE__ */ new Map());
891
943
  }
892
944
  async getAccessToken(e) {
893
- if (!se)
945
+ if (!oe)
894
946
  throw p.generateError({
895
947
  type: "sdk_error",
896
948
  message: "getAccessToken is not supported in browser"
897
949
  });
898
950
  try {
899
951
  return {
900
- data: await y(this, A, Lt).call(this, e),
952
+ data: await y(this, A, Dt).call(this, e),
901
953
  errors: void 0,
902
954
  meta: {
903
955
  status: 200,
@@ -919,22 +971,22 @@ const F = class F {
919
971
  return c(this, S).size;
920
972
  }
921
973
  clearCache() {
922
- const e = `${this.baseUrl}${c(F, X)}`, t = Array.from(c(this, S).keys()).filter(
974
+ const e = `${this.baseUrl}${c(G, Q)}`, t = Array.from(c(this, S).keys()).filter(
923
975
  (n) => n.includes(e)
924
976
  );
925
977
  for (const n of t)
926
978
  c(this, S).delete(n);
927
979
  }
928
980
  };
929
- S = new WeakMap(), V = new WeakMap(), X = new WeakMap(), A = new WeakSet(), Lt = async function({
981
+ S = new WeakMap(), D = new WeakMap(), Q = new WeakMap(), A = new WeakSet(), Dt = async function({
930
982
  grantType: e,
931
983
  clientId: t,
932
984
  clientSecret: n,
933
985
  customerId: s
934
986
  }) {
935
987
  var l;
936
- y(this, A, Vt).call(this);
937
- const i = `${this.baseUrl}${c(F, X)}`, o = {
988
+ y(this, A, Jt).call(this);
989
+ const i = `${this.baseUrl}${c(G, Q)}`, o = {
938
990
  method: "POST",
939
991
  headers: { "content-type": "application/json" },
940
992
  credentials: "include",
@@ -944,10 +996,10 @@ S = new WeakMap(), V = new WeakMap(), X = new WeakMap(), A = new WeakSet(), Lt =
944
996
  client_secret: n,
945
997
  ...e === "trusted_partner" ? { partner_customer_id: s ?? "" } : {}
946
998
  })
947
- }, a = await y(this, A, Bt).call(this, i, o);
999
+ }, a = await y(this, A, Ft).call(this, i, o);
948
1000
  if (a != null && a.ok) {
949
1001
  const T = await a.clone().json();
950
- return c(this, V) === null && y(this, A, vt).call(this, T.expires_in), T;
1002
+ return c(this, D) === null && y(this, A, Rt).call(this, T.expires_in), T;
951
1003
  }
952
1004
  const u = {
953
1005
  type: "sdk_error",
@@ -958,30 +1010,30 @@ S = new WeakMap(), V = new WeakMap(), X = new WeakMap(), A = new WeakSet(), Lt =
958
1010
  };
959
1011
  if ((l = a == null ? void 0 : a.headers.get("content-type")) != null && l.includes("application/json")) {
960
1012
  const T = await a.clone().json();
961
- u.data = T.error, u.type = xt(T.error.type);
1013
+ u.data = T.error, u.type = jt(T.error.type);
962
1014
  } else
963
- u.type = Nt(a == null ? void 0 : a.status);
1015
+ u.type = kt(a == null ? void 0 : a.status);
964
1016
  throw p.generateError(u);
965
- }, vt = function(e) {
1017
+ }, Rt = function(e) {
966
1018
  const t = (/* @__PURE__ */ new Date()).getTime(), n = 60 * 60 * 1e3, s = t + n, i = e === null ? e : new Date(s).valueOf();
967
- B(this, V, i);
968
- }, Vt = function() {
969
- const e = new Date(Date.now()), t = new Date(c(this, V) ?? Number.NaN);
970
- ie(e, t) && (y(this, A, vt).call(this, null), c(this, S).clear());
971
- }, Bt = async function(e, t) {
1019
+ J(this, D, i);
1020
+ }, Jt = function() {
1021
+ const e = new Date(Date.now()), t = new Date(c(this, D) ?? Number.NaN);
1022
+ ae(e, t) && (y(this, A, Rt).call(this, null), c(this, S).clear());
1023
+ }, Ft = async function(e, t) {
972
1024
  const n = `${e}${JSON.stringify(t || {})}`;
973
1025
  if (!c(this, S).has(n)) {
974
1026
  const s = fetch(e, t ?? {});
975
1027
  c(this, S).set(n, s);
976
1028
  }
977
1029
  return await c(this, S).get(n);
978
- }, d(F, X, "/v1/oauth2/token");
979
- let Ut = F;
980
- function ie(r, e) {
1030
+ }, d(G, Q, "/v1/oauth2/token");
1031
+ let Et = G;
1032
+ function ae(r, e) {
981
1033
  return r > e;
982
1034
  }
983
- var x;
984
- const v = class v extends m {
1035
+ var N;
1036
+ const C = class C extends m {
985
1037
  // constructor is private so that no other class can access it.
986
1038
  constructor(t) {
987
1039
  super(t);
@@ -999,182 +1051,188 @@ const v = class v extends m {
999
1051
  h(this, "registrations");
1000
1052
  h(this, "identityHealthScore");
1001
1053
  h(this, "digitalIdentityManager");
1002
- for (const n in at)
1003
- typeof at[n] == "function" && (this[ne(n)] = new at[n](t));
1004
- this.auth = new Ut({
1054
+ h(this, "creditLockUnlock");
1055
+ for (const n in dt)
1056
+ typeof dt[n] == "function" && (this[ce(n)] = new dt[n](t));
1057
+ this.auth = new Et({
1005
1058
  environment: t.environment
1006
1059
  });
1007
1060
  }
1008
1061
  // new services go here
1009
1062
  // The method is static as we need to access the method only through the class here
1010
1063
  static getInstance(t) {
1011
- return c(v, x) || B(v, x, new v(t)), c(v, x);
1064
+ return c(C, N) || J(C, N, new C(t)), c(C, N);
1012
1065
  }
1013
1066
  static clearInstance() {
1014
- B(v, x, null);
1067
+ J(C, N, null);
1015
1068
  }
1016
1069
  };
1017
- x = new WeakMap(), d(v, x, null);
1018
- let Ct = v;
1019
- function fe(r) {
1020
- return Ct.getInstance(r);
1070
+ N = new WeakMap(), d(C, N, null);
1071
+ let wt = C;
1072
+ function _e(r) {
1073
+ return wt.getInstance(r);
1021
1074
  }
1022
- function ce(r) {
1075
+ function ue(r) {
1023
1076
  return r.progress_status === "TARGET_NOT_MET" || r.progress_status === "COMPLETED";
1024
1077
  }
1025
- function me(r) {
1026
- return ce(r) || r.progress_status === "TARGET_SCORE_AND_PLAN_SET" || r.progress_status === "ON_TRACK" || r.progress_status === "OFF_TRACK";
1078
+ function Se(r) {
1079
+ return ue(r) || r.progress_status === "TARGET_SCORE_AND_PLAN_SET" || r.progress_status === "ON_TRACK" || r.progress_status === "OFF_TRACK";
1027
1080
  }
1028
- function be(r) {
1081
+ function Ae(r) {
1029
1082
  return r.score_model.includes("VANTAGE");
1030
1083
  }
1031
- function _e(r) {
1084
+ function Te(r) {
1032
1085
  return r.score_model.includes("FICO");
1033
1086
  }
1034
- function Se(r) {
1087
+ function pe(r) {
1035
1088
  return r.target_score !== void 0;
1036
1089
  }
1037
- function Ae(r) {
1090
+ function Ue(r) {
1038
1091
  return r.max_actions_per_plan !== void 0;
1039
1092
  }
1040
- function Te(r) {
1093
+ function Pe(r) {
1041
1094
  return r.score_model.includes("FICO");
1042
1095
  }
1043
- function pe(r) {
1096
+ function Ce(r) {
1044
1097
  return r.score_model.includes("VANTAGE");
1045
1098
  }
1046
- function Pe(r) {
1099
+ function ve(r) {
1047
1100
  return !!(r && "best_action" in r);
1048
1101
  }
1049
- function Ue(r) {
1102
+ function Ee(r) {
1050
1103
  return !!(r && "simulated_score" in r);
1051
1104
  }
1052
- function ve(r) {
1105
+ function Re(r) {
1053
1106
  return !("simulated_score" in r);
1054
1107
  }
1055
- function Ce(r) {
1108
+ function we(r) {
1056
1109
  return !!(r && "slider_min_value" in r && "slider_max_value" in r);
1057
1110
  }
1058
- function Ee(r) {
1111
+ function Ne(r) {
1059
1112
  return !!(r && "value" in r && "simulated_score" in r);
1060
1113
  }
1061
- function Re(r) {
1114
+ function We(r) {
1062
1115
  return r === "v1" || r === "v2";
1063
1116
  }
1064
- function Dt(r) {
1117
+ function Kt(r) {
1065
1118
  if (typeof r != "object" || r === null) return !1;
1066
1119
  const e = r;
1067
- return typeof e.score_id == "string" && Ft(e.bureau) && typeof e.score == "number" && typeof e.score_date == "string";
1120
+ return typeof e.score_id == "string" && Mt(e.bureau) && typeof e.score == "number" && typeof e.score_date == "string";
1068
1121
  }
1069
- function Jt(r) {
1122
+ function Gt(r) {
1070
1123
  if (typeof r != "object" || r === null) return !1;
1071
1124
  const e = r;
1072
- return typeof e.id == "string" && Array.isArray(e.bureau_scores) && e.bureau_scores.every((t) => oe(t));
1125
+ return typeof e.id == "string" && Array.isArray(e.bureau_scores) && e.bureau_scores.every((t) => de(t));
1073
1126
  }
1074
- function oe(r) {
1127
+ function de(r) {
1075
1128
  if (typeof r != "object" || r === null) return !1;
1076
1129
  const e = r;
1077
- return Ft(e.bureau) && typeof e.score == "number" && typeof e.score_date == "string";
1130
+ return Mt(e.bureau) && typeof e.score == "number" && typeof e.score_date == "string";
1078
1131
  }
1079
- function Ft(r) {
1132
+ function Mt(r) {
1080
1133
  return r === "EXPERIAN" || r === "EQUIFAX" || r === "TRANSUNION";
1081
1134
  }
1082
- function ae(r) {
1135
+ function he(r) {
1083
1136
  return typeof r == "object" && r !== null && "items" in r && Array.isArray(r.items) && r.items.every(
1084
- (e) => Jt(e)
1137
+ (e) => Gt(e)
1085
1138
  );
1086
1139
  }
1087
- function ue(r) {
1088
- return Array.isArray(r) && r.every((e) => Dt(e));
1089
- }
1090
- function we(r) {
1091
- return ue(r);
1140
+ function le(r) {
1141
+ return Array.isArray(r) && r.every((e) => Kt(e));
1092
1142
  }
1093
1143
  function xe(r) {
1094
- return ae(r);
1144
+ return le(r);
1095
1145
  }
1096
- function Ne(r) {
1097
- return Dt(r);
1146
+ function je(r) {
1147
+ return he(r);
1098
1148
  }
1099
- function We(r) {
1100
- return Jt(r);
1149
+ function ke(r) {
1150
+ return Kt(r);
1101
1151
  }
1102
- function de(r) {
1152
+ function Ie(r) {
1153
+ return Gt(r);
1154
+ }
1155
+ function ye(r) {
1103
1156
  if (typeof r != "object" || r === null) return !1;
1104
1157
  const e = r;
1105
- return Gt(e.bureau) && typeof e.reported_at == "string" && typeof e.categories == "object" && typeof e.attributes == "object";
1158
+ return Ht(e.bureau) && typeof e.reported_at == "string" && typeof e.categories == "object" && typeof e.attributes == "object";
1106
1159
  }
1107
- function he(r) {
1160
+ function ge(r) {
1108
1161
  if (typeof r != "object" || r === null) return !1;
1109
1162
  const e = r;
1110
1163
  return typeof e.id == "string" && Array.isArray(e.bureau_attributes) && e.bureau_attributes.every(
1111
- (t) => le(t)
1164
+ (t) => $e(t)
1112
1165
  );
1113
1166
  }
1114
- function le(r) {
1167
+ function $e(r) {
1115
1168
  if (typeof r != "object" || r === null) return !1;
1116
1169
  const e = r;
1117
- return Gt(e.bureau) && typeof e.reported_at == "string" && typeof e.categories == "object" && typeof e.attributes == "object";
1170
+ return Ht(e.bureau) && typeof e.reported_at == "string" && typeof e.categories == "object" && typeof e.attributes == "object";
1118
1171
  }
1119
- function Gt(r) {
1172
+ function Ht(r) {
1120
1173
  return r === "EXPERIAN" || r === "EQUIFAX" || r === "TRANSUNION";
1121
1174
  }
1122
- function ye(r) {
1175
+ function fe(r) {
1123
1176
  return typeof r == "object" && r !== null && "items" in r && Array.isArray(r.items) && r.items.every(
1124
- (e) => he(e)
1177
+ (e) => ge(e)
1125
1178
  );
1126
1179
  }
1127
- function ge(r) {
1128
- return Array.isArray(r) && r.every((e) => de(e));
1180
+ function me(r) {
1181
+ return Array.isArray(r) && r.every((e) => ye(e));
1129
1182
  }
1130
- function je(r) {
1131
- return ge(r);
1183
+ function Le(r) {
1184
+ return me(r);
1132
1185
  }
1133
- function Ie(r) {
1134
- return ye(r);
1186
+ function Ve(r) {
1187
+ return fe(r);
1135
1188
  }
1189
+ const Be = {
1190
+ LOCKED: "LOCKED",
1191
+ UNLOCKED: "UNLOCKED"
1192
+ };
1136
1193
  export {
1137
- Qt as ConnectedSolutionsClientAuthenticationError,
1194
+ qt as ConnectedSolutionsClientAuthenticationError,
1138
1195
  p as ConnectedSolutionsClientError,
1139
- qt as ConnectedSolutionsClientRateLimitError,
1140
- Zt as ConnectedSolutionsClientSDKError,
1141
- Yt as ConnectedSolutionsClientServerSideError,
1142
- zt as ConnectedSolutionsClientSideError,
1143
- fe as createSDK,
1144
- fe as default,
1145
- le as isBureauAttribute,
1146
- oe as isBureauScore,
1147
- de as isCreditAttribute,
1148
- ge as isCreditAttributeArray,
1149
- he as isCreditAttributeV2,
1150
- ye as isCreditAttributesV2,
1151
- Dt as isCreditScore,
1152
- ue as isCreditScoreArray,
1153
- Jt as isCreditScoreV2,
1154
- ae as isCreditScoresV2,
1155
- _e as isFicoPlan,
1156
- Te as isFicoRevision,
1157
- Se as isFicoRevisionsRequest,
1158
- ve as isFicoScenario,
1159
- Ce as isFicoScenarioVariation,
1160
- Pe as isFicoSimulator,
1161
- ce as isPlanCompleted,
1162
- me as isPlanSet,
1163
- je as isV1GetCreditAttributesResponse,
1164
- we as isV1GetCreditScoresResponse,
1165
- Ne as isV1PostCreditScoresResponse,
1166
- Ie as isV2GetCreditAttributesResponse,
1167
- xe as isV2GetCreditScoresResponse,
1168
- We as isV2PostCreditScoresResponse,
1169
- Re as isValidApiVersion,
1170
- Ft as isValidBureau,
1171
- Gt as isValidBureauAttribute,
1172
- be as isVantagePlan,
1173
- pe as isVantageRevision,
1174
- Ae as isVantageRevisionsRequest,
1175
- Ue as isVantageScenario,
1176
- Ee as isVantageScenarioVariation,
1177
- xt as mapApiErrorTypeToSDKErrorType,
1178
- Nt as mapHttpStatusToSDKErrorType
1196
+ ee as ConnectedSolutionsClientRateLimitError,
1197
+ te as ConnectedSolutionsClientSDKError,
1198
+ Ot as ConnectedSolutionsClientServerSideError,
1199
+ Zt as ConnectedSolutionsClientSideError,
1200
+ Be as LOCK_STATUS,
1201
+ _e as createSDK,
1202
+ _e as default,
1203
+ $e as isBureauAttribute,
1204
+ de as isBureauScore,
1205
+ ye as isCreditAttribute,
1206
+ me as isCreditAttributeArray,
1207
+ ge as isCreditAttributeV2,
1208
+ fe as isCreditAttributesV2,
1209
+ Kt as isCreditScore,
1210
+ le as isCreditScoreArray,
1211
+ Gt as isCreditScoreV2,
1212
+ he as isCreditScoresV2,
1213
+ Te as isFicoPlan,
1214
+ Pe as isFicoRevision,
1215
+ pe as isFicoRevisionsRequest,
1216
+ Re as isFicoScenario,
1217
+ we as isFicoScenarioVariation,
1218
+ ve as isFicoSimulator,
1219
+ ue as isPlanCompleted,
1220
+ Se as isPlanSet,
1221
+ Le as isV1GetCreditAttributesResponse,
1222
+ xe as isV1GetCreditScoresResponse,
1223
+ ke as isV1PostCreditScoresResponse,
1224
+ Ve as isV2GetCreditAttributesResponse,
1225
+ je as isV2GetCreditScoresResponse,
1226
+ Ie as isV2PostCreditScoresResponse,
1227
+ We as isValidApiVersion,
1228
+ Mt as isValidBureau,
1229
+ Ht as isValidBureauAttribute,
1230
+ Ae as isVantagePlan,
1231
+ Ce as isVantageRevision,
1232
+ Ue as isVantageRevisionsRequest,
1233
+ Ee as isVantageScenario,
1234
+ Ne as isVantageScenarioVariation,
1235
+ jt as mapApiErrorTypeToSDKErrorType,
1236
+ kt as mapHttpStatusToSDKErrorType
1179
1237
  };
1180
1238
  //# sourceMappingURL=index.mjs.map