@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.
Files changed (597) hide show
  1. package/.github/workflows/deploy_npmjs.yml +0 -3
  2. package/.yarn/install-state.gz +0 -0
  3. package/dist/_class/index.d.mts +2 -0
  4. package/dist/_class/index.mjs +62 -0
  5. package/dist/adverity/index.d.mts +2 -0
  6. package/dist/adverity/index.mjs +64 -0
  7. package/{adverity/server/getJobs.d.ts → dist/adverity/server/index.d.mts} +11 -8
  8. package/dist/adverity/server/index.mjs +25 -0
  9. package/dist/api/index.d.mts +2 -0
  10. package/dist/api/index.mjs +3 -0
  11. package/dist/api-DGKJDAfb.mjs +139 -0
  12. package/dist/array/index.d.mts +11 -0
  13. package/dist/array/index.mjs +14 -0
  14. package/dist/atInternet/index.d.mts +20 -0
  15. package/dist/atInternet/index.mjs +18 -0
  16. package/dist/aws/ec2/server/index.d.mts +18 -0
  17. package/dist/aws/ec2/server/index.mjs +48 -0
  18. package/dist/aws/ecs/server/index.d.mts +59 -0
  19. package/dist/aws/ecs/server/index.mjs +113 -0
  20. package/dist/aws/glue/server/index.d.mts +19 -0
  21. package/dist/aws/glue/server/index.mjs +36 -0
  22. package/dist/aws/lambda/server/index.d.mts +28 -0
  23. package/dist/aws/lambda/server/index.mjs +57 -0
  24. package/dist/aws/s3/server/index.d.mts +124 -0
  25. package/dist/aws/s3/server/index.mjs +361 -0
  26. package/dist/aws/server/index.d.mts +2 -0
  27. package/dist/aws/server/index.mjs +3 -0
  28. package/dist/aws/ses/server/index.d.mts +105 -0
  29. package/dist/aws/ses/server/index.mjs +269 -0
  30. package/dist/aws/sqs/server/index.d.mts +41 -0
  31. package/dist/aws/sqs/server/index.mjs +56 -0
  32. package/dist/aws/ssm/server/index.d.mts +18 -0
  33. package/dist/aws/ssm/server/index.mjs +47 -0
  34. package/dist/axios/index.d.mts +22 -0
  35. package/dist/axios/index.mjs +50 -0
  36. package/dist/boolean/index.d.mts +7 -0
  37. package/dist/boolean/index.mjs +15 -0
  38. package/dist/brightData/serpApi/server/index.d.mts +93 -0
  39. package/dist/brightData/serpApi/server/index.mjs +229 -0
  40. package/dist/brightData/server/index.d.mts +2 -0
  41. package/dist/brightData/server/index.mjs +18 -0
  42. package/dist/brightData/webScraperIde/server/index.d.mts +19 -0
  43. package/dist/brightData/webScraperIde/server/index.mjs +50 -0
  44. package/dist/cache/server/index.d.mts +10 -0
  45. package/dist/cache/server/index.mjs +31 -0
  46. package/dist/chunk-CgI6uo-e.mjs +32 -0
  47. package/dist/crud/index.d.mts +10 -0
  48. package/dist/crud/index.mjs +10 -0
  49. package/dist/crypto/index.d.mts +28 -0
  50. package/dist/crypto/index.mjs +47 -0
  51. package/dist/date/index.d.mts +2 -0
  52. package/dist/date/index.mjs +471 -0
  53. package/dist/environment/index.d.mts +37 -0
  54. package/dist/environment/index.mjs +60 -0
  55. package/dist/eskimi/index.d.mts +52 -0
  56. package/dist/eskimi/index.mjs +90 -0
  57. package/dist/eskimi/server/index.d.mts +25 -0
  58. package/dist/eskimi/server/index.mjs +50 -0
  59. package/dist/file/index.d.mts +7 -0
  60. package/dist/file/index.mjs +20 -0
  61. package/dist/file/server/index.d.mts +8 -0
  62. package/dist/file/server/index.mjs +16 -0
  63. package/dist/from-9s4TjsYv.mjs +3878 -0
  64. package/dist/geo/index.d.mts +26 -0
  65. package/dist/geo/index.mjs +1591 -0
  66. package/dist/getDecimal-CafxtLhH.mjs +40 -0
  67. package/dist/googleAds/keywordPlanner/server/index.d.mts +45 -0
  68. package/dist/googleAds/keywordPlanner/server/index.mjs +51 -0
  69. package/dist/googleAds/server/index.d.mts +27 -0
  70. package/dist/googleAds/server/index.mjs +48 -0
  71. package/dist/googleCloud/bigquery/server/index.d.mts +82 -0
  72. package/dist/googleCloud/bigquery/server/index.mjs +127 -0
  73. package/dist/googleCloud/server/index.d.mts +2 -0
  74. package/dist/googleCloud/server/index.mjs +24 -0
  75. package/dist/googleCloud/sheets/server/index.d.mts +22 -0
  76. package/dist/googleCloud/sheets/server/index.mjs +31 -0
  77. package/dist/googleCloud/storage/server/index.d.mts +31 -0
  78. package/dist/googleCloud/storage/server/index.mjs +79 -0
  79. package/dist/googlePageSpeed/server/index.d.mts +34 -0
  80. package/dist/googlePageSpeed/server/index.mjs +53 -0
  81. package/dist/googleSearchIncidents/server/index.d.mts +73 -0
  82. package/dist/googleSearchIncidents/server/index.mjs +55 -0
  83. package/dist/greenDomain/server/index.d.mts +25 -0
  84. package/dist/greenDomain/server/index.mjs +31 -0
  85. package/dist/index-B20FTOvk.d.mts +67 -0
  86. package/dist/index-B4K9Z1U-.d.mts +17 -0
  87. package/dist/index-CFaAdPAh.d.mts +32 -0
  88. package/dist/index-CIG08fpw.d.mts +32 -0
  89. package/dist/index-CMfxuwL1.d.mts +246 -0
  90. package/dist/index-DEm1Wodf.d.mts +116 -0
  91. package/dist/index-sfVt7tI_.d.mts +18 -0
  92. package/dist/inngest/index.d.mts +10 -0
  93. package/dist/inngest/index.mjs +10 -0
  94. package/dist/json/index.d.mts +7 -0
  95. package/dist/json/index.mjs +27 -0
  96. package/dist/littleWarden/server/index.d.mts +56 -0
  97. package/dist/littleWarden/server/index.mjs +79 -0
  98. package/dist/lumar/api/server/index.d.mts +66 -0
  99. package/dist/lumar/api/server/index.mjs +111 -0
  100. package/dist/lumar/graphql/server/index.d.mts +308 -0
  101. package/dist/lumar/graphql/server/index.mjs +172 -0
  102. package/dist/multipart-parser-BC14QSvI.mjs +290 -0
  103. package/dist/myTarget/server/index.d.mts +9 -0
  104. package/dist/myTarget/server/index.mjs +16 -0
  105. package/dist/nextAuth/index.d.mts +12 -0
  106. package/dist/nextAuth/index.mjs +15 -0
  107. package/dist/nextJs/index.d.mts +19 -0
  108. package/dist/nextJs/index.mjs +12 -0
  109. package/dist/number/index.d.mts +54 -0
  110. package/dist/number/index.mjs +75 -0
  111. package/{object/replaceKeys.d.ts → dist/object/index.d.mts} +4 -1
  112. package/dist/object/index.mjs +22 -0
  113. package/dist/onePassword/server/index.d.mts +24 -0
  114. package/dist/onePassword/server/index.mjs +50 -0
  115. package/dist/openAi/server/index.d.mts +20 -0
  116. package/dist/openAi/server/index.mjs +46 -0
  117. package/dist/prisma/index.d.mts +7 -0
  118. package/dist/prisma/index.mjs +16 -0
  119. package/dist/prisma/server/index.d.mts +31 -0
  120. package/dist/prisma/server/index.mjs +72 -0
  121. package/dist/server-Bwy4JI8Z.mjs +33 -0
  122. package/dist/snapchat/server/index.d.mts +25 -0
  123. package/dist/snapchat/server/index.mjs +39 -0
  124. package/dist/sorting/index.d.mts +25 -0
  125. package/dist/sorting/index.mjs +50 -0
  126. package/dist/src-BeXFXTgz.mjs +1272 -0
  127. package/dist/stream/server/index.d.mts +15 -0
  128. package/dist/stream/server/index.mjs +48 -0
  129. package/dist/string/index.d.mts +107 -0
  130. package/dist/string/index.mjs +191 -0
  131. package/dist/swr/client/index.d.mts +46 -0
  132. package/dist/swr/client/index.mjs +40 -0
  133. package/dist/upTimeRobot/server/index.d.mts +72 -0
  134. package/dist/upTimeRobot/server/index.mjs +83 -0
  135. package/dist/url/index.d.mts +29 -0
  136. package/dist/url/index.mjs +52 -0
  137. package/dist/url/server/index.d.mts +9 -0
  138. package/dist/url/server/index.mjs +35 -0
  139. package/dist/util/index.d.mts +47 -0
  140. package/dist/util/index.mjs +99 -0
  141. package/dist/util/server/index.d.mts +27 -0
  142. package/dist/util/server/index.mjs +61 -0
  143. package/dist/webWorker/index.d.mts +11 -0
  144. package/dist/webWorker/index.mjs +11 -0
  145. package/dist/xml/server/index.d.mts +4 -0
  146. package/dist/xml/server/index.mjs +17 -0
  147. package/package.json +70 -1066
  148. package/tsdown.config.ts +10 -0
  149. package/.github/generate-exports.js +0 -69
  150. package/_class/BaseClass.d.ts +0 -18
  151. package/_class/BaseClass.js +0 -44
  152. package/_class/BaseNamespace.d.ts +0 -9
  153. package/_class/BaseNamespace.js +0 -24
  154. package/_class/index.d.ts +0 -2
  155. package/_class/index.js +0 -2
  156. package/adverity/adverity.d.ts +0 -112
  157. package/adverity/adverity.js +0 -58
  158. package/adverity/index.d.ts +0 -1
  159. package/adverity/index.js +0 -1
  160. package/adverity/server/getJobs.js +0 -26
  161. package/adverity/server/index.d.ts +0 -1
  162. package/adverity/server/index.js +0 -1
  163. package/api/ApiResponseClass.d.ts +0 -35
  164. package/api/ApiResponseClass.js +0 -93
  165. package/api/api.d.ts +0 -17
  166. package/api/api.js +0 -15
  167. package/api/functions.d.ts +0 -7
  168. package/api/functions.js +0 -19
  169. package/api/index.d.ts +0 -3
  170. package/api/index.js +0 -3
  171. package/array/array.d.ts +0 -8
  172. package/array/array.js +0 -9
  173. package/array/index.d.ts +0 -1
  174. package/array/index.js +0 -1
  175. package/atInternet/atInternet.d.ts +0 -16
  176. package/atInternet/atInternet.js +0 -15
  177. package/atInternet/index.d.ts +0 -1
  178. package/atInternet/index.js +0 -1
  179. package/aws/ec2/server/AwsEc2Namespace.d.ts +0 -10
  180. package/aws/ec2/server/AwsEc2Namespace.js +0 -37
  181. package/aws/ec2/server/awsEc2.d.ts +0 -3
  182. package/aws/ec2/server/awsEc2.js +0 -12
  183. package/aws/ec2/server/index.d.ts +0 -2
  184. package/aws/ec2/server/index.js +0 -2
  185. package/aws/ecs/server/AwsEcsNamespace.d.ts +0 -53
  186. package/aws/ecs/server/AwsEcsNamespace.js +0 -118
  187. package/aws/ecs/server/awsEcs.d.ts +0 -3
  188. package/aws/ecs/server/awsEcs.js +0 -12
  189. package/aws/ecs/server/index.d.ts +0 -2
  190. package/aws/ecs/server/index.js +0 -2
  191. package/aws/glue/server/AwsGlueNamespace.d.ts +0 -12
  192. package/aws/glue/server/AwsGlueNamespace.js +0 -29
  193. package/aws/glue/server/awsGlue.d.ts +0 -3
  194. package/aws/glue/server/awsGlue.js +0 -12
  195. package/aws/glue/server/index.d.ts +0 -2
  196. package/aws/glue/server/index.js +0 -2
  197. package/aws/lambda/server/AwsLambdaNamespace.d.ts +0 -21
  198. package/aws/lambda/server/AwsLambdaNamespace.js +0 -69
  199. package/aws/lambda/server/awsLambda.d.ts +0 -4
  200. package/aws/lambda/server/awsLambda.js +0 -16
  201. package/aws/lambda/server/index.d.ts +0 -2
  202. package/aws/lambda/server/index.js +0 -2
  203. package/aws/s3/server/AwsS3Namespace.d.ts +0 -65
  204. package/aws/s3/server/AwsS3Namespace.js +0 -364
  205. package/aws/s3/server/awsS3.d.ts +0 -13
  206. package/aws/s3/server/awsS3.js +0 -20
  207. package/aws/s3/server/index.d.ts +0 -3
  208. package/aws/s3/server/index.js +0 -3
  209. package/aws/s3/server/payload.d.ts +0 -42
  210. package/aws/s3/server/payload.js +0 -43
  211. package/aws/server/aws.d.ts +0 -9
  212. package/aws/server/aws.js +0 -29
  213. package/aws/server/index.d.ts +0 -2
  214. package/aws/server/index.js +0 -2
  215. package/aws/server/isResponse200.d.ts +0 -4
  216. package/aws/server/isResponse200.js +0 -12
  217. package/aws/ses/server/AwsSesNamespace.d.ts +0 -9
  218. package/aws/ses/server/AwsSesNamespace.js +0 -41
  219. package/aws/ses/server/SimpleEmail.d.ts +0 -81
  220. package/aws/ses/server/SimpleEmail.js +0 -296
  221. package/aws/ses/server/awsSes.d.ts +0 -4
  222. package/aws/ses/server/awsSes.js +0 -13
  223. package/aws/ses/server/index.d.ts +0 -3
  224. package/aws/ses/server/index.js +0 -3
  225. package/aws/sqs/server/AwsSqsNamespace.d.ts +0 -34
  226. package/aws/sqs/server/AwsSqsNamespace.js +0 -55
  227. package/aws/sqs/server/awsSqs.d.ts +0 -3
  228. package/aws/sqs/server/awsSqs.js +0 -12
  229. package/aws/sqs/server/index.d.ts +0 -2
  230. package/aws/sqs/server/index.js +0 -2
  231. package/aws/ssm/server/AwsSsmNamespace.d.ts +0 -11
  232. package/aws/ssm/server/AwsSsmNamespace.js +0 -52
  233. package/aws/ssm/server/awsSsm.d.ts +0 -3
  234. package/aws/ssm/server/awsSsm.js +0 -12
  235. package/aws/ssm/server/index.d.ts +0 -2
  236. package/aws/ssm/server/index.js +0 -2
  237. package/axios/deleteRequest.d.ts +0 -6
  238. package/axios/deleteRequest.js +0 -26
  239. package/axios/get.d.ts +0 -5
  240. package/axios/get.js +0 -24
  241. package/axios/index.d.ts +0 -3
  242. package/axios/index.js +0 -3
  243. package/axios/post.d.ts +0 -5
  244. package/axios/post.js +0 -25
  245. package/boolean/boolean.d.ts +0 -4
  246. package/boolean/boolean.js +0 -16
  247. package/boolean/index.d.ts +0 -1
  248. package/boolean/index.js +0 -1
  249. package/brightData/serpApi/server/brightDataSerpApi.d.ts +0 -10
  250. package/brightData/serpApi/server/brightDataSerpApi.js +0 -9
  251. package/brightData/serpApi/server/buildGoogleSerpUrl.d.ts +0 -32
  252. package/brightData/serpApi/server/buildGoogleSerpUrl.js +0 -112
  253. package/brightData/serpApi/server/buildGoogleTrendsUrl.d.ts +0 -22
  254. package/brightData/serpApi/server/buildGoogleTrendsUrl.js +0 -57
  255. package/brightData/serpApi/server/getAsyncRequestId.d.ts +0 -8
  256. package/brightData/serpApi/server/getAsyncRequestId.js +0 -32
  257. package/brightData/serpApi/server/getAsyncResults.d.ts +0 -7
  258. package/brightData/serpApi/server/getAsyncResults.js +0 -31
  259. package/brightData/serpApi/server/getRealtime.d.ts +0 -5
  260. package/brightData/serpApi/server/getRealtime.js +0 -26
  261. package/brightData/serpApi/server/index.d.ts +0 -6
  262. package/brightData/serpApi/server/index.js +0 -6
  263. package/brightData/server/brightData.d.ts +0 -15
  264. package/brightData/server/brightData.js +0 -15
  265. package/brightData/server/index.d.ts +0 -1
  266. package/brightData/server/index.js +0 -1
  267. package/brightData/webScraperIde/server/getBatch.d.ts +0 -7
  268. package/brightData/webScraperIde/server/getBatch.js +0 -24
  269. package/brightData/webScraperIde/server/getRealtime.d.ts +0 -7
  270. package/brightData/webScraperIde/server/getRealtime.js +0 -45
  271. package/brightData/webScraperIde/server/index.d.ts +0 -2
  272. package/brightData/webScraperIde/server/index.js +0 -2
  273. package/cache/server/cache.d.ts +0 -7
  274. package/cache/server/cache.js +0 -43
  275. package/cache/server/index.d.ts +0 -1
  276. package/cache/server/index.js +0 -1
  277. package/cache/server/test/cache.test.d.ts +0 -1
  278. package/cache/server/test/cache.test.js +0 -8
  279. package/crud/crud.d.ts +0 -7
  280. package/crud/crud.js +0 -6
  281. package/crud/index.d.ts +0 -1
  282. package/crud/index.js +0 -1
  283. package/crypto/getDecrypt.d.ts +0 -5
  284. package/crypto/getDecrypt.js +0 -10
  285. package/crypto/getEncrypt.d.ts +0 -5
  286. package/crypto/getEncrypt.js +0 -10
  287. package/crypto/getRandom.d.ts +0 -4
  288. package/crypto/getRandom.js +0 -8
  289. package/crypto/getSha256.d.ts +0 -5
  290. package/crypto/getSha256.js +0 -11
  291. package/crypto/index.d.ts +0 -4
  292. package/crypto/index.js +0 -4
  293. package/date/calculation.d.ts +0 -102
  294. package/date/calculation.js +0 -272
  295. package/date/date.d.ts +0 -36
  296. package/date/date.js +0 -20
  297. package/date/financialYear.d.ts +0 -19
  298. package/date/financialYear.js +0 -78
  299. package/date/format.d.ts +0 -85
  300. package/date/format.js +0 -160
  301. package/date/index.d.ts +0 -4
  302. package/date/index.js +0 -4
  303. package/environment/environment.d.ts +0 -34
  304. package/environment/environment.js +0 -79
  305. package/environment/index.d.ts +0 -1
  306. package/environment/index.js +0 -1
  307. package/eskimi/eskimi.d.ts +0 -49
  308. package/eskimi/eskimi.js +0 -93
  309. package/eskimi/index.d.ts +0 -1
  310. package/eskimi/index.js +0 -1
  311. package/eskimi/server/getAgeGroup.d.ts +0 -4
  312. package/eskimi/server/getAgeGroup.js +0 -11
  313. package/eskimi/server/getData.d.ts +0 -4
  314. package/eskimi/server/getData.js +0 -13
  315. package/eskimi/server/getDevice.d.ts +0 -4
  316. package/eskimi/server/getDevice.js +0 -11
  317. package/eskimi/server/getGender.d.ts +0 -4
  318. package/eskimi/server/getGender.js +0 -11
  319. package/eskimi/server/index.d.ts +0 -4
  320. package/eskimi/server/index.js +0 -4
  321. package/file/getFileKey.d.ts +0 -4
  322. package/file/getFileKey.js +0 -23
  323. package/file/index.d.ts +0 -1
  324. package/file/index.js +0 -1
  325. package/file/server/createDirectory.d.ts +0 -5
  326. package/file/server/createDirectory.js +0 -13
  327. package/file/server/index.d.ts +0 -1
  328. package/file/server/index.js +0 -1
  329. package/geo/countries.d.ts +0 -12
  330. package/geo/countries.js +0 -219
  331. package/geo/index.d.ts +0 -2
  332. package/geo/index.js +0 -2
  333. package/geo/languages.d.ts +0 -9
  334. package/geo/languages.js +0 -55
  335. package/googleAds/keywordPlanner/server/googleAdsKeywordPlanner.d.ts +0 -41
  336. package/googleAds/keywordPlanner/server/googleAdsKeywordPlanner.js +0 -55
  337. package/googleAds/keywordPlanner/server/index.d.ts +0 -1
  338. package/googleAds/keywordPlanner/server/index.js +0 -1
  339. package/googleAds/server/GoogleAdsNamespace.d.ts +0 -11
  340. package/googleAds/server/GoogleAdsNamespace.js +0 -30
  341. package/googleAds/server/googleAds.d.ts +0 -11
  342. package/googleAds/server/googleAds.js +0 -26
  343. package/googleAds/server/index.d.ts +0 -2
  344. package/googleAds/server/index.js +0 -2
  345. package/googleCloud/bigquery/server/GoogleCloudBigqueryNamespace.d.ts +0 -50
  346. package/googleCloud/bigquery/server/GoogleCloudBigqueryNamespace.js +0 -115
  347. package/googleCloud/bigquery/server/googleCloudBigquery.d.ts +0 -5
  348. package/googleCloud/bigquery/server/googleCloudBigquery.js +0 -41
  349. package/googleCloud/bigquery/server/index.d.ts +0 -3
  350. package/googleCloud/bigquery/server/index.js +0 -3
  351. package/googleCloud/bigquery/server/loadData.d.ts +0 -19
  352. package/googleCloud/bigquery/server/loadData.js +0 -14
  353. package/googleCloud/server/googleCloud.d.ts +0 -29
  354. package/googleCloud/server/googleCloud.js +0 -25
  355. package/googleCloud/server/index.d.ts +0 -1
  356. package/googleCloud/server/index.js +0 -1
  357. package/googleCloud/sheets/server/GoogleCloudSheetsNamespace.d.ts +0 -18
  358. package/googleCloud/sheets/server/GoogleCloudSheetsNamespace.js +0 -37
  359. package/googleCloud/sheets/server/getAssociatedData.d.ts +0 -10
  360. package/googleCloud/sheets/server/getAssociatedData.js +0 -39
  361. package/googleCloud/sheets/server/index.d.ts +0 -1
  362. package/googleCloud/sheets/server/index.js +0 -1
  363. package/googleCloud/storage/server/GoogleCloudStorageNamespace.d.ts +0 -22
  364. package/googleCloud/storage/server/GoogleCloudStorageNamespace.js +0 -66
  365. package/googleCloud/storage/server/googleCloudStorage.d.ts +0 -3
  366. package/googleCloud/storage/server/googleCloudStorage.js +0 -37
  367. package/googleCloud/storage/server/index.d.ts +0 -2
  368. package/googleCloud/storage/server/index.js +0 -2
  369. package/googlePageSpeed/server/GooglePageSpeedNamespace.d.ts +0 -11
  370. package/googlePageSpeed/server/GooglePageSpeedNamespace.js +0 -27
  371. package/googlePageSpeed/server/googlePageSpeed.d.ts +0 -19
  372. package/googlePageSpeed/server/googlePageSpeed.js +0 -38
  373. package/googlePageSpeed/server/index.d.ts +0 -2
  374. package/googlePageSpeed/server/index.js +0 -2
  375. package/googleSearchIncidents/server/googleSearchIncidents.d.ts +0 -69
  376. package/googleSearchIncidents/server/googleSearchIncidents.js +0 -42
  377. package/googleSearchIncidents/server/index.d.ts +0 -1
  378. package/googleSearchIncidents/server/index.js +0 -1
  379. package/greenDomain/server/greenDomain.d.ts +0 -21
  380. package/greenDomain/server/greenDomain.js +0 -37
  381. package/greenDomain/server/index.d.ts +0 -1
  382. package/greenDomain/server/index.js +0 -1
  383. package/inngest/index.d.ts +0 -1
  384. package/inngest/index.js +0 -1
  385. package/inngest/inngest.d.ts +0 -7
  386. package/inngest/inngest.js +0 -6
  387. package/json/getJsonNewline.d.ts +0 -1
  388. package/json/getJsonNewline.js +0 -9
  389. package/json/index.d.ts +0 -2
  390. package/json/index.js +0 -2
  391. package/json/isJson.d.ts +0 -1
  392. package/json/isJson.js +0 -22
  393. package/littleWarden/server/LittleWardenNamespace.d.ts +0 -11
  394. package/littleWarden/server/LittleWardenNamespace.js +0 -30
  395. package/littleWarden/server/getUrlStatus.d.ts +0 -4
  396. package/littleWarden/server/getUrlStatus.js +0 -12
  397. package/littleWarden/server/index.d.ts +0 -2
  398. package/littleWarden/server/index.js +0 -2
  399. package/littleWarden/server/littleWarden.d.ts +0 -30
  400. package/littleWarden/server/littleWarden.js +0 -65
  401. package/lumar/api/server/buildRequest.d.ts +0 -13
  402. package/lumar/api/server/buildRequest.js +0 -76
  403. package/lumar/api/server/getData.d.ts +0 -1
  404. package/lumar/api/server/getData.js +0 -9
  405. package/lumar/api/server/index.d.ts +0 -4
  406. package/lumar/api/server/index.js +0 -4
  407. package/lumar/api/server/initClient.d.ts +0 -6
  408. package/lumar/api/server/initClient.js +0 -22
  409. package/lumar/api/server/lumarApi.d.ts +0 -36
  410. package/lumar/api/server/lumarApi.js +0 -24
  411. package/lumar/graphql/server/columns.d.ts +0 -29
  412. package/lumar/graphql/server/columns.js +0 -28
  413. package/lumar/graphql/server/getData.d.ts +0 -1
  414. package/lumar/graphql/server/getData.js +0 -15
  415. package/lumar/graphql/server/index.d.ts +0 -11
  416. package/lumar/graphql/server/index.js +0 -11
  417. package/lumar/graphql/server/initClient.d.ts +0 -5
  418. package/lumar/graphql/server/initClient.js +0 -21
  419. package/lumar/graphql/server/lumarGraphql.d.ts +0 -27
  420. package/lumar/graphql/server/lumarGraphql.js +0 -27
  421. package/lumar/graphql/server/queries/crawl.d.ts +0 -5
  422. package/lumar/graphql/server/queries/crawl.js +0 -1
  423. package/lumar/graphql/server/queries/getCrawls.d.ts +0 -18
  424. package/lumar/graphql/server/queries/getCrawls.js +0 -31
  425. package/lumar/graphql/server/queries/getReportDifferences.d.ts +0 -24
  426. package/lumar/graphql/server/queries/getReportDifferences.js +0 -35
  427. package/lumar/graphql/server/queries/getRows.d.ts +0 -38
  428. package/lumar/graphql/server/queries/getRows.js +0 -55
  429. package/lumar/graphql/server/queries/getTotals.d.ts +0 -25
  430. package/lumar/graphql/server/queries/getTotals.js +0 -38
  431. package/lumar/graphql/server/queries/row.d.ts +0 -157
  432. package/lumar/graphql/server/queries/row.js +0 -1
  433. package/lumar/graphql/server/reportTemplates.d.ts +0 -68
  434. package/lumar/graphql/server/reportTemplates.js +0 -67
  435. package/myTarget/server/index.d.ts +0 -1
  436. package/myTarget/server/index.js +0 -1
  437. package/myTarget/server/myTarget.d.ts +0 -5
  438. package/myTarget/server/myTarget.js +0 -13
  439. package/nextAuth/index.d.ts +0 -2
  440. package/nextAuth/index.js +0 -2
  441. package/nextAuth/isSessionReady.d.ts +0 -1
  442. package/nextAuth/isSessionReady.js +0 -3
  443. package/nextAuth/nextAuth.d.ts +0 -7
  444. package/nextAuth/nextAuth.js +0 -6
  445. package/nextJs/client/LazyLoad.d.ts +0 -8
  446. package/nextJs/client/LazyLoad.js +0 -7
  447. package/nextJs/client/index.d.ts +0 -1
  448. package/nextJs/client/index.js +0 -1
  449. package/nextJs/index.d.ts +0 -1
  450. package/nextJs/index.js +0 -1
  451. package/nextJs/nextJs.d.ts +0 -12
  452. package/nextJs/nextJs.js +0 -8
  453. package/number/format.d.ts +0 -12
  454. package/number/format.js +0 -16
  455. package/number/formatCurrency.d.ts +0 -5
  456. package/number/formatCurrency.js +0 -17
  457. package/number/getDecimal.d.ts +0 -4
  458. package/number/getDecimal.js +0 -8
  459. package/number/getNumber.d.ts +0 -4
  460. package/number/getNumber.js +0 -44
  461. package/number/getPercent.d.ts +0 -1
  462. package/number/getPercent.js +0 -11
  463. package/number/getPercentIncrease.d.ts +0 -4
  464. package/number/getPercentIncrease.js +0 -12
  465. package/number/getSafeDivide.d.ts +0 -11
  466. package/number/getSafeDivide.js +0 -16
  467. package/number/index.d.ts +0 -7
  468. package/number/index.js +0 -7
  469. package/object/index.d.ts +0 -1
  470. package/object/index.js +0 -1
  471. package/object/replaceKeys.js +0 -21
  472. package/onePassword/server/OnePasswordNamespace.d.ts +0 -12
  473. package/onePassword/server/OnePasswordNamespace.js +0 -39
  474. package/onePassword/server/index.d.ts +0 -2
  475. package/onePassword/server/index.js +0 -2
  476. package/onePassword/server/onePassword.d.ts +0 -8
  477. package/onePassword/server/onePassword.js +0 -21
  478. package/openAi/server/OpenAiNamespace.d.ts +0 -11
  479. package/openAi/server/OpenAiNamespace.js +0 -35
  480. package/openAi/server/index.d.ts +0 -2
  481. package/openAi/server/index.js +0 -2
  482. package/openAi/server/openAi.d.ts +0 -6
  483. package/openAi/server/openAi.js +0 -26
  484. package/prisma/getDecimal.d.ts +0 -4
  485. package/prisma/getDecimal.js +0 -16
  486. package/prisma/index.d.ts +0 -1
  487. package/prisma/index.js +0 -1
  488. package/prisma/server/PrismaNamespace.d.ts +0 -7
  489. package/prisma/server/PrismaNamespace.js +0 -62
  490. package/prisma/server/index.d.ts +0 -2
  491. package/prisma/server/index.js +0 -2
  492. package/prisma/server/prisma.d.ts +0 -20
  493. package/prisma/server/prisma.js +0 -26
  494. package/snapchat/server/SnapchatNamespace.d.ts +0 -15
  495. package/snapchat/server/SnapchatNamespace.js +0 -22
  496. package/snapchat/server/index.d.ts +0 -2
  497. package/snapchat/server/index.js +0 -2
  498. package/snapchat/server/snapchat.d.ts +0 -7
  499. package/snapchat/server/snapchat.js +0 -26
  500. package/sorting/byNumberAscending.d.ts +0 -4
  501. package/sorting/byNumberAscending.js +0 -15
  502. package/sorting/byNumberDescending.d.ts +0 -4
  503. package/sorting/byNumberDescending.js +0 -18
  504. package/sorting/byStringAscending.d.ts +0 -4
  505. package/sorting/byStringAscending.js +0 -12
  506. package/sorting/byStringDescending.d.ts +0 -4
  507. package/sorting/byStringDescending.js +0 -12
  508. package/sorting/index.d.ts +0 -1
  509. package/sorting/index.js +0 -1
  510. package/sorting/sorting.d.ts +0 -4
  511. package/sorting/sorting.js +0 -4
  512. package/stream/server/index.d.ts +0 -1
  513. package/stream/server/index.js +0 -1
  514. package/stream/server/sort.d.ts +0 -13
  515. package/stream/server/sort.js +0 -47
  516. package/string/getCapitalised.d.ts +0 -5
  517. package/string/getCapitalised.js +0 -21
  518. package/string/getClean.d.ts +0 -18
  519. package/string/getClean.js +0 -47
  520. package/string/getFolder.d.ts +0 -4
  521. package/string/getFolder.js +0 -8
  522. package/string/getProperCase.d.ts +0 -11
  523. package/string/getProperCase.js +0 -43
  524. package/string/getString.d.ts +0 -4
  525. package/string/getString.js +0 -27
  526. package/string/getStringFromStream.d.ts +0 -5
  527. package/string/getStringFromStream.js +0 -13
  528. package/string/getUnescaped.d.ts +0 -6
  529. package/string/getUnescaped.js +0 -19
  530. package/string/getWithoutAccents.d.ts +0 -5
  531. package/string/getWithoutAccents.js +0 -9
  532. package/string/getWithoutHtmlTags.d.ts +0 -5
  533. package/string/getWithoutHtmlTags.js +0 -8
  534. package/string/getWithoutPunctuation.d.ts +0 -5
  535. package/string/getWithoutPunctuation.js +0 -9
  536. package/string/getWithoutUnderscores.d.ts +0 -4
  537. package/string/getWithoutUnderscores.js +0 -7
  538. package/string/getWithoutWhitespaces.d.ts +0 -5
  539. package/string/getWithoutWhitespaces.js +0 -9
  540. package/string/index.d.ts +0 -13
  541. package/string/index.js +0 -13
  542. package/string/reservedWords.d.ts +0 -5
  543. package/string/reservedWords.js +0 -22
  544. package/swr/client/index.d.ts +0 -1
  545. package/swr/client/index.js +0 -1
  546. package/swr/client/swr.d.ts +0 -42
  547. package/swr/client/swr.js +0 -50
  548. package/upTimeRobot/server/UpTimeRobotNamespace.d.ts +0 -31
  549. package/upTimeRobot/server/UpTimeRobotNamespace.js +0 -40
  550. package/upTimeRobot/server/index.d.ts +0 -2
  551. package/upTimeRobot/server/index.js +0 -2
  552. package/upTimeRobot/server/upTimeRobot.d.ts +0 -38
  553. package/upTimeRobot/server/upTimeRobot.js +0 -59
  554. package/url/index.d.ts +0 -1
  555. package/url/index.js +0 -1
  556. package/url/server/index.d.ts +0 -1
  557. package/url/server/index.js +0 -1
  558. package/url/server/writeUrlContents.d.ts +0 -6
  559. package/url/server/writeUrlContents.js +0 -35
  560. package/url/url.d.ts +0 -26
  561. package/url/url.js +0 -59
  562. package/util/defaultTo.d.ts +0 -4
  563. package/util/defaultTo.js +0 -37
  564. package/util/getClean.d.ts +0 -11
  565. package/util/getClean.js +0 -19
  566. package/util/getError.d.ts +0 -1
  567. package/util/getError.js +0 -10
  568. package/util/getWithoutHash.d.ts +0 -4
  569. package/util/getWithoutHash.js +0 -14
  570. package/util/getWithoutParameter.d.ts +0 -4
  571. package/util/getWithoutParameter.js +0 -14
  572. package/util/index.d.ts +0 -7
  573. package/util/index.js +0 -7
  574. package/util/isUndefined.d.ts +0 -4
  575. package/util/isUndefined.js +0 -9
  576. package/util/promiseChunks.d.ts +0 -5
  577. package/util/promiseChunks.js +0 -21
  578. package/util/server/getBrotliCompressed.d.ts +0 -5
  579. package/util/server/getBrotliCompressed.js +0 -16
  580. package/util/server/getBrotliDecompressed.d.ts +0 -5
  581. package/util/server/getBrotliDecompressed.js +0 -17
  582. package/util/server/getGzipCompressed.d.ts +0 -5
  583. package/util/server/getGzipCompressed.js +0 -16
  584. package/util/server/getGzipDecompressed.d.ts +0 -5
  585. package/util/server/getGzipDecompressed.js +0 -17
  586. package/util/server/index.d.ts +0 -4
  587. package/util/server/index.js +0 -4
  588. package/util/sleep.d.ts +0 -1
  589. package/util/sleep.js +0 -3
  590. package/webWorker/index.d.ts +0 -1
  591. package/webWorker/index.js +0 -1
  592. package/webWorker/webWorker.d.ts +0 -8
  593. package/webWorker/webWorker.js +0 -7
  594. package/xml/server/getXml.d.ts +0 -1
  595. package/xml/server/getXml.js +0 -14
  596. package/xml/server/index.d.ts +0 -1
  597. package/xml/server/index.js +0 -1
