@8ms/helpers 3.0.21 → 3.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/dist/adverity/adverity.d.cts +0 -1
  2. package/dist/adverity/adverity.d.mts +0 -1
  3. package/dist/adverity/server/getJobs.d.cts +2 -0
  4. package/dist/adverity/server/getJobs.d.mts +2 -0
  5. package/dist/api/ApiResponseClass.cjs +2 -1
  6. package/dist/api/ApiResponseClass.d.cts +1 -6
  7. package/dist/api/ApiResponseClass.d.mts +1 -6
  8. package/dist/api/ApiResponseClass.mjs +2 -1
  9. package/dist/api/api.d.cts +0 -1
  10. package/dist/api/api.d.mts +0 -1
  11. package/dist/api/deleteRequest.d.cts +0 -1
  12. package/dist/api/deleteRequest.d.mts +0 -1
  13. package/dist/api/functions.d.cts +0 -1
  14. package/dist/api/functions.d.mts +0 -1
  15. package/dist/api/get.d.cts +0 -1
  16. package/dist/api/get.d.mts +0 -1
  17. package/dist/api/post.d.cts +0 -1
  18. package/dist/api/post.d.mts +0 -1
  19. package/dist/atInternet/atInternet.d.cts +0 -1
  20. package/dist/atInternet/atInternet.d.mts +0 -1
  21. package/dist/aws/cloudWatchLog/server/AwsCloudWatchLog.d.cts +0 -1
  22. package/dist/aws/cloudWatchLog/server/AwsCloudWatchLog.d.mts +0 -1
  23. package/dist/aws/cloudWatchLog/server/logEvent.d.cts +1 -0
  24. package/dist/aws/cloudWatchLog/server/logEvent.d.mts +1 -0
  25. package/dist/aws/cloudWatchMetric/server/AwsCloudWatchMetric.d.cts +0 -1
  26. package/dist/aws/cloudWatchMetric/server/AwsCloudWatchMetric.d.mts +0 -1
  27. package/dist/aws/cloudWatchMetric/server/logMetric.d.cts +1 -1
  28. package/dist/aws/cloudWatchMetric/server/logMetric.d.mts +1 -1
  29. package/dist/aws/ec2/server/AwsEc2.d.cts +0 -1
  30. package/dist/aws/ec2/server/AwsEc2.d.mts +0 -1
  31. package/dist/aws/ecs/server/AwsEcs.d.cts +0 -1
  32. package/dist/aws/ecs/server/AwsEcs.d.mts +0 -1
  33. package/dist/aws/glue/server/AwsGlue.d.cts +0 -1
  34. package/dist/aws/glue/server/AwsGlue.d.mts +0 -1
  35. package/dist/aws/lambda/server/AwsLambda.d.cts +0 -1
  36. package/dist/aws/lambda/server/AwsLambda.d.mts +0 -1
  37. package/dist/aws/s3/server/AwsS3.d.cts +1 -1
  38. package/dist/aws/s3/server/AwsS3.d.mts +1 -1
  39. package/dist/aws/s3/server/payload.d.cts +0 -1
  40. package/dist/aws/s3/server/payload.d.mts +0 -1
  41. package/dist/aws/server/getAwsConfig.cjs +3 -1
  42. package/dist/aws/server/getAwsConfig.mjs +3 -1
  43. package/dist/aws/ses/server/AwsSes.cjs +4 -11
  44. package/dist/aws/ses/server/AwsSes.d.cts +3 -4
  45. package/dist/aws/ses/server/AwsSes.d.mts +3 -4
  46. package/dist/aws/ses/server/AwsSes.mjs +4 -11
  47. package/dist/aws/ses/server/SimpleEmail.cjs +10 -11
  48. package/dist/aws/ses/server/SimpleEmail.d.cts +3 -12
  49. package/dist/aws/ses/server/SimpleEmail.d.mts +3 -12
  50. package/dist/aws/ses/server/SimpleEmail.mjs +10 -11
  51. package/dist/aws/sqs/server/AwsSqs.d.cts +0 -1
  52. package/dist/aws/sqs/server/AwsSqs.d.mts +0 -1
  53. package/dist/aws/ssm/server/AwsSsm.d.cts +0 -1
  54. package/dist/aws/ssm/server/AwsSsm.d.mts +0 -1
  55. package/dist/brightData/serpApi/server/getAsyncRequestId.d.cts +1 -0
  56. package/dist/brightData/serpApi/server/getAsyncRequestId.d.mts +1 -0
  57. package/dist/brightData/serpApi/server/getAsyncResults.d.cts +1 -1
  58. package/dist/brightData/serpApi/server/getAsyncResults.d.mts +1 -1
  59. package/dist/brightData/serpApi/server/getRealtime.d.cts +0 -1
  60. package/dist/brightData/serpApi/server/getRealtime.d.mts +0 -1
  61. package/dist/brightData/webScraperIde/server/getBatch.d.cts +0 -1
  62. package/dist/brightData/webScraperIde/server/getBatch.d.mts +0 -1
  63. package/dist/brightData/webScraperIde/server/getRealtime.d.cts +0 -1
  64. package/dist/brightData/webScraperIde/server/getRealtime.d.mts +0 -1
  65. package/dist/date/calculation.d.cts +0 -1
  66. package/dist/date/calculation.d.mts +0 -1
  67. package/dist/date/date.d.cts +0 -1
  68. package/dist/date/date.d.mts +0 -1
  69. package/dist/date/financialYear.d.cts +0 -1
  70. package/dist/date/financialYear.d.mts +0 -1
  71. package/dist/date/format.cjs +8 -4
  72. package/dist/date/format.d.cts +0 -1
  73. package/dist/date/format.d.mts +0 -1
  74. package/dist/date/format.mjs +8 -4
  75. package/dist/drizzle/server/Drizzle.d.cts +0 -1
  76. package/dist/drizzle/server/Drizzle.d.mts +0 -1
  77. package/dist/emsApi/awsTs/get.d.cts +1 -0
  78. package/dist/emsApi/awsTs/get.d.mts +1 -0
  79. package/dist/emsApi/awsTs/post.d.cts +1 -0
  80. package/dist/emsApi/awsTs/post.d.mts +1 -0
  81. package/dist/emsApi/vercel/get.d.cts +1 -0
  82. package/dist/emsApi/vercel/get.d.mts +1 -0
  83. package/dist/emsApi/vercel/post.d.cts +1 -0
  84. package/dist/emsApi/vercel/post.d.mts +1 -0
  85. package/dist/environment/environment.cjs +3 -7
  86. package/dist/environment/environment.d.cts +1 -0
  87. package/dist/environment/environment.d.mts +1 -0
  88. package/dist/environment/environment.mjs +3 -7
  89. package/dist/eskimi/eskimi.d.cts +0 -1
  90. package/dist/eskimi/eskimi.d.mts +0 -1
  91. package/dist/googleAds/keywordPlanner/server/googleAdsKeywordPlanner.d.cts +0 -1
  92. package/dist/googleAds/keywordPlanner/server/googleAdsKeywordPlanner.d.mts +0 -1
  93. package/dist/googleAds/server/GoogleAds.d.cts +0 -1
  94. package/dist/googleAds/server/GoogleAds.d.mts +0 -1
  95. package/dist/googleCloud/bigquery/server/GoogleCloudBigquery.d.cts +0 -1
  96. package/dist/googleCloud/bigquery/server/GoogleCloudBigquery.d.mts +0 -1
  97. package/dist/googleCloud/bigquery/server/loadData.d.cts +1 -7
  98. package/dist/googleCloud/bigquery/server/loadData.d.mts +1 -7
  99. package/dist/googleCloud/sheets/server/GoogleCloudSheets.d.cts +0 -1
  100. package/dist/googleCloud/sheets/server/GoogleCloudSheets.d.mts +0 -1
  101. package/dist/googleCloud/storage/server/GoogleCloudStorage.d.cts +0 -1
  102. package/dist/googleCloud/storage/server/GoogleCloudStorage.d.mts +0 -1
  103. package/dist/googlePageSpeed/server/GooglePageSpeed.d.cts +0 -1
  104. package/dist/googlePageSpeed/server/GooglePageSpeed.d.mts +0 -1
  105. package/dist/googleSearchIncidents/server/googleSearchIncidents.d.cts +0 -1
  106. package/dist/googleSearchIncidents/server/googleSearchIncidents.d.mts +0 -1
  107. package/dist/greenDomain/server/greenDomain.d.cts +0 -1
  108. package/dist/greenDomain/server/greenDomain.d.mts +0 -1
  109. package/dist/littleWarden/server/LittleWarden.d.cts +0 -1
  110. package/dist/littleWarden/server/LittleWarden.d.mts +0 -1
  111. package/dist/littleWarden/server/littleWardenAttrs.d.cts +3 -10
  112. package/dist/littleWarden/server/littleWardenAttrs.d.mts +3 -10
  113. package/dist/lumar/api/server/buildRequest.d.cts +1 -0
  114. package/dist/lumar/api/server/buildRequest.d.mts +1 -0
  115. package/dist/lumar/api/server/getData.d.cts +1 -0
  116. package/dist/lumar/api/server/getData.d.mts +1 -0
  117. package/dist/lumar/graphql/server/getData.d.cts +1 -0
  118. package/dist/lumar/graphql/server/getData.d.mts +1 -0
  119. package/dist/lumar/graphql/server/queries/getCrawls.d.cts +1 -4
  120. package/dist/lumar/graphql/server/queries/getCrawls.d.mts +1 -4
  121. package/dist/lumar/graphql/server/queries/getReportDifferences.d.cts +1 -5
  122. package/dist/lumar/graphql/server/queries/getReportDifferences.d.mts +1 -5
  123. package/dist/lumar/graphql/server/queries/getRows.d.cts +1 -11
  124. package/dist/lumar/graphql/server/queries/getRows.d.mts +1 -11
  125. package/dist/lumar/graphql/server/queries/getTotals.d.cts +1 -7
  126. package/dist/lumar/graphql/server/queries/getTotals.d.mts +1 -7
  127. package/dist/myTarget/server/myTarget.d.cts +0 -1
  128. package/dist/myTarget/server/myTarget.d.mts +0 -1
  129. package/dist/nextAuth/nextAuth.d.cts +0 -1
  130. package/dist/nextAuth/nextAuth.d.mts +0 -1
  131. package/dist/nextJs/client/LazyLoad.d.cts +0 -1
  132. package/dist/nextJs/client/LazyLoad.d.mts +0 -1
  133. package/dist/onePassword/server/OnePassword.d.cts +0 -1
  134. package/dist/onePassword/server/OnePassword.d.mts +0 -1
  135. package/dist/openAi/server/OpenAi.d.cts +0 -1
  136. package/dist/openAi/server/OpenAi.d.mts +0 -1
  137. package/dist/prisma/server/Prisma.d.cts +0 -1
  138. package/dist/prisma/server/Prisma.d.mts +0 -1
  139. package/dist/snapchat/server/Snapchat.d.cts +0 -1
  140. package/dist/snapchat/server/Snapchat.d.mts +0 -1
  141. package/dist/stream/server/sort.d.cts +0 -1
  142. package/dist/stream/server/sort.d.mts +0 -1
  143. package/dist/swr/client/swr.d.cts +1 -0
  144. package/dist/swr/client/swr.d.mts +1 -0
  145. package/dist/upTimeRobot/server/UpTimeRobot.d.cts +0 -1
  146. package/dist/upTimeRobot/server/UpTimeRobot.d.mts +0 -1
  147. package/dist/util/isUndefined.cjs +2 -1
  148. package/dist/util/isUndefined.mjs +2 -1
  149. package/dist/util/server/getBrotliCompressed.d.cts +0 -1
  150. package/dist/util/server/getBrotliCompressed.d.mts +0 -1
  151. package/dist/util/server/getBrotliDecompressed.d.cts +0 -1
  152. package/dist/util/server/getBrotliDecompressed.d.mts +0 -1
  153. package/dist/util/server/getGzipCompressed.d.cts +0 -1
  154. package/dist/util/server/getGzipCompressed.d.mts +0 -1
  155. package/dist/util/server/getGzipDecompressed.d.cts +0 -1
  156. package/dist/util/server/getGzipDecompressed.d.mts +0 -1
  157. package/package.json +31 -31
