@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.
- package/dist/_class/BaseNamespace.cjs +4 -9
- package/dist/_class/BaseNamespace.d.cts +2 -4
- package/dist/_class/BaseNamespace.d.mts +2 -4
- package/dist/_class/BaseNamespace.mjs +4 -9
- package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.cjs → AwsCloudWatchLog.cjs} +9 -10
- package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.d.cts → AwsCloudWatchLog.d.cts} +5 -6
- package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.d.mts → AwsCloudWatchLog.d.mts} +5 -6
- package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.mjs → AwsCloudWatchLog.mjs} +9 -10
- package/dist/aws/cloudWatchLog/server/index.cjs +2 -4
- package/dist/aws/cloudWatchLog/server/index.d.cts +2 -3
- package/dist/aws/cloudWatchLog/server/index.d.mts +2 -3
- package/dist/aws/cloudWatchLog/server/index.mjs +2 -3
- package/dist/aws/cloudWatchMetric/server/{AwsCloudWatchMetricNamespace.cjs → AwsCloudWatchMetric.cjs} +11 -10
- package/dist/aws/cloudWatchMetric/server/{AwsCloudWatchMetricNamespace.d.cts → AwsCloudWatchMetric.d.cts} +5 -6
- package/dist/aws/cloudWatchMetric/server/{AwsCloudWatchMetricNamespace.d.mts → AwsCloudWatchMetric.d.mts} +5 -6
- package/dist/aws/cloudWatchMetric/server/{AwsCloudWatchMetricNamespace.mjs → AwsCloudWatchMetric.mjs} +10 -8
- package/dist/aws/cloudWatchMetric/server/index.cjs +2 -4
- package/dist/aws/cloudWatchMetric/server/index.d.cts +2 -3
- package/dist/aws/cloudWatchMetric/server/index.d.mts +2 -3
- package/dist/aws/cloudWatchMetric/server/index.mjs +2 -3
- package/dist/aws/ec2/server/{AwsEc2Namespace.cjs → AwsEc2.cjs} +9 -7
- package/dist/aws/ec2/server/{AwsEc2Namespace.d.cts → AwsEc2.d.cts} +5 -6
- package/dist/aws/ec2/server/{AwsEc2Namespace.d.mts → AwsEc2.d.mts} +5 -6
- package/dist/aws/ec2/server/{AwsEc2Namespace.mjs → AwsEc2.mjs} +9 -7
- package/dist/aws/ec2/server/index.cjs +2 -4
- package/dist/aws/ec2/server/index.d.cts +2 -3
- package/dist/aws/ec2/server/index.d.mts +2 -3
- package/dist/aws/ec2/server/index.mjs +2 -3
- package/dist/aws/ecs/server/{AwsEcsNamespace.cjs → AwsEcs.cjs} +9 -9
- package/dist/aws/ecs/server/{AwsEcsNamespace.d.cts → AwsEcs.d.cts} +5 -6
- package/dist/aws/ecs/server/{AwsEcsNamespace.d.mts → AwsEcs.d.mts} +5 -6
- package/dist/aws/ecs/server/{AwsEcsNamespace.mjs → AwsEcs.mjs} +9 -9
- package/dist/aws/ecs/server/index.cjs +2 -4
- package/dist/aws/ecs/server/index.d.cts +2 -3
- package/dist/aws/ecs/server/index.d.mts +2 -3
- package/dist/aws/ecs/server/index.mjs +2 -3
- package/dist/aws/glue/server/{AwsGlueNamespace.cjs → AwsGlue.cjs} +9 -6
- package/dist/aws/glue/server/{AwsGlueNamespace.d.cts → AwsGlue.d.cts} +5 -6
- package/dist/aws/glue/server/{AwsGlueNamespace.d.mts → AwsGlue.d.mts} +5 -6
- package/dist/aws/glue/server/{AwsGlueNamespace.mjs → AwsGlue.mjs} +9 -6
- package/dist/aws/glue/server/index.cjs +2 -4
- package/dist/aws/glue/server/index.d.cts +2 -3
- package/dist/aws/glue/server/index.d.mts +2 -3
- package/dist/aws/glue/server/index.mjs +2 -3
- package/dist/aws/lambda/server/{AwsLambdaNamespace.cjs → AwsLambda.cjs} +9 -6
- package/dist/aws/lambda/server/{AwsLambdaNamespace.d.cts → AwsLambda.d.cts} +5 -6
- package/dist/aws/lambda/server/{AwsLambdaNamespace.d.mts → AwsLambda.d.mts} +5 -6
- package/dist/aws/lambda/server/{AwsLambdaNamespace.mjs → AwsLambda.mjs} +9 -6
- package/dist/aws/lambda/server/getHandlerPath.cjs +7 -0
- package/dist/aws/lambda/server/getHandlerPath.d.cts +4 -0
- package/dist/aws/lambda/server/getHandlerPath.d.mts +4 -0
- package/dist/aws/lambda/server/getHandlerPath.mjs +6 -0
- package/dist/aws/lambda/server/index.cjs +4 -5
- package/dist/aws/lambda/server/index.d.cts +3 -3
- package/dist/aws/lambda/server/index.d.mts +3 -3
- package/dist/aws/lambda/server/index.mjs +3 -3
- package/dist/aws/s3/server/{AwsS3Namespace.cjs → AwsS3.cjs} +12 -31
- package/dist/aws/s3/server/{AwsS3Namespace.d.cts → AwsS3.d.cts} +6 -7
- package/dist/aws/s3/server/{AwsS3Namespace.d.mts → AwsS3.d.mts} +6 -7
- package/dist/aws/s3/server/{AwsS3Namespace.mjs → AwsS3.mjs} +10 -29
- package/dist/aws/s3/server/awsS3File.cjs +12 -0
- package/dist/aws/s3/server/awsS3File.d.cts +12 -0
- package/dist/aws/s3/server/awsS3File.d.mts +12 -0
- package/dist/aws/s3/server/awsS3File.mjs +11 -0
- package/dist/aws/s3/server/index.cjs +4 -5
- package/dist/aws/s3/server/index.d.cts +3 -3
- package/dist/aws/s3/server/index.d.mts +3 -3
- package/dist/aws/s3/server/index.mjs +3 -3
- package/dist/aws/server/getAwsConfig.cjs +15 -0
- package/dist/aws/server/getAwsConfig.d.cts +18 -0
- package/dist/aws/server/getAwsConfig.d.mts +18 -0
- package/dist/aws/server/getAwsConfig.mjs +14 -0
- package/dist/aws/server/index.cjs +2 -2
- package/dist/aws/server/index.d.cts +2 -2
- package/dist/aws/server/index.d.mts +2 -2
- package/dist/aws/server/index.mjs +2 -2
- package/dist/aws/ses/server/{AwsSesNamespace.cjs → AwsSes.cjs} +9 -6
- package/dist/aws/ses/server/{AwsSesNamespace.d.cts → AwsSes.d.cts} +5 -6
- package/dist/aws/ses/server/{AwsSesNamespace.d.mts → AwsSes.d.mts} +5 -6
- package/dist/aws/ses/server/{AwsSesNamespace.mjs → AwsSes.mjs} +9 -6
- package/dist/aws/ses/server/index.cjs +2 -4
- package/dist/aws/ses/server/index.d.cts +2 -3
- package/dist/aws/ses/server/index.d.mts +2 -3
- package/dist/aws/ses/server/index.mjs +2 -3
- package/dist/aws/sqs/server/{AwsSqsNamespace.cjs → AwsSqs.cjs} +9 -8
- package/dist/aws/sqs/server/{AwsSqsNamespace.d.cts → AwsSqs.d.cts} +5 -6
- package/dist/aws/sqs/server/{AwsSqsNamespace.d.mts → AwsSqs.d.mts} +5 -6
- package/dist/aws/sqs/server/{AwsSqsNamespace.mjs → AwsSqs.mjs} +9 -8
- package/dist/aws/sqs/server/index.cjs +2 -4
- package/dist/aws/sqs/server/index.d.cts +2 -3
- package/dist/aws/sqs/server/index.d.mts +2 -3
- package/dist/aws/sqs/server/index.mjs +2 -3
- package/dist/aws/ssm/server/{AwsSsmNamespace.cjs → AwsSsm.cjs} +14 -14
- package/dist/aws/ssm/server/AwsSsm.d.cts +13 -0
- package/dist/aws/ssm/server/AwsSsm.d.mts +13 -0
- package/dist/aws/ssm/server/AwsSsm.mjs +34 -0
- package/dist/aws/ssm/server/index.cjs +2 -4
- package/dist/aws/ssm/server/index.d.cts +2 -3
- package/dist/aws/ssm/server/index.d.mts +2 -3
- package/dist/aws/ssm/server/index.mjs +2 -3
- package/dist/brightData/webScraperIde/server/getBatch.cjs +3 -2
- package/dist/brightData/webScraperIde/server/getBatch.d.cts +5 -1
- package/dist/brightData/webScraperIde/server/getBatch.d.mts +5 -1
- package/dist/brightData/webScraperIde/server/getBatch.mjs +3 -2
- package/dist/drizzle/server/{DrizzleNamespace.cjs → Drizzle.cjs} +5 -5
- package/dist/drizzle/server/{drizzle.d.cts → Drizzle.d.cts} +8 -4
- package/dist/drizzle/server/{drizzle.d.mts → Drizzle.d.mts} +8 -4
- package/dist/drizzle/server/{DrizzleNamespace.mjs → Drizzle.mjs} +5 -5
- package/dist/drizzle/server/index.cjs +2 -4
- package/dist/drizzle/server/index.d.cts +2 -3
- package/dist/drizzle/server/index.d.mts +2 -3
- package/dist/drizzle/server/index.mjs +2 -3
- package/dist/environment/environment.cjs +2 -2
- package/dist/environment/environment.mjs +2 -2
- package/dist/googleAds/server/{GoogleAdsNamespace.cjs → GoogleAds.cjs} +9 -10
- package/dist/googleAds/server/{GoogleAdsNamespace.d.cts → GoogleAds.d.cts} +9 -5
- package/dist/googleAds/server/{GoogleAdsNamespace.d.mts → GoogleAds.d.mts} +9 -5
- package/dist/googleAds/server/GoogleAds.mjs +28 -0
- package/dist/googleAds/server/index.cjs +2 -4
- package/dist/googleAds/server/index.d.cts +2 -3
- package/dist/googleAds/server/index.d.mts +2 -3
- package/dist/googleAds/server/index.mjs +2 -3
- package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.cjs → GoogleCloudBigquery.cjs} +27 -33
- package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.d.cts → GoogleCloudBigquery.d.cts} +14 -16
- package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.d.mts → GoogleCloudBigquery.d.mts} +14 -16
- package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.mjs → GoogleCloudBigquery.mjs} +27 -33
- package/dist/googleCloud/bigquery/server/getHandlerPath.cjs +7 -0
- package/dist/googleCloud/bigquery/server/getHandlerPath.d.cts +4 -0
- package/dist/googleCloud/bigquery/server/getHandlerPath.d.mts +4 -0
- package/dist/googleCloud/bigquery/server/getHandlerPath.mjs +6 -0
- package/dist/googleCloud/bigquery/server/index.cjs +4 -5
- package/dist/googleCloud/bigquery/server/index.d.cts +3 -3
- package/dist/googleCloud/bigquery/server/index.d.mts +3 -3
- package/dist/googleCloud/bigquery/server/index.mjs +3 -3
- package/dist/googleCloud/bigquery/server/loadData.d.cts +2 -2
- package/dist/googleCloud/bigquery/server/loadData.d.mts +2 -2
- package/dist/googleCloud/server/getGoogleCloudConfig.cjs +81 -0
- package/dist/googleCloud/server/getGoogleCloudConfig.d.cts +77 -0
- package/dist/googleCloud/server/getGoogleCloudConfig.d.mts +77 -0
- package/dist/googleCloud/server/getGoogleCloudConfig.mjs +78 -0
- package/dist/googleCloud/server/index.cjs +4 -2
- package/dist/googleCloud/server/index.d.cts +2 -2
- package/dist/googleCloud/server/index.d.mts +2 -2
- package/dist/googleCloud/server/index.mjs +2 -2
- package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.cjs → GoogleCloudSheets.cjs} +10 -8
- package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.d.cts → GoogleCloudSheets.d.cts} +8 -8
- package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.d.mts → GoogleCloudSheets.d.mts} +8 -8
- package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.mjs → GoogleCloudSheets.mjs} +10 -8
- package/dist/googleCloud/sheets/server/index.cjs +2 -2
- package/dist/googleCloud/sheets/server/index.d.cts +2 -2
- package/dist/googleCloud/sheets/server/index.d.mts +2 -2
- package/dist/googleCloud/sheets/server/index.mjs +2 -2
- package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.cjs → GoogleCloudStorage.cjs} +15 -10
- package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.d.cts → GoogleCloudStorage.d.cts} +10 -8
- package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.d.mts → GoogleCloudStorage.d.mts} +10 -8
- package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.mjs → GoogleCloudStorage.mjs} +15 -10
- package/dist/googleCloud/storage/server/index.cjs +2 -4
- package/dist/googleCloud/storage/server/index.d.cts +2 -3
- package/dist/googleCloud/storage/server/index.d.mts +2 -3
- package/dist/googleCloud/storage/server/index.mjs +2 -3
- package/dist/googlePageSpeed/server/{GooglePageSpeedNamespace.cjs → GooglePageSpeed.cjs} +8 -7
- package/dist/googlePageSpeed/server/GooglePageSpeed.d.cts +19 -0
- package/dist/googlePageSpeed/server/GooglePageSpeed.d.mts +19 -0
- package/dist/googlePageSpeed/server/{GooglePageSpeedNamespace.mjs → GooglePageSpeed.mjs} +7 -6
- package/dist/googlePageSpeed/server/category.cjs +11 -0
- package/dist/googlePageSpeed/server/category.d.cts +11 -0
- package/dist/googlePageSpeed/server/category.d.mts +11 -0
- package/dist/googlePageSpeed/server/category.mjs +10 -0
- package/dist/googlePageSpeed/server/index.cjs +6 -6
- package/dist/googlePageSpeed/server/index.d.cts +4 -3
- package/dist/googlePageSpeed/server/index.d.mts +4 -3
- package/dist/googlePageSpeed/server/index.mjs +4 -3
- package/dist/googlePageSpeed/server/strategy.cjs +9 -0
- package/dist/googlePageSpeed/server/strategy.d.cts +9 -0
- package/dist/googlePageSpeed/server/strategy.d.mts +9 -0
- package/dist/googlePageSpeed/server/strategy.mjs +8 -0
- package/dist/inngest/index.cjs +2 -2
- package/dist/inngest/index.d.cts +1 -1
- package/dist/inngest/index.d.mts +1 -1
- package/dist/inngest/index.mjs +1 -1
- package/dist/inngest/{inngest.cjs → inngestState.cjs} +1 -1
- package/dist/inngest/{inngest.d.mts → inngestState.d.cts} +1 -1
- package/dist/inngest/{inngest.d.cts → inngestState.d.mts} +1 -1
- package/dist/inngest/{inngest.mjs → inngestState.mjs} +1 -1
- package/dist/littleWarden/server/{LittleWardenNamespace.cjs → LittleWarden.cjs} +5 -4
- package/dist/littleWarden/server/{LittleWardenNamespace.d.cts → LittleWarden.d.cts} +7 -5
- package/dist/littleWarden/server/{LittleWardenNamespace.d.mts → LittleWarden.d.mts} +7 -5
- package/dist/littleWarden/server/{LittleWardenNamespace.mjs → LittleWarden.mjs} +5 -4
- package/dist/littleWarden/server/index.cjs +7 -8
- package/dist/littleWarden/server/index.d.cts +3 -3
- package/dist/littleWarden/server/index.d.mts +3 -3
- package/dist/littleWarden/server/index.mjs +3 -3
- package/dist/littleWarden/server/littleWardenAttrs.cjs +38 -0
- package/dist/littleWarden/server/{littleWarden.d.cts → littleWardenAttrs.d.cts} +2 -7
- package/dist/littleWarden/server/{littleWarden.d.mts → littleWardenAttrs.d.mts} +2 -7
- package/dist/littleWarden/server/littleWardenAttrs.mjs +33 -0
- package/dist/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.cts +7 -0
- package/dist/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.mts +7 -0
- package/dist/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.cts +35 -0
- package/dist/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.mts +35 -0
- package/dist/node_modules/@smithy/types/dist-types/identity/identity.d.cts +18 -0
- package/dist/node_modules/@smithy/types/dist-types/identity/identity.d.mts +18 -0
- package/dist/node_modules/@smithy/types/dist-types/index.d.cts +2 -0
- package/dist/node_modules/@smithy/types/dist-types/index.d.mts +2 -0
- package/dist/onePassword/server/OnePassword.cjs +44 -0
- package/dist/onePassword/server/OnePassword.d.cts +21 -0
- package/dist/onePassword/server/OnePassword.d.mts +21 -0
- package/dist/onePassword/server/{OnePasswordNamespace.mjs → OnePassword.mjs} +19 -13
- package/dist/onePassword/server/getIdsFromUrl.cjs +2 -2
- package/dist/onePassword/server/getIdsFromUrl.d.cts +2 -2
- package/dist/onePassword/server/getIdsFromUrl.d.mts +2 -2
- package/dist/onePassword/server/getIdsFromUrl.mjs +2 -2
- package/dist/onePassword/server/index.cjs +2 -4
- package/dist/onePassword/server/index.d.cts +2 -3
- package/dist/onePassword/server/index.d.mts +2 -3
- package/dist/onePassword/server/index.mjs +2 -3
- package/dist/openAi/server/{OpenAiNamespace.cjs → OpenAi.cjs} +10 -7
- package/dist/openAi/server/{OpenAiNamespace.d.cts → OpenAi.d.cts} +7 -5
- package/dist/openAi/server/{OpenAiNamespace.d.mts → OpenAi.d.mts} +7 -5
- package/dist/openAi/server/{OpenAiNamespace.mjs → OpenAi.mjs} +10 -7
- package/dist/openAi/server/index.cjs +2 -4
- package/dist/openAi/server/index.d.cts +2 -3
- package/dist/openAi/server/index.d.mts +2 -3
- package/dist/openAi/server/index.mjs +2 -3
- package/dist/snapchat/server/{SnapchatNamespace.cjs → Snapchat.cjs} +5 -4
- package/dist/snapchat/server/Snapchat.d.cts +22 -0
- package/dist/snapchat/server/Snapchat.d.mts +22 -0
- package/dist/snapchat/server/{SnapchatNamespace.mjs → Snapchat.mjs} +5 -4
- package/dist/snapchat/server/index.cjs +2 -4
- package/dist/snapchat/server/index.d.cts +2 -3
- package/dist/snapchat/server/index.d.mts +2 -3
- package/dist/snapchat/server/index.mjs +2 -3
- package/dist/swr/client/swr.cjs +1 -1
- package/dist/swr/client/swr.mjs +1 -1
- package/dist/upTimeRobot/server/UpTimeRobot.cjs +34 -0
- package/dist/upTimeRobot/server/{UpTimeRobotNamespace.d.cts → UpTimeRobot.d.cts} +7 -5
- package/dist/upTimeRobot/server/{UpTimeRobotNamespace.d.mts → UpTimeRobot.d.mts} +7 -5
- package/dist/upTimeRobot/server/UpTimeRobot.mjs +33 -0
- package/dist/upTimeRobot/server/index.cjs +12 -9
- package/dist/upTimeRobot/server/index.d.cts +7 -3
- package/dist/upTimeRobot/server/index.d.mts +7 -3
- package/dist/upTimeRobot/server/index.mjs +7 -3
- package/dist/upTimeRobot/server/logType.cjs +10 -0
- package/dist/upTimeRobot/server/logType.d.cts +10 -0
- package/dist/upTimeRobot/server/logType.d.mts +10 -0
- package/dist/upTimeRobot/server/logType.mjs +9 -0
- package/dist/upTimeRobot/server/monitorStatus.cjs +11 -0
- package/dist/upTimeRobot/server/monitorStatus.d.cts +11 -0
- package/dist/upTimeRobot/server/monitorStatus.d.mts +11 -0
- package/dist/upTimeRobot/server/monitorStatus.mjs +10 -0
- package/dist/upTimeRobot/server/monitorSubTypes.cjs +13 -0
- package/dist/upTimeRobot/server/monitorSubTypes.d.cts +13 -0
- package/dist/upTimeRobot/server/monitorSubTypes.d.mts +13 -0
- package/dist/upTimeRobot/server/monitorSubTypes.mjs +12 -0
- package/dist/upTimeRobot/server/monitorType.cjs +11 -0
- package/dist/upTimeRobot/server/monitorType.d.cts +11 -0
- package/dist/upTimeRobot/server/monitorType.d.mts +11 -0
- package/dist/upTimeRobot/server/monitorType.mjs +10 -0
- package/dist/upTimeRobot/server/requestStatus.cjs +8 -0
- package/dist/upTimeRobot/server/requestStatus.d.cts +8 -0
- package/dist/upTimeRobot/server/requestStatus.d.mts +8 -0
- package/dist/upTimeRobot/server/requestStatus.mjs +7 -0
- package/dist/url/url.cjs +1 -1
- package/dist/url/url.mjs +1 -1
- package/dist/util/defaultTo.cjs +1 -1
- package/dist/util/defaultTo.mjs +1 -1
- package/dist/webWorker/index.cjs +2 -2
- package/dist/webWorker/index.d.cts +1 -1
- package/dist/webWorker/index.d.mts +1 -1
- package/dist/webWorker/index.mjs +1 -1
- package/dist/webWorker/{webWorker.cjs → webWorkerState.cjs} +1 -1
- package/dist/webWorker/{webWorker.d.cts → webWorkerState.d.cts} +1 -1
- package/dist/webWorker/{webWorker.d.mts → webWorkerState.d.mts} +1 -1
- package/dist/webWorker/{webWorker.mjs → webWorkerState.mjs} +1 -1
- package/package.json +138 -152
- package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.cjs +0 -14
- package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.d.cts +0 -7
- package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.d.mts +0 -7
- package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.mjs +0 -13
- package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.cjs +0 -14
- package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.d.cts +0 -7
- package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.d.mts +0 -7
- package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.mjs +0 -13
- package/dist/aws/ec2/server/awsEc2.cjs +0 -14
- package/dist/aws/ec2/server/awsEc2.d.cts +0 -7
- package/dist/aws/ec2/server/awsEc2.d.mts +0 -7
- package/dist/aws/ec2/server/awsEc2.mjs +0 -13
- package/dist/aws/ecs/server/awsEcs.cjs +0 -14
- package/dist/aws/ecs/server/awsEcs.d.cts +0 -7
- package/dist/aws/ecs/server/awsEcs.d.mts +0 -7
- package/dist/aws/ecs/server/awsEcs.mjs +0 -13
- package/dist/aws/glue/server/awsGlue.cjs +0 -14
- package/dist/aws/glue/server/awsGlue.d.cts +0 -7
- package/dist/aws/glue/server/awsGlue.d.mts +0 -7
- package/dist/aws/glue/server/awsGlue.mjs +0 -13
- package/dist/aws/lambda/server/awsLambda.cjs +0 -18
- package/dist/aws/lambda/server/awsLambda.d.cts +0 -8
- package/dist/aws/lambda/server/awsLambda.d.mts +0 -8
- package/dist/aws/lambda/server/awsLambda.mjs +0 -16
- package/dist/aws/s3/server/awsS3.cjs +0 -23
- package/dist/aws/s3/server/awsS3.d.cts +0 -16
- package/dist/aws/s3/server/awsS3.d.mts +0 -16
- package/dist/aws/s3/server/awsS3.mjs +0 -21
- package/dist/aws/server/aws.cjs +0 -23
- package/dist/aws/server/aws.d.cts +0 -13
- package/dist/aws/server/aws.d.mts +0 -13
- package/dist/aws/server/aws.mjs +0 -21
- package/dist/aws/ses/server/awsSes.cjs +0 -16
- package/dist/aws/ses/server/awsSes.d.cts +0 -8
- package/dist/aws/ses/server/awsSes.d.mts +0 -8
- package/dist/aws/ses/server/awsSes.mjs +0 -14
- package/dist/aws/sqs/server/awsSqs.cjs +0 -14
- package/dist/aws/sqs/server/awsSqs.d.cts +0 -7
- package/dist/aws/sqs/server/awsSqs.d.mts +0 -7
- package/dist/aws/sqs/server/awsSqs.mjs +0 -13
- package/dist/aws/ssm/server/AwsSsmNamespace.d.cts +0 -15
- package/dist/aws/ssm/server/AwsSsmNamespace.d.mts +0 -15
- package/dist/aws/ssm/server/AwsSsmNamespace.mjs +0 -34
- package/dist/aws/ssm/server/awsSsm.cjs +0 -14
- package/dist/aws/ssm/server/awsSsm.d.cts +0 -7
- package/dist/aws/ssm/server/awsSsm.d.mts +0 -7
- package/dist/aws/ssm/server/awsSsm.mjs +0 -13
- package/dist/drizzle/server/DrizzleNamespace.d.cts +0 -11
- package/dist/drizzle/server/DrizzleNamespace.d.mts +0 -11
- package/dist/drizzle/server/drizzle.cjs +0 -22
- package/dist/drizzle/server/drizzle.mjs +0 -21
- package/dist/googleAds/server/GoogleAdsNamespace.mjs +0 -29
- package/dist/googleAds/server/googleAds.cjs +0 -19
- package/dist/googleAds/server/googleAds.d.cts +0 -15
- package/dist/googleAds/server/googleAds.d.mts +0 -15
- package/dist/googleAds/server/googleAds.mjs +0 -18
- package/dist/googleCloud/bigquery/server/googleCloudBigquery.cjs +0 -32
- package/dist/googleCloud/bigquery/server/googleCloudBigquery.d.cts +0 -8
- package/dist/googleCloud/bigquery/server/googleCloudBigquery.d.mts +0 -8
- package/dist/googleCloud/bigquery/server/googleCloudBigquery.mjs +0 -30
- package/dist/googleCloud/server/googleCloud.cjs +0 -24
- package/dist/googleCloud/server/googleCloud.d.cts +0 -32
- package/dist/googleCloud/server/googleCloud.d.mts +0 -32
- package/dist/googleCloud/server/googleCloud.mjs +0 -23
- package/dist/googleCloud/storage/server/googleCloudStorage.cjs +0 -28
- package/dist/googleCloud/storage/server/googleCloudStorage.d.cts +0 -7
- package/dist/googleCloud/storage/server/googleCloudStorage.d.mts +0 -7
- package/dist/googleCloud/storage/server/googleCloudStorage.mjs +0 -27
- package/dist/googlePageSpeed/server/GooglePageSpeedNamespace.d.cts +0 -15
- package/dist/googlePageSpeed/server/GooglePageSpeedNamespace.d.mts +0 -15
- package/dist/googlePageSpeed/server/googlePageSpeed.cjs +0 -33
- package/dist/googlePageSpeed/server/googlePageSpeed.d.cts +0 -23
- package/dist/googlePageSpeed/server/googlePageSpeed.d.mts +0 -23
- package/dist/googlePageSpeed/server/googlePageSpeed.mjs +0 -30
- package/dist/littleWarden/server/littleWarden.cjs +0 -54
- package/dist/littleWarden/server/littleWarden.mjs +0 -48
- package/dist/onePassword/server/OnePasswordNamespace.cjs +0 -38
- package/dist/onePassword/server/OnePasswordNamespace.d.cts +0 -17
- package/dist/onePassword/server/OnePasswordNamespace.d.mts +0 -17
- package/dist/onePassword/server/onePassword.cjs +0 -14
- package/dist/onePassword/server/onePassword.d.cts +0 -11
- package/dist/onePassword/server/onePassword.d.mts +0 -11
- package/dist/onePassword/server/onePassword.mjs +0 -13
- package/dist/openAi/server/openAi.cjs +0 -19
- package/dist/openAi/server/openAi.d.cts +0 -9
- package/dist/openAi/server/openAi.d.mts +0 -9
- package/dist/openAi/server/openAi.mjs +0 -18
- package/dist/snapchat/server/SnapchatNamespace.d.cts +0 -18
- package/dist/snapchat/server/SnapchatNamespace.d.mts +0 -18
- package/dist/snapchat/server/snapchat.cjs +0 -19
- package/dist/snapchat/server/snapchat.d.cts +0 -11
- package/dist/snapchat/server/snapchat.d.mts +0 -11
- package/dist/snapchat/server/snapchat.mjs +0 -18
- package/dist/upTimeRobot/server/UpTimeRobotNamespace.cjs +0 -31
- package/dist/upTimeRobot/server/UpTimeRobotNamespace.mjs +0 -30
- package/dist/upTimeRobot/server/upTimeRobot.cjs +0 -57
- package/dist/upTimeRobot/server/upTimeRobot.d.cts +0 -42
- package/dist/upTimeRobot/server/upTimeRobot.d.mts +0 -42
- 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 =
|
|
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: () =>
|
|
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: () =>
|
|
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 =
|
|
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 };
|
package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.cjs → AwsCloudWatchLog.cjs}
RENAMED
|
@@ -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/
|
|
6
|
-
var
|
|
7
|
-
|
|
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(
|
|
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.
|
|
78
|
+
exports.AwsCloudWatchLog = AwsCloudWatchLog;
|
package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.d.cts → AwsCloudWatchLog.d.cts}
RENAMED
|
@@ -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/
|
|
8
|
-
declare class
|
|
6
|
+
//#region src/aws/cloudWatchLog/server/AwsCloudWatchLog.d.ts
|
|
7
|
+
declare class AwsCloudWatchLog extends BaseNamespace {
|
|
9
8
|
client: CloudWatchLogsClient;
|
|
10
|
-
config:
|
|
11
|
-
|
|
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 {
|
|
32
|
+
export { AwsCloudWatchLog };
|
package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.d.mts → AwsCloudWatchLog.d.mts}
RENAMED
|
@@ -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/
|
|
8
|
-
declare class
|
|
6
|
+
//#region src/aws/cloudWatchLog/server/AwsCloudWatchLog.d.ts
|
|
7
|
+
declare class AwsCloudWatchLog extends BaseNamespace {
|
|
9
8
|
client: CloudWatchLogsClient;
|
|
10
|
-
config:
|
|
11
|
-
|
|
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 {
|
|
32
|
+
export { AwsCloudWatchLog };
|
package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.mjs → AwsCloudWatchLog.mjs}
RENAMED
|
@@ -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/
|
|
5
|
-
var
|
|
6
|
-
|
|
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(
|
|
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 {
|
|
77
|
+
export { AwsCloudWatchLog };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
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.
|
|
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 {
|
|
3
|
-
|
|
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 {
|
|
3
|
-
|
|
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 {
|
|
2
|
-
import { awsCloudWatchLogClient } from "./awsCloudWatchLog.mjs";
|
|
1
|
+
import { AwsCloudWatchLog } from "./AwsCloudWatchLog.mjs";
|
|
3
2
|
import { logLevel } from "./logEvent.mjs";
|
|
4
|
-
export {
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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(
|
|
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
|
|
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 ||
|
|
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.
|
|
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/
|
|
8
|
-
declare class
|
|
6
|
+
//#region src/aws/cloudWatchMetric/server/AwsCloudWatchMetric.d.ts
|
|
7
|
+
declare class AwsCloudWatchMetric extends BaseNamespace {
|
|
9
8
|
client: CloudWatchClient;
|
|
10
|
-
config:
|
|
11
|
-
|
|
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 {
|
|
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/
|
|
8
|
-
declare class
|
|
6
|
+
//#region src/aws/cloudWatchMetric/server/AwsCloudWatchMetric.d.ts
|
|
7
|
+
declare class AwsCloudWatchMetric extends BaseNamespace {
|
|
9
8
|
client: CloudWatchClient;
|
|
10
|
-
config:
|
|
11
|
-
|
|
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 {
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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(
|
|
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
|
|
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 {
|
|
43
|
+
export { AwsCloudWatchMetric };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
|
|
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 {
|
|
3
|
-
|
|
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 {
|
|
3
|
-
|
|
4
|
-
export { AwsCloudWatchMetricNamespace, LogMetric, awsCloudWatchMetricClient };
|
|
2
|
+
import { AwsCloudWatchMetric } from "./AwsCloudWatchMetric.mjs";
|
|
3
|
+
export { AwsCloudWatchMetric, LogMetric };
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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/
|
|
4
|
-
var
|
|
5
|
-
|
|
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(
|
|
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.
|
|
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/
|
|
7
|
-
declare class
|
|
5
|
+
//#region src/aws/ec2/server/AwsEc2.d.ts
|
|
6
|
+
declare class AwsEc2 extends BaseNamespace {
|
|
8
7
|
client: EC2Client;
|
|
9
|
-
config:
|
|
10
|
-
|
|
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 {
|
|
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/
|
|
7
|
-
declare class
|
|
5
|
+
//#region src/aws/ec2/server/AwsEc2.d.ts
|
|
6
|
+
declare class AwsEc2 extends BaseNamespace {
|
|
8
7
|
client: EC2Client;
|
|
9
|
-
config:
|
|
10
|
-
|
|
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 {
|
|
14
|
+
export { AwsEc2 };
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../../_class/BaseNamespace.mjs";
|
|
2
|
-
//#region src/aws/ec2/server/
|
|
3
|
-
var
|
|
4
|
-
|
|
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(
|
|
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 {
|
|
37
|
+
export { AwsEc2 };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
|
|
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 {
|
|
2
|
-
|
|
3
|
-
export { AwsEc2Namespace, awsEc2Client };
|
|
1
|
+
import { AwsEc2 } from "./AwsEc2.cjs";
|
|
2
|
+
export { AwsEc2 };
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export { AwsEc2Namespace, awsEc2Client };
|
|
1
|
+
import { AwsEc2 } from "./AwsEc2.mjs";
|
|
2
|
+
export { AwsEc2 };
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export { AwsEc2Namespace, awsEc2Client };
|
|
1
|
+
import { AwsEc2 } from "./AwsEc2.mjs";
|
|
2
|
+
export { AwsEc2 };
|