@8ms/helpers 1.39.0 → 1.40.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/ApiResponse.d.mts +73 -0
- package/dist/api/ApiResponse.mjs +91 -0
- package/dist/api/index.d.mts +2 -0
- package/dist/api/index.mjs +13 -0
- package/dist/api/isError.d.mts +9 -0
- package/dist/api/isError.mjs +7 -0
- package/dist/api/isSuccess.d.mts +9 -0
- package/dist/api/isSuccess.mjs +7 -0
- package/dist/api/response.d.mts +2 -0
- package/dist/api/response.mjs +9 -0
- package/dist/array/contains.d.mts +11 -0
- package/dist/array/contains.mjs +7 -0
- package/dist/array/getArray.d.mts +10 -0
- package/dist/array/getArray.mjs +8 -0
- package/dist/atInternet/request.d.mts +31 -0
- package/dist/aws/athenaExpress/initClient.d.mts +15 -0
- package/dist/aws/athenaExpress/initClient.mjs +28 -0
- package/dist/aws/athenaExpress/query.d.mts +10 -0
- package/dist/aws/athenaExpress/query.mjs +13 -0
- package/dist/aws/ec2/initClient.d.mts +14 -0
- package/dist/aws/ec2/initClient.mjs +18 -0
- package/dist/aws/ec2/startInstances.d.mts +13 -0
- package/dist/aws/ec2/startInstances.mjs +17 -0
- package/dist/aws/ec2/stopInstances.d.mts +14 -0
- package/dist/aws/ec2/stopInstances.mjs +18 -0
- package/dist/aws/ecs/getClusters.d.mts +11 -0
- package/dist/aws/ecs/getClusters.mjs +23 -0
- package/dist/aws/ecs/getTaskDefinitions.d.mts +16 -0
- package/dist/aws/ecs/getTaskDefinitions.mjs +26 -0
- package/dist/aws/ecs/getTasks.d.mts +19 -0
- package/dist/aws/ecs/getTasks.mjs +29 -0
- package/dist/aws/ecs/initClient.d.mts +14 -0
- package/dist/aws/ecs/initClient.mjs +18 -0
- package/dist/aws/ecs/runTask.d.mts +19 -0
- package/dist/aws/ecs/runTask.mjs +24 -0
- package/dist/aws/getConfig.d.mts +18 -0
- package/dist/aws/getConfig.mjs +17 -0
- package/dist/aws/glue/initClient.d.mts +13 -0
- package/dist/aws/glue/initClient.mjs +17 -0
- package/dist/aws/glue/invoke.d.mts +11 -0
- package/dist/aws/glue/invoke.mjs +14 -0
- package/dist/aws/isResponse200.d.mts +11 -0
- package/dist/aws/isResponse200.mjs +16 -0
- package/dist/aws/lambda/getHandlerPath.d.mts +7 -0
- package/dist/aws/lambda/getHandlerPath.mjs +6 -0
- package/dist/aws/lambda/initClient.d.mts +13 -0
- package/dist/aws/lambda/initClient.mjs +17 -0
- package/dist/aws/lambda/invoke.d.mts +15 -0
- package/dist/aws/lambda/invoke.mjs +31 -0
- package/dist/aws/s3/copyFile.d.mts +18 -0
- package/dist/aws/s3/copyFile.mjs +15 -0
- package/dist/aws/s3/deleteFile.d.mts +14 -0
- package/dist/aws/s3/deleteFile.mjs +14 -0
- package/dist/aws/s3/deleteFiles.d.mts +14 -0
- package/dist/aws/s3/deleteFiles.mjs +14 -0
- package/dist/aws/s3/deleteFolder.d.mts +14 -0
- package/dist/aws/s3/deleteFolder.mjs +26 -0
- package/dist/aws/s3/getGlueJson.d.mts +12 -0
- package/dist/aws/s3/getGlueJson.mjs +8 -0
- package/dist/aws/s3/getPresignedPost.d.mts +28 -0
- package/dist/aws/s3/getPresignedPost.mjs +19 -0
- package/dist/aws/s3/getSignedUrl.d.mts +19 -0
- package/dist/aws/s3/getSignedUrl.mjs +17 -0
- package/dist/aws/s3/initClient.d.mts +15 -0
- package/dist/aws/s3/initClient.mjs +17 -0
- package/dist/aws/s3/isFileExists.d.mts +11 -0
- package/dist/aws/s3/isFileExists.mjs +21 -0
- package/dist/aws/s3/listFiles.d.mts +14 -0
- package/dist/aws/s3/listFiles.mjs +27 -0
- package/dist/aws/s3/listFilesIteratively.d.mts +11 -0
- package/dist/aws/s3/listFilesIteratively.mjs +40 -0
- package/dist/aws/s3/listFolders.d.mts +14 -0
- package/dist/aws/s3/listFolders.mjs +23 -0
- package/dist/aws/s3/moveFile.d.mts +16 -0
- package/dist/aws/s3/moveFile.mjs +18 -0
- package/dist/aws/s3/readBrotli.d.mts +18 -0
- package/dist/aws/s3/readBrotli.mjs +20 -0
- package/dist/aws/s3/readBuffer.d.mts +19 -0
- package/dist/aws/s3/readBuffer.mjs +29 -0
- package/dist/aws/s3/readFile.d.mts +38 -0
- package/dist/aws/s3/readFile.mjs +64 -0
- package/dist/aws/s3/readGzip.d.mts +18 -0
- package/dist/aws/s3/readGzip.mjs +20 -0
- package/dist/aws/s3/writeBrotli.d.mts +20 -0
- package/dist/aws/s3/writeBrotli.mjs +18 -0
- package/dist/aws/s3/writeFile.d.mts +18 -0
- package/dist/aws/s3/writeFile.mjs +16 -0
- package/dist/aws/s3/writeGzip.d.mts +20 -0
- package/dist/aws/s3/writeGzip.mjs +18 -0
- package/dist/aws/s3/writePresignedPost.d.mts +24 -0
- package/dist/aws/s3/writePresignedPost.mjs +28 -0
- package/dist/aws/s3/writeUrlContents.d.mts +16 -0
- package/dist/aws/s3/writeUrlContents.mjs +19 -0
- package/dist/aws/s3cache/getCache.d.mts +19 -0
- package/dist/aws/s3cache/getCache.mjs +25 -0
- package/dist/aws/s3cache/getKey.d.mts +15 -0
- package/dist/aws/s3cache/getKey.mjs +15 -0
- package/dist/aws/s3cache/index.d.mts +10 -0
- package/dist/aws/s3cache/saveCache.d.mts +16 -0
- package/dist/aws/s3cache/saveCache.mjs +14 -0
- package/dist/aws/s3cache/updateCache.d.mts +18 -0
- package/dist/aws/s3cache/updateCache.mjs +26 -0
- package/dist/aws/ses/SimpleEmail.d.mts +79 -0
- package/dist/aws/ses/SimpleEmail.mjs +122 -0
- package/dist/aws/ses/initClient.d.mts +15 -0
- package/dist/aws/ses/initClient.mjs +17 -0
- package/dist/aws/sqs/addToQueue.d.mts +35 -0
- package/dist/aws/sqs/addToQueue.mjs +20 -0
- package/dist/aws/sqs/deleteFromQueue.d.mts +16 -0
- package/dist/aws/sqs/deleteFromQueue.mjs +15 -0
- package/dist/aws/sqs/index.d.mts +18 -0
- package/dist/aws/sqs/initClient.d.mts +15 -0
- package/dist/aws/sqs/initClient.mjs +17 -0
- package/dist/aws/sqs/isEventSqs.d.mts +1 -0
- package/dist/aws/sqs/isEventSqs.mjs +1 -0
- package/dist/aws/ssm/getParameter.d.mts +16 -0
- package/dist/aws/ssm/getParameter.mjs +22 -0
- package/dist/aws/ssm/initClient.d.mts +15 -0
- package/dist/aws/ssm/initClient.mjs +17 -0
- package/dist/axios/delete.d.mts +14 -0
- package/dist/axios/delete.mjs +25 -0
- package/dist/axios/get.d.mts +16 -0
- package/dist/axios/get.mjs +24 -0
- package/dist/axios/post.d.mts +18 -0
- package/dist/axios/post.mjs +25 -0
- package/dist/boolean/getBoolean.d.mts +11 -0
- package/dist/boolean/getBoolean.mjs +11 -0
- package/dist/brightData/getCustomerId.d.mts +13 -0
- package/dist/brightData/getCustomerId.mjs +10 -0
- package/dist/brightData/getZone.d.mts +12 -0
- package/dist/brightData/getZone.mjs +10 -0
- package/dist/brightData/param.d.mts +11 -0
- package/dist/brightData/param.mjs +4 -0
- package/dist/brightData/serpApi/buildGoogleSerpUrl.d.mts +34 -0
- package/dist/brightData/serpApi/buildGoogleSerpUrl.mjs +100 -0
- package/dist/brightData/serpApi/buildGoogleTrendsUrl.d.mts +24 -0
- package/dist/brightData/serpApi/buildGoogleTrendsUrl.mjs +51 -0
- package/dist/brightData/serpApi/getAsyncRequestId.d.mts +17 -0
- package/dist/brightData/serpApi/getAsyncRequestId.mjs +35 -0
- package/dist/brightData/serpApi/getAsyncResults.d.mts +15 -0
- package/dist/brightData/serpApi/getAsyncResults.mjs +25 -0
- package/dist/brightData/serpApi/getRealtime.d.mts +13 -0
- package/dist/brightData/serpApi/getRealtime.mjs +25 -0
- package/dist/brightData/serpApi/type.d.mts +13 -0
- package/dist/brightData/serpApi/type.mjs +14 -0
- package/dist/brightData/webScraperIde/getBatch.d.mts +17 -0
- package/dist/brightData/webScraperIde/getBatch.mjs +22 -0
- package/dist/brightData/webScraperIde/getRealtime.d.mts +16 -0
- package/dist/brightData/webScraperIde/getRealtime.mjs +44 -0
- package/dist/chunk-y_GBKt04.mjs +5 -0
- package/dist/class/BaseClass.d.mts +45 -0
- package/dist/class/BaseClass.mjs +46 -0
- package/dist/crud/index.d.mts +9 -0
- package/dist/crud/index.mjs +10 -0
- package/dist/crypto/getDecrypt.d.mts +16 -0
- package/dist/crypto/getDecrypt.mjs +13 -0
- package/dist/crypto/getEncrypt.d.mts +16 -0
- package/dist/crypto/getEncrypt.mjs +13 -0
- package/dist/crypto/getRandom.d.mts +12 -0
- package/dist/crypto/getRandom.mjs +10 -0
- package/dist/crypto/getSha256.d.mts +12 -0
- package/dist/crypto/getSha256.mjs +13 -0
- package/dist/date/format.d.mts +13 -0
- package/dist/date/format.mjs +17 -0
- package/dist/date/getDate.d.mts +17 -0
- package/dist/date/getDate.mjs +107 -0
- package/dist/date/getDatesBetween.d.mts +16 -0
- package/dist/date/getDatesBetween.mjs +37 -0
- package/dist/date/getDurationHours.d.mts +11 -0
- package/dist/date/getDurationHours.mjs +24 -0
- package/dist/date/getDurationMinutes.d.mts +11 -0
- package/dist/date/getDurationMinutes.mjs +22 -0
- package/dist/date/getFinancialYear.d.mts +12 -0
- package/dist/date/getFinancialYear.mjs +31 -0
- package/dist/date/getFinancialYearToDate.d.mts +10 -0
- package/dist/date/getFinancialYearToDate.mjs +15 -0
- package/dist/date/getFinancialYearToYesterday.d.mts +10 -0
- package/dist/date/getFinancialYearToYesterday.mjs +15 -0
- package/dist/date/getFinancialYearWeeks.d.mts +12 -0
- package/dist/date/getFinancialYearWeeks.mjs +23 -0
- package/dist/date/getLastWeek.d.mts +16 -0
- package/dist/date/getLastWeek.mjs +30 -0
- package/dist/date/getMax.d.mts +16 -0
- package/dist/date/getMax.mjs +21 -0
- package/dist/date/getMidnight.d.mts +2 -0
- package/dist/date/getMidnight.mjs +11 -0
- package/dist/date/getMin.d.mts +16 -0
- package/dist/date/getMin.mjs +21 -0
- package/dist/date/getMonday.d.mts +18 -0
- package/dist/date/getMonday.mjs +31 -0
- package/dist/date/getNumber.d.mts +10 -0
- package/dist/date/getNumber.mjs +17 -0
- package/dist/date/getPredefinedTimeframe.d.mts +13 -0
- package/dist/date/getPredefinedTimeframe.mjs +15 -0
- package/dist/date/getSunday.d.mts +18 -0
- package/dist/date/getSunday.mjs +27 -0
- package/dist/date/getThisWeek.d.mts +16 -0
- package/dist/date/getThisWeek.mjs +36 -0
- package/dist/date/getTimeZoned.d.mts +2 -0
- package/dist/date/getTimeZoned.mjs +53 -0
- package/dist/date/getToday.d.mts +12 -0
- package/dist/date/getToday.mjs +21 -0
- package/dist/date/getTodayYmd.d.mts +7 -0
- package/dist/date/getTodayYmd.mjs +16 -0
- package/dist/date/getTodayYmdhis.d.mts +7 -0
- package/dist/date/getTodayYmdhis.mjs +16 -0
- package/dist/date/getTwoWeeksAgo.d.mts +16 -0
- package/dist/date/getTwoWeeksAgo.mjs +36 -0
- package/dist/date/getWeeksAgo.d.mts +22 -0
- package/dist/date/getWeeksAgo.mjs +22 -0
- package/dist/date/getYesterday.d.mts +15 -0
- package/dist/date/getYesterday.mjs +24 -0
- package/dist/date/index.d.mts +2 -0
- package/dist/date/index.mjs +36 -0
- package/dist/date/isDateValid.d.mts +11 -0
- package/dist/date/isDateValid.mjs +16 -0
- package/dist/date/isLastWeek.d.mts +12 -0
- package/dist/date/isLastWeek.mjs +11 -0
- package/dist/date/isThisWeek.d.mts +12 -0
- package/dist/date/isThisWeek.mjs +11 -0
- package/dist/date/parseExcelDate.d.mts +12 -0
- package/dist/date/parseExcelDate.mjs +18 -0
- package/dist/environment/getEnvironment.d.mts +9 -0
- package/dist/environment/getEnvironment.mjs +27 -0
- package/dist/environment/index.d.mts +12 -0
- package/dist/environment/index.mjs +14 -0
- package/dist/environment/isAws.d.mts +7 -0
- package/dist/environment/isAws.mjs +8 -0
- package/dist/environment/isDevelopment.d.mts +4 -0
- package/dist/environment/isDevelopment.mjs +6 -0
- package/dist/environment/isLocalhost.d.mts +7 -0
- package/dist/environment/isLocalhost.mjs +15 -0
- package/dist/environment/isProduction.d.mts +4 -0
- package/dist/environment/isProduction.mjs +6 -0
- package/dist/environment/isStaging.d.mts +4 -0
- package/dist/environment/isStaging.mjs +6 -0
- package/dist/environment/isVercel.d.mts +7 -0
- package/dist/environment/isVercel.mjs +7 -0
- package/dist/eskimi/ageGroups.d.mts +7 -0
- package/dist/eskimi/ageGroups.mjs +41 -0
- package/dist/eskimi/campaign.d.mts +22 -0
- package/dist/eskimi/campaign.mjs +1 -0
- package/dist/eskimi/devices.d.mts +7 -0
- package/dist/eskimi/devices.mjs +10 -0
- package/dist/eskimi/endpoints.d.mts +18 -0
- package/dist/eskimi/endpoints.mjs +16 -0
- package/dist/eskimi/genders.d.mts +7 -0
- package/dist/eskimi/genders.mjs +10 -0
- package/dist/eskimi/getAccessToken.d.mts +14 -0
- package/dist/eskimi/getAccessToken.mjs +19 -0
- package/dist/eskimi/getAgeGroup.d.mts +11 -0
- package/dist/eskimi/getAgeGroup.mjs +12 -0
- package/dist/eskimi/getCampaignIds.d.mts +11 -0
- package/dist/eskimi/getCampaignIds.mjs +9 -0
- package/dist/eskimi/getData.d.mts +13 -0
- package/dist/eskimi/getData.mjs +20 -0
- package/dist/eskimi/getDevice.d.mts +11 -0
- package/dist/eskimi/getDevice.mjs +12 -0
- package/dist/eskimi/getGender.d.mts +11 -0
- package/dist/eskimi/getGender.mjs +12 -0
- package/dist/file/createDirectory.d.mts +13 -0
- package/dist/file/createDirectory.mjs +16 -0
- package/dist/file/writeFile.d.mts +1 -0
- package/dist/file/writeFile.mjs +1 -0
- package/dist/getMidnight-Cr5sAuOj.d.mts +12 -0
- package/dist/getTimeZoned-D7uY_mE6.d.mts +15 -0
- package/dist/global/forceUpdate.d.mts +12 -0
- package/dist/global/forceUpdate.mjs +16 -0
- package/dist/global/init.d.mts +16 -0
- package/dist/global/init.mjs +16 -0
- package/dist/global/isSet.d.mts +12 -0
- package/dist/global/isSet.mjs +9 -0
- package/dist/global/maxCache.d.mts +12 -0
- package/dist/global/maxCache.mjs +15 -0
- package/dist/global/read.d.mts +12 -0
- package/dist/global/read.mjs +15 -0
- package/dist/global.d.mts +42 -0
- package/dist/google/bigQuery/IsTableExists.d.mts +17 -0
- package/dist/google/bigQuery/IsTableExists.mjs +19 -0
- package/dist/google/bigQuery/createDataset.d.mts +17 -0
- package/dist/google/bigQuery/createDataset.mjs +15 -0
- package/dist/google/bigQuery/createTable.d.mts +20 -0
- package/dist/google/bigQuery/createTable.mjs +21 -0
- package/dist/google/bigQuery/getClient.d.mts +11 -0
- package/dist/google/bigQuery/getClient.mjs +19 -0
- package/dist/google/bigQuery/getDatasets.d.mts +17 -0
- package/dist/google/bigQuery/getDatasets.mjs +17 -0
- package/dist/google/bigQuery/getTables.d.mts +14 -0
- package/dist/google/bigQuery/getTables.mjs +13 -0
- package/dist/google/bigQuery/initClient.d.mts +17 -0
- package/dist/google/bigQuery/initClient.mjs +27 -0
- package/dist/google/bigQuery/isDatasetExists.d.mts +16 -0
- package/dist/google/bigQuery/isDatasetExists.mjs +20 -0
- package/dist/google/bigQuery/loadData.d.mts +23 -0
- package/dist/google/bigQuery/loadData.mjs +20 -0
- package/dist/google/bigQuery/query.d.mts +24 -0
- package/dist/google/bigQuery/query.mjs +10 -0
- package/dist/google/getConfig.d.mts +24 -0
- package/dist/google/getConfig.mjs +21 -0
- package/dist/google/sheets/getAssociatedData.d.mts +18 -0
- package/dist/google/sheets/getAssociatedData.mjs +35 -0
- package/dist/google/sheets/getBatchData.d.mts +23 -0
- package/dist/google/sheets/getBatchData.mjs +15 -0
- package/dist/google/sheets/initClient.d.mts +16 -0
- package/dist/google/sheets/initClient.mjs +21 -0
- package/dist/google/sheets/isCellNa.d.mts +11 -0
- package/dist/google/sheets/isCellNa.mjs +7 -0
- package/dist/google/storage/copyToCloud.d.mts +18 -0
- package/dist/google/storage/copyToCloud.mjs +10 -0
- package/dist/google/storage/getClient.d.mts +12 -0
- package/dist/google/storage/getClient.mjs +19 -0
- package/dist/google/storage/initClient.d.mts +18 -0
- package/dist/google/storage/initClient.mjs +27 -0
- package/dist/google/storage/isFileExists.d.mts +12 -0
- package/dist/google/storage/isFileExists.mjs +11 -0
- package/dist/google/storage/writeFile.d.mts +13 -0
- package/dist/google/storage/writeFile.mjs +28 -0
- package/dist/googleAds/getCustomer.d.mts +12 -0
- package/dist/googleAds/getCustomer.mjs +13 -0
- package/dist/googleAds/initClient.d.mts +20 -0
- package/dist/googleAds/initClient.mjs +25 -0
- package/dist/googleAds/keywordPlanner/index.d.mts +241 -0
- package/dist/googleAds/keywordPlanner/index.mjs +244 -0
- package/dist/googleAds/keywordPlanner/request.d.mts +21 -0
- package/dist/googleAds/keywordPlanner/request.mjs +13 -0
- package/dist/googleAds/keywordPlanner/response.d.mts +28 -0
- package/dist/googleAds/keywordPlanner/response.mjs +1 -0
- package/dist/index-CiGy7MyK.d.mts +58 -0
- package/dist/index-gGQBTUJU.d.mts +12 -0
- package/dist/initClients.d.mts +46 -0
- package/dist/initClients.mjs +56 -0
- package/dist/json/getJsonNewline.d.mts +9 -0
- package/dist/json/getJsonNewline.mjs +7 -0
- package/dist/json/isJson.d.mts +12 -0
- package/dist/json/isJson.mjs +17 -0
- package/dist/littleWarden/getUrlStatus.d.mts +14 -0
- package/dist/littleWarden/getUrlStatus.mjs +16 -0
- package/dist/littleWarden/index.d.mts +8 -0
- package/dist/littleWarden/index.mjs +9 -0
- package/dist/littleWarden/isAllGood.d.mts +11 -0
- package/dist/littleWarden/isAllGood.mjs +12 -0
- package/dist/littleWarden/isDanger.d.mts +11 -0
- package/dist/littleWarden/isDanger.mjs +12 -0
- package/dist/littleWarden/isWarning.d.mts +11 -0
- package/dist/littleWarden/isWarning.mjs +12 -0
- package/dist/lumar/api/buildRequest.d.mts +28 -0
- package/dist/lumar/api/buildRequest.mjs +58 -0
- package/dist/lumar/api/filter.d.mts +8 -0
- package/dist/lumar/api/filter.mjs +1 -0
- package/dist/lumar/api/getData.d.mts +11 -0
- package/dist/lumar/api/getData.mjs +10 -0
- package/dist/lumar/api/initClient.d.mts +17 -0
- package/dist/lumar/api/initClient.mjs +28 -0
- package/dist/lumar/api/operands.d.mts +13 -0
- package/dist/lumar/api/operands.mjs +13 -0
- package/dist/lumar/api/orders.d.mts +11 -0
- package/dist/lumar/api/orders.mjs +7 -0
- package/dist/lumar/api/reports.d.mts +13 -0
- package/dist/lumar/api/reports.mjs +13 -0
- package/dist/lumar/graphql/columns.d.mts +31 -0
- package/dist/lumar/graphql/columns.mjs +31 -0
- package/dist/lumar/graphql/getData.d.mts +15 -0
- package/dist/lumar/graphql/getData.mjs +18 -0
- package/dist/lumar/graphql/getReportKey.d.mts +14 -0
- package/dist/lumar/graphql/getReportKey.mjs +9 -0
- package/dist/lumar/graphql/initClient.d.mts +16 -0
- package/dist/lumar/graphql/initClient.mjs +34 -0
- package/dist/lumar/graphql/operands.d.mts +18 -0
- package/dist/lumar/graphql/operands.mjs +18 -0
- package/dist/lumar/graphql/queries/crawl.d.mts +8 -0
- package/dist/lumar/graphql/queries/crawl.mjs +1 -0
- package/dist/lumar/graphql/queries/getCrawls.d.mts +23 -0
- package/dist/lumar/graphql/queries/getCrawls.mjs +33 -0
- package/dist/lumar/graphql/queries/getReportDifferences.d.mts +30 -0
- package/dist/lumar/graphql/queries/getReportDifferences.mjs +37 -0
- package/dist/lumar/graphql/queries/getRows.d.mts +50 -0
- package/dist/lumar/graphql/queries/getRows.mjs +57 -0
- package/dist/lumar/graphql/queries/getTotals.d.mts +33 -0
- package/dist/lumar/graphql/queries/getTotals.mjs +40 -0
- package/dist/lumar/graphql/queries/row.d.mts +159 -0
- package/dist/lumar/graphql/queries/row.mjs +1 -0
- package/dist/lumar/graphql/reportTemplates.d.mts +70 -0
- package/dist/lumar/graphql/reportTemplates.mjs +70 -0
- package/dist/lumar/graphql/reportTypes.d.mts +9 -0
- package/dist/lumar/graphql/reportTypes.mjs +9 -0
- package/dist/myTarget/getAccessToken.d.mts +14 -0
- package/dist/myTarget/getAccessToken.mjs +19 -0
- package/dist/myTarget/request.d.mts +15 -0
- package/dist/myTarget/request.mjs +17 -0
- package/dist/nextAuth/index.d.mts +9 -0
- package/dist/nextAuth/index.mjs +9 -0
- package/dist/nextAuth/isSessionReady.d.mts +8 -0
- package/dist/nextAuth/isSessionReady.mjs +10 -0
- package/dist/nextJs/getIp.d.mts +11 -0
- package/dist/nextJs/getIp.mjs +11 -0
- package/dist/nextJs/getUserAgent.d.mts +11 -0
- package/dist/nextJs/getUserAgent.mjs +7 -0
- package/dist/number/format.d.mts +13 -0
- package/dist/number/format.mjs +16 -0
- package/dist/number/getCurrency.d.mts +15 -0
- package/dist/number/getCurrency.mjs +17 -0
- package/dist/number/getDecimal.d.mts +11 -0
- package/dist/number/getDecimal.mjs +11 -0
- package/dist/number/getDivide.d.mts +13 -0
- package/dist/number/getDivide.mjs +17 -0
- package/dist/number/getNumber.d.mts +13 -0
- package/dist/number/getNumber.mjs +23 -0
- package/dist/number/getPercentIncrease.d.mts +16 -0
- package/dist/number/getPercentIncrease.mjs +13 -0
- package/dist/object/replaceKeys.d.mts +15 -0
- package/dist/object/replaceKeys.mjs +27 -0
- package/dist/prisma/getDecimal.d.mts +11 -0
- package/dist/prisma/getDecimal.mjs +17 -0
- package/dist/prisma/initClient.d.mts +8 -0
- package/dist/prisma/initClient.mjs +25 -0
- package/dist/response-CKsarnP-.d.mts +11 -0
- package/dist/snapchat/getAccessToken.d.mts +14 -0
- package/dist/snapchat/getAccessToken.mjs +29 -0
- package/dist/sorting/byNumberAscending.d.mts +13 -0
- package/dist/sorting/byNumberAscending.mjs +13 -0
- package/dist/sorting/byNumberDescending.d.mts +13 -0
- package/dist/sorting/byNumberDescending.mjs +13 -0
- package/dist/sorting/byStringAscending.d.mts +13 -0
- package/dist/sorting/byStringAscending.mjs +13 -0
- package/dist/sorting/byStringDescending.d.mts +13 -0
- package/dist/sorting/byStringDescending.mjs +13 -0
- package/dist/stream/sort.d.mts +16 -0
- package/dist/stream/sort.mjs +46 -0
- package/dist/string/getCapitalised.d.mts +15 -0
- package/dist/string/getCapitalised.mjs +13 -0
- package/dist/string/getClean.d.mts +32 -0
- package/dist/string/getClean.mjs +28 -0
- package/dist/string/getDecoded.d.mts +14 -0
- package/dist/string/getDecoded.mjs +19 -0
- package/dist/string/getFolder.d.mts +12 -0
- package/dist/string/getFolder.mjs +10 -0
- package/dist/string/getProperCase.d.mts +13 -0
- package/dist/string/getProperCase.mjs +14 -0
- package/dist/string/getString.d.mts +11 -0
- package/dist/string/getString.mjs +18 -0
- package/dist/string/getStringFromStream.d.mts +12 -0
- package/dist/string/getStringFromStream.mjs +15 -0
- package/dist/string/getWithoutAccents.d.mts +13 -0
- package/dist/string/getWithoutAccents.mjs +11 -0
- package/dist/string/getWithoutHtmlTags.d.mts +13 -0
- package/dist/string/getWithoutHtmlTags.mjs +11 -0
- package/dist/string/getWithoutPunctuation.d.mts +13 -0
- package/dist/string/getWithoutPunctuation.mjs +11 -0
- package/dist/string/getWithoutUnderscores.d.mts +12 -0
- package/dist/string/getWithoutUnderscores.mjs +10 -0
- package/dist/string/getWithoutWhitespaces.d.mts +13 -0
- package/dist/string/getWithoutWhitespaces.mjs +11 -0
- package/dist/swr/isAllData.d.mts +11 -0
- package/dist/swr/isAllData.mjs +12 -0
- package/dist/swr/isAnyError.d.mts +11 -0
- package/dist/swr/isAnyError.mjs +12 -0
- package/dist/swr/isAnyLoading.d.mts +11 -0
- package/dist/swr/isAnyLoading.mjs +12 -0
- package/dist/swr/isData.d.mts +11 -0
- package/dist/swr/isData.mjs +7 -0
- package/dist/swr/isError.d.mts +11 -0
- package/dist/swr/isError.mjs +7 -0
- package/dist/swr/isLoading.d.mts +11 -0
- package/dist/swr/isLoading.mjs +9 -0
- package/dist/upTimeRobot/getMonitors.d.mts +1 -0
- package/dist/upTimeRobot/getMonitors.mjs +3 -0
- package/dist/upTimeRobot/logTypes.d.mts +9 -0
- package/dist/upTimeRobot/logTypes.mjs +9 -0
- package/dist/upTimeRobot/monitorStatuses.d.mts +10 -0
- package/dist/upTimeRobot/monitorStatuses.mjs +10 -0
- package/dist/upTimeRobot/monitorSubTypes.d.mts +12 -0
- package/dist/upTimeRobot/monitorSubTypes.mjs +12 -0
- package/dist/upTimeRobot/monitorTypes.d.mts +10 -0
- package/dist/upTimeRobot/monitorTypes.mjs +10 -0
- package/dist/upTimeRobot/requestStatuses.d.mts +7 -0
- package/dist/upTimeRobot/requestStatuses.mjs +7 -0
- package/dist/url/buildParameters.d.mts +13 -0
- package/dist/url/buildParameters.mjs +17 -0
- package/dist/url/buildRelative.d.mts +13 -0
- package/dist/url/buildRelative.mjs +13 -0
- package/dist/url/buildUrl.d.mts +16 -0
- package/dist/url/buildUrl.mjs +18 -0
- package/dist/url/isAbsolute.d.mts +11 -0
- package/dist/url/isAbsolute.mjs +14 -0
- package/dist/url/isRelative.d.mts +11 -0
- package/dist/url/isRelative.mjs +7 -0
- package/dist/url/url.d.mts +9 -0
- package/dist/url/url.mjs +1 -0
- package/dist/url/writeUrlContents.d.mts +16 -0
- package/dist/url/writeUrlContents.mjs +30 -0
- package/dist/util/defaultTo.d.mts +12 -0
- package/dist/util/defaultTo.mjs +20 -0
- package/dist/util/getBrotliCompressed.d.mts +14 -0
- package/dist/util/getBrotliCompressed.mjs +15 -0
- package/dist/util/getBrotliDecompressed.d.mts +14 -0
- package/dist/util/getBrotliDecompressed.mjs +17 -0
- package/dist/util/getClean.d.mts +18 -0
- package/dist/util/getClean.mjs +15 -0
- package/dist/util/getGzipCompressed.d.mts +14 -0
- package/dist/util/getGzipCompressed.mjs +15 -0
- package/dist/util/getGzipDecompressed.d.mts +14 -0
- package/dist/util/getGzipDecompressed.mjs +17 -0
- package/dist/util/getWithoutHash.d.mts +12 -0
- package/dist/util/getWithoutHash.mjs +14 -0
- package/dist/util/getWithoutParameter.d.mts +12 -0
- package/dist/util/getWithoutParameter.mjs +14 -0
- package/dist/util/isUndefined.d.mts +14 -0
- package/dist/util/isUndefined.mjs +15 -0
- package/dist/util/promiseChunks.d.mts +12 -0
- package/dist/util/promiseChunks.mjs +18 -0
- package/dist/util/sleep.d.mts +7 -0
- package/dist/util/sleep.mjs +6 -0
- package/dist/webWorker/index.d.mts +8 -0
- package/dist/webWorker/index.mjs +9 -0
- package/dist/xml/getXml.d.mts +7 -0
- package/dist/xml/getXml.mjs +14 -0
- package/package.json +339 -44
- package/.github/workflows/deploy_npmjs.yml +0 -17
- package/api/ApiResponse.d.ts +0 -50
- package/api/ApiResponse.js +0 -94
- package/api/index.d.ts +0 -9
- package/api/index.js +0 -13
- package/api/isError.d.ts +0 -6
- package/api/isError.js +0 -7
- package/api/isSuccess.d.ts +0 -6
- package/api/isSuccess.js +0 -7
- package/api/response.d.ts +0 -8
- package/api/response.js +0 -9
- package/array/contains.d.ts +0 -9
- package/array/contains.js +0 -7
- package/array/getArray.d.ts +0 -8
- package/array/getArray.js +0 -11
- package/atInternet/request.d.ts +0 -30
- package/atInternet/request.js +0 -2
- package/aws/athenaExpress/initClient.d.ts +0 -12
- package/aws/athenaExpress/initClient.js +0 -31
- package/aws/athenaExpress/query.d.ts +0 -8
- package/aws/athenaExpress/query.js +0 -16
- package/aws/ec2/initClient.d.ts +0 -11
- package/aws/ec2/initClient.js +0 -23
- package/aws/ec2/startInstances.d.ts +0 -11
- package/aws/ec2/startInstances.js +0 -18
- package/aws/ec2/stopInstances.d.ts +0 -12
- package/aws/ec2/stopInstances.js +0 -19
- package/aws/ecs/getClusters.d.ts +0 -9
- package/aws/ecs/getClusters.js +0 -32
- package/aws/ecs/getTaskDefinitions.d.ts +0 -13
- package/aws/ecs/getTaskDefinitions.js +0 -35
- package/aws/ecs/getTasks.d.ts +0 -16
- package/aws/ecs/getTasks.js +0 -38
- package/aws/ecs/initClient.d.ts +0 -11
- package/aws/ecs/initClient.js +0 -23
- package/aws/ecs/runTask.d.ts +0 -16
- package/aws/ecs/runTask.js +0 -30
- package/aws/getConfig.d.ts +0 -13
- package/aws/getConfig.js +0 -27
- package/aws/glue/initClient.d.ts +0 -10
- package/aws/glue/initClient.js +0 -21
- package/aws/glue/invoke.d.ts +0 -9
- package/aws/glue/invoke.js +0 -23
- package/aws/isResponse200.d.ts +0 -7
- package/aws/isResponse200.js +0 -22
- package/aws/lambda/getHandlerPath.d.ts +0 -5
- package/aws/lambda/getHandlerPath.js +0 -7
- package/aws/lambda/initClient.d.ts +0 -10
- package/aws/lambda/initClient.js +0 -21
- package/aws/lambda/invoke.d.ts +0 -13
- package/aws/lambda/invoke.js +0 -61
- package/aws/s3/copyFile.d.ts +0 -13
- package/aws/s3/copyFile.js +0 -14
- package/aws/s3/deleteFile.d.ts +0 -9
- package/aws/s3/deleteFile.js +0 -13
- package/aws/s3/deleteFiles.d.ts +0 -9
- package/aws/s3/deleteFiles.js +0 -17
- package/aws/s3/deleteFolder.d.ts +0 -9
- package/aws/s3/deleteFolder.js +0 -36
- package/aws/s3/getGlueJson.d.ts +0 -8
- package/aws/s3/getGlueJson.js +0 -11
- package/aws/s3/getPresignedPost.d.ts +0 -20
- package/aws/s3/getPresignedPost.js +0 -19
- package/aws/s3/getSignedUrl.d.ts +0 -12
- package/aws/s3/getSignedUrl.js +0 -17
- package/aws/s3/initClient.d.ts +0 -10
- package/aws/s3/initClient.js +0 -19
- package/aws/s3/isFileExists.d.ts +0 -9
- package/aws/s3/isFileExists.js +0 -27
- package/aws/s3/listFiles.d.ts +0 -9
- package/aws/s3/listFiles.js +0 -33
- package/aws/s3/listFilesIteratively.d.ts +0 -9
- package/aws/s3/listFilesIteratively.js +0 -44
- package/aws/s3/listFolders.d.ts +0 -9
- package/aws/s3/listFolders.js +0 -32
- package/aws/s3/moveFile.d.ts +0 -10
- package/aws/s3/moveFile.js +0 -21
- package/aws/s3/readBrotli.d.ts +0 -11
- package/aws/s3/readBrotli.js +0 -28
- package/aws/s3/readBuffer.d.ts +0 -13
- package/aws/s3/readBuffer.js +0 -39
- package/aws/s3/readFile.d.ts +0 -31
- package/aws/s3/readFile.js +0 -83
- package/aws/s3/readGzip.d.ts +0 -11
- package/aws/s3/readGzip.js +0 -28
- package/aws/s3/writeBrotli.d.ts +0 -12
- package/aws/s3/writeBrotli.js +0 -28
- package/aws/s3/writeFile.d.ts +0 -11
- package/aws/s3/writeFile.js +0 -16
- package/aws/s3/writeGzip.d.ts +0 -12
- package/aws/s3/writeGzip.js +0 -28
- package/aws/s3/writePresignedPost.d.ts +0 -14
- package/aws/s3/writePresignedPost.js +0 -31
- package/aws/s3/writeUrlContents.d.ts +0 -10
- package/aws/s3/writeUrlContents.js +0 -26
- package/aws/s3cache/getCache.d.ts +0 -11
- package/aws/s3cache/getCache.js +0 -37
- package/aws/s3cache/getKey.d.ts +0 -10
- package/aws/s3cache/getKey.js +0 -18
- package/aws/s3cache/index.d.ts +0 -6
- package/aws/s3cache/index.js +0 -2
- package/aws/s3cache/saveCache.d.ts +0 -10
- package/aws/s3cache/saveCache.js +0 -17
- package/aws/s3cache/updateCache.d.ts +0 -10
- package/aws/s3cache/updateCache.js +0 -24
- package/aws/ses/SimpleEmail.d.ts +0 -51
- package/aws/ses/SimpleEmail.js +0 -114
- package/aws/ses/initClient.d.ts +0 -10
- package/aws/ses/initClient.js +0 -19
- package/aws/sqs/addToQueue.d.ts +0 -27
- package/aws/sqs/addToQueue.js +0 -26
- package/aws/sqs/deleteFromQueue.d.ts +0 -10
- package/aws/sqs/deleteFromQueue.js +0 -15
- package/aws/sqs/initClient.d.ts +0 -10
- package/aws/sqs/initClient.js +0 -19
- package/aws/sqs/isEventSqs.js +0 -13
- package/aws/ssm/getParameter.d.ts +0 -10
- package/aws/ssm/getParameter.js +0 -40
- package/aws/ssm/initClient.d.ts +0 -10
- package/aws/ssm/initClient.js +0 -19
- package/axios/delete.d.ts +0 -11
- package/axios/delete.js +0 -39
- package/axios/get.d.ts +0 -10
- package/axios/get.js +0 -38
- package/axios/post.d.ts +0 -11
- package/axios/post.js +0 -38
- package/boolean/getBoolean.d.ts +0 -7
- package/boolean/getBoolean.js +0 -16
- package/brightData/getCustomerId.d.ts +0 -10
- package/brightData/getCustomerId.js +0 -11
- package/brightData/getZone.d.ts +0 -9
- package/brightData/getZone.js +0 -10
- package/brightData/param.d.ts +0 -9
- package/brightData/param.js +0 -3
- package/brightData/serpApi/buildGoogleSerpUrl.d.ts +0 -32
- package/brightData/serpApi/buildGoogleSerpUrl.js +0 -115
- package/brightData/serpApi/buildGoogleTrendsUrl.d.ts +0 -22
- package/brightData/serpApi/buildGoogleTrendsUrl.js +0 -60
- package/brightData/serpApi/getAsyncRequestId.d.ts +0 -14
- package/brightData/serpApi/getAsyncRequestId.js +0 -50
- package/brightData/serpApi/getAsyncResults.d.ts +0 -12
- package/brightData/serpApi/getAsyncResults.js +0 -49
- package/brightData/serpApi/getRealtime.d.ts +0 -10
- package/brightData/serpApi/getRealtime.js +0 -35
- package/brightData/serpApi/type.d.ts +0 -11
- package/brightData/serpApi/type.js +0 -14
- package/brightData/webScraperIde/getBatch.d.ts +0 -14
- package/brightData/webScraperIde/getBatch.js +0 -34
- package/brightData/webScraperIde/getRealtime.d.ts +0 -13
- package/brightData/webScraperIde/getRealtime.js +0 -64
- package/class/BaseClass.d.ts +0 -31
- package/class/BaseClass.js +0 -50
- package/crud/index.d.ts +0 -6
- package/crud/index.js +0 -10
- package/crypto/getDecrypt.d.ts +0 -10
- package/crypto/getDecrypt.js +0 -13
- package/crypto/getEncrypt.d.ts +0 -10
- package/crypto/getEncrypt.js +0 -13
- package/crypto/getRandom.d.ts +0 -8
- package/crypto/getRandom.js +0 -12
- package/crypto/getSha256.d.ts +0 -8
- package/crypto/getSha256.js +0 -17
- package/date/format.d.ts +0 -10
- package/date/format.js +0 -21
- package/date/getDate.d.ts +0 -14
- package/date/getDate.js +0 -138
- package/date/getDatesBetween.d.ts +0 -13
- package/date/getDatesBetween.js +0 -54
- package/date/getDurationHours.d.ts +0 -9
- package/date/getDurationHours.js +0 -24
- package/date/getDurationMinutes.d.ts +0 -9
- package/date/getDurationMinutes.js +0 -22
- package/date/getFinancialYear.d.ts +0 -9
- package/date/getFinancialYear.js +0 -52
- package/date/getFinancialYearToDate.d.ts +0 -7
- package/date/getFinancialYearToDate.js +0 -20
- package/date/getFinancialYearToYesterday.d.ts +0 -7
- package/date/getFinancialYearToYesterday.js +0 -20
- package/date/getFinancialYearWeeks.d.ts +0 -9
- package/date/getFinancialYearWeeks.js +0 -33
- package/date/getLastWeek.d.ts +0 -10
- package/date/getLastWeek.js +0 -34
- package/date/getMax.d.ts +0 -13
- package/date/getMax.js +0 -24
- package/date/getMidnight.d.ts +0 -10
- package/date/getMidnight.js +0 -13
- package/date/getMin.d.ts +0 -13
- package/date/getMin.js +0 -24
- package/date/getMonday.d.ts +0 -15
- package/date/getMonday.js +0 -46
- package/date/getNumber.d.ts +0 -7
- package/date/getNumber.js +0 -20
- package/date/getPredefinedTimeframe.d.ts +0 -8
- package/date/getPredefinedTimeframe.js +0 -24
- package/date/getSunday.d.ts +0 -15
- package/date/getSunday.js +0 -42
- package/date/getThisWeek.d.ts +0 -10
- package/date/getThisWeek.js +0 -36
- package/date/getTimeZoned.d.ts +0 -13
- package/date/getTimeZoned.js +0 -55
- package/date/getToday.d.ts +0 -9
- package/date/getToday.js +0 -24
- package/date/getTodayYmd.d.ts +0 -5
- package/date/getTodayYmd.js +0 -21
- package/date/getTodayYmdhis.d.ts +0 -5
- package/date/getTodayYmdhis.js +0 -21
- package/date/getTwoWeeksAgo.d.ts +0 -10
- package/date/getTwoWeeksAgo.js +0 -36
- package/date/getWeeksAgo.d.ts +0 -13
- package/date/getWeeksAgo.js +0 -25
- package/date/getYesterday.d.ts +0 -9
- package/date/getYesterday.js +0 -52
- package/date/index.d.ts +0 -55
- package/date/index.js +0 -36
- package/date/isDateValid.d.ts +0 -7
- package/date/isDateValid.js +0 -20
- package/date/isLastWeek.d.ts +0 -6
- package/date/isLastWeek.js +0 -14
- package/date/isThisWeek.d.ts +0 -6
- package/date/isThisWeek.js +0 -14
- package/date/parseExcelDate.d.ts +0 -8
- package/date/parseExcelDate.js +0 -19
- package/environment/getEnvironment.d.ts +0 -6
- package/environment/getEnvironment.js +0 -43
- package/environment/index.d.ts +0 -9
- package/environment/index.js +0 -14
- package/environment/isAws.d.ts +0 -5
- package/environment/isAws.js +0 -8
- package/environment/isDevelopment.d.ts +0 -2
- package/environment/isDevelopment.js +0 -9
- package/environment/isLocalhost.d.ts +0 -5
- package/environment/isLocalhost.js +0 -25
- package/environment/isProduction.d.ts +0 -2
- package/environment/isProduction.js +0 -9
- package/environment/isStaging.d.ts +0 -2
- package/environment/isStaging.js +0 -9
- package/environment/isVercel.d.ts +0 -5
- package/environment/isVercel.js +0 -7
- package/eskimi/ageGroups.d.ts +0 -5
- package/eskimi/ageGroups.js +0 -41
- package/eskimi/campaign.d.ts +0 -19
- package/eskimi/campaign.js +0 -2
- package/eskimi/devices.d.ts +0 -5
- package/eskimi/devices.js +0 -13
- package/eskimi/endpoints.d.ts +0 -16
- package/eskimi/endpoints.js +0 -18
- package/eskimi/genders.d.ts +0 -5
- package/eskimi/genders.js +0 -13
- package/eskimi/getAccessToken.d.ts +0 -9
- package/eskimi/getAccessToken.js +0 -23
- package/eskimi/getAgeGroup.d.ts +0 -7
- package/eskimi/getAgeGroup.js +0 -17
- package/eskimi/getCampaignIds.d.ts +0 -7
- package/eskimi/getCampaignIds.js +0 -12
- package/eskimi/getData.d.ts +0 -8
- package/eskimi/getData.js +0 -23
- package/eskimi/getDevice.d.ts +0 -7
- package/eskimi/getDevice.js +0 -17
- package/eskimi/getGender.d.ts +0 -7
- package/eskimi/getGender.js +0 -17
- package/file/createDirectory.d.ts +0 -9
- package/file/createDirectory.js +0 -16
- package/file/writeFile.d.ts +0 -1
- package/file/writeFile.js +0 -2
- package/global/forceUpdate.d.ts +0 -8
- package/global/forceUpdate.js +0 -25
- package/global/init.d.ts +0 -10
- package/global/init.js +0 -18
- package/global/isSet.d.ts +0 -8
- package/global/isSet.js +0 -9
- package/global/maxCache.d.ts +0 -8
- package/global/maxCache.js +0 -17
- package/global/read.d.ts +0 -8
- package/global/read.js +0 -30
- package/google/bigQuery/IsTableExists.d.ts +0 -11
- package/google/bigQuery/IsTableExists.js +0 -25
- package/google/bigQuery/createDataset.d.ts +0 -11
- package/google/bigQuery/createDataset.js +0 -22
- package/google/bigQuery/createTable.d.ts +0 -12
- package/google/bigQuery/createTable.js +0 -31
- package/google/bigQuery/getClient.d.ts +0 -9
- package/google/bigQuery/getClient.js +0 -18
- package/google/bigQuery/getDatasets.d.ts +0 -13
- package/google/bigQuery/getDatasets.js +0 -27
- package/google/bigQuery/getTables.d.ts +0 -12
- package/google/bigQuery/getTables.js +0 -25
- package/google/bigQuery/initClient.d.ts +0 -11
- package/google/bigQuery/initClient.js +0 -29
- package/google/bigQuery/isDatasetExists.d.ts +0 -11
- package/google/bigQuery/isDatasetExists.js +0 -25
- package/google/bigQuery/loadData.d.ts +0 -18
- package/google/bigQuery/loadData.js +0 -32
- package/google/bigQuery/query.d.ts +0 -19
- package/google/bigQuery/query.js +0 -15
- package/google/getConfig.d.ts +0 -20
- package/google/getConfig.js +0 -23
- package/google/sheets/getAssociatedData.d.ts +0 -16
- package/google/sheets/getAssociatedData.js +0 -53
- package/google/sheets/getBatchData.d.ts +0 -18
- package/google/sheets/getBatchData.js +0 -19
- package/google/sheets/initClient.d.ts +0 -11
- package/google/sheets/initClient.js +0 -25
- package/google/sheets/isCellNa.d.ts +0 -7
- package/google/sheets/isCellNa.js +0 -7
- package/google/storage/copyToCloud.d.ts +0 -11
- package/google/storage/copyToCloud.js +0 -18
- package/google/storage/getClient.d.ts +0 -8
- package/google/storage/getClient.js +0 -18
- package/google/storage/initClient.d.ts +0 -12
- package/google/storage/initClient.js +0 -29
- package/google/storage/isFileExists.d.ts +0 -10
- package/google/storage/isFileExists.js +0 -19
- package/google/storage/writeFile.d.ts +0 -11
- package/google/storage/writeFile.js +0 -37
- package/googleAds/getCustomer.d.ts +0 -8
- package/googleAds/getCustomer.js +0 -14
- package/googleAds/initClient.d.ts +0 -16
- package/googleAds/initClient.js +0 -25
- package/googleAds/keywordPlanner/index.d.ts +0 -238
- package/googleAds/keywordPlanner/index.js +0 -244
- package/googleAds/keywordPlanner/request.d.ts +0 -18
- package/googleAds/keywordPlanner/request.js +0 -13
- package/googleAds/keywordPlanner/response.d.ts +0 -25
- package/googleAds/keywordPlanner/response.js +0 -2
- package/initClients.d.ts +0 -43
- package/initClients.js +0 -131
- package/json/getJsonNewline.d.ts +0 -5
- package/json/getJsonNewline.js +0 -17
- package/json/isJson.d.ts +0 -8
- package/json/isJson.js +0 -20
- package/littleWarden/getUrlStatus.d.ts +0 -9
- package/littleWarden/getUrlStatus.js +0 -21
- package/littleWarden/index.d.ts +0 -5
- package/littleWarden/index.js +0 -9
- package/littleWarden/isAllGood.d.ts +0 -7
- package/littleWarden/isAllGood.js +0 -15
- package/littleWarden/isDanger.d.ts +0 -7
- package/littleWarden/isDanger.js +0 -15
- package/littleWarden/isWarning.d.ts +0 -7
- package/littleWarden/isWarning.js +0 -15
- package/lumar/api/buildRequest.d.ts +0 -15
- package/lumar/api/buildRequest.js +0 -83
- package/lumar/api/filter.d.ts +0 -5
- package/lumar/api/filter.js +0 -2
- package/lumar/api/getData.d.ts +0 -6
- package/lumar/api/getData.js +0 -18
- package/lumar/api/initClient.d.ts +0 -13
- package/lumar/api/initClient.js +0 -38
- package/lumar/api/operands.d.ts +0 -11
- package/lumar/api/operands.js +0 -13
- package/lumar/api/orders.d.ts +0 -9
- package/lumar/api/orders.js +0 -7
- package/lumar/api/reports.d.ts +0 -11
- package/lumar/api/reports.js +0 -13
- package/lumar/graphql/columns.d.ts +0 -29
- package/lumar/graphql/columns.js +0 -31
- package/lumar/graphql/getData.d.ts +0 -9
- package/lumar/graphql/getData.js +0 -26
- package/lumar/graphql/getReportKey.d.ts +0 -9
- package/lumar/graphql/getReportKey.js +0 -9
- package/lumar/graphql/initClient.d.ts +0 -12
- package/lumar/graphql/initClient.js +0 -38
- package/lumar/graphql/operands.d.ts +0 -16
- package/lumar/graphql/operands.js +0 -18
- package/lumar/graphql/queries/crawl.d.ts +0 -5
- package/lumar/graphql/queries/crawl.js +0 -2
- package/lumar/graphql/queries/getCrawls.d.ts +0 -18
- package/lumar/graphql/queries/getCrawls.js +0 -33
- package/lumar/graphql/queries/getReportDifferences.d.ts +0 -24
- package/lumar/graphql/queries/getReportDifferences.js +0 -40
- package/lumar/graphql/queries/getRows.d.ts +0 -38
- package/lumar/graphql/queries/getRows.js +0 -57
- package/lumar/graphql/queries/getTotals.d.ts +0 -25
- package/lumar/graphql/queries/getTotals.js +0 -40
- package/lumar/graphql/queries/row.d.ts +0 -157
- package/lumar/graphql/queries/row.js +0 -2
- package/lumar/graphql/reportTemplates.d.ts +0 -68
- package/lumar/graphql/reportTemplates.js +0 -70
- package/lumar/graphql/reportTypes.d.ts +0 -7
- package/lumar/graphql/reportTypes.js +0 -9
- package/myTarget/getAccessToken.d.ts +0 -9
- package/myTarget/getAccessToken.js +0 -23
- package/myTarget/request.d.ts +0 -9
- package/myTarget/request.js +0 -23
- package/nextAuth/index.d.ts +0 -5
- package/nextAuth/index.js +0 -9
- package/nextAuth/isSessionReady.d.ts +0 -4
- package/nextAuth/isSessionReady.js +0 -12
- package/nextJs/getIp.d.ts +0 -7
- package/nextJs/getIp.js +0 -13
- package/nextJs/getUserAgent.d.ts +0 -7
- package/nextJs/getUserAgent.js +0 -7
- package/number/format.d.ts +0 -11
- package/number/format.js +0 -23
- package/number/getCurrency.d.ts +0 -10
- package/number/getCurrency.js +0 -20
- package/number/getDecimal.d.ts +0 -9
- package/number/getDecimal.js +0 -16
- package/number/getDivide.d.ts +0 -11
- package/number/getDivide.js +0 -26
- package/number/getNumber.d.ts +0 -8
- package/number/getNumber.js +0 -51
- package/number/getPercentIncrease.d.ts +0 -10
- package/number/getPercentIncrease.js +0 -22
- package/object/replaceKeys.d.ts +0 -10
- package/object/replaceKeys.js +0 -30
- package/prisma/getDecimal.d.ts +0 -9
- package/prisma/getDecimal.js +0 -25
- package/prisma/initClient.d.ts +0 -6
- package/prisma/initClient.js +0 -36
- package/snapchat/getAccessToken.d.ts +0 -9
- package/snapchat/getAccessToken.js +0 -35
- package/sorting/byNumberAscending.d.ts +0 -8
- package/sorting/byNumberAscending.js +0 -17
- package/sorting/byNumberDescending.d.ts +0 -8
- package/sorting/byNumberDescending.js +0 -17
- package/sorting/byStringAscending.d.ts +0 -8
- package/sorting/byStringAscending.js +0 -21
- package/sorting/byStringDescending.d.ts +0 -8
- package/sorting/byStringDescending.js +0 -21
- package/stream/sort.d.ts +0 -14
- package/stream/sort.js +0 -50
- package/string/getCapitalised.d.ts +0 -10
- package/string/getCapitalised.js +0 -17
- package/string/getClean.d.ts +0 -18
- package/string/getClean.js +0 -65
- package/string/getDecoded.d.ts +0 -10
- package/string/getDecoded.js +0 -26
- package/string/getFolder.d.ts +0 -8
- package/string/getFolder.js +0 -14
- package/string/getProperCase.d.ts +0 -11
- package/string/getProperCase.js +0 -27
- package/string/getString.d.ts +0 -7
- package/string/getString.js +0 -34
- package/string/getStringFromStream.d.ts +0 -8
- package/string/getStringFromStream.js +0 -16
- package/string/getWithoutAccents.d.ts +0 -9
- package/string/getWithoutAccents.js +0 -16
- package/string/getWithoutHtmlTags.d.ts +0 -9
- package/string/getWithoutHtmlTags.js +0 -15
- package/string/getWithoutPunctuation.d.ts +0 -9
- package/string/getWithoutPunctuation.js +0 -16
- package/string/getWithoutUnderscores.d.ts +0 -8
- package/string/getWithoutUnderscores.js +0 -14
- package/string/getWithoutWhitespaces.d.ts +0 -9
- package/string/getWithoutWhitespaces.js +0 -16
- package/swr/isAllData.d.ts +0 -7
- package/swr/isAllData.js +0 -19
- package/swr/isAnyError.d.ts +0 -7
- package/swr/isAnyError.js +0 -19
- package/swr/isAnyLoading.d.ts +0 -7
- package/swr/isAnyLoading.js +0 -21
- package/swr/isData.d.ts +0 -7
- package/swr/isData.js +0 -9
- package/swr/isError.d.ts +0 -7
- package/swr/isError.js +0 -7
- package/swr/isLoading.d.ts +0 -7
- package/swr/isLoading.js +0 -12
- package/upTimeRobot/getMonitors.js +0 -33
- package/upTimeRobot/logTypes.d.ts +0 -7
- package/upTimeRobot/logTypes.js +0 -9
- package/upTimeRobot/monitorStatuses.d.ts +0 -8
- package/upTimeRobot/monitorStatuses.js +0 -10
- package/upTimeRobot/monitorSubTypes.d.ts +0 -10
- package/upTimeRobot/monitorSubTypes.js +0 -12
- package/upTimeRobot/monitorTypes.d.ts +0 -8
- package/upTimeRobot/monitorTypes.js +0 -10
- package/upTimeRobot/requestStatuses.d.ts +0 -5
- package/upTimeRobot/requestStatuses.js +0 -7
- package/url/buildParameters.d.ts +0 -8
- package/url/buildParameters.js +0 -22
- package/url/buildRelative.d.ts +0 -8
- package/url/buildRelative.js +0 -13
- package/url/buildUrl.d.ts +0 -10
- package/url/buildUrl.js +0 -29
- package/url/isAbsolute.d.ts +0 -7
- package/url/isAbsolute.js +0 -15
- package/url/isRelative.d.ts +0 -7
- package/url/isRelative.js +0 -8
- package/url/url.d.ts +0 -6
- package/url/url.js +0 -2
- package/url/writeUrlContents.d.ts +0 -11
- package/url/writeUrlContents.js +0 -43
- package/util/defaultTo.d.ts +0 -10
- package/util/defaultTo.js +0 -43
- package/util/getBrotliCompressed.d.ts +0 -9
- package/util/getBrotliCompressed.js +0 -19
- package/util/getBrotliDecompressed.d.ts +0 -9
- package/util/getBrotliDecompressed.js +0 -20
- package/util/getClean.d.ts +0 -11
- package/util/getClean.js +0 -28
- package/util/getGzipCompressed.d.ts +0 -9
- package/util/getGzipCompressed.js +0 -19
- package/util/getGzipDecompressed.d.ts +0 -9
- package/util/getGzipDecompressed.js +0 -20
- package/util/getWithoutHash.d.ts +0 -8
- package/util/getWithoutHash.js +0 -17
- package/util/getWithoutParameter.d.ts +0 -8
- package/util/getWithoutParameter.js +0 -17
- package/util/isUndefined.d.ts +0 -9
- package/util/isUndefined.js +0 -19
- package/util/promiseChunks.d.ts +0 -10
- package/util/promiseChunks.js +0 -18
- package/util/sleep.d.ts +0 -5
- package/util/sleep.js +0 -6
- package/webWorker/index.d.ts +0 -5
- package/webWorker/index.js +0 -9
- package/xml/getXml.d.ts +0 -5
- package/xml/getXml.js +0 -22
- /package/{aws/sqs/isEventSqs.d.ts → dist/atInternet/request.mjs} +0 -0
- /package/{upTimeRobot/getMonitors.d.ts → dist/aws/s3cache/index.mjs} +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/global/init.ts
|
|
2
|
+
/**
|
|
3
|
+
* Initialise a new global data.
|
|
4
|
+
*/
|
|
5
|
+
const init = async ({ expires, key, updateFn }) => {
|
|
6
|
+
if (void 0 === global["ems_cache"]) global["ems_cache"] = {};
|
|
7
|
+
global["ems_cache"][key] = {
|
|
8
|
+
expires,
|
|
9
|
+
insertedAt: Date.now(),
|
|
10
|
+
updateFn,
|
|
11
|
+
value: await updateFn()
|
|
12
|
+
};
|
|
13
|
+
return global["ems_cache"][key].value;
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { init as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/global/maxCache.ts
|
|
2
|
+
/**
|
|
3
|
+
* Clear cache more than the provided number of cache.
|
|
4
|
+
*/
|
|
5
|
+
const maxCache = ({ limit }) => {
|
|
6
|
+
if (void 0 !== global["ems_cache"]) {
|
|
7
|
+
let counter = 0;
|
|
8
|
+
for (let cacheKey in global["ems_cache"]) {
|
|
9
|
+
if (counter > limit) delete global["ems_cache"][cacheKey];
|
|
10
|
+
counter++;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { maxCache as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import forceUpdate from "./forceUpdate.mjs";
|
|
2
|
+
//#region src/global/read.ts
|
|
3
|
+
/**
|
|
4
|
+
* Retrieve a value from global memory.
|
|
5
|
+
*/
|
|
6
|
+
const read = async ({ key }) => {
|
|
7
|
+
if (void 0 === global["ems_cache"] || void 0 === global["ems_cache"]?.[key] || null === global["ems_cache"]?.[key]) throw `Global key '${key}' does not exist, requires initialisation.`;
|
|
8
|
+
else if (0 != global["ems_cache"][key].expires) {
|
|
9
|
+
const expiresAt = Math.floor(global["ems_cache"][key].insertedAt / 1e3) + global["ems_cache"][key].expires;
|
|
10
|
+
if (Math.floor(Date.now() / 1e3) > expiresAt) await forceUpdate({ key });
|
|
11
|
+
}
|
|
12
|
+
return global["ems_cache"][key].value;
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { read as default };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Config } from "./google/getConfig.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/global.d.ts
|
|
4
|
+
declare global {
|
|
5
|
+
var awsAthenaExpressClient: any;
|
|
6
|
+
var awsGlueClient: any;
|
|
7
|
+
var awsEc2Client: any;
|
|
8
|
+
var awsEcsClient: any;
|
|
9
|
+
var awsLambdaClient: any;
|
|
10
|
+
var awsS3Client: any;
|
|
11
|
+
var awsSesClient: any;
|
|
12
|
+
var awsSsmClient: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
var awsSqsClient: any;
|
|
16
|
+
var deepcrawlApi: {
|
|
17
|
+
token: string;
|
|
18
|
+
updatedAt: null | number;
|
|
19
|
+
};
|
|
20
|
+
var deepcrawlGraphql: {
|
|
21
|
+
token: string;
|
|
22
|
+
updatedAt: null | number;
|
|
23
|
+
};
|
|
24
|
+
var eskimiAccessToken: any;
|
|
25
|
+
var googleBigQueryDefault: {
|
|
26
|
+
credentials: Config;
|
|
27
|
+
projectId: string;
|
|
28
|
+
};
|
|
29
|
+
var googleBigQueryClient: any;
|
|
30
|
+
var googleAdsClient: {
|
|
31
|
+
[projectId: string]: any;
|
|
32
|
+
};
|
|
33
|
+
var googleSheetsClient: any;
|
|
34
|
+
var googleStorageDefault: {
|
|
35
|
+
credentials: Config;
|
|
36
|
+
projectId: string;
|
|
37
|
+
};
|
|
38
|
+
var googleStorageClient: any;
|
|
39
|
+
var myTargetAccessToken: any;
|
|
40
|
+
var prisma: any;
|
|
41
|
+
var snapchatAccessToken: any;
|
|
42
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/google/bigQuery/IsTableExists.d.ts
|
|
2
|
+
type IsTableExists = {
|
|
3
|
+
datasetId: string;
|
|
4
|
+
projectId?: string;
|
|
5
|
+
tableId: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Check to see whether a given BigQuery table exists.
|
|
9
|
+
* https://cloud.google.com/bigquery/docs/samples/bigquery-table-exists
|
|
10
|
+
*/
|
|
11
|
+
declare const isTableExists: ({
|
|
12
|
+
datasetId,
|
|
13
|
+
projectId,
|
|
14
|
+
tableId
|
|
15
|
+
}: IsTableExists) => Promise<boolean>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { isTableExists as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import getClient from "./getClient.mjs";
|
|
2
|
+
//#region src/google/bigQuery/IsTableExists.ts
|
|
3
|
+
/**
|
|
4
|
+
* Check to see whether a given BigQuery table exists.
|
|
5
|
+
* https://cloud.google.com/bigquery/docs/samples/bigquery-table-exists
|
|
6
|
+
*/
|
|
7
|
+
const isTableExists = async ({ datasetId, projectId, tableId }) => {
|
|
8
|
+
let response;
|
|
9
|
+
const dataset = getClient({ projectId }).dataset(datasetId);
|
|
10
|
+
try {
|
|
11
|
+
await dataset.table(tableId).get();
|
|
12
|
+
response = true;
|
|
13
|
+
} catch (exception) {
|
|
14
|
+
response = false;
|
|
15
|
+
}
|
|
16
|
+
return response;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { isTableExists as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/google/bigQuery/createDataset.d.ts
|
|
2
|
+
type CreateDataset = {
|
|
3
|
+
datasetId: string;
|
|
4
|
+
projectId?: string;
|
|
5
|
+
options: object;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Create a Dataset if it doesn't already exist.
|
|
9
|
+
* Returns table instance.
|
|
10
|
+
*/
|
|
11
|
+
declare const createDataset: ({
|
|
12
|
+
datasetId,
|
|
13
|
+
options,
|
|
14
|
+
projectId
|
|
15
|
+
}: CreateDataset) => Promise<void>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { createDataset as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import getClient from "./getClient.mjs";
|
|
2
|
+
import isDatasetExists from "./isDatasetExists.mjs";
|
|
3
|
+
//#region src/google/bigQuery/createDataset.ts
|
|
4
|
+
/**
|
|
5
|
+
* Create a Dataset if it doesn't already exist.
|
|
6
|
+
* Returns table instance.
|
|
7
|
+
*/
|
|
8
|
+
const createDataset = async ({ datasetId, options, projectId }) => {
|
|
9
|
+
if (!await isDatasetExists({
|
|
10
|
+
datasetId,
|
|
11
|
+
projectId
|
|
12
|
+
})) await getClient({ projectId }).createDataset(datasetId, options || {});
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { createDataset as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region src/google/bigQuery/createTable.d.ts
|
|
2
|
+
type CreateTable = {
|
|
3
|
+
datasetId: string;
|
|
4
|
+
datasetOptions?: object;
|
|
5
|
+
projectId?: string;
|
|
6
|
+
options?: object;
|
|
7
|
+
tableId: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Create a Table if it doesn't already exist.
|
|
11
|
+
*/
|
|
12
|
+
declare const createTable: ({
|
|
13
|
+
datasetId,
|
|
14
|
+
datasetOptions,
|
|
15
|
+
options,
|
|
16
|
+
projectId,
|
|
17
|
+
tableId
|
|
18
|
+
}: CreateTable) => Promise<void>;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { createTable as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import getClient from "./getClient.mjs";
|
|
2
|
+
import isTableExists from "./IsTableExists.mjs";
|
|
3
|
+
import createDataset from "./createDataset.mjs";
|
|
4
|
+
//#region src/google/bigQuery/createTable.ts
|
|
5
|
+
/**
|
|
6
|
+
* Create a Table if it doesn't already exist.
|
|
7
|
+
*/
|
|
8
|
+
const createTable = async ({ datasetId, datasetOptions, options, projectId, tableId }) => {
|
|
9
|
+
await createDataset({
|
|
10
|
+
datasetId,
|
|
11
|
+
options: datasetOptions,
|
|
12
|
+
projectId
|
|
13
|
+
});
|
|
14
|
+
if (!await isTableExists({
|
|
15
|
+
datasetId,
|
|
16
|
+
projectId,
|
|
17
|
+
tableId
|
|
18
|
+
})) await getClient({ projectId }).dataset(datasetId).createTable(tableId, options || {});
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { createTable as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/google/bigQuery/getClient.d.ts
|
|
2
|
+
type GetClient = {
|
|
3
|
+
location?: string;
|
|
4
|
+
projectId?: string;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Create a new client if the project id differs from the global.
|
|
8
|
+
*/
|
|
9
|
+
declare const getClient: (props: GetClient) => any;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { getClient as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { t as __require } from "../../chunk-y_GBKt04.mjs";
|
|
2
|
+
//#region src/google/bigQuery/getClient.ts
|
|
3
|
+
/**
|
|
4
|
+
* Create a new client if the project id differs from the global.
|
|
5
|
+
*/
|
|
6
|
+
const getClient = (props) => {
|
|
7
|
+
let client = global.googleBigQueryClient;
|
|
8
|
+
if (props?.projectId && props?.projectId !== global.googleBigQueryDefaultProjectId) {
|
|
9
|
+
const { BigQuery } = __require("@google-cloud/bigquery");
|
|
10
|
+
client = new BigQuery({
|
|
11
|
+
credentials: global.googleBigQueryDefault.credentials,
|
|
12
|
+
location: props?.location || "europe-west2",
|
|
13
|
+
projectId: props?.projectId
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return client;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { getClient as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/google/bigQuery/getDatasets.d.ts
|
|
2
|
+
type GetDatasets = {
|
|
3
|
+
projectId?: string;
|
|
4
|
+
};
|
|
5
|
+
type Datasets = {
|
|
6
|
+
id: string;
|
|
7
|
+
location: string;
|
|
8
|
+
projectId: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve all the Datasets from a given Project.
|
|
12
|
+
*/
|
|
13
|
+
declare const getDatasets: ({
|
|
14
|
+
projectId
|
|
15
|
+
}: GetDatasets) => Promise<Datasets[]>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { getDatasets as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import getClient from "./getClient.mjs";
|
|
2
|
+
//#region src/google/bigQuery/getDatasets.ts
|
|
3
|
+
/**
|
|
4
|
+
* Retrieve all the Datasets from a given Project.
|
|
5
|
+
*/
|
|
6
|
+
const getDatasets = async ({ projectId }) => {
|
|
7
|
+
let response = [];
|
|
8
|
+
const datasets = await getClient({ projectId }).getDatasets();
|
|
9
|
+
if (datasets?.[0]) for (let i = 0; i < datasets[0].length; i++) response.push({
|
|
10
|
+
id: datasets[0][i].id,
|
|
11
|
+
location: datasets[0][i].location,
|
|
12
|
+
projectId: datasets[0][i].bigQuery.projectId
|
|
13
|
+
});
|
|
14
|
+
return response;
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { getDatasets as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/google/bigQuery/getTables.d.ts
|
|
2
|
+
type GetTables = {
|
|
3
|
+
datasetId?: string;
|
|
4
|
+
projectId?: string;
|
|
5
|
+
};
|
|
6
|
+
type Tables = {
|
|
7
|
+
id: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve all the Tables from a given Project/Dataset.
|
|
11
|
+
*/
|
|
12
|
+
declare const getTables: (props: GetTables) => Promise<Tables[]>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { getTables as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import getClient from "./getClient.mjs";
|
|
2
|
+
//#region src/google/bigQuery/getTables.ts
|
|
3
|
+
/**
|
|
4
|
+
* Retrieve all the Tables from a given Project/Dataset.
|
|
5
|
+
*/
|
|
6
|
+
const getTables = async (props) => {
|
|
7
|
+
let response = [];
|
|
8
|
+
const tables = await getClient({ projectId: props.projectId }).dataset(props.datasetId).getTables();
|
|
9
|
+
if (tables?.[0]) for (let i = 0; i < tables[0].length; i++) response.push({ id: tables[0][i].id });
|
|
10
|
+
return response;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { getTables as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Config } from "../getConfig.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/google/bigQuery/initClient.d.ts
|
|
4
|
+
type InitClient = {
|
|
5
|
+
parameter: Config;
|
|
6
|
+
projectId: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Initialise the Big Query client.
|
|
10
|
+
* It's possible to use multiple clients, so we set one up per project id.
|
|
11
|
+
*/
|
|
12
|
+
declare const initClient: ({
|
|
13
|
+
parameter,
|
|
14
|
+
projectId
|
|
15
|
+
}: InitClient) => void;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { initClient as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { t as __require } from "../../chunk-y_GBKt04.mjs";
|
|
2
|
+
import getConfig from "../getConfig.mjs";
|
|
3
|
+
//#region src/google/bigQuery/initClient.ts
|
|
4
|
+
global.googleBigQueryDefault = {
|
|
5
|
+
credentials: null,
|
|
6
|
+
projectId: null
|
|
7
|
+
};
|
|
8
|
+
global.googleBigQueryClient = null;
|
|
9
|
+
/**
|
|
10
|
+
* Initialise the Big Query client.
|
|
11
|
+
* It's possible to use multiple clients, so we set one up per project id.
|
|
12
|
+
*/
|
|
13
|
+
const initClient = ({ parameter, projectId }) => {
|
|
14
|
+
if (!global.googleBigQueryClient) {
|
|
15
|
+
const { BigQuery } = __require("@google-cloud/bigquery");
|
|
16
|
+
const formattedConfig = getConfig({ parameter });
|
|
17
|
+
global.googleBigQueryDefault.credentials = formattedConfig;
|
|
18
|
+
global.googleBigQueryDefault.projectId = projectId;
|
|
19
|
+
global.googleBigQueryClient = new BigQuery({
|
|
20
|
+
credentials: global.googleBigQueryDefault.credentials,
|
|
21
|
+
location: "europe-west2",
|
|
22
|
+
projectId: global.googleBigQueryDefault.projectId
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { initClient as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/google/bigQuery/isDatasetExists.d.ts
|
|
2
|
+
type IsDatasetExists = {
|
|
3
|
+
datasetId: string;
|
|
4
|
+
projectId?: string;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Check to see whether a given BigQuery dataset exists.
|
|
8
|
+
* Based off:
|
|
9
|
+
* https://github.com/googleapis/nodejs-bigquery/blob/main/samples/getDataset.js
|
|
10
|
+
*/
|
|
11
|
+
declare const isDatasetExists: ({
|
|
12
|
+
datasetId,
|
|
13
|
+
projectId
|
|
14
|
+
}: IsDatasetExists) => Promise<boolean>;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { isDatasetExists as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import getClient from "./getClient.mjs";
|
|
2
|
+
//#region src/google/bigQuery/isDatasetExists.ts
|
|
3
|
+
/**
|
|
4
|
+
* Check to see whether a given BigQuery dataset exists.
|
|
5
|
+
* Based off:
|
|
6
|
+
* https://github.com/googleapis/nodejs-bigquery/blob/main/samples/getDataset.js
|
|
7
|
+
*/
|
|
8
|
+
const isDatasetExists = async ({ datasetId, projectId }) => {
|
|
9
|
+
let response;
|
|
10
|
+
let client = getClient({ projectId });
|
|
11
|
+
try {
|
|
12
|
+
await client.dataset(datasetId).get();
|
|
13
|
+
response = true;
|
|
14
|
+
} catch (exception) {
|
|
15
|
+
response = false;
|
|
16
|
+
}
|
|
17
|
+
return response;
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { isDatasetExists as default };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region src/google/bigQuery/loadData.d.ts
|
|
2
|
+
type LoadData = {
|
|
3
|
+
file: {
|
|
4
|
+
bucket: string;
|
|
5
|
+
key: string;
|
|
6
|
+
metadata: object;
|
|
7
|
+
projectId?: string;
|
|
8
|
+
};
|
|
9
|
+
table: {
|
|
10
|
+
projectId?: string;
|
|
11
|
+
datasetId: string;
|
|
12
|
+
tableId: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Load data into a given table.
|
|
17
|
+
*/
|
|
18
|
+
declare const loadData: ({
|
|
19
|
+
file,
|
|
20
|
+
table
|
|
21
|
+
}: LoadData) => Promise<void>;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { loadData as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import getClient from "./getClient.mjs";
|
|
2
|
+
import isTableExists from "./IsTableExists.mjs";
|
|
3
|
+
import getClient$1 from "../storage/getClient.mjs";
|
|
4
|
+
//#region src/google/bigQuery/loadData.ts
|
|
5
|
+
/**
|
|
6
|
+
* Load data into a given table.
|
|
7
|
+
*/
|
|
8
|
+
const loadData = async ({ file, table }) => {
|
|
9
|
+
if (await isTableExists({
|
|
10
|
+
datasetId: table.datasetId,
|
|
11
|
+
projectId: table.projectId,
|
|
12
|
+
tableId: table.tableId
|
|
13
|
+
})) {
|
|
14
|
+
let bigqueryClient = getClient({ projectId: table.projectId });
|
|
15
|
+
let storageClient = getClient$1({ projectId: file.projectId });
|
|
16
|
+
await bigqueryClient.dataset(table.datasetId).table(table.tableId).load(storageClient.bucket(file.bucket).file(file.key), file.metadata);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { loadData as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/google/bigQuery/query.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* https://cloud.google.com/bigquery/docs/parameterized-queries
|
|
4
|
+
*/
|
|
5
|
+
type QueryInput = string | {
|
|
6
|
+
query: string;
|
|
7
|
+
location?: string;
|
|
8
|
+
params: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
type Query = {
|
|
13
|
+
input: QueryInput;
|
|
14
|
+
projectId?: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Build the query and return the data.
|
|
18
|
+
*/
|
|
19
|
+
declare const query: ({
|
|
20
|
+
input,
|
|
21
|
+
projectId
|
|
22
|
+
}: Query) => Promise<any>;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { Query, QueryInput, query as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import getClient from "./getClient.mjs";
|
|
2
|
+
//#region src/google/bigQuery/query.ts
|
|
3
|
+
/**
|
|
4
|
+
* Build the query and return the data.
|
|
5
|
+
*/
|
|
6
|
+
const query = async ({ input, projectId }) => {
|
|
7
|
+
return await getClient({ projectId }).query(input);
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { query as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/google/getConfig.d.ts
|
|
2
|
+
type Config = {
|
|
3
|
+
type: string;
|
|
4
|
+
project_id: string;
|
|
5
|
+
private_key_id: string;
|
|
6
|
+
private_key: string;
|
|
7
|
+
client_email: string;
|
|
8
|
+
client_id: string;
|
|
9
|
+
auth_uri: string;
|
|
10
|
+
token_uri: string;
|
|
11
|
+
auth_provider_x509_cert_url: string;
|
|
12
|
+
client_x509_cert_url: string;
|
|
13
|
+
};
|
|
14
|
+
type GetConfig = {
|
|
15
|
+
parameter: Config;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Using the response from Parameter Store and format it ready to be used with Google API.
|
|
19
|
+
*/
|
|
20
|
+
declare const getConfig: ({
|
|
21
|
+
parameter
|
|
22
|
+
}: GetConfig) => Config;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { Config, GetConfig, getConfig as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/google/getConfig.ts
|
|
2
|
+
/**
|
|
3
|
+
* Using the response from Parameter Store and format it ready to be used with Google API.
|
|
4
|
+
*/
|
|
5
|
+
const getConfig = ({ parameter }) => {
|
|
6
|
+
const privateKey = parameter["private_key"].replace(/\\n/g, "\n");
|
|
7
|
+
return {
|
|
8
|
+
type: parameter["type"],
|
|
9
|
+
project_id: parameter["project_id"],
|
|
10
|
+
private_key_id: parameter["private_key_id"],
|
|
11
|
+
private_key: privateKey,
|
|
12
|
+
client_email: parameter["client_email"],
|
|
13
|
+
client_id: parameter["client_id"],
|
|
14
|
+
auth_uri: parameter["auth_uri"],
|
|
15
|
+
token_uri: parameter["token_uri"],
|
|
16
|
+
auth_provider_x509_cert_url: parameter["auth_provider_x509_cert_url"],
|
|
17
|
+
client_x509_cert_url: parameter["client_x509_cert_url"]
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { getConfig as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/google/sheets/getAssociatedData.d.ts
|
|
2
|
+
type GetAssociatedData = {
|
|
3
|
+
spreadsheetId: string;
|
|
4
|
+
ranges: [format: string, defaultRange: string, heading: string, data: string];
|
|
5
|
+
dateTimeRender: 'FORMATTED_STRING' | 'SERIAL_NUMBER';
|
|
6
|
+
valueRender: 'FORMATTED_VALUE' | 'UNFORMATTED_VALUE' | 'FORMULA';
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Make a batch get to Google Sheets to retrieve the data correctly formatted, with default values provided.
|
|
10
|
+
*/
|
|
11
|
+
declare const getAssociatedData: ({
|
|
12
|
+
dateTimeRender,
|
|
13
|
+
ranges,
|
|
14
|
+
spreadsheetId,
|
|
15
|
+
valueRender
|
|
16
|
+
}: GetAssociatedData) => Promise<object[]>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { getAssociatedData as default };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import getBatchData from "./getBatchData.mjs";
|
|
2
|
+
//#region src/google/sheets/getAssociatedData.ts
|
|
3
|
+
/**
|
|
4
|
+
* Make a batch get to Google Sheets to retrieve the data correctly formatted, with default values provided.
|
|
5
|
+
*/
|
|
6
|
+
const getAssociatedData = async ({ dateTimeRender, ranges, spreadsheetId, valueRender }) => {
|
|
7
|
+
const apiResponse = await getBatchData({
|
|
8
|
+
spreadsheetId,
|
|
9
|
+
ranges,
|
|
10
|
+
dateTimeRender,
|
|
11
|
+
valueRender
|
|
12
|
+
});
|
|
13
|
+
let template = [];
|
|
14
|
+
let response = [];
|
|
15
|
+
if (4 !== apiResponse.valueRanges.length) throw new Error("Associated data response length must be 4.");
|
|
16
|
+
const initialRangeLength = apiResponse.valueRanges[0].values[0].length;
|
|
17
|
+
for (let i = 0; i < initialRangeLength; i++) template.push({
|
|
18
|
+
format: apiResponse.valueRanges[0].values[0][i],
|
|
19
|
+
default: apiResponse.valueRanges[1].values[0][i],
|
|
20
|
+
heading: apiResponse.valueRanges[2].values[0][i],
|
|
21
|
+
index: i
|
|
22
|
+
});
|
|
23
|
+
if (void 0 !== apiResponse.valueRanges[3].values) for (let rowIndex = 0; rowIndex < apiResponse.valueRanges[3].values.length; rowIndex++) {
|
|
24
|
+
let row = {};
|
|
25
|
+
for (let columnIndex = 0; columnIndex < apiResponse.valueRanges[3].values[rowIndex].length; columnIndex++) {
|
|
26
|
+
const refValue = apiResponse.valueRanges[3].values[rowIndex][columnIndex];
|
|
27
|
+
const value = "" === refValue ? template[columnIndex]["default"] : refValue;
|
|
28
|
+
row[template[columnIndex]["heading"]] = value;
|
|
29
|
+
}
|
|
30
|
+
response.push(row);
|
|
31
|
+
}
|
|
32
|
+
return response;
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { getAssociatedData as default };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region src/google/sheets/getBatchData.d.ts
|
|
2
|
+
type BatchData = {
|
|
3
|
+
spreadsheetId: string;
|
|
4
|
+
valueRanges: {
|
|
5
|
+
range: string;
|
|
6
|
+
majorDimension: 'rows' | 'dimension';
|
|
7
|
+
values: [any[]];
|
|
8
|
+
}[];
|
|
9
|
+
};
|
|
10
|
+
type GetBatchData = {
|
|
11
|
+
spreadsheetId: string;
|
|
12
|
+
ranges: string[];
|
|
13
|
+
dateTimeRender?: string;
|
|
14
|
+
valueRender?: string;
|
|
15
|
+
};
|
|
16
|
+
declare const getBatchData: ({
|
|
17
|
+
spreadsheetId,
|
|
18
|
+
ranges,
|
|
19
|
+
dateTimeRender,
|
|
20
|
+
valueRender
|
|
21
|
+
}: GetBatchData) => Promise<BatchData>;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { getBatchData as default };
|