@8ms/helpers 2.4.25 → 3.0.2
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/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 +136 -150
- 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,24 +1,23 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require__class_BaseNamespace = require("../../_class/BaseNamespace.cjs");
|
|
3
|
-
//#region src/googleAds/server/
|
|
4
|
-
var
|
|
3
|
+
//#region src/googleAds/server/GoogleAds.ts
|
|
4
|
+
var GoogleAds = class extends require__class_BaseNamespace.BaseNamespace {
|
|
5
5
|
mccAccountId = "";
|
|
6
6
|
refreshToken = "";
|
|
7
|
-
|
|
7
|
+
init = async (config, mccAccountId, refreshToken) => {
|
|
8
8
|
if (!this.client) try {
|
|
9
9
|
this.client = {
|
|
10
|
-
client_id:
|
|
11
|
-
client_secret:
|
|
12
|
-
developer_token:
|
|
10
|
+
client_id: config.clientId,
|
|
11
|
+
client_secret: config.clientSecret,
|
|
12
|
+
developer_token: config.developerToken
|
|
13
13
|
};
|
|
14
|
-
this.mccAccountId =
|
|
15
|
-
this.refreshToken =
|
|
14
|
+
this.mccAccountId = mccAccountId;
|
|
15
|
+
this.refreshToken = refreshToken;
|
|
16
16
|
} catch (e) {
|
|
17
17
|
throw new Error("Google Sheets Client not installed");
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
getCustomer = async (customerId) => {
|
|
21
|
-
await this.ensureInit();
|
|
22
21
|
return {
|
|
23
22
|
customer_id: customerId,
|
|
24
23
|
login_customer_id: this.mccAccountId,
|
|
@@ -27,4 +26,4 @@ var GoogleAdsNamespace = class extends require__class_BaseNamespace.BaseNamespac
|
|
|
27
26
|
};
|
|
28
27
|
};
|
|
29
28
|
//#endregion
|
|
30
|
-
exports.
|
|
29
|
+
exports.GoogleAds = GoogleAds;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../_class/BaseNamespace.cjs";
|
|
2
|
-
import { Config } from "./googleAds.cjs";
|
|
3
2
|
|
|
4
|
-
//#region src/googleAds/server/
|
|
5
|
-
|
|
3
|
+
//#region src/googleAds/server/GoogleAds.d.ts
|
|
4
|
+
type Config = {
|
|
5
|
+
clientId: string;
|
|
6
|
+
clientSecret: string;
|
|
7
|
+
developerToken: string;
|
|
8
|
+
};
|
|
9
|
+
declare class GoogleAds extends BaseNamespace {
|
|
6
10
|
client: any;
|
|
7
11
|
config: Config;
|
|
8
12
|
mccAccountId: string;
|
|
9
13
|
refreshToken: string;
|
|
10
|
-
|
|
14
|
+
init: (config: Config, mccAccountId: string, refreshToken: string) => Promise<void>;
|
|
11
15
|
getCustomer: (customerId: string) => Promise<{
|
|
12
16
|
customer_id: string;
|
|
13
17
|
login_customer_id: string;
|
|
@@ -15,4 +19,4 @@ declare class GoogleAdsNamespace extends BaseNamespace {
|
|
|
15
19
|
}>;
|
|
16
20
|
}
|
|
17
21
|
//#endregion
|
|
18
|
-
export {
|
|
22
|
+
export { Config, GoogleAds };
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../_class/BaseNamespace.mjs";
|
|
2
|
-
import { Config } from "./googleAds.mjs";
|
|
3
2
|
|
|
4
|
-
//#region src/googleAds/server/
|
|
5
|
-
|
|
3
|
+
//#region src/googleAds/server/GoogleAds.d.ts
|
|
4
|
+
type Config = {
|
|
5
|
+
clientId: string;
|
|
6
|
+
clientSecret: string;
|
|
7
|
+
developerToken: string;
|
|
8
|
+
};
|
|
9
|
+
declare class GoogleAds extends BaseNamespace {
|
|
6
10
|
client: any;
|
|
7
11
|
config: Config;
|
|
8
12
|
mccAccountId: string;
|
|
9
13
|
refreshToken: string;
|
|
10
|
-
|
|
14
|
+
init: (config: Config, mccAccountId: string, refreshToken: string) => Promise<void>;
|
|
11
15
|
getCustomer: (customerId: string) => Promise<{
|
|
12
16
|
customer_id: string;
|
|
13
17
|
login_customer_id: string;
|
|
@@ -15,4 +19,4 @@ declare class GoogleAdsNamespace extends BaseNamespace {
|
|
|
15
19
|
}>;
|
|
16
20
|
}
|
|
17
21
|
//#endregion
|
|
18
|
-
export {
|
|
22
|
+
export { Config, GoogleAds };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BaseNamespace } from "../../_class/BaseNamespace.mjs";
|
|
2
|
+
//#region src/googleAds/server/GoogleAds.ts
|
|
3
|
+
var GoogleAds = class extends BaseNamespace {
|
|
4
|
+
mccAccountId = "";
|
|
5
|
+
refreshToken = "";
|
|
6
|
+
init = async (config, mccAccountId, refreshToken) => {
|
|
7
|
+
if (!this.client) try {
|
|
8
|
+
this.client = {
|
|
9
|
+
client_id: config.clientId,
|
|
10
|
+
client_secret: config.clientSecret,
|
|
11
|
+
developer_token: config.developerToken
|
|
12
|
+
};
|
|
13
|
+
this.mccAccountId = mccAccountId;
|
|
14
|
+
this.refreshToken = refreshToken;
|
|
15
|
+
} catch (e) {
|
|
16
|
+
throw new Error("Google Sheets Client not installed");
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
getCustomer = async (customerId) => {
|
|
20
|
+
return {
|
|
21
|
+
customer_id: customerId,
|
|
22
|
+
login_customer_id: this.mccAccountId,
|
|
23
|
+
refresh_token: this.refreshToken
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { GoogleAds };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
exports.GoogleAdsNamespace = require_googleAds_server_GoogleAdsNamespace.GoogleAdsNamespace;
|
|
5
|
-
exports.googleAdsClient = require_googleAds_server_googleAds.googleAdsClient;
|
|
2
|
+
const require_googleAds_server_GoogleAds = require("./GoogleAds.cjs");
|
|
3
|
+
exports.GoogleAds = require_googleAds_server_GoogleAds.GoogleAds;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { Config,
|
|
2
|
-
|
|
3
|
-
export { Config, GoogleAdsNamespace, googleAdsClient };
|
|
1
|
+
import { Config, GoogleAds } from "./GoogleAds.cjs";
|
|
2
|
+
export { Config, GoogleAds };
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { Config,
|
|
2
|
-
|
|
3
|
-
export { Config, GoogleAdsNamespace, googleAdsClient };
|
|
1
|
+
import { Config, GoogleAds } from "./GoogleAds.mjs";
|
|
2
|
+
export { Config, GoogleAds };
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export { GoogleAdsNamespace, googleAdsClient };
|
|
1
|
+
import { GoogleAds } from "./GoogleAds.mjs";
|
|
2
|
+
export { GoogleAds };
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_lodash_isObject = require("../../../lodash/isObject.cjs");
|
|
3
3
|
const require__class_BaseNamespace = require("../../../_class/BaseNamespace.cjs");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
this.region = region;
|
|
11
|
-
}
|
|
12
|
-
ensureInit = async () => {
|
|
4
|
+
//#region src/googleCloud/bigquery/server/GoogleCloudBigquery.ts
|
|
5
|
+
var GoogleCloudBigquery = class extends require__class_BaseNamespace.BaseNamespace {
|
|
6
|
+
/**
|
|
7
|
+
* Either a Google Cloud JSON Config or V10 Auth helper.
|
|
8
|
+
*/
|
|
9
|
+
init = async (isOidc, config, projectId, region) => {
|
|
13
10
|
if (!this.client) try {
|
|
14
11
|
const { BigQuery } = await import("@google-cloud/bigquery");
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
this.client = new BigQuery({
|
|
13
|
+
authClient: isOidc ? config : void 0,
|
|
14
|
+
credentials: isOidc ? void 0 : config,
|
|
15
|
+
projectId
|
|
16
|
+
});
|
|
17
|
+
this.config = config;
|
|
18
|
+
this.projectId = projectId;
|
|
19
|
+
this.region = region ?? "europe-west2";
|
|
17
20
|
} catch (e) {
|
|
18
21
|
throw new Error("Google BigQuery Client not installed");
|
|
19
22
|
}
|
|
@@ -22,12 +25,10 @@ var GoogleCloudBigqueryNamespace = class extends require__class_BaseNamespace.Ba
|
|
|
22
25
|
* Create a Dataset if it doesn't already exist.
|
|
23
26
|
* Returns table instance.
|
|
24
27
|
*/
|
|
25
|
-
createDataset = async (datasetId, options
|
|
26
|
-
await this.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
...options,
|
|
30
|
-
...resolvedRegion ? { location: resolvedRegion } : {}
|
|
28
|
+
createDataset = async (datasetId, options) => {
|
|
29
|
+
if (!await this.datasetExists(datasetId)) await this.client.createDataset(datasetId, {
|
|
30
|
+
location: this.region,
|
|
31
|
+
...options ?? {}
|
|
31
32
|
});
|
|
32
33
|
};
|
|
33
34
|
/**
|
|
@@ -35,12 +36,10 @@ var GoogleCloudBigqueryNamespace = class extends require__class_BaseNamespace.Ba
|
|
|
35
36
|
* Based off:
|
|
36
37
|
* https://github.com/googleapis/nodejs-bigquery/blob/main/samples/getDataset.js
|
|
37
38
|
*/
|
|
38
|
-
datasetExists = async (datasetId
|
|
39
|
-
await this.ensureInit();
|
|
40
|
-
const resolvedRegion = region ?? this.region;
|
|
39
|
+
datasetExists = async (datasetId) => {
|
|
41
40
|
let response;
|
|
42
41
|
try {
|
|
43
|
-
await this.client.dataset(datasetId, { location:
|
|
42
|
+
await this.client.dataset(datasetId, { location: this.region }).get();
|
|
44
43
|
response = true;
|
|
45
44
|
} catch (exception) {
|
|
46
45
|
response = false;
|
|
@@ -51,7 +50,6 @@ var GoogleCloudBigqueryNamespace = class extends require__class_BaseNamespace.Ba
|
|
|
51
50
|
* Retrieve all the Datasets
|
|
52
51
|
*/
|
|
53
52
|
getDatasets = async () => {
|
|
54
|
-
await this.ensureInit();
|
|
55
53
|
let response = [];
|
|
56
54
|
const datasets = await this.client.getDatasets();
|
|
57
55
|
if (datasets?.[0]) for (let i = 0; i < datasets[0].length; i++) response.push({
|
|
@@ -62,7 +60,6 @@ var GoogleCloudBigqueryNamespace = class extends require__class_BaseNamespace.Ba
|
|
|
62
60
|
return response;
|
|
63
61
|
};
|
|
64
62
|
query = async (props) => {
|
|
65
|
-
await this.ensureInit();
|
|
66
63
|
let options = { query: "" };
|
|
67
64
|
if ("string" === typeof props) {
|
|
68
65
|
options.query = props;
|
|
@@ -78,32 +75,29 @@ var GoogleCloudBigqueryNamespace = class extends require__class_BaseNamespace.Ba
|
|
|
78
75
|
/**
|
|
79
76
|
* Create a Table if it doesn't already exist.
|
|
80
77
|
*/
|
|
81
|
-
createTable = async (datasetId, datasetOptions = {}, tableId, options
|
|
82
|
-
await this.ensureInit();
|
|
78
|
+
createTable = async (datasetId, datasetOptions = {}, tableId, options) => {
|
|
83
79
|
await this.createDataset(datasetId, datasetOptions);
|
|
84
|
-
if (!await this.tableExists(datasetId, tableId)) await this.client.dataset(datasetId).createTable(tableId, options
|
|
80
|
+
if (!await this.tableExists(datasetId, tableId)) await this.client.dataset(datasetId).createTable(tableId, { ...options ?? {} });
|
|
85
81
|
};
|
|
86
82
|
/**
|
|
87
83
|
* Check to see whether a given BigQuery table exists.
|
|
88
84
|
* https://cloud.google.com/bigquery/docs/samples/bigquery-table-exists
|
|
89
85
|
*/
|
|
90
|
-
tableExists = async (datasetId, tableId
|
|
91
|
-
await this.ensureInit();
|
|
86
|
+
tableExists = async (datasetId, tableId) => {
|
|
92
87
|
let response = false;
|
|
93
|
-
const tables = await this.getTables(datasetId
|
|
88
|
+
const tables = await this.getTables(datasetId);
|
|
94
89
|
for (let i = 0; i < tables.length; i++) if (tables[i].id === tableId) {
|
|
95
90
|
response = true;
|
|
96
91
|
break;
|
|
97
92
|
}
|
|
98
93
|
return response;
|
|
99
94
|
};
|
|
100
|
-
getTables = async (datasetId
|
|
101
|
-
await this.ensureInit();
|
|
95
|
+
getTables = async (datasetId) => {
|
|
102
96
|
let response = [];
|
|
103
|
-
const tables = await this.client.dataset(datasetId, { location:
|
|
97
|
+
const tables = await this.client.dataset(datasetId, { location: this.region }).getTables();
|
|
104
98
|
if (tables?.[0]) for (let i = 0; i < tables[0].length; i++) response.push({ id: tables[0][i].id });
|
|
105
99
|
return response;
|
|
106
100
|
};
|
|
107
101
|
};
|
|
108
102
|
//#endregion
|
|
109
|
-
exports.
|
|
103
|
+
exports.GoogleCloudBigquery = GoogleCloudBigquery;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../../_class/BaseNamespace.cjs";
|
|
2
|
-
import { GoogleCloudConfig } from "../../server/googleCloud.cjs";
|
|
3
2
|
import { BigQuery, DatasetResource, QueryOptions } from "@google-cloud/bigquery";
|
|
4
3
|
|
|
5
|
-
//#region src/googleCloud/bigquery/server/
|
|
4
|
+
//#region src/googleCloud/bigquery/server/GoogleCloudBigquery.d.ts
|
|
6
5
|
type QueryInput = string | {
|
|
7
6
|
query: string;
|
|
8
7
|
location?: string;
|
|
@@ -16,27 +15,26 @@ type Dataset = {
|
|
|
16
15
|
type Table = {
|
|
17
16
|
id: string;
|
|
18
17
|
};
|
|
19
|
-
declare class
|
|
18
|
+
declare class GoogleCloudBigquery extends BaseNamespace {
|
|
20
19
|
client: BigQuery;
|
|
21
|
-
config:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
ensureInit: () => Promise<void>;
|
|
20
|
+
config: any;
|
|
21
|
+
projectId: string;
|
|
22
|
+
region: string;
|
|
23
|
+
/**
|
|
24
|
+
* Either a Google Cloud JSON Config or V10 Auth helper.
|
|
25
|
+
*/
|
|
26
|
+
init: (isOidc: boolean, config: any, projectId: string, region?: string) => Promise<void>;
|
|
29
27
|
/**
|
|
30
28
|
* Create a Dataset if it doesn't already exist.
|
|
31
29
|
* Returns table instance.
|
|
32
30
|
*/
|
|
33
|
-
createDataset: (datasetId: string, options?: DatasetResource
|
|
31
|
+
createDataset: (datasetId: string, options?: DatasetResource) => Promise<void>;
|
|
34
32
|
/**
|
|
35
33
|
* Check to see whether a given Bigquery dataset exists.
|
|
36
34
|
* Based off:
|
|
37
35
|
* https://github.com/googleapis/nodejs-bigquery/blob/main/samples/getDataset.js
|
|
38
36
|
*/
|
|
39
|
-
datasetExists: (datasetId: string
|
|
37
|
+
datasetExists: (datasetId: string) => Promise<boolean>;
|
|
40
38
|
/**
|
|
41
39
|
* Retrieve all the Datasets
|
|
42
40
|
*/
|
|
@@ -50,8 +48,8 @@ declare class GoogleCloudBigqueryNamespace extends BaseNamespace {
|
|
|
50
48
|
* Check to see whether a given BigQuery table exists.
|
|
51
49
|
* https://cloud.google.com/bigquery/docs/samples/bigquery-table-exists
|
|
52
50
|
*/
|
|
53
|
-
tableExists: (datasetId: string, tableId: string
|
|
54
|
-
getTables: (datasetId: string
|
|
51
|
+
tableExists: (datasetId: string, tableId: string) => Promise<boolean>;
|
|
52
|
+
getTables: (datasetId: string) => Promise<Table[]>;
|
|
55
53
|
}
|
|
56
54
|
//#endregion
|
|
57
|
-
export {
|
|
55
|
+
export { GoogleCloudBigquery, QueryInput };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../../_class/BaseNamespace.mjs";
|
|
2
|
-
import { GoogleCloudConfig } from "../../server/googleCloud.mjs";
|
|
3
2
|
import { BigQuery, DatasetResource, QueryOptions } from "@google-cloud/bigquery";
|
|
4
3
|
|
|
5
|
-
//#region src/googleCloud/bigquery/server/
|
|
4
|
+
//#region src/googleCloud/bigquery/server/GoogleCloudBigquery.d.ts
|
|
6
5
|
type QueryInput = string | {
|
|
7
6
|
query: string;
|
|
8
7
|
location?: string;
|
|
@@ -16,27 +15,26 @@ type Dataset = {
|
|
|
16
15
|
type Table = {
|
|
17
16
|
id: string;
|
|
18
17
|
};
|
|
19
|
-
declare class
|
|
18
|
+
declare class GoogleCloudBigquery extends BaseNamespace {
|
|
20
19
|
client: BigQuery;
|
|
21
|
-
config:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
ensureInit: () => Promise<void>;
|
|
20
|
+
config: any;
|
|
21
|
+
projectId: string;
|
|
22
|
+
region: string;
|
|
23
|
+
/**
|
|
24
|
+
* Either a Google Cloud JSON Config or V10 Auth helper.
|
|
25
|
+
*/
|
|
26
|
+
init: (isOidc: boolean, config: any, projectId: string, region?: string) => Promise<void>;
|
|
29
27
|
/**
|
|
30
28
|
* Create a Dataset if it doesn't already exist.
|
|
31
29
|
* Returns table instance.
|
|
32
30
|
*/
|
|
33
|
-
createDataset: (datasetId: string, options?: DatasetResource
|
|
31
|
+
createDataset: (datasetId: string, options?: DatasetResource) => Promise<void>;
|
|
34
32
|
/**
|
|
35
33
|
* Check to see whether a given Bigquery dataset exists.
|
|
36
34
|
* Based off:
|
|
37
35
|
* https://github.com/googleapis/nodejs-bigquery/blob/main/samples/getDataset.js
|
|
38
36
|
*/
|
|
39
|
-
datasetExists: (datasetId: string
|
|
37
|
+
datasetExists: (datasetId: string) => Promise<boolean>;
|
|
40
38
|
/**
|
|
41
39
|
* Retrieve all the Datasets
|
|
42
40
|
*/
|
|
@@ -50,8 +48,8 @@ declare class GoogleCloudBigqueryNamespace extends BaseNamespace {
|
|
|
50
48
|
* Check to see whether a given BigQuery table exists.
|
|
51
49
|
* https://cloud.google.com/bigquery/docs/samples/bigquery-table-exists
|
|
52
50
|
*/
|
|
53
|
-
tableExists: (datasetId: string, tableId: string
|
|
54
|
-
getTables: (datasetId: string
|
|
51
|
+
tableExists: (datasetId: string, tableId: string) => Promise<boolean>;
|
|
52
|
+
getTables: (datasetId: string) => Promise<Table[]>;
|
|
55
53
|
}
|
|
56
54
|
//#endregion
|
|
57
|
-
export {
|
|
55
|
+
export { GoogleCloudBigquery, QueryInput };
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { isObject } from "../../../lodash/isObject.mjs";
|
|
2
2
|
import { BaseNamespace } from "../../../_class/BaseNamespace.mjs";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
this.region = region;
|
|
10
|
-
}
|
|
11
|
-
ensureInit = async () => {
|
|
3
|
+
//#region src/googleCloud/bigquery/server/GoogleCloudBigquery.ts
|
|
4
|
+
var GoogleCloudBigquery = class extends BaseNamespace {
|
|
5
|
+
/**
|
|
6
|
+
* Either a Google Cloud JSON Config or V10 Auth helper.
|
|
7
|
+
*/
|
|
8
|
+
init = async (isOidc, config, projectId, region) => {
|
|
12
9
|
if (!this.client) try {
|
|
13
10
|
const { BigQuery } = await import("@google-cloud/bigquery");
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
this.client = new BigQuery({
|
|
12
|
+
authClient: isOidc ? config : void 0,
|
|
13
|
+
credentials: isOidc ? void 0 : config,
|
|
14
|
+
projectId
|
|
15
|
+
});
|
|
16
|
+
this.config = config;
|
|
17
|
+
this.projectId = projectId;
|
|
18
|
+
this.region = region ?? "europe-west2";
|
|
16
19
|
} catch (e) {
|
|
17
20
|
throw new Error("Google BigQuery Client not installed");
|
|
18
21
|
}
|
|
@@ -21,12 +24,10 @@ var GoogleCloudBigqueryNamespace = class extends BaseNamespace {
|
|
|
21
24
|
* Create a Dataset if it doesn't already exist.
|
|
22
25
|
* Returns table instance.
|
|
23
26
|
*/
|
|
24
|
-
createDataset = async (datasetId, options
|
|
25
|
-
await this.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
...options,
|
|
29
|
-
...resolvedRegion ? { location: resolvedRegion } : {}
|
|
27
|
+
createDataset = async (datasetId, options) => {
|
|
28
|
+
if (!await this.datasetExists(datasetId)) await this.client.createDataset(datasetId, {
|
|
29
|
+
location: this.region,
|
|
30
|
+
...options ?? {}
|
|
30
31
|
});
|
|
31
32
|
};
|
|
32
33
|
/**
|
|
@@ -34,12 +35,10 @@ var GoogleCloudBigqueryNamespace = class extends BaseNamespace {
|
|
|
34
35
|
* Based off:
|
|
35
36
|
* https://github.com/googleapis/nodejs-bigquery/blob/main/samples/getDataset.js
|
|
36
37
|
*/
|
|
37
|
-
datasetExists = async (datasetId
|
|
38
|
-
await this.ensureInit();
|
|
39
|
-
const resolvedRegion = region ?? this.region;
|
|
38
|
+
datasetExists = async (datasetId) => {
|
|
40
39
|
let response;
|
|
41
40
|
try {
|
|
42
|
-
await this.client.dataset(datasetId, { location:
|
|
41
|
+
await this.client.dataset(datasetId, { location: this.region }).get();
|
|
43
42
|
response = true;
|
|
44
43
|
} catch (exception) {
|
|
45
44
|
response = false;
|
|
@@ -50,7 +49,6 @@ var GoogleCloudBigqueryNamespace = class extends BaseNamespace {
|
|
|
50
49
|
* Retrieve all the Datasets
|
|
51
50
|
*/
|
|
52
51
|
getDatasets = async () => {
|
|
53
|
-
await this.ensureInit();
|
|
54
52
|
let response = [];
|
|
55
53
|
const datasets = await this.client.getDatasets();
|
|
56
54
|
if (datasets?.[0]) for (let i = 0; i < datasets[0].length; i++) response.push({
|
|
@@ -61,7 +59,6 @@ var GoogleCloudBigqueryNamespace = class extends BaseNamespace {
|
|
|
61
59
|
return response;
|
|
62
60
|
};
|
|
63
61
|
query = async (props) => {
|
|
64
|
-
await this.ensureInit();
|
|
65
62
|
let options = { query: "" };
|
|
66
63
|
if ("string" === typeof props) {
|
|
67
64
|
options.query = props;
|
|
@@ -77,32 +74,29 @@ var GoogleCloudBigqueryNamespace = class extends BaseNamespace {
|
|
|
77
74
|
/**
|
|
78
75
|
* Create a Table if it doesn't already exist.
|
|
79
76
|
*/
|
|
80
|
-
createTable = async (datasetId, datasetOptions = {}, tableId, options
|
|
81
|
-
await this.ensureInit();
|
|
77
|
+
createTable = async (datasetId, datasetOptions = {}, tableId, options) => {
|
|
82
78
|
await this.createDataset(datasetId, datasetOptions);
|
|
83
|
-
if (!await this.tableExists(datasetId, tableId)) await this.client.dataset(datasetId).createTable(tableId, options
|
|
79
|
+
if (!await this.tableExists(datasetId, tableId)) await this.client.dataset(datasetId).createTable(tableId, { ...options ?? {} });
|
|
84
80
|
};
|
|
85
81
|
/**
|
|
86
82
|
* Check to see whether a given BigQuery table exists.
|
|
87
83
|
* https://cloud.google.com/bigquery/docs/samples/bigquery-table-exists
|
|
88
84
|
*/
|
|
89
|
-
tableExists = async (datasetId, tableId
|
|
90
|
-
await this.ensureInit();
|
|
85
|
+
tableExists = async (datasetId, tableId) => {
|
|
91
86
|
let response = false;
|
|
92
|
-
const tables = await this.getTables(datasetId
|
|
87
|
+
const tables = await this.getTables(datasetId);
|
|
93
88
|
for (let i = 0; i < tables.length; i++) if (tables[i].id === tableId) {
|
|
94
89
|
response = true;
|
|
95
90
|
break;
|
|
96
91
|
}
|
|
97
92
|
return response;
|
|
98
93
|
};
|
|
99
|
-
getTables = async (datasetId
|
|
100
|
-
await this.ensureInit();
|
|
94
|
+
getTables = async (datasetId) => {
|
|
101
95
|
let response = [];
|
|
102
|
-
const tables = await this.client.dataset(datasetId, { location:
|
|
96
|
+
const tables = await this.client.dataset(datasetId, { location: this.region }).getTables();
|
|
103
97
|
if (tables?.[0]) for (let i = 0; i < tables[0].length; i++) response.push({ id: tables[0][i].id });
|
|
104
98
|
return response;
|
|
105
99
|
};
|
|
106
100
|
};
|
|
107
101
|
//#endregion
|
|
108
|
-
export {
|
|
102
|
+
export { GoogleCloudBigquery };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/googleCloud/bigquery/server/getHandlerPath.ts
|
|
3
|
+
const getHandlerPath = (input) => {
|
|
4
|
+
return `${input.split(process.cwd())[1].substring(1).replace(/\\/g, "/")}`;
|
|
5
|
+
};
|
|
6
|
+
//#endregion
|
|
7
|
+
exports.getHandlerPath = getHandlerPath;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
const
|
|
2
|
+
const require_googleCloud_bigquery_server_GoogleCloudBigquery = require("./GoogleCloudBigquery.cjs");
|
|
3
|
+
const require_googleCloud_bigquery_server_getHandlerPath = require("./getHandlerPath.cjs");
|
|
4
4
|
const require_googleCloud_bigquery_server_loadData = require("./loadData.cjs");
|
|
5
|
-
exports.
|
|
6
|
-
exports.getHandlerPath =
|
|
7
|
-
exports.googleCloudBigqueryClient = require_googleCloud_bigquery_server_googleCloudBigquery.googleCloudBigqueryClient;
|
|
5
|
+
exports.GoogleCloudBigquery = require_googleCloud_bigquery_server_GoogleCloudBigquery.GoogleCloudBigquery;
|
|
6
|
+
exports.getHandlerPath = require_googleCloud_bigquery_server_getHandlerPath.getHandlerPath;
|
|
8
7
|
exports.loadData = require_googleCloud_bigquery_server_loadData.loadData;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getHandlerPath
|
|
1
|
+
import { GoogleCloudBigquery, QueryInput } from "./GoogleCloudBigquery.cjs";
|
|
2
|
+
import { getHandlerPath } from "./getHandlerPath.cjs";
|
|
3
3
|
import { loadData } from "./loadData.cjs";
|
|
4
|
-
export {
|
|
4
|
+
export { GoogleCloudBigquery, QueryInput, getHandlerPath, loadData };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getHandlerPath
|
|
1
|
+
import { GoogleCloudBigquery, QueryInput } from "./GoogleCloudBigquery.mjs";
|
|
2
|
+
import { getHandlerPath } from "./getHandlerPath.mjs";
|
|
3
3
|
import { loadData } from "./loadData.mjs";
|
|
4
|
-
export {
|
|
4
|
+
export { GoogleCloudBigquery, QueryInput, getHandlerPath, loadData };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getHandlerPath
|
|
1
|
+
import { GoogleCloudBigquery } from "./GoogleCloudBigquery.mjs";
|
|
2
|
+
import { getHandlerPath } from "./getHandlerPath.mjs";
|
|
3
3
|
import { loadData } from "./loadData.mjs";
|
|
4
|
-
export {
|
|
4
|
+
export { GoogleCloudBigquery, getHandlerPath, loadData };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GoogleCloudBigquery } from "./GoogleCloudBigquery.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/googleCloud/bigquery/server/loadData.d.ts
|
|
4
4
|
type LoadData = {
|
|
5
|
-
googleCloudBigqueryClient:
|
|
5
|
+
googleCloudBigqueryClient: GoogleCloudBigquery;
|
|
6
6
|
googleCloudStorageClient: any;
|
|
7
7
|
file: {
|
|
8
8
|
bucket: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GoogleCloudBigquery } from "./GoogleCloudBigquery.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/googleCloud/bigquery/server/loadData.d.ts
|
|
4
4
|
type LoadData = {
|
|
5
|
-
googleCloudBigqueryClient:
|
|
5
|
+
googleCloudBigqueryClient: GoogleCloudBigquery;
|
|
6
6
|
googleCloudStorageClient: any;
|
|
7
7
|
file: {
|
|
8
8
|
bucket: string;
|