@fileverse-dev/formulajs 4.4.11-mod-41-patch-1 → 4.4.11-mod-42
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/lib/browser/formula.js +540 -583
- package/lib/browser/formula.min.js +2 -2
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +52 -55
- package/lib/esm/crypto-constants.mjs +91 -152
- package/lib/esm/index.mjs +53 -50
- package/package.json +1 -1
- package/types/cjs/index.d.cts +6 -12
- package/types/esm/index.d.mts +6 -12
package/lib/esm/index.mjs
CHANGED
|
@@ -13213,7 +13213,26 @@ if (scanKey === SERVICE_API_KEY.Gnosisscan) chainId = 'gnosis';
|
|
|
13213
13213
|
}
|
|
13214
13214
|
}
|
|
13215
13215
|
|
|
13216
|
-
|
|
13216
|
+
const fromUsernameToFid = async (username) => {
|
|
13217
|
+
if(!username) return null
|
|
13218
|
+
const url = `https://api.neynar.com/v2/farcaster/user/search/`;
|
|
13219
|
+
const res = await fetch(url, {
|
|
13220
|
+
query: {
|
|
13221
|
+
q: username
|
|
13222
|
+
},
|
|
13223
|
+
headers: {
|
|
13224
|
+
'x-api-key': API_KEY,
|
|
13225
|
+
'x-neynar-experimental': 'false'
|
|
13226
|
+
}
|
|
13227
|
+
});
|
|
13228
|
+
const json = await res.json();
|
|
13229
|
+
const users = json.result && json.result.users;
|
|
13230
|
+
const user = users.find(user => user.username === username);
|
|
13231
|
+
return user && user.fid || null;
|
|
13232
|
+
};
|
|
13233
|
+
|
|
13234
|
+
async function FIREFLY() {
|
|
13235
|
+
const [platform, contentType, identifier, start = 0, end = 10] = argsToArray(arguments);
|
|
13217
13236
|
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Firefly);
|
|
13218
13237
|
if (!API_KEY) return `${SERVICE_API_KEY.Firefly}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13219
13238
|
|
|
@@ -13275,7 +13294,8 @@ async function FIREFLY(platform, contentType, identifier, start = 0, end = 10) {
|
|
|
13275
13294
|
|
|
13276
13295
|
|
|
13277
13296
|
|
|
13278
|
-
async function BLOCKSCOUT(
|
|
13297
|
+
async function BLOCKSCOUT() {
|
|
13298
|
+
let [address, type, chain, startTimestamp, endTimestamp, page, offset] = argsToArray(arguments);
|
|
13279
13299
|
if (!chain) {
|
|
13280
13300
|
chain = 'ethereum';
|
|
13281
13301
|
}
|
|
@@ -13360,8 +13380,8 @@ async function BLOCKSCOUT(address, type, chain, startTimestamp, endTimestamp, pa
|
|
|
13360
13380
|
return 'ERROR IN FETCHING'
|
|
13361
13381
|
}
|
|
13362
13382
|
}
|
|
13363
|
-
async function GNOSIS(
|
|
13364
|
-
const [type, chain, address, startDate, endDate, page, limit] =
|
|
13383
|
+
async function GNOSIS() {
|
|
13384
|
+
const [type, chain, address, startDate, endDate, page, limit] = argsToArray(arguments);
|
|
13365
13385
|
return handleScanRequest({
|
|
13366
13386
|
scanKey: SERVICE_API_KEY.Gnosisscan,
|
|
13367
13387
|
baseUrl: 'https://api.gnosisscan.io/api',
|
|
@@ -13376,25 +13396,27 @@ async function GNOSIS(...args) {
|
|
|
13376
13396
|
}
|
|
13377
13397
|
|
|
13378
13398
|
async function NEYNAR(
|
|
13379
|
-
fid,
|
|
13380
|
-
viewerFid,
|
|
13381
|
-
sortType,
|
|
13382
|
-
limit,
|
|
13383
|
-
cursor
|
|
13384
13399
|
) {
|
|
13400
|
+
const [
|
|
13401
|
+
username
|
|
13402
|
+
] = argsToArray(arguments);
|
|
13385
13403
|
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Neynar);
|
|
13386
13404
|
if (!API_KEY) return `${SERVICE_API_KEY.Neynar}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13387
13405
|
|
|
13406
|
+
if(!username){
|
|
13407
|
+
return `${SERVICE_API_KEY.Neynar}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`;
|
|
13408
|
+
}
|
|
13388
13409
|
|
|
13389
|
-
const
|
|
13390
|
-
|
|
13391
|
-
|
|
13392
|
-
|
|
13393
|
-
|
|
13394
|
-
|
|
13410
|
+
const fid = await fromUsernameToFid(username);
|
|
13411
|
+
|
|
13412
|
+
if(!fid){
|
|
13413
|
+
return `${SERVICE_API_KEY.Neynar}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`;
|
|
13414
|
+
}
|
|
13415
|
+
|
|
13416
|
+
const url = `https://api.neynar.com/v2/farcaster/followers?fid=${fid}`;
|
|
13395
13417
|
|
|
13396
13418
|
try {
|
|
13397
|
-
const response = await fetch(url
|
|
13419
|
+
const response = await fetch(url, {
|
|
13398
13420
|
headers: {
|
|
13399
13421
|
'x-api-key': API_KEY,
|
|
13400
13422
|
'x-neynar-experimental': 'false'
|
|
@@ -13492,7 +13514,7 @@ async function ETHERSCAN(...args) {
|
|
|
13492
13514
|
}
|
|
13493
13515
|
|
|
13494
13516
|
|
|
13495
|
-
async function COINGECKO(category, param1, param2
|
|
13517
|
+
async function COINGECKO(category, param1, param2) {
|
|
13496
13518
|
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Coingecko);
|
|
13497
13519
|
if (!API_KEY) return `${SERVICE_API_KEY.Coingecko}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13498
13520
|
|
|
@@ -13533,7 +13555,7 @@ async function COINGECKO(category, param1, param2, page = 1, perPage = 2) {
|
|
|
13533
13555
|
const categoryVal = ecosystemMap[key] || '';
|
|
13534
13556
|
const trend = param2 ? `&price_change_percentage=${param2}` : '';
|
|
13535
13557
|
|
|
13536
|
-
url = `https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&include_tokens=top&page
|
|
13558
|
+
url = `https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&include_tokens=top&page=1&per_page=100`;
|
|
13537
13559
|
if (key && !categoryVal) return `${SERVICE_API_KEY.Coingecko}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`;
|
|
13538
13560
|
if (categoryVal) url += `&category=${categoryVal}`;
|
|
13539
13561
|
if (trend) url += trend;
|
|
@@ -13546,7 +13568,7 @@ async function COINGECKO(category, param1, param2, page = 1, perPage = 2) {
|
|
|
13546
13568
|
: param1.toLowerCase();
|
|
13547
13569
|
|
|
13548
13570
|
const trend = param2 ? `&price_change_percentage=${param2}` : '';
|
|
13549
|
-
url = `https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&category=${category}&order=market_cap_desc&page
|
|
13571
|
+
url = `https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&category=${category}&order=market_cap_desc&page=1&per_page=100${trend}`;
|
|
13550
13572
|
break;
|
|
13551
13573
|
}
|
|
13552
13574
|
|
|
@@ -13561,7 +13583,7 @@ async function COINGECKO(category, param1, param2, page = 1, perPage = 2) {
|
|
|
13561
13583
|
}
|
|
13562
13584
|
|
|
13563
13585
|
default:
|
|
13564
|
-
return `${SERVICE_API_KEY.Coingecko}${ERROR_MESSAGES_FLAG.
|
|
13586
|
+
return `${SERVICE_API_KEY.Coingecko}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`;
|
|
13565
13587
|
}
|
|
13566
13588
|
|
|
13567
13589
|
try {
|
|
@@ -13617,16 +13639,19 @@ async function COINGECKO(category, param1, param2, page = 1, perPage = 2) {
|
|
|
13617
13639
|
|
|
13618
13640
|
|
|
13619
13641
|
async function EOA(
|
|
13620
|
-
|
|
13642
|
+
) {
|
|
13643
|
+
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Etherscan);
|
|
13644
|
+
if (!API_KEY) return `${SERVICE_API_KEY.Etherscan}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13645
|
+
|
|
13646
|
+
let [
|
|
13647
|
+
addresses,
|
|
13621
13648
|
category,
|
|
13622
13649
|
chains,
|
|
13623
13650
|
startTime,
|
|
13624
13651
|
endTime,
|
|
13625
13652
|
page = 1,
|
|
13626
13653
|
offset = 10,
|
|
13627
|
-
)
|
|
13628
|
-
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Etherscan);
|
|
13629
|
-
if (!API_KEY) return `${SERVICE_API_KEY.Etherscan}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13654
|
+
] = argsToArray(arguments);
|
|
13630
13655
|
|
|
13631
13656
|
const INPUTS = addresses.split(",").map(a => a.trim()).filter(Boolean);
|
|
13632
13657
|
const CHAINS = chains.split(",").map(c => c.trim()).filter(Boolean);
|
|
@@ -13740,7 +13765,9 @@ async function FLVURL(token, vs_currencies) {
|
|
|
13740
13765
|
});
|
|
13741
13766
|
}
|
|
13742
13767
|
|
|
13743
|
-
async function SAFE(
|
|
13768
|
+
async function SAFE() {
|
|
13769
|
+
|
|
13770
|
+
let [address, utility, chain, limit, offset] = argsToArray(arguments);
|
|
13744
13771
|
|
|
13745
13772
|
if (typeof limit !== 'number' || limit < 0) return 'INVALID_LIMIT';
|
|
13746
13773
|
if (typeof offset !== 'number' || offset < 0) return 'INVALID_OFFSET';
|
|
@@ -13782,30 +13809,6 @@ async function SAFE(address, utility, chain, limit, offset) {
|
|
|
13782
13809
|
}
|
|
13783
13810
|
}
|
|
13784
13811
|
|
|
13785
|
-
async function POLYMARKET() {
|
|
13786
|
-
return "Coming Soon"
|
|
13787
|
-
}
|
|
13788
|
-
|
|
13789
|
-
async function PRIVACYPOOL() {
|
|
13790
|
-
return "Coming Soon"
|
|
13791
|
-
}
|
|
13792
|
-
|
|
13793
|
-
async function ROTKI() {
|
|
13794
|
-
return "Coming Soon"
|
|
13795
|
-
}
|
|
13796
|
-
|
|
13797
|
-
async function MEERKAT() {
|
|
13798
|
-
return "Coming Soon"
|
|
13799
|
-
}
|
|
13800
|
-
|
|
13801
|
-
async function ARTEMIS() {
|
|
13802
|
-
return "Coming Soon"
|
|
13803
|
-
}
|
|
13804
|
-
|
|
13805
|
-
async function TALLY() {
|
|
13806
|
-
return "Coming Soon"
|
|
13807
|
-
}
|
|
13808
|
-
|
|
13809
13812
|
const utils = { errors, symbols, date };
|
|
13810
13813
|
|
|
13811
|
-
export { ABS, ACCRINT, ACOS, ACOSH, ACOT, ACOTH, AGGREGATE, AND, ARABIC,
|
|
13814
|
+
export { ABS, ACCRINT, ACOS, ACOSH, ACOT, ACOTH, AGGREGATE, AND, ARABIC, ASIN, ASINH, ATAN, ATAN2, ATANH, AVEDEV, AVERAGE, AVERAGEA, AVERAGEIF, AVERAGEIFS, BESSELI, BESSELJ, BESSELK, BESSELY, BETA, BETADIST, BETAINV, BIN2DEC, BIN2HEX, BIN2OCT, BINOM, BINOMDIST, BITAND, BITLSHIFT, BITOR, BITRSHIFT, BITXOR, BLOCKSCOUT, CEILING, CEILINGMATH, CEILINGPRECISE, CHAR, CHIDIST, CHIDISTRT, CHIINV, CHIINVRT, CHISQ, CHITEST, CHOOSE, CLEAN, CODE, COINGECKO, COLUMN, COLUMNS, COMBIN, COMBINA, COMPLEX, CONCAT, CONCATENATE, CONFIDENCE, CONVERT, CORREL, COS, COSH, COT, COTH, COUNT, COUNTA, COUNTBLANK, COUNTIF, COUNTIFS, COUPDAYS, COVAR, COVARIANCE, COVARIANCEP, COVARIANCES, CRITBINOM, CSC, CSCH, CUMIPMT, CUMPRINC, DATE, DATEDIF, DATEVALUE, DAVERAGE, DAY, DAYS, DAYS360, DB, DCOUNT, DCOUNTA, DDB, DEC2BIN, DEC2HEX, DEC2OCT, DECIMAL, DEGREES, DELTA, DEVSQ, DGET, DISC, DMAX, DMIN, DOLLAR, DOLLARDE, DOLLARFR, DPRODUCT, DSTDEV, DSTDEVP, DSUM, DVAR, DVARP, EDATE, EFFECT, EOA, EOMONTH, ERF, ERFC, ERFCPRECISE, ERFPRECISE, ERROR, ETHERSCAN, EVEN, EXACT, EXP, EXPON, EXPONDIST, F, FACT, FACTDOUBLE, FALSE, FDIST, FDISTRT, FIND, FINV, FINVRT, FIREFLY, FISHER, FISHERINV, FIXED, FLOOR, FLOORMATH, FLOORPRECISE, FLVURL, FORECAST, FREQUENCY, FTEST, FV, FVSCHEDULE, GAMMA, GAMMADIST, GAMMAINV, GAMMALN, GAMMALNPRECISE, GAUSS, GCD, GEOMEAN, GESTEP, GNOSIS, GNOSISPAY, GROWTH, HARMEAN, HEX2BIN, HEX2DEC, HEX2OCT, HLOOKUP, HOUR, HYPGEOM, HYPGEOMDIST, IF, IFERROR, IFNA, IFS, IMABS, IMAGINARY, IMARGUMENT, IMCONJUGATE, IMCOS, IMCOSH, IMCOT, IMCSC, IMCSCH, IMDIV, IMEXP, IMLN, IMLOG10, IMLOG2, IMPOWER, IMPRODUCT, IMREAL, IMSEC, IMSECH, IMSIN, IMSINH, IMSQRT, IMSUB, IMSUM, IMTAN, INDEX, INT, INTERCEPT, IPMT, IRR, ISBLANK, ISDATE, ISERR, ISERROR, ISEVEN, ISLOGICAL, ISNA, ISNONTEXT, ISNUMBER, ISO, ISODD, ISOWEEKNUM, ISPMT, ISTEXT, KURT, LARGE, LCM, LEFT, LEN, LINEST, LN, LOG, LOG10, LOGEST, LOGINV, LOGNORM, LOGNORMDIST, LOGNORMINV, LOOKUP, LOWER, MATCH, MAX, MAXA, MAXIFS, MEDIAN, MID, MIN, MINA, MINIFS, MINUTE, MIRR, MMULT, MOD, MODE, MODEMULT, MODESNGL, MONTH, MROUND, MULTINOMIAL, MUNIT, N, NA, NEGBINOM, NEGBINOMDIST, NETWORKDAYS, NETWORKDAYSINTL, NETWORKDAYS_INTL, NEYNAR, NOMINAL, NORM, NORMDIST, NORMINV, NORMSDIST, NORMSINV, NOT, NOW, NPER, NPV, NUMBERVALUE, OCT2BIN, OCT2DEC, OCT2HEX, ODD, OR, PDURATION, PEARSON, PERCENTILE, PERCENTILEEXC, PERCENTILEINC, PERCENTRANK, PERCENTRANKEXC, PERCENTRANKINC, PERMUT, PERMUTATIONA, PHI, PI, PMT, PNL, POISSON, POISSONDIST, POWER, PPMT, PRICEDISC, PROB, PRODUCT, PROPER, PV, QUARTILE, QUARTILEEXC, QUARTILEINC, QUOTIENT, RADIANS, RAND, RANDBETWEEN, RANK, RANKAVG, RANKEQ, RATE, REPLACE, REPT, RIGHT, ROMAN, ROUND, ROUNDDOWN, ROUNDUP, ROW, ROWS, RRI, RSQ, SAFE, SEARCH, SEC, SECH, SECOND, SERIESSUM, SIGN, SIN, SINH, SKEW, SKEWP, SLN, SLOPE, SMALL, SORT, SQRT, SQRTPI, STANDARDIZE, STDEV, STDEVA, STDEVP, STDEVPA, STDEVS, STEYX, SUBSTITUTE, SUBTOTAL, SUM, SUMIF, SUMIFS, SUMPRODUCT, SUMSQ, SUMX2MY2, SUMX2PY2, SUMXMY2, SWITCH, SYD, T, TAN, TANH, TBILLEQ, TBILLPRICE, TBILLYIELD, TDIST, TDISTRT, TEXT, TEXTJOIN, TIME, TIMEVALUE, TINV, TODAY, TRANSPOSE, TREND, TRIM, TRIMMEAN, TRUE, TRUNC, TTEST, TYPE, UNICHAR, UNICODE, UNIQUE, UPPER, VALUE, VAR, VARA, VARP, VARPA, VARS, VLOOKUP, WEEKDAY, WEEKNUM, WEIBULL, WEIBULLDIST, WORKDAY, WORKDAYINTL, WORKDAY_INTL, XIRR, XNPV, XOR, YEAR, YEARFRAC, Z, ZTEST, utils };
|
package/package.json
CHANGED
package/types/cjs/index.d.cts
CHANGED
|
@@ -88,7 +88,6 @@ export function AND(...args: any[]): any;
|
|
|
88
88
|
* @returns
|
|
89
89
|
*/
|
|
90
90
|
export function ARABIC(text: any): number | Error;
|
|
91
|
-
export function ARTEMIS(): Promise<string>;
|
|
92
91
|
/**
|
|
93
92
|
* Returns the arcsine of a number.
|
|
94
93
|
*
|
|
@@ -409,7 +408,7 @@ export function BITRSHIFT(number: any, shift_amount: any): number | Error;
|
|
|
409
408
|
* @returns
|
|
410
409
|
*/
|
|
411
410
|
export function BITXOR(number1: any, number2: any): number | Error;
|
|
412
|
-
export function BLOCKSCOUT(
|
|
411
|
+
export function BLOCKSCOUT(...args: any[]): Promise<any>;
|
|
413
412
|
/**
|
|
414
413
|
* Rounds a number to the nearest integer or to the nearest multiple of significance.
|
|
415
414
|
*
|
|
@@ -615,7 +614,7 @@ export function CLEAN(text: any): any;
|
|
|
615
614
|
* @returns
|
|
616
615
|
*/
|
|
617
616
|
export function CODE(text: any): any;
|
|
618
|
-
export function COINGECKO(category: any, param1: any, param2: any
|
|
617
|
+
export function COINGECKO(category: any, param1: any, param2: any): Promise<string | {}[]>;
|
|
619
618
|
/**
|
|
620
619
|
* Returns the column number of a reference.
|
|
621
620
|
*
|
|
@@ -1285,7 +1284,7 @@ export function EDATE(start_date: any, months: any): any;
|
|
|
1285
1284
|
* @returns
|
|
1286
1285
|
*/
|
|
1287
1286
|
export function EFFECT(nominal_rate: any, npery: any): number | Error;
|
|
1288
|
-
export function EOA(
|
|
1287
|
+
export function EOA(...args: any[]): Promise<any>;
|
|
1289
1288
|
/**
|
|
1290
1289
|
* Returns the serial number of the last day of the month before or after a specified number of months.
|
|
1291
1290
|
*
|
|
@@ -1518,7 +1517,7 @@ export namespace FINV { }
|
|
|
1518
1517
|
* @returns
|
|
1519
1518
|
*/
|
|
1520
1519
|
export function FINVRT(probability: any, deg_freedom1: any, deg_freedom2: any, ...args: any[]): any;
|
|
1521
|
-
export function FIREFLY(
|
|
1520
|
+
export function FIREFLY(...args: any[]): Promise<any>;
|
|
1522
1521
|
/**
|
|
1523
1522
|
* Returns the Fisher transformation.
|
|
1524
1523
|
*
|
|
@@ -2584,7 +2583,6 @@ export function MAXIFS(...args: any[]): any;
|
|
|
2584
2583
|
* @returns
|
|
2585
2584
|
*/
|
|
2586
2585
|
export function MEDIAN(...args: any[]): any;
|
|
2587
|
-
export function MEERKAT(): Promise<string>;
|
|
2588
2586
|
/**
|
|
2589
2587
|
* Returns a specific number of characters from a text string starting at the position you specify
|
|
2590
2588
|
*
|
|
@@ -2831,7 +2829,7 @@ export function NETWORKDAYSINTL(start_date: any, end_date: any, weekend: any, ho
|
|
|
2831
2829
|
* @returns
|
|
2832
2830
|
*/
|
|
2833
2831
|
export function NETWORKDAYS_INTL(start_date: any, end_date: any, weekend: any, holidays: any): number | Error;
|
|
2834
|
-
export function NEYNAR(
|
|
2832
|
+
export function NEYNAR(...args: any[]): Promise<any>;
|
|
2835
2833
|
/**
|
|
2836
2834
|
* Returns the annual nominal interest rate.
|
|
2837
2835
|
*
|
|
@@ -3210,7 +3208,6 @@ export namespace POISSON {
|
|
|
3210
3208
|
* @returns
|
|
3211
3209
|
*/
|
|
3212
3210
|
export function POISSONDIST(x: any, mean: any, cumulative: any): any;
|
|
3213
|
-
export function POLYMARKET(): Promise<string>;
|
|
3214
3211
|
/**
|
|
3215
3212
|
* Returns the result of a number raised to a power.
|
|
3216
3213
|
*
|
|
@@ -3248,7 +3245,6 @@ export function PPMT(rate: any, per: any, nper: any, pv: any, fv: any, type: any
|
|
|
3248
3245
|
* @returns
|
|
3249
3246
|
*/
|
|
3250
3247
|
export function PRICEDISC(settlement: any, maturity: any, discount: any, redemption: any, basis: any): number | Error;
|
|
3251
|
-
export function PRIVACYPOOL(): Promise<string>;
|
|
3252
3248
|
/**
|
|
3253
3249
|
* Returns the probability that values in a range are between two limits.
|
|
3254
3250
|
*
|
|
@@ -3475,7 +3471,6 @@ export function RIGHT(text: any, num_chars: any): any;
|
|
|
3475
3471
|
* @returns
|
|
3476
3472
|
*/
|
|
3477
3473
|
export function ROMAN(number: any): string | Error;
|
|
3478
|
-
export function ROTKI(): Promise<string>;
|
|
3479
3474
|
/**
|
|
3480
3475
|
* Rounds a number to a specified number of digits.
|
|
3481
3476
|
*
|
|
@@ -3546,7 +3541,7 @@ export function RRI(nper: any, pv: any, fv: any): number | Error;
|
|
|
3546
3541
|
* @returns
|
|
3547
3542
|
*/
|
|
3548
3543
|
export function RSQ(known_y: any, known_x: any): number | Error;
|
|
3549
|
-
export function SAFE(
|
|
3544
|
+
export function SAFE(...args: any[]): Promise<any>;
|
|
3550
3545
|
/**
|
|
3551
3546
|
* Finds one text value within another (not case-sensitive)
|
|
3552
3547
|
*
|
|
@@ -3959,7 +3954,6 @@ export namespace T {
|
|
|
3959
3954
|
*/
|
|
3960
3955
|
function TEST(array1: any, array2: any): number | Error;
|
|
3961
3956
|
}
|
|
3962
|
-
export function TALLY(): Promise<string>;
|
|
3963
3957
|
/**
|
|
3964
3958
|
* Returns the tangent of a number.
|
|
3965
3959
|
*
|
package/types/esm/index.d.mts
CHANGED
|
@@ -88,7 +88,6 @@ export function AND(...args: any[]): any;
|
|
|
88
88
|
* @returns
|
|
89
89
|
*/
|
|
90
90
|
export function ARABIC(text: any): number | Error;
|
|
91
|
-
export function ARTEMIS(): Promise<string>;
|
|
92
91
|
/**
|
|
93
92
|
* Returns the arcsine of a number.
|
|
94
93
|
*
|
|
@@ -409,7 +408,7 @@ export function BITRSHIFT(number: any, shift_amount: any): number | Error;
|
|
|
409
408
|
* @returns
|
|
410
409
|
*/
|
|
411
410
|
export function BITXOR(number1: any, number2: any): number | Error;
|
|
412
|
-
export function BLOCKSCOUT(
|
|
411
|
+
export function BLOCKSCOUT(...args: any[]): Promise<any>;
|
|
413
412
|
/**
|
|
414
413
|
* Rounds a number to the nearest integer or to the nearest multiple of significance.
|
|
415
414
|
*
|
|
@@ -615,7 +614,7 @@ export function CLEAN(text: any): any;
|
|
|
615
614
|
* @returns
|
|
616
615
|
*/
|
|
617
616
|
export function CODE(text: any): any;
|
|
618
|
-
export function COINGECKO(category: any, param1: any, param2: any
|
|
617
|
+
export function COINGECKO(category: any, param1: any, param2: any): Promise<string | {}[]>;
|
|
619
618
|
/**
|
|
620
619
|
* Returns the column number of a reference.
|
|
621
620
|
*
|
|
@@ -1285,7 +1284,7 @@ export function EDATE(start_date: any, months: any): any;
|
|
|
1285
1284
|
* @returns
|
|
1286
1285
|
*/
|
|
1287
1286
|
export function EFFECT(nominal_rate: any, npery: any): number | Error;
|
|
1288
|
-
export function EOA(
|
|
1287
|
+
export function EOA(...args: any[]): Promise<any>;
|
|
1289
1288
|
/**
|
|
1290
1289
|
* Returns the serial number of the last day of the month before or after a specified number of months.
|
|
1291
1290
|
*
|
|
@@ -1518,7 +1517,7 @@ export namespace FINV { }
|
|
|
1518
1517
|
* @returns
|
|
1519
1518
|
*/
|
|
1520
1519
|
export function FINVRT(probability: any, deg_freedom1: any, deg_freedom2: any, ...args: any[]): any;
|
|
1521
|
-
export function FIREFLY(
|
|
1520
|
+
export function FIREFLY(...args: any[]): Promise<any>;
|
|
1522
1521
|
/**
|
|
1523
1522
|
* Returns the Fisher transformation.
|
|
1524
1523
|
*
|
|
@@ -2584,7 +2583,6 @@ export function MAXIFS(...args: any[]): any;
|
|
|
2584
2583
|
* @returns
|
|
2585
2584
|
*/
|
|
2586
2585
|
export function MEDIAN(...args: any[]): any;
|
|
2587
|
-
export function MEERKAT(): Promise<string>;
|
|
2588
2586
|
/**
|
|
2589
2587
|
* Returns a specific number of characters from a text string starting at the position you specify
|
|
2590
2588
|
*
|
|
@@ -2831,7 +2829,7 @@ export function NETWORKDAYSINTL(start_date: any, end_date: any, weekend: any, ho
|
|
|
2831
2829
|
* @returns
|
|
2832
2830
|
*/
|
|
2833
2831
|
export function NETWORKDAYS_INTL(start_date: any, end_date: any, weekend: any, holidays: any): number | Error;
|
|
2834
|
-
export function NEYNAR(
|
|
2832
|
+
export function NEYNAR(...args: any[]): Promise<any>;
|
|
2835
2833
|
/**
|
|
2836
2834
|
* Returns the annual nominal interest rate.
|
|
2837
2835
|
*
|
|
@@ -3210,7 +3208,6 @@ export namespace POISSON {
|
|
|
3210
3208
|
* @returns
|
|
3211
3209
|
*/
|
|
3212
3210
|
export function POISSONDIST(x: any, mean: any, cumulative: any): any;
|
|
3213
|
-
export function POLYMARKET(): Promise<string>;
|
|
3214
3211
|
/**
|
|
3215
3212
|
* Returns the result of a number raised to a power.
|
|
3216
3213
|
*
|
|
@@ -3248,7 +3245,6 @@ export function PPMT(rate: any, per: any, nper: any, pv: any, fv: any, type: any
|
|
|
3248
3245
|
* @returns
|
|
3249
3246
|
*/
|
|
3250
3247
|
export function PRICEDISC(settlement: any, maturity: any, discount: any, redemption: any, basis: any): number | Error;
|
|
3251
|
-
export function PRIVACYPOOL(): Promise<string>;
|
|
3252
3248
|
/**
|
|
3253
3249
|
* Returns the probability that values in a range are between two limits.
|
|
3254
3250
|
*
|
|
@@ -3475,7 +3471,6 @@ export function RIGHT(text: any, num_chars: any): any;
|
|
|
3475
3471
|
* @returns
|
|
3476
3472
|
*/
|
|
3477
3473
|
export function ROMAN(number: any): string | Error;
|
|
3478
|
-
export function ROTKI(): Promise<string>;
|
|
3479
3474
|
/**
|
|
3480
3475
|
* Rounds a number to a specified number of digits.
|
|
3481
3476
|
*
|
|
@@ -3546,7 +3541,7 @@ export function RRI(nper: any, pv: any, fv: any): number | Error;
|
|
|
3546
3541
|
* @returns
|
|
3547
3542
|
*/
|
|
3548
3543
|
export function RSQ(known_y: any, known_x: any): number | Error;
|
|
3549
|
-
export function SAFE(
|
|
3544
|
+
export function SAFE(...args: any[]): Promise<any>;
|
|
3550
3545
|
/**
|
|
3551
3546
|
* Finds one text value within another (not case-sensitive)
|
|
3552
3547
|
*
|
|
@@ -3959,7 +3954,6 @@ export namespace T {
|
|
|
3959
3954
|
*/
|
|
3960
3955
|
function TEST(array1: any, array2: any): number | Error;
|
|
3961
3956
|
}
|
|
3962
|
-
export function TALLY(): Promise<string>;
|
|
3963
3957
|
/**
|
|
3964
3958
|
* Returns the tangent of a number.
|
|
3965
3959
|
*
|