@fileverse-dev/formulajs 4.4.11-mod-27 → 4.4.11-mod-30

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.
@@ -26,6 +26,9 @@ var ERROR_MESSAGES_FLAG = {
26
26
  INVALID_ADDRESS: "_INVALID_ADDRESS",
27
27
  INVALID_PARAM: "_INVALID_PARAM"
28
28
  };
29
+ var UTILITY = {
30
+ ALCHEMY_API_KEY: "ALCHEMY_API_KEY"
31
+ };
29
32
 
30
33
  // src/crypto-constants.js
31
34
  var SERVICE_API_KEY = {
@@ -45,8 +48,8 @@ var FUNCTION_LOCALE = [
45
48
  BRAND_SECONDARY_COLOR: "#855dcd",
46
49
  n: "FIREFLY",
47
50
  t: 20,
48
- d: "Fetches posts or replies from Farcaster or Lens using Firefly's OpenAPI and returns simplified text content.",
49
- a: "Retrieves posts or replies from Firefly OpenAPI by username, user ID, or post ID/hash for Farcaster and Lens platforms. Returns a flattened array of content with id, author, text, createdAt, and platform.",
51
+ d: "Fetches content from Farcaster or Lens using Firefly's OpenAPI with pagination and cleaned output.",
52
+ a: "Retrieves posts, replies, or channels from Farcaster and Lens using Firefly's OpenAPI by usernames, IDs, or hashes. Removes nested values and returns flat spreadsheet-friendly data. Supports pagination.",
50
53
  p: [
51
54
  {
52
55
  name: "platform",
@@ -57,17 +60,31 @@ var FUNCTION_LOCALE = [
57
60
  },
58
61
  {
59
62
  name: "contentType",
60
- detail: "The type of content to fetch. Can be 'posts' or 'replies'.",
63
+ detail: "Type of content to fetch. Supports 'posts', 'replies', and 'channels' (channels only for 'farcaster').",
61
64
  example: `"posts"`,
62
65
  require: "m",
63
66
  type: "string"
64
67
  },
65
68
  {
66
69
  name: "identifier",
67
- detail: "The username, user ID, or post ID/hash depending on platform and contentType.",
68
- example: `"toka" or "0xcb6cab2048..."`,
70
+ detail: "Comma-separated usernames, IDs, or post hashes depending on platform and contentType.",
71
+ example: `"toka,miroyato"`,
69
72
  require: "m",
70
73
  type: "string"
74
+ },
75
+ {
76
+ name: "start",
77
+ detail: "Pagination start index (default is 0).",
78
+ example: `0`,
79
+ require: "o",
80
+ type: "number"
81
+ },
82
+ {
83
+ name: "end",
84
+ detail: "Pagination end index (default is 10).",
85
+ example: `10`,
86
+ require: "o",
87
+ type: "number"
71
88
  }
72
89
  ]
73
90
  },
@@ -151,29 +168,29 @@ var FUNCTION_LOCALE = [
151
168
  },
152
169
  {
153
170
  name: "startDate",
154
- detail: "Start UNIX timestamp in seconds (used to resolve block range). Optional, only applies to txns.",
155
- example: `"1704067200"`,
171
+ detail: "Start date (used to resolve block range). Optional, only applies to txns.",
172
+ example: `"01/01/2024"`,
156
173
  require: "o",
157
174
  type: "rangenumber"
158
175
  },
159
176
  {
160
177
  name: "endDate",
161
- detail: "End UNIX timestamp in seconds (used to resolve block range). Optional, only applies to txns.",
162
- example: `"20250614"`,
178
+ detail: "End date (used to resolve block range). Optional, only applies to txns.",
179
+ example: `"07/07/2024"`,
163
180
  require: "o",
164
181
  type: "rangenumber"
165
182
  },
166
183
  {
167
184
  name: "page",
168
185
  detail: "Page number for paginated results. Only applies to txns/token/nft queries.",
169
- example: `"1"`,
186
+ example: `1`,
170
187
  require: "o",
171
188
  type: "number"
172
189
  },
173
190
  {
174
191
  name: "offset",
175
192
  detail: "Number of items per page (limit). Only applies to txns/token/nft queries.",
176
- example: `"25"`,
193
+ example: `2`,
177
194
  require: "o",
178
195
  type: "number"
179
196
  }
@@ -212,15 +229,15 @@ var FUNCTION_LOCALE = [
212
229
  },
213
230
  {
214
231
  name: "startDate",
215
- detail: "Start timestamp in UNIX seconds. Used to resolve starting block for txns.",
216
- example: `"1704067200"`,
232
+ detail: "Used to resolve starting block for txns.",
233
+ example: `"01/01/2024"`,
217
234
  require: "o",
218
235
  type: "rangenumber"
219
236
  },
220
237
  {
221
238
  name: "endDate",
222
- detail: "End timestamp in UNIX seconds. Used to resolve ending block for txns.",
223
- example: `"20250614"`,
239
+ detail: "Used to resolve ending block for txns.",
240
+ example: `"14/06/2025"`,
224
241
  require: "o",
225
242
  type: "rangenumber"
226
243
  },
@@ -252,7 +269,7 @@ var FUNCTION_LOCALE = [
252
269
  {
253
270
  name: "address",
254
271
  detail: "The address string representing the addresses to check for balance",
255
- example: `"0x50Aa3435E310d5a2d15a989Bc353ce7f5682E1d4"`,
272
+ example: `"vitalik.eth"`,
256
273
  require: "m",
257
274
  type: "string"
258
275
  },
@@ -272,17 +289,17 @@ var FUNCTION_LOCALE = [
272
289
  },
273
290
  {
274
291
  name: "startTimestamp",
275
- detail: 'The Unix timestamp marking the start of the transaction search range. Work with type === "txns"',
276
- example: "1704067200",
292
+ detail: 'Start date marking the start of the transaction search range. Work with type === "txns"',
293
+ example: `"01/01/2023"`,
277
294
  require: "o",
278
- type: "rangenumber"
295
+ type: "string"
279
296
  },
280
297
  {
281
298
  name: "endTimestamp",
282
- detail: 'The Unix timestamp marking the end of the transaction search range. Work with type === "txns"',
283
- example: "1719792000",
299
+ detail: 'End date marking the end of the transaction search range. Work with type === "txns"',
300
+ example: `"01/05/2024"`,
284
301
  require: "o",
285
- type: "rangenumber"
302
+ type: "string"
286
303
  },
287
304
  {
288
305
  name: "page",
@@ -335,15 +352,15 @@ var FUNCTION_LOCALE = [
335
352
  },
336
353
  {
337
354
  name: "startDate",
338
- detail: "Start timestamp in seconds (optional). Used to filter block range.",
339
- example: `"1704067200"`,
355
+ detail: "Used to filter block range.",
356
+ example: `"01/01/2024"`,
340
357
  require: "o",
341
358
  type: "rangenumber"
342
359
  },
343
360
  {
344
361
  name: "endDate",
345
- detail: "End timestamp in seconds (optional). Used to filter block range.",
346
- example: `"1706659200"`,
362
+ detail: "Used to filter block range.",
363
+ example: `"01/07/2025"`,
347
364
  require: "o",
348
365
  type: "rangenumber"
349
366
  }
@@ -362,7 +379,7 @@ var FUNCTION_LOCALE = [
362
379
  {
363
380
  name: "addresses",
364
381
  detail: "One or more addresses (comma-separated) to query.",
365
- example: `"0xe9A6378d8FD4983C2999DB0735f258397E8C2253, 0x50Aa3435E310d5a2d15a989Bc353ce7f5682E1d4"`,
382
+ example: `"vitalik.eth"`,
366
383
  require: "m",
367
384
  type: "string"
368
385
  },
@@ -376,35 +393,35 @@ var FUNCTION_LOCALE = [
376
393
  {
377
394
  name: "chain",
378
395
  detail: `Blockchain network(s) to query. Supported values: "ethereum", "gnosis", "base". Accepts comma-separated values.`,
379
- example: `"ethereum, gnosis"`,
396
+ example: `"ethereum"`,
380
397
  require: "m",
381
398
  type: "string"
382
399
  },
383
400
  {
384
401
  name: "startTime",
385
- detail: "Start time in UNIX timestamp (seconds). Used to calculate starting block for transaction queries.",
402
+ detail: "Used to calculate starting block for transaction queries.",
386
403
  example: "01/01/2024",
387
404
  require: "m",
388
405
  type: "rangenumber"
389
406
  },
390
407
  {
391
408
  name: "endTime",
392
- detail: "End time in UNIX timestamp (seconds). Used to calculate ending block for transaction queries.",
393
- example: "01/07/2024",
409
+ detail: "Used to calculate ending block for transaction queries.",
410
+ example: "01/06/2024",
394
411
  require: "m",
395
412
  type: "rangenumber"
396
413
  },
397
414
  {
398
415
  name: "page",
399
- detail: "The page number for paginated transaction results. Only used when category is 'txns'.",
416
+ detail: "The page number for paginated transaction results. Only used when category is 'txns'. Default is 1",
400
417
  example: "1",
401
418
  require: "o",
402
419
  type: "number"
403
420
  },
404
421
  {
405
422
  name: "offset",
406
- detail: "The number of results to return per page (limit). Only used when category is 'txns'.",
407
- example: "25",
423
+ detail: "The number of results to return per page (limit). Only used when category is 'txns'. Default is 10",
424
+ example: "10",
408
425
  require: "o",
409
426
  type: "number"
410
427
  }
@@ -423,23 +440,23 @@ var FUNCTION_LOCALE = [
423
440
  {
424
441
  name: "category",
425
442
  detail: 'Query type: "price", "market", "stablecoins", or "derivatives".',
426
- example: `"price"`,
443
+ example: `"stablecoins"`,
427
444
  require: "m"
428
445
  },
429
446
  {
430
447
  name: "param1",
431
448
  detail: `For "price": coin ID(s).
432
- For "market": one of ["eth", "base", "sol", "gnosis", "hyperliquid", "bitcoin", "pump"].
449
+ For "market": one of ["eth", "base", "sol", "gnosis", "hyperliquid", "bitcoin", "pump", "aiagents", "meme"].
433
450
  For "stablecoins": one of ["all", "crypto-backed-stablecoin", "yield-bearing-stablecoins", etc.].
434
451
  For "derivatives": exchange name (e.g., "binance_futures").`,
435
- example: `"bitcoin" | "eth" | "crypto-backed-stablecoin" | "binance_futures"`,
452
+ example: `"yield-bearing-stablecoins"`,
436
453
  require: "o"
437
454
  },
438
455
  {
439
456
  name: "param2",
440
457
  detail: `For "price": target currency(ies) (e.g. "usd").
441
458
  For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d).`,
442
- example: `"usd" | "1h,24h,7d"`,
459
+ example: `"1h,24h,7d"`,
443
460
  require: "o"
444
461
  },
445
462
  {
@@ -578,15 +595,15 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
578
595
  },
579
596
  {
580
597
  name: "startDate",
581
- detail: "Start timestamp in seconds (optional). Used to filter block range.",
582
- example: `"1704067200"`,
598
+ detail: "Used to filter block range.",
599
+ example: `"01/01/2024"`,
583
600
  require: "o",
584
601
  type: "rangenumber"
585
602
  },
586
603
  {
587
604
  name: "endDate",
588
- detail: "End timestamp in seconds (optional). Used to filter block range.",
589
- example: `"1706659200"`,
605
+ detail: "Used to filter block range.",
606
+ example: `"01/01/2025"`,
590
607
  require: "o",
591
608
  type: "rangenumber"
592
609
  }
@@ -625,15 +642,15 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
625
642
  },
626
643
  {
627
644
  name: "startDate",
628
- detail: "Start timestamp in seconds (optional). Used to filter block range.",
629
- example: `"1704067200"`,
645
+ detail: "Used to filter block range.",
646
+ example: `"01/01/2024"`,
630
647
  require: "o",
631
648
  type: "rangenumber"
632
649
  },
633
650
  {
634
651
  name: "endDate",
635
- detail: "End timestamp in seconds (optional). Used to filter block range.",
636
- example: `"1706659200"`,
652
+ detail: "Used to filter block range.",
653
+ example: `"01/07/2025"`,
637
654
  require: "o",
638
655
  type: "rangenumber"
639
656
  }
@@ -672,15 +689,15 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
672
689
  },
673
690
  {
674
691
  name: "startDate",
675
- detail: "Start timestamp in seconds (optional). Used to filter block range.",
676
- example: `"1704067200"`,
692
+ detail: "Used to filter block range.",
693
+ example: `"01/01/2024"`,
677
694
  require: "o",
678
695
  type: "rangenumber"
679
696
  },
680
697
  {
681
698
  name: "endDate",
682
- detail: "End timestamp in seconds (optional). Used to filter block range.",
683
- example: `"1706659200"`,
699
+ detail: "Used to filter block range.",
700
+ example: `"01/07/2025"`,
684
701
  require: "o",
685
702
  type: "rangenumber"
686
703
  }
@@ -719,15 +736,15 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
719
736
  },
720
737
  {
721
738
  name: "startDate",
722
- detail: "Start timestamp in seconds (optional). Used to filter block range.",
723
- example: `"1704067200"`,
739
+ detail: "Used to filter block range.",
740
+ example: `"01/01/2024"`,
724
741
  require: "o",
725
742
  type: "rangenumber"
726
743
  },
727
744
  {
728
745
  name: "endDate",
729
- detail: "End timestamp in seconds (optional). Used to filter block range.",
730
- example: `"1706659200"`,
746
+ detail: "Used to filter block range.",
747
+ example: `"01/07/2025"`,
731
748
  require: "o",
732
749
  type: "rangenumber"
733
750
  }
@@ -766,15 +783,15 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
766
783
  },
767
784
  {
768
785
  name: "startDate",
769
- detail: "Start timestamp in seconds (optional). Used to filter block range.",
770
- example: `"1704067200"`,
786
+ detail: "Used to filter block range.",
787
+ example: `"01/01/2024"`,
771
788
  require: "o",
772
789
  type: "rangenumber"
773
790
  },
774
791
  {
775
792
  name: "endDate",
776
- detail: "End timestamp in seconds (optional). Used to filter block range.",
777
- example: `"1706659200"`,
793
+ detail: "Used to filter block range.",
794
+ example: `"01/07/2025"`,
778
795
  require: "o",
779
796
  type: "rangenumber"
780
797
  }
@@ -813,15 +830,15 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
813
830
  },
814
831
  {
815
832
  name: "startDate",
816
- detail: "Start timestamp in seconds (optional). Used to filter block range.",
817
- example: `"1704067200"`,
833
+ detail: "Used to filter block range.",
834
+ example: `"01/01/2024"`,
818
835
  require: "o",
819
836
  type: "rangenumber"
820
837
  },
821
838
  {
822
839
  name: "endDate",
823
- detail: "End timestamp in seconds (optional). Used to filter block range.",
824
- example: `"1706659200"`,
840
+ detail: "Used to filter block range.",
841
+ example: `"01/07/2025"`,
825
842
  require: "o",
826
843
  type: "rangenumber"
827
844
  }
@@ -832,7 +849,7 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
832
849
  LOGO: "https://gnosisscan.io/assets/generic/html/favicon-light.ico",
833
850
  BRAND_COLOR: "#f6f7f6",
834
851
  BRAND_SECONDARY_COLOR: "#133629",
835
- n: "GNOSIS",
852
+ n: "GNOSISPAY",
836
853
  t: 20,
837
854
  d: "Fetches Gnosis Pay card transaction history, including merchant, amount, and currency info.",
838
855
  a: "Retrieves card transactions from Gnosis Pay\u2019s API for a specific card ID, filtered by date range and paginated via limit/offset.",
@@ -846,15 +863,15 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
846
863
  },
847
864
  {
848
865
  name: "startDate",
849
- detail: "Start timestamp in seconds (UNIX). Filters transactions created after this date.",
850
- example: `"1704067200"`,
866
+ detail: "Filters transactions created after this date.",
867
+ example: `"01/01/2024"`,
851
868
  require: "o",
852
869
  type: "rangenumber"
853
870
  },
854
871
  {
855
872
  name: "endDate",
856
- detail: "End timestamp in seconds (UNIX). Filters transactions created before this date.",
857
- example: `"1706659200"`,
873
+ detail: "Filters transactions created before this date.",
874
+ example: `"01/07/2025"`,
858
875
  require: "o",
859
876
  type: "rangenumber"
860
877
  },
@@ -907,15 +924,15 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
907
924
  },
