@8ms/helpers 2.3.5 → 2.3.7
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/client/index.d.mts +10 -0
- package/dist/nextJs/client/index.mjs +12 -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 +71 -1066
- package/tsdown.config.ts +10 -0
- package/.github/generate-exports.js +0 -111
- 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
package/eskimi/server/index.d.ts
DELETED
package/eskimi/server/index.js
DELETED
package/file/getFileKey.d.ts
DELETED
package/file/getFileKey.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DateTime } from "luxon";
|
|
2
|
-
import { getYmdString } from "../date";
|
|
3
|
-
/**
|
|
4
|
-
* Create a file key from the inputs so it can handle objects/number/etc.
|
|
5
|
-
*/
|
|
6
|
-
export const getFileKey = (inputs) => {
|
|
7
|
-
let response = "";
|
|
8
|
-
for (let i = 0; i < inputs.length; i++) {
|
|
9
|
-
if (i > 0) {
|
|
10
|
-
response += "/";
|
|
11
|
-
}
|
|
12
|
-
if ("string" === typeof inputs[i]) {
|
|
13
|
-
response += inputs[i];
|
|
14
|
-
}
|
|
15
|
-
else if (inputs[i] instanceof Date || inputs[i] instanceof DateTime) {
|
|
16
|
-
response += getYmdString(inputs[i]);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
response += JSON.stringify(inputs[i]);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return response;
|
|
23
|
-
};
|
package/file/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./getFileKey";
|
package/file/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./getFileKey";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create a directory recursively.
|
|
3
|
-
* Requires fs-extra
|
|
4
|
-
*/
|
|
5
|
-
export const createDirectory = (filePath) => {
|
|
6
|
-
return new Promise(async (resolve, reject) => {
|
|
7
|
-
const fs = await import("fs-extra");
|
|
8
|
-
const path = await import("path");
|
|
9
|
-
const fileDir = path.parse(filePath).dir;
|
|
10
|
-
fs.ensureDirSync(fileDir);
|
|
11
|
-
resolve(true);
|
|
12
|
-
});
|
|
13
|
-
};
|
package/file/server/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./createDirectory";
|
package/file/server/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./createDirectory";
|
package/geo/countries.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type Country = {
|
|
2
|
-
name: string;
|
|
3
|
-
population: number;
|
|
4
|
-
iso2: string;
|
|
5
|
-
iso3: string;
|
|
6
|
-
googleAdsId: number | null;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Countries - excluded non-Google Ads supported ones
|
|
10
|
-
* https://docs.google.com/spreadsheets/d/1nrQ9h1n9p0Mab81_FKGqIw4fTOMOOjpcFrf0oSQvHIw/edit?gid=0#gid=0
|
|
11
|
-
*/
|
|
12
|
-
export declare const countries: Country[];
|
package/geo/countries.js
DELETED
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Countries - excluded non-Google Ads supported ones
|
|
3
|
-
* https://docs.google.com/spreadsheets/d/1nrQ9h1n9p0Mab81_FKGqIw4fTOMOOjpcFrf0oSQvHIw/edit?gid=0#gid=0
|
|
4
|
-
*/
|
|
5
|
-
export const countries = [
|
|
6
|
-
{ name: 'Afghanistan', population: 42647492, iso2: 'AF', iso3: 'AFG', googleAdsId: 2004 },
|
|
7
|
-
{ name: 'Albania', population: 2791765, iso2: 'AL', iso3: 'ALB', googleAdsId: 2008 },
|
|
8
|
-
{ name: 'Algeria', population: 46814308, iso2: 'DZ', iso3: 'DZA', googleAdsId: 2012 },
|
|
9
|
-
{ name: 'American Samoa', population: 46765, iso2: 'AS', iso3: 'ASM', googleAdsId: 2016 },
|
|
10
|
-
{ name: 'Andorra', population: 81938, iso2: 'AD', iso3: 'AND', googleAdsId: 2020 },
|
|
11
|
-
{ name: 'Angola', population: 37885849, iso2: 'AO', iso3: 'AGO', googleAdsId: 2024 },
|
|
12
|
-
// {name:'Anguilla',population:14598,iso2:'AI',iso3:'AIA',googleAdsId:null},
|
|
13
|
-
{ name: 'Antigua and Barbuda', population: 93772, iso2: 'AG', iso3: 'ATG', googleAdsId: 2028 },
|
|
14
|
-
{ name: 'Argentina', population: 45696159, iso2: 'AR', iso3: 'ARG', googleAdsId: 2032 },
|
|
15
|
-
{ name: 'Armenia', population: 2973840, iso2: 'AM', iso3: 'ARM', googleAdsId: 2051 },
|
|
16
|
-
// {name:'Aruba',population:108066,iso2:'AW',iso3:'ABW',googleAdsId:null},
|
|
17
|
-
{ name: 'Australia', population: 26713205, iso2: 'AU', iso3: 'AUS', googleAdsId: 2036 },
|
|
18
|
-
{ name: 'Austria', population: 9120813, iso2: 'AT', iso3: 'AUT', googleAdsId: 2040 },
|
|
19
|
-
{ name: 'Azerbaijan', population: 10336577, iso2: 'AZ', iso3: 'AZE', googleAdsId: 2031 },
|
|
20
|
-
{ name: 'Bahamas', population: 401283, iso2: 'BS', iso3: 'BHS', googleAdsId: 2044 },
|
|
21
|
-
{ name: 'Bahrain', population: 1607049, iso2: 'BH', iso3: 'BHR', googleAdsId: 2048 },
|
|
22
|
-
{ name: 'Bangladesh', population: 173562364, iso2: 'BD', iso3: 'BGD', googleAdsId: 2050 },
|
|
23
|
-
{ name: 'Barbados', population: 282467, iso2: 'BB', iso3: 'BRB', googleAdsId: 2052 },
|
|
24
|
-
{ name: 'Belarus', population: 9056696, iso2: 'BY', iso3: 'BLR', googleAdsId: 2112 },
|
|
25
|
-
{ name: 'Belgium', population: 11738763, iso2: 'BE', iso3: 'BEL', googleAdsId: 2056 },
|
|
26
|
-
{ name: 'Belize', population: 417072, iso2: 'BZ', iso3: 'BLZ', googleAdsId: 2084 },
|
|
27
|
-
{ name: 'Benin', population: 14462724, iso2: 'BJ', iso3: 'BEN', googleAdsId: 2204 },
|
|
28
|
-
// {name:'Bermuda',population:64636,iso2:'BM',iso3:'BMU',googleAdsId:null},
|
|
29
|
-
{ name: 'Bhutan', population: 791524, iso2: 'BT', iso3: 'BTN', googleAdsId: 2064 },
|
|
30
|
-
{ name: 'Bolivia', population: 12413315, iso2: 'BO', iso3: 'BOL', googleAdsId: 2068 },
|
|
31
|
-
{ name: 'Bosnia and Herzegovina', population: 3164253, iso2: 'BA', iso3: 'BIH', googleAdsId: 2070 },
|
|
32
|
-
{ name: 'Botswana', population: 2521139, iso2: 'BW', iso3: 'BWA', googleAdsId: 2072 },
|
|
33
|
-
{ name: 'Brazil', population: 211998573, iso2: 'BR', iso3: 'BRA', googleAdsId: 2076 },
|
|
34
|
-
{ name: 'Brunei', population: 462721, iso2: 'BN', iso3: 'BRN', googleAdsId: 2096 },
|
|
35
|
-
{ name: 'Bulgaria', population: 6757689, iso2: 'BG', iso3: 'BGR', googleAdsId: 2100 },
|
|
36
|
-
{ name: 'Burkina Faso', population: 23548781, iso2: 'BF', iso3: 'BFA', googleAdsId: 2854 },
|
|
37
|
-
{ name: 'Burundi', population: 14047786, iso2: 'BI', iso3: 'BDI', googleAdsId: 2108 },
|
|
38
|
-
{ name: 'Cambodia', population: 17638801, iso2: 'KH', iso3: 'KHM', googleAdsId: 2116 },
|
|
39
|
-
{ name: 'Cameroon', population: 29123744, iso2: 'CM', iso3: 'CMR', googleAdsId: 2120 },
|
|
40
|
-
{ name: 'Canada', population: 39742430, iso2: 'CA', iso3: 'CAN', googleAdsId: 2124 },
|
|
41
|
-
{ name: 'Cape Verde', population: 524877, iso2: 'CV', iso3: 'CPV', googleAdsId: 2132 },
|
|
42
|
-
// {name:'Cayman Islands',population:74457,iso2:'KY',iso3:'CYM',googleAdsId:null},
|
|
43
|
-
{ name: 'Central African Republic', population: 5330690, iso2: 'CF', iso3: 'CAF', googleAdsId: 2140 },
|
|
44
|
-
{ name: 'Chad', population: 20299123, iso2: 'TD', iso3: 'TCD', googleAdsId: 2148 },
|
|
45
|
-
{ name: 'Chile', population: 19764771, iso2: 'CL', iso3: 'CHL', googleAdsId: 2152 },
|
|
46
|
-
{ name: 'China', population: 1419321278, iso2: 'CN', iso3: 'CHN', googleAdsId: 2156 },
|
|
47
|
-
{ name: 'Colombia', population: 52886363, iso2: 'CO', iso3: 'COL', googleAdsId: 2170 },
|
|
48
|
-
{ name: 'Comoros', population: 866628, iso2: 'KM', iso3: 'COM', googleAdsId: 2174 },
|
|
49
|
-
{ name: 'Congo', population: 6332961, iso2: 'CG', iso3: 'COG', googleAdsId: 2178 },
|
|
50
|
-
{ name: 'DR Congo', population: 109276265, iso2: 'CD', iso3: 'COD', googleAdsId: 2180 },
|
|
51
|
-
{ name: 'Costa Rica', population: 5129910, iso2: 'CR', iso3: 'CRI', googleAdsId: 2188 },
|
|
52
|
-
{ name: 'Ivory Coast', population: 31934230, iso2: 'CI', iso3: 'CIV', googleAdsId: 2384 },
|
|
53
|
-
{ name: 'Croatia', population: 3875325, iso2: 'HR', iso3: 'HRV', googleAdsId: 2191 },
|
|
54
|
-
// {name:'Cuba',population:10979783,iso2:'CU',iso3:'CUB',googleAdsId:null},
|
|
55
|
-
{ name: 'Cyprus', population: 1358282, iso2: 'CY', iso3: 'CYP', googleAdsId: 2196 },
|
|
56
|
-
{ name: 'Czech Republic', population: 10735859, iso2: 'CZ', iso3: 'CZE', googleAdsId: 2203 },
|
|
57
|
-
{ name: 'Denmark', population: 5977412, iso2: 'DK', iso3: 'DNK', googleAdsId: 2208 },
|
|
58
|
-
{ name: 'Djibouti', population: 1168722, iso2: 'DJ', iso3: 'DJI', googleAdsId: 2262 },
|
|
59
|
-
{ name: 'Dominica', population: 66205, iso2: 'DM', iso3: 'DMA', googleAdsId: 2212 },
|
|
60
|
-
{ name: 'Dominican Republic', population: 11427557, iso2: 'DO', iso3: 'DOM', googleAdsId: 2214 },
|
|
61
|
-
{ name: 'Ecuador', population: 18135478, iso2: 'EC', iso3: 'ECU', googleAdsId: 2218 },
|
|
62
|
-
{ name: 'Egypt', population: 116538258, iso2: 'EG', iso3: 'EGY', googleAdsId: 2818 },
|
|
63
|
-
{ name: 'El Salvador', population: 6338193, iso2: 'SV', iso3: 'SLV', googleAdsId: 2222 },
|
|
64
|
-
{ name: 'Equatorial Guinea', population: 1892516, iso2: 'GQ', iso3: 'GNQ', googleAdsId: 2226 },
|
|
65
|
-
{ name: 'Eritrea', population: 3535603, iso2: 'ER', iso3: 'ERI', googleAdsId: 2232 },
|
|
66
|
-
{ name: 'Estonia', population: 1360546, iso2: 'EE', iso3: 'EST', googleAdsId: 2233 },
|
|
67
|
-
{ name: 'Ethiopia', population: 132059767, iso2: 'ET', iso3: 'ETH', googleAdsId: 2231 },
|
|
68
|
-
{ name: 'Fiji', population: 928784, iso2: 'FJ', iso3: 'FJI', googleAdsId: 2242 },
|
|
69
|
-
{ name: 'Finland', population: 5617310, iso2: 'FI', iso3: 'FIN', googleAdsId: 2246 },
|
|
70
|
-
{ name: 'France', population: 66548530, iso2: 'FR', iso3: 'FRA', googleAdsId: 2250 },
|
|
71
|
-
// {name:'French Guiana',population:308522,iso2:'GF',iso3:'GUF',googleAdsId:null},
|
|
72
|
-
{ name: 'French Polynesia', population: 281807, iso2: 'PF', iso3: 'PYF', googleAdsId: 2258 },
|
|
73
|
-
{ name: 'Gabon', population: 2538952, iso2: 'GA', iso3: 'GAB', googleAdsId: 2266 },
|
|
74
|
-
{ name: 'Gambia', population: 2759988, iso2: 'GM', iso3: 'GMB', googleAdsId: 2270 },
|
|
75
|
-
{ name: 'Georgia', population: 3807670, iso2: 'GE', iso3: 'GEO', googleAdsId: 2268 },
|
|
76
|
-
{ name: 'Germany', population: 84552242, iso2: 'DE', iso3: 'DEU', googleAdsId: 2276 },
|
|
77
|
-
{ name: 'Ghana', population: 34427414, iso2: 'GH', iso3: 'GHA', googleAdsId: 2288 },
|
|
78
|
-
// {name:'Gibraltar',population:39329,iso2:'GI',iso3:'GIB',googleAdsId:null},
|
|
79
|
-
{ name: 'Greece', population: 10047817, iso2: 'GR', iso3: 'GRC', googleAdsId: 2300 },
|
|
80
|
-
// {name:'Greenland',population:55840,iso2:'GL',iso3:'GRL',googleAdsId:null},
|
|
81
|
-
{ name: 'Grenada', population: 117207, iso2: 'GD', iso3: 'GRD', googleAdsId: 2308 },
|
|
82
|
-
// {name:'Guadeloupe',population:375106,iso2:'GP',iso3:'GLP',googleAdsId:null},
|
|
83
|
-
{ name: 'Guam', population: 167777, iso2: 'GU', iso3: 'GUM', googleAdsId: 2316 },
|
|
84
|
-
{ name: 'Guatemala', population: 18406359, iso2: 'GT', iso3: 'GTM', googleAdsId: 2320 },
|
|
85
|
-
{ name: 'Guinea', population: 14754785, iso2: 'GN', iso3: 'GIN', googleAdsId: 2324 },
|
|
86
|
-
{ name: 'Guinea-Bissau', population: 2201352, iso2: 'GW', iso3: 'GNB', googleAdsId: 2624 },
|
|
87
|
-
{ name: 'Guyana', population: 831087, iso2: 'GY', iso3: 'GUY', googleAdsId: 2328 },
|
|
88
|
-
{ name: 'Haiti', population: 11772557, iso2: 'HT', iso3: 'HTI', googleAdsId: 2332 },
|
|
89
|
-
{ name: 'Honduras', population: 10825703, iso2: 'HN', iso3: 'HND', googleAdsId: 2340 },
|
|
90
|
-
// {name:'Hong Kong',population:7414909,iso2:'HK',iso3:'HKG',googleAdsId:null},
|
|
91
|
-
{ name: 'Hungary', population: 9676135, iso2: 'HU', iso3: 'HUN', googleAdsId: 2348 },
|
|
92
|
-
{ name: 'Iceland', population: 393396, iso2: 'IS', iso3: 'ISL', googleAdsId: 2352 },
|
|
93
|
-
{ name: 'India', population: 1450935791, iso2: 'IN', iso3: 'IND', googleAdsId: 2356 },
|
|
94
|
-
{ name: 'Indonesia', population: 283487931, iso2: 'ID', iso3: 'IDN', googleAdsId: 2360 },
|
|
95
|
-
// {name:'Iran',population:91567738,iso2:'IR',iso3:'IRN',googleAdsId:null},
|
|
96
|
-
{ name: 'Iraq', population: 46042015, iso2: 'IQ', iso3: 'IRQ', googleAdsId: 2368 },
|
|
97
|
-
{ name: 'Ireland', population: 5255017, iso2: 'IE', iso3: 'IRL', googleAdsId: 2372 },
|
|
98
|
-
// {name:'Isle of Man',population:84160,iso2:'IM',iso3:'IMN',googleAdsId:null},
|
|
99
|
-
{ name: 'Israel', population: 9387021, iso2: 'IL', iso3: 'ISR', googleAdsId: 2376 },
|
|
100
|
-
{ name: 'Italy', population: 59342867, iso2: 'IT', iso3: 'ITA', googleAdsId: 2380 },
|
|
101
|
-
{ name: 'Jamaica', population: 2839175, iso2: 'JM', iso3: 'JAM', googleAdsId: 2388 },
|
|
102
|
-
{ name: 'Japan', population: 123753041, iso2: 'JP', iso3: 'JPN', googleAdsId: 2392 },
|
|
103
|
-
{ name: 'Jersey', population: 103200, iso2: 'JE', iso3: 'JEY', googleAdsId: 2832 },
|
|
104
|
-
{ name: 'Jordan', population: 11552876, iso2: 'JO', iso3: 'JOR', googleAdsId: 2400 },
|
|
105
|
-
{ name: 'Kazakhstan', population: 20592571, iso2: 'KZ', iso3: 'KAZ', googleAdsId: 2398 },
|
|
106
|
-
{ name: 'Kenya', population: 56432944, iso2: 'KE', iso3: 'KEN', googleAdsId: 2404 },
|
|
107
|
-
{ name: 'Kiribati', population: 134518, iso2: 'KI', iso3: 'KIR', googleAdsId: 2296 },
|
|
108
|
-
// {name:'North Korea',population:26498823,iso2:'KP',iso3:'PRK',googleAdsId:null},
|
|
109
|
-
{ name: 'South Korea', population: 51717590, iso2: 'KR', iso3: 'KOR', googleAdsId: 2410 },
|
|
110
|
-
{ name: 'Kuwait', population: 4934507, iso2: 'KW', iso3: 'KWT', googleAdsId: 2414 },
|
|
111
|
-
{ name: 'Kyrgyzstan', population: 7186009, iso2: 'KG', iso3: 'KGZ', googleAdsId: 2417 },
|
|
112
|
-
{ name: 'Laos', population: 7769819, iso2: 'LA', iso3: 'LAO', googleAdsId: 2418 },
|
|
113
|
-
{ name: 'Latvia', population: 1871871, iso2: 'LV', iso3: 'LVA', googleAdsId: 2428 },
|
|
114
|
-
{ name: 'Lebanon', population: 5805962, iso2: 'LB', iso3: 'LBN', googleAdsId: 2422 },
|
|
115
|
-
{ name: 'Lesotho', population: 2337423, iso2: 'LS', iso3: 'LSO', googleAdsId: 2426 },
|
|
116
|
-
{ name: 'Liberia', population: 5612817, iso2: 'LR', iso3: 'LBR', googleAdsId: 2430 },
|
|
117
|
-
{ name: 'Libya', population: 7381023, iso2: 'LY', iso3: 'LBY', googleAdsId: 2434 },
|
|
118
|
-
{ name: 'Liechtenstein', population: 39870, iso2: 'LI', iso3: 'LIE', googleAdsId: 2438 },
|
|
119
|
-
{ name: 'Lithuania', population: 2859110, iso2: 'LT', iso3: 'LTU', googleAdsId: 2440 },
|
|
120
|
-
{ name: 'Luxembourg', population: 673036, iso2: 'LU', iso3: 'LUX', googleAdsId: 2442 },
|
|
121
|
-
// {name:'Macao',population:720262,iso2:'MO',iso3:'MAC',googleAdsId:null},
|
|
122
|
-
{ name: 'Macedonia', population: 1823009, iso2: 'MK', iso3: 'MKD', googleAdsId: 2807 },
|
|
123
|
-
{ name: 'Madagascar', population: 31964956, iso2: 'MG', iso3: 'MDG', googleAdsId: 2450 },
|
|
124
|
-
{ name: 'Malawi', population: 21655286, iso2: 'MW', iso3: 'MWI', googleAdsId: 2454 },
|
|
125
|
-
{ name: 'Malaysia', population: 35557673, iso2: 'MY', iso3: 'MYS', googleAdsId: 2458 },
|
|
126
|
-
{ name: 'Maldives', population: 527799, iso2: 'MV', iso3: 'MDV', googleAdsId: 2462 },
|
|
127
|
-
{ name: 'Mali', population: 24478595, iso2: 'ML', iso3: 'MLI', googleAdsId: 2466 },
|
|
128
|
-
{ name: 'Malta', population: 539607, iso2: 'MT', iso3: 'MLT', googleAdsId: 2470 },
|
|
129
|
-
{ name: 'Marshall Islands', population: 37548, iso2: 'MH', iso3: 'MHL', googleAdsId: 2584 },
|
|
130
|
-
// {name:'Martinique',population:343195,iso2:'MQ',iso3:'MTQ',googleAdsId:null},
|
|
131
|
-
{ name: 'Mauritania', population: 5169395, iso2: 'MR', iso3: 'MRT', googleAdsId: 2478 },
|
|
132
|
-
{ name: 'Mauritius', population: 1271169, iso2: 'MU', iso3: 'MUS', googleAdsId: 2480 },
|
|
133
|
-
// {name:'Mayotte',population:326505,iso2:'YT',iso3:'MYT',googleAdsId:null},
|
|
134
|
-
{ name: 'Mexico', population: 130861007, iso2: 'MX', iso3: 'MEX', googleAdsId: 2484 },
|
|
135
|
-
{ name: 'Micronesia', population: 526923, iso2: 'FM', iso3: 'FSM', googleAdsId: 2583 },
|
|
136
|
-
{ name: 'Moldova', population: 3034961, iso2: 'MD', iso3: 'MDA', googleAdsId: 2498 },
|
|
137
|
-
{ name: 'Monaco', population: 38631, iso2: 'MC', iso3: 'MCO', googleAdsId: 2492 },
|
|
138
|
-
{ name: 'Mongolia', population: 3475540, iso2: 'MN', iso3: 'MNG', googleAdsId: 2496 },
|
|
139
|
-
{ name: 'Montenegro', population: 638479, iso2: 'ME', iso3: 'MNE', googleAdsId: 2499 },
|
|
140
|
-
// {name:'Montserrat',population:4389,iso2:'MS',iso3:'MSR',googleAdsId:null},
|
|
141
|
-
{ name: 'Morocco', population: 38081173, iso2: 'MA', iso3: 'MAR', googleAdsId: 2504 },
|
|
142
|
-
{ name: 'Mozambique', population: 34631766, iso2: 'MZ', iso3: 'MOZ', googleAdsId: 2508 },
|
|
143
|
-
{ name: 'Myanmar', population: 54500091, iso2: 'MM', iso3: 'MMR', googleAdsId: 2104 },
|
|
144
|
-
{ name: 'Namibia', population: 3030131, iso2: 'NA', iso3: 'NAM', googleAdsId: 2516 },
|
|
145
|
-
{ name: 'Nauru', population: 11947, iso2: 'NR', iso3: 'NRU', googleAdsId: 2520 },
|
|
146
|
-
{ name: 'Nepal', population: 29651054, iso2: 'NP', iso3: 'NPL', googleAdsId: 2524 },
|
|
147
|
-
{ name: 'Netherlands', population: 18228742, iso2: 'NL', iso3: 'NLD', googleAdsId: 2528 },
|
|
148
|
-
{ name: 'New Caledonia', population: 292639, iso2: 'NC', iso3: 'NCL', googleAdsId: 2540 },
|
|
149
|
-
{ name: 'New Zealand', population: 5213944, iso2: 'NZ', iso3: 'NZL', googleAdsId: 2554 },
|
|
150
|
-
{ name: 'Nicaragua', population: 6916140, iso2: 'NI', iso3: 'NIC', googleAdsId: 2558 },
|
|
151
|
-
{ name: 'Niger', population: 27032412, iso2: 'NE', iso3: 'NER', googleAdsId: 2562 },
|
|
152
|
-
{ name: 'Nigeria', population: 232679478, iso2: 'NG', iso3: 'NGA', googleAdsId: 2566 },
|
|
153
|
-
{ name: 'Northern Mariana Islands', population: 44278, iso2: 'MP', iso3: 'MNP', googleAdsId: 2580 },
|
|
154
|
-
{ name: 'Norway', population: 5576660, iso2: 'NO', iso3: 'NOR', googleAdsId: 2578 },
|
|
155
|
-
{ name: 'Oman', population: 5281538, iso2: 'OM', iso3: 'OMN', googleAdsId: 2512 },
|
|
156
|
-
{ name: 'Pakistan', population: 251269164, iso2: 'PK', iso3: 'PAK', googleAdsId: 2586 },
|
|
157
|
-
// {name:'Palestine',population:5495443,iso2:'PS',iso3:'PSE',googleAdsId:null},
|
|
158
|
-
{ name: 'Panama', population: 4515577, iso2: 'PA', iso3: 'PAN', googleAdsId: 2591 },
|
|
159
|
-
{ name: 'Papua New Guinea', population: 10576502, iso2: 'PG', iso3: 'PNG', googleAdsId: 2598 },
|
|
160
|
-
{ name: 'Paraguay', population: 6929153, iso2: 'PY', iso3: 'PRY', googleAdsId: 2600 },
|
|
161
|
-
{ name: 'Peru', population: 34217848, iso2: 'PE', iso3: 'PER', googleAdsId: 2604 },
|
|
162
|
-
{ name: 'Philippines', population: 115843670, iso2: 'PH', iso3: 'PHL', googleAdsId: 2608 },
|
|
163
|
-
{ name: 'Poland', population: 38539201, iso2: 'PL', iso3: 'POL', googleAdsId: 2616 },
|
|
164
|
-
{ name: 'Portugal', population: 10425292, iso2: 'PT', iso3: 'PRT', googleAdsId: 2620 },
|
|
165
|
-
// {name:'Puerto Rico',population:3242204,iso2:'PR',iso3:'PRI',googleAdsId:null},
|
|
166
|
-
{ name: 'Qatar', population: 3048423, iso2: 'QA', iso3: 'QAT', googleAdsId: 2634 },
|
|
167
|
-
// {name:'Réunion',population:878591,iso2:'RE',iso3:'REU',googleAdsId:null},
|
|
168
|
-
{ name: 'Romania', population: 19015088, iso2: 'RO', iso3: 'ROU', googleAdsId: 2642 },
|
|
169
|
-
{ name: 'Russia', population: 144820423, iso2: 'RU', iso3: 'RUS', googleAdsId: 2643 },
|
|
170
|
-
{ name: 'Rwanda', population: 14256567, iso2: 'RW', iso3: 'RWA', googleAdsId: 2646 },
|
|
171
|
-
{ name: 'Saint Lucia', population: 179744, iso2: 'LC', iso3: 'LCA', googleAdsId: 2662 },
|
|
172
|
-
{ name: 'Samoa', population: 218019, iso2: 'WS', iso3: 'WSM', googleAdsId: 2882 },
|
|
173
|
-
{ name: 'San Marino', population: 33581, iso2: 'SM', iso3: 'SMR', googleAdsId: 2674 },
|
|
174
|
-
{ name: 'Saudi Arabia', population: 33962757, iso2: 'SA', iso3: 'SAU', googleAdsId: 2682 },
|
|
175
|
-
{ name: 'Senegal', population: 18501984, iso2: 'SN', iso3: 'SEN', googleAdsId: 2686 },
|
|
176
|
-
{ name: 'Serbia', population: 6736216, iso2: 'RS', iso3: 'SRB', googleAdsId: 2688 },
|
|
177
|
-
{ name: 'Seychelles', population: 130418, iso2: 'SC', iso3: 'SYC', googleAdsId: 2690 },
|
|
178
|
-
{ name: 'Sierra Leone', population: 8642022, iso2: 'SL', iso3: 'SLE', googleAdsId: 2694 },
|
|
179
|
-
{ name: 'Singapore', population: 5832387, iso2: 'SG', iso3: 'SGP', googleAdsId: 2702 },
|
|
180
|
-
{ name: 'Slovakia', population: 5506760, iso2: 'SK', iso3: 'SVK', googleAdsId: 2703 },
|
|
181
|
-
{ name: 'Slovenia', population: 2118697, iso2: 'SI', iso3: 'SVN', googleAdsId: 2705 },
|
|
182
|
-
{ name: 'Solomon Islands', population: 819198, iso2: 'SB', iso3: 'SLB', googleAdsId: 2090 },
|
|
183
|
-
{ name: 'Somalia', population: 19009151, iso2: 'SO', iso3: 'SOM', googleAdsId: 2706 },
|
|
184
|
-
{ name: 'South Africa', population: 64007187, iso2: 'ZA', iso3: 'ZAF', googleAdsId: 2710 },
|
|
185
|
-
// {name:'South Sudan',population:11943408,iso2:'SS',iso3:'SSD',googleAdsId:null},
|
|
186
|
-
{ name: 'Spain', population: 47910526, iso2: 'ES', iso3: 'ESP', googleAdsId: 2724 },
|
|
187
|
-
{ name: 'Sri Lanka', population: 23103565, iso2: 'LK', iso3: 'LKA', googleAdsId: 2144 },
|
|
188
|
-
{ name: 'Sudan', population: 50448963, iso2: 'SD', iso3: 'SDN', googleAdsId: 2736 },
|
|
189
|
-
{ name: 'Suriname', population: 634431, iso2: 'SR', iso3: 'SUR', googleAdsId: 2740 },
|
|
190
|
-
{ name: 'Swaziland', population: 1202000, iso2: 'SZ', iso3: 'SWZ', googleAdsId: 2748 },
|
|
191
|
-
{ name: 'Sweden', population: 10606999, iso2: 'SE', iso3: 'SWE', googleAdsId: 2752 },
|
|
192
|
-
{ name: 'Switzerland', population: 8921981, iso2: 'CH', iso3: 'CHE', googleAdsId: 2756 },
|
|
193
|
-
// {name:'Syria',population:24672760,iso2:'SY',iso3:'SYR',googleAdsId:null},
|
|
194
|
-
// {name:'Taiwan',population:23213962,iso2:'TW',iso3:'TWN',googleAdsId:null},
|
|
195
|
-
{ name: 'Tajikistan', population: 10590927, iso2: 'TJ', iso3: 'TJK', googleAdsId: 2762 },
|
|
196
|
-
{ name: 'Tanzania', population: 68560157, iso2: 'TZ', iso3: 'TZA', googleAdsId: 2834 },
|
|
197
|
-
{ name: 'Thailand', population: 71668011, iso2: 'TH', iso3: 'THA', googleAdsId: 2764 },
|
|
198
|
-
{ name: 'Timor-Leste', population: 1400638, iso2: 'TL', iso3: 'TLS', googleAdsId: 2626 },
|
|
199
|
-
{ name: 'Togo', population: 9515236, iso2: 'TG', iso3: 'TGO', googleAdsId: 2768 },
|
|
200
|
-
{ name: 'Tonga', population: 104175, iso2: 'TO', iso3: 'TON', googleAdsId: 2776 },
|
|
201
|
-
{ name: 'Trinidad and Tobago', population: 1507782, iso2: 'TT', iso3: 'TTO', googleAdsId: 2780 },
|
|
202
|
-
{ name: 'Tunisia', population: 12277109, iso2: 'TN', iso3: 'TUN', googleAdsId: 2788 },
|
|
203
|
-
{ name: 'Turkey', population: 87473805, iso2: 'TR', iso3: 'TUR', googleAdsId: 2792 },
|
|
204
|
-
{ name: 'Turkmenistan', population: 7494498, iso2: 'TM', iso3: 'TKM', googleAdsId: 2795 },
|
|
205
|
-
{ name: 'Uganda', population: 50015092, iso2: 'UG', iso3: 'UGA', googleAdsId: 2800 },
|
|
206
|
-
{ name: 'Ukraine', population: 37860221, iso2: 'UA', iso3: 'UKR', googleAdsId: 2804 },
|
|
207
|
-
{ name: 'United Arab Emirates', population: 11027129, iso2: 'AE', iso3: 'ARE', googleAdsId: 2784 },
|
|
208
|
-
{ name: 'United Kingdom', population: 69138192, iso2: 'GB', iso3: 'GBR', googleAdsId: 2826 },
|
|
209
|
-
{ name: 'United States', population: 345426571, iso2: 'US', iso3: 'USA', googleAdsId: 2840 },
|
|
210
|
-
{ name: 'Uruguay', population: 3386588, iso2: 'UY', iso3: 'URY', googleAdsId: 2858 },
|
|
211
|
-
{ name: 'Uzbekistan', population: 36361859, iso2: 'UZ', iso3: 'UZB', googleAdsId: 2860 },
|
|
212
|
-
{ name: 'Vanuatu', population: 327777, iso2: 'VU', iso3: 'VUT', googleAdsId: 2548 },
|
|
213
|
-
{ name: 'Venezuela', population: 28405543, iso2: 'VE', iso3: 'VEN', googleAdsId: 2862 },
|
|
214
|
-
{ name: 'Vietnam', population: 100987686, iso2: 'VN', iso3: 'VNM', googleAdsId: 2704 },
|
|
215
|
-
// {name:'Western Sahara',population:590506,iso2:'EH',iso3:'ESH',googleAdsId:null},
|
|
216
|
-
{ name: 'Yemen', population: 40583164, iso2: 'YE', iso3: 'YEM', googleAdsId: 2887 },
|
|
217
|
-
{ name: 'Zambia', population: 21314956, iso2: 'ZM', iso3: 'ZMB', googleAdsId: 2894 },
|
|
218
|
-
{ name: 'Zimbabwe', population: 16634373, iso2: 'ZW', iso3: 'ZWE', googleAdsId: 2716 },
|
|
219
|
-
];
|
package/geo/index.d.ts
DELETED
package/geo/index.js
DELETED
package/geo/languages.d.ts
DELETED
package/geo/languages.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* https://docs.google.com/spreadsheets/d/1nrQ9h1n9p0Mab81_FKGqIw4fTOMOOjpcFrf0oSQvHIw/edit?gid=0#gid=0
|
|
3
|
-
*/
|
|
4
|
-
export const languages = [
|
|
5
|
-
{ name: 'Arabic', iso2: 'ar', googleAdsId: 1019 },
|
|
6
|
-
{ name: 'Bengali', iso2: 'bn', googleAdsId: 1056 },
|
|
7
|
-
{ name: 'Bulgarian', iso2: 'bg', googleAdsId: 1020 },
|
|
8
|
-
{ name: 'Catalan', iso2: 'ca', googleAdsId: 1038 },
|
|
9
|
-
{ name: 'Chinese (simplified)', iso2: 'zh', googleAdsId: 1017 },
|
|
10
|
-
{ name: 'Chinese (traditional)', iso2: 'tw', googleAdsId: 1018 },
|
|
11
|
-
{ name: 'Croatian', iso2: 'hr', googleAdsId: 1039 },
|
|
12
|
-
{ name: 'Czech', iso2: 'cs', googleAdsId: 1021 },
|
|
13
|
-
{ name: 'Danish', iso2: 'da', googleAdsId: 1009 },
|
|
14
|
-
{ name: 'Dutch', iso2: 'nl', googleAdsId: 1010 },
|
|
15
|
-
{ name: 'English', iso2: 'en', googleAdsId: 1000 },
|
|
16
|
-
{ name: 'Estonian', iso2: 'et', googleAdsId: 1043 },
|
|
17
|
-
{ name: 'Filipino', iso2: 'tl', googleAdsId: 1042 },
|
|
18
|
-
{ name: 'Finnish', iso2: 'fi', googleAdsId: 1011 },
|
|
19
|
-
{ name: 'French', iso2: 'fr', googleAdsId: 1002 },
|
|
20
|
-
{ name: 'German', iso2: 'de', googleAdsId: 1001 },
|
|
21
|
-
{ name: 'Greek', iso2: 'el', googleAdsId: 1022 },
|
|
22
|
-
{ name: 'Gujarati', iso2: 'gu', googleAdsId: 1072 },
|
|
23
|
-
{ name: 'Hebrew', iso2: 'iw', googleAdsId: 1027 },
|
|
24
|
-
{ name: 'Hindi', iso2: 'hi', googleAdsId: 1023 },
|
|
25
|
-
{ name: 'Hungarian', iso2: 'hu', googleAdsId: 1024 },
|
|
26
|
-
{ name: 'Icelandic', iso2: 'is', googleAdsId: 1026 },
|
|
27
|
-
{ name: 'Indonesian', iso2: 'id', googleAdsId: 1025 },
|
|
28
|
-
{ name: 'Italian', iso2: 'it', googleAdsId: 1004 },
|
|
29
|
-
{ name: 'Japanese', iso2: 'ja', googleAdsId: 1005 },
|
|
30
|
-
{ name: 'Kannada', iso2: 'kn', googleAdsId: 1086 },
|
|
31
|
-
{ name: 'Korean', iso2: 'ko', googleAdsId: 1012 },
|
|
32
|
-
{ name: 'Latvian', iso2: 'lv', googleAdsId: 1028 },
|
|
33
|
-
{ name: 'Lithuanian', iso2: 'lt', googleAdsId: 1029 },
|
|
34
|
-
{ name: 'Malay', iso2: 'ms', googleAdsId: 1102 },
|
|
35
|
-
{ name: 'Malayalam', iso2: 'ml', googleAdsId: 1098 },
|
|
36
|
-
{ name: 'Marathi', iso2: 'mr', googleAdsId: 1101 },
|
|
37
|
-
{ name: 'Norwegian', iso2: 'no', googleAdsId: 1013 },
|
|
38
|
-
{ name: 'Persian', iso2: 'fa', googleAdsId: 1064 },
|
|
39
|
-
{ name: 'Polish', iso2: 'pl', googleAdsId: 1030 },
|
|
40
|
-
{ name: 'Portuguese', iso2: 'pt', googleAdsId: 1014 },
|
|
41
|
-
{ name: 'Romanian', iso2: 'ro', googleAdsId: 1032 },
|
|
42
|
-
{ name: 'Russian', iso2: 'ru', googleAdsId: 1031 },
|
|
43
|
-
{ name: 'Serbian', iso2: 'sr', googleAdsId: 1035 },
|
|
44
|
-
{ name: 'Slovak', iso2: 'sk', googleAdsId: 1033 },
|
|
45
|
-
{ name: 'Slovenian', iso2: 'sl', googleAdsId: 1034 },
|
|
46
|
-
{ name: 'Spanish', iso2: 'es', googleAdsId: 1003 },
|
|
47
|
-
{ name: 'Swedish', iso2: 'sv', googleAdsId: 1015 },
|
|
48
|
-
{ name: 'Tamil', iso2: 'ta', googleAdsId: 1130 },
|
|
49
|
-
{ name: 'Telugu', iso2: 'te', googleAdsId: 1131 },
|
|
50
|
-
{ name: 'Thai', iso2: 'th', googleAdsId: 1044 },
|
|
51
|
-
{ name: 'Turkish', iso2: 'tr', googleAdsId: 1037 },
|
|
52
|
-
{ name: 'Ukrainian', iso2: 'uk', googleAdsId: 1036 },
|
|
53
|
-
{ name: 'Urdu', iso2: 'ur', googleAdsId: 1041 },
|
|
54
|
-
{ name: 'Vietnamese', iso2: 'vi', googleAdsId: 1040 },
|
|
55
|
-
];
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { z } from "zod/v4";
|
|
2
|
-
export declare const network: {
|
|
3
|
-
readonly GOOGLE_SEARCH_ONLY: 2;
|
|
4
|
-
readonly GOOGLE_SEARCH_AND_PARTNERS: 3;
|
|
5
|
-
};
|
|
6
|
-
export type Network = typeof network[keyof typeof network];
|
|
7
|
-
export declare const requestSchema: z.ZodObject<{
|
|
8
|
-
countries: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
9
|
-
customerId: z.ZodOptional<z.ZodString>;
|
|
10
|
-
historicalMetricsOptions: z.ZodOptional<z.ZodObject<{
|
|
11
|
-
startMonth: z.ZodString;
|
|
12
|
-
startYear: z.ZodNumber;
|
|
13
|
-
endMonth: z.ZodString;
|
|
14
|
-
endYear: z.ZodNumber;
|
|
15
|
-
}, z.core.$strip>>;
|
|
16
|
-
includeAdultKeywords: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
-
keywordPlanNetwork: z.ZodOptional<z.ZodNumber>;
|
|
18
|
-
queries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
-
language: z.ZodOptional<z.ZodNumber>;
|
|
20
|
-
url: z.ZodOptional<z.ZodString>;
|
|
21
|
-
}, z.core.$strip>;
|
|
22
|
-
export type RequestSchemaType = z.infer<typeof requestSchema>;
|
|
23
|
-
export declare const defaultRequest: RequestSchemaType;
|
|
24
|
-
export declare const responseSchema: z.ZodObject<{
|
|
25
|
-
payload: z.ZodObject<{}, z.core.$strip>;
|
|
26
|
-
keyword: z.ZodString;
|
|
27
|
-
avgCpc: z.ZodNumber;
|
|
28
|
-
avgSearchVolume: z.ZodNumber;
|
|
29
|
-
competition: z.ZodNumber;
|
|
30
|
-
competitionIndex: z.ZodNumber;
|
|
31
|
-
months: z.ZodArray<z.ZodObject<{
|
|
32
|
-
date: z.ZodString;
|
|
33
|
-
month: z.ZodNumber;
|
|
34
|
-
searchVolume: z.ZodNumber;
|
|
35
|
-
year: z.ZodNumber;
|
|
36
|
-
}, z.core.$strip>>;
|
|
37
|
-
topOfPageBidHigh: z.ZodNumber;
|
|
38
|
-
topOfPageBidLow: z.ZodNumber;
|
|
39
|
-
totalSearchVolume: z.ZodNumber;
|
|
40
|
-
}, z.core.$strip>;
|
|
41
|
-
export type ResponseSchemaType = z.infer<typeof responseSchema>;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { z } from "zod/v4";
|
|
2
|
-
export const network = {
|
|
3
|
-
GOOGLE_SEARCH_ONLY: 2,
|
|
4
|
-
GOOGLE_SEARCH_AND_PARTNERS: 3,
|
|
5
|
-
};
|
|
6
|
-
export const requestSchema = z.object({
|
|
7
|
-
countries: z.array(z.number())
|
|
8
|
-
.optional(),
|
|
9
|
-
customerId: z.string()
|
|
10
|
-
.optional(),
|
|
11
|
-
historicalMetricsOptions: z.object({
|
|
12
|
-
startMonth: z.string(),
|
|
13
|
-
startYear: z.number(),
|
|
14
|
-
endMonth: z.string(),
|
|
15
|
-
endYear: z.number(),
|
|
16
|
-
})
|
|
17
|
-
.optional(),
|
|
18
|
-
includeAdultKeywords: z.boolean()
|
|
19
|
-
.optional(),
|
|
20
|
-
keywordPlanNetwork: z.number()
|
|
21
|
-
.optional(),
|
|
22
|
-
queries: z.array(z.string())
|
|
23
|
-
.optional(),
|
|
24
|
-
language: z.number()
|
|
25
|
-
.optional(),
|
|
26
|
-
url: z.string()
|
|
27
|
-
.optional(),
|
|
28
|
-
});
|
|
29
|
-
export const defaultRequest = {
|
|
30
|
-
countries: [],
|
|
31
|
-
customerId: "",
|
|
32
|
-
historicalMetricsOptions: null,
|
|
33
|
-
includeAdultKeywords: false,
|
|
34
|
-
keywordPlanNetwork: network.GOOGLE_SEARCH_ONLY,
|
|
35
|
-
queries: [],
|
|
36
|
-
language: null,
|
|
37
|
-
};
|
|
38
|
-
export const responseSchema = z.object({
|
|
39
|
-
payload: z.object(),
|
|
40
|
-
keyword: z.string(),
|
|
41
|
-
avgCpc: z.number(),
|
|
42
|
-
avgSearchVolume: z.number(),
|
|
43
|
-
competition: z.number(),
|
|
44
|
-
competitionIndex: z.number(),
|
|
45
|
-
months: z.object({
|
|
46
|
-
date: z.string(),
|
|
47
|
-
month: z.number(),
|
|
48
|
-
searchVolume: z.number(),
|
|
49
|
-
year: z.number(),
|
|
50
|
-
})
|
|
51
|
-
.array(),
|
|
52
|
-
topOfPageBidHigh: z.number(),
|
|
53
|
-
topOfPageBidLow: z.number(),
|
|
54
|
-
totalSearchVolume: z.number(),
|
|
55
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./googleAdsKeywordPlanner";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./googleAdsKeywordPlanner";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseNamespace } from "../../_class";
|
|
2
|
-
import type { GoogleAdsApi } from "google-ads-api";
|
|
3
|
-
import { Config } from "./";
|
|
4
|
-
export declare class GoogleAdsNamespace extends BaseNamespace {
|
|
5
|
-
client: GoogleAdsApi;
|
|
6
|
-
config: Config;
|
|
7
|
-
mccAccountId: string;
|
|
8
|
-
refreshToken: string;
|
|
9
|
-
ensureInit: () => Promise<void>;
|
|
10
|
-
getCustomer: (customerId: string) => Promise<import("google-ads-api").Customer>;
|
|
11
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { BaseNamespace } from "../../_class";
|
|
2
|
-
export class GoogleAdsNamespace extends BaseNamespace {
|
|
3
|
-
mccAccountId = "";
|
|
4
|
-
refreshToken = "";
|
|
5
|
-
ensureInit = async () => {
|
|
6
|
-
if (!this.client) {
|
|
7
|
-
try {
|
|
8
|
-
const { GoogleAdsApi } = await import("google-ads-api");
|
|
9
|
-
this.client = new GoogleAdsApi({
|
|
10
|
-
client_id: this.config.client.clientId,
|
|
11
|
-
client_secret: this.config.client.clientSecret,
|
|
12
|
-
developer_token: this.config.client.developerToken,
|
|
13
|
-
});
|
|
14
|
-
this.mccAccountId = this.config.mccAccountId;
|
|
15
|
-
this.refreshToken = this.config.refreshToken;
|
|
16
|
-
}
|
|
17
|
-
catch (e) {
|
|
18
|
-
throw new Error("Google Sheets Client not installed");
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
getCustomer = async (customerId) => {
|
|
23
|
-
await this.ensureInit();
|
|
24
|
-
return this.client.Customer({
|
|
25
|
-
customer_id: customerId,
|
|
26
|
-
login_customer_id: this.mccAccountId,
|
|
27
|
-
refresh_token: this.refreshToken,
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { GoogleAdsNamespace } from "./GoogleAdsNamespace";
|
|
2
|
-
export type Config = {
|
|
3
|
-
client: {
|
|
4
|
-
clientId: string;
|
|
5
|
-
clientSecret: string;
|
|
6
|
-
developerToken: string;
|
|
7
|
-
};
|
|
8
|
-
mccAccountId: string;
|
|
9
|
-
refreshToken: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const googleAdsClient: (key?: string, config?: Config, vaultId?: string, itemId?: string) => Promise<GoogleAdsNamespace>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { GoogleAdsNamespace } from "./GoogleAdsNamespace";
|
|
2
|
-
import { onePasswordClient } from "../../onePassword/server";
|
|
3
|
-
const googleAdsNamespaces = new Map();
|
|
4
|
-
export const googleAdsClient = async (key = "default", config, vaultId, itemId) => {
|
|
5
|
-
if (googleAdsNamespaces.has(key)) {
|
|
6
|
-
return googleAdsNamespaces.get(key);
|
|
7
|
-
}
|
|
8
|
-
let instanceConfig;
|
|
9
|
-
if (config) {
|
|
10
|
-
instanceConfig = config;
|
|
11
|
-
}
|
|
12
|
-
else if (vaultId && itemId) {
|
|
13
|
-
instanceConfig = await (await onePasswordClient())
|
|
14
|
-
.getJsonNote(vaultId, itemId);
|
|
15
|
-
}
|
|
16
|
-
else if (process.env.GOOGLE_ADS_VAULT_ID && process.env.GOOGLE_ADS_ITEM_ID) {
|
|
17
|
-
instanceConfig = await (await onePasswordClient())
|
|
18
|
-
.getJsonNote(process.env.GOOGLE_ADS_VAULT_ID, process.env.GOOGLE_ADS_ITEM_ID);
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
throw new Error(`Config required for namespace '${key}'`);
|
|
22
|
-
}
|
|
23
|
-
const namespace = new GoogleAdsNamespace(key, instanceConfig);
|
|
24
|
-
googleAdsNamespaces.set(key, namespace);
|
|
25
|
-
return namespace;
|
|
26
|
-
};
|