@8ms/helpers 2.4.24 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (374) hide show
  1. package/dist/_class/BaseNamespace.cjs +4 -9
  2. package/dist/_class/BaseNamespace.d.cts +2 -4
  3. package/dist/_class/BaseNamespace.d.mts +2 -4
  4. package/dist/_class/BaseNamespace.mjs +4 -9
  5. package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.cjs → AwsCloudWatchLog.cjs} +9 -10
  6. package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.d.cts → AwsCloudWatchLog.d.cts} +5 -6
  7. package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.d.mts → AwsCloudWatchLog.d.mts} +5 -6
  8. package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.mjs → AwsCloudWatchLog.mjs} +9 -10
  9. package/dist/aws/cloudWatchLog/server/index.cjs +2 -4
  10. package/dist/aws/cloudWatchLog/server/index.d.cts +2 -3
  11. package/dist/aws/cloudWatchLog/server/index.d.mts +2 -3
  12. package/dist/aws/cloudWatchLog/server/index.mjs +2 -3
  13. package/dist/aws/cloudWatchMetric/server/{AwsCloudWatchMetricNamespace.cjs → AwsCloudWatchMetric.cjs} +11 -10
  14. package/dist/aws/cloudWatchMetric/server/{AwsCloudWatchMetricNamespace.d.cts → AwsCloudWatchMetric.d.cts} +5 -6
  15. package/dist/aws/cloudWatchMetric/server/{AwsCloudWatchMetricNamespace.d.mts → AwsCloudWatchMetric.d.mts} +5 -6
  16. package/dist/aws/cloudWatchMetric/server/{AwsCloudWatchMetricNamespace.mjs → AwsCloudWatchMetric.mjs} +10 -8
  17. package/dist/aws/cloudWatchMetric/server/index.cjs +2 -4
  18. package/dist/aws/cloudWatchMetric/server/index.d.cts +2 -3
  19. package/dist/aws/cloudWatchMetric/server/index.d.mts +2 -3
  20. package/dist/aws/cloudWatchMetric/server/index.mjs +2 -3
  21. package/dist/aws/ec2/server/{AwsEc2Namespace.cjs → AwsEc2.cjs} +9 -7
  22. package/dist/aws/ec2/server/{AwsEc2Namespace.d.cts → AwsEc2.d.cts} +5 -6
  23. package/dist/aws/ec2/server/{AwsEc2Namespace.d.mts → AwsEc2.d.mts} +5 -6
  24. package/dist/aws/ec2/server/{AwsEc2Namespace.mjs → AwsEc2.mjs} +9 -7
  25. package/dist/aws/ec2/server/index.cjs +2 -4
  26. package/dist/aws/ec2/server/index.d.cts +2 -3
  27. package/dist/aws/ec2/server/index.d.mts +2 -3
  28. package/dist/aws/ec2/server/index.mjs +2 -3
  29. package/dist/aws/ecs/server/{AwsEcsNamespace.cjs → AwsEcs.cjs} +9 -9
  30. package/dist/aws/ecs/server/{AwsEcsNamespace.d.cts → AwsEcs.d.cts} +5 -6
  31. package/dist/aws/ecs/server/{AwsEcsNamespace.d.mts → AwsEcs.d.mts} +5 -6
  32. package/dist/aws/ecs/server/{AwsEcsNamespace.mjs → AwsEcs.mjs} +9 -9
  33. package/dist/aws/ecs/server/index.cjs +2 -4
  34. package/dist/aws/ecs/server/index.d.cts +2 -3
  35. package/dist/aws/ecs/server/index.d.mts +2 -3
  36. package/dist/aws/ecs/server/index.mjs +2 -3
  37. package/dist/aws/glue/server/{AwsGlueNamespace.cjs → AwsGlue.cjs} +9 -6
  38. package/dist/aws/glue/server/{AwsGlueNamespace.d.cts → AwsGlue.d.cts} +5 -6
  39. package/dist/aws/glue/server/{AwsGlueNamespace.d.mts → AwsGlue.d.mts} +5 -6
  40. package/dist/aws/glue/server/{AwsGlueNamespace.mjs → AwsGlue.mjs} +9 -6
  41. package/dist/aws/glue/server/index.cjs +2 -4
  42. package/dist/aws/glue/server/index.d.cts +2 -3
  43. package/dist/aws/glue/server/index.d.mts +2 -3
  44. package/dist/aws/glue/server/index.mjs +2 -3
  45. package/dist/aws/lambda/server/{AwsLambdaNamespace.cjs → AwsLambda.cjs} +9 -6
  46. package/dist/aws/lambda/server/{AwsLambdaNamespace.d.cts → AwsLambda.d.cts} +5 -6
  47. package/dist/aws/lambda/server/{AwsLambdaNamespace.d.mts → AwsLambda.d.mts} +5 -6
  48. package/dist/aws/lambda/server/{AwsLambdaNamespace.mjs → AwsLambda.mjs} +9 -6
  49. package/dist/aws/lambda/server/getHandlerPath.cjs +7 -0
  50. package/dist/aws/lambda/server/getHandlerPath.d.cts +4 -0
  51. package/dist/aws/lambda/server/getHandlerPath.d.mts +4 -0
  52. package/dist/aws/lambda/server/getHandlerPath.mjs +6 -0
  53. package/dist/aws/lambda/server/index.cjs +4 -5
  54. package/dist/aws/lambda/server/index.d.cts +3 -3
  55. package/dist/aws/lambda/server/index.d.mts +3 -3
  56. package/dist/aws/lambda/server/index.mjs +3 -3
  57. package/dist/aws/s3/server/{AwsS3Namespace.cjs → AwsS3.cjs} +12 -31
  58. package/dist/aws/s3/server/{AwsS3Namespace.d.cts → AwsS3.d.cts} +6 -7
  59. package/dist/aws/s3/server/{AwsS3Namespace.d.mts → AwsS3.d.mts} +6 -7
  60. package/dist/aws/s3/server/{AwsS3Namespace.mjs → AwsS3.mjs} +10 -29
  61. package/dist/aws/s3/server/awsS3File.cjs +12 -0
  62. package/dist/aws/s3/server/awsS3File.d.cts +12 -0
  63. package/dist/aws/s3/server/awsS3File.d.mts +12 -0
  64. package/dist/aws/s3/server/awsS3File.mjs +11 -0
  65. package/dist/aws/s3/server/index.cjs +4 -5
  66. package/dist/aws/s3/server/index.d.cts +3 -3
  67. package/dist/aws/s3/server/index.d.mts +3 -3
  68. package/dist/aws/s3/server/index.mjs +3 -3
  69. package/dist/aws/server/getAwsConfig.cjs +15 -0
  70. package/dist/aws/server/getAwsConfig.d.cts +18 -0
  71. package/dist/aws/server/getAwsConfig.d.mts +18 -0
  72. package/dist/aws/server/getAwsConfig.mjs +14 -0
  73. package/dist/aws/server/index.cjs +2 -2
  74. package/dist/aws/server/index.d.cts +2 -2
  75. package/dist/aws/server/index.d.mts +2 -2
  76. package/dist/aws/server/index.mjs +2 -2
  77. package/dist/aws/ses/server/{AwsSesNamespace.cjs → AwsSes.cjs} +9 -6
  78. package/dist/aws/ses/server/{AwsSesNamespace.d.cts → AwsSes.d.cts} +5 -6
  79. package/dist/aws/ses/server/{AwsSesNamespace.d.mts → AwsSes.d.mts} +5 -6
  80. package/dist/aws/ses/server/{AwsSesNamespace.mjs → AwsSes.mjs} +9 -6
  81. package/dist/aws/ses/server/index.cjs +2 -4
  82. package/dist/aws/ses/server/index.d.cts +2 -3
  83. package/dist/aws/ses/server/index.d.mts +2 -3
  84. package/dist/aws/ses/server/index.mjs +2 -3
  85. package/dist/aws/sqs/server/{AwsSqsNamespace.cjs → AwsSqs.cjs} +9 -8
  86. package/dist/aws/sqs/server/{AwsSqsNamespace.d.cts → AwsSqs.d.cts} +5 -6
  87. package/dist/aws/sqs/server/{AwsSqsNamespace.d.mts → AwsSqs.d.mts} +5 -6
  88. package/dist/aws/sqs/server/{AwsSqsNamespace.mjs → AwsSqs.mjs} +9 -8
  89. package/dist/aws/sqs/server/index.cjs +2 -4
  90. package/dist/aws/sqs/server/index.d.cts +2 -3
  91. package/dist/aws/sqs/server/index.d.mts +2 -3
  92. package/dist/aws/sqs/server/index.mjs +2 -3
  93. package/dist/aws/ssm/server/{AwsSsmNamespace.cjs → AwsSsm.cjs} +14 -14
  94. package/dist/aws/ssm/server/AwsSsm.d.cts +13 -0
  95. package/dist/aws/ssm/server/AwsSsm.d.mts +13 -0
  96. package/dist/aws/ssm/server/AwsSsm.mjs +34 -0
  97. package/dist/aws/ssm/server/index.cjs +2 -4
  98. package/dist/aws/ssm/server/index.d.cts +2 -3
  99. package/dist/aws/ssm/server/index.d.mts +2 -3
  100. package/dist/aws/ssm/server/index.mjs +2 -3
  101. package/dist/brightData/webScraperIde/server/getBatch.cjs +3 -2
  102. package/dist/brightData/webScraperIde/server/getBatch.d.cts +5 -1
  103. package/dist/brightData/webScraperIde/server/getBatch.d.mts +5 -1
  104. package/dist/brightData/webScraperIde/server/getBatch.mjs +3 -2
  105. package/dist/drizzle/server/{DrizzleNamespace.cjs → Drizzle.cjs} +5 -5
  106. package/dist/drizzle/server/{drizzle.d.cts → Drizzle.d.cts} +8 -4
  107. package/dist/drizzle/server/{drizzle.d.mts → Drizzle.d.mts} +8 -4
  108. package/dist/drizzle/server/{DrizzleNamespace.mjs → Drizzle.mjs} +5 -5
  109. package/dist/drizzle/server/index.cjs +2 -4
  110. package/dist/drizzle/server/index.d.cts +2 -3
  111. package/dist/drizzle/server/index.d.mts +2 -3
  112. package/dist/drizzle/server/index.mjs +2 -3
  113. package/dist/environment/environment.cjs +2 -2
  114. package/dist/environment/environment.mjs +2 -2
  115. package/dist/googleAds/server/{GoogleAdsNamespace.cjs → GoogleAds.cjs} +9 -10
  116. package/dist/googleAds/server/{GoogleAdsNamespace.d.cts → GoogleAds.d.cts} +9 -5
  117. package/dist/googleAds/server/{GoogleAdsNamespace.d.mts → GoogleAds.d.mts} +9 -5
  118. package/dist/googleAds/server/GoogleAds.mjs +28 -0
  119. package/dist/googleAds/server/index.cjs +2 -4
  120. package/dist/googleAds/server/index.d.cts +2 -3
  121. package/dist/googleAds/server/index.d.mts +2 -3
  122. package/dist/googleAds/server/index.mjs +2 -3
  123. package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.cjs → GoogleCloudBigquery.cjs} +27 -33
  124. package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.d.cts → GoogleCloudBigquery.d.cts} +14 -16
  125. package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.d.mts → GoogleCloudBigquery.d.mts} +14 -16
  126. package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.mjs → GoogleCloudBigquery.mjs} +27 -33
  127. package/dist/googleCloud/bigquery/server/getHandlerPath.cjs +7 -0
  128. package/dist/googleCloud/bigquery/server/getHandlerPath.d.cts +4 -0
  129. package/dist/googleCloud/bigquery/server/getHandlerPath.d.mts +4 -0
  130. package/dist/googleCloud/bigquery/server/getHandlerPath.mjs +6 -0
  131. package/dist/googleCloud/bigquery/server/index.cjs +4 -5
  132. package/dist/googleCloud/bigquery/server/index.d.cts +3 -3
  133. package/dist/googleCloud/bigquery/server/index.d.mts +3 -3
  134. package/dist/googleCloud/bigquery/server/index.mjs +3 -3
  135. package/dist/googleCloud/bigquery/server/loadData.d.cts +2 -2
  136. package/dist/googleCloud/bigquery/server/loadData.d.mts +2 -2
  137. package/dist/googleCloud/server/getGoogleCloudConfig.cjs +81 -0
  138. package/dist/googleCloud/server/getGoogleCloudConfig.d.cts +77 -0
  139. package/dist/googleCloud/server/getGoogleCloudConfig.d.mts +77 -0
  140. package/dist/googleCloud/server/getGoogleCloudConfig.mjs +78 -0
  141. package/dist/googleCloud/server/index.cjs +4 -2
  142. package/dist/googleCloud/server/index.d.cts +2 -2
  143. package/dist/googleCloud/server/index.d.mts +2 -2
  144. package/dist/googleCloud/server/index.mjs +2 -2
  145. package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.cjs → GoogleCloudSheets.cjs} +10 -8
  146. package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.d.cts → GoogleCloudSheets.d.cts} +8 -8
  147. package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.d.mts → GoogleCloudSheets.d.mts} +8 -8
  148. package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.mjs → GoogleCloudSheets.mjs} +10 -8
  149. package/dist/googleCloud/sheets/server/index.cjs +2 -2
  150. package/dist/googleCloud/sheets/server/index.d.cts +2 -2
  151. package/dist/googleCloud/sheets/server/index.d.mts +2 -2
  152. package/dist/googleCloud/sheets/server/index.mjs +2 -2
  153. package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.cjs → GoogleCloudStorage.cjs} +15 -10
  154. package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.d.cts → GoogleCloudStorage.d.cts} +10 -8
  155. package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.d.mts → GoogleCloudStorage.d.mts} +10 -8
  156. package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.mjs → GoogleCloudStorage.mjs} +15 -10
  157. package/dist/googleCloud/storage/server/index.cjs +2 -4
  158. package/dist/googleCloud/storage/server/index.d.cts +2 -3
  159. package/dist/googleCloud/storage/server/index.d.mts +2 -3
  160. package/dist/googleCloud/storage/server/index.mjs +2 -3
  161. package/dist/googlePageSpeed/server/{GooglePageSpeedNamespace.cjs → GooglePageSpeed.cjs} +8 -7
  162. package/dist/googlePageSpeed/server/GooglePageSpeed.d.cts +19 -0
  163. package/dist/googlePageSpeed/server/GooglePageSpeed.d.mts +19 -0
  164. package/dist/googlePageSpeed/server/{GooglePageSpeedNamespace.mjs → GooglePageSpeed.mjs} +7 -6
  165. package/dist/googlePageSpeed/server/category.cjs +11 -0
  166. package/dist/googlePageSpeed/server/category.d.cts +11 -0
  167. package/dist/googlePageSpeed/server/category.d.mts +11 -0
  168. package/dist/googlePageSpeed/server/category.mjs +10 -0
  169. package/dist/googlePageSpeed/server/index.cjs +6 -6
  170. package/dist/googlePageSpeed/server/index.d.cts +4 -3
  171. package/dist/googlePageSpeed/server/index.d.mts +4 -3
  172. package/dist/googlePageSpeed/server/index.mjs +4 -3
  173. package/dist/googlePageSpeed/server/strategy.cjs +9 -0
  174. package/dist/googlePageSpeed/server/strategy.d.cts +9 -0
  175. package/dist/googlePageSpeed/server/strategy.d.mts +9 -0
  176. package/dist/googlePageSpeed/server/strategy.mjs +8 -0
  177. package/dist/inngest/index.cjs +2 -2
  178. package/dist/inngest/index.d.cts +1 -1
  179. package/dist/inngest/index.d.mts +1 -1
  180. package/dist/inngest/index.mjs +1 -1
  181. package/dist/inngest/{inngest.cjs → inngestState.cjs} +1 -1
  182. package/dist/inngest/{inngest.d.mts → inngestState.d.cts} +1 -1
  183. package/dist/inngest/{inngest.d.cts → inngestState.d.mts} +1 -1
  184. package/dist/inngest/{inngest.mjs → inngestState.mjs} +1 -1
  185. package/dist/littleWarden/server/{LittleWardenNamespace.cjs → LittleWarden.cjs} +5 -4
  186. package/dist/littleWarden/server/{LittleWardenNamespace.d.cts → LittleWarden.d.cts} +7 -5
  187. package/dist/littleWarden/server/{LittleWardenNamespace.d.mts → LittleWarden.d.mts} +7 -5
  188. package/dist/littleWarden/server/{LittleWardenNamespace.mjs → LittleWarden.mjs} +5 -4
  189. package/dist/littleWarden/server/index.cjs +7 -8
  190. package/dist/littleWarden/server/index.d.cts +3 -3
  191. package/dist/littleWarden/server/index.d.mts +3 -3
  192. package/dist/littleWarden/server/index.mjs +3 -3
  193. package/dist/littleWarden/server/littleWardenAttrs.cjs +38 -0
  194. package/dist/littleWarden/server/{littleWarden.d.cts → littleWardenAttrs.d.cts} +2 -7
  195. package/dist/littleWarden/server/{littleWarden.d.mts → littleWardenAttrs.d.mts} +2 -7
  196. package/dist/littleWarden/server/littleWardenAttrs.mjs +33 -0
  197. package/dist/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.cts +7 -0
  198. package/dist/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.mts +7 -0
  199. package/dist/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.cts +35 -0
  200. package/dist/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.mts +35 -0
  201. package/dist/node_modules/@smithy/types/dist-types/identity/identity.d.cts +18 -0
  202. package/dist/node_modules/@smithy/types/dist-types/identity/identity.d.mts +18 -0
  203. package/dist/node_modules/@smithy/types/dist-types/index.d.cts +2 -0
  204. package/dist/node_modules/@smithy/types/dist-types/index.d.mts +2 -0
  205. package/dist/onePassword/server/OnePassword.cjs +44 -0
  206. package/dist/onePassword/server/OnePassword.d.cts +21 -0
  207. package/dist/onePassword/server/OnePassword.d.mts +21 -0
  208. package/dist/onePassword/server/{OnePasswordNamespace.mjs → OnePassword.mjs} +19 -13
  209. package/dist/onePassword/server/getIdsFromUrl.cjs +2 -2
  210. package/dist/onePassword/server/getIdsFromUrl.d.cts +2 -2
  211. package/dist/onePassword/server/getIdsFromUrl.d.mts +2 -2
  212. package/dist/onePassword/server/getIdsFromUrl.mjs +2 -2
  213. package/dist/onePassword/server/index.cjs +2 -4
  214. package/dist/onePassword/server/index.d.cts +2 -3
  215. package/dist/onePassword/server/index.d.mts +2 -3
  216. package/dist/onePassword/server/index.mjs +2 -3
  217. package/dist/openAi/server/{OpenAiNamespace.cjs → OpenAi.cjs} +10 -7
  218. package/dist/openAi/server/{OpenAiNamespace.d.cts → OpenAi.d.cts} +7 -5
  219. package/dist/openAi/server/{OpenAiNamespace.d.mts → OpenAi.d.mts} +7 -5
  220. package/dist/openAi/server/{OpenAiNamespace.mjs → OpenAi.mjs} +10 -7
  221. package/dist/openAi/server/index.cjs +2 -4
  222. package/dist/openAi/server/index.d.cts +2 -3
  223. package/dist/openAi/server/index.d.mts +2 -3
  224. package/dist/openAi/server/index.mjs +2 -3
  225. package/dist/snapchat/server/{SnapchatNamespace.cjs → Snapchat.cjs} +5 -4
  226. package/dist/snapchat/server/Snapchat.d.cts +22 -0
  227. package/dist/snapchat/server/Snapchat.d.mts +22 -0
  228. package/dist/snapchat/server/{SnapchatNamespace.mjs → Snapchat.mjs} +5 -4
  229. package/dist/snapchat/server/index.cjs +2 -4
  230. package/dist/snapchat/server/index.d.cts +2 -3
  231. package/dist/snapchat/server/index.d.mts +2 -3
  232. package/dist/snapchat/server/index.mjs +2 -3
  233. package/dist/swr/client/swr.cjs +1 -1
  234. package/dist/swr/client/swr.mjs +1 -1
  235. package/dist/upTimeRobot/server/UpTimeRobot.cjs +34 -0
  236. package/dist/upTimeRobot/server/{UpTimeRobotNamespace.d.cts → UpTimeRobot.d.cts} +7 -5
  237. package/dist/upTimeRobot/server/{UpTimeRobotNamespace.d.mts → UpTimeRobot.d.mts} +7 -5
  238. package/dist/upTimeRobot/server/UpTimeRobot.mjs +33 -0
  239. package/dist/upTimeRobot/server/index.cjs +12 -9
  240. package/dist/upTimeRobot/server/index.d.cts +7 -3
  241. package/dist/upTimeRobot/server/index.d.mts +7 -3
  242. package/dist/upTimeRobot/server/index.mjs +7 -3
  243. package/dist/upTimeRobot/server/logType.cjs +10 -0
  244. package/dist/upTimeRobot/server/logType.d.cts +10 -0
  245. package/dist/upTimeRobot/server/logType.d.mts +10 -0
  246. package/dist/upTimeRobot/server/logType.mjs +9 -0
  247. package/dist/upTimeRobot/server/monitorStatus.cjs +11 -0
  248. package/dist/upTimeRobot/server/monitorStatus.d.cts +11 -0
  249. package/dist/upTimeRobot/server/monitorStatus.d.mts +11 -0
  250. package/dist/upTimeRobot/server/monitorStatus.mjs +10 -0
  251. package/dist/upTimeRobot/server/monitorSubTypes.cjs +13 -0
  252. package/dist/upTimeRobot/server/monitorSubTypes.d.cts +13 -0
  253. package/dist/upTimeRobot/server/monitorSubTypes.d.mts +13 -0
  254. package/dist/upTimeRobot/server/monitorSubTypes.mjs +12 -0
  255. package/dist/upTimeRobot/server/monitorType.cjs +11 -0
  256. package/dist/upTimeRobot/server/monitorType.d.cts +11 -0
  257. package/dist/upTimeRobot/server/monitorType.d.mts +11 -0
  258. package/dist/upTimeRobot/server/monitorType.mjs +10 -0
  259. package/dist/upTimeRobot/server/requestStatus.cjs +8 -0
  260. package/dist/upTimeRobot/server/requestStatus.d.cts +8 -0
  261. package/dist/upTimeRobot/server/requestStatus.d.mts +8 -0
  262. package/dist/upTimeRobot/server/requestStatus.mjs +7 -0
  263. package/dist/url/url.cjs +1 -1
  264. package/dist/url/url.mjs +1 -1
  265. package/dist/util/defaultTo.cjs +1 -1
  266. package/dist/util/defaultTo.mjs +1 -1
  267. package/dist/webWorker/index.cjs +2 -2
  268. package/dist/webWorker/index.d.cts +1 -1
  269. package/dist/webWorker/index.d.mts +1 -1
  270. package/dist/webWorker/index.mjs +1 -1
  271. package/dist/webWorker/{webWorker.cjs → webWorkerState.cjs} +1 -1
  272. package/dist/webWorker/{webWorker.d.cts → webWorkerState.d.cts} +1 -1
  273. package/dist/webWorker/{webWorker.d.mts → webWorkerState.d.mts} +1 -1
  274. package/dist/webWorker/{webWorker.mjs → webWorkerState.mjs} +1 -1
  275. package/package.json +138 -152
  276. package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.cjs +0 -14
  277. package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.d.cts +0 -7
  278. package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.d.mts +0 -7
  279. package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.mjs +0 -13
  280. package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.cjs +0 -14
  281. package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.d.cts +0 -7
  282. package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.d.mts +0 -7
  283. package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.mjs +0 -13
  284. package/dist/aws/ec2/server/awsEc2.cjs +0 -14
  285. package/dist/aws/ec2/server/awsEc2.d.cts +0 -7
  286. package/dist/aws/ec2/server/awsEc2.d.mts +0 -7
  287. package/dist/aws/ec2/server/awsEc2.mjs +0 -13
  288. package/dist/aws/ecs/server/awsEcs.cjs +0 -14
  289. package/dist/aws/ecs/server/awsEcs.d.cts +0 -7
  290. package/dist/aws/ecs/server/awsEcs.d.mts +0 -7
  291. package/dist/aws/ecs/server/awsEcs.mjs +0 -13
  292. package/dist/aws/glue/server/awsGlue.cjs +0 -14
  293. package/dist/aws/glue/server/awsGlue.d.cts +0 -7
  294. package/dist/aws/glue/server/awsGlue.d.mts +0 -7
  295. package/dist/aws/glue/server/awsGlue.mjs +0 -13
  296. package/dist/aws/lambda/server/awsLambda.cjs +0 -18
  297. package/dist/aws/lambda/server/awsLambda.d.cts +0 -8
  298. package/dist/aws/lambda/server/awsLambda.d.mts +0 -8
  299. package/dist/aws/lambda/server/awsLambda.mjs +0 -16
  300. package/dist/aws/s3/server/awsS3.cjs +0 -23
  301. package/dist/aws/s3/server/awsS3.d.cts +0 -16
  302. package/dist/aws/s3/server/awsS3.d.mts +0 -16
  303. package/dist/aws/s3/server/awsS3.mjs +0 -21
  304. package/dist/aws/server/aws.cjs +0 -23
  305. package/dist/aws/server/aws.d.cts +0 -13
  306. package/dist/aws/server/aws.d.mts +0 -13
  307. package/dist/aws/server/aws.mjs +0 -21
  308. package/dist/aws/ses/server/awsSes.cjs +0 -16
  309. package/dist/aws/ses/server/awsSes.d.cts +0 -8
  310. package/dist/aws/ses/server/awsSes.d.mts +0 -8
  311. package/dist/aws/ses/server/awsSes.mjs +0 -14
  312. package/dist/aws/sqs/server/awsSqs.cjs +0 -14
  313. package/dist/aws/sqs/server/awsSqs.d.cts +0 -7
  314. package/dist/aws/sqs/server/awsSqs.d.mts +0 -7
  315. package/dist/aws/sqs/server/awsSqs.mjs +0 -13
  316. package/dist/aws/ssm/server/AwsSsmNamespace.d.cts +0 -15
  317. package/dist/aws/ssm/server/AwsSsmNamespace.d.mts +0 -15
  318. package/dist/aws/ssm/server/AwsSsmNamespace.mjs +0 -34
  319. package/dist/aws/ssm/server/awsSsm.cjs +0 -14
  320. package/dist/aws/ssm/server/awsSsm.d.cts +0 -7
  321. package/dist/aws/ssm/server/awsSsm.d.mts +0 -7
  322. package/dist/aws/ssm/server/awsSsm.mjs +0 -13
  323. package/dist/drizzle/server/DrizzleNamespace.d.cts +0 -11
  324. package/dist/drizzle/server/DrizzleNamespace.d.mts +0 -11
  325. package/dist/drizzle/server/drizzle.cjs +0 -22
  326. package/dist/drizzle/server/drizzle.mjs +0 -21
  327. package/dist/googleAds/server/GoogleAdsNamespace.mjs +0 -29
  328. package/dist/googleAds/server/googleAds.cjs +0 -19
  329. package/dist/googleAds/server/googleAds.d.cts +0 -15
  330. package/dist/googleAds/server/googleAds.d.mts +0 -15
  331. package/dist/googleAds/server/googleAds.mjs +0 -18
  332. package/dist/googleCloud/bigquery/server/googleCloudBigquery.cjs +0 -32
  333. package/dist/googleCloud/bigquery/server/googleCloudBigquery.d.cts +0 -8
  334. package/dist/googleCloud/bigquery/server/googleCloudBigquery.d.mts +0 -8
  335. package/dist/googleCloud/bigquery/server/googleCloudBigquery.mjs +0 -30
  336. package/dist/googleCloud/server/googleCloud.cjs +0 -24
  337. package/dist/googleCloud/server/googleCloud.d.cts +0 -32
  338. package/dist/googleCloud/server/googleCloud.d.mts +0 -32
  339. package/dist/googleCloud/server/googleCloud.mjs +0 -23
  340. package/dist/googleCloud/storage/server/googleCloudStorage.cjs +0 -28
  341. package/dist/googleCloud/storage/server/googleCloudStorage.d.cts +0 -7
  342. package/dist/googleCloud/storage/server/googleCloudStorage.d.mts +0 -7
  343. package/dist/googleCloud/storage/server/googleCloudStorage.mjs +0 -27
  344. package/dist/googlePageSpeed/server/GooglePageSpeedNamespace.d.cts +0 -15
  345. package/dist/googlePageSpeed/server/GooglePageSpeedNamespace.d.mts +0 -15
  346. package/dist/googlePageSpeed/server/googlePageSpeed.cjs +0 -33
  347. package/dist/googlePageSpeed/server/googlePageSpeed.d.cts +0 -23
  348. package/dist/googlePageSpeed/server/googlePageSpeed.d.mts +0 -23
  349. package/dist/googlePageSpeed/server/googlePageSpeed.mjs +0 -30
  350. package/dist/littleWarden/server/littleWarden.cjs +0 -54
  351. package/dist/littleWarden/server/littleWarden.mjs +0 -48
  352. package/dist/onePassword/server/OnePasswordNamespace.cjs +0 -38
  353. package/dist/onePassword/server/OnePasswordNamespace.d.cts +0 -17
  354. package/dist/onePassword/server/OnePasswordNamespace.d.mts +0 -17
  355. package/dist/onePassword/server/onePassword.cjs +0 -14
  356. package/dist/onePassword/server/onePassword.d.cts +0 -11
  357. package/dist/onePassword/server/onePassword.d.mts +0 -11
  358. package/dist/onePassword/server/onePassword.mjs +0 -13
  359. package/dist/openAi/server/openAi.cjs +0 -19
  360. package/dist/openAi/server/openAi.d.cts +0 -9
  361. package/dist/openAi/server/openAi.d.mts +0 -9
  362. package/dist/openAi/server/openAi.mjs +0 -18
  363. package/dist/snapchat/server/SnapchatNamespace.d.cts +0 -18
  364. package/dist/snapchat/server/SnapchatNamespace.d.mts +0 -18
  365. package/dist/snapchat/server/snapchat.cjs +0 -19
  366. package/dist/snapchat/server/snapchat.d.cts +0 -11
  367. package/dist/snapchat/server/snapchat.d.mts +0 -11
  368. package/dist/snapchat/server/snapchat.mjs +0 -18
  369. package/dist/upTimeRobot/server/UpTimeRobotNamespace.cjs +0 -31
  370. package/dist/upTimeRobot/server/UpTimeRobotNamespace.mjs +0 -30
  371. package/dist/upTimeRobot/server/upTimeRobot.cjs +0 -57
  372. package/dist/upTimeRobot/server/upTimeRobot.d.cts +0 -42
  373. package/dist/upTimeRobot/server/upTimeRobot.d.mts +0 -42
  374. package/dist/upTimeRobot/server/upTimeRobot.mjs +0 -51
