vesant-sdk 1.4.3 → 1.4.4
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/dist/compliance/index.js +13 -22
- package/dist/compliance/index.js.map +1 -1
- package/dist/compliance/index.mjs +13 -22
- package/dist/compliance/index.mjs.map +1 -1
- package/dist/decisions/index.js +1 -1
- package/dist/decisions/index.js.map +1 -1
- package/dist/decisions/index.mjs +1 -1
- package/dist/decisions/index.mjs.map +1 -1
- package/dist/geolocation/index.js +1 -1
- package/dist/geolocation/index.js.map +1 -1
- package/dist/geolocation/index.mjs +1 -1
- package/dist/geolocation/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -22
- package/dist/index.mjs.map +1 -1
- package/dist/kyc/core.js +1 -1
- package/dist/kyc/core.js.map +1 -1
- package/dist/kyc/core.mjs +1 -1
- package/dist/kyc/core.mjs.map +1 -1
- package/dist/kyc/index.js +1 -1
- package/dist/kyc/index.js.map +1 -1
- package/dist/kyc/index.mjs +1 -1
- package/dist/kyc/index.mjs.map +1 -1
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +1 -1
- package/dist/react.mjs.map +1 -1
- package/dist/risk-profile/index.d.mts +0 -4
- package/dist/risk-profile/index.d.ts +0 -4
- package/dist/risk-profile/index.js +13 -22
- package/dist/risk-profile/index.js.map +1 -1
- package/dist/risk-profile/index.mjs +13 -22
- package/dist/risk-profile/index.mjs.map +1 -1
- package/dist/scores/index.js +1 -1
- package/dist/scores/index.js.map +1 -1
- package/dist/scores/index.mjs +1 -1
- package/dist/scores/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -222,7 +222,7 @@ function createConsoleLogger() {
|
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
// src/core/version.ts
|
|
225
|
-
var SDK_VERSION = "1.4.
|
|
225
|
+
var SDK_VERSION = "1.4.4";
|
|
226
226
|
|
|
227
227
|
// src/shared/browser-utils.ts
|
|
228
228
|
function generateUUID() {
|
|
@@ -1248,16 +1248,19 @@ var RiskProfileClient = class extends BaseClient {
|
|
|
1248
1248
|
* ```
|
|
1249
1249
|
*/
|
|
1250
1250
|
async getProfile(customerId, requestOptions) {
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1251
|
+
try {
|
|
1252
|
+
return await this.request(
|
|
1253
|
+
`/api/v1/profiles?customer_id=${encodeURIComponent(customerId)}`,
|
|
1254
|
+
void 0,
|
|
1255
|
+
void 0,
|
|
1256
|
+
requestOptions
|
|
1257
|
+
);
|
|
1258
|
+
} catch (error) {
|
|
1259
|
+
if (error instanceof CGSError && (error.statusCode === 404 || error.code === "NOT_FOUND")) {
|
|
1260
|
+
throw new CGSError(`Profile not found for customer ID: ${customerId}`, "NOT_FOUND", 404);
|
|
1261
|
+
}
|
|
1262
|
+
throw error;
|
|
1259
1263
|
}
|
|
1260
|
-
return profile;
|
|
1261
1264
|
}
|
|
1262
1265
|
/**
|
|
1263
1266
|
* Update customer profile
|
|
@@ -1310,18 +1313,6 @@ var RiskProfileClient = class extends BaseClient {
|
|
|
1310
1313
|
throw error;
|
|
1311
1314
|
}
|
|
1312
1315
|
}
|
|
1313
|
-
/**
|
|
1314
|
-
* Query profiles with filters (internal helper for getProfile)
|
|
1315
|
-
*/
|
|
1316
|
-
async queryProfiles(filters = {}, requestOptions) {
|
|
1317
|
-
const queryString = this.buildQueryString(filters);
|
|
1318
|
-
return this.request(
|
|
1319
|
-
`/api/v1/risk-dashboard/profiles${queryString}`,
|
|
1320
|
-
void 0,
|
|
1321
|
-
void 0,
|
|
1322
|
-
requestOptions
|
|
1323
|
-
);
|
|
1324
|
-
}
|
|
1325
1316
|
};
|
|
1326
1317
|
|
|
1327
1318
|
// src/compliance/types.ts
|