@8ms/helpers 2.2.26 → 2.3.3

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 (242) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/_class/index.d.ts +2 -2
  3. package/_class/index.js +2 -2
  4. package/adverity/adverity.d.ts +112 -0
  5. package/adverity/adverity.js +58 -0
  6. package/adverity/index.d.ts +1 -112
  7. package/adverity/index.js +1 -58
  8. package/adverity/server/index.d.ts +1 -1
  9. package/adverity/server/index.js +1 -1
  10. package/api/ApiResponseClass.d.ts +1 -1
  11. package/api/ApiResponseClass.js +12 -12
  12. package/api/{types.d.ts → api.d.ts} +2 -2
  13. package/api/{types.js → api.js} +2 -2
  14. package/api/functions.d.ts +1 -1
  15. package/api/functions.js +7 -7
  16. package/api/index.d.ts +1 -1
  17. package/api/index.js +1 -1
  18. package/array/array.d.ts +8 -0
  19. package/array/array.js +9 -0
  20. package/array/index.d.ts +1 -8
  21. package/array/index.js +1 -9
  22. package/atInternet/atInternet.d.ts +16 -0
  23. package/atInternet/atInternet.js +15 -0
  24. package/atInternet/index.d.ts +1 -16
  25. package/atInternet/index.js +1 -15
  26. package/aws/ec2/server/awsEc2.d.ts +3 -0
  27. package/aws/ec2/server/awsEc2.js +12 -0
  28. package/aws/ec2/server/index.d.ts +2 -3
  29. package/aws/ec2/server/index.js +2 -12
  30. package/aws/ecs/server/awsEcs.d.ts +3 -0
  31. package/aws/ecs/server/awsEcs.js +12 -0
  32. package/aws/ecs/server/index.d.ts +2 -3
  33. package/aws/ecs/server/index.js +2 -12
  34. package/aws/glue/server/awsGlue.d.ts +3 -0
  35. package/aws/glue/server/awsGlue.js +12 -0
  36. package/aws/glue/server/index.d.ts +2 -3
  37. package/aws/glue/server/index.js +2 -12
  38. package/aws/lambda/server/awsLambda.d.ts +4 -0
  39. package/aws/lambda/server/awsLambda.js +16 -0
  40. package/aws/lambda/server/index.d.ts +2 -4
  41. package/aws/lambda/server/index.js +2 -16
  42. package/aws/s3/server/awsS3.d.ts +13 -0
  43. package/aws/s3/server/awsS3.js +20 -0
  44. package/aws/s3/server/index.d.ts +3 -13
  45. package/aws/s3/server/index.js +3 -20
  46. package/aws/server/aws.d.ts +9 -0
  47. package/aws/server/aws.js +29 -0
  48. package/aws/server/index.d.ts +2 -9
  49. package/aws/server/index.js +2 -29
  50. package/aws/ses/server/awsSes.d.ts +4 -0
  51. package/aws/ses/server/awsSes.js +13 -0
  52. package/aws/ses/server/index.d.ts +3 -4
  53. package/aws/ses/server/index.js +3 -13
  54. package/aws/sqs/server/awsSqs.d.ts +3 -0
  55. package/aws/sqs/server/awsSqs.js +12 -0
  56. package/aws/sqs/server/index.d.ts +2 -3
  57. package/aws/sqs/server/index.js +2 -12
  58. package/aws/ssm/server/awsSsm.d.ts +3 -0
  59. package/aws/ssm/server/awsSsm.js +12 -0
  60. package/aws/ssm/server/index.d.ts +2 -3
  61. package/aws/ssm/server/index.js +2 -12
  62. package/axios/index.d.ts +3 -3
  63. package/axios/index.js +3 -3
  64. package/boolean/boolean.d.ts +4 -0
  65. package/boolean/boolean.js +16 -0
  66. package/boolean/index.d.ts +1 -4
  67. package/boolean/index.js +1 -16
  68. package/brightData/serpApi/server/brightDataSerpApi.d.ts +10 -0
  69. package/brightData/serpApi/server/brightDataSerpApi.js +9 -0
  70. package/brightData/serpApi/server/getAsyncRequestId.js +2 -2
  71. package/brightData/serpApi/server/index.d.ts +6 -15
  72. package/brightData/serpApi/server/index.js +6 -14
  73. package/brightData/server/brightData.d.ts +15 -0
  74. package/brightData/server/brightData.js +15 -0
  75. package/brightData/server/index.d.ts +1 -15
  76. package/brightData/server/index.js +1 -15
  77. package/brightData/webScraperIde/server/getRealtime.js +5 -5
  78. package/brightData/webScraperIde/server/index.d.ts +2 -2
  79. package/brightData/webScraperIde/server/index.js +2 -2
  80. package/cache/server/cache.d.ts +7 -0
  81. package/cache/server/cache.js +43 -0
  82. package/cache/server/index.d.ts +1 -7
  83. package/cache/server/index.js +1 -43
  84. package/crud/crud.d.ts +7 -0
  85. package/crud/crud.js +6 -0
  86. package/crud/index.d.ts +1 -7
  87. package/crud/index.js +1 -6
  88. package/crypto/index.d.ts +4 -4
  89. package/crypto/index.js +4 -4
  90. package/date/calculation.d.ts +4 -1
  91. package/date/calculation.js +3 -0
  92. package/date/{type.d.ts → date.d.ts} +2 -2
  93. package/date/{type.js → date.js} +1 -1
  94. package/date/financialYear.d.ts +2 -2
  95. package/date/financialYear.js +1 -1
  96. package/date/format.d.ts +1 -1
  97. package/date/index.d.ts +1 -1
  98. package/date/index.js +1 -1
  99. package/environment/environment.d.ts +34 -0
  100. package/environment/environment.js +79 -0
  101. package/environment/index.d.ts +1 -34
  102. package/environment/index.js +1 -79
  103. package/eskimi/eskimi.d.ts +49 -0
  104. package/eskimi/eskimi.js +93 -0
  105. package/eskimi/index.d.ts +1 -49
  106. package/eskimi/index.js +1 -93
  107. package/file/getFileKey.js +2 -2
  108. package/googleAds/keywordPlanner/server/googleAdsKeywordPlanner.d.ts +41 -0
  109. package/googleAds/keywordPlanner/server/googleAdsKeywordPlanner.js +55 -0
  110. package/googleAds/keywordPlanner/server/index.d.ts +1 -41
  111. package/googleAds/keywordPlanner/server/index.js +1 -55
  112. package/googleAds/server/GoogleAdsNamespace.js +1 -2
  113. package/googleAds/server/googleAds.d.ts +11 -0
  114. package/googleAds/server/googleAds.js +26 -0
  115. package/googleAds/server/index.d.ts +2 -11
  116. package/googleAds/server/index.js +2 -26
  117. package/{google/bigquery/server/GoogleBigqueryNamespace.d.ts → googleCloud/bigquery/server/GoogleCloudBigqueryNamespace.d.ts} +1 -1
  118. package/{google/bigquery/server/GoogleBigqueryNamespace.js → googleCloud/bigquery/server/GoogleCloudBigqueryNamespace.js} +1 -1
  119. package/googleCloud/bigquery/server/googleCloudBigquery.d.ts +5 -0
  120. package/{google/bigquery/server/index.js → googleCloud/bigquery/server/googleCloudBigquery.js} +7 -8
  121. package/googleCloud/bigquery/server/index.d.ts +3 -0
  122. package/googleCloud/bigquery/server/index.js +3 -0
  123. package/{google → googleCloud}/bigquery/server/loadData.d.ts +3 -3
  124. package/{google → googleCloud}/bigquery/server/loadData.js +3 -3
  125. package/googleCloud/server/index.d.ts +1 -0
  126. package/googleCloud/server/index.js +1 -0
  127. package/{google/sheets/server/GoogleSheetsNamespace.d.ts → googleCloud/sheets/server/GoogleCloudSheetsNamespace.d.ts} +1 -1
  128. package/{google/sheets/server/GoogleSheetsNamespace.js → googleCloud/sheets/server/GoogleCloudSheetsNamespace.js} +1 -1
  129. package/googleCloud/sheets/server/index.d.ts +1 -0
  130. package/googleCloud/sheets/server/index.js +1 -0
  131. package/googleCloud/storage/server/index.d.ts +2 -0
  132. package/googleCloud/storage/server/index.js +2 -0
  133. package/googlePageSpeed/server/GooglePageSpeedNamespace.d.ts +1 -1
  134. package/googlePageSpeed/server/GooglePageSpeedNamespace.js +3 -3
  135. package/googlePageSpeed/server/googlePageSpeed.d.ts +19 -0
  136. package/googlePageSpeed/server/googlePageSpeed.js +38 -0
  137. package/googlePageSpeed/server/index.d.ts +2 -19
  138. package/googlePageSpeed/server/index.js +2 -38
  139. package/googleSearchIncidents/server/googleSearchIncidents.d.ts +69 -0
  140. package/googleSearchIncidents/server/googleSearchIncidents.js +42 -0
  141. package/googleSearchIncidents/server/index.d.ts +1 -69
  142. package/googleSearchIncidents/server/index.js +1 -42
  143. package/greenDomain/server/greenDomain.d.ts +21 -0
  144. package/greenDomain/server/greenDomain.js +37 -0
  145. package/greenDomain/server/index.d.ts +1 -21
  146. package/greenDomain/server/index.js +1 -37
  147. package/inngest/index.d.ts +1 -7
  148. package/inngest/index.js +1 -6
  149. package/inngest/inngest.d.ts +7 -0
  150. package/inngest/inngest.js +6 -0
  151. package/littleWarden/server/index.d.ts +2 -30
  152. package/littleWarden/server/index.js +2 -65
  153. package/littleWarden/server/littleWarden.d.ts +30 -0
  154. package/littleWarden/server/littleWarden.js +65 -0
  155. package/lumar/api/server/buildRequest.d.ts +3 -3
  156. package/lumar/api/server/buildRequest.js +15 -15
  157. package/lumar/api/server/index.d.ts +1 -33
  158. package/lumar/api/server/index.js +1 -24
  159. package/lumar/api/server/lumarApi.d.ts +36 -0
  160. package/lumar/api/server/lumarApi.js +24 -0
  161. package/lumar/graphql/server/columns.d.ts +28 -27
  162. package/lumar/graphql/server/columns.js +1 -1
  163. package/lumar/graphql/server/getData.js +1 -2
  164. package/lumar/graphql/server/index.d.ts +11 -29
  165. package/lumar/graphql/server/index.js +11 -31
  166. package/lumar/graphql/server/lumarGraphql.d.ts +27 -0
  167. package/lumar/graphql/server/lumarGraphql.js +27 -0
  168. package/lumar/graphql/server/queries/getReportDifferences.d.ts +1 -1
  169. package/lumar/graphql/server/queries/getReportDifferences.js +2 -2
  170. package/lumar/graphql/server/reportTemplates.d.ts +67 -66
  171. package/lumar/graphql/server/reportTemplates.js +1 -1
  172. package/myTarget/server/index.d.ts +1 -5
  173. package/myTarget/server/index.js +1 -13
  174. package/myTarget/server/myTarget.d.ts +5 -0
  175. package/myTarget/server/myTarget.js +13 -0
  176. package/nextAuth/index.d.ts +2 -7
  177. package/nextAuth/index.js +2 -6
  178. package/nextAuth/nextAuth.d.ts +7 -0
  179. package/nextAuth/nextAuth.js +6 -0
  180. package/nextJs/index.d.ts +1 -12
  181. package/nextJs/index.js +1 -14
  182. package/nextJs/nextJs.d.ts +12 -0
  183. package/nextJs/nextJs.js +8 -0
  184. package/onePassword/server/index.d.ts +2 -7
  185. package/onePassword/server/index.js +2 -21
  186. package/onePassword/server/onePassword.d.ts +8 -0
  187. package/onePassword/server/onePassword.js +21 -0
  188. package/openAi/server/index.d.ts +2 -5
  189. package/openAi/server/index.js +2 -26
  190. package/openAi/server/openAi.d.ts +6 -0
  191. package/openAi/server/openAi.js +26 -0
  192. package/package.json +65 -65
  193. package/prisma/server/index.d.ts +2 -20
  194. package/prisma/server/index.js +2 -26
  195. package/prisma/server/prisma.d.ts +20 -0
  196. package/prisma/server/prisma.js +26 -0
  197. package/snapchat/server/index.d.ts +2 -7
  198. package/snapchat/server/index.js +2 -26
  199. package/snapchat/server/snapchat.d.ts +7 -0
  200. package/snapchat/server/snapchat.js +26 -0
  201. package/sorting/index.d.ts +1 -4
  202. package/sorting/index.js +1 -4
  203. package/sorting/sorting.d.ts +4 -0
  204. package/sorting/sorting.js +4 -0
  205. package/stream/server/index.d.ts +1 -1
  206. package/stream/server/index.js +1 -1
  207. package/string/index.d.ts +13 -12
  208. package/string/index.js +13 -12
  209. package/swr/client/index.d.ts +1 -42
  210. package/swr/client/index.js +1 -50
  211. package/swr/client/swr.d.ts +42 -0
  212. package/swr/client/swr.js +50 -0
  213. package/upTimeRobot/server/index.d.ts +2 -38
  214. package/upTimeRobot/server/index.js +2 -59
  215. package/upTimeRobot/server/upTimeRobot.d.ts +38 -0
  216. package/upTimeRobot/server/upTimeRobot.js +59 -0
  217. package/url/index.d.ts +1 -26
  218. package/url/index.js +1 -59
  219. package/url/server/index.d.ts +1 -1
  220. package/url/server/index.js +1 -1
  221. package/url/url.d.ts +26 -0
  222. package/url/url.js +59 -0
  223. package/util/index.d.ts +7 -7
  224. package/util/index.js +7 -7
  225. package/util/isUndefined.js +2 -2
  226. package/util/server/index.d.ts +4 -4
  227. package/util/server/index.js +4 -4
  228. package/webWorker/index.d.ts +1 -8
  229. package/webWorker/index.js +1 -7
  230. package/webWorker/webWorker.d.ts +8 -0
  231. package/webWorker/webWorker.js +7 -0
  232. package/google/bigquery/server/index.d.ts +0 -6
  233. package/google/sheets/server/index.d.ts +0 -8
  234. package/google/sheets/server/index.js +0 -42
  235. /package/{google/server/index.d.ts → googleCloud/server/googleCloud.d.ts} +0 -0
  236. /package/{google/server/index.js → googleCloud/server/googleCloud.js} +0 -0
  237. /package/{google → googleCloud}/sheets/server/getAssociatedData.d.ts +0 -0
  238. /package/{google → googleCloud}/sheets/server/getAssociatedData.js +0 -0
  239. /package/{google → googleCloud}/storage/server/GoogleCloudStorageNamespace.d.ts +0 -0
  240. /package/{google → googleCloud}/storage/server/GoogleCloudStorageNamespace.js +0 -0
  241. /package/{google/storage/server/index.d.ts → googleCloud/storage/server/googleCloudStorage.d.ts} +0 -0
  242. /package/{google/storage/server/index.js → googleCloud/storage/server/googleCloudStorage.js} +0 -0