@@ -1,4 +0,0 @@
1
- export * from "./getAgeGroup";
2
- export * from "./getGender";
3
- export * from "./getDevice";
4
- export * from "./getData";
@@ -1,4 +0,0 @@
1
- export * from "./getAgeGroup";
2
- export * from "./getGender";
3
- export * from "./getDevice";
4
- export * from "./getData";
@@ -1,4 +0,0 @@
1
- /**
2
- * Create a file key from the inputs so it can handle objects/number/etc.
3
- */
4
- export declare const getFileKey: (inputs: any[]) => string;
@@ -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,5 +0,0 @@
1
- /**
2
- * Create a directory recursively.
3
- * Requires fs-extra
4
- */
5
- export declare const createDirectory: (filePath: string) => Promise<unknown>;
@@ -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
- };
@@ -1 +0,0 @@
1
- export * from "./createDirectory";
@@ -1 +0,0 @@
1
- export * from "./createDirectory";
@@ -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
@@ -1,2 +0,0 @@
1
- export * from "./countries";
2
- export * from "./languages";
package/geo/index.js DELETED
@@ -1,2 +0,0 @@
1
- export * from "./countries";
2
- export * from "./languages";
@@ -1,9 +0,0 @@
1
- export type Language = {
2
- name: string;
3
- iso2: string;
4
- googleAdsId: number | null;
5
- };
6
- /**
7
- * https://docs.google.com/spreadsheets/d/1nrQ9h1n9p0Mab81_FKGqIw4fTOMOOjpcFrf0oSQvHIw/edit?gid=0#gid=0
8
- */
9
- export declare const languages: Language[];
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
- };
@@ -1,2 +0,0 @@
1
- export * from "./googleAds";
2
- export * from "./GoogleAdsNamespace";
@@ -1,2 +0,0 @@
1
- export * from "./googleAds";
2
- export * from "./GoogleAdsNamespace";