@8ms/helpers 1.38.0 → 2.0.0
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/.github/workflows/deploy_npmjs.yml +22 -14
- package/.yarn/install-state.gz +0 -0
- package/.yarn/releases/yarn-4.9.2.cjs +942 -0
- package/.yarnrc.yml +2 -0
- package/README.md +12 -0
- package/package.json +175 -46
- 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.d.ts +0 -1
- 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 -18
- 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.d.ts +0 -1
- 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/lumar/api/reports.d.ts
DELETED
package/lumar/api/reports.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const reports = {
|
|
4
|
-
CRAWL_STATISTICS: 'crawl_statistics',
|
|
5
|
-
CUSTOM: 'custom',
|
|
6
|
-
LIST_PROJECTS: 'list_projects',
|
|
7
|
-
LIST_CRAWLS: 'list_crawls',
|
|
8
|
-
LIST_REPORTS: 'list_reports',
|
|
9
|
-
REPORT_ROWS: 'report_rows',
|
|
10
|
-
REPORT_STATISTICS: 'report_statistics',
|
|
11
|
-
REPORT_SUMMARY: 'report_summary',
|
|
12
|
-
};
|
|
13
|
-
exports.default = reports;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
declare const columns: {
|
|
2
|
-
CUSTOM_EXTRACTION_1: string;
|
|
3
|
-
CUSTOM_EXTRACTION_2: string;
|
|
4
|
-
DEEP_RANK: string;
|
|
5
|
-
DESCRIPTION: string;
|
|
6
|
-
DUPLICATE_PAGE: string;
|
|
7
|
-
DUPLICATE_DESCRIPTION_FROM: string;
|
|
8
|
-
DUPLICATE_TITLE_FROM: string;
|
|
9
|
-
FOUND_AT_URL: string;
|
|
10
|
-
FOUND_IN_CRAWL: string;
|
|
11
|
-
FOUND_IN_SEARCH_CONSOLE: string;
|
|
12
|
-
FOUND_IN_SITEMAP: string;
|
|
13
|
-
LEVEL: string;
|
|
14
|
-
PAGE_TITLE: string;
|
|
15
|
-
PRIMARY_PAGE: string;
|
|
16
|
-
PRIMARY_URL_FROM: string;
|
|
17
|
-
PRIMARY_URL_FROM_STATUS_CODE: string;
|
|
18
|
-
REDIRECTED_TO_URL: string;
|
|
19
|
-
REDIRECTED_TO_STATUS_CODE: string;
|
|
20
|
-
REDIRECTION_CHAIN: string;
|
|
21
|
-
SOURCE_URL: string;
|
|
22
|
-
STATUS_CODE: string;
|
|
23
|
-
TARGET_STATUS_CODE: string;
|
|
24
|
-
URL: string;
|
|
25
|
-
URL_COUNT: string;
|
|
26
|
-
URL_TO: string;
|
|
27
|
-
URL_TO_STATUS_CODE: string;
|
|
28
|
-
};
|
|
29
|
-
export default columns;
|
package/lumar/graphql/columns.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const columns = {
|
|
4
|
-
CUSTOM_EXTRACTION_1: 'customExtraction1',
|
|
5
|
-
CUSTOM_EXTRACTION_2: 'customExtraction2',
|
|
6
|
-
DEEP_RANK: 'deepRank',
|
|
7
|
-
DESCRIPTION: 'description',
|
|
8
|
-
DUPLICATE_PAGE: 'duplicatePage',
|
|
9
|
-
DUPLICATE_DESCRIPTION_FROM: 'duplicateDescriptionPrimaryUrl',
|
|
10
|
-
DUPLICATE_TITLE_FROM: 'duplicateTitlePrimaryUrl',
|
|
11
|
-
FOUND_AT_URL: 'foundAtUrl',
|
|
12
|
-
FOUND_IN_CRAWL: 'foundInWebCrawl',
|
|
13
|
-
FOUND_IN_SEARCH_CONSOLE: 'foundInGoogleSearchConsole',
|
|
14
|
-
FOUND_IN_SITEMAP: 'foundInSitemap',
|
|
15
|
-
LEVEL: 'level',
|
|
16
|
-
PAGE_TITLE: 'pageTitle',
|
|
17
|
-
PRIMARY_PAGE: 'primaryPage',
|
|
18
|
-
PRIMARY_URL_FROM: 'primaryUrlFrom',
|
|
19
|
-
PRIMARY_URL_FROM_STATUS_CODE: 'primaryUrlFromStatusCode',
|
|
20
|
-
REDIRECTED_TO_URL: 'redirectedToUrl',
|
|
21
|
-
REDIRECTED_TO_STATUS_CODE: 'redirectedToStatusCode',
|
|
22
|
-
REDIRECTION_CHAIN: 'redirectionChain',
|
|
23
|
-
SOURCE_URL: 'sourceUrl',
|
|
24
|
-
STATUS_CODE: 'httpStatusCode',
|
|
25
|
-
TARGET_STATUS_CODE: 'targetStatusCode',
|
|
26
|
-
URL: 'url',
|
|
27
|
-
URL_COUNT: 'urlCount',
|
|
28
|
-
URL_TO: 'urlTo',
|
|
29
|
-
URL_TO_STATUS_CODE: 'urlToStatusCode',
|
|
30
|
-
};
|
|
31
|
-
exports.default = columns;
|
package/lumar/graphql/getData.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const post_1 = __importDefault(require("../../axios/post"));
|
|
7
|
-
const getData = async ({ query, variables }) => {
|
|
8
|
-
let queryClean = query.trim();
|
|
9
|
-
queryClean = queryClean.replace(/\n/g, ' ');
|
|
10
|
-
queryClean = queryClean.replace(/\t/g, ' ');
|
|
11
|
-
queryClean = queryClean.replace(/ /g, ' ');
|
|
12
|
-
const apiResponse = await (0, post_1.default)({
|
|
13
|
-
config: {
|
|
14
|
-
headers: {
|
|
15
|
-
'x-auth-token': global.lumarGraphql.token,
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
data: {
|
|
19
|
-
query: queryClean,
|
|
20
|
-
variables,
|
|
21
|
-
},
|
|
22
|
-
url: 'https://api.lumar.io/graphql',
|
|
23
|
-
});
|
|
24
|
-
return apiResponse;
|
|
25
|
-
};
|
|
26
|
-
exports.default = getData;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/**
|
|
4
|
-
* Shorthand function to return the report key.
|
|
5
|
-
*/
|
|
6
|
-
const getReportKey = ({ templateCode, typeCode }) => {
|
|
7
|
-
return `${templateCode}-${typeCode}`.toLowerCase();
|
|
8
|
-
};
|
|
9
|
-
exports.default = getReportKey;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
type InitClient = {
|
|
2
|
-
auth: {
|
|
3
|
-
id: string;
|
|
4
|
-
secret: string;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* https://api-docs.lumar.io/graphql/explorer/
|
|
9
|
-
* Renew the Lumar user token.
|
|
10
|
-
*/
|
|
11
|
-
declare const initClient: ({ auth }: InitClient) => Promise<void>;
|
|
12
|
-
export default initClient;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const post_1 = __importDefault(require("../../axios/post"));
|
|
7
|
-
// Initialise
|
|
8
|
-
global.lumarGraphql = {
|
|
9
|
-
token: null,
|
|
10
|
-
updatedAt: null,
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* https://api-docs.lumar.io/graphql/explorer/
|
|
14
|
-
* Renew the Lumar user token.
|
|
15
|
-
*/
|
|
16
|
-
const initClient = async ({ auth }) => {
|
|
17
|
-
if (null === global.lumarGraphql.token) {
|
|
18
|
-
const apiResponse = await (0, post_1.default)({
|
|
19
|
-
data: {
|
|
20
|
-
query: "mutation LoginWithUserKey($secret: String!, $userKeyId: ObjectID!) { createSessionUsingUserKey(input: {userKeyId: $userKeyId, secret: $secret}) { token }}",
|
|
21
|
-
variables: {
|
|
22
|
-
userKeyId: auth.id,
|
|
23
|
-
secret: auth.secret,
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
url: `https://api.lumar.io/graphql`,
|
|
27
|
-
});
|
|
28
|
-
const token = apiResponse.getBodyDefaultTo({
|
|
29
|
-
defaultValue: null,
|
|
30
|
-
keys: ['data', 'createSessionUsingUserKey', 'token'],
|
|
31
|
-
});
|
|
32
|
-
// Ensure the value exists
|
|
33
|
-
if (token) {
|
|
34
|
-
global.lumarGraphql.token = token;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
exports.default = initClient;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
declare const operands: {
|
|
2
|
-
CONTAINS: string;
|
|
3
|
-
DOESNT_CONTAIN: string;
|
|
4
|
-
DOESNT_MATCH_REGEX: string;
|
|
5
|
-
ENDS_WITH: string;
|
|
6
|
-
EQUALS: string;
|
|
7
|
-
GREATER_THAN: string;
|
|
8
|
-
GREATER_THAN_OR_EQUAL: string;
|
|
9
|
-
IS_EMPTY: string;
|
|
10
|
-
LESS_THAN: string;
|
|
11
|
-
LESS_THAN_OR_EQUAL: string;
|
|
12
|
-
MATCHES_REGEX: string;
|
|
13
|
-
NOT_EQUALS: string;
|
|
14
|
-
STARTS_WITH: string;
|
|
15
|
-
};
|
|
16
|
-
export default operands;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operands = {
|
|
4
|
-
CONTAINS: 'contains',
|
|
5
|
-
DOESNT_CONTAIN: 'notContains',
|
|
6
|
-
DOESNT_MATCH_REGEX: 'notMatchesRegex',
|
|
7
|
-
ENDS_WITH: 'endsWith',
|
|
8
|
-
EQUALS: 'eq',
|
|
9
|
-
GREATER_THAN: 'gt',
|
|
10
|
-
GREATER_THAN_OR_EQUAL: 'ge',
|
|
11
|
-
IS_EMPTY: 'isEmpty',
|
|
12
|
-
LESS_THAN: 'lt',
|
|
13
|
-
LESS_THAN_OR_EQUAL: 'le',
|
|
14
|
-
MATCHES_REGEX: 'matchesRegex',
|
|
15
|
-
NOT_EQUALS: 'ne',
|
|
16
|
-
STARTS_WITH: 'beginsWith',
|
|
17
|
-
};
|
|
18
|
-
exports.default = operands;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
type GetCrawls = {
|
|
2
|
-
first: number;
|
|
3
|
-
projectId: number;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* For a given Project ID return all the crawls that were completed in descending order.
|
|
7
|
-
*/
|
|
8
|
-
declare const getCrawls: ({ first, projectId }: GetCrawls) => {
|
|
9
|
-
id: string;
|
|
10
|
-
first: number;
|
|
11
|
-
projectId: number;
|
|
12
|
-
query: string;
|
|
13
|
-
variables: {
|
|
14
|
-
first: number;
|
|
15
|
-
projectId: number;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export default getCrawls;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/**
|
|
4
|
-
* For a given Project ID return all the crawls that were completed in descending order.
|
|
5
|
-
*/
|
|
6
|
-
const getCrawls = ({ first, projectId }) => ({
|
|
7
|
-
id: `get-crawls-${projectId}`.toLowerCase(),
|
|
8
|
-
first,
|
|
9
|
-
projectId,
|
|
10
|
-
query: `
|
|
11
|
-
query GetCrawls($projectId: ObjectID!, $first: Int) {
|
|
12
|
-
getProject(id: $projectId) {
|
|
13
|
-
id
|
|
14
|
-
rawID
|
|
15
|
-
crawls(
|
|
16
|
-
first: $first
|
|
17
|
-
orderBy: [{field: finishedAt, direction: DESC}]
|
|
18
|
-
) {
|
|
19
|
-
nodes {
|
|
20
|
-
finishedAt
|
|
21
|
-
rawID
|
|
22
|
-
status
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
`,
|
|
28
|
-
variables: {
|
|
29
|
-
first,
|
|
30
|
-
projectId,
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
exports.default = getCrawls;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
type GetReportDifferences = {
|
|
2
|
-
crawlId: number;
|
|
3
|
-
filter: object;
|
|
4
|
-
reportTemplateCode: string;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Used to return the number for: Basic, Added, Missing, Removed for a given report.
|
|
8
|
-
*/
|
|
9
|
-
declare const getReportDifferences: ({ crawlId, filter, reportTemplateCode }: GetReportDifferences) => {
|
|
10
|
-
id: string;
|
|
11
|
-
crawlId: number;
|
|
12
|
-
filter: object;
|
|
13
|
-
query: string;
|
|
14
|
-
reportTemplateCode: string;
|
|
15
|
-
variables: {
|
|
16
|
-
filter: object;
|
|
17
|
-
input: {
|
|
18
|
-
crawlId: number;
|
|
19
|
-
reportTemplateCode: string;
|
|
20
|
-
reportTypeCode: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export default getReportDifferences;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const reportTypes_1 = __importDefault(require("../reportTypes"));
|
|
7
|
-
/**
|
|
8
|
-
* Used to return the number for: Basic, Added, Missing, Removed for a given report.
|
|
9
|
-
*/
|
|
10
|
-
const getReportDifferences = ({ crawlId, filter, reportTemplateCode }) => ({
|
|
11
|
-
id: `get-report-differences-${crawlId}-${reportTemplateCode}`.toLowerCase(),
|
|
12
|
-
crawlId,
|
|
13
|
-
filter,
|
|
14
|
-
query: `
|
|
15
|
-
query GetReportDifferences($input: GetReportInputType!, $filter: JSONObject) {
|
|
16
|
-
getReport(input: $input) {
|
|
17
|
-
rawID
|
|
18
|
-
reportTemplateCode
|
|
19
|
-
reportTypeCode
|
|
20
|
-
totalRows
|
|
21
|
-
id
|
|
22
|
-
diffReportTotals(includeSelf: true, filter: $filter) {
|
|
23
|
-
totalRows
|
|
24
|
-
reportTypeCode
|
|
25
|
-
__typename
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
`,
|
|
30
|
-
reportTemplateCode,
|
|
31
|
-
variables: {
|
|
32
|
-
filter,
|
|
33
|
-
input: {
|
|
34
|
-
crawlId,
|
|
35
|
-
reportTemplateCode,
|
|
36
|
-
reportTypeCode: reportTypes_1.default.BASIC,
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
exports.default = getReportDifferences;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
type GetRows = {
|
|
2
|
-
after?: string;
|
|
3
|
-
before?: string;
|
|
4
|
-
crawlId: number;
|
|
5
|
-
first: number;
|
|
6
|
-
filter: object;
|
|
7
|
-
last: number;
|
|
8
|
-
orderBy?: object;
|
|
9
|
-
reportTemplateCode: string;
|
|
10
|
-
reportTypeCode: string;
|
|
11
|
-
};
|
|
12
|
-
declare const getRows: ({ after, before, crawlId, filter, first, last, orderBy, reportTemplateCode, reportTypeCode }: GetRows) => {
|
|
13
|
-
id: string;
|
|
14
|
-
after: string;
|
|
15
|
-
before: string;
|
|
16
|
-
crawlId: number;
|
|
17
|
-
filter: object;
|
|
18
|
-
first: number;
|
|
19
|
-
last: number;
|
|
20
|
-
orderBy: object;
|
|
21
|
-
query: string;
|
|
22
|
-
reportTemplateCode: string;
|
|
23
|
-
reportTypeCode: string;
|
|
24
|
-
variables: {
|
|
25
|
-
after: string;
|
|
26
|
-
before: string;
|
|
27
|
-
filter: object;
|
|
28
|
-
first: number;
|
|
29
|
-
input: {
|
|
30
|
-
crawlId: number;
|
|
31
|
-
reportTemplateCode: string;
|
|
32
|
-
reportTypeCode: string;
|
|
33
|
-
};
|
|
34
|
-
last: number;
|
|
35
|
-
orderBy: object;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
export default getRows;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const getRows = ({ after, before, crawlId, filter, first, last, orderBy, reportTemplateCode, reportTypeCode }) => ({
|
|
4
|
-
id: `get-rows-${crawlId}-${reportTemplateCode}-${reportTypeCode}`.toLowerCase(),
|
|
5
|
-
after,
|
|
6
|
-
before,
|
|
7
|
-
crawlId,
|
|
8
|
-
filter,
|
|
9
|
-
first,
|
|
10
|
-
last,
|
|
11
|
-
orderBy,
|
|
12
|
-
query: `
|
|
13
|
-
query GetRows($input: GetReportInputType!, $orderBy: [JSONObject!], $filter: JSONObject, $first: Int, $after: String, $last: Int, $before: String) {
|
|
14
|
-
getReport(input: $input) {
|
|
15
|
-
totalRows
|
|
16
|
-
rawID
|
|
17
|
-
reportTemplateCode
|
|
18
|
-
reportTypeCode
|
|
19
|
-
id
|
|
20
|
-
rowsWithAllMetrics(
|
|
21
|
-
filter: $filter
|
|
22
|
-
orderBy: $orderBy
|
|
23
|
-
last: $last
|
|
24
|
-
first: $first
|
|
25
|
-
before: $before
|
|
26
|
-
after: $after
|
|
27
|
-
) {
|
|
28
|
-
__typename
|
|
29
|
-
totalCount
|
|
30
|
-
nodes
|
|
31
|
-
pageInfo {
|
|
32
|
-
hasNextPage
|
|
33
|
-
endCursor
|
|
34
|
-
startCursor
|
|
35
|
-
hasPreviousPage
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
`,
|
|
41
|
-
reportTemplateCode,
|
|
42
|
-
reportTypeCode,
|
|
43
|
-
variables: {
|
|
44
|
-
after,
|
|
45
|
-
before,
|
|
46
|
-
filter,
|
|
47
|
-
first,
|
|
48
|
-
input: {
|
|
49
|
-
crawlId,
|
|
50
|
-
reportTemplateCode,
|
|
51
|
-
reportTypeCode,
|
|
52
|
-
},
|
|
53
|
-
last,
|
|
54
|
-
orderBy: orderBy || null,
|
|
55
|
-
},
|
|
56
|
-
});
|
|
57
|
-
exports.default = getRows;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
type GetTotals = {
|
|
2
|
-
crawlId: number;
|
|
3
|
-
filter: object;
|
|
4
|
-
filterKey?: string;
|
|
5
|
-
reportTemplateCode: string;
|
|
6
|
-
reportTypeCode: string;
|
|
7
|
-
};
|
|
8
|
-
declare const getTotals: ({ crawlId, filter, filterKey, reportTemplateCode, reportTypeCode }: GetTotals) => {
|
|
9
|
-
id: string;
|
|
10
|
-
crawlId: number;
|
|
11
|
-
filter: object;
|
|
12
|
-
filterKey: string;
|
|
13
|
-
query: string;
|
|
14
|
-
reportTemplateCode: string;
|
|
15
|
-
reportTypeCode: string;
|
|
16
|
-
variables: {
|
|
17
|
-
filter: object;
|
|
18
|
-
input: {
|
|
19
|
-
crawlId: number;
|
|
20
|
-
reportTemplateCode: string;
|
|
21
|
-
reportTypeCode: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
export default getTotals;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const getTotals = ({ crawlId, filter, filterKey, reportTemplateCode, reportTypeCode }) => ({
|
|
4
|
-
id: `get-totals-${crawlId}-${reportTemplateCode}-${reportTypeCode}`.toLowerCase(),
|
|
5
|
-
crawlId,
|
|
6
|
-
filter,
|
|
7
|
-
filterKey,
|
|
8
|
-
query: `
|
|
9
|
-
query GetTotals($input: GetReportInputType!, $filter: JSONObject) {
|
|
10
|
-
getReport(input: $input) {
|
|
11
|
-
rawID
|
|
12
|
-
reportTemplateCode
|
|
13
|
-
reportTypeCode
|
|
14
|
-
totalRows
|
|
15
|
-
id
|
|
16
|
-
diffReportTotals(includeSelf: true, filter: $filter) {
|
|
17
|
-
totalRows
|
|
18
|
-
reportTypeCode
|
|
19
|
-
__typename
|
|
20
|
-
}
|
|
21
|
-
rows(
|
|
22
|
-
filter: $filter
|
|
23
|
-
) {
|
|
24
|
-
totalCount
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
`,
|
|
29
|
-
reportTemplateCode,
|
|
30
|
-
reportTypeCode,
|
|
31
|
-
variables: {
|
|
32
|
-
filter,
|
|
33
|
-
input: {
|
|
34
|
-
crawlId,
|
|
35
|
-
reportTemplateCode,
|
|
36
|
-
reportTypeCode,
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
exports.default = getTotals;
|