@@ -0,0 +1 @@
1
+ export * from "./GoogleCloudSheetsNamespace";
@@ -0,0 +1 @@
1
+ export * from "./GoogleCloudSheetsNamespace";
@@ -0,0 +1,2 @@
1
+ export * from "./googleCloudStorage";
2
+ export * from "./GoogleCloudStorageNamespace";
@@ -0,0 +1,2 @@
1
+ export * from "./googleCloudStorage";
2
+ export * from "./GoogleCloudStorageNamespace";
@@ -7,5 +7,5 @@ export declare class GooglePageSpeedNamespace extends BaseNamespace {
7
7
  client: boolean;
8
8
  config: GooglePageSpeedConfig;
9
9
  ensureInit: () => Promise<void>;
10
- getReport: (url: string, category?: Category, strategy?: Strategy) => Promise<any>;
10
+ getReport: (url: string, inputCategory?: Category, inputStrategy?: Strategy) => Promise<any>;
11
11
  }
@@ -1,5 +1,5 @@
1
1
  import { BaseNamespace } from "../../_class";
2
- import { Category, Strategy } from "./";
2
+ import { category, strategy } from "./";
3
3
  import { get } from "../../axios";
4
4
  /**
5
5
  * Based on https://developers.google.com/speed/docs/insights/rest/v5/pagespeedapi/runpagespeed
@@ -16,8 +16,8 @@ export class GooglePageSpeedNamespace extends BaseNamespace {
16
16
  }
17
17
  }
18
18
  };
19
- getReport = async (url, category = Category.PERFORMANCE, strategy = Strategy.MOBILE) => {
20
- const requestUrl = `https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url=${url}&strategy=${strategy}&category=${category}&key=${this.config.apiKey}`;
19
+ getReport = async (url, inputCategory = category.PERFORMANCE, inputStrategy = strategy.MOBILE) => {
20
+ const requestUrl = `https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url=${url}&strategy=${inputStrategy}&category=${inputCategory}&key=${this.config.apiKey}`;
21
21
  const apiResponse = await get(requestUrl);
22
22
  if (apiResponse.isSuccess()) {
23
23
  return apiResponse.getBody();
@@ -0,0 +1,19 @@
1
+ import { GooglePageSpeedNamespace } from "./GooglePageSpeedNamespace";
2
+ export type GooglePageSpeedConfig = {
3
+ apiKey: string;
4
+ };
5
+ export declare const googlePageSpeedClient: (key?: string, config?: GooglePageSpeedConfig, vaultId?: string, itemId?: string) => Promise<GooglePageSpeedNamespace>;
6
+ export declare const category: {
7
+ readonly CATEGORY_UNSPECIFIED: "CATEGORY_UNSPECIFIED";
8
+ readonly ACCESSIBILITY: "ACCESSIBILITY";
9
+ readonly BEST_PRACTICES: "BEST_PRACTICES";
10
+ readonly PERFORMANCE: "PERFORMANCE";
11
+ readonly SEO: "SEO";
12
+ };
13
+ export type Category = typeof category[keyof typeof category];
14
+ export declare const strategy: {
15
+ readonly STRATEGY_UNSPECIFIED: "STRATEGY_UNSPECIFIED";
16
+ readonly DESKTOP: "DESKTOP";
17
+ readonly MOBILE: "MOBILE";
18
+ };
19
+ export type Strategy = typeof strategy[keyof typeof strategy];
@@ -0,0 +1,38 @@
1
+ import { GooglePageSpeedNamespace } from "./GooglePageSpeedNamespace";
2
+ import { onePasswordClient } from "../../onePassword/server";
3
+ const googlePageSpeedNamespaces = new Map();
4
+ export const googlePageSpeedClient = async (key = "default", config, vaultId, itemId) => {
5
+ if (googlePageSpeedNamespaces.has(key)) {
6
+ return googlePageSpeedNamespaces.get(key);
7
+ }
8
+ let instanceConfig;
9
+ if (config) {
10
+ instanceConfig = config;
11
+ }
12
+ else if (vaultId && itemId) {
13
+ instanceConfig = await (await onePasswordClient())
14
+ .getJsonNote(vaultId, itemId);
15
+ }
16
+ else if (process.env.GOOGLE_PAGE_SPEED_VAULT_ID && process.env.GOOGLE_PAGE_SPEED_ITEM_ID) {
17
+ instanceConfig = await (await onePasswordClient())
18
+ .getJsonNote(process.env.GOOGLE_PAGE_SPEED_VAULT_ID, process.env.GOOGLE_PAGE_SPEED_ITEM_ID);
19
+ }
20
+ else {
21
+ throw new Error(`Config required for namespace '${key}'`);
22
+ }
23
+ const namespace = new GooglePageSpeedNamespace(key, instanceConfig);
24
+ googlePageSpeedNamespaces.set(key, namespace);
25
+ return namespace;
26
+ };
27
+ export const category = {
28
+ CATEGORY_UNSPECIFIED: "CATEGORY_UNSPECIFIED",
29
+ ACCESSIBILITY: "ACCESSIBILITY",
30
+ BEST_PRACTICES: "BEST_PRACTICES",
31
+ PERFORMANCE: "PERFORMANCE",
32
+ SEO: "SEO",
33
+ };
34
+ export const strategy = {
35
+ STRATEGY_UNSPECIFIED: "STRATEGY_UNSPECIFIED",
36
+ DESKTOP: "DESKTOP",
37
+ MOBILE: "MOBILE",
38
+ };
@@ -1,19 +1,2 @@
1
- import { GooglePageSpeedNamespace } from "./GooglePageSpeedNamespace";
2
- export type GooglePageSpeedConfig = {
3
- apiKey: string;
4
- };
5
- export declare const googlePageSpeedClient: (key?: string, config?: GooglePageSpeedConfig, vaultId?: string, itemId?: string) => Promise<GooglePageSpeedNamespace>;
6
- export declare const Category: {
7
- readonly CATEGORY_UNSPECIFIED: "CATEGORY_UNSPECIFIED";
8
- readonly ACCESSIBILITY: "ACCESSIBILITY";
9
- readonly BEST_PRACTICES: "BEST_PRACTICES";
10
- readonly PERFORMANCE: "PERFORMANCE";
11
- readonly SEO: "SEO";
12
- };
13
- export type Category = typeof Category[keyof typeof Category];
14
- export declare const Strategy: {
15
- readonly STRATEGY_UNSPECIFIED: "STRATEGY_UNSPECIFIED";
16
- readonly DESKTOP: "DESKTOP";
17
- readonly MOBILE: "MOBILE";
18
- };
19
- export type Strategy = typeof Strategy[keyof typeof Strategy];
1
+ export * from "./googlePageSpeed";
2
+ export * from "./GooglePageSpeedNamespace";
@@ -1,38 +1,2 @@
1
- import { GooglePageSpeedNamespace } from "./GooglePageSpeedNamespace";
2
- import { onePasswordClient } from "../../onePassword/server";
3
- const googlePageSpeedNamespaces = new Map();
4
- export const googlePageSpeedClient = async (key = "default", config, vaultId, itemId) => {
5
- if (googlePageSpeedNamespaces.has(key)) {
6
- return googlePageSpeedNamespaces.get(key);
7
- }
8
- let instanceConfig;
9
- if (config) {
10
- instanceConfig = config;
11
- }
12
- else if (vaultId && itemId) {
13
- instanceConfig = await (await onePasswordClient())
14
- .getJsonNote(vaultId, itemId);
15
- }
16
- else if (process.env.GOOGLE_PAGE_SPEED_VAULT_ID && process.env.GOOGLE_PAGE_SPEED_ITEM_ID) {
17
- instanceConfig = await (await onePasswordClient())
18
- .getJsonNote(process.env.GOOGLE_PAGE_SPEED_VAULT_ID, process.env.GOOGLE_PAGE_SPEED_ITEM_ID);
19
- }
20
- else {
21
- throw new Error(`Config required for namespace '${key}'`);
22
- }
23
- const namespace = new GooglePageSpeedNamespace(key, instanceConfig);
24
- googlePageSpeedNamespaces.set(key, namespace);
25
- return namespace;
26
- };
27
- export const Category = {
28
- CATEGORY_UNSPECIFIED: "CATEGORY_UNSPECIFIED",
29
- ACCESSIBILITY: "ACCESSIBILITY",
30
- BEST_PRACTICES: "BEST_PRACTICES",
31
- PERFORMANCE: "PERFORMANCE",
32
- SEO: "SEO",
33
- };
34
- export const Strategy = {
35
- STRATEGY_UNSPECIFIED: "STRATEGY_UNSPECIFIED",
36
- DESKTOP: "DESKTOP",
37
- MOBILE: "MOBILE",
38
- };
1
+ export * from "./googlePageSpeed";
2
+ export * from "./GooglePageSpeedNamespace";
@@ -0,0 +1,69 @@
1
+ import { z } from "zod/v4";
2
+ /**
3
+ * https://status.search.google.com/summary
4
+ */
5
+ export declare const getReport: () => Promise<any>;
6
+ export declare const updateSchema: z.ZodObject<{
7
+ created: z.ZodString;
8
+ modified: z.ZodString;
9
+ when: z.ZodString;
10
+ text: z.ZodString;
11
+ status: z.ZodEnum<{
12
+ AVAILABLE: "AVAILABLE";
13
+ SERVICE_DISRUPTION: "SERVICE_DISRUPTION";
14
+ SERVICE_INFORMATION: "SERVICE_INFORMATION";
15
+ }>;
16
+ }, z.core.$strip>;
17
+ export type UpdateSchemaType = z.infer<typeof updateSchema>;
18
+ export declare const incidentSchema: z.ZodArray<z.ZodObject<{
19
+ id: z.ZodString;
20
+ number: z.ZodString;
21
+ begin: z.ZodString;
22
+ created: z.ZodString;
23
+ end: z.ZodOptional<z.ZodString>;
24
+ modified: z.ZodString;
25
+ external_desc: z.ZodString;
26
+ updates: z.ZodArray<z.ZodObject<{
27
+ created: z.ZodString;
28
+ modified: z.ZodString;
29
+ when: z.ZodString;
30
+ text: z.ZodString;
31
+ status: z.ZodEnum<{
32
+ AVAILABLE: "AVAILABLE";
33
+ SERVICE_DISRUPTION: "SERVICE_DISRUPTION";
34
+ SERVICE_INFORMATION: "SERVICE_INFORMATION";
35
+ }>;
36
+ }, z.core.$strip>>;
37
+ most_recent_update: z.ZodObject<{
38
+ created: z.ZodString;
39
+ modified: z.ZodString;
40
+ when: z.ZodString;
41
+ text: z.ZodString;
42
+ status: z.ZodEnum<{
43
+ AVAILABLE: "AVAILABLE";
44
+ SERVICE_DISRUPTION: "SERVICE_DISRUPTION";
45
+ SERVICE_INFORMATION: "SERVICE_INFORMATION";
46
+ }>;
47
+ }, z.core.$strip>;
48
+ status_impact: z.ZodEnum<{
49
+ SERVICE_DISRUPTION: "SERVICE_DISRUPTION";
50
+ SERVICE_INFORMATION: "SERVICE_INFORMATION";
51
+ }>;
52
+ severity: z.ZodEnum<{
53
+ high: "high";
54
+ low: "low";
55
+ medium: "medium";
56
+ }>;
57
+ service_key: z.ZodString;
58
+ service_name: z.ZodEnum<{
59
+ Indexing: "Indexing";
60
+ Ranking: "Ranking";
61
+ Serving: "Serving";
62
+ }>;
63
+ affected_products: z.ZodArray<z.ZodObject<{
64
+ title: z.ZodString;
65
+ id: z.ZodString;
66
+ }, z.core.$strip>>;
67
+ uri: z.ZodString;
68
+ }, z.core.$strip>>;
69
+ export type IncidentSchemaType = z.infer<typeof incidentSchema>;
@@ -0,0 +1,42 @@
1
+ import { get } from "../../axios";
2
+ import { z } from "zod/v4";
3
+ /**
4
+ * https://status.search.google.com/summary
5
+ */
6
+ export const getReport = async () => {
7
+ const url = "https://status.search.google.com/incidents.json";
8
+ const apiResponse = await get(url);
9
+ if (apiResponse.isSuccess()) {
10
+ return apiResponse.getBody();
11
+ }
12
+ return null;
13
+ };
14
+ export const updateSchema = z.object({
15
+ created: z.string(),
16
+ modified: z.string(),
17
+ when: z.string(),
18
+ text: z.string(),
19
+ status: z.enum(["AVAILABLE", "SERVICE_DISRUPTION", "SERVICE_INFORMATION"]),
20
+ });
21
+ export const incidentSchema = z.object({
22
+ id: z.string(),
23
+ number: z.string(),
24
+ begin: z.string(),
25
+ created: z.string(),
26
+ end: z.string().optional(),
27
+ modified: z.string(),
28
+ external_desc: z.string(),
29
+ updates: updateSchema.array(),
30
+ most_recent_update: updateSchema,
31
+ status_impact: z.enum(["SERVICE_DISRUPTION", "SERVICE_INFORMATION"]),
32
+ severity: z.enum(["low", "medium", "high"]),
33
+ service_key: z.string(),
34
+ service_name: z.enum(["Indexing", "Ranking", "Serving"]),
35
+ affected_products: z.object({
36
+ title: z.string(),
37
+ id: z.string(),
38
+ })
39
+ .array(),
40
+ uri: z.string(),
41
+ })
42
+ .array();
@@ -1,69 +1 @@
1
- import { z } from "zod/v4";
2
- /**
3
- * https://status.search.google.com/summary
4
- */
5
- export declare const getReport: () => Promise<any>;
6
- export declare const updateSchema: z.ZodObject<{
7
- created: z.ZodString;
8
- modified: z.ZodString;
9
- when: z.ZodString;
10
- text: z.ZodString;
11
- status: z.ZodEnum<{
12
- AVAILABLE: "AVAILABLE";
13
- SERVICE_DISRUPTION: "SERVICE_DISRUPTION";
14
- SERVICE_INFORMATION: "SERVICE_INFORMATION";
15
- }>;
16
- }, z.core.$strip>;
17
- export type UpdateSchemaType = z.infer<typeof updateSchema>;
18
- export declare const incidentSchema: z.ZodArray<z.ZodObject<{
19
- id: z.ZodString;
20
- number: z.ZodString;
21
- begin: z.ZodString;
22
- created: z.ZodString;
23
- end: z.ZodOptional<z.ZodString>;
24
- modified: z.ZodString;
25
- external_desc: z.ZodString;
26
- updates: z.ZodArray<z.ZodObject<{
27
- created: z.ZodString;
28
- modified: z.ZodString;
29
- when: z.ZodString;
30
- text: z.ZodString;
31
- status: z.ZodEnum<{
32
- AVAILABLE: "AVAILABLE";
33
- SERVICE_DISRUPTION: "SERVICE_DISRUPTION";
34
- SERVICE_INFORMATION: "SERVICE_INFORMATION";
35
- }>;
36
- }, z.core.$strip>>;
37
- most_recent_update: z.ZodObject<{
38
- created: z.ZodString;
39
- modified: z.ZodString;
40
- when: z.ZodString;
41
- text: z.ZodString;
42
- status: z.ZodEnum<{
43
- AVAILABLE: "AVAILABLE";
44
- SERVICE_DISRUPTION: "SERVICE_DISRUPTION";
45
- SERVICE_INFORMATION: "SERVICE_INFORMATION";
46
- }>;
47
- }, z.core.$strip>;
48
- status_impact: z.ZodEnum<{
49
- SERVICE_DISRUPTION: "SERVICE_DISRUPTION";
50
- SERVICE_INFORMATION: "SERVICE_INFORMATION";
51
- }>;
52
- severity: z.ZodEnum<{
53
- high: "high";
54
- low: "low";
55
- medium: "medium";
56
- }>;
57
- service_key: z.ZodString;
58
- service_name: z.ZodEnum<{
59
- Indexing: "Indexing";
60
- Ranking: "Ranking";
61
- Serving: "Serving";
62
- }>;
63
- affected_products: z.ZodArray<z.ZodObject<{
64
- title: z.ZodString;
65
- id: z.ZodString;
66
- }, z.core.$strip>>;
67
- uri: z.ZodString;
68
- }, z.core.$strip>>;
69
- export type IncidentSchemaType = z.infer<typeof incidentSchema>;
1
+ export * from "./googleSearchIncidents";
@@ -1,42 +1 @@
1
- import { get } from "../../axios";
2
- import { z } from "zod/v4";
3
- /**
4
- * https://status.search.google.com/summary
5
- */
6
- export const getReport = async () => {
7
- const url = "https://status.search.google.com/incidents.json";
8
- const apiResponse = await get(url);
9
- if (apiResponse.isSuccess()) {
10
- return apiResponse.getBody();
11
- }
12
- return null;
13
- };
14
- export const updateSchema = z.object({
15
- created: z.string(),
16
- modified: z.string(),
17
- when: z.string(),
18
- text: z.string(),
19
- status: z.enum(["AVAILABLE", "SERVICE_DISRUPTION", "SERVICE_INFORMATION"]),
20
- });
21
- export const incidentSchema = z.object({
22
- id: z.string(),
23
- number: z.string(),
24
- begin: z.string(),
25
- created: z.string(),
26
- end: z.string().optional(),
27
- modified: z.string(),
28
- external_desc: z.string(),
29
- updates: updateSchema.array(),
30
- most_recent_update: updateSchema,
31
- status_impact: z.enum(["SERVICE_DISRUPTION", "SERVICE_INFORMATION"]),
32
- severity: z.enum(["low", "medium", "high"]),
33
- service_key: z.string(),
34
- service_name: z.enum(["Indexing", "Ranking", "Serving"]),
35
- affected_products: z.object({
36
- title: z.string(),
37
- id: z.string(),
38
- })
39
- .array(),
40
- uri: z.string(),
41
- })
42
- .array();
1
+ export * from "./googleSearchIncidents";
@@ -0,0 +1,21 @@
1
+ import { z } from "zod/v4";
2
+ /**
3
+ * https://developers.thegreenwebfoundation.org/api/greencheck/v3/check-single-domain/
4
+ */
5
+ export declare const getSingleReport: (domain: string) => Promise<any>;
6
+ export declare const greenDomainSchema: z.ZodObject<{
7
+ green: z.ZodBoolean;
8
+ url: z.ZodString;
9
+ data: z.ZodOptional<z.ZodBoolean>;
10
+ hosted_by: z.ZodOptional<z.ZodString>;
11
+ hosted_by_website: z.ZodOptional<z.ZodString>;
12
+ partner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ hosted_by_id: z.ZodOptional<z.ZodNumber>;
14
+ modified: z.ZodOptional<z.ZodString>;
15
+ supporting_documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
16
+ id: z.ZodNumber;
17
+ title: z.ZodString;
18
+ link: z.ZodString;
19
+ }, z.core.$strip>>>;
20
+ }, z.core.$strip>;
21
+ export type GreenDomainSchemaType = z.infer<typeof greenDomainSchema>;
@@ -0,0 +1,37 @@
1
+ import { get } from "../../axios";
2
+ import { z } from "zod/v4";
3
+ /**
4
+ * https://developers.thegreenwebfoundation.org/api/greencheck/v3/check-single-domain/
5
+ */
6
+ export const getSingleReport = async (domain) => {
7
+ const url = `https://api.thegreenwebfoundation.org/greencheck/${domain}`;
8
+ const apiResponse = await get(url);
9
+ if (apiResponse.isSuccess()) {
10
+ return apiResponse.getBody();
11
+ }
12
+ return null;
13
+ };
14
+ export const greenDomainSchema = z.object({
15
+ green: z.boolean(),
16
+ url: z.string(),
17
+ data: z.boolean()
18
+ .optional(),
19
+ hosted_by: z.string()
20
+ .optional(),
21
+ hosted_by_website: z.string()
22
+ .optional(),
23
+ partner: z.string()
24
+ .nullable()
25
+ .optional(),
26
+ hosted_by_id: z.number()
27
+ .optional(),
28
+ modified: z.string()
29
+ .optional(),
30
+ supporting_documents: z.object({
31
+ id: z.number(),
32
+ title: z.string(),
33
+ link: z.string(),
34
+ })
35
+ .array()
36
+ .optional(),
37
+ });
@@ -1,21 +1 @@
1
- import { z } from "zod/v4";
2
- /**
3
- * https://developers.thegreenwebfoundation.org/api/greencheck/v3/check-single-domain/
4
- */
5
- export declare const getSingleReport: (domain: string) => Promise<any>;
6
- export declare const greenDomainSchema: z.ZodObject<{
7
- green: z.ZodBoolean;
8
- url: z.ZodString;
9
- data: z.ZodOptional<z.ZodBoolean>;
10
- hosted_by: z.ZodOptional<z.ZodString>;
11
- hosted_by_website: z.ZodOptional<z.ZodString>;
12
- partner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
- hosted_by_id: z.ZodOptional<z.ZodNumber>;
14
- modified: z.ZodOptional<z.ZodString>;
15
- supporting_documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
16
- id: z.ZodNumber;
17
- title: z.ZodString;
18
- link: z.ZodString;
19
- }, z.core.$strip>>>;
20
- }, z.core.$strip>;
21
- export type GreenDomainSchemaType = z.infer<typeof greenDomainSchema>;
1
+ export * from "./greenDomain";
@@ -1,37 +1 @@
1
- import { get } from "../../axios";
2
- import { z } from "zod/v4";
3
- /**
4
- * https://developers.thegreenwebfoundation.org/api/greencheck/v3/check-single-domain/
5
- */
6
- export const getSingleReport = async (domain) => {
7
- const url = `https://api.thegreenwebfoundation.org/greencheck/${domain}`;
8
- const apiResponse = await get(url);
9
- if (apiResponse.isSuccess()) {
10
- return apiResponse.getBody();
11
- }
12
- return null;
13
- };
14
- export const greenDomainSchema = z.object({
15
- green: z.boolean(),
16
- url: z.string(),
17
- data: z.boolean()
18
- .optional(),
19
- hosted_by: z.string()
20
- .optional(),
21
- hosted_by_website: z.string()
22
- .optional(),
23
- partner: z.string()
24
- .nullable()
25
- .optional(),
26
- hosted_by_id: z.number()
27
- .optional(),
28
- modified: z.string()
29
- .optional(),
30
- supporting_documents: z.object({
31
- id: z.number(),
32
- title: z.string(),
33
- link: z.string(),
34
- })
35
- .array()
36
- .optional(),
37
- });
1
+ export * from "./greenDomain";
@@ -1,7 +1 @@
1
- export declare const InngestState: {
2
- RUNNING: string;
3
- COMPLETED: string;
4
- FAILED: string;
5
- CANCELLED: string;
6
- };
7
- export type InngestState = typeof InngestState[keyof typeof InngestState];
1
+ export * from "./inngest";
package/inngest/index.js CHANGED
@@ -1,6 +1 @@
1
- export const InngestState = {
2
- RUNNING: "Running",
3
- COMPLETED: "Completed",
4
- FAILED: "Failed",
5
- CANCELLED: "Cancelled",
6
- };
1
+ export * from "./inngest";
@@ -0,0 +1,7 @@
1
+ export declare const inngestState: {
2
+ RUNNING: string;
3
+ COMPLETED: string;
4
+ FAILED: string;
5
+ CANCELLED: string;
6
+ };
7
+ export type InngestState = typeof inngestState[keyof typeof inngestState];
@@ -0,0 +1,6 @@
1
+ export const inngestState = {
2
+ RUNNING: "Running",
3
+ COMPLETED: "Completed",
4
+ FAILED: "Failed",
5
+ CANCELLED: "Cancelled",
6
+ };
@@ -1,30 +1,2 @@
1
- import { LittleWardenNamespace } from "./LittleWardenNamespace";
2
- export type LittleWardenConfig = {
3
- apiKey: string;
4
- };
5
- export declare const littleWardenClient: (key?: string, config?: LittleWardenConfig, vaultId?: string, itemId?: string) => Promise<LittleWardenNamespace>;
6
- export declare const LittleWardenState: {
7
- readonly ALL_GOOD: "all_good";
8
- readonly DANGER: "danger";
9
- readonly WARNING: "warning";
10
- };
11
- export type LittleWardenState = typeof LittleWardenState[keyof typeof LittleWardenState];
12
- /**
13
- * Check if the field is All Good.
14
- */
15
- export declare const isAllGood: ({ field }: {
16
- field: any;
17
- }) => boolean;
18
- /**
19
- * Check if the field is Warning.
20
- */
21
- export declare const isWarning: ({ field }: {
22
- field: any;
23
- }) => boolean;
24
- /**
25
- * Check if the field is Danger.
26
- */
27
- export declare const isDanger: ({ field }: {
28
- field: any;
29
- }) => boolean;
30
- export * from "./getUrlStatus";
1
+ export * from "./littleWarden";
2
+ export * from "./LittleWardenNamespace";
@@ -1,65 +1,2 @@
1
- import { LittleWardenNamespace } from "./LittleWardenNamespace";
2
- import { onePasswordClient } from "../../onePassword/server";
3
- const littleWardenNamespaces = new Map();
4
- export const littleWardenClient = async (key = "default", config, vaultId, itemId) => {
5
- if (littleWardenNamespaces.has(key)) {
6
- return littleWardenNamespaces.get(key);
7
- }
8
- let instanceConfig;
9
- if (config) {
10
- instanceConfig = config;
11
- }
12
- else if (vaultId && itemId) {
13
- instanceConfig = await (await onePasswordClient())
14
- .getJsonNote(vaultId, itemId);
15
- }
16
- else if (process.env.LITTLE_WARDEN_VAULT_ID && process.env.LITTLE_WARDEN_ITEM_ID) {
17
- instanceConfig = await (await onePasswordClient())
18
- .getJsonNote(process.env.LITTLE_WARDEN_VAULT_ID, process.env.LITTLE_WARDEN_ITEM_ID);
19
- }
20
- else {
21
- throw new Error(`Config required for namespace '${key}'`);
22
- }
23
- const namespace = new LittleWardenNamespace(key, instanceConfig);
24
- littleWardenNamespaces.set(key, namespace);
25
- return namespace;
26
- };
27
- export const LittleWardenState = {
28
- ALL_GOOD: "all_good",
29
- DANGER: "danger",
30
- WARNING: "warning",
31
- };
32
- /**
33
- * Check if the field is All Good.
34
- */
35
- export const isAllGood = ({ field }) => {
36
- let response = false;
37
- // Check that the status field exists
38
- if (undefined !== field && undefined !== field["status"]) {
39
- response = LittleWardenState.ALL_GOOD === field["status"];
40
- }
41
- return response;
42
- };
43
- /**
44
- * Check if the field is Warning.
45
- */
46
- export const isWarning = ({ field }) => {
47
- let response = false;
48
- // Check that the status field exists
49
- if (undefined !== field && undefined !== field["status"]) {
50
- response = LittleWardenState.WARNING === field["status"];
51
- }
52
- return response;
53
- };
54
- /**
55
- * Check if the field is Danger.
56
- */
57
- export const isDanger = ({ field }) => {
58
- let response = false;
59
- // Check that the status field exists
60
- if (undefined !== field && undefined !== field["status"]) {
61
- response = LittleWardenState.DANGER === field["status"];
62
- }
63
- return response;
64
- };
65
- export * from "./getUrlStatus";
1
+ export * from "./littleWarden";
2
+ export * from "./LittleWardenNamespace";