@@ -1,22 +1,17 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_environment_environment = require("../environment/environment.cjs");
3
2
  //#region src/_class/BaseNamespace.ts
4
3
  var BaseNamespace = class {
5
4
  client = null;
6
- key;
7
5
  config = null;
8
- constructor(key, config) {
9
- if (!require_environment_environment.isServer) throw new Error("Server-side only class accessed from client");
10
- this.key = key;
11
- this.config = config;
12
- }
13
- ensureInit = async () => {};
14
6
  reset = () => {
15
7
  this.client = null;
16
8
  };
17
- getClient = async () => {
9
+ getClient = () => {
18
10
  return this.client();
19
11
  };
12
+ getConfig = () => {
13
+ return this.config;
14
+ };
20
15
  };
21
16
  //#endregion
22
17
  exports.BaseNamespace = BaseNamespace;
@@ -1,12 +1,10 @@
1
1
  //#region src/_class/BaseNamespace.d.ts
2
2
  declare class BaseNamespace {
3
3
  client: any;
4
- key: string;
5
4
  config: any;
6
- constructor(key: string, config: any);
7
- ensureInit: () => Promise<void>;
8
5
  reset: () => void;
9
- getClient: () => Promise<any>;
6
+ getClient: () => any;
7
+ getConfig: () => any;
10
8
  }
11
9
  //#endregion
12
10
  export { BaseNamespace };
@@ -1,12 +1,10 @@
1
1
  //#region src/_class/BaseNamespace.d.ts
2
2
  declare class BaseNamespace {
3
3
  client: any;
4
- key: string;
5
4
  config: any;
6
- constructor(key: string, config: any);
7
- ensureInit: () => Promise<void>;
8
5
  reset: () => void;
9
- getClient: () => Promise<any>;
6
+ getClient: () => any;
7
+ getConfig: () => any;
10
8
  }
11
9
  //#endregion
12
10
  export { BaseNamespace };
@@ -1,21 +1,16 @@
1
- import { isServer } from "../environment/environment.mjs";
2
1
  //#region src/_class/BaseNamespace.ts
3
2
  var BaseNamespace = class {
4
3
  client = null;
5
- key;
6
4
  config = null;
7
- constructor(key, config) {
8
- if (!isServer) throw new Error("Server-side only class accessed from client");
9
- this.key = key;
10
- this.config = config;
11
- }
12
- ensureInit = async () => {};
13
5
  reset = () => {
14
6
  this.client = null;
15
7
  };
16
- getClient = async () => {
8
+ getClient = () => {
17
9
  return this.client();
18
10
  };
11
+ getConfig = () => {
12
+ return this.config;
13
+ };
19
14
  };
20
15
  //#endregion
21
16
  export { BaseNamespace };
@@ -2,12 +2,16 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require__class_BaseNamespace = require("../../../_class/BaseNamespace.cjs");
3
3
  const require_date_calculation = require("../../../date/calculation.cjs");
4
4
  require("../../../date/index.cjs");
5
- //#region src/aws/cloudWatchLog/server/AwsCloudWatchLogNamespace.ts
6
- var AwsCloudWatchLogNamespace = class extends require__class_BaseNamespace.BaseNamespace {
7
- ensureInit = async () => {
5
+ //#region src/aws/cloudWatchLog/server/AwsCloudWatchLog.ts
6
+ var AwsCloudWatchLog = class extends require__class_BaseNamespace.BaseNamespace {
7
+ init = async (config, region) => {
8
8
  if (!this.client) try {
9
9
  const { CloudWatchLogsClient } = await import("@aws-sdk/client-cloudwatch-logs");
10
- this.client = new CloudWatchLogsClient(this.config);
10
+ this.client = new CloudWatchLogsClient({
11
+ ...config,
12
+ region: region ?? "eu-west-2"
13
+ });
14
+ this.config = config;
11
15
  } catch (e) {
12
16
  throw new Error("AWS CloudWatch Logs Client not installed");
13
17
  }
@@ -17,7 +21,6 @@ var AwsCloudWatchLogNamespace = class extends require__class_BaseNamespace.BaseN
17
21
  * This should typically be the name of the application + environment
18
22
  */
19
23
  createLogGroup = async (logGroupName) => {
20
- await this.ensureInit();
21
24
  const { CreateLogGroupCommand } = await import("@aws-sdk/client-cloudwatch-logs");
22
25
  return await this.client.send(new CreateLogGroupCommand({ logGroupName }));
23
26
  };
@@ -25,7 +28,6 @@ var AwsCloudWatchLogNamespace = class extends require__class_BaseNamespace.BaseN
25
28
  * Checks whether a CloudWatch Log Group exists.
26
29
  */
27
30
  logGroupExists = async (logGroupName) => {
28
- await this.ensureInit();
29
31
  const { DescribeLogGroupsCommand } = await import("@aws-sdk/client-cloudwatch-logs");
30
32
  const response = await this.client.send(new DescribeLogGroupsCommand({
31
33
  logGroupNamePrefix: logGroupName,
@@ -38,7 +40,6 @@ var AwsCloudWatchLogNamespace = class extends require__class_BaseNamespace.BaseN
38
40
  * Creates a stream within a CloudWatch Log Group.
39
41
  */
40
42
  createStream = async (logGroupName, logStreamName) => {
41
- await this.ensureInit();
42
43
  const { CreateLogStreamCommand } = await import("@aws-sdk/client-cloudwatch-logs");
43
44
  return await this.client.send(new CreateLogStreamCommand({
44
45
  logGroupName,
@@ -49,7 +50,6 @@ var AwsCloudWatchLogNamespace = class extends require__class_BaseNamespace.BaseN
49
50
  * Checks whether a CloudWatch Log Stream exists within a given Log Group.
50
51
  */
51
52
  logStreamExists = async (logGroupName, logStreamName) => {
52
- await this.ensureInit();
53
53
  const { DescribeLogStreamsCommand } = await import("@aws-sdk/client-cloudwatch-logs");
54
54
  const response = await this.client.send(new DescribeLogStreamsCommand({
55
55
  logGroupName,
@@ -63,7 +63,6 @@ var AwsCloudWatchLogNamespace = class extends require__class_BaseNamespace.BaseN
63
63
  return await this.logEvents(logGroupName, logStreamName, [logEvent]);
64
64
  };
65
65
  logEvents = async (logGroupName, logStreamName, logEvents) => {
66
- await this.ensureInit();
67
66
  const { PutLogEventsCommand } = await import("@aws-sdk/client-cloudwatch-logs");
68
67
  return await this.client.send(new PutLogEventsCommand({
69
68
  logGroupName,
@@ -76,4 +75,4 @@ var AwsCloudWatchLogNamespace = class extends require__class_BaseNamespace.BaseN
76
75
  };
77
76
  };
78
77
  //#endregion
79
- exports.AwsCloudWatchLogNamespace = AwsCloudWatchLogNamespace;
78
+ exports.AwsCloudWatchLog = AwsCloudWatchLog;
@@ -1,14 +1,13 @@
1
1
  import { BaseNamespace } from "../../../_class/BaseNamespace.cjs";
2
- import { AwsConfig } from "../../server/aws.cjs";
3
2
  import { LogEvent } from "./logEvent.cjs";
4
3
  import * as _$_aws_sdk_client_cloudwatch_logs0 from "@aws-sdk/client-cloudwatch-logs";
5
4
  import { CloudWatchLogsClient } from "@aws-sdk/client-cloudwatch-logs";
6
5
 
7
- //#region src/aws/cloudWatchLog/server/AwsCloudWatchLogNamespace.d.ts
8
- declare class AwsCloudWatchLogNamespace extends BaseNamespace {
6
+ //#region src/aws/cloudWatchLog/server/AwsCloudWatchLog.d.ts
7
+ declare class AwsCloudWatchLog extends BaseNamespace {
9
8
  client: CloudWatchLogsClient;
10
- config: AwsConfig;
11
- ensureInit: () => Promise<void>;
9
+ config: any;
10
+ init: (config: any, region?: string) => Promise<void>;
12
11
  /**
13
12
  * Create a CloudWatch Log Group.
14
13
  * This should typically be the name of the application + environment
@@ -30,4 +29,4 @@ declare class AwsCloudWatchLogNamespace extends BaseNamespace {
30
29
  logEvents: (logGroupName: string, logStreamName: string, logEvents: LogEvent[]) => Promise<_$_aws_sdk_client_cloudwatch_logs0.PutLogEventsCommandOutput>;
31
30
  }
32
31
  //#endregion
33
- export { AwsCloudWatchLogNamespace };
32
+ export { AwsCloudWatchLog };
@@ -1,14 +1,13 @@
1
1
  import { BaseNamespace } from "../../../_class/BaseNamespace.mjs";
2
- import { AwsConfig } from "../../server/aws.mjs";
3
2
  import { LogEvent } from "./logEvent.mjs";
4
3
  import * as _$_aws_sdk_client_cloudwatch_logs0 from "@aws-sdk/client-cloudwatch-logs";
5
4
  import { CloudWatchLogsClient } from "@aws-sdk/client-cloudwatch-logs";
6
5
 
7
- //#region src/aws/cloudWatchLog/server/AwsCloudWatchLogNamespace.d.ts
8
- declare class AwsCloudWatchLogNamespace extends BaseNamespace {
6
+ //#region src/aws/cloudWatchLog/server/AwsCloudWatchLog.d.ts
7
+ declare class AwsCloudWatchLog extends BaseNamespace {
9
8
  client: CloudWatchLogsClient;
10
- config: AwsConfig;
11
- ensureInit: () => Promise<void>;
9
+ config: any;
10
+ init: (config: any, region?: string) => Promise<void>;
12
11
  /**
13
12
  * Create a CloudWatch Log Group.
14
13
  * This should typically be the name of the application + environment
@@ -30,4 +29,4 @@ declare class AwsCloudWatchLogNamespace extends BaseNamespace {
30
29
  logEvents: (logGroupName: string, logStreamName: string, logEvents: LogEvent[]) => Promise<_$_aws_sdk_client_cloudwatch_logs0.PutLogEventsCommandOutput>;
31
30
  }
32
31
  //#endregion
33
- export { AwsCloudWatchLogNamespace };
32
+ export { AwsCloudWatchLog };
@@ -1,12 +1,16 @@
1
1
  import { BaseNamespace } from "../../../_class/BaseNamespace.mjs";
2
2
  import { getLuxonDate } from "../../../date/calculation.mjs";
3
3
  import "../../../date/index.mjs";
4
- //#region src/aws/cloudWatchLog/server/AwsCloudWatchLogNamespace.ts
5
- var AwsCloudWatchLogNamespace = class extends BaseNamespace {
6
- ensureInit = async () => {
4
+ //#region src/aws/cloudWatchLog/server/AwsCloudWatchLog.ts
5
+ var AwsCloudWatchLog = class extends BaseNamespace {
6
+ init = async (config, region) => {
7
7
  if (!this.client) try {
8
8
  const { CloudWatchLogsClient } = await import("@aws-sdk/client-cloudwatch-logs");
9
- this.client = new CloudWatchLogsClient(this.config);
9
+ this.client = new CloudWatchLogsClient({
10
+ ...config,
11
+ region: region ?? "eu-west-2"
12
+ });
13
+ this.config = config;
10
14
  } catch (e) {
11
15
  throw new Error("AWS CloudWatch Logs Client not installed");
12
16
  }
@@ -16,7 +20,6 @@ var AwsCloudWatchLogNamespace = class extends BaseNamespace {
16
20
  * This should typically be the name of the application + environment
17
21
  */
18
22
  createLogGroup = async (logGroupName) => {
19
- await this.ensureInit();
20
23
  const { CreateLogGroupCommand } = await import("@aws-sdk/client-cloudwatch-logs");
21
24
  return await this.client.send(new CreateLogGroupCommand({ logGroupName }));
22
25
  };
@@ -24,7 +27,6 @@ var AwsCloudWatchLogNamespace = class extends BaseNamespace {
24
27
  * Checks whether a CloudWatch Log Group exists.
25
28
  */
26
29
  logGroupExists = async (logGroupName) => {
27
- await this.ensureInit();
28
30
  const { DescribeLogGroupsCommand } = await import("@aws-sdk/client-cloudwatch-logs");
29
31
  const response = await this.client.send(new DescribeLogGroupsCommand({
30
32
  logGroupNamePrefix: logGroupName,
@@ -37,7 +39,6 @@ var AwsCloudWatchLogNamespace = class extends BaseNamespace {
37
39
  * Creates a stream within a CloudWatch Log Group.
38
40
  */
39
41
  createStream = async (logGroupName, logStreamName) => {
40
- await this.ensureInit();
41
42
  const { CreateLogStreamCommand } = await import("@aws-sdk/client-cloudwatch-logs");
42
43
  return await this.client.send(new CreateLogStreamCommand({
43
44
  logGroupName,
@@ -48,7 +49,6 @@ var AwsCloudWatchLogNamespace = class extends BaseNamespace {
48
49
  * Checks whether a CloudWatch Log Stream exists within a given Log Group.
49
50
  */
50
51
  logStreamExists = async (logGroupName, logStreamName) => {
51
- await this.ensureInit();
52
52
  const { DescribeLogStreamsCommand } = await import("@aws-sdk/client-cloudwatch-logs");
53
53
  const response = await this.client.send(new DescribeLogStreamsCommand({
54
54
  logGroupName,
@@ -62,7 +62,6 @@ var AwsCloudWatchLogNamespace = class extends BaseNamespace {
62
62
  return await this.logEvents(logGroupName, logStreamName, [logEvent]);
63
63
  };
64
64
  logEvents = async (logGroupName, logStreamName, logEvents) => {
65
- await this.ensureInit();
66
65
  const { PutLogEventsCommand } = await import("@aws-sdk/client-cloudwatch-logs");
67
66
  return await this.client.send(new PutLogEventsCommand({
68
67
  logGroupName,
@@ -75,4 +74,4 @@ var AwsCloudWatchLogNamespace = class extends BaseNamespace {
75
74
  };
76
75
  };
77
76
  //#endregion
78
- export { AwsCloudWatchLogNamespace };
77
+ export { AwsCloudWatchLog };
@@ -1,7 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_aws_cloudWatchLog_server_AwsCloudWatchLogNamespace = require("./AwsCloudWatchLogNamespace.cjs");
3
- const require_aws_cloudWatchLog_server_awsCloudWatchLog = require("./awsCloudWatchLog.cjs");
2
+ const require_aws_cloudWatchLog_server_AwsCloudWatchLog = require("./AwsCloudWatchLog.cjs");
4
3
  const require_aws_cloudWatchLog_server_logEvent = require("./logEvent.cjs");
5
- exports.AwsCloudWatchLogNamespace = require_aws_cloudWatchLog_server_AwsCloudWatchLogNamespace.AwsCloudWatchLogNamespace;
6
- exports.awsCloudWatchLogClient = require_aws_cloudWatchLog_server_awsCloudWatchLog.awsCloudWatchLogClient;
4
+ exports.AwsCloudWatchLog = require_aws_cloudWatchLog_server_AwsCloudWatchLog.AwsCloudWatchLog;
7
5
  exports.logLevel = require_aws_cloudWatchLog_server_logEvent.logLevel;
@@ -1,4 +1,3 @@
1
1
  import { LogEvent, LogLevel, logLevel } from "./logEvent.cjs";
2
- import { AwsCloudWatchLogNamespace } from "./AwsCloudWatchLogNamespace.cjs";
3
- import { awsCloudWatchLogClient } from "./awsCloudWatchLog.cjs";
4
- export { AwsCloudWatchLogNamespace, LogEvent, LogLevel, awsCloudWatchLogClient, logLevel };
2
+ import { AwsCloudWatchLog } from "./AwsCloudWatchLog.cjs";
3
+ export { AwsCloudWatchLog, LogEvent, LogLevel, logLevel };
@@ -1,4 +1,3 @@
1
1
  import { LogEvent, LogLevel, logLevel } from "./logEvent.mjs";
2
- import { AwsCloudWatchLogNamespace } from "./AwsCloudWatchLogNamespace.mjs";
3
- import { awsCloudWatchLogClient } from "./awsCloudWatchLog.mjs";
4
- export { AwsCloudWatchLogNamespace, LogEvent, LogLevel, awsCloudWatchLogClient, logLevel };
2
+ import { AwsCloudWatchLog } from "./AwsCloudWatchLog.mjs";
3
+ export { AwsCloudWatchLog, LogEvent, LogLevel, logLevel };
@@ -1,4 +1,3 @@
1
- import { AwsCloudWatchLogNamespace } from "./AwsCloudWatchLogNamespace.mjs";
2
- import { awsCloudWatchLogClient } from "./awsCloudWatchLog.mjs";
1
+ import { AwsCloudWatchLog } from "./AwsCloudWatchLog.mjs";
3
2
  import { logLevel } from "./logEvent.mjs";
4
- export { AwsCloudWatchLogNamespace, awsCloudWatchLogClient, logLevel };
3
+ export { AwsCloudWatchLog, logLevel };
@@ -1,16 +1,18 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../../../_virtual/_rolldown/runtime.cjs");
3
2
  const require_array_array = require("../../../array/array.cjs");
4
3
  const require__class_BaseNamespace = require("../../../_class/BaseNamespace.cjs");
5
4
  const require_date_calculation = require("../../../date/calculation.cjs");
6
5
  require("../../../date/index.cjs");
7
- let _aws_sdk_client_cloudwatch = require("@aws-sdk/client-cloudwatch");
8
- //#region src/aws/cloudWatchMetric/server/AwsCloudWatchMetricNamespace.ts
9
- var AwsCloudWatchMetricNamespace = class extends require__class_BaseNamespace.BaseNamespace {
10
- ensureInit = async () => {
6
+ //#region src/aws/cloudWatchMetric/server/AwsCloudWatchMetric.ts
7
+ var AwsCloudWatchMetric = class extends require__class_BaseNamespace.BaseNamespace {
8
+ init = async (config, region) => {
11
9
  if (!this.client) try {
12
10
  const { CloudWatchClient } = await import("@aws-sdk/client-cloudwatch");
13
- this.client = new CloudWatchClient(this.config);
11
+ this.client = new CloudWatchClient({
12
+ ...config,
13
+ region: region ?? "eu-west-2"
14
+ });
15
+ this.config = config;
14
16
  } catch (e) {
15
17
  throw new Error("AWS CloudWatch Client not installed");
16
18
  }
@@ -21,15 +23,14 @@ var AwsCloudWatchMetricNamespace = class extends require__class_BaseNamespace.Ba
21
23
  * Dimensions should contain additional info (but top level).
22
24
  */
23
25
  logMetric = async (namespace, metricData) => {
24
- await this.ensureInit();
25
- const { PutMetricDataCommand } = await import("@aws-sdk/client-cloudwatch");
26
+ const { PutMetricDataCommand, StandardUnit } = await import("@aws-sdk/client-cloudwatch");
26
27
  const data = require_array_array.getArray(metricData);
27
28
  return await this.client.send(new PutMetricDataCommand({
28
29
  Namespace: namespace,
29
30
  MetricData: data.map((metric) => ({
30
31
  MetricName: metric.metricName,
31
32
  Value: metric.value,
32
- Unit: metric?.unit || _aws_sdk_client_cloudwatch.StandardUnit.Count,
33
+ Unit: metric?.unit || StandardUnit.Count,
33
34
  Timestamp: require_date_calculation.getLuxonDate(metric.timestamp).toJSDate(),
34
35
  Dimensions: metric.dimensions?.map((dimension) => ({
35
36
  Name: dimension.name,
@@ -40,4 +41,4 @@ var AwsCloudWatchMetricNamespace = class extends require__class_BaseNamespace.Ba
40
41
  };
41
42
  };
42
43
  //#endregion
43
- exports.AwsCloudWatchMetricNamespace = AwsCloudWatchMetricNamespace;
44
+ exports.AwsCloudWatchMetric = AwsCloudWatchMetric;
@@ -1,14 +1,13 @@
1
1
  import { BaseNamespace } from "../../../_class/BaseNamespace.cjs";
2
- import { AwsConfig } from "../../server/aws.cjs";
3
2
  import { LogMetric } from "./logMetric.cjs";
4
3
  import * as _$_aws_sdk_client_cloudwatch0 from "@aws-sdk/client-cloudwatch";
5
4
  import { CloudWatchClient } from "@aws-sdk/client-cloudwatch";
6
5
 
7
- //#region src/aws/cloudWatchMetric/server/AwsCloudWatchMetricNamespace.d.ts
8
- declare class AwsCloudWatchMetricNamespace extends BaseNamespace {
6
+ //#region src/aws/cloudWatchMetric/server/AwsCloudWatchMetric.d.ts
7
+ declare class AwsCloudWatchMetric extends BaseNamespace {
9
8
  client: CloudWatchClient;
10
- config: AwsConfig;
11
- ensureInit: () => Promise<void>;
9
+ config: any;
10
+ init: (config: any, region?: string) => Promise<void>;
12
11
  /**
13
12
  * Publishes metric data to CloudWatch.
14
13
  * The namespace is created automatically.
@@ -17,4 +16,4 @@ declare class AwsCloudWatchMetricNamespace extends BaseNamespace {
17
16
  logMetric: (namespace: string, metricData: LogMetric | LogMetric[]) => Promise<_$_aws_sdk_client_cloudwatch0.PutMetricDataCommandOutput>;
18
17
  }
19
18
  //#endregion
20
- export { AwsCloudWatchMetricNamespace };
19
+ export { AwsCloudWatchMetric };
@@ -1,14 +1,13 @@
1
1
  import { BaseNamespace } from "../../../_class/BaseNamespace.mjs";
2
- import { AwsConfig } from "../../server/aws.mjs";
3
2
  import { LogMetric } from "./logMetric.mjs";
4
3
  import * as _$_aws_sdk_client_cloudwatch0 from "@aws-sdk/client-cloudwatch";
5
4
  import { CloudWatchClient } from "@aws-sdk/client-cloudwatch";
6
5
 
7
- //#region src/aws/cloudWatchMetric/server/AwsCloudWatchMetricNamespace.d.ts
8
- declare class AwsCloudWatchMetricNamespace extends BaseNamespace {
6
+ //#region src/aws/cloudWatchMetric/server/AwsCloudWatchMetric.d.ts
7
+ declare class AwsCloudWatchMetric extends BaseNamespace {
9
8
  client: CloudWatchClient;
10
- config: AwsConfig;
11
- ensureInit: () => Promise<void>;
9
+ config: any;
10
+ init: (config: any, region?: string) => Promise<void>;
12
11
  /**
13
12
  * Publishes metric data to CloudWatch.
14
13
  * The namespace is created automatically.
@@ -17,4 +16,4 @@ declare class AwsCloudWatchMetricNamespace extends BaseNamespace {
17
16
  logMetric: (namespace: string, metricData: LogMetric | LogMetric[]) => Promise<_$_aws_sdk_client_cloudwatch0.PutMetricDataCommandOutput>;
18
17
  }
19
18
  //#endregion
20
- export { AwsCloudWatchMetricNamespace };
19
+ export { AwsCloudWatchMetric };
@@ -2,13 +2,16 @@ import { getArray } from "../../../array/array.mjs";
2
2
  import { BaseNamespace } from "../../../_class/BaseNamespace.mjs";
3
3
  import { getLuxonDate } from "../../../date/calculation.mjs";
4
4
  import "../../../date/index.mjs";
5
- import { StandardUnit } from "@aws-sdk/client-cloudwatch";
6
- //#region src/aws/cloudWatchMetric/server/AwsCloudWatchMetricNamespace.ts
7
- var AwsCloudWatchMetricNamespace = class extends BaseNamespace {
8
- ensureInit = async () => {
5
+ //#region src/aws/cloudWatchMetric/server/AwsCloudWatchMetric.ts
6
+ var AwsCloudWatchMetric = class extends BaseNamespace {
7
+ init = async (config, region) => {
9
8
  if (!this.client) try {
10
9
  const { CloudWatchClient } = await import("@aws-sdk/client-cloudwatch");
11
- this.client = new CloudWatchClient(this.config);
10
+ this.client = new CloudWatchClient({
11
+ ...config,
12
+ region: region ?? "eu-west-2"
13
+ });
14
+ this.config = config;
12
15
  } catch (e) {
13
16
  throw new Error("AWS CloudWatch Client not installed");
14
17
  }
@@ -19,8 +22,7 @@ var AwsCloudWatchMetricNamespace = class extends BaseNamespace {
19
22
  * Dimensions should contain additional info (but top level).
20
23
  */
21
24
  logMetric = async (namespace, metricData) => {
22
- await this.ensureInit();
23
- const { PutMetricDataCommand } = await import("@aws-sdk/client-cloudwatch");
25
+ const { PutMetricDataCommand, StandardUnit } = await import("@aws-sdk/client-cloudwatch");
24
26
  const data = getArray(metricData);
25
27
  return await this.client.send(new PutMetricDataCommand({
26
28
  Namespace: namespace,
@@ -38,4 +40,4 @@ var AwsCloudWatchMetricNamespace = class extends BaseNamespace {
38
40
  };
39
41
  };
40
42
  //#endregion
41
- export { AwsCloudWatchMetricNamespace };
43
+ export { AwsCloudWatchMetric };
@@ -1,5 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_aws_cloudWatchMetric_server_AwsCloudWatchMetricNamespace = require("./AwsCloudWatchMetricNamespace.cjs");
3
- const require_aws_cloudWatchMetric_server_awsCloudWatchMetric = require("./awsCloudWatchMetric.cjs");
4
- exports.AwsCloudWatchMetricNamespace = require_aws_cloudWatchMetric_server_AwsCloudWatchMetricNamespace.AwsCloudWatchMetricNamespace;
5
- exports.awsCloudWatchMetricClient = require_aws_cloudWatchMetric_server_awsCloudWatchMetric.awsCloudWatchMetricClient;
2
+ const require_aws_cloudWatchMetric_server_AwsCloudWatchMetric = require("./AwsCloudWatchMetric.cjs");
3
+ exports.AwsCloudWatchMetric = require_aws_cloudWatchMetric_server_AwsCloudWatchMetric.AwsCloudWatchMetric;
@@ -1,4 +1,3 @@
1
1
  import { LogMetric } from "./logMetric.cjs";
2
- import { AwsCloudWatchMetricNamespace } from "./AwsCloudWatchMetricNamespace.cjs";
3
- import { awsCloudWatchMetricClient } from "./awsCloudWatchMetric.cjs";
4
- export { AwsCloudWatchMetricNamespace, LogMetric, awsCloudWatchMetricClient };
2
+ import { AwsCloudWatchMetric } from "./AwsCloudWatchMetric.cjs";
3
+ export { AwsCloudWatchMetric, LogMetric };
@@ -1,4 +1,3 @@
1
1
  import { LogMetric } from "./logMetric.mjs";
2
- import { AwsCloudWatchMetricNamespace } from "./AwsCloudWatchMetricNamespace.mjs";
3
- import { awsCloudWatchMetricClient } from "./awsCloudWatchMetric.mjs";
4
- export { AwsCloudWatchMetricNamespace, LogMetric, awsCloudWatchMetricClient };
2
+ import { AwsCloudWatchMetric } from "./AwsCloudWatchMetric.mjs";
3
+ export { AwsCloudWatchMetric, LogMetric };
@@ -1,3 +1,2 @@
1
- import { AwsCloudWatchMetricNamespace } from "./AwsCloudWatchMetricNamespace.mjs";
2
- import { awsCloudWatchMetricClient } from "./awsCloudWatchMetric.mjs";
3
- export { AwsCloudWatchMetricNamespace, awsCloudWatchMetricClient };
1
+ import { AwsCloudWatchMetric } from "./AwsCloudWatchMetric.mjs";
2
+ export { AwsCloudWatchMetric };
@@ -1,17 +1,20 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require__class_BaseNamespace = require("../../../_class/BaseNamespace.cjs");
3
- //#region src/aws/ec2/server/AwsEc2Namespace.ts
4
- var AwsEc2Namespace = class extends require__class_BaseNamespace.BaseNamespace {
5
- ensureInit = async () => {
3
+ //#region src/aws/ec2/server/AwsEc2.ts
4
+ var AwsEc2 = class extends require__class_BaseNamespace.BaseNamespace {
5
+ init = async (config, region) => {
6
6
  if (!this.client) try {
7
7
  const { EC2Client } = await import("@aws-sdk/client-ec2");
8
- this.client = new EC2Client(this.config);
8
+ this.client = new EC2Client({
9
+ ...config,
10
+ region: region ?? "eu-west-2"
11
+ });
12
+ this.config = config;
9
13
  } catch (e) {
10
14
  throw new Error("AWS EC2 Client not installed");
11
15
  }
12
16
  };
13
17
  startInstances = async (instanceIds, additionalInfo, dryRun) => {
14
- await this.ensureInit();
15
18
  const { StartInstancesCommand } = await import("@aws-sdk/client-ec2");
16
19
  const command = new StartInstancesCommand({
17
20
  InstanceIds: instanceIds,
@@ -21,7 +24,6 @@ var AwsEc2Namespace = class extends require__class_BaseNamespace.BaseNamespace {
21
24
  return await this.client.send(command);
22
25
  };
23
26
  stopInstances = async (instanceIds, hibernate, force, dryRun) => {
24
- await this.ensureInit();
25
27
  const { StopInstancesCommand } = await import("@aws-sdk/client-ec2");
26
28
  const command = new StopInstancesCommand({
27
29
  InstanceIds: instanceIds,
@@ -33,4 +35,4 @@ var AwsEc2Namespace = class extends require__class_BaseNamespace.BaseNamespace {
33
35
  };
34
36
  };
35
37
  //#endregion
36
- exports.AwsEc2Namespace = AwsEc2Namespace;
38
+ exports.AwsEc2 = AwsEc2;
@@ -1,15 +1,14 @@
1
1
  import { BaseNamespace } from "../../../_class/BaseNamespace.cjs";
2
- import { AwsConfig } from "../../server/aws.cjs";
3
2
  import * as _$_aws_sdk_client_ec20 from "@aws-sdk/client-ec2";
4
3
  import { EC2Client } from "@aws-sdk/client-ec2";
5
4
 
6
- //#region src/aws/ec2/server/AwsEc2Namespace.d.ts
7
- declare class AwsEc2Namespace extends BaseNamespace {
5
+ //#region src/aws/ec2/server/AwsEc2.d.ts
6
+ declare class AwsEc2 extends BaseNamespace {
8
7
  client: EC2Client;
9
- config: AwsConfig;
10
- ensureInit: () => Promise<void>;
8
+ config: any;
9
+ init: (config: any, region?: string) => Promise<void>;
11
10
  startInstances: (instanceIds: string[], additionalInfo?: string, dryRun?: boolean) => Promise<_$_aws_sdk_client_ec20.StartInstancesCommandOutput>;
12
11
  stopInstances: (instanceIds: string[], hibernate?: boolean, force?: boolean, dryRun?: boolean) => Promise<_$_aws_sdk_client_ec20.StopInstancesCommandOutput>;
13
12
  }
14
13
  //#endregion
15
- export { AwsEc2Namespace };
14
+ export { AwsEc2 };
@@ -1,15 +1,14 @@
1
1
  import { BaseNamespace } from "../../../_class/BaseNamespace.mjs";
2
- import { AwsConfig } from "../../server/aws.mjs";
3
2
  import * as _$_aws_sdk_client_ec20 from "@aws-sdk/client-ec2";
4
3
  import { EC2Client } from "@aws-sdk/client-ec2";
5
4
 
6
- //#region src/aws/ec2/server/AwsEc2Namespace.d.ts
7
- declare class AwsEc2Namespace extends BaseNamespace {
5
+ //#region src/aws/ec2/server/AwsEc2.d.ts
6
+ declare class AwsEc2 extends BaseNamespace {
8
7
  client: EC2Client;
9
- config: AwsConfig;
10
- ensureInit: () => Promise<void>;
8
+ config: any;
9
+ init: (config: any, region?: string) => Promise<void>;
11
10
  startInstances: (instanceIds: string[], additionalInfo?: string, dryRun?: boolean) => Promise<_$_aws_sdk_client_ec20.StartInstancesCommandOutput>;
12
11
  stopInstances: (instanceIds: string[], hibernate?: boolean, force?: boolean, dryRun?: boolean) => Promise<_$_aws_sdk_client_ec20.StopInstancesCommandOutput>;
13
12
  }
14
13
  //#endregion
15
- export { AwsEc2Namespace };
14
+ export { AwsEc2 };
@@ -1,16 +1,19 @@
1
1
  import { BaseNamespace } from "../../../_class/BaseNamespace.mjs";
2
- //#region src/aws/ec2/server/AwsEc2Namespace.ts
3
- var AwsEc2Namespace = class extends BaseNamespace {
4
- ensureInit = async () => {
2
+ //#region src/aws/ec2/server/AwsEc2.ts
3
+ var AwsEc2 = class extends BaseNamespace {
4
+ init = async (config, region) => {
5
5
  if (!this.client) try {
6
6
  const { EC2Client } = await import("@aws-sdk/client-ec2");
7
- this.client = new EC2Client(this.config);
7
+ this.client = new EC2Client({
8
+ ...config,
9
+ region: region ?? "eu-west-2"
10
+ });
11
+ this.config = config;
8
12
  } catch (e) {
9
13
  throw new Error("AWS EC2 Client not installed");
10
14
  }
11
15
  };
12
16
  startInstances = async (instanceIds, additionalInfo, dryRun) => {
13
- await this.ensureInit();
14
17
  const { StartInstancesCommand } = await import("@aws-sdk/client-ec2");
15
18
  const command = new StartInstancesCommand({
16
19
  InstanceIds: instanceIds,
@@ -20,7 +23,6 @@ var AwsEc2Namespace = class extends BaseNamespace {
20
23
  return await this.client.send(command);
21
24
  };
22
25
  stopInstances = async (instanceIds, hibernate, force, dryRun) => {
23
- await this.ensureInit();
24
26
  const { StopInstancesCommand } = await import("@aws-sdk/client-ec2");
25
27
  const command = new StopInstancesCommand({
26
28
  InstanceIds: instanceIds,
@@ -32,4 +34,4 @@ var AwsEc2Namespace = class extends BaseNamespace {
32
34
  };
33
35
  };
34
36
  //#endregion
35
- export { AwsEc2Namespace };
37
+ export { AwsEc2 };
@@ -1,5 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_aws_ec2_server_AwsEc2Namespace = require("./AwsEc2Namespace.cjs");
3
- const require_aws_ec2_server_awsEc2 = require("./awsEc2.cjs");
4
- exports.AwsEc2Namespace = require_aws_ec2_server_AwsEc2Namespace.AwsEc2Namespace;
5
- exports.awsEc2Client = require_aws_ec2_server_awsEc2.awsEc2Client;
2
+ const require_aws_ec2_server_AwsEc2 = require("./AwsEc2.cjs");
3
+ exports.AwsEc2 = require_aws_ec2_server_AwsEc2.AwsEc2;
@@ -1,3 +1,2 @@
1
- import { AwsEc2Namespace } from "./AwsEc2Namespace.cjs";
2
- import { awsEc2Client } from "./awsEc2.cjs";
3
- export { AwsEc2Namespace, awsEc2Client };
1
+ import { AwsEc2 } from "./AwsEc2.cjs";
2
+ export { AwsEc2 };
@@ -1,3 +1,2 @@
1
- import { AwsEc2Namespace } from "./AwsEc2Namespace.mjs";
2
- import { awsEc2Client } from "./awsEc2.mjs";
3
- export { AwsEc2Namespace, awsEc2Client };
1
+ import { AwsEc2 } from "./AwsEc2.mjs";
2
+ export { AwsEc2 };
@@ -1,3 +1,2 @@
1
- import { AwsEc2Namespace } from "./AwsEc2Namespace.mjs";
2
- import { awsEc2Client } from "./awsEc2.mjs";
3
- export { AwsEc2Namespace, awsEc2Client };
1
+ import { AwsEc2 } from "./AwsEc2.mjs";
2
+ export { AwsEc2 };