@8ms/helpers 2.3.4 → 2.3.6
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 +0 -3
- package/.yarn/install-state.gz +0 -0
- package/dist/_class/index.d.mts +2 -0
- package/dist/_class/index.mjs +62 -0
- package/dist/adverity/index.d.mts +2 -0
- package/dist/adverity/index.mjs +64 -0
- package/{adverity/server/getJobs.d.ts → dist/adverity/server/index.d.mts} +11 -8
- package/dist/adverity/server/index.mjs +25 -0
- package/dist/api/index.d.mts +2 -0
- package/dist/api/index.mjs +3 -0
- package/dist/api-DGKJDAfb.mjs +139 -0
- package/dist/array/index.d.mts +11 -0
- package/dist/array/index.mjs +14 -0
- package/dist/atInternet/index.d.mts +20 -0
- package/dist/atInternet/index.mjs +18 -0
- package/dist/aws/ec2/server/index.d.mts +18 -0
- package/dist/aws/ec2/server/index.mjs +48 -0
- package/dist/aws/ecs/server/index.d.mts +59 -0
- package/dist/aws/ecs/server/index.mjs +113 -0
- package/dist/aws/glue/server/index.d.mts +19 -0
- package/dist/aws/glue/server/index.mjs +36 -0
- package/dist/aws/lambda/server/index.d.mts +28 -0
- package/dist/aws/lambda/server/index.mjs +57 -0
- package/dist/aws/s3/server/index.d.mts +124 -0
- package/dist/aws/s3/server/index.mjs +361 -0
- package/dist/aws/server/index.d.mts +2 -0
- package/dist/aws/server/index.mjs +3 -0
- package/dist/aws/ses/server/index.d.mts +105 -0
- package/dist/aws/ses/server/index.mjs +269 -0
- package/dist/aws/sqs/server/index.d.mts +41 -0
- package/dist/aws/sqs/server/index.mjs +56 -0
- package/dist/aws/ssm/server/index.d.mts +18 -0
- package/dist/aws/ssm/server/index.mjs +47 -0
- package/dist/axios/index.d.mts +22 -0
- package/dist/axios/index.mjs +50 -0
- package/dist/boolean/index.d.mts +7 -0
- package/dist/boolean/index.mjs +15 -0
- package/dist/brightData/serpApi/server/index.d.mts +93 -0
- package/dist/brightData/serpApi/server/index.mjs +229 -0
- package/dist/brightData/server/index.d.mts +2 -0
- package/dist/brightData/server/index.mjs +18 -0
- package/dist/brightData/webScraperIde/server/index.d.mts +19 -0
- package/dist/brightData/webScraperIde/server/index.mjs +50 -0
- package/dist/cache/server/index.d.mts +10 -0
- package/dist/cache/server/index.mjs +31 -0
- package/dist/chunk-CgI6uo-e.mjs +32 -0
- package/dist/crud/index.d.mts +10 -0
- package/dist/crud/index.mjs +10 -0
- package/dist/crypto/index.d.mts +28 -0
- package/dist/crypto/index.mjs +47 -0
- package/dist/date/index.d.mts +2 -0
- package/dist/date/index.mjs +471 -0
- package/dist/environment/index.d.mts +37 -0
- package/dist/environment/index.mjs +60 -0
- package/dist/eskimi/index.d.mts +52 -0
- package/dist/eskimi/index.mjs +90 -0
- package/dist/eskimi/server/index.d.mts +25 -0
- package/dist/eskimi/server/index.mjs +50 -0
- package/dist/file/index.d.mts +7 -0
- package/dist/file/index.mjs +20 -0
- package/dist/file/server/index.d.mts +8 -0
- package/dist/file/server/index.mjs +16 -0
- package/dist/from-9s4TjsYv.mjs +3878 -0
- package/dist/geo/index.d.mts +26 -0
- package/dist/geo/index.mjs +1591 -0
- package/dist/getDecimal-CafxtLhH.mjs +40 -0
- package/dist/googleAds/keywordPlanner/server/index.d.mts +45 -0
- package/dist/googleAds/keywordPlanner/server/index.mjs +51 -0
- package/dist/googleAds/server/index.d.mts +27 -0
- package/dist/googleAds/server/index.mjs +48 -0
- package/dist/googleCloud/bigquery/server/index.d.mts +82 -0
- package/dist/googleCloud/bigquery/server/index.mjs +127 -0
- package/dist/googleCloud/server/index.d.mts +2 -0
- package/dist/googleCloud/server/index.mjs +24 -0
- package/dist/googleCloud/sheets/server/index.d.mts +22 -0
- package/dist/googleCloud/sheets/server/index.mjs +31 -0
- package/dist/googleCloud/storage/server/index.d.mts +31 -0
- package/dist/googleCloud/storage/server/index.mjs +79 -0
- package/dist/googlePageSpeed/server/index.d.mts +34 -0
- package/dist/googlePageSpeed/server/index.mjs +53 -0
- package/dist/googleSearchIncidents/server/index.d.mts +73 -0
- package/dist/googleSearchIncidents/server/index.mjs +55 -0
- package/dist/greenDomain/server/index.d.mts +25 -0
- package/dist/greenDomain/server/index.mjs +31 -0
- package/dist/index-B20FTOvk.d.mts +67 -0
- package/dist/index-B4K9Z1U-.d.mts +17 -0
- package/dist/index-CFaAdPAh.d.mts +32 -0
- package/dist/index-CIG08fpw.d.mts +32 -0
- package/dist/index-CMfxuwL1.d.mts +246 -0
- package/dist/index-DEm1Wodf.d.mts +116 -0
- package/dist/index-sfVt7tI_.d.mts +18 -0
- package/dist/inngest/index.d.mts +10 -0
- package/dist/inngest/index.mjs +10 -0
- package/dist/json/index.d.mts +7 -0
- package/dist/json/index.mjs +27 -0
- package/dist/littleWarden/server/index.d.mts +56 -0
- package/dist/littleWarden/server/index.mjs +79 -0
- package/dist/lumar/api/server/index.d.mts +66 -0
- package/dist/lumar/api/server/index.mjs +111 -0
- package/dist/lumar/graphql/server/index.d.mts +308 -0
- package/dist/lumar/graphql/server/index.mjs +172 -0
- package/dist/multipart-parser-BC14QSvI.mjs +290 -0
- package/dist/myTarget/server/index.d.mts +9 -0
- package/dist/myTarget/server/index.mjs +16 -0
- package/dist/nextAuth/index.d.mts +12 -0
- package/dist/nextAuth/index.mjs +15 -0
- package/dist/nextJs/index.d.mts +19 -0
- package/dist/nextJs/index.mjs +12 -0
- package/dist/number/index.d.mts +54 -0
- package/dist/number/index.mjs +75 -0
- package/{object/replaceKeys.d.ts → dist/object/index.d.mts} +4 -1
- package/dist/object/index.mjs +22 -0
- package/dist/onePassword/server/index.d.mts +24 -0
- package/dist/onePassword/server/index.mjs +50 -0
- package/dist/openAi/server/index.d.mts +20 -0
- package/dist/openAi/server/index.mjs +46 -0
- package/dist/prisma/index.d.mts +7 -0
- package/dist/prisma/index.mjs +16 -0
- package/dist/prisma/server/index.d.mts +31 -0
- package/dist/prisma/server/index.mjs +72 -0
- package/dist/server-Bwy4JI8Z.mjs +33 -0
- package/dist/snapchat/server/index.d.mts +25 -0
- package/dist/snapchat/server/index.mjs +39 -0
- package/dist/sorting/index.d.mts +25 -0
- package/dist/sorting/index.mjs +50 -0
- package/dist/src-BeXFXTgz.mjs +1272 -0
- package/dist/stream/server/index.d.mts +15 -0
- package/dist/stream/server/index.mjs +48 -0
- package/dist/string/index.d.mts +107 -0
- package/dist/string/index.mjs +191 -0
- package/dist/swr/client/index.d.mts +46 -0
- package/dist/swr/client/index.mjs +40 -0
- package/dist/upTimeRobot/server/index.d.mts +72 -0
- package/dist/upTimeRobot/server/index.mjs +83 -0
- package/dist/url/index.d.mts +29 -0
- package/dist/url/index.mjs +52 -0
- package/dist/url/server/index.d.mts +9 -0
- package/dist/url/server/index.mjs +35 -0
- package/dist/util/index.d.mts +47 -0
- package/dist/util/index.mjs +99 -0
- package/dist/util/server/index.d.mts +27 -0
- package/dist/util/server/index.mjs +61 -0
- package/dist/webWorker/index.d.mts +11 -0
- package/dist/webWorker/index.mjs +11 -0
- package/dist/xml/server/index.d.mts +4 -0
- package/dist/xml/server/index.mjs +17 -0
- package/package.json +70 -1066
- package/tsdown.config.ts +10 -0
- package/.github/generate-exports.js +0 -69
- package/_class/BaseClass.d.ts +0 -18
- package/_class/BaseClass.js +0 -44
- package/_class/BaseNamespace.d.ts +0 -9
- package/_class/BaseNamespace.js +0 -24
- package/_class/index.d.ts +0 -2
- package/_class/index.js +0 -2
- package/adverity/adverity.d.ts +0 -112
- package/adverity/adverity.js +0 -58
- package/adverity/index.d.ts +0 -1
- package/adverity/index.js +0 -1
- package/adverity/server/getJobs.js +0 -26
- package/adverity/server/index.d.ts +0 -1
- package/adverity/server/index.js +0 -1
- package/api/ApiResponseClass.d.ts +0 -35
- package/api/ApiResponseClass.js +0 -93
- package/api/api.d.ts +0 -17
- package/api/api.js +0 -15
- package/api/functions.d.ts +0 -7
- package/api/functions.js +0 -19
- package/api/index.d.ts +0 -3
- package/api/index.js +0 -3
- package/array/array.d.ts +0 -8
- package/array/array.js +0 -9
- package/array/index.d.ts +0 -1
- package/array/index.js +0 -1
- package/atInternet/atInternet.d.ts +0 -16
- package/atInternet/atInternet.js +0 -15
- package/atInternet/index.d.ts +0 -1
- package/atInternet/index.js +0 -1
- package/aws/ec2/server/AwsEc2Namespace.d.ts +0 -10
- package/aws/ec2/server/AwsEc2Namespace.js +0 -37
- package/aws/ec2/server/awsEc2.d.ts +0 -3
- package/aws/ec2/server/awsEc2.js +0 -12
- package/aws/ec2/server/index.d.ts +0 -2
- package/aws/ec2/server/index.js +0 -2
- package/aws/ecs/server/AwsEcsNamespace.d.ts +0 -53
- package/aws/ecs/server/AwsEcsNamespace.js +0 -118
- package/aws/ecs/server/awsEcs.d.ts +0 -3
- package/aws/ecs/server/awsEcs.js +0 -12
- package/aws/ecs/server/index.d.ts +0 -2
- package/aws/ecs/server/index.js +0 -2
- package/aws/glue/server/AwsGlueNamespace.d.ts +0 -12
- package/aws/glue/server/AwsGlueNamespace.js +0 -29
- package/aws/glue/server/awsGlue.d.ts +0 -3
- package/aws/glue/server/awsGlue.js +0 -12
- package/aws/glue/server/index.d.ts +0 -2
- package/aws/glue/server/index.js +0 -2
- package/aws/lambda/server/AwsLambdaNamespace.d.ts +0 -21
- package/aws/lambda/server/AwsLambdaNamespace.js +0 -69
- package/aws/lambda/server/awsLambda.d.ts +0 -4
- package/aws/lambda/server/awsLambda.js +0 -16
- package/aws/lambda/server/index.d.ts +0 -2
- package/aws/lambda/server/index.js +0 -2
- package/aws/s3/server/AwsS3Namespace.d.ts +0 -65
- package/aws/s3/server/AwsS3Namespace.js +0 -364
- package/aws/s3/server/awsS3.d.ts +0 -13
- package/aws/s3/server/awsS3.js +0 -20
- package/aws/s3/server/index.d.ts +0 -3
- package/aws/s3/server/index.js +0 -3
- package/aws/s3/server/payload.d.ts +0 -42
- package/aws/s3/server/payload.js +0 -43
- package/aws/server/aws.d.ts +0 -9
- package/aws/server/aws.js +0 -29
- package/aws/server/index.d.ts +0 -2
- package/aws/server/index.js +0 -2
- package/aws/server/isResponse200.d.ts +0 -4
- package/aws/server/isResponse200.js +0 -12
- package/aws/ses/server/AwsSesNamespace.d.ts +0 -9
- package/aws/ses/server/AwsSesNamespace.js +0 -41
- package/aws/ses/server/SimpleEmail.d.ts +0 -81
- package/aws/ses/server/SimpleEmail.js +0 -296
- package/aws/ses/server/awsSes.d.ts +0 -4
- package/aws/ses/server/awsSes.js +0 -13
- package/aws/ses/server/index.d.ts +0 -3
- package/aws/ses/server/index.js +0 -3
- package/aws/sqs/server/AwsSqsNamespace.d.ts +0 -34
- package/aws/sqs/server/AwsSqsNamespace.js +0 -55
- package/aws/sqs/server/awsSqs.d.ts +0 -3
- package/aws/sqs/server/awsSqs.js +0 -12
- package/aws/sqs/server/index.d.ts +0 -2
- package/aws/sqs/server/index.js +0 -2
- package/aws/ssm/server/AwsSsmNamespace.d.ts +0 -11
- package/aws/ssm/server/AwsSsmNamespace.js +0 -52
- package/aws/ssm/server/awsSsm.d.ts +0 -3
- package/aws/ssm/server/awsSsm.js +0 -12
- package/aws/ssm/server/index.d.ts +0 -2
- package/aws/ssm/server/index.js +0 -2
- package/axios/deleteRequest.d.ts +0 -6
- package/axios/deleteRequest.js +0 -26
- package/axios/get.d.ts +0 -5
- package/axios/get.js +0 -24
- package/axios/index.d.ts +0 -3
- package/axios/index.js +0 -3
- package/axios/post.d.ts +0 -5
- package/axios/post.js +0 -25
- package/boolean/boolean.d.ts +0 -4
- package/boolean/boolean.js +0 -16
- package/boolean/index.d.ts +0 -1
- package/boolean/index.js +0 -1
- package/brightData/serpApi/server/brightDataSerpApi.d.ts +0 -10
- package/brightData/serpApi/server/brightDataSerpApi.js +0 -9
- package/brightData/serpApi/server/buildGoogleSerpUrl.d.ts +0 -32
- package/brightData/serpApi/server/buildGoogleSerpUrl.js +0 -112
- package/brightData/serpApi/server/buildGoogleTrendsUrl.d.ts +0 -22
- package/brightData/serpApi/server/buildGoogleTrendsUrl.js +0 -57
- package/brightData/serpApi/server/getAsyncRequestId.d.ts +0 -8
- package/brightData/serpApi/server/getAsyncRequestId.js +0 -32
- package/brightData/serpApi/server/getAsyncResults.d.ts +0 -7
- package/brightData/serpApi/server/getAsyncResults.js +0 -31
- package/brightData/serpApi/server/getRealtime.d.ts +0 -5
- package/brightData/serpApi/server/getRealtime.js +0 -26
- package/brightData/serpApi/server/index.d.ts +0 -6
- package/brightData/serpApi/server/index.js +0 -6
- package/brightData/server/brightData.d.ts +0 -15
- package/brightData/server/brightData.js +0 -15
- package/brightData/server/index.d.ts +0 -1
- package/brightData/server/index.js +0 -1
- package/brightData/webScraperIde/server/getBatch.d.ts +0 -7
- package/brightData/webScraperIde/server/getBatch.js +0 -24
- package/brightData/webScraperIde/server/getRealtime.d.ts +0 -7
- package/brightData/webScraperIde/server/getRealtime.js +0 -45
- package/brightData/webScraperIde/server/index.d.ts +0 -2
- package/brightData/webScraperIde/server/index.js +0 -2
- package/cache/server/cache.d.ts +0 -7
- package/cache/server/cache.js +0 -43
- package/cache/server/index.d.ts +0 -1
- package/cache/server/index.js +0 -1
- package/cache/server/test/cache.test.d.ts +0 -1
- package/cache/server/test/cache.test.js +0 -8
- package/crud/crud.d.ts +0 -7
- package/crud/crud.js +0 -6
- package/crud/index.d.ts +0 -1
- package/crud/index.js +0 -1
- package/crypto/getDecrypt.d.ts +0 -5
- package/crypto/getDecrypt.js +0 -10
- package/crypto/getEncrypt.d.ts +0 -5
- package/crypto/getEncrypt.js +0 -10
- package/crypto/getRandom.d.ts +0 -4
- package/crypto/getRandom.js +0 -8
- package/crypto/getSha256.d.ts +0 -5
- package/crypto/getSha256.js +0 -11
- package/crypto/index.d.ts +0 -4
- package/crypto/index.js +0 -4
- package/date/calculation.d.ts +0 -102
- package/date/calculation.js +0 -272
- package/date/date.d.ts +0 -36
- package/date/date.js +0 -20
- package/date/financialYear.d.ts +0 -19
- package/date/financialYear.js +0 -78
- package/date/format.d.ts +0 -85
- package/date/format.js +0 -160
- package/date/index.d.ts +0 -4
- package/date/index.js +0 -4
- package/environment/environment.d.ts +0 -34
- package/environment/environment.js +0 -79
- package/environment/index.d.ts +0 -1
- package/environment/index.js +0 -1
- package/eskimi/eskimi.d.ts +0 -49
- package/eskimi/eskimi.js +0 -93
- package/eskimi/index.d.ts +0 -1
- package/eskimi/index.js +0 -1
- package/eskimi/server/getAgeGroup.d.ts +0 -4
- package/eskimi/server/getAgeGroup.js +0 -11
- package/eskimi/server/getData.d.ts +0 -4
- package/eskimi/server/getData.js +0 -13
- package/eskimi/server/getDevice.d.ts +0 -4
- package/eskimi/server/getDevice.js +0 -11
- package/eskimi/server/getGender.d.ts +0 -4
- package/eskimi/server/getGender.js +0 -11
- package/eskimi/server/index.d.ts +0 -4
- package/eskimi/server/index.js +0 -4
- package/file/getFileKey.d.ts +0 -4
- package/file/getFileKey.js +0 -23
- package/file/index.d.ts +0 -1
- package/file/index.js +0 -1
- package/file/server/createDirectory.d.ts +0 -5
- package/file/server/createDirectory.js +0 -13
- package/file/server/index.d.ts +0 -1
- package/file/server/index.js +0 -1
- package/geo/countries.d.ts +0 -12
- package/geo/countries.js +0 -219
- package/geo/index.d.ts +0 -2
- package/geo/index.js +0 -2
- package/geo/languages.d.ts +0 -9
- package/geo/languages.js +0 -55
- package/googleAds/keywordPlanner/server/googleAdsKeywordPlanner.d.ts +0 -41
- package/googleAds/keywordPlanner/server/googleAdsKeywordPlanner.js +0 -55
- package/googleAds/keywordPlanner/server/index.d.ts +0 -1
- package/googleAds/keywordPlanner/server/index.js +0 -1
- package/googleAds/server/GoogleAdsNamespace.d.ts +0 -11
- package/googleAds/server/GoogleAdsNamespace.js +0 -30
- package/googleAds/server/googleAds.d.ts +0 -11
- package/googleAds/server/googleAds.js +0 -26
- package/googleAds/server/index.d.ts +0 -2
- package/googleAds/server/index.js +0 -2
- package/googleCloud/bigquery/server/GoogleCloudBigqueryNamespace.d.ts +0 -50
- package/googleCloud/bigquery/server/GoogleCloudBigqueryNamespace.js +0 -115
- package/googleCloud/bigquery/server/googleCloudBigquery.d.ts +0 -5
- package/googleCloud/bigquery/server/googleCloudBigquery.js +0 -41
- package/googleCloud/bigquery/server/index.d.ts +0 -3
- package/googleCloud/bigquery/server/index.js +0 -3
- package/googleCloud/bigquery/server/loadData.d.ts +0 -19
- package/googleCloud/bigquery/server/loadData.js +0 -14
- package/googleCloud/server/googleCloud.d.ts +0 -29
- package/googleCloud/server/googleCloud.js +0 -25
- package/googleCloud/server/index.d.ts +0 -1
- package/googleCloud/server/index.js +0 -1
- package/googleCloud/sheets/server/GoogleCloudSheetsNamespace.d.ts +0 -18
- package/googleCloud/sheets/server/GoogleCloudSheetsNamespace.js +0 -37
- package/googleCloud/sheets/server/getAssociatedData.d.ts +0 -10
- package/googleCloud/sheets/server/getAssociatedData.js +0 -39
- package/googleCloud/sheets/server/index.d.ts +0 -1
- package/googleCloud/sheets/server/index.js +0 -1
- package/googleCloud/storage/server/GoogleCloudStorageNamespace.d.ts +0 -22
- package/googleCloud/storage/server/GoogleCloudStorageNamespace.js +0 -66
- package/googleCloud/storage/server/googleCloudStorage.d.ts +0 -3
- package/googleCloud/storage/server/googleCloudStorage.js +0 -37
- package/googleCloud/storage/server/index.d.ts +0 -2
- package/googleCloud/storage/server/index.js +0 -2
- package/googlePageSpeed/server/GooglePageSpeedNamespace.d.ts +0 -11
- package/googlePageSpeed/server/GooglePageSpeedNamespace.js +0 -27
- package/googlePageSpeed/server/googlePageSpeed.d.ts +0 -19
- package/googlePageSpeed/server/googlePageSpeed.js +0 -38
- package/googlePageSpeed/server/index.d.ts +0 -2
- package/googlePageSpeed/server/index.js +0 -2
- package/googleSearchIncidents/server/googleSearchIncidents.d.ts +0 -69
- package/googleSearchIncidents/server/googleSearchIncidents.js +0 -42
- package/googleSearchIncidents/server/index.d.ts +0 -1
- package/googleSearchIncidents/server/index.js +0 -1
- package/greenDomain/server/greenDomain.d.ts +0 -21
- package/greenDomain/server/greenDomain.js +0 -37
- package/greenDomain/server/index.d.ts +0 -1
- package/greenDomain/server/index.js +0 -1
- package/inngest/index.d.ts +0 -1
- package/inngest/index.js +0 -1
- package/inngest/inngest.d.ts +0 -7
- package/inngest/inngest.js +0 -6
- package/json/getJsonNewline.d.ts +0 -1
- package/json/getJsonNewline.js +0 -9
- package/json/index.d.ts +0 -2
- package/json/index.js +0 -2
- package/json/isJson.d.ts +0 -1
- package/json/isJson.js +0 -22
- package/littleWarden/server/LittleWardenNamespace.d.ts +0 -11
- package/littleWarden/server/LittleWardenNamespace.js +0 -30
- package/littleWarden/server/getUrlStatus.d.ts +0 -4
- package/littleWarden/server/getUrlStatus.js +0 -12
- package/littleWarden/server/index.d.ts +0 -2
- package/littleWarden/server/index.js +0 -2
- package/littleWarden/server/littleWarden.d.ts +0 -30
- package/littleWarden/server/littleWarden.js +0 -65
- package/lumar/api/server/buildRequest.d.ts +0 -13
- package/lumar/api/server/buildRequest.js +0 -76
- package/lumar/api/server/getData.d.ts +0 -1
- package/lumar/api/server/getData.js +0 -9
- package/lumar/api/server/index.d.ts +0 -4
- package/lumar/api/server/index.js +0 -4
- package/lumar/api/server/initClient.d.ts +0 -6
- package/lumar/api/server/initClient.js +0 -22
- package/lumar/api/server/lumarApi.d.ts +0 -36
- package/lumar/api/server/lumarApi.js +0 -24
- package/lumar/graphql/server/columns.d.ts +0 -29
- package/lumar/graphql/server/columns.js +0 -28
- package/lumar/graphql/server/getData.d.ts +0 -1
- package/lumar/graphql/server/getData.js +0 -15
- package/lumar/graphql/server/index.d.ts +0 -11
- package/lumar/graphql/server/index.js +0 -11
- package/lumar/graphql/server/initClient.d.ts +0 -5
- package/lumar/graphql/server/initClient.js +0 -21
- package/lumar/graphql/server/lumarGraphql.d.ts +0 -27
- package/lumar/graphql/server/lumarGraphql.js +0 -27
- package/lumar/graphql/server/queries/crawl.d.ts +0 -5
- package/lumar/graphql/server/queries/crawl.js +0 -1
- package/lumar/graphql/server/queries/getCrawls.d.ts +0 -18
- package/lumar/graphql/server/queries/getCrawls.js +0 -31
- package/lumar/graphql/server/queries/getReportDifferences.d.ts +0 -24
- package/lumar/graphql/server/queries/getReportDifferences.js +0 -35
- package/lumar/graphql/server/queries/getRows.d.ts +0 -38
- package/lumar/graphql/server/queries/getRows.js +0 -55
- package/lumar/graphql/server/queries/getTotals.d.ts +0 -25
- package/lumar/graphql/server/queries/getTotals.js +0 -38
- package/lumar/graphql/server/queries/row.d.ts +0 -157
- package/lumar/graphql/server/queries/row.js +0 -1
- package/lumar/graphql/server/reportTemplates.d.ts +0 -68
- package/lumar/graphql/server/reportTemplates.js +0 -67
- package/myTarget/server/index.d.ts +0 -1
- package/myTarget/server/index.js +0 -1
- package/myTarget/server/myTarget.d.ts +0 -5
- package/myTarget/server/myTarget.js +0 -13
- package/nextAuth/index.d.ts +0 -2
- package/nextAuth/index.js +0 -2
- package/nextAuth/isSessionReady.d.ts +0 -1
- package/nextAuth/isSessionReady.js +0 -3
- package/nextAuth/nextAuth.d.ts +0 -7
- package/nextAuth/nextAuth.js +0 -6
- package/nextJs/client/LazyLoad.d.ts +0 -8
- package/nextJs/client/LazyLoad.js +0 -7
- package/nextJs/client/index.d.ts +0 -1
- package/nextJs/client/index.js +0 -1
- package/nextJs/index.d.ts +0 -1
- package/nextJs/index.js +0 -1
- package/nextJs/nextJs.d.ts +0 -12
- package/nextJs/nextJs.js +0 -8
- package/number/format.d.ts +0 -12
- package/number/format.js +0 -16
- package/number/formatCurrency.d.ts +0 -5
- package/number/formatCurrency.js +0 -17
- package/number/getDecimal.d.ts +0 -4
- package/number/getDecimal.js +0 -8
- package/number/getNumber.d.ts +0 -4
- package/number/getNumber.js +0 -44
- package/number/getPercent.d.ts +0 -1
- package/number/getPercent.js +0 -11
- package/number/getPercentIncrease.d.ts +0 -4
- package/number/getPercentIncrease.js +0 -12
- package/number/getSafeDivide.d.ts +0 -11
- package/number/getSafeDivide.js +0 -16
- package/number/index.d.ts +0 -7
- package/number/index.js +0 -7
- package/object/index.d.ts +0 -1
- package/object/index.js +0 -1
- package/object/replaceKeys.js +0 -21
- package/onePassword/server/OnePasswordNamespace.d.ts +0 -12
- package/onePassword/server/OnePasswordNamespace.js +0 -39
- package/onePassword/server/index.d.ts +0 -2
- package/onePassword/server/index.js +0 -2
- package/onePassword/server/onePassword.d.ts +0 -8
- package/onePassword/server/onePassword.js +0 -21
- package/openAi/server/OpenAiNamespace.d.ts +0 -11
- package/openAi/server/OpenAiNamespace.js +0 -35
- package/openAi/server/index.d.ts +0 -2
- package/openAi/server/index.js +0 -2
- package/openAi/server/openAi.d.ts +0 -6
- package/openAi/server/openAi.js +0 -26
- package/prisma/getDecimal.d.ts +0 -4
- package/prisma/getDecimal.js +0 -16
- package/prisma/index.d.ts +0 -1
- package/prisma/index.js +0 -1
- package/prisma/server/PrismaNamespace.d.ts +0 -7
- package/prisma/server/PrismaNamespace.js +0 -62
- package/prisma/server/index.d.ts +0 -2
- package/prisma/server/index.js +0 -2
- package/prisma/server/prisma.d.ts +0 -20
- package/prisma/server/prisma.js +0 -26
- package/snapchat/server/SnapchatNamespace.d.ts +0 -15
- package/snapchat/server/SnapchatNamespace.js +0 -22
- package/snapchat/server/index.d.ts +0 -2
- package/snapchat/server/index.js +0 -2
- package/snapchat/server/snapchat.d.ts +0 -7
- package/snapchat/server/snapchat.js +0 -26
- package/sorting/byNumberAscending.d.ts +0 -4
- package/sorting/byNumberAscending.js +0 -15
- package/sorting/byNumberDescending.d.ts +0 -4
- package/sorting/byNumberDescending.js +0 -18
- package/sorting/byStringAscending.d.ts +0 -4
- package/sorting/byStringAscending.js +0 -12
- package/sorting/byStringDescending.d.ts +0 -4
- package/sorting/byStringDescending.js +0 -12
- package/sorting/index.d.ts +0 -1
- package/sorting/index.js +0 -1
- package/sorting/sorting.d.ts +0 -4
- package/sorting/sorting.js +0 -4
- package/stream/server/index.d.ts +0 -1
- package/stream/server/index.js +0 -1
- package/stream/server/sort.d.ts +0 -13
- package/stream/server/sort.js +0 -47
- package/string/getCapitalised.d.ts +0 -5
- package/string/getCapitalised.js +0 -21
- package/string/getClean.d.ts +0 -18
- package/string/getClean.js +0 -47
- package/string/getFolder.d.ts +0 -4
- package/string/getFolder.js +0 -8
- package/string/getProperCase.d.ts +0 -11
- package/string/getProperCase.js +0 -43
- package/string/getString.d.ts +0 -4
- package/string/getString.js +0 -27
- package/string/getStringFromStream.d.ts +0 -5
- package/string/getStringFromStream.js +0 -13
- package/string/getUnescaped.d.ts +0 -6
- package/string/getUnescaped.js +0 -19
- package/string/getWithoutAccents.d.ts +0 -5
- package/string/getWithoutAccents.js +0 -9
- package/string/getWithoutHtmlTags.d.ts +0 -5
- package/string/getWithoutHtmlTags.js +0 -8
- package/string/getWithoutPunctuation.d.ts +0 -5
- package/string/getWithoutPunctuation.js +0 -9
- package/string/getWithoutUnderscores.d.ts +0 -4
- package/string/getWithoutUnderscores.js +0 -7
- package/string/getWithoutWhitespaces.d.ts +0 -5
- package/string/getWithoutWhitespaces.js +0 -9
- package/string/index.d.ts +0 -13
- package/string/index.js +0 -13
- package/string/reservedWords.d.ts +0 -5
- package/string/reservedWords.js +0 -22
- package/swr/client/index.d.ts +0 -1
- package/swr/client/index.js +0 -1
- package/swr/client/swr.d.ts +0 -42
- package/swr/client/swr.js +0 -50
- package/upTimeRobot/server/UpTimeRobotNamespace.d.ts +0 -31
- package/upTimeRobot/server/UpTimeRobotNamespace.js +0 -40
- package/upTimeRobot/server/index.d.ts +0 -2
- package/upTimeRobot/server/index.js +0 -2
- package/upTimeRobot/server/upTimeRobot.d.ts +0 -38
- package/upTimeRobot/server/upTimeRobot.js +0 -59
- package/url/index.d.ts +0 -1
- package/url/index.js +0 -1
- package/url/server/index.d.ts +0 -1
- package/url/server/index.js +0 -1
- package/url/server/writeUrlContents.d.ts +0 -6
- package/url/server/writeUrlContents.js +0 -35
- package/url/url.d.ts +0 -26
- package/url/url.js +0 -59
- package/util/defaultTo.d.ts +0 -4
- package/util/defaultTo.js +0 -37
- package/util/getClean.d.ts +0 -11
- package/util/getClean.js +0 -19
- package/util/getError.d.ts +0 -1
- package/util/getError.js +0 -10
- package/util/getWithoutHash.d.ts +0 -4
- package/util/getWithoutHash.js +0 -14
- package/util/getWithoutParameter.d.ts +0 -4
- package/util/getWithoutParameter.js +0 -14
- package/util/index.d.ts +0 -7
- package/util/index.js +0 -7
- package/util/isUndefined.d.ts +0 -4
- package/util/isUndefined.js +0 -9
- package/util/promiseChunks.d.ts +0 -5
- package/util/promiseChunks.js +0 -21
- package/util/server/getBrotliCompressed.d.ts +0 -5
- package/util/server/getBrotliCompressed.js +0 -16
- package/util/server/getBrotliDecompressed.d.ts +0 -5
- package/util/server/getBrotliDecompressed.js +0 -17
- package/util/server/getGzipCompressed.d.ts +0 -5
- package/util/server/getGzipCompressed.js +0 -16
- package/util/server/getGzipDecompressed.d.ts +0 -5
- package/util/server/getGzipDecompressed.js +0 -17
- package/util/server/index.d.ts +0 -4
- package/util/server/index.js +0 -4
- package/util/sleep.d.ts +0 -1
- package/util/sleep.js +0 -3
- package/webWorker/index.d.ts +0 -1
- package/webWorker/index.js +0 -1
- package/webWorker/webWorker.d.ts +0 -8
- package/webWorker/webWorker.js +0 -7
- package/xml/server/getXml.d.ts +0 -1
- package/xml/server/getXml.js +0 -14
- package/xml/server/index.d.ts +0 -1
- package/xml/server/index.js +0 -1
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
export declare const reportTemplate: {
|
|
2
|
-
readonly "200_PAGES": "200_pages";
|
|
3
|
-
readonly "301_REDIRECTS": "301_redirects";
|
|
4
|
-
readonly "4XX_ERRORS": "4xx_errors";
|
|
5
|
-
readonly "5XX_ERRORS": "5xx_errors";
|
|
6
|
-
readonly ALL_PAGES: "all_pages";
|
|
7
|
-
readonly BROKEN_EXTERNAL_LINKS: "broken_links_external";
|
|
8
|
-
readonly BROKEN_INTERNAL_LINKS: "all_broken_links";
|
|
9
|
-
readonly BROKEN_SITEMAP_PAGES: "broken_sitemap_links";
|
|
10
|
-
readonly CANONICAL_CONFLICTING: "conflicting_canonical_tags";
|
|
11
|
-
readonly CANONICAL_NON_200: "canonical_to_non_200";
|
|
12
|
-
readonly CANONICAL_NON_INDEXABLE: "non_indexable_canonical_links_in";
|
|
13
|
-
readonly CANONICAL_ORPHANED: "unlinked_canonical_pages";
|
|
14
|
-
readonly CUSTOM_EXTRACTION_1: "custom_extraction_1";
|
|
15
|
-
readonly CUSTOM_EXTRACTION_2: "custom_extraction_2";
|
|
16
|
-
readonly DUPLICATE_CONTENT: "duplicate_body_content";
|
|
17
|
-
readonly DUPLICATE_DESCRIPTIONS: "pages_with_duplicate_descriptions";
|
|
18
|
-
readonly DUPLICATE_TITLES: "pages_with_duplicate_titles";
|
|
19
|
-
readonly EMPTY_PAGES: "empty_pages";
|
|
20
|
-
readonly INDEXABLE_PAGES: "indexable_pages";
|
|
21
|
-
readonly LINKED_DOMAINS: "linked_domains";
|
|
22
|
-
readonly MAX_DESCRIPTIONS: "max_description_length";
|
|
23
|
-
readonly MAX_MOBILE_DESCRIPTIONS: "max_mobile_description_length";
|
|
24
|
-
readonly MAX_TITLES: "max_title_length";
|
|
25
|
-
readonly MISSING_DESCRIPTIONS: "missing_descriptions";
|
|
26
|
-
readonly MISSING_TITLES: "missing_titles";
|
|
27
|
-
readonly NON_301_REDIRECTS: "non_301_redirects";
|
|
28
|
-
readonly NON_INDEXABLE_PAGES: "non_indexable_pages";
|
|
29
|
-
readonly NON_INDEXABLE_SITEMAP_PAGES: "sitemaps_non_indexable_links";
|
|
30
|
-
readonly ORPHANED_CANONICAL: "unlinked_canonical_pages";
|
|
31
|
-
readonly ORPHANED_ANALYTICS_PAGES: "orphaned_organic_landing_pages";
|
|
32
|
-
readonly ORPHANED_SEARCH_CONSOLE_PAGES: "orphaned_google_search_console_pages";
|
|
33
|
-
readonly ORPHANED_SITEMAP_PAGES: "orphaned_sitemaps_pages";
|
|
34
|
-
readonly PAGES_WITH_HIGH_EXTERNAL_LINKS: "max_external_links";
|
|
35
|
-
readonly PERFORMANCE_MAX_FETCH_TIME: "max_load_time";
|
|
36
|
-
readonly PERFORMANCE_POOR_CLS: "poor_cls";
|
|
37
|
-
readonly PERFORMANCE_SLOW_DCL: "slow_dcl";
|
|
38
|
-
readonly PERFORMANCE_SLOW_FCP: "slow_fcp";
|
|
39
|
-
readonly PERFORMANCE_SLOW_LCP: "slow_lcp";
|
|
40
|
-
readonly PERFORMANCE_SLOW_TTFB: "slow_server_response";
|
|
41
|
-
readonly PERFORMANCE_SLOW_TTI: "slow_tti";
|
|
42
|
-
readonly PRIMARY_PAGES: "unique_pages";
|
|
43
|
-
readonly REDIRECTS_BROKEN: "all_broken_redirects";
|
|
44
|
-
readonly REDIRECTS_CHAIN: "redirect_chains";
|
|
45
|
-
readonly REDIRECTS_LOOP: "redirection_loop";
|
|
46
|
-
readonly SCHEMA_BREADCRUMB: "pages_with_breadcrumb_schema";
|
|
47
|
-
readonly SCHEMA_EVENT: "pages_with_event_schema";
|
|
48
|
-
readonly SCHEMA_FAQ: "pages_with_faqpage_schema";
|
|
49
|
-
readonly SCHEMA_HOW_TO: "pages_with_howto_schema";
|
|
50
|
-
readonly SCHEMA_NEWS_ARTICLE: "pages_with_news_article_schema";
|
|
51
|
-
readonly SCHEMA_PRODUCT: "pages_with_product_schema";
|
|
52
|
-
readonly SCHEMA_QA: "pages_with_qapage_schema";
|
|
53
|
-
readonly SCHEMA_RECIPE: "pages_with_recipe_schema";
|
|
54
|
-
readonly SCHEMA_REVIEW: "pages_with_review_schema";
|
|
55
|
-
readonly SCHEMA_VIDEO: "pages_with_videoobject_schema";
|
|
56
|
-
readonly SHORT_DESCRIPTIONS: "short_descriptions";
|
|
57
|
-
readonly SHORT_TITLES: "short_titles";
|
|
58
|
-
readonly SITEMAP_PAGES: "all_sitemaps_links";
|
|
59
|
-
readonly SITEMAPS_NON_INDEXABLE_PAGES: "sitemaps_non_indexable_links";
|
|
60
|
-
readonly SITEMAPS_ORPHANED_PAGES: "orphaned_sitemaps_pages";
|
|
61
|
-
readonly SITEMAPS_MISSING_PAGES: "not_in_sitemaps_primary_indexable";
|
|
62
|
-
readonly THIN_PAGES: "thin_pages";
|
|
63
|
-
readonly TRUE_UNIQUE_PAGES: "true_uniques";
|
|
64
|
-
readonly UNIQUE_EXTERNAL_LINKS: "unique_external_links";
|
|
65
|
-
readonly UNIQUE_INTERNAL_LINKS: "unique_internal_links";
|
|
66
|
-
readonly XML_SITEMAPS: "xml_sitemaps";
|
|
67
|
-
};
|
|
68
|
-
export type ReportTemplate = typeof reportTemplate[keyof typeof reportTemplate];
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
export const reportTemplate = {
|
|
2
|
-
"200_PAGES": "200_pages",
|
|
3
|
-
"301_REDIRECTS": "301_redirects",
|
|
4
|
-
"4XX_ERRORS": "4xx_errors",
|
|
5
|
-
"5XX_ERRORS": "5xx_errors",
|
|
6
|
-
ALL_PAGES: 'all_pages',
|
|
7
|
-
BROKEN_EXTERNAL_LINKS: 'broken_links_external',
|
|
8
|
-
BROKEN_INTERNAL_LINKS: 'all_broken_links',
|
|
9
|
-
BROKEN_SITEMAP_PAGES: 'broken_sitemap_links',
|
|
10
|
-
CANONICAL_CONFLICTING: 'conflicting_canonical_tags',
|
|
11
|
-
CANONICAL_NON_200: 'canonical_to_non_200',
|
|
12
|
-
CANONICAL_NON_INDEXABLE: 'non_indexable_canonical_links_in',
|
|
13
|
-
CANONICAL_ORPHANED: 'unlinked_canonical_pages',
|
|
14
|
-
CUSTOM_EXTRACTION_1: 'custom_extraction_1',
|
|
15
|
-
CUSTOM_EXTRACTION_2: 'custom_extraction_2',
|
|
16
|
-
DUPLICATE_CONTENT: 'duplicate_body_content',
|
|
17
|
-
DUPLICATE_DESCRIPTIONS: 'pages_with_duplicate_descriptions',
|
|
18
|
-
DUPLICATE_TITLES: 'pages_with_duplicate_titles',
|
|
19
|
-
EMPTY_PAGES: 'empty_pages',
|
|
20
|
-
INDEXABLE_PAGES: 'indexable_pages',
|
|
21
|
-
LINKED_DOMAINS: 'linked_domains',
|
|
22
|
-
MAX_DESCRIPTIONS: 'max_description_length',
|
|
23
|
-
MAX_MOBILE_DESCRIPTIONS: 'max_mobile_description_length',
|
|
24
|
-
MAX_TITLES: 'max_title_length',
|
|
25
|
-
MISSING_DESCRIPTIONS: 'missing_descriptions',
|
|
26
|
-
MISSING_TITLES: 'missing_titles',
|
|
27
|
-
NON_301_REDIRECTS: 'non_301_redirects',
|
|
28
|
-
NON_INDEXABLE_PAGES: 'non_indexable_pages',
|
|
29
|
-
NON_INDEXABLE_SITEMAP_PAGES: 'sitemaps_non_indexable_links',
|
|
30
|
-
ORPHANED_CANONICAL: 'unlinked_canonical_pages',
|
|
31
|
-
ORPHANED_ANALYTICS_PAGES: 'orphaned_organic_landing_pages',
|
|
32
|
-
ORPHANED_SEARCH_CONSOLE_PAGES: 'orphaned_google_search_console_pages',
|
|
33
|
-
ORPHANED_SITEMAP_PAGES: 'orphaned_sitemaps_pages',
|
|
34
|
-
PAGES_WITH_HIGH_EXTERNAL_LINKS: 'max_external_links',
|
|
35
|
-
PERFORMANCE_MAX_FETCH_TIME: 'max_load_time',
|
|
36
|
-
PERFORMANCE_POOR_CLS: 'poor_cls',
|
|
37
|
-
PERFORMANCE_SLOW_DCL: 'slow_dcl',
|
|
38
|
-
PERFORMANCE_SLOW_FCP: 'slow_fcp',
|
|
39
|
-
PERFORMANCE_SLOW_LCP: 'slow_lcp',
|
|
40
|
-
PERFORMANCE_SLOW_TTFB: 'slow_server_response',
|
|
41
|
-
PERFORMANCE_SLOW_TTI: 'slow_tti',
|
|
42
|
-
PRIMARY_PAGES: 'unique_pages',
|
|
43
|
-
REDIRECTS_BROKEN: 'all_broken_redirects',
|
|
44
|
-
REDIRECTS_CHAIN: 'redirect_chains',
|
|
45
|
-
REDIRECTS_LOOP: 'redirection_loop',
|
|
46
|
-
SCHEMA_BREADCRUMB: 'pages_with_breadcrumb_schema',
|
|
47
|
-
SCHEMA_EVENT: 'pages_with_event_schema',
|
|
48
|
-
SCHEMA_FAQ: 'pages_with_faqpage_schema',
|
|
49
|
-
SCHEMA_HOW_TO: 'pages_with_howto_schema',
|
|
50
|
-
SCHEMA_NEWS_ARTICLE: 'pages_with_news_article_schema',
|
|
51
|
-
SCHEMA_PRODUCT: 'pages_with_product_schema',
|
|
52
|
-
SCHEMA_QA: 'pages_with_qapage_schema',
|
|
53
|
-
SCHEMA_RECIPE: 'pages_with_recipe_schema',
|
|
54
|
-
SCHEMA_REVIEW: 'pages_with_review_schema',
|
|
55
|
-
SCHEMA_VIDEO: 'pages_with_videoobject_schema',
|
|
56
|
-
SHORT_DESCRIPTIONS: 'short_descriptions',
|
|
57
|
-
SHORT_TITLES: 'short_titles',
|
|
58
|
-
SITEMAP_PAGES: 'all_sitemaps_links',
|
|
59
|
-
SITEMAPS_NON_INDEXABLE_PAGES: 'sitemaps_non_indexable_links',
|
|
60
|
-
SITEMAPS_ORPHANED_PAGES: 'orphaned_sitemaps_pages',
|
|
61
|
-
SITEMAPS_MISSING_PAGES: 'not_in_sitemaps_primary_indexable',
|
|
62
|
-
THIN_PAGES: 'thin_pages',
|
|
63
|
-
TRUE_UNIQUE_PAGES: 'true_uniques',
|
|
64
|
-
UNIQUE_EXTERNAL_LINKS: 'unique_external_links',
|
|
65
|
-
UNIQUE_INTERNAL_LINKS: 'unique_internal_links',
|
|
66
|
-
XML_SITEMAPS: 'xml_sitemaps',
|
|
67
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./myTarget";
|
package/myTarget/server/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./myTarget";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { post } from "../../axios";
|
|
2
|
-
/**
|
|
3
|
-
* Make the request to MyTarget API using the access token.
|
|
4
|
-
*/
|
|
5
|
-
export const request = async (data, url, accessToken) => {
|
|
6
|
-
const response = await post(url, data, {
|
|
7
|
-
headers: {
|
|
8
|
-
Authorization: `Bearer ${accessToken}`,
|
|
9
|
-
"Content-Type": "application/json",
|
|
10
|
-
},
|
|
11
|
-
});
|
|
12
|
-
return response;
|
|
13
|
-
};
|
package/nextAuth/index.d.ts
DELETED
package/nextAuth/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isSessionReady: (session: any) => boolean;
|
package/nextAuth/nextAuth.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { isSessionReady } from "./isSessionReady";
|
|
2
|
-
export declare const NextAuthState: {
|
|
3
|
-
readonly AUTHENTICATED: "authenticated";
|
|
4
|
-
readonly PENDING: "loading";
|
|
5
|
-
readonly UNAUTHENTICATED: "unauthenticated";
|
|
6
|
-
};
|
|
7
|
-
export type NextAuthState = typeof NextAuthState[keyof typeof NextAuthState];
|
package/nextAuth/nextAuth.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type IntersectionOptions } from "react-intersection-observer";
|
|
2
|
-
import type { ReactNode } from "react";
|
|
3
|
-
import React from "react";
|
|
4
|
-
type LazyLoadProps = IntersectionOptions & {
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
};
|
|
7
|
-
export declare const LazyLoad: (props: LazyLoadProps) => React.JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { useInView } from "react-intersection-observer";
|
|
2
|
-
import React from "react";
|
|
3
|
-
export const LazyLoad = (props) => {
|
|
4
|
-
const { children, ...propsRest } = props;
|
|
5
|
-
const { ref, inView } = useInView(propsRest);
|
|
6
|
-
return (React.createElement("div", { ref: ref }, inView && children));
|
|
7
|
-
};
|
package/nextJs/client/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./LazyLoad";
|
package/nextJs/client/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./LazyLoad";
|
package/nextJs/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./nextJs";
|
package/nextJs/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./nextJs";
|
package/nextJs/nextJs.d.ts
DELETED
package/nextJs/nextJs.js
DELETED
package/number/format.d.ts
DELETED
package/number/format.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { getNumber } from "./getNumber";
|
|
2
|
-
/**
|
|
3
|
-
* Take a given number and format it.
|
|
4
|
-
*/
|
|
5
|
-
export const format = (props) => {
|
|
6
|
-
const minDp = props?.minDp ?? 0;
|
|
7
|
-
const maxDp = props?.maxDp ?? 2;
|
|
8
|
-
const compact = props?.compact || false;
|
|
9
|
-
const inputValue = getNumber(props.input);
|
|
10
|
-
return Intl.NumberFormat(props?.locale || "en-GB", {
|
|
11
|
-
minimumFractionDigits: minDp,
|
|
12
|
-
maximumFractionDigits: maxDp,
|
|
13
|
-
notation: compact ? "compact" : "standard",
|
|
14
|
-
})
|
|
15
|
-
.format(inputValue);
|
|
16
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Use the International number formatting to return the currency value.
|
|
3
|
-
* https://www.freecodecamp.org/news/how-to-format-number-as-currency-in-javascript-one-line-of-code/
|
|
4
|
-
*/
|
|
5
|
-
export declare const formatCurrency: (input: any, locale?: string, currency?: string) => string;
|
package/number/formatCurrency.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Use the International number formatting to return the currency value.
|
|
3
|
-
* https://www.freecodecamp.org/news/how-to-format-number-as-currency-in-javascript-one-line-of-code/
|
|
4
|
-
*/
|
|
5
|
-
export const formatCurrency = (input, locale = "en-GB", currency = "GBP") => {
|
|
6
|
-
const value = Number(input);
|
|
7
|
-
const currencyClean = currency.toUpperCase()
|
|
8
|
-
.trim();
|
|
9
|
-
let formatted = new Intl.NumberFormat(locale, {
|
|
10
|
-
style: "currency",
|
|
11
|
-
currency: currencyClean,
|
|
12
|
-
}).format(value);
|
|
13
|
-
if ("USD" === currencyClean) {
|
|
14
|
-
formatted = formatted.replace("US$", "$");
|
|
15
|
-
}
|
|
16
|
-
return formatted;
|
|
17
|
-
};
|
package/number/getDecimal.d.ts
DELETED
package/number/getDecimal.js
DELETED
package/number/getNumber.d.ts
DELETED
package/number/getNumber.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { isJson } from "../json";
|
|
2
|
-
/**
|
|
3
|
-
* Take an input and return a number.
|
|
4
|
-
*/
|
|
5
|
-
export const getNumber = (input, defaultValue = 0) => {
|
|
6
|
-
// Handle null/undefined inputs
|
|
7
|
-
if (input == null) {
|
|
8
|
-
return defaultValue;
|
|
9
|
-
}
|
|
10
|
-
let response = input;
|
|
11
|
-
// JSON - Decode the value if it's a JSON string
|
|
12
|
-
if (typeof input === "string" && isJson(input)) {
|
|
13
|
-
try {
|
|
14
|
-
response = JSON.parse(input);
|
|
15
|
-
}
|
|
16
|
-
catch {
|
|
17
|
-
// If parsing fails, continue with original input
|
|
18
|
-
response = input;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
// Already a number
|
|
22
|
-
if (typeof response === "number") {
|
|
23
|
-
return isNaN(response) ? defaultValue : response;
|
|
24
|
-
}
|
|
25
|
-
// String input
|
|
26
|
-
if (typeof response === "string") {
|
|
27
|
-
// First, try direct conversion
|
|
28
|
-
const directConversion = Number(response.trim());
|
|
29
|
-
if (!isNaN(directConversion)) {
|
|
30
|
-
return directConversion;
|
|
31
|
-
}
|
|
32
|
-
// If that fails, try extracting numbers from the string
|
|
33
|
-
const match = response.match(/^\D*([0-9]*\.?[0-9]+)\D*$/);
|
|
34
|
-
if (match && match[1]) {
|
|
35
|
-
const extracted = Number(match[1]);
|
|
36
|
-
if (!isNaN(extracted)) {
|
|
37
|
-
return extracted;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
// For other types, attempt direct conversion
|
|
42
|
-
const converted = Number(response);
|
|
43
|
-
return isNaN(converted) ? defaultValue : converted;
|
|
44
|
-
};
|
package/number/getPercent.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getPercent: (numerator: any, divisor: any, dp?: number) => number;
|
package/number/getPercent.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { getSafeDivide } from "./getSafeDivide";
|
|
2
|
-
export const getPercent = (numerator, divisor, dp) => {
|
|
3
|
-
const finalNumerator = Number(numerator);
|
|
4
|
-
const finalDivisor = Number(divisor);
|
|
5
|
-
const finalDp = Number(dp || 1);
|
|
6
|
-
return Number((getSafeDivide({
|
|
7
|
-
defaultValue: 0,
|
|
8
|
-
numerator: finalNumerator,
|
|
9
|
-
divisor: finalDivisor,
|
|
10
|
-
}) * 100).toFixed(finalDp));
|
|
11
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { getNumber } from "./getNumber";
|
|
2
|
-
/**
|
|
3
|
-
* Formula to work out the percentage increase/decrease.
|
|
4
|
-
*/
|
|
5
|
-
export const getPercentIncrease = (current, comparison, defaultValue) => {
|
|
6
|
-
const currentValue = getNumber(current);
|
|
7
|
-
const comparisonValue = getNumber(comparison);
|
|
8
|
-
if (0 === comparisonValue) {
|
|
9
|
-
return defaultValue;
|
|
10
|
-
}
|
|
11
|
-
return (currentValue - comparisonValue) / comparisonValue * 100;
|
|
12
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type GetSafeDivideProps = {
|
|
2
|
-
defaultValue?: number;
|
|
3
|
-
dp?: number;
|
|
4
|
-
divisor: any;
|
|
5
|
-
numerator: any;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Shorthand function to divide number, but fallback if the divisor is 0.
|
|
9
|
-
*/
|
|
10
|
-
export declare const getSafeDivide: (props: GetSafeDivideProps) => number;
|
|
11
|
-
export {};
|
package/number/getSafeDivide.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { getNumber } from "./getNumber";
|
|
2
|
-
import { getDecimal } from "./getDecimal";
|
|
3
|
-
/**
|
|
4
|
-
* Shorthand function to divide number, but fallback if the divisor is 0.
|
|
5
|
-
*/
|
|
6
|
-
export const getSafeDivide = (props) => {
|
|
7
|
-
const numeratorInt = getNumber(props.numerator);
|
|
8
|
-
if (numeratorInt === 0) {
|
|
9
|
-
return 0;
|
|
10
|
-
}
|
|
11
|
-
const divisorInt = getNumber(props.divisor);
|
|
12
|
-
if (divisorInt === 0 || !Number.isFinite(divisorInt)) {
|
|
13
|
-
return props?.defaultValue ?? 0;
|
|
14
|
-
}
|
|
15
|
-
return getDecimal(numeratorInt / divisorInt, props?.dp);
|
|
16
|
-
};
|
package/number/index.d.ts
DELETED
package/number/index.js
DELETED
package/object/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./replaceKeys";
|
package/object/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./replaceKeys";
|
package/object/replaceKeys.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Iteratively replace all the keys in an object.
|
|
3
|
-
* https://www.techighness.com/post/replace-all-keys-of-deeply-nested-objects-or-array-of-objects/
|
|
4
|
-
*/
|
|
5
|
-
export const replaceKeys = (instance, getNewKey) => {
|
|
6
|
-
let response = instance;
|
|
7
|
-
if (Array.isArray(instance)) {
|
|
8
|
-
response = [];
|
|
9
|
-
for (let i = 0; i < instance.length; i++) {
|
|
10
|
-
response[i] = replaceKeys(instance[i], getNewKey);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
else if ("object" === typeof instance) {
|
|
14
|
-
response = {};
|
|
15
|
-
for (const key in instance) {
|
|
16
|
-
const newKey = getNewKey(key);
|
|
17
|
-
response[newKey] = replaceKeys(instance[key], getNewKey);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return response;
|
|
21
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { OnePasswordConfig } from "./";
|
|
2
|
-
import { BaseNamespace } from "../../_class";
|
|
3
|
-
import type { Client } from "@1password/sdk";
|
|
4
|
-
export declare class OnePasswordNamespace extends BaseNamespace {
|
|
5
|
-
client: Client;
|
|
6
|
-
config: OnePasswordConfig;
|
|
7
|
-
ensureInit: () => Promise<void>;
|
|
8
|
-
listVaults: () => Promise<import("@1password/sdk").VaultOverview[]>;
|
|
9
|
-
getItem: (vaultId: string, itemId: string) => Promise<import("@1password/sdk").Item>;
|
|
10
|
-
getJsonNote: (vaultId: string, itemId: string) => Promise<any>;
|
|
11
|
-
listItems: (vaultId: string) => Promise<import("@1password/sdk").ItemOverview[]>;
|
|
12
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { BaseNamespace } from "../../_class";
|
|
2
|
-
export class OnePasswordNamespace extends BaseNamespace {
|
|
3
|
-
// Async setup to only initialise where required
|
|
4
|
-
ensureInit = async () => {
|
|
5
|
-
if (!this.client) {
|
|
6
|
-
try {
|
|
7
|
-
const { createClient } = await import("@1password/sdk");
|
|
8
|
-
this.client = await createClient({
|
|
9
|
-
auth: this.config.serviceAccountToken,
|
|
10
|
-
integrationName: this.config.integrationName || "8MS Helper TS",
|
|
11
|
-
integrationVersion: this.config.integrationVersion || "v1.0.0",
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
catch (e) {
|
|
15
|
-
throw new Error("1Password SDK not installed");
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
listVaults = async () => {
|
|
20
|
-
await this.ensureInit();
|
|
21
|
-
return this.client.vaults.list();
|
|
22
|
-
};
|
|
23
|
-
getItem = async (vaultId, itemId) => {
|
|
24
|
-
await this.ensureInit();
|
|
25
|
-
return this.client.items.get(vaultId, itemId);
|
|
26
|
-
};
|
|
27
|
-
getJsonNote = async (vaultId, itemId) => {
|
|
28
|
-
let response = null;
|
|
29
|
-
const item = await this.getItem(vaultId, itemId);
|
|
30
|
-
if (item && "undefined" !== typeof item.notes) {
|
|
31
|
-
response = JSON.parse(item.notes);
|
|
32
|
-
}
|
|
33
|
-
return response;
|
|
34
|
-
};
|
|
35
|
-
listItems = async (vaultId) => {
|
|
36
|
-
await this.ensureInit();
|
|
37
|
-
return this.client.items.list(vaultId);
|
|
38
|
-
};
|
|
39
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type { OnePasswordNamespace } from "./OnePasswordNamespace";
|
|
2
|
-
import { OnePasswordNamespace } from "./OnePasswordNamespace";
|
|
3
|
-
export type OnePasswordConfig = {
|
|
4
|
-
serviceAccountToken: string;
|
|
5
|
-
integrationName?: string;
|
|
6
|
-
integrationVersion?: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const onePasswordClient: (key?: string, config?: OnePasswordConfig) => Promise<OnePasswordNamespace>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { OnePasswordNamespace } from "./OnePasswordNamespace";
|
|
2
|
-
const onePasswordNamespaces = new Map();
|
|
3
|
-
// Main client that is used by system
|
|
4
|
-
export const onePasswordClient = async (key = "default", config) => {
|
|
5
|
-
if (onePasswordNamespaces.has(key)) {
|
|
6
|
-
return onePasswordNamespaces.get(key);
|
|
7
|
-
}
|
|
8
|
-
if (!config) {
|
|
9
|
-
if (key === "default") {
|
|
10
|
-
config = {
|
|
11
|
-
serviceAccountToken: process.env.ONEPASSWORD_SERVICE_TOKEN
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
throw new Error(`Config required for namespace '${key}'`);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
const namespace = new OnePasswordNamespace(key, config);
|
|
19
|
-
onePasswordNamespaces.set(key, namespace);
|
|
20
|
-
return namespace;
|
|
21
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OpenAiConfig } from "./";
|
|
2
|
-
import { BaseNamespace } from "../../_class";
|
|
3
|
-
export declare class OpenAiNamespace extends BaseNamespace {
|
|
4
|
-
client: boolean;
|
|
5
|
-
config: OpenAiConfig;
|
|
6
|
-
/**
|
|
7
|
-
* Renew the access token as it expires every 3 hours.
|
|
8
|
-
*/
|
|
9
|
-
ensureInit: () => Promise<void>;
|
|
10
|
-
completion: (prompt: string, temperature?: number, maxTokens?: number, model?: string) => Promise<any>;
|
|
11
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { BaseNamespace } from "../../_class";
|
|
2
|
-
import { post } from "../../axios";
|
|
3
|
-
export class OpenAiNamespace extends BaseNamespace {
|
|
4
|
-
/**
|
|
5
|
-
* Renew the access token as it expires every 3 hours.
|
|
6
|
-
*/
|
|
7
|
-
ensureInit = async () => {
|
|
8
|
-
if (!this.client) {
|
|
9
|
-
this.client = true;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
completion = async (prompt, temperature = 1, maxTokens = null, model = "gpt-3.5-turbo") => {
|
|
13
|
-
let response = null;
|
|
14
|
-
// Make the API request
|
|
15
|
-
const apiResponse = await post(`https://api.openai.com/v1/chat/completions`, {
|
|
16
|
-
max_tokens: maxTokens,
|
|
17
|
-
model,
|
|
18
|
-
messages: [
|
|
19
|
-
{
|
|
20
|
-
role: "user",
|
|
21
|
-
content: prompt,
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
temperature: 1,
|
|
25
|
-
}, {
|
|
26
|
-
headers: {
|
|
27
|
-
Authorization: `Bearer ${this.config.apiKey}`,
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
if (apiResponse.isSuccess()) {
|
|
31
|
-
response = apiResponse.getBody();
|
|
32
|
-
}
|
|
33
|
-
return response;
|
|
34
|
-
};
|
|
35
|
-
}
|
package/openAi/server/index.d.ts
DELETED
package/openAi/server/index.js
DELETED