908
925
  {
909
926
  name: "startDate",
910
- detail: "Start timestamp in seconds (optional). Used to filter block range.",
911
- example: `"1704067200"`,
927
+ detail: "Used to filter block range.",
928
+ example: `"01/01/2024"`,
912
929
  require: "o",
913
930
  type: "rangenumber"
914
931
  },
915
932
  {
916
933
  name: "endDate",
917
- detail: "End timestamp in seconds (optional). Used to filter block range.",
918
- example: `"1706659200"`,
934
+ detail: "Used to filter block range.",
935
+ example: `"01/07/2025"`,
919
936
  require: "o",
920
937
  type: "rangenumber"
921
938
  }
@@ -954,15 +971,15 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
954
971
  },
955
972
  {
956
973
  name: "startDate",
957
- detail: "Start timestamp in seconds (optional). Used to filter block range.",
958
- example: `"1704067200"`,
974
+ detail: "Used to filter block range.",
975
+ example: `"01/01/2024"`,
959
976
  require: "o",
960
977
  type: "rangenumber"
961
978
  },
962
979
  {
963
980
  name: "endDate",
964
- detail: "End timestamp in seconds (optional). Used to filter block range.",
965
- example: `"1706659200"`,
981
+ detail: "Used to filter block range.",
982
+ example: `"01/07/2025"`,
966
983
  require: "o",
967
984
  type: "rangenumber"
968
985
  }
@@ -975,5 +992,6 @@ export {
975
992
  ERROR_MESSAGES_FLAG,
976
993
  FUNCTION_LOCALE,
977
994
  SAFE_CHAIN_MAP,
978
- SERVICE_API_KEY
995
+ SERVICE_API_KEY,
996
+ UTILITY
979
997
  };