@@ -82,7 +82,7 @@ var SimpleEmail = class extends BaseClass {
82
82
  CcAddresses: this._filterRecipients("cc"),
83
83
  ToAddresses: this._filterRecipients("to")
84
84
  },
85
- Message: {
85
+ Content: { Simple: {
86
86
  Body: {
87
87
  Html: {
88
88
  Charset: "UTF-8",
@@ -97,17 +97,12 @@ var SimpleEmail = class extends BaseClass {
97
97
  Charset: "UTF-8",
98
98
  Data: this.subject ?? ""
99
99
  }
100
- },
101
- Source: this.from ?? ""
100
+ } },
101
+ FromEmailAddress: this.from ?? ""
102
102
  };
103
103
  };
104
104
  _getRawEmailParams = async () => {
105
105
  const boundary = `----=_NextPart_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
106
- const allRecipients = [
107
- ...this._filterRecipients("to"),
108
- ...this._filterRecipients("cc"),
109
- ...this._filterRecipients("bcc")
110
- ];
111
106
  let rawMessage = "";
112
107
  rawMessage += `From: ${this.from}\r\n`;
113
108
  if (this._filterRecipients("to").length > 0) rawMessage += `To: ${this._filterRecipients("to").join(", ")}\r\n`;
@@ -136,9 +131,13 @@ var SimpleEmail = class extends BaseClass {
136
131
  }
137
132
  rawMessage += `--${boundary}--\r\n`;
138
133
  return {
139
- Destinations: allRecipients,
140
- RawMessage: { Data: Buffer.from(rawMessage) },
141
- Source: this.from ?? ""
134
+ Destination: {
135
+ ToAddresses: this._filterRecipients("to"),
136
+ CcAddresses: this._filterRecipients("cc"),
137
+ BccAddresses: this._filterRecipients("bcc")
138
+ },
139
+ Content: { Raw: { Data: Buffer.from(rawMessage) } },
140
+ FromEmailAddress: this.from ?? ""
142
141
  };
143
142
  };
144
143
  _isTextFile = (contentType) => {
@@ -1,6 +1,5 @@
1
1
  import { BaseNamespace } from "../../../_class/BaseNamespace.cjs";
2
2
  import { SQSClient } from "@aws-sdk/client-sqs";
3
-
4
3
  //#region src/aws/sqs/server/AwsSqs.d.ts
5
4
  type SqsEventRecord = {
6
5
  messageId: string;
@@ -1,6 +1,5 @@
1
1
  import { BaseNamespace } from "../../../_class/BaseNamespace.mjs";
2
2
  import { SQSClient } from "@aws-sdk/client-sqs";
3
-
4
3
  //#region src/aws/sqs/server/AwsSqs.d.ts
5
4
  type SqsEventRecord = {
6
5
  messageId: string;
@@ -1,6 +1,5 @@
1
1
  import { BaseNamespace } from "../../../_class/BaseNamespace.cjs";
2
2
  import { SSMClient } from "@aws-sdk/client-ssm";
3
-
4
3
  //#region src/aws/ssm/server/AwsSsm.d.ts
5
4
  declare class AwsSsm extends BaseNamespace {
6
5
  client: SSMClient;
@@ -1,6 +1,5 @@
1
1
  import { BaseNamespace } from "../../../_class/BaseNamespace.mjs";
2
2
  import { SSMClient } from "@aws-sdk/client-ssm";
3
-
4
3
  //#region src/aws/ssm/server/AwsSsm.d.ts
5
4
  declare class AwsSsm extends BaseNamespace {
6
5
  client: SSMClient;
@@ -1,5 +1,6 @@
1
1
  import { BrightDataSerpApiType } from "./brightDataSerpApi.cjs";
2
2
  import { Auth } from "../../server/brightData.cjs";
3
+ import "./index.cjs";
3
4
  //#region src/brightData/serpApi/server/getAsyncRequestId.d.ts
4
5
  /**
5
6
  * Make an async request to the SERP API using the Bright Data proxy.
@@ -1,5 +1,6 @@
1
1
  import { BrightDataSerpApiType } from "./brightDataSerpApi.mjs";
2
2
  import { Auth } from "../../server/brightData.mjs";
3
+ import "./index.mjs";
3
4
  //#region src/brightData/serpApi/server/getAsyncRequestId.d.ts
4
5
  /**
5
6
  * Make an async request to the SERP API using the Bright Data proxy.
@@ -1,6 +1,6 @@
1
1
  import { ApiResponseClass } from "../../../api/ApiResponseClass.cjs";
2
+ import "../../../api/index.cjs";
2
3
  import { Auth } from "../../server/brightData.cjs";
3
-
4
4
  //#region src/brightData/serpApi/server/getAsyncResults.d.ts
5
5
  /**
6
6
  * Using the request ID from getAsyncRequestId fetch to see if the data is available.
@@ -1,6 +1,6 @@
1
1
  import { ApiResponseClass } from "../../../api/ApiResponseClass.mjs";
2
+ import "../../../api/index.mjs";
2
3
  import { Auth } from "../../server/brightData.mjs";
3
-
4
4
  //#region src/brightData/serpApi/server/getAsyncResults.d.ts
5
5
  /**
6
6
  * Using the request ID from getAsyncRequestId fetch to see if the data is available.
@@ -1,5 +1,4 @@
1
1
  import { Auth } from "../../server/brightData.cjs";
2
-
3
2
  //#region src/brightData/serpApi/server/getRealtime.d.ts
4
3
  /**
5
4
  * Make a request to the SERP API using the Bright Data proxy
@@ -1,5 +1,4 @@
1
1
  import { Auth } from "../../server/brightData.mjs";
2
-
3
2
  //#region src/brightData/serpApi/server/getRealtime.d.ts
4
3
  /**
5
4
  * Make a request to the SERP API using the Bright Data proxy
@@ -1,5 +1,4 @@
1
1
  import { Auth } from "../../server/brightData.cjs";
2
-
3
2
  //#region src/brightData/webScraperIde/server/getBatch.d.ts
4
3
  type Response = {
5
4
  collection_id: string;
@@ -1,5 +1,4 @@
1
1
  import { Auth } from "../../server/brightData.mjs";
2
-
3
2
  //#region src/brightData/webScraperIde/server/getBatch.d.ts
4
3
  type Response = {
5
4
  collection_id: string;
@@ -1,5 +1,4 @@
1
1
  import { Auth } from "../../server/brightData.cjs";
2
-
3
2
  //#region src/brightData/webScraperIde/server/getRealtime.d.ts
4
3
  /**
5
4
  * Depends on the Scraper setup!
@@ -1,5 +1,4 @@
1
1
  import { Auth } from "../../server/brightData.mjs";
2
-
3
2
  //#region src/brightData/webScraperIde/server/getRealtime.d.ts
4
3
  /**
5
4
  * Depends on the Scraper setup!
@@ -1,6 +1,5 @@
1
1
  import { InputDate, Timeframe } from "./date.cjs";
2
2
  import { DateTime } from "luxon";
3
-
4
3
  //#region src/date/calculation.d.ts
5
4
  /**
6
5
  * Return unix timestamp in seconds.
@@ -1,6 +1,5 @@
1
1
  import { InputDate, Timeframe } from "./date.mjs";
2
2
  import { DateTime } from "luxon";
3
-
4
3
  //#region src/date/calculation.d.ts
5
4
  /**
6
5
  * Return unix timestamp in seconds.
@@ -1,5 +1,4 @@
1
1
  import { DateTime } from "luxon";
2
-
3
2
  //#region src/date/date.d.ts
4
3
  type InputDate = Date | DateTime | string | number;
5
4
  type FinancialWeek = {
@@ -1,5 +1,4 @@
1
1
  import { DateTime } from "luxon";
2
-
3
2
  //#region src/date/date.d.ts
4
3
  type InputDate = Date | DateTime | string | number;
5
4
  type FinancialWeek = {
@@ -1,6 +1,5 @@
1
1
  import { Timeframe } from "./date.cjs";
2
2
  import { Interval } from "luxon";
3
-
4
3
  //#region src/date/financialYear.d.ts
5
4
  /**
6
5
  * Get the financial year based on an optional year.
@@ -1,6 +1,5 @@
1
1
  import { Timeframe } from "./date.mjs";
2
2
  import { Interval } from "luxon";
3
-
4
3
  //#region src/date/financialYear.d.ts
5
4
  /**
6
5
  * Get the financial year based on an optional year.
@@ -86,25 +86,29 @@ const getYearMonthString = (input) => {
86
86
  * Shorthand to get the current date.
87
87
  */
88
88
  const getTodayYmdString = (setMidnight) => {
89
- return getYmdString(require_date_calculation.getToday(setMidnight));
89
+ const today = require_date_calculation.getToday(setMidnight);
90
+ return getYmdString(today);
90
91
  };
91
92
  /**
92
93
  * Shorthand to get the current date.
93
94
  */
94
95
  const getTodayYmdHisString = (setMidnight) => {
95
- return getYmdHisString(require_date_calculation.getToday(setMidnight));
96
+ const today = require_date_calculation.getToday(setMidnight);
97
+ return getYmdHisString(today);
96
98
  };
97
99
  /**
98
100
  * Shorthand to get the current date.
99
101
  */
100
102
  const getTodayYmdNumber = (setMidnight) => {
101
- return getYmdNumber(require_date_calculation.getToday(setMidnight));
103
+ const today = require_date_calculation.getToday(setMidnight);
104
+ return getYmdNumber(today);
102
105
  };
103
106
  /**
104
107
  * Shorthand to get the current date.
105
108
  */
106
109
  const getTodayYmdHisNumber = (setMidnight) => {
107
- return getYmdHisNumber(require_date_calculation.getToday(setMidnight));
110
+ const today = require_date_calculation.getToday(setMidnight);
111
+ return getYmdHisNumber(today);
108
112
  };
109
113
  /**
110
114
  * Convert a Date into a YYYY number.
@@ -1,6 +1,5 @@
1
1
  import { InputDate } from "./date.cjs";
2
2
  import { DateTime } from "luxon";
3
-
4
3
  //#region src/date/format.d.ts
5
4
  /**
6
5
  * Convert a number of seconds into HH:MM:SS
@@ -1,6 +1,5 @@
1
1
  import { InputDate } from "./date.mjs";
2
2
  import { DateTime } from "luxon";
3
-
4
3
  //#region src/date/format.d.ts
5
4
  /**
6
5
  * Convert a number of seconds into HH:MM:SS
@@ -85,25 +85,29 @@ const getYearMonthString = (input) => {
85
85
  * Shorthand to get the current date.
86
86
  */
87
87
  const getTodayYmdString = (setMidnight) => {
88
- return getYmdString(getToday(setMidnight));
88
+ const today = getToday(setMidnight);
89
+ return getYmdString(today);
89
90
  };
90
91
  /**
91
92
  * Shorthand to get the current date.
92
93
  */
93
94
  const getTodayYmdHisString = (setMidnight) => {
94
- return getYmdHisString(getToday(setMidnight));
95
+ const today = getToday(setMidnight);
96
+ return getYmdHisString(today);
95
97
  };
96
98
  /**
97
99
  * Shorthand to get the current date.
98
100
  */
99
101
  const getTodayYmdNumber = (setMidnight) => {
100
- return getYmdNumber(getToday(setMidnight));
102
+ const today = getToday(setMidnight);
103
+ return getYmdNumber(today);
101
104
  };
102
105
  /**
103
106
  * Shorthand to get the current date.
104
107
  */
105
108
  const getTodayYmdHisNumber = (setMidnight) => {
106
- return getYmdHisNumber(getToday(setMidnight));
109
+ const today = getToday(setMidnight);
110
+ return getYmdHisNumber(today);
107
111
  };
108
112
  /**
109
113
  * Convert a Date into a YYYY number.
@@ -1,6 +1,5 @@
1
1
  import { BaseNamespace } from "../../_class/BaseNamespace.cjs";
2
2
  import { defineRelations } from "drizzle-orm";
3
-
4
3
  //#region src/drizzle/server/Drizzle.d.ts
5
4
  type DrizzleConfig<TSchema extends Record<string, unknown> = Record<string, unknown>> = {
6
5
  schema?: TSchema;
@@ -1,6 +1,5 @@
1
1
  import { BaseNamespace } from "../../_class/BaseNamespace.mjs";
2
2
  import { defineRelations } from "drizzle-orm";
3
-
4
3
  //#region src/drizzle/server/Drizzle.d.ts
5
4
  type DrizzleConfig<TSchema extends Record<string, unknown> = Record<string, unknown>> = {
6
5
  schema?: TSchema;
@@ -1,5 +1,6 @@
1
1
  import { ApiResponseClass } from "../../api/ApiResponseClass.cjs";
2
2
  import { Config } from "../../api/config.cjs";
3
+ import "../../api/index.cjs";
3
4
  //#region src/emsApi/awsTs/get.d.ts
4
5
  declare const getAwsTs: (path: string, config?: Config) => Promise<ApiResponseClass<any, any>>;
5
6
  //#endregion
@@ -1,5 +1,6 @@
1
1
  import { ApiResponseClass } from "../../api/ApiResponseClass.mjs";
2
2
  import { Config } from "../../api/config.mjs";
3
+ import "../../api/index.mjs";
3
4
  //#region src/emsApi/awsTs/get.d.ts
4
5
  declare const getAwsTs: (path: string, config?: Config) => Promise<ApiResponseClass<any, any>>;
5
6
  //#endregion
@@ -1,5 +1,6 @@
1
1
  import { ApiResponseClass } from "../../api/ApiResponseClass.cjs";
2
2
  import { Config } from "../../api/config.cjs";
3
+ import "../../api/index.cjs";
3
4
  //#region src/emsApi/awsTs/post.d.ts
4
5
  declare const postAwsTs: (path: string, data?: {}, config?: Config) => Promise<ApiResponseClass<any, any>>;
5
6
  //#endregion
@@ -1,5 +1,6 @@
1
1
  import { ApiResponseClass } from "../../api/ApiResponseClass.mjs";
2
2
  import { Config } from "../../api/config.mjs";
3
+ import "../../api/index.mjs";
3
4
  //#region src/emsApi/awsTs/post.d.ts
4
5
  declare const postAwsTs: (path: string, data?: {}, config?: Config) => Promise<ApiResponseClass<any, any>>;
5
6
  //#endregion
@@ -1,5 +1,6 @@
1
1
  import { ApiResponseClass } from "../../api/ApiResponseClass.cjs";
2
2
  import { Config } from "../../api/config.cjs";
3
+ import "../../api/index.cjs";
3
4
  //#region src/emsApi/vercel/get.d.ts
4
5
  declare const getVercel: (path: string, config?: Config) => Promise<ApiResponseClass<any, any>>;
5
6
  //#endregion
@@ -1,5 +1,6 @@
1
1
  import { ApiResponseClass } from "../../api/ApiResponseClass.mjs";
2
2
  import { Config } from "../../api/config.mjs";
3
+ import "../../api/index.mjs";
3
4
  //#region src/emsApi/vercel/get.d.ts
4
5
  declare const getVercel: (path: string, config?: Config) => Promise<ApiResponseClass<any, any>>;
5
6
  //#endregion
@@ -1,5 +1,6 @@
1
1
  import { ApiResponseClass } from "../../api/ApiResponseClass.cjs";
2
2
  import { Config } from "../../api/config.cjs";
3
+ import "../../api/index.cjs";
3
4
  //#region src/emsApi/vercel/post.d.ts
4
5
  declare const postVercel: (path: string, data?: {}, config?: Config) => Promise<ApiResponseClass<any, any>>;
5
6
  //#endregion
@@ -1,5 +1,6 @@
1
1
  import { ApiResponseClass } from "../../api/ApiResponseClass.mjs";
2
2
  import { Config } from "../../api/config.mjs";
3
+ import "../../api/index.mjs";
3
4
  //#region src/emsApi/vercel/post.d.ts
4
5
  declare const postVercel: (path: string, data?: {}, config?: Config) => Promise<ApiResponseClass<any, any>>;
5
6
  //#endregion
@@ -7,6 +7,7 @@ const environment = {
7
7
  };
8
8
  const platform = {
9
9
  AWS: "AWS",
10
+ LOCALHOST: "LOCALHOST",
10
11
  VERCEL: "VERCEL",
11
12
  GCP: "GCP"
12
13
  };
@@ -37,7 +38,7 @@ const getEnvironment = () => {
37
38
  * Check to see if we are working on AWS Lambda.
38
39
  */
39
40
  const isAws = () => platform.AWS === process.env["EMS_PLATFORM"];
40
- const isVercel = () => "undefined" !== typeof process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF;
41
+ const isVercel = () => platform.VERCEL === process.env["EMS_PLATFORM"];
41
42
  const isGoogleCloud = () => platform.GCP === process.env["EMS_PLATFORM"];
42
43
  /**
43
44
  * Some code should only run on the server side to protect the data.
@@ -52,12 +53,7 @@ const isProduction = () => environment.PRODUCTION === getEnvironment();
52
53
  /**
53
54
  * Check to see if we are developing locally or on the hosted platform.
54
55
  */
55
- const isLocalhost = () => {
56
- if ("true" === process.env["IS_LOCAL"]) return true;
57
- if (isAws()) return "true" === process.env["AWS_SAM_LOCAL"];
58
- if (isVercel()) return "undefined" === typeof process.env["NEXT_PUBLIC_VERCEL_GIT_REPO_ID"];
59
- return false;
60
- };
56
+ const isLocalhost = () => platform.LOCALHOST === process.env["EMS_PLATFORM"];
61
57
  //#endregion
62
58
  exports.environment = environment;
63
59
  exports.getEnvironment = getEnvironment;
@@ -7,6 +7,7 @@ declare const environment: {
7
7
  type Environment = typeof environment[keyof typeof environment];
8
8
  declare const platform: {
9
9
  readonly AWS: "AWS";
10
+ readonly LOCALHOST: "LOCALHOST";
10
11
  readonly VERCEL: "VERCEL";
11
12
  readonly GCP: "GCP";
12
13
  };
@@ -7,6 +7,7 @@ declare const environment: {
7
7
  type Environment = typeof environment[keyof typeof environment];
8
8
  declare const platform: {
9
9
  readonly AWS: "AWS";
10
+ readonly LOCALHOST: "LOCALHOST";
10
11
  readonly VERCEL: "VERCEL";
11
12
  readonly GCP: "GCP";
12
13
  };
@@ -6,6 +6,7 @@ const environment = {
6
6
  };
7
7
  const platform = {
8
8
  AWS: "AWS",
9
+ LOCALHOST: "LOCALHOST",
9
10
  VERCEL: "VERCEL",
10
11
  GCP: "GCP"
11
12
  };
@@ -36,7 +37,7 @@ const getEnvironment = () => {
36
37
  * Check to see if we are working on AWS Lambda.
37
38
  */
38
39
  const isAws = () => platform.AWS === process.env["EMS_PLATFORM"];
39
- const isVercel = () => "undefined" !== typeof process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF;
40
+ const isVercel = () => platform.VERCEL === process.env["EMS_PLATFORM"];
40
41
  const isGoogleCloud = () => platform.GCP === process.env["EMS_PLATFORM"];
41
42
  /**
42
43
  * Some code should only run on the server side to protect the data.
@@ -51,11 +52,6 @@ const isProduction = () => environment.PRODUCTION === getEnvironment();
51
52
  /**
52
53
  * Check to see if we are developing locally or on the hosted platform.
53
54
  */
54
- const isLocalhost = () => {
55
- if ("true" === process.env["IS_LOCAL"]) return true;
56
- if (isAws()) return "true" === process.env["AWS_SAM_LOCAL"];
57
- if (isVercel()) return "undefined" === typeof process.env["NEXT_PUBLIC_VERCEL_GIT_REPO_ID"];
58
- return false;
59
- };
55
+ const isLocalhost = () => platform.LOCALHOST === process.env["EMS_PLATFORM"];
60
56
  //#endregion
61
57
  export { environment, getEnvironment, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform };
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod/v4";
2
-
3
2
  //#region src/eskimi/eskimi.d.ts
4
3
  /**
5
4
  * https://dsp-api.eskimi.com/docs/api/v1/#api-Report-GetCampaignReportByAgeGroups
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod/v4";
2
-
3
2
  //#region src/eskimi/eskimi.d.ts
4
3
  /**
5
4
  * https://dsp-api.eskimi.com/docs/api/v1/#api-Report-GetCampaignReportByAgeGroups
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod/v4";
2
-
3
2
  //#region src/googleAds/keywordPlanner/server/googleAdsKeywordPlanner.d.ts
4
3
  declare const network: {
5
4
  readonly GOOGLE_SEARCH_ONLY: 2;
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod/v4";
2
-
3
2
  //#region src/googleAds/keywordPlanner/server/googleAdsKeywordPlanner.d.ts
4
3
  declare const network: {
5
4
  readonly GOOGLE_SEARCH_ONLY: 2;
@@ -1,5 +1,4 @@
1
1
  import { BaseNamespace } from "../../_class/BaseNamespace.cjs";
2
-
3
2
  //#region src/googleAds/server/GoogleAds.d.ts
4
3
  type Config = {
5
4
  clientId: string;
@@ -1,5 +1,4 @@
1
1
  import { BaseNamespace } from "../../_class/BaseNamespace.mjs";
2
-
3
2
  //#region src/googleAds/server/GoogleAds.d.ts
4
3
  type Config = {
5
4
  clientId: string;
@@ -1,6 +1,5 @@
1
1
  import { BaseNamespace } from "../../../_class/BaseNamespace.cjs";
2
2
  import { BigQuery, DatasetResource, QueryOptions } from "@google-cloud/bigquery";
3
-
4
3
  //#region src/googleCloud/bigquery/server/GoogleCloudBigquery.d.ts
5
4
  type QueryInput = string | {
6
5
  query: string;
@@ -1,6 +1,5 @@
1
1
  import { BaseNamespace } from "../../../_class/BaseNamespace.mjs";
2
2
  import { BigQuery, DatasetResource, QueryOptions } from "@google-cloud/bigquery";
3
-
4
3
  //#region src/googleCloud/bigquery/server/GoogleCloudBigquery.d.ts
5
4
  type QueryInput = string | {
6
5
  query: string;
@@ -1,5 +1,4 @@
1
1
  import { GoogleCloudBigquery } from "./GoogleCloudBigquery.cjs";
2
-
3
2
  //#region src/googleCloud/bigquery/server/loadData.d.ts
4
3
  type LoadData = {
5
4
  googleCloudBigqueryClient: GoogleCloudBigquery;
@@ -19,11 +18,6 @@ type LoadData = {
19
18
  /**
20
19
  * Load data into a given table using Google Cloud Storage.
21
20
  */
22
- declare const loadData: ({
23
- file,
24
- googleCloudBigqueryClient,
25
- googleCloudStorageClient,
26
- table
27
- }: LoadData) => Promise<void>;
21
+ declare const loadData: ({ file, googleCloudBigqueryClient, googleCloudStorageClient, table }: LoadData) => Promise<void>;
28
22
  //#endregion
29
23
  export { loadData };
@@ -1,5 +1,4 @@
1
1
  import { GoogleCloudBigquery } from "./GoogleCloudBigquery.mjs";
2
-
3
2
  //#region src/googleCloud/bigquery/server/loadData.d.ts
4
3
  type LoadData = {
5
4
  googleCloudBigqueryClient: GoogleCloudBigquery;
@@ -19,11 +18,6 @@ type LoadData = {
19
18
  /**
20
19
  * Load data into a given table using Google Cloud Storage.
21
20
  */
22
- declare const loadData: ({
23
- file,
24
- googleCloudBigqueryClient,
25
- googleCloudStorageClient,
26
- table
27
- }: LoadData) => Promise<void>;
21
+ declare const loadData: ({ file, googleCloudBigqueryClient, googleCloudStorageClient, table }: LoadData) => Promise<void>;
28
22
  //#endregion
29
23
  export { loadData };
@@ -1,6 +1,5 @@
1
1
  import { BaseNamespace } from "../../../_class/BaseNamespace.cjs";
2
2
  import { GoogleAuth } from "googleapis-common";
3
-
4
3
  //#region src/googleCloud/sheets/server/GoogleCloudSheets.d.ts
5
4
  type GetBatchDataProps = {
6
5
  spreadsheetId: string;
@@ -1,6 +1,5 @@
1
1
  import { BaseNamespace } from "../../../_class/BaseNamespace.mjs";
2
2
  import { GoogleAuth } from "googleapis-common";
3
-
4
3
  //#region src/googleCloud/sheets/server/GoogleCloudSheets.d.ts
5
4
  type GetBatchDataProps = {
6
5
  spreadsheetId: string;
@@ -1,6 +1,5 @@
1
1
  import { BaseNamespace } from "../../../_class/BaseNamespace.cjs";
2
2
  import { Storage } from "@google-cloud/storage";
3
-
4
3
  //#region src/googleCloud/storage/server/GoogleCloudStorage.d.ts
5
4
  declare class GoogleCloudStorage extends BaseNamespace {
6
5
  client: Storage;
@@ -1,6 +1,5 @@
1
1
  import { BaseNamespace } from "../../../_class/BaseNamespace.mjs";
2
2
  import { Storage } from "@google-cloud/storage";
3
-
4
3
  //#region src/googleCloud/storage/server/GoogleCloudStorage.d.ts
5
4
  declare class GoogleCloudStorage extends BaseNamespace {
6
5
  client: Storage;
@@ -1,7 +1,6 @@
1
1
  import { BaseNamespace } from "../../_class/BaseNamespace.cjs";
2
2
  import { Category } from "./category.cjs";
3
3
  import { Strategy } from "./strategy.cjs";
4
-
5
4
  //#region src/googlePageSpeed/server/GooglePageSpeed.d.ts
6
5
  type GooglePageSpeedConfig = {
7
6
  apiKey: string;
@@ -1,7 +1,6 @@
1
1
  import { BaseNamespace } from "../../_class/BaseNamespace.mjs";
2
2
  import { Category } from "./category.mjs";
3
3
  import { Strategy } from "./strategy.mjs";
4
-
5
4
  //#region src/googlePageSpeed/server/GooglePageSpeed.d.ts
6
5
  type GooglePageSpeedConfig = {
7
6
  apiKey: string;
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod/v4";
2
-
3
2
  //#region src/googleSearchIncidents/server/googleSearchIncidents.d.ts
4
3
  /**
5
4
  * https://status.search.google.com/summary
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod/v4";
2
-
3
2
  //#region src/googleSearchIncidents/server/googleSearchIncidents.d.ts
4
3
  /**
5
4
  * https://status.search.google.com/summary
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod/v4";
2
-
3
2
  //#region src/greenDomain/server/greenDomain.d.ts
4
3
  /**
5
4
  * https://developers.thegreenwebfoundation.org/api/greencheck/v3/check-single-domain/
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod/v4";
2
-
3
2
  //#region src/greenDomain/server/greenDomain.d.ts
4
3
  /**
5
4
  * https://developers.thegreenwebfoundation.org/api/greencheck/v3/check-single-domain/