cgs-compliance-sdk 2.0.3 → 2.0.5
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/client-BIRcQF2C.d.ts +619 -0
- package/dist/client-CPBy8d1H.d.mts +619 -0
- package/dist/compliance/index.d.mts +231 -0
- package/dist/compliance/index.d.ts +231 -0
- package/dist/compliance/index.js +17 -19
- package/dist/compliance/index.js.map +1 -1
- package/dist/compliance/index.mjs +17 -19
- package/dist/compliance/index.mjs.map +1 -1
- package/dist/geolocation/index.d.mts +122 -0
- package/dist/geolocation/index.d.ts +122 -0
- package/dist/geolocation/index.js +1 -0
- package/dist/geolocation/index.js.map +1 -1
- package/dist/geolocation/index.mjs +1 -0
- package/dist/geolocation/index.mjs.map +1 -1
- package/dist/index-BQPX1yNM.d.ts +524 -0
- package/dist/index-CzElZ3T6.d.mts +524 -0
- package/dist/index.d.mts +48 -0
- package/dist/index.d.ts +48 -0
- package/dist/index.js +18 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -19
- package/dist/index.mjs.map +1 -1
- package/dist/risk-profile/index.d.mts +2 -0
- package/dist/risk-profile/index.d.ts +2 -0
- package/dist/risk-profile/index.js.map +1 -1
- package/dist/risk-profile/index.mjs.map +1 -1
- package/dist/types-mQdu71xf.d.mts +61 -0
- package/dist/types-mQdu71xf.d.ts +61 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -908,6 +908,7 @@ function useAlerts(client, options = {}) {
|
|
|
908
908
|
}
|
|
909
909
|
};
|
|
910
910
|
}
|
|
911
|
+
return void 0;
|
|
911
912
|
}, [options.pollInterval, fetchAlerts]);
|
|
912
913
|
return {
|
|
913
914
|
alerts,
|
|
@@ -1337,6 +1338,22 @@ var RiskProfileClient = class extends BaseClient {
|
|
|
1337
1338
|
}
|
|
1338
1339
|
};
|
|
1339
1340
|
|
|
1341
|
+
// src/compliance/types.ts
|
|
1342
|
+
var DEFAULT_CURRENCY_RATES = {
|
|
1343
|
+
USD: 1,
|
|
1344
|
+
EUR: 1.1,
|
|
1345
|
+
GBP: 1.27,
|
|
1346
|
+
CAD: 0.74,
|
|
1347
|
+
AUD: 0.66,
|
|
1348
|
+
JPY: 67e-4,
|
|
1349
|
+
CHF: 1.13,
|
|
1350
|
+
CNY: 0.14,
|
|
1351
|
+
INR: 0.012,
|
|
1352
|
+
BRL: 0.2,
|
|
1353
|
+
MXN: 0.058,
|
|
1354
|
+
ZAR: 0.055
|
|
1355
|
+
};
|
|
1356
|
+
|
|
1340
1357
|
// src/compliance/client.ts
|
|
1341
1358
|
var ComplianceClient = class {
|
|
1342
1359
|
constructor(config) {
|
|
@@ -1358,7 +1375,6 @@ var ComplianceClient = class {
|
|
|
1358
1375
|
apiKey: this.config.apiKey,
|
|
1359
1376
|
headers: this.config.headers,
|
|
1360
1377
|
timeout: this.config.timeout,
|
|
1361
|
-
retries: this.config.retries,
|
|
1362
1378
|
debug: this.config.debug
|
|
1363
1379
|
});
|
|
1364
1380
|
this.riskClient = new RiskProfileClient({
|
|
@@ -1367,7 +1383,6 @@ var ComplianceClient = class {
|
|
|
1367
1383
|
apiKey: this.config.apiKey,
|
|
1368
1384
|
headers: this.config.headers,
|
|
1369
1385
|
timeout: this.config.timeout,
|
|
1370
|
-
retries: this.config.retries,
|
|
1371
1386
|
debug: this.config.debug
|
|
1372
1387
|
});
|
|
1373
1388
|
this.currencyRates = DEFAULT_CURRENCY_RATES;
|
|
@@ -1769,22 +1784,6 @@ var ComplianceClient = class {
|
|
|
1769
1784
|
}
|
|
1770
1785
|
};
|
|
1771
1786
|
|
|
1772
|
-
|
|
1773
|
-
var DEFAULT_CURRENCY_RATES2 = {
|
|
1774
|
-
USD: 1,
|
|
1775
|
-
EUR: 1.1,
|
|
1776
|
-
GBP: 1.27,
|
|
1777
|
-
CAD: 0.74,
|
|
1778
|
-
AUD: 0.66,
|
|
1779
|
-
JPY: 67e-4,
|
|
1780
|
-
CHF: 1.13,
|
|
1781
|
-
CNY: 0.14,
|
|
1782
|
-
INR: 0.012,
|
|
1783
|
-
BRL: 0.2,
|
|
1784
|
-
MXN: 0.058,
|
|
1785
|
-
ZAR: 0.055
|
|
1786
|
-
};
|
|
1787
|
-
|
|
1788
|
-
export { AuthenticationError, BaseClient, CGSError, ComplianceBlockedError, ComplianceClient, ComplianceError, DEFAULT_CURRENCY_RATES2 as DEFAULT_CURRENCY_RATES, GeolocationClient, NetworkError, RateLimitError, RiskProfileClient, ServiceUnavailableError, TimeoutError, ValidationError, createDeviceFingerprint, getBrowserInfo, useAlerts, useDashboardMetrics, useGeolocation };
|
|
1787
|
+
export { AuthenticationError, BaseClient, CGSError, ComplianceBlockedError, ComplianceClient, ComplianceError, DEFAULT_CURRENCY_RATES, GeolocationClient, NetworkError, RateLimitError, RiskProfileClient, ServiceUnavailableError, TimeoutError, ValidationError, createDeviceFingerprint, getBrowserInfo, useAlerts, useDashboardMetrics, useGeolocation };
|
|
1789
1788
|
//# sourceMappingURL=index.mjs.map
|
|
1790
1789
|
//# sourceMappingURL=index.mjs.map
|