@8ms/helpers 1.40.4 → 1.40.9

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.
Files changed (1027) hide show
  1. package/api/ApiResponse.d.ts +50 -0
  2. package/api/ApiResponse.js +94 -0
  3. package/api/index.d.ts +9 -0
  4. package/api/index.js +13 -0
  5. package/api/isError.d.ts +6 -0
  6. package/api/isError.js +7 -0
  7. package/api/isSuccess.d.ts +6 -0
  8. package/api/isSuccess.js +7 -0
  9. package/api/response.d.ts +8 -0
  10. package/api/response.js +9 -0
  11. package/array/contains.d.ts +9 -0
  12. package/array/contains.js +7 -0
  13. package/array/getArray.d.ts +8 -0
  14. package/array/getArray.js +11 -0
  15. package/atInternet/request.d.ts +30 -0
  16. package/atInternet/request.js +2 -0
  17. package/aws/athenaExpress/initClient.d.ts +12 -0
  18. package/aws/athenaExpress/initClient.js +31 -0
  19. package/aws/athenaExpress/query.d.ts +8 -0
  20. package/aws/athenaExpress/query.js +16 -0
  21. package/aws/ec2/initClient.d.ts +11 -0
  22. package/aws/ec2/initClient.js +23 -0
  23. package/aws/ec2/startInstances.d.ts +11 -0
  24. package/aws/ec2/startInstances.js +18 -0
  25. package/aws/ec2/stopInstances.d.ts +12 -0
  26. package/aws/ec2/stopInstances.js +19 -0
  27. package/aws/ecs/getClusters.d.ts +9 -0
  28. package/aws/ecs/getClusters.js +32 -0
  29. package/aws/ecs/getTaskDefinitions.d.ts +13 -0
  30. package/aws/ecs/getTaskDefinitions.js +35 -0
  31. package/aws/ecs/getTasks.d.ts +16 -0
  32. package/aws/ecs/getTasks.js +38 -0
  33. package/aws/ecs/initClient.d.ts +11 -0
  34. package/aws/ecs/initClient.js +23 -0
  35. package/aws/ecs/runTask.d.ts +16 -0
  36. package/aws/ecs/runTask.js +30 -0
  37. package/aws/getConfig.d.ts +13 -0
  38. package/aws/getConfig.js +27 -0
  39. package/aws/glue/initClient.d.ts +10 -0
  40. package/aws/glue/initClient.js +21 -0
  41. package/aws/glue/invoke.d.ts +9 -0
  42. package/aws/glue/invoke.js +23 -0
  43. package/aws/isResponse200.d.ts +7 -0
  44. package/aws/isResponse200.js +22 -0
  45. package/aws/lambda/getHandlerPath.d.ts +5 -0
  46. package/aws/lambda/getHandlerPath.js +7 -0
  47. package/aws/lambda/initClient.d.ts +10 -0
  48. package/aws/lambda/initClient.js +21 -0
  49. package/aws/lambda/invoke.d.ts +13 -0
  50. package/aws/lambda/invoke.js +61 -0
  51. package/aws/s3/copyFile.d.ts +13 -0
  52. package/aws/s3/copyFile.js +14 -0
  53. package/aws/s3/deleteFile.d.ts +9 -0
  54. package/aws/s3/deleteFile.js +13 -0
  55. package/aws/s3/deleteFiles.d.ts +9 -0
  56. package/aws/s3/deleteFiles.js +17 -0
  57. package/aws/s3/deleteFolder.d.ts +9 -0
  58. package/aws/s3/deleteFolder.js +36 -0
  59. package/aws/s3/getGlueJson.d.ts +8 -0
  60. package/aws/s3/getGlueJson.js +11 -0
  61. package/aws/s3/getPresignedPost.d.ts +20 -0
  62. package/aws/s3/getPresignedPost.js +19 -0
  63. package/aws/s3/getSignedUrl.d.ts +12 -0
  64. package/aws/s3/getSignedUrl.js +17 -0
  65. package/aws/s3/initClient.d.ts +10 -0
  66. package/aws/s3/initClient.js +19 -0
  67. package/aws/s3/isFileExists.d.ts +9 -0
  68. package/aws/s3/isFileExists.js +27 -0
  69. package/aws/s3/listFiles.d.ts +9 -0
  70. package/aws/s3/listFiles.js +33 -0
  71. package/aws/s3/listFilesIteratively.d.ts +9 -0
  72. package/aws/s3/listFilesIteratively.js +44 -0
  73. package/aws/s3/listFolders.d.ts +9 -0
  74. package/aws/s3/listFolders.js +32 -0
  75. package/aws/s3/moveFile.d.ts +10 -0
  76. package/aws/s3/moveFile.js +21 -0
  77. package/aws/s3/readBrotli.d.ts +11 -0
  78. package/aws/s3/readBrotli.js +28 -0
  79. package/aws/s3/readBuffer.d.ts +13 -0
  80. package/aws/s3/readBuffer.js +39 -0
  81. package/aws/s3/readFile.d.ts +31 -0
  82. package/aws/s3/readFile.js +83 -0
  83. package/aws/s3/readGzip.d.ts +11 -0
  84. package/aws/s3/readGzip.js +28 -0
  85. package/aws/s3/writeBrotli.d.ts +12 -0
  86. package/aws/s3/writeBrotli.js +28 -0
  87. package/aws/s3/writeFile.d.ts +11 -0
  88. package/aws/s3/writeFile.js +16 -0
  89. package/aws/s3/writeGzip.d.ts +12 -0
  90. package/aws/s3/writeGzip.js +28 -0
  91. package/aws/s3/writePresignedPost.d.ts +14 -0
  92. package/aws/s3/writePresignedPost.js +31 -0
  93. package/aws/s3/writeUrlContents.d.ts +10 -0
  94. package/aws/s3/writeUrlContents.js +23 -0
  95. package/aws/s3cache/getCache.d.ts +11 -0
  96. package/aws/s3cache/getCache.js +37 -0
  97. package/aws/s3cache/getKey.d.ts +10 -0
  98. package/aws/s3cache/getKey.js +18 -0
  99. package/aws/s3cache/index.d.ts +6 -0
  100. package/aws/s3cache/index.js +2 -0
  101. package/aws/s3cache/saveCache.d.ts +10 -0
  102. package/aws/s3cache/saveCache.js +17 -0
  103. package/aws/s3cache/updateCache.d.ts +10 -0
  104. package/aws/s3cache/updateCache.js +24 -0
  105. package/aws/ses/SimpleEmail.d.ts +51 -0
  106. package/aws/ses/SimpleEmail.js +114 -0
  107. package/aws/ses/initClient.d.ts +10 -0
  108. package/aws/ses/initClient.js +19 -0
  109. package/aws/sqs/addToQueue.d.ts +27 -0
  110. package/aws/sqs/addToQueue.js +26 -0
  111. package/aws/sqs/deleteFromQueue.d.ts +10 -0
  112. package/aws/sqs/deleteFromQueue.js +15 -0
  113. package/aws/sqs/initClient.d.ts +10 -0
  114. package/aws/sqs/initClient.js +19 -0
  115. package/aws/sqs/isEventSqs.js +13 -0
  116. package/aws/ssm/getParameter.d.ts +10 -0
  117. package/aws/ssm/getParameter.js +40 -0
  118. package/aws/ssm/initClient.d.ts +10 -0
  119. package/aws/ssm/initClient.js +19 -0
  120. package/axios/delete.d.ts +11 -0
  121. package/axios/delete.js +43 -0
  122. package/axios/get.d.ts +10 -0
  123. package/axios/get.js +39 -0
  124. package/axios/post.d.ts +11 -0
  125. package/axios/post.js +39 -0
  126. package/boolean/getBoolean.d.ts +7 -0
  127. package/boolean/getBoolean.js +16 -0
  128. package/brightData/getCustomerId.d.ts +10 -0
  129. package/brightData/getCustomerId.js +11 -0
  130. package/brightData/getZone.d.ts +9 -0
  131. package/brightData/getZone.js +10 -0
  132. package/brightData/param.d.ts +9 -0
  133. package/brightData/param.js +3 -0
  134. package/brightData/serpApi/buildGoogleSerpUrl.d.ts +32 -0
  135. package/brightData/serpApi/buildGoogleSerpUrl.js +115 -0
  136. package/brightData/serpApi/buildGoogleTrendsUrl.d.ts +22 -0
  137. package/brightData/serpApi/buildGoogleTrendsUrl.js +60 -0
  138. package/brightData/serpApi/getAsyncRequestId.d.ts +14 -0
  139. package/brightData/serpApi/getAsyncRequestId.js +50 -0
  140. package/brightData/serpApi/getAsyncResults.d.ts +12 -0
  141. package/brightData/serpApi/getAsyncResults.js +49 -0
  142. package/brightData/serpApi/getRealtime.d.ts +10 -0
  143. package/brightData/serpApi/getRealtime.js +35 -0
  144. package/brightData/serpApi/type.d.ts +11 -0
  145. package/brightData/serpApi/type.js +14 -0
  146. package/brightData/webScraperIde/getBatch.d.ts +14 -0
  147. package/brightData/webScraperIde/getBatch.js +34 -0
  148. package/brightData/webScraperIde/getRealtime.d.ts +13 -0
  149. package/brightData/webScraperIde/getRealtime.js +64 -0
  150. package/class/BaseClass.d.ts +31 -0
  151. package/class/BaseClass.js +50 -0
  152. package/crud/index.d.ts +6 -0
  153. package/crud/index.js +10 -0
  154. package/crypto/getDecrypt.d.ts +10 -0
  155. package/crypto/getDecrypt.js +13 -0
  156. package/crypto/getEncrypt.d.ts +10 -0
  157. package/crypto/getEncrypt.js +13 -0
  158. package/crypto/getRandom.d.ts +8 -0
  159. package/crypto/getRandom.js +12 -0
  160. package/crypto/getSha256.d.ts +8 -0
  161. package/crypto/getSha256.js +17 -0
  162. package/date/format.d.ts +10 -0
  163. package/date/format.js +21 -0
  164. package/date/getDate.d.ts +14 -0
  165. package/date/getDate.js +138 -0
  166. package/date/getDatesBetween.d.ts +13 -0
  167. package/date/getDatesBetween.js +54 -0
  168. package/date/getDurationHours.d.ts +9 -0
  169. package/date/getDurationHours.js +24 -0
  170. package/date/getDurationMinutes.d.ts +9 -0
  171. package/date/getDurationMinutes.js +22 -0
  172. package/date/getFinancialYear.d.ts +9 -0
  173. package/date/getFinancialYear.js +52 -0
  174. package/date/getFinancialYearToDate.d.ts +7 -0
  175. package/date/getFinancialYearToDate.js +20 -0
  176. package/date/getFinancialYearToYesterday.d.ts +7 -0
  177. package/date/getFinancialYearToYesterday.js +20 -0
  178. package/date/getFinancialYearWeeks.d.ts +9 -0
  179. package/date/getFinancialYearWeeks.js +33 -0
  180. package/date/getLastWeek.d.ts +10 -0
  181. package/date/getLastWeek.js +34 -0
  182. package/date/getMax.d.ts +13 -0
  183. package/date/getMax.js +24 -0
  184. package/date/getMidnight.d.ts +10 -0
  185. package/date/getMidnight.js +13 -0
  186. package/date/getMin.d.ts +13 -0
  187. package/date/getMin.js +24 -0
  188. package/date/getMonday.d.ts +15 -0
  189. package/date/getMonday.js +46 -0
  190. package/date/getNumber.d.ts +7 -0
  191. package/date/getNumber.js +20 -0
  192. package/date/getPredefinedTimeframe.d.ts +8 -0
  193. package/date/getPredefinedTimeframe.js +24 -0
  194. package/date/getSunday.d.ts +15 -0
  195. package/date/getSunday.js +42 -0
  196. package/date/getThisWeek.d.ts +10 -0
  197. package/date/getThisWeek.js +36 -0
  198. package/date/getTimeZoned.d.ts +13 -0
  199. package/date/getTimeZoned.js +55 -0
  200. package/date/getToday.d.ts +9 -0
  201. package/date/getToday.js +24 -0
  202. package/date/getTodayYmd.d.ts +5 -0
  203. package/date/getTodayYmd.js +21 -0
  204. package/date/getTodayYmdhis.d.ts +5 -0
  205. package/date/getTodayYmdhis.js +21 -0
  206. package/date/getTwoWeeksAgo.d.ts +10 -0
  207. package/date/getTwoWeeksAgo.js +36 -0
  208. package/date/getWeeksAgo.d.ts +13 -0
  209. package/date/getWeeksAgo.js +25 -0
  210. package/date/getYesterday.d.ts +9 -0
  211. package/date/getYesterday.js +52 -0
  212. package/date/index.d.ts +55 -0
  213. package/date/index.js +36 -0
  214. package/date/isDateValid.d.ts +7 -0
  215. package/date/isDateValid.js +20 -0
  216. package/date/isLastWeek.d.ts +6 -0
  217. package/date/isLastWeek.js +14 -0
  218. package/date/isThisWeek.d.ts +6 -0
  219. package/date/isThisWeek.js +14 -0
  220. package/date/parseExcelDate.d.ts +8 -0
  221. package/date/parseExcelDate.js +19 -0
  222. package/environment/getEnvironment.d.ts +6 -0
  223. package/environment/getEnvironment.js +43 -0
  224. package/environment/index.d.ts +9 -0
  225. package/environment/index.js +14 -0
  226. package/environment/isAws.d.ts +5 -0
  227. package/environment/isAws.js +8 -0
  228. package/environment/isDevelopment.d.ts +2 -0
  229. package/environment/isDevelopment.js +9 -0
  230. package/environment/isLocalhost.d.ts +5 -0
  231. package/environment/isLocalhost.js +25 -0
  232. package/environment/isProduction.d.ts +2 -0
  233. package/environment/isProduction.js +9 -0
  234. package/environment/isStaging.d.ts +2 -0
  235. package/environment/isStaging.js +9 -0
  236. package/environment/isVercel.d.ts +5 -0
  237. package/environment/isVercel.js +7 -0
  238. package/eskimi/ageGroups.d.ts +5 -0
  239. package/eskimi/ageGroups.js +41 -0
  240. package/eskimi/campaign.d.ts +19 -0
  241. package/eskimi/campaign.js +2 -0
  242. package/eskimi/devices.d.ts +5 -0
  243. package/eskimi/devices.js +13 -0
  244. package/eskimi/endpoints.d.ts +16 -0
  245. package/eskimi/endpoints.js +18 -0
  246. package/eskimi/genders.d.ts +5 -0
  247. package/eskimi/genders.js +13 -0
  248. package/eskimi/getAccessToken.d.ts +9 -0
  249. package/eskimi/getAccessToken.js +23 -0
  250. package/eskimi/getAgeGroup.d.ts +7 -0
  251. package/eskimi/getAgeGroup.js +17 -0
  252. package/eskimi/getCampaignIds.d.ts +7 -0
  253. package/eskimi/getCampaignIds.js +12 -0
  254. package/eskimi/getData.d.ts +8 -0
  255. package/eskimi/getData.js +23 -0
  256. package/eskimi/getDevice.d.ts +7 -0
  257. package/eskimi/getDevice.js +17 -0
  258. package/eskimi/getGender.d.ts +7 -0
  259. package/eskimi/getGender.js +17 -0
  260. package/file/createDirectory.d.ts +9 -0
  261. package/file/createDirectory.js +16 -0
  262. package/file/writeFile.d.ts +1 -0
  263. package/file/writeFile.js +3 -0
  264. package/global/forceUpdate.d.ts +8 -0
  265. package/global/forceUpdate.js +25 -0
  266. package/global/init.d.ts +10 -0
  267. package/global/init.js +18 -0
  268. package/global/isSet.d.ts +8 -0
  269. package/global/isSet.js +9 -0
  270. package/global/maxCache.d.ts +8 -0
  271. package/global/maxCache.js +17 -0
  272. package/global/read.d.ts +8 -0
  273. package/global/read.js +30 -0
  274. package/google/bigQuery/IsTableExists.d.ts +11 -0
  275. package/google/bigQuery/IsTableExists.js +25 -0
  276. package/google/bigQuery/createDataset.d.ts +11 -0
  277. package/google/bigQuery/createDataset.js +22 -0
  278. package/google/bigQuery/createTable.d.ts +12 -0
  279. package/google/bigQuery/createTable.js +31 -0
  280. package/google/bigQuery/getClient.d.ts +9 -0
  281. package/google/bigQuery/getClient.js +18 -0
  282. package/google/bigQuery/getDatasets.d.ts +13 -0
  283. package/google/bigQuery/getDatasets.js +27 -0
  284. package/google/bigQuery/getTables.d.ts +12 -0
  285. package/google/bigQuery/getTables.js +25 -0
  286. package/google/bigQuery/initClient.d.ts +11 -0
  287. package/google/bigQuery/initClient.js +29 -0
  288. package/google/bigQuery/isDatasetExists.d.ts +11 -0
  289. package/google/bigQuery/isDatasetExists.js +25 -0
  290. package/google/bigQuery/loadData.d.ts +18 -0
  291. package/google/bigQuery/loadData.js +32 -0
  292. package/google/bigQuery/query.d.ts +19 -0
  293. package/google/bigQuery/query.js +15 -0
  294. package/google/getConfig.d.ts +20 -0
  295. package/google/getConfig.js +23 -0
  296. package/google/sheets/getAssociatedData.d.ts +16 -0
  297. package/google/sheets/getAssociatedData.js +53 -0
  298. package/google/sheets/getBatchData.d.ts +18 -0
  299. package/google/sheets/getBatchData.js +19 -0
  300. package/google/sheets/initClient.d.ts +11 -0
  301. package/google/sheets/initClient.js +25 -0
  302. package/google/sheets/isCellNa.d.ts +7 -0
  303. package/google/sheets/isCellNa.js +7 -0
  304. package/google/storage/copyToCloud.d.ts +11 -0
  305. package/google/storage/copyToCloud.js +18 -0
  306. package/google/storage/getClient.d.ts +8 -0
  307. package/google/storage/getClient.js +18 -0
  308. package/google/storage/initClient.d.ts +12 -0
  309. package/google/storage/initClient.js +29 -0
  310. package/google/storage/isFileExists.d.ts +10 -0
  311. package/google/storage/isFileExists.js +19 -0
  312. package/google/storage/writeFile.d.ts +11 -0
  313. package/google/storage/writeFile.js +37 -0
  314. package/googleAds/getCustomer.d.ts +8 -0
  315. package/googleAds/getCustomer.js +14 -0
  316. package/googleAds/initClient.d.ts +16 -0
  317. package/googleAds/initClient.js +25 -0
  318. package/googleAds/keywordPlanner/index.d.ts +238 -0
  319. package/googleAds/keywordPlanner/index.js +244 -0
  320. package/googleAds/keywordPlanner/request.d.ts +18 -0
  321. package/googleAds/keywordPlanner/request.js +13 -0
  322. package/googleAds/keywordPlanner/response.d.ts +25 -0
  323. package/googleAds/keywordPlanner/response.js +2 -0
  324. package/initClients.d.ts +43 -0
  325. package/initClients.js +131 -0
  326. package/json/getJsonNewline.d.ts +5 -0
  327. package/json/getJsonNewline.js +17 -0
  328. package/json/isJson.d.ts +8 -0
  329. package/json/isJson.js +20 -0
  330. package/littleWarden/getUrlStatus.d.ts +9 -0
  331. package/littleWarden/getUrlStatus.js +21 -0
  332. package/littleWarden/index.d.ts +5 -0
  333. package/littleWarden/index.js +9 -0
  334. package/littleWarden/isAllGood.d.ts +7 -0
  335. package/littleWarden/isAllGood.js +15 -0
  336. package/littleWarden/isDanger.d.ts +7 -0
  337. package/littleWarden/isDanger.js +15 -0
  338. package/littleWarden/isWarning.d.ts +7 -0
  339. package/littleWarden/isWarning.js +15 -0
  340. package/lumar/api/buildRequest.d.ts +15 -0
  341. package/lumar/api/buildRequest.js +83 -0
  342. package/lumar/api/filter.d.ts +5 -0
  343. package/lumar/api/filter.js +2 -0
  344. package/lumar/api/getData.d.ts +6 -0
  345. package/lumar/api/getData.js +18 -0
  346. package/lumar/api/initClient.d.ts +13 -0
  347. package/lumar/api/initClient.js +38 -0
  348. package/lumar/api/operands.d.ts +11 -0
  349. package/lumar/api/operands.js +13 -0
  350. package/lumar/api/orders.d.ts +9 -0
  351. package/lumar/api/orders.js +7 -0
  352. package/lumar/api/reports.d.ts +11 -0
  353. package/lumar/api/reports.js +13 -0
  354. package/lumar/graphql/columns.d.ts +29 -0
  355. package/lumar/graphql/columns.js +31 -0
  356. package/lumar/graphql/getData.d.ts +9 -0
  357. package/lumar/graphql/getData.js +26 -0
  358. package/lumar/graphql/getReportKey.d.ts +9 -0
  359. package/lumar/graphql/getReportKey.js +9 -0
  360. package/lumar/graphql/initClient.d.ts +12 -0
  361. package/lumar/graphql/initClient.js +38 -0
  362. package/lumar/graphql/operands.d.ts +16 -0
  363. package/lumar/graphql/operands.js +18 -0
  364. package/lumar/graphql/queries/crawl.d.ts +5 -0
  365. package/lumar/graphql/queries/crawl.js +2 -0
  366. package/lumar/graphql/queries/getCrawls.d.ts +18 -0
  367. package/lumar/graphql/queries/getCrawls.js +33 -0
  368. package/lumar/graphql/queries/getReportDifferences.d.ts +24 -0
  369. package/lumar/graphql/queries/getReportDifferences.js +40 -0
  370. package/lumar/graphql/queries/getRows.d.ts +38 -0
  371. package/lumar/graphql/queries/getRows.js +57 -0
  372. package/lumar/graphql/queries/getTotals.d.ts +25 -0
  373. package/lumar/graphql/queries/getTotals.js +40 -0
  374. package/lumar/graphql/queries/row.d.ts +157 -0
  375. package/lumar/graphql/queries/row.js +2 -0
  376. package/lumar/graphql/reportTemplates.d.ts +68 -0
  377. package/lumar/graphql/reportTemplates.js +70 -0
  378. package/lumar/graphql/reportTypes.d.ts +7 -0
  379. package/lumar/graphql/reportTypes.js +9 -0
  380. package/myTarget/getAccessToken.d.ts +9 -0
  381. package/myTarget/getAccessToken.js +23 -0
  382. package/myTarget/request.d.ts +9 -0
  383. package/myTarget/request.js +23 -0
  384. package/nextAuth/index.d.ts +5 -0
  385. package/nextAuth/index.js +9 -0
  386. package/nextAuth/isSessionReady.d.ts +4 -0
  387. package/nextAuth/isSessionReady.js +12 -0
  388. package/nextJs/getIp.d.ts +7 -0
  389. package/nextJs/getIp.js +13 -0
  390. package/nextJs/getUserAgent.d.ts +7 -0
  391. package/nextJs/getUserAgent.js +7 -0
  392. package/number/format.d.ts +11 -0
  393. package/number/format.js +23 -0
  394. package/number/getCurrency.d.ts +10 -0
  395. package/number/getCurrency.js +20 -0
  396. package/number/getDecimal.d.ts +9 -0
  397. package/number/getDecimal.js +16 -0
  398. package/number/getDivide.d.ts +11 -0
  399. package/number/getDivide.js +26 -0
  400. package/number/getNumber.d.ts +8 -0
  401. package/number/getNumber.js +51 -0
  402. package/number/getPercentIncrease.d.ts +10 -0
  403. package/number/getPercentIncrease.js +22 -0
  404. package/object/replaceKeys.d.ts +10 -0
  405. package/object/replaceKeys.js +30 -0
  406. package/package.json +55 -413
  407. package/prisma/getDecimal.d.ts +9 -0
  408. package/prisma/getDecimal.js +25 -0
  409. package/prisma/initClient.d.ts +6 -0
  410. package/prisma/initClient.js +36 -0
  411. package/snapchat/getAccessToken.d.ts +9 -0
  412. package/snapchat/getAccessToken.js +35 -0
  413. package/sorting/byNumberAscending.d.ts +8 -0
  414. package/sorting/byNumberAscending.js +17 -0
  415. package/sorting/byNumberDescending.d.ts +8 -0
  416. package/sorting/byNumberDescending.js +17 -0
  417. package/sorting/byStringAscending.d.ts +8 -0
  418. package/sorting/byStringAscending.js +21 -0
  419. package/sorting/byStringDescending.d.ts +8 -0
  420. package/sorting/byStringDescending.js +21 -0
  421. package/stream/sort.d.ts +13 -0
  422. package/stream/sort.js +50 -0
  423. package/string/getCapitalised.d.ts +10 -0
  424. package/string/getCapitalised.js +17 -0
  425. package/string/getClean.d.ts +18 -0
  426. package/string/getClean.js +65 -0
  427. package/string/getDecoded.d.ts +10 -0
  428. package/string/getDecoded.js +26 -0
  429. package/string/getFolder.d.ts +8 -0
  430. package/string/getFolder.js +14 -0
  431. package/string/getProperCase.d.ts +11 -0
  432. package/string/getProperCase.js +27 -0
  433. package/string/getString.d.ts +7 -0
  434. package/string/getString.js +34 -0
  435. package/string/getStringFromStream.d.ts +8 -0
  436. package/string/getStringFromStream.js +16 -0
  437. package/string/getWithoutAccents.d.ts +9 -0
  438. package/string/getWithoutAccents.js +16 -0
  439. package/string/getWithoutHtmlTags.d.ts +9 -0
  440. package/string/getWithoutHtmlTags.js +15 -0
  441. package/string/getWithoutPunctuation.d.ts +9 -0
  442. package/string/getWithoutPunctuation.js +16 -0
  443. package/string/getWithoutUnderscores.d.ts +8 -0
  444. package/string/getWithoutUnderscores.js +14 -0
  445. package/string/getWithoutWhitespaces.d.ts +9 -0
  446. package/string/getWithoutWhitespaces.js +16 -0
  447. package/swr/isAllData.d.ts +7 -0
  448. package/swr/isAllData.js +19 -0
  449. package/swr/isAnyError.d.ts +7 -0
  450. package/swr/isAnyError.js +19 -0
  451. package/swr/isAnyLoading.d.ts +7 -0
  452. package/swr/isAnyLoading.js +21 -0
  453. package/swr/isData.d.ts +7 -0
  454. package/swr/isData.js +9 -0
  455. package/swr/isError.d.ts +7 -0
  456. package/swr/isError.js +7 -0
  457. package/swr/isLoading.d.ts +7 -0
  458. package/swr/isLoading.js +12 -0
  459. package/upTimeRobot/getMonitors.js +33 -0
  460. package/upTimeRobot/logTypes.d.ts +7 -0
  461. package/upTimeRobot/logTypes.js +9 -0
  462. package/upTimeRobot/monitorStatuses.d.ts +8 -0
  463. package/upTimeRobot/monitorStatuses.js +10 -0
  464. package/upTimeRobot/monitorSubTypes.d.ts +10 -0
  465. package/upTimeRobot/monitorSubTypes.js +12 -0
  466. package/upTimeRobot/monitorTypes.d.ts +8 -0
  467. package/upTimeRobot/monitorTypes.js +10 -0
  468. package/upTimeRobot/requestStatuses.d.ts +5 -0
  469. package/upTimeRobot/requestStatuses.js +7 -0
  470. package/url/buildParameters.d.ts +8 -0
  471. package/url/buildParameters.js +22 -0
  472. package/url/buildRelative.d.ts +8 -0
  473. package/url/buildRelative.js +13 -0
  474. package/url/buildUrl.d.ts +10 -0
  475. package/url/buildUrl.js +29 -0
  476. package/url/isAbsolute.d.ts +7 -0
  477. package/url/isAbsolute.js +15 -0
  478. package/url/isRelative.d.ts +7 -0
  479. package/url/isRelative.js +8 -0
  480. package/url/url.d.ts +6 -0
  481. package/url/url.js +2 -0
  482. package/url/writeUrlContents.d.ts +11 -0
  483. package/url/writeUrlContents.js +72 -0
  484. package/util/defaultTo.d.ts +10 -0
  485. package/util/defaultTo.js +43 -0
  486. package/util/getBrotliCompressed.d.ts +9 -0
  487. package/util/getBrotliCompressed.js +19 -0
  488. package/util/getBrotliDecompressed.d.ts +9 -0
  489. package/util/getBrotliDecompressed.js +20 -0
  490. package/util/getClean.d.ts +11 -0
  491. package/util/getClean.js +28 -0
  492. package/util/getGzipCompressed.d.ts +9 -0
  493. package/util/getGzipCompressed.js +19 -0
  494. package/util/getGzipDecompressed.d.ts +9 -0
  495. package/util/getGzipDecompressed.js +20 -0
  496. package/util/getWithoutHash.d.ts +8 -0
  497. package/util/getWithoutHash.js +17 -0
  498. package/util/getWithoutParameter.d.ts +8 -0
  499. package/util/getWithoutParameter.js +17 -0
  500. package/util/isUndefined.d.ts +9 -0
  501. package/util/isUndefined.js +19 -0
  502. package/util/promiseChunks.d.ts +10 -0
  503. package/util/promiseChunks.js +22 -0
  504. package/util/sleep.d.ts +5 -0
  505. package/util/sleep.js +6 -0
  506. package/webWorker/index.d.ts +5 -0
  507. package/webWorker/index.js +9 -0
  508. package/xml/getXml.d.ts +5 -0
  509. package/xml/getXml.js +22 -0
  510. package/dist/api/ApiResponse.d.mts +0 -73
  511. package/dist/api/ApiResponse.mjs +0 -91
  512. package/dist/api/index.d.mts +0 -2
  513. package/dist/api/index.mjs +0 -13
  514. package/dist/api/isError.d.mts +0 -9
  515. package/dist/api/isError.mjs +0 -7
  516. package/dist/api/isSuccess.d.mts +0 -9
  517. package/dist/api/isSuccess.mjs +0 -7
  518. package/dist/api/response.d.mts +0 -2
  519. package/dist/api/response.mjs +0 -9
  520. package/dist/array/contains.d.mts +0 -11
  521. package/dist/array/contains.mjs +0 -7
  522. package/dist/array/getArray.d.mts +0 -10
  523. package/dist/array/getArray.mjs +0 -8
  524. package/dist/atInternet/request.d.mts +0 -31
  525. package/dist/aws/athenaExpress/initClient.d.mts +0 -15
  526. package/dist/aws/athenaExpress/initClient.mjs +0 -28
  527. package/dist/aws/athenaExpress/query.d.mts +0 -10
  528. package/dist/aws/athenaExpress/query.mjs +0 -13
  529. package/dist/aws/ec2/initClient.d.mts +0 -14
  530. package/dist/aws/ec2/initClient.mjs +0 -18
  531. package/dist/aws/ec2/startInstances.d.mts +0 -13
  532. package/dist/aws/ec2/startInstances.mjs +0 -17
  533. package/dist/aws/ec2/stopInstances.d.mts +0 -14
  534. package/dist/aws/ec2/stopInstances.mjs +0 -18
  535. package/dist/aws/ecs/getClusters.d.mts +0 -11
  536. package/dist/aws/ecs/getClusters.mjs +0 -23
  537. package/dist/aws/ecs/getTaskDefinitions.d.mts +0 -16
  538. package/dist/aws/ecs/getTaskDefinitions.mjs +0 -26
  539. package/dist/aws/ecs/getTasks.d.mts +0 -19
  540. package/dist/aws/ecs/getTasks.mjs +0 -29
  541. package/dist/aws/ecs/initClient.d.mts +0 -14
  542. package/dist/aws/ecs/initClient.mjs +0 -18
  543. package/dist/aws/ecs/runTask.d.mts +0 -19
  544. package/dist/aws/ecs/runTask.mjs +0 -24
  545. package/dist/aws/getConfig.d.mts +0 -18
  546. package/dist/aws/getConfig.mjs +0 -17
  547. package/dist/aws/glue/initClient.d.mts +0 -13
  548. package/dist/aws/glue/initClient.mjs +0 -17
  549. package/dist/aws/glue/invoke.d.mts +0 -11
  550. package/dist/aws/glue/invoke.mjs +0 -14
  551. package/dist/aws/isResponse200.d.mts +0 -11
  552. package/dist/aws/isResponse200.mjs +0 -16
  553. package/dist/aws/lambda/getHandlerPath.d.mts +0 -7
  554. package/dist/aws/lambda/getHandlerPath.mjs +0 -6
  555. package/dist/aws/lambda/initClient.d.mts +0 -13
  556. package/dist/aws/lambda/initClient.mjs +0 -17
  557. package/dist/aws/lambda/invoke.d.mts +0 -15
  558. package/dist/aws/lambda/invoke.mjs +0 -31
  559. package/dist/aws/s3/copyFile.d.mts +0 -18
  560. package/dist/aws/s3/copyFile.mjs +0 -15
  561. package/dist/aws/s3/deleteFile.d.mts +0 -14
  562. package/dist/aws/s3/deleteFile.mjs +0 -14
  563. package/dist/aws/s3/deleteFiles.d.mts +0 -14
  564. package/dist/aws/s3/deleteFiles.mjs +0 -14
  565. package/dist/aws/s3/deleteFolder.d.mts +0 -14
  566. package/dist/aws/s3/deleteFolder.mjs +0 -26
  567. package/dist/aws/s3/getGlueJson.d.mts +0 -12
  568. package/dist/aws/s3/getGlueJson.mjs +0 -8
  569. package/dist/aws/s3/getPresignedPost.d.mts +0 -28
  570. package/dist/aws/s3/getPresignedPost.mjs +0 -19
  571. package/dist/aws/s3/getSignedUrl.d.mts +0 -19
  572. package/dist/aws/s3/getSignedUrl.mjs +0 -17
  573. package/dist/aws/s3/initClient.d.mts +0 -15
  574. package/dist/aws/s3/initClient.mjs +0 -17
  575. package/dist/aws/s3/isFileExists.d.mts +0 -11
  576. package/dist/aws/s3/isFileExists.mjs +0 -21
  577. package/dist/aws/s3/listFiles.d.mts +0 -14
  578. package/dist/aws/s3/listFiles.mjs +0 -27
  579. package/dist/aws/s3/listFilesIteratively.d.mts +0 -11
  580. package/dist/aws/s3/listFilesIteratively.mjs +0 -40
  581. package/dist/aws/s3/listFolders.d.mts +0 -14
  582. package/dist/aws/s3/listFolders.mjs +0 -23
  583. package/dist/aws/s3/moveFile.d.mts +0 -16
  584. package/dist/aws/s3/moveFile.mjs +0 -18
  585. package/dist/aws/s3/readBrotli.d.mts +0 -18
  586. package/dist/aws/s3/readBrotli.mjs +0 -20
  587. package/dist/aws/s3/readBuffer.d.mts +0 -19
  588. package/dist/aws/s3/readBuffer.mjs +0 -29
  589. package/dist/aws/s3/readFile.d.mts +0 -38
  590. package/dist/aws/s3/readFile.mjs +0 -64
  591. package/dist/aws/s3/readGzip.d.mts +0 -18
  592. package/dist/aws/s3/readGzip.mjs +0 -20
  593. package/dist/aws/s3/writeBrotli.d.mts +0 -20
  594. package/dist/aws/s3/writeBrotli.mjs +0 -18
  595. package/dist/aws/s3/writeFile.d.mts +0 -18
  596. package/dist/aws/s3/writeFile.mjs +0 -16
  597. package/dist/aws/s3/writeGzip.d.mts +0 -20
  598. package/dist/aws/s3/writeGzip.mjs +0 -18
  599. package/dist/aws/s3/writePresignedPost.d.mts +0 -24
  600. package/dist/aws/s3/writePresignedPost.mjs +0 -28
  601. package/dist/aws/s3/writeUrlContents.d.mts +0 -16
  602. package/dist/aws/s3/writeUrlContents.mjs +0 -19
  603. package/dist/aws/s3cache/getCache.d.mts +0 -19
  604. package/dist/aws/s3cache/getCache.mjs +0 -25
  605. package/dist/aws/s3cache/getKey.d.mts +0 -15
  606. package/dist/aws/s3cache/getKey.mjs +0 -15
  607. package/dist/aws/s3cache/index.d.mts +0 -10
  608. package/dist/aws/s3cache/saveCache.d.mts +0 -16
  609. package/dist/aws/s3cache/saveCache.mjs +0 -14
  610. package/dist/aws/s3cache/updateCache.d.mts +0 -18
  611. package/dist/aws/s3cache/updateCache.mjs +0 -26
  612. package/dist/aws/ses/SimpleEmail.d.mts +0 -79
  613. package/dist/aws/ses/SimpleEmail.mjs +0 -122
  614. package/dist/aws/ses/initClient.d.mts +0 -15
  615. package/dist/aws/ses/initClient.mjs +0 -17
  616. package/dist/aws/sqs/addToQueue.d.mts +0 -35
  617. package/dist/aws/sqs/addToQueue.mjs +0 -20
  618. package/dist/aws/sqs/deleteFromQueue.d.mts +0 -16
  619. package/dist/aws/sqs/deleteFromQueue.mjs +0 -15
  620. package/dist/aws/sqs/index.d.mts +0 -18
  621. package/dist/aws/sqs/initClient.d.mts +0 -15
  622. package/dist/aws/sqs/initClient.mjs +0 -17
  623. package/dist/aws/sqs/isEventSqs.d.mts +0 -1
  624. package/dist/aws/sqs/isEventSqs.mjs +0 -1
  625. package/dist/aws/ssm/getParameter.d.mts +0 -16
  626. package/dist/aws/ssm/getParameter.mjs +0 -22
  627. package/dist/aws/ssm/initClient.d.mts +0 -15
  628. package/dist/aws/ssm/initClient.mjs +0 -17
  629. package/dist/axios/delete.d.mts +0 -14
  630. package/dist/axios/delete.mjs +0 -25
  631. package/dist/axios/get.d.mts +0 -16
  632. package/dist/axios/get.mjs +0 -24
  633. package/dist/axios/post.d.mts +0 -18
  634. package/dist/axios/post.mjs +0 -25
  635. package/dist/boolean/getBoolean.d.mts +0 -11
  636. package/dist/boolean/getBoolean.mjs +0 -11
  637. package/dist/brightData/getCustomerId.d.mts +0 -13
  638. package/dist/brightData/getCustomerId.mjs +0 -10
  639. package/dist/brightData/getZone.d.mts +0 -12
  640. package/dist/brightData/getZone.mjs +0 -10
  641. package/dist/brightData/param.d.mts +0 -11
  642. package/dist/brightData/param.mjs +0 -4
  643. package/dist/brightData/serpApi/buildGoogleSerpUrl.d.mts +0 -34
  644. package/dist/brightData/serpApi/buildGoogleSerpUrl.mjs +0 -100
  645. package/dist/brightData/serpApi/buildGoogleTrendsUrl.d.mts +0 -24
  646. package/dist/brightData/serpApi/buildGoogleTrendsUrl.mjs +0 -51
  647. package/dist/brightData/serpApi/getAsyncRequestId.d.mts +0 -17
  648. package/dist/brightData/serpApi/getAsyncRequestId.mjs +0 -35
  649. package/dist/brightData/serpApi/getAsyncResults.d.mts +0 -15
  650. package/dist/brightData/serpApi/getAsyncResults.mjs +0 -25
  651. package/dist/brightData/serpApi/getRealtime.d.mts +0 -13
  652. package/dist/brightData/serpApi/getRealtime.mjs +0 -25
  653. package/dist/brightData/serpApi/type.d.mts +0 -13
  654. package/dist/brightData/serpApi/type.mjs +0 -14
  655. package/dist/brightData/webScraperIde/getBatch.d.mts +0 -17
  656. package/dist/brightData/webScraperIde/getBatch.mjs +0 -22
  657. package/dist/brightData/webScraperIde/getRealtime.d.mts +0 -16
  658. package/dist/brightData/webScraperIde/getRealtime.mjs +0 -44
  659. package/dist/chunk-y_GBKt04.mjs +0 -5
  660. package/dist/class/BaseClass.d.mts +0 -45
  661. package/dist/class/BaseClass.mjs +0 -46
  662. package/dist/crud/index.d.mts +0 -9
  663. package/dist/crud/index.mjs +0 -10
  664. package/dist/crypto/getDecrypt.d.mts +0 -16
  665. package/dist/crypto/getDecrypt.mjs +0 -13
  666. package/dist/crypto/getEncrypt.d.mts +0 -16
  667. package/dist/crypto/getEncrypt.mjs +0 -13
  668. package/dist/crypto/getRandom.d.mts +0 -12
  669. package/dist/crypto/getRandom.mjs +0 -10
  670. package/dist/crypto/getSha256.d.mts +0 -12
  671. package/dist/crypto/getSha256.mjs +0 -13
  672. package/dist/date/format.d.mts +0 -13
  673. package/dist/date/format.mjs +0 -17
  674. package/dist/date/getDate.d.mts +0 -17
  675. package/dist/date/getDate.mjs +0 -107
  676. package/dist/date/getDatesBetween.d.mts +0 -16
  677. package/dist/date/getDatesBetween.mjs +0 -37
  678. package/dist/date/getDurationHours.d.mts +0 -11
  679. package/dist/date/getDurationHours.mjs +0 -24
  680. package/dist/date/getDurationMinutes.d.mts +0 -11
  681. package/dist/date/getDurationMinutes.mjs +0 -22
  682. package/dist/date/getFinancialYear.d.mts +0 -12
  683. package/dist/date/getFinancialYear.mjs +0 -31
  684. package/dist/date/getFinancialYearToDate.d.mts +0 -10
  685. package/dist/date/getFinancialYearToDate.mjs +0 -15
  686. package/dist/date/getFinancialYearToYesterday.d.mts +0 -10
  687. package/dist/date/getFinancialYearToYesterday.mjs +0 -15
  688. package/dist/date/getFinancialYearWeeks.d.mts +0 -12
  689. package/dist/date/getFinancialYearWeeks.mjs +0 -23
  690. package/dist/date/getLastWeek.d.mts +0 -16
  691. package/dist/date/getLastWeek.mjs +0 -30
  692. package/dist/date/getMax.d.mts +0 -16
  693. package/dist/date/getMax.mjs +0 -21
  694. package/dist/date/getMidnight.d.mts +0 -2
  695. package/dist/date/getMidnight.mjs +0 -11
  696. package/dist/date/getMin.d.mts +0 -16
  697. package/dist/date/getMin.mjs +0 -21
  698. package/dist/date/getMonday.d.mts +0 -18
  699. package/dist/date/getMonday.mjs +0 -31
  700. package/dist/date/getNumber.d.mts +0 -10
  701. package/dist/date/getNumber.mjs +0 -17
  702. package/dist/date/getPredefinedTimeframe.d.mts +0 -13
  703. package/dist/date/getPredefinedTimeframe.mjs +0 -15
  704. package/dist/date/getSunday.d.mts +0 -18
  705. package/dist/date/getSunday.mjs +0 -27
  706. package/dist/date/getThisWeek.d.mts +0 -16
  707. package/dist/date/getThisWeek.mjs +0 -36
  708. package/dist/date/getTimeZoned.d.mts +0 -2
  709. package/dist/date/getTimeZoned.mjs +0 -53
  710. package/dist/date/getToday.d.mts +0 -12
  711. package/dist/date/getToday.mjs +0 -21
  712. package/dist/date/getTodayYmd.d.mts +0 -7
  713. package/dist/date/getTodayYmd.mjs +0 -16
  714. package/dist/date/getTodayYmdhis.d.mts +0 -7
  715. package/dist/date/getTodayYmdhis.mjs +0 -16
  716. package/dist/date/getTwoWeeksAgo.d.mts +0 -16
  717. package/dist/date/getTwoWeeksAgo.mjs +0 -36
  718. package/dist/date/getWeeksAgo.d.mts +0 -22
  719. package/dist/date/getWeeksAgo.mjs +0 -22
  720. package/dist/date/getYesterday.d.mts +0 -15
  721. package/dist/date/getYesterday.mjs +0 -24
  722. package/dist/date/index.d.mts +0 -2
  723. package/dist/date/index.mjs +0 -36
  724. package/dist/date/isDateValid.d.mts +0 -11
  725. package/dist/date/isDateValid.mjs +0 -16
  726. package/dist/date/isLastWeek.d.mts +0 -12
  727. package/dist/date/isLastWeek.mjs +0 -11
  728. package/dist/date/isThisWeek.d.mts +0 -12
  729. package/dist/date/isThisWeek.mjs +0 -11
  730. package/dist/date/parseExcelDate.d.mts +0 -12
  731. package/dist/date/parseExcelDate.mjs +0 -18
  732. package/dist/environment/getEnvironment.d.mts +0 -9
  733. package/dist/environment/getEnvironment.mjs +0 -27
  734. package/dist/environment/index.d.mts +0 -12
  735. package/dist/environment/index.mjs +0 -14
  736. package/dist/environment/isAws.d.mts +0 -7
  737. package/dist/environment/isAws.mjs +0 -8
  738. package/dist/environment/isDevelopment.d.mts +0 -4
  739. package/dist/environment/isDevelopment.mjs +0 -6
  740. package/dist/environment/isLocalhost.d.mts +0 -7
  741. package/dist/environment/isLocalhost.mjs +0 -15
  742. package/dist/environment/isProduction.d.mts +0 -4
  743. package/dist/environment/isProduction.mjs +0 -6
  744. package/dist/environment/isStaging.d.mts +0 -4
  745. package/dist/environment/isStaging.mjs +0 -6
  746. package/dist/environment/isVercel.d.mts +0 -7
  747. package/dist/environment/isVercel.mjs +0 -7
  748. package/dist/eskimi/ageGroups.d.mts +0 -7
  749. package/dist/eskimi/ageGroups.mjs +0 -41
  750. package/dist/eskimi/campaign.d.mts +0 -22
  751. package/dist/eskimi/campaign.mjs +0 -1
  752. package/dist/eskimi/devices.d.mts +0 -7
  753. package/dist/eskimi/devices.mjs +0 -10
  754. package/dist/eskimi/endpoints.d.mts +0 -18
  755. package/dist/eskimi/endpoints.mjs +0 -16
  756. package/dist/eskimi/genders.d.mts +0 -7
  757. package/dist/eskimi/genders.mjs +0 -10
  758. package/dist/eskimi/getAccessToken.d.mts +0 -14
  759. package/dist/eskimi/getAccessToken.mjs +0 -19
  760. package/dist/eskimi/getAgeGroup.d.mts +0 -11
  761. package/dist/eskimi/getAgeGroup.mjs +0 -12
  762. package/dist/eskimi/getCampaignIds.d.mts +0 -11
  763. package/dist/eskimi/getCampaignIds.mjs +0 -9
  764. package/dist/eskimi/getData.d.mts +0 -13
  765. package/dist/eskimi/getData.mjs +0 -20
  766. package/dist/eskimi/getDevice.d.mts +0 -11
  767. package/dist/eskimi/getDevice.mjs +0 -12
  768. package/dist/eskimi/getGender.d.mts +0 -11
  769. package/dist/eskimi/getGender.mjs +0 -12
  770. package/dist/file/createDirectory.d.mts +0 -13
  771. package/dist/file/createDirectory.mjs +0 -16
  772. package/dist/file/writeFile.d.mts +0 -1
  773. package/dist/file/writeFile.mjs +0 -1
  774. package/dist/getMidnight-Cr5sAuOj.d.mts +0 -12
  775. package/dist/getTimeZoned-D7uY_mE6.d.mts +0 -15
  776. package/dist/global/forceUpdate.d.mts +0 -12
  777. package/dist/global/forceUpdate.mjs +0 -16
  778. package/dist/global/init.d.mts +0 -16
  779. package/dist/global/init.mjs +0 -16
  780. package/dist/global/isSet.d.mts +0 -12
  781. package/dist/global/isSet.mjs +0 -9
  782. package/dist/global/maxCache.d.mts +0 -12
  783. package/dist/global/maxCache.mjs +0 -15
  784. package/dist/global/read.d.mts +0 -12
  785. package/dist/global/read.mjs +0 -15
  786. package/dist/global.d.mts +0 -42
  787. package/dist/google/bigQuery/IsTableExists.d.mts +0 -17
  788. package/dist/google/bigQuery/IsTableExists.mjs +0 -19
  789. package/dist/google/bigQuery/createDataset.d.mts +0 -17
  790. package/dist/google/bigQuery/createDataset.mjs +0 -15
  791. package/dist/google/bigQuery/createTable.d.mts +0 -20
  792. package/dist/google/bigQuery/createTable.mjs +0 -21
  793. package/dist/google/bigQuery/getClient.d.mts +0 -11
  794. package/dist/google/bigQuery/getClient.mjs +0 -19
  795. package/dist/google/bigQuery/getDatasets.d.mts +0 -17
  796. package/dist/google/bigQuery/getDatasets.mjs +0 -17
  797. package/dist/google/bigQuery/getTables.d.mts +0 -14
  798. package/dist/google/bigQuery/getTables.mjs +0 -13
  799. package/dist/google/bigQuery/initClient.d.mts +0 -17
  800. package/dist/google/bigQuery/initClient.mjs +0 -27
  801. package/dist/google/bigQuery/isDatasetExists.d.mts +0 -16
  802. package/dist/google/bigQuery/isDatasetExists.mjs +0 -20
  803. package/dist/google/bigQuery/loadData.d.mts +0 -23
  804. package/dist/google/bigQuery/loadData.mjs +0 -20
  805. package/dist/google/bigQuery/query.d.mts +0 -24
  806. package/dist/google/bigQuery/query.mjs +0 -10
  807. package/dist/google/getConfig.d.mts +0 -24
  808. package/dist/google/getConfig.mjs +0 -21
  809. package/dist/google/sheets/getAssociatedData.d.mts +0 -18
  810. package/dist/google/sheets/getAssociatedData.mjs +0 -35
  811. package/dist/google/sheets/getBatchData.d.mts +0 -23
  812. package/dist/google/sheets/getBatchData.mjs +0 -15
  813. package/dist/google/sheets/initClient.d.mts +0 -16
  814. package/dist/google/sheets/initClient.mjs +0 -21
  815. package/dist/google/sheets/isCellNa.d.mts +0 -11
  816. package/dist/google/sheets/isCellNa.mjs +0 -7
  817. package/dist/google/storage/copyToCloud.d.mts +0 -18
  818. package/dist/google/storage/copyToCloud.mjs +0 -10
  819. package/dist/google/storage/getClient.d.mts +0 -12
  820. package/dist/google/storage/getClient.mjs +0 -19
  821. package/dist/google/storage/initClient.d.mts +0 -18
  822. package/dist/google/storage/initClient.mjs +0 -27
  823. package/dist/google/storage/isFileExists.d.mts +0 -12
  824. package/dist/google/storage/isFileExists.mjs +0 -11
  825. package/dist/google/storage/writeFile.d.mts +0 -13
  826. package/dist/google/storage/writeFile.mjs +0 -28
  827. package/dist/googleAds/getCustomer.d.mts +0 -12
  828. package/dist/googleAds/getCustomer.mjs +0 -13
  829. package/dist/googleAds/initClient.d.mts +0 -20
  830. package/dist/googleAds/initClient.mjs +0 -25
  831. package/dist/googleAds/keywordPlanner/index.d.mts +0 -241
  832. package/dist/googleAds/keywordPlanner/index.mjs +0 -244
  833. package/dist/googleAds/keywordPlanner/request.d.mts +0 -21
  834. package/dist/googleAds/keywordPlanner/request.mjs +0 -13
  835. package/dist/googleAds/keywordPlanner/response.d.mts +0 -28
  836. package/dist/googleAds/keywordPlanner/response.mjs +0 -1
  837. package/dist/index-CiGy7MyK.d.mts +0 -58
  838. package/dist/index-gGQBTUJU.d.mts +0 -12
  839. package/dist/initClients.d.mts +0 -46
  840. package/dist/initClients.mjs +0 -56
  841. package/dist/json/getJsonNewline.d.mts +0 -9
  842. package/dist/json/getJsonNewline.mjs +0 -7
  843. package/dist/json/isJson.d.mts +0 -12
  844. package/dist/json/isJson.mjs +0 -17
  845. package/dist/littleWarden/getUrlStatus.d.mts +0 -14
  846. package/dist/littleWarden/getUrlStatus.mjs +0 -16
  847. package/dist/littleWarden/index.d.mts +0 -8
  848. package/dist/littleWarden/index.mjs +0 -9
  849. package/dist/littleWarden/isAllGood.d.mts +0 -11
  850. package/dist/littleWarden/isAllGood.mjs +0 -12
  851. package/dist/littleWarden/isDanger.d.mts +0 -11
  852. package/dist/littleWarden/isDanger.mjs +0 -12
  853. package/dist/littleWarden/isWarning.d.mts +0 -11
  854. package/dist/littleWarden/isWarning.mjs +0 -12
  855. package/dist/lumar/api/buildRequest.d.mts +0 -28
  856. package/dist/lumar/api/buildRequest.mjs +0 -58
  857. package/dist/lumar/api/filter.d.mts +0 -8
  858. package/dist/lumar/api/filter.mjs +0 -1
  859. package/dist/lumar/api/getData.d.mts +0 -11
  860. package/dist/lumar/api/getData.mjs +0 -10
  861. package/dist/lumar/api/initClient.d.mts +0 -17
  862. package/dist/lumar/api/initClient.mjs +0 -28
  863. package/dist/lumar/api/operands.d.mts +0 -13
  864. package/dist/lumar/api/operands.mjs +0 -13
  865. package/dist/lumar/api/orders.d.mts +0 -11
  866. package/dist/lumar/api/orders.mjs +0 -7
  867. package/dist/lumar/api/reports.d.mts +0 -13
  868. package/dist/lumar/api/reports.mjs +0 -13
  869. package/dist/lumar/graphql/columns.d.mts +0 -31
  870. package/dist/lumar/graphql/columns.mjs +0 -31
  871. package/dist/lumar/graphql/getData.d.mts +0 -15
  872. package/dist/lumar/graphql/getData.mjs +0 -18
  873. package/dist/lumar/graphql/getReportKey.d.mts +0 -14
  874. package/dist/lumar/graphql/getReportKey.mjs +0 -9
  875. package/dist/lumar/graphql/initClient.d.mts +0 -16
  876. package/dist/lumar/graphql/initClient.mjs +0 -34
  877. package/dist/lumar/graphql/operands.d.mts +0 -18
  878. package/dist/lumar/graphql/operands.mjs +0 -18
  879. package/dist/lumar/graphql/queries/crawl.d.mts +0 -8
  880. package/dist/lumar/graphql/queries/crawl.mjs +0 -1
  881. package/dist/lumar/graphql/queries/getCrawls.d.mts +0 -23
  882. package/dist/lumar/graphql/queries/getCrawls.mjs +0 -33
  883. package/dist/lumar/graphql/queries/getReportDifferences.d.mts +0 -30
  884. package/dist/lumar/graphql/queries/getReportDifferences.mjs +0 -37
  885. package/dist/lumar/graphql/queries/getRows.d.mts +0 -50
  886. package/dist/lumar/graphql/queries/getRows.mjs +0 -57
  887. package/dist/lumar/graphql/queries/getTotals.d.mts +0 -33
  888. package/dist/lumar/graphql/queries/getTotals.mjs +0 -40
  889. package/dist/lumar/graphql/queries/row.d.mts +0 -159
  890. package/dist/lumar/graphql/queries/row.mjs +0 -1
  891. package/dist/lumar/graphql/reportTemplates.d.mts +0 -70
  892. package/dist/lumar/graphql/reportTemplates.mjs +0 -70
  893. package/dist/lumar/graphql/reportTypes.d.mts +0 -9
  894. package/dist/lumar/graphql/reportTypes.mjs +0 -9
  895. package/dist/myTarget/getAccessToken.d.mts +0 -14
  896. package/dist/myTarget/getAccessToken.mjs +0 -19
  897. package/dist/myTarget/request.d.mts +0 -15
  898. package/dist/myTarget/request.mjs +0 -17
  899. package/dist/nextAuth/index.d.mts +0 -9
  900. package/dist/nextAuth/index.mjs +0 -9
  901. package/dist/nextAuth/isSessionReady.d.mts +0 -8
  902. package/dist/nextAuth/isSessionReady.mjs +0 -10
  903. package/dist/nextJs/getIp.d.mts +0 -11
  904. package/dist/nextJs/getIp.mjs +0 -11
  905. package/dist/nextJs/getUserAgent.d.mts +0 -11
  906. package/dist/nextJs/getUserAgent.mjs +0 -7
  907. package/dist/number/format.d.mts +0 -13
  908. package/dist/number/format.mjs +0 -16
  909. package/dist/number/getCurrency.d.mts +0 -15
  910. package/dist/number/getCurrency.mjs +0 -17
  911. package/dist/number/getDecimal.d.mts +0 -11
  912. package/dist/number/getDecimal.mjs +0 -11
  913. package/dist/number/getDivide.d.mts +0 -13
  914. package/dist/number/getDivide.mjs +0 -17
  915. package/dist/number/getNumber.d.mts +0 -13
  916. package/dist/number/getNumber.mjs +0 -23
  917. package/dist/number/getPercentIncrease.d.mts +0 -16
  918. package/dist/number/getPercentIncrease.mjs +0 -13
  919. package/dist/object/replaceKeys.d.mts +0 -15
  920. package/dist/object/replaceKeys.mjs +0 -27
  921. package/dist/prisma/getDecimal.d.mts +0 -11
  922. package/dist/prisma/getDecimal.mjs +0 -17
  923. package/dist/prisma/initClient.d.mts +0 -8
  924. package/dist/prisma/initClient.mjs +0 -25
  925. package/dist/response-CKsarnP-.d.mts +0 -11
  926. package/dist/snapchat/getAccessToken.d.mts +0 -14
  927. package/dist/snapchat/getAccessToken.mjs +0 -29
  928. package/dist/sorting/byNumberAscending.d.mts +0 -13
  929. package/dist/sorting/byNumberAscending.mjs +0 -13
  930. package/dist/sorting/byNumberDescending.d.mts +0 -13
  931. package/dist/sorting/byNumberDescending.mjs +0 -13
  932. package/dist/sorting/byStringAscending.d.mts +0 -13
  933. package/dist/sorting/byStringAscending.mjs +0 -13
  934. package/dist/sorting/byStringDescending.d.mts +0 -13
  935. package/dist/sorting/byStringDescending.mjs +0 -13
  936. package/dist/stream/sort.d.mts +0 -16
  937. package/dist/stream/sort.mjs +0 -46
  938. package/dist/string/getCapitalised.d.mts +0 -15
  939. package/dist/string/getCapitalised.mjs +0 -13
  940. package/dist/string/getClean.d.mts +0 -32
  941. package/dist/string/getClean.mjs +0 -28
  942. package/dist/string/getDecoded.d.mts +0 -14
  943. package/dist/string/getDecoded.mjs +0 -19
  944. package/dist/string/getFolder.d.mts +0 -12
  945. package/dist/string/getFolder.mjs +0 -10
  946. package/dist/string/getProperCase.d.mts +0 -13
  947. package/dist/string/getProperCase.mjs +0 -14
  948. package/dist/string/getString.d.mts +0 -11
  949. package/dist/string/getString.mjs +0 -18
  950. package/dist/string/getStringFromStream.d.mts +0 -12
  951. package/dist/string/getStringFromStream.mjs +0 -15
  952. package/dist/string/getWithoutAccents.d.mts +0 -13
  953. package/dist/string/getWithoutAccents.mjs +0 -11
  954. package/dist/string/getWithoutHtmlTags.d.mts +0 -13
  955. package/dist/string/getWithoutHtmlTags.mjs +0 -11
  956. package/dist/string/getWithoutPunctuation.d.mts +0 -13
  957. package/dist/string/getWithoutPunctuation.mjs +0 -11
  958. package/dist/string/getWithoutUnderscores.d.mts +0 -12
  959. package/dist/string/getWithoutUnderscores.mjs +0 -10
  960. package/dist/string/getWithoutWhitespaces.d.mts +0 -13
  961. package/dist/string/getWithoutWhitespaces.mjs +0 -11
  962. package/dist/swr/isAllData.d.mts +0 -11
  963. package/dist/swr/isAllData.mjs +0 -12
  964. package/dist/swr/isAnyError.d.mts +0 -11
  965. package/dist/swr/isAnyError.mjs +0 -12
  966. package/dist/swr/isAnyLoading.d.mts +0 -11
  967. package/dist/swr/isAnyLoading.mjs +0 -12
  968. package/dist/swr/isData.d.mts +0 -11
  969. package/dist/swr/isData.mjs +0 -7
  970. package/dist/swr/isError.d.mts +0 -11
  971. package/dist/swr/isError.mjs +0 -7
  972. package/dist/swr/isLoading.d.mts +0 -11
  973. package/dist/swr/isLoading.mjs +0 -9
  974. package/dist/upTimeRobot/getMonitors.d.mts +0 -1
  975. package/dist/upTimeRobot/getMonitors.mjs +0 -3
  976. package/dist/upTimeRobot/logTypes.d.mts +0 -9
  977. package/dist/upTimeRobot/logTypes.mjs +0 -9
  978. package/dist/upTimeRobot/monitorStatuses.d.mts +0 -10
  979. package/dist/upTimeRobot/monitorStatuses.mjs +0 -10
  980. package/dist/upTimeRobot/monitorSubTypes.d.mts +0 -12
  981. package/dist/upTimeRobot/monitorSubTypes.mjs +0 -12
  982. package/dist/upTimeRobot/monitorTypes.d.mts +0 -10
  983. package/dist/upTimeRobot/monitorTypes.mjs +0 -10
  984. package/dist/upTimeRobot/requestStatuses.d.mts +0 -7
  985. package/dist/upTimeRobot/requestStatuses.mjs +0 -7
  986. package/dist/url/buildParameters.d.mts +0 -13
  987. package/dist/url/buildParameters.mjs +0 -17
  988. package/dist/url/buildRelative.d.mts +0 -13
  989. package/dist/url/buildRelative.mjs +0 -13
  990. package/dist/url/buildUrl.d.mts +0 -16
  991. package/dist/url/buildUrl.mjs +0 -18
  992. package/dist/url/isAbsolute.d.mts +0 -11
  993. package/dist/url/isAbsolute.mjs +0 -14
  994. package/dist/url/isRelative.d.mts +0 -11
  995. package/dist/url/isRelative.mjs +0 -7
  996. package/dist/url/url.d.mts +0 -9
  997. package/dist/url/url.mjs +0 -1
  998. package/dist/url/writeUrlContents.d.mts +0 -16
  999. package/dist/url/writeUrlContents.mjs +0 -30
  1000. package/dist/util/defaultTo.d.mts +0 -12
  1001. package/dist/util/defaultTo.mjs +0 -20
  1002. package/dist/util/getBrotliCompressed.d.mts +0 -14
  1003. package/dist/util/getBrotliCompressed.mjs +0 -15
  1004. package/dist/util/getBrotliDecompressed.d.mts +0 -14
  1005. package/dist/util/getBrotliDecompressed.mjs +0 -17
  1006. package/dist/util/getClean.d.mts +0 -18
  1007. package/dist/util/getClean.mjs +0 -15
  1008. package/dist/util/getGzipCompressed.d.mts +0 -14
  1009. package/dist/util/getGzipCompressed.mjs +0 -15
  1010. package/dist/util/getGzipDecompressed.d.mts +0 -14
  1011. package/dist/util/getGzipDecompressed.mjs +0 -17
  1012. package/dist/util/getWithoutHash.d.mts +0 -12
  1013. package/dist/util/getWithoutHash.mjs +0 -14
  1014. package/dist/util/getWithoutParameter.d.mts +0 -12
  1015. package/dist/util/getWithoutParameter.mjs +0 -14
  1016. package/dist/util/isUndefined.d.mts +0 -14
  1017. package/dist/util/isUndefined.mjs +0 -15
  1018. package/dist/util/promiseChunks.d.mts +0 -12
  1019. package/dist/util/promiseChunks.mjs +0 -19
  1020. package/dist/util/sleep.d.mts +0 -7
  1021. package/dist/util/sleep.mjs +0 -6
  1022. package/dist/webWorker/index.d.mts +0 -8
  1023. package/dist/webWorker/index.mjs +0 -9
  1024. package/dist/xml/getXml.d.mts +0 -7
  1025. package/dist/xml/getXml.mjs +0 -14
  1026. /package/{dist/atInternet/request.mjs → aws/sqs/isEventSqs.d.ts} +0 -0
  1027. /package/{dist/aws/s3cache/index.mjs → upTimeRobot/getMonitors.d.ts} +0 -0
@@ -1,17 +0,0 @@
1
- import { Param } from "../param.mjs";
2
-
3
- //#region src/brightData/webScraperIde/getBatch.d.ts
4
- type GetBatch = {
5
- auth: Param;
6
- data?: object;
7
- scraperId: string;
8
- isDev?: boolean;
9
- };
10
- /**
11
- * Depends on the Scraper setup!
12
- *
13
- * Make the request to trigger the scraper and let it do its job.
14
- */
15
- declare const getBatch: (props: GetBatch) => Promise<boolean>;
16
- //#endregion
17
- export { getBatch as default };
@@ -1,22 +0,0 @@
1
- import post from "../../axios/post.mjs";
2
- //#region src/brightData/webScraperIde/getBatch.ts
3
- /**
4
- * Depends on the Scraper setup!
5
- *
6
- * Make the request to trigger the scraper and let it do its job.
7
- */
8
- const getBatch = async (props) => {
9
- let response = false;
10
- const requestUrl = new URL("https://api.brightdata.com/dca/trigger");
11
- requestUrl.searchParams.append("collector", props.scraperId);
12
- requestUrl.searchParams.append("queue_next", "1");
13
- if (props.isDev) requestUrl.searchParams.append("version", "dev");
14
- if ((await post({
15
- config: { headers: { Authorization: `Bearer ${props.auth.apiKey}` } },
16
- data: props?.data || {},
17
- url: requestUrl.toString()
18
- })).isSuccess()) response = true;
19
- return response;
20
- };
21
- //#endregion
22
- export { getBatch as default };
@@ -1,16 +0,0 @@
1
- import { Param } from "../param.mjs";
2
-
3
- //#region src/brightData/webScraperIde/getRealtime.d.ts
4
- type GetRealtime = {
5
- auth: Param;
6
- data?: object;
7
- scraperId: string;
8
- };
9
- /**
10
- * Depends on the Scraper setup!
11
- *
12
- * Make the request and pool the response until the data is available.
13
- */
14
- declare const getRealtime: (props: GetRealtime) => Promise<{}>;
15
- //#endregion
16
- export { getRealtime as default };
@@ -1,44 +0,0 @@
1
- import { State } from "../../api/index.mjs";
2
- import post from "../../axios/post.mjs";
3
- import get from "../../axios/get.mjs";
4
- import sleep from "../../util/sleep.mjs";
5
- //#region src/brightData/webScraperIde/getRealtime.ts
6
- /**
7
- * Depends on the Scraper setup!
8
- *
9
- * Make the request and pool the response until the data is available.
10
- */
11
- const getRealtime = async (props) => {
12
- let response = {};
13
- const requestUrl = `https://api.brightdata.com/dca/trigger_immediate?collector=${props.scraperId}`;
14
- const requestResponse = await post({
15
- config: { headers: { Authorization: `Bearer ${props.auth.apiKey}` } },
16
- data: props?.data || {},
17
- url: requestUrl
18
- });
19
- if (requestResponse.isSuccess()) {
20
- const responseId = requestResponse.getBodyDefaultTo({
21
- defaultValue: "",
22
- keys: ["response_id"]
23
- });
24
- if ("" !== responseId) {
25
- let state = State.PENDING;
26
- while (State.PENDING === state) {
27
- const resultUrl = `https://api.brightdata.com/dca/get_result?response_id=${responseId}`;
28
- const resultResponse = await get({
29
- config: { headers: { Authorization: `Bearer ${props.auth.apiKey}` } },
30
- url: resultUrl
31
- });
32
- if (resultResponse.isSuccess()) if (void 0 !== resultResponse.body.pending && true === resultResponse.body.pending) state = State.PENDING;
33
- else {
34
- state = State.SUCCESS;
35
- response = resultResponse.getBody();
36
- }
37
- await sleep({ seconds: 1 });
38
- }
39
- }
40
- }
41
- return response;
42
- };
43
- //#endregion
44
- export { getRealtime as default };
@@ -1,5 +0,0 @@
1
- import { createRequire } from "node:module";
2
- //#region \0rolldown/runtime.js
3
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
4
- //#endregion
5
- export { __require as t };
@@ -1,45 +0,0 @@
1
- //#region src/class/BaseClass.d.ts
2
- declare class BaseClass {
3
- /**
4
- * Shortcut to set a value to an array and return the instance.
5
- */
6
- protected _setArray({
7
- input,
8
- fields
9
- }: {
10
- input: any | any[];
11
- fields: any | any[];
12
- }): this;
13
- /**
14
- * Shortcut to set a value and return the instance.
15
- */
16
- protected _setValue({
17
- input,
18
- fields
19
- }: {
20
- input: any;
21
- fields: any | any[];
22
- }): this;
23
- /**
24
- * Shortcut to add a value to an existing array.
25
- */
26
- protected _push({
27
- input,
28
- fields
29
- }: {
30
- input: any | any[];
31
- fields: any | any[];
32
- }): this;
33
- /**
34
- * Shortcut to get a value, but default if the fields don't exist.
35
- */
36
- protected _get({
37
- defaultValue,
38
- fields
39
- }: {
40
- defaultValue: any;
41
- fields: any | any[];
42
- }): any;
43
- }
44
- //#endregion
45
- export { BaseClass as default };
@@ -1,46 +0,0 @@
1
- import defaultTo from "../util/defaultTo.mjs";
2
- import isArray from "lodash/isArray.js";
3
- import set from "lodash/set.js";
4
- //#region src/class/BaseClass.ts
5
- var BaseClass = class {
6
- /**
7
- * Shortcut to set a value to an array and return the instance.
8
- */
9
- _setArray({ input, fields }) {
10
- if (isArray(input)) set(this, fields, input);
11
- else set(this, fields, [input]);
12
- return this;
13
- }
14
- /**
15
- * Shortcut to set a value and return the instance.
16
- */
17
- _setValue({ input, fields }) {
18
- set(this, fields, input);
19
- return this;
20
- }
21
- /**
22
- * Shortcut to add a value to an existing array.
23
- */
24
- _push({ input, fields }) {
25
- let temp = this._get({
26
- defaultValue: [],
27
- fields
28
- });
29
- if (isArray(input)) temp = temp.concat(input);
30
- else temp = temp.push(input);
31
- set(this, fields, temp);
32
- return this;
33
- }
34
- /**
35
- * Shortcut to get a value, but default if the fields don't exist.
36
- */
37
- _get({ defaultValue, fields }) {
38
- return defaultTo({
39
- defaultValue,
40
- instance: this,
41
- keys: fields
42
- });
43
- }
44
- };
45
- //#endregion
46
- export { BaseClass as default };
@@ -1,9 +0,0 @@
1
- //#region src/crud/index.d.ts
2
- declare enum Action {
3
- CREATE = "CREATE",
4
- READ = "READ",
5
- UPDATE = "UPDATE",
6
- DELETE = "DELETE"
7
- }
8
- //#endregion
9
- export { Action };
@@ -1,10 +0,0 @@
1
- //#region src/crud/index.ts
2
- let Action = /* @__PURE__ */ function(Action) {
3
- Action["CREATE"] = "CREATE";
4
- Action["READ"] = "READ";
5
- Action["UPDATE"] = "UPDATE";
6
- Action["DELETE"] = "DELETE";
7
- return Action;
8
- }({});
9
- //#endregion
10
- export { Action };
@@ -1,16 +0,0 @@
1
- //#region src/crypto/getDecrypt.d.ts
2
- /**
3
- * Decrypt an encoding string using a salt
4
- * Library: crypto-js
5
- */
6
- declare const getDecrypt: ({
7
- appSalt,
8
- input,
9
- salt
10
- }: {
11
- appSalt: string;
12
- input: string;
13
- salt: string;
14
- }) => string;
15
- //#endregion
16
- export { getDecrypt as default };
@@ -1,13 +0,0 @@
1
- import { t as __require } from "../chunk-y_GBKt04.mjs";
2
- //#region src/crypto/getDecrypt.ts
3
- /**
4
- * Decrypt an encoding string using a salt
5
- * Library: crypto-js
6
- */
7
- const getDecrypt = ({ appSalt, input, salt }) => {
8
- const { AES, enc } = __require("crypto-js");
9
- const customSalt = `${appSalt}-${salt}`;
10
- return AES.decrypt(input, customSalt).toString(enc.Utf8);
11
- };
12
- //#endregion
13
- export { getDecrypt as default };
@@ -1,16 +0,0 @@
1
- //#region src/crypto/getEncrypt.d.ts
2
- /**
3
- * Encrypt an encoding string using a salt
4
- * Library: crypto-js
5
- */
6
- declare const getEncrypt: ({
7
- appSalt,
8
- input,
9
- salt
10
- }: {
11
- appSalt: string;
12
- input: string;
13
- salt: string;
14
- }) => string;
15
- //#endregion
16
- export { getEncrypt as default };
@@ -1,13 +0,0 @@
1
- import { t as __require } from "../chunk-y_GBKt04.mjs";
2
- //#region src/crypto/getEncrypt.ts
3
- /**
4
- * Encrypt an encoding string using a salt
5
- * Library: crypto-js
6
- */
7
- const getEncrypt = ({ appSalt, input, salt }) => {
8
- const { AES } = __require("crypto-js");
9
- const customSalt = `${appSalt}-${salt}`;
10
- return AES.encrypt(input, customSalt).toString();
11
- };
12
- //#endregion
13
- export { getEncrypt as default };
@@ -1,12 +0,0 @@
1
- //#region src/crypto/getRandom.d.ts
2
- /**
3
- * Create a random string and return a number of characters from it.
4
- * Library: crypto-js
5
- */
6
- declare const getRandom: ({
7
- length
8
- }: {
9
- length: number;
10
- }) => string;
11
- //#endregion
12
- export { getRandom as default };
@@ -1,10 +0,0 @@
1
- //#region src/crypto/getRandom.ts
2
- /**
3
- * Create a random string and return a number of characters from it.
4
- * Library: crypto-js
5
- */
6
- const getRandom = ({ length }) => {
7
- return Math.random().toString(36).substr(0, length);
8
- };
9
- //#endregion
10
- export { getRandom as default };
@@ -1,12 +0,0 @@
1
- //#region src/crypto/getSha256.d.ts
2
- /**
3
- * Encrypt a string using sha256
4
- * Library: crypto-js
5
- */
6
- declare const getSha256: ({
7
- input
8
- }: {
9
- input: any;
10
- }) => string;
11
- //#endregion
12
- export { getSha256 as default };
@@ -1,13 +0,0 @@
1
- import { t as __require } from "../chunk-y_GBKt04.mjs";
2
- import getString from "../string/getString.mjs";
3
- //#region src/crypto/getSha256.ts
4
- /**
5
- * Encrypt a string using sha256
6
- * Library: crypto-js
7
- */
8
- const getSha256 = ({ input }) => {
9
- const { SHA256 } = __require("crypto-js");
10
- return SHA256(getString({ input })).toString();
11
- };
12
- //#endregion
13
- export { getSha256 as default };
@@ -1,13 +0,0 @@
1
- import { GetDate } from "./getDate.mjs";
2
-
3
- //#region src/date/format.d.ts
4
- type Format = GetDate & {
5
- dateFormat?: string;
6
- };
7
- /**
8
- * Convert a (number | string | Date) into a "yyyy-MM-dd" string or a specified format.
9
- * As the user would be providing the input we don't want to change the timezone typically.
10
- */
11
- declare const format: (props: Format) => string;
12
- //#endregion
13
- export { format as default };
@@ -1,17 +0,0 @@
1
- import getDate from "./getDate.mjs";
2
- import { format as format$1 } from "date-fns";
3
- //#region src/date/format.ts
4
- /**
5
- * Convert a (number | string | Date) into a "yyyy-MM-dd" string or a specified format.
6
- * As the user would be providing the input we don't want to change the timezone typically.
7
- */
8
- const format = (props) => {
9
- return format$1(getDate({
10
- input: props.input,
11
- isUtc: props.isUtc,
12
- setMidnight: props?.setMidnight,
13
- setTimeZone: props?.setTimeZone
14
- }), props?.dateFormat || "yyyy-MM-dd");
15
- };
16
- //#endregion
17
- export { format as default };
@@ -1,17 +0,0 @@
1
- import { t as DateType } from "../index-CiGy7MyK.mjs";
2
- import { t as GetMidnight } from "../getMidnight-Cr5sAuOj.mjs";
3
- import { t as GetTimeZoned } from "../getTimeZoned-D7uY_mE6.mjs";
4
-
5
- //#region src/date/getDate.d.ts
6
- type GetDate = GetTimeZoned & GetMidnight & {
7
- input: DateType;
8
- isUtc?: boolean;
9
- };
10
- /**
11
- * Convert a (number | string | Date) into a Date object.
12
- * As the user would be providing the input we don't want to change the timezone typically.
13
- * By default assumption is that the input is UTC, however it can be switched to timezoned time.
14
- */
15
- declare const getDate: (props: GetDate) => Date;
16
- //#endregion
17
- export { GetDate, getDate as default };
@@ -1,107 +0,0 @@
1
- import getMidnight from "./getMidnight.mjs";
2
- //#region src/date/getDate.ts
3
- /**
4
- * Convert a (number | string | Date) into a Date object.
5
- * As the user would be providing the input we don't want to change the timezone typically.
6
- * By default assumption is that the input is UTC, however it can be switched to timezoned time.
7
- */
8
- const getDate = (props) => {
9
- let date;
10
- let isUtc = void 0 === props?.isUtc ? true : props.isUtc;
11
- if (props.input instanceof Date) date = new Date(props.input.valueOf());
12
- else if ("string" === typeof props.input || "number" === typeof props.input) {
13
- const dateString = props.input.toString();
14
- const regexes = {
15
- ymdDash: /* @__PURE__ */ new RegExp("^[0-9]{4}-[0-9]{2}-[0-9]{2}$"),
16
- ymdNumber: /* @__PURE__ */ new RegExp("^[0-9]{8}$"),
17
- ymdHisDash: /* @__PURE__ */ new RegExp("^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}$"),
18
- ymdHisNumber: /* @__PURE__ */ new RegExp("^[0-9]{14}$")
19
- };
20
- if (regexes.ymdNumber.test(dateString)) {
21
- const year = Number(dateString.substring(0, 4));
22
- const month = Number(dateString.substring(4, 6)) - 1;
23
- const day = Number(dateString.substring(6, 8));
24
- date = /* @__PURE__ */ new Date();
25
- date.setUTCDate(1);
26
- date.setUTCHours(1, 0, 0, 0);
27
- if (isUtc) {
28
- date.setUTCFullYear(year);
29
- date.setUTCMonth(month);
30
- date.setUTCDate(day);
31
- date.setUTCHours(0, 0, 0, 0);
32
- } else {
33
- date.setFullYear(year);
34
- date.setMonth(month);
35
- date.setDate(day);
36
- date.setHours(0, 0, 0, 0);
37
- }
38
- } else if (regexes.ymdDash.test(dateString)) {
39
- const year = Number(dateString.substring(0, 4));
40
- const month = Number(dateString.substring(5, 7)) - 1;
41
- const day = Number(dateString.substring(8, 10));
42
- date = /* @__PURE__ */ new Date();
43
- date.setUTCDate(1);
44
- date.setUTCHours(1, 0, 0, 0);
45
- if (isUtc) {
46
- date.setUTCFullYear(year);
47
- date.setUTCMonth(month);
48
- date.setUTCDate(day);
49
- date.setUTCHours(0, 0, 0, 0);
50
- } else {
51
- date.setFullYear(year);
52
- date.setMonth(month);
53
- date.setDate(day);
54
- date.setHours(0, 0, 0, 0);
55
- }
56
- } else if (regexes.ymdHisDash.test(dateString)) {
57
- const year = Number(dateString.substring(0, 4));
58
- const month = Number(dateString.substring(5, 7)) - 1;
59
- const day = Number(dateString.substring(8, 10));
60
- const hours = Number(dateString.substring(11, 13));
61
- const minutes = Number(dateString.substring(14, 16));
62
- const seconds = Number(dateString.substring(17, 19));
63
- date = /* @__PURE__ */ new Date();
64
- date.setUTCDate(1);
65
- date.setUTCHours(1, 0, 0, 0);
66
- if (isUtc) {
67
- date.setUTCFullYear(year);
68
- date.setUTCMonth(month);
69
- date.setUTCDate(day);
70
- date.setUTCHours(hours, minutes, seconds);
71
- } else {
72
- date.setFullYear(year);
73
- date.setMonth(month);
74
- date.setDate(day);
75
- date.setHours(hours, minutes, seconds);
76
- }
77
- } else if (regexes.ymdHisNumber.test(dateString)) {
78
- const year = Number(dateString.substring(0, 4));
79
- const month = Number(dateString.substring(4, 6)) - 1;
80
- const day = Number(dateString.substring(6, 8));
81
- const hours = Number(dateString.substring(8, 10));
82
- const minutes = Number(dateString.substring(10, 12));
83
- const seconds = Number(dateString.substring(12, 14));
84
- date = /* @__PURE__ */ new Date();
85
- date.setUTCDate(1);
86
- date.setUTCHours(1, 0, 0, 0);
87
- if (isUtc) {
88
- date.setUTCFullYear(year);
89
- date.setUTCMonth(month);
90
- date.setUTCDate(day);
91
- date.setUTCHours(hours, minutes, seconds);
92
- } else {
93
- date.setFullYear(year);
94
- date.setMonth(month);
95
- date.setDate(day);
96
- date.setHours(hours, minutes, seconds);
97
- }
98
- } else date = new Date(dateString);
99
- }
100
- date = getMidnight({
101
- input: date,
102
- setMidnight: props?.setMidnight
103
- });
104
- return date;
105
- };
106
- //#endregion
107
- export { getDate as default };
@@ -1,16 +0,0 @@
1
- import { t as DateType } from "../index-CiGy7MyK.mjs";
2
-
3
- //#region src/date/getDatesBetween.d.ts
4
- type GetDatesBetween = {
5
- end: DateType;
6
- start: DateType;
7
- isUtc?: boolean;
8
- };
9
- /**
10
- * Similar to date-fns' eachDayOfInterval, however the timezone messes this function up.
11
- * https://date-fns.org/v2.28.0/docs/eachDayOfInterval
12
- * https://www.gov.uk/when-do-the-clocks-change
13
- */
14
- declare const getDatesBetween: (props: GetDatesBetween) => Date[];
15
- //#endregion
16
- export { getDatesBetween as default };
@@ -1,37 +0,0 @@
1
- import getDate from "./getDate.mjs";
2
- import format$1 from "./format.mjs";
3
- import { addDays, addHours } from "date-fns";
4
- //#region src/date/getDatesBetween.ts
5
- /**
6
- * Similar to date-fns' eachDayOfInterval, however the timezone messes this function up.
7
- * https://date-fns.org/v2.28.0/docs/eachDayOfInterval
8
- * https://www.gov.uk/when-do-the-clocks-change
9
- */
10
- const getDatesBetween = (props) => {
11
- let response = [];
12
- let endDate = getDate({
13
- input: props.end,
14
- isUtc: props.isUtc
15
- });
16
- endDate = addHours(endDate, 2);
17
- let pointer = getDate({
18
- input: format$1({
19
- input: props.start,
20
- isUtc: props.isUtc
21
- }),
22
- isUtc: props.isUtc
23
- });
24
- while (pointer <= endDate) {
25
- const entry = getDate({
26
- input: pointer,
27
- isUtc: props.isUtc,
28
- setMidnight: true
29
- });
30
- response.push(entry);
31
- pointer = addDays(pointer, 1);
32
- if (pointer.getMonth() >= 2 && pointer.getMonth() < 8 && 0 === pointer.getHours()) pointer = addHours(pointer, 1);
33
- }
34
- return response;
35
- };
36
- //#endregion
37
- export { getDatesBetween as default };
@@ -1,11 +0,0 @@
1
- //#region src/date/getDurationHours.d.ts
2
- type GetDurationHours = {
3
- seconds: number;
4
- };
5
- /**
6
- * Convert a number of seconds into HH:MM:SS
7
- * https://www.codevertiser.com/convert-seconds-to-hours-and-minutes-javascript/
8
- */
9
- declare const getDurationHours: (props: GetDurationHours) => string;
10
- //#endregion
11
- export { getDurationHours as default };
@@ -1,24 +0,0 @@
1
- //#region src/date/getDurationHours.ts
2
- /**
3
- * Convert a number of seconds into HH:MM:SS
4
- * https://www.codevertiser.com/convert-seconds-to-hours-and-minutes-javascript/
5
- */
6
- const getDurationHours = (props) => {
7
- let response = "00:00:00";
8
- if (props.seconds > 0) {
9
- const calculated = {
10
- hours: Math.floor(props.seconds / 3600),
11
- minutes: Math.floor(props.seconds % 3600 / 60),
12
- seconds: props.seconds % 60
13
- };
14
- const output = {
15
- hours: calculated.hours < 10 ? "0" + calculated.hours : calculated.hours,
16
- minutes: calculated.minutes < 10 ? "0" + calculated.minutes : calculated.minutes,
17
- seconds: calculated.seconds < 10 ? "0" + calculated.seconds : calculated.seconds
18
- };
19
- response = `${output.hours}:${output.minutes}:${output.seconds}`;
20
- }
21
- return response;
22
- };
23
- //#endregion
24
- export { getDurationHours as default };
@@ -1,11 +0,0 @@
1
- //#region src/date/getDurationMinutes.d.ts
2
- type GetDurationMinutes = {
3
- seconds: number;
4
- };
5
- /**
6
- * Convert a number of seconds into MM:SS
7
- * https://www.codevertiser.com/convert-seconds-to-hours-and-minutes-javascript/
8
- */
9
- declare const getDurationMinutes: (props: GetDurationMinutes) => string;
10
- //#endregion
11
- export { getDurationMinutes as default };
@@ -1,22 +0,0 @@
1
- //#region src/date/getDurationMinutes.ts
2
- /**
3
- * Convert a number of seconds into MM:SS
4
- * https://www.codevertiser.com/convert-seconds-to-hours-and-minutes-javascript/
5
- */
6
- const getDurationMinutes = (props) => {
7
- let response = "00:00";
8
- if (props.seconds > 0) {
9
- const calculated = {
10
- minutes: Math.floor(props.seconds % 3600 / 60),
11
- seconds: props.seconds % 60
12
- };
13
- const output = {
14
- minutes: calculated.minutes < 10 ? "0" + calculated.minutes : calculated.minutes,
15
- seconds: calculated.seconds < 10 ? "0" + calculated.seconds : calculated.seconds
16
- };
17
- response = `${output.minutes}:${output.seconds}`;
18
- }
19
- return response;
20
- };
21
- //#endregion
22
- export { getDurationMinutes as default };
@@ -1,12 +0,0 @@
1
- import { i as FinancialYear } from "../index-CiGy7MyK.mjs";
2
-
3
- //#region src/date/getFinancialYear.d.ts
4
- type GetFinancialYearType = {
5
- year?: number;
6
- };
7
- /**
8
- * Get the current financial year.
9
- */
10
- declare const getFinancialYear: (props?: GetFinancialYearType) => FinancialYear;
11
- //#endregion
12
- export { getFinancialYear as default };
@@ -1,31 +0,0 @@
1
- import getDate from "./getDate.mjs";
2
- import getToday from "./getToday.mjs";
3
- import { isMonday, isSunday, nextSunday, previousMonday } from "date-fns";
4
- //#region src/date/getFinancialYear.ts
5
- /**
6
- * Get the current financial year.
7
- */
8
- const getFinancialYear = (props = {}) => {
9
- let financialYear = props.year;
10
- if (void 0 === props.year) {
11
- const today = getToday();
12
- if (today < new Date(today.getFullYear(), 3, 1)) financialYear = today.getFullYear() - 1;
13
- else financialYear = today.getFullYear();
14
- }
15
- let yearEnd = getDate({
16
- input: `${financialYear + 1}-03-31`,
17
- isUtc: true
18
- });
19
- let yearStart = getDate({
20
- input: `${financialYear}-04-01`,
21
- isUtc: true
22
- });
23
- if (!isMonday(yearStart)) yearStart = previousMonday(yearStart);
24
- if (!isSunday(yearEnd)) yearEnd = nextSunday(yearEnd);
25
- return {
26
- end: yearEnd,
27
- start: yearStart
28
- };
29
- };
30
- //#endregion
31
- export { getFinancialYear as default };