@8ms/helpers 2.3.49 → 2.4.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/index.d.mts +1 -1
- package/dist/_class/index.mjs +1 -4
- package/dist/adverity/index.d.mts +1 -1
- package/dist/adverity/index.mjs +1 -3
- package/dist/adverity/server/index.d.mts +2 -2
- package/dist/adverity/server/index.mjs +2 -5
- package/dist/api/index.d.mts +3 -2
- package/dist/api/index.mjs +44 -3
- package/dist/{api-D7uUBIq4.mjs → api-BJgcoGmU.mjs} +1 -25
- package/dist/{index-c5HdwLaY.d.mts → api-DoLMPDFM.d.mts} +1 -9
- package/dist/array/index.mjs +1 -2
- package/dist/atInternet/index.mjs +1 -3
- package/dist/aws/cloudWatchLog/server/index.d.mts +8 -8
- package/dist/aws/cloudWatchLog/server/index.mjs +2 -6
- package/dist/aws/cloudWatchMetric/server/index.d.mts +5 -5
- package/dist/aws/cloudWatchMetric/server/index.mjs +2 -5
- package/dist/aws/ec2/server/index.d.mts +5 -5
- package/dist/aws/ec2/server/index.mjs +2 -5
- package/dist/aws/ecs/server/index.d.mts +2 -2
- package/dist/aws/ecs/server/index.mjs +2 -5
- package/dist/aws/glue/server/index.d.mts +2 -2
- package/dist/aws/glue/server/index.mjs +2 -5
- package/dist/aws/lambda/server/index.d.mts +2 -2
- package/dist/aws/lambda/server/index.mjs +4 -6
- package/dist/aws/s3/server/index.d.mts +10 -10
- package/dist/aws/s3/server/index.mjs +28 -37
- package/dist/aws/server/index.d.mts +1 -1
- package/dist/aws/server/index.mjs +2 -3
- package/dist/aws/ses/server/index.d.mts +8 -8
- package/dist/aws/ses/server/index.mjs +2 -6
- package/dist/aws/sqs/server/index.d.mts +5 -5
- package/dist/aws/sqs/server/index.mjs +2 -5
- package/dist/aws/ssm/server/index.d.mts +2 -2
- package/dist/aws/ssm/server/index.mjs +2 -5
- package/dist/boolean/index.mjs +1 -2
- package/dist/brightData/serpApi/server/index.d.mts +3 -3
- package/dist/brightData/serpApi/server/index.mjs +5 -10
- package/dist/brightData/server/index.d.mts +1 -1
- package/dist/brightData/server/index.mjs +1 -2
- package/dist/brightData/webScraperIde/server/index.d.mts +1 -1
- package/dist/brightData/webScraperIde/server/index.mjs +4 -6
- package/dist/cache/server/index.mjs +1 -2
- package/dist/{chunk-DDarj8oW.mjs → chunk-y_GBKt04.mjs} +1 -3
- package/dist/crud/index.mjs +1 -2
- package/dist/crypto/server/index.mjs +2 -8
- package/dist/date/index.d.mts +1 -1
- package/dist/date/index.mjs +2 -7
- package/dist/drizzle/server/index.d.mts +1 -1
- package/dist/drizzle/server/index.mjs +1 -4
- package/dist/environment/index.mjs +1 -2
- package/dist/eskimi/index.mjs +1 -3
- package/dist/eskimi/server/index.mjs +2 -8
- package/dist/file/index.mjs +1 -3
- package/dist/file/server/index.mjs +1 -2
- package/dist/geo/index.mjs +1 -3
- package/dist/get-B9XztVOu.mjs +21 -0
- package/dist/{getDecimal-CafxtLhH.mjs → getDecimal-B9S_nqSJ.mjs} +1 -4
- package/dist/googleAds/keywordPlanner/server/index.mjs +1 -3
- package/dist/googleAds/server/index.d.mts +7 -5
- package/dist/googleAds/server/index.mjs +5 -9
- package/dist/googleCloud/bigquery/server/index.d.mts +4 -4
- package/dist/googleCloud/bigquery/server/index.mjs +1 -5
- package/dist/googleCloud/server/index.d.mts +1 -1
- package/dist/googleCloud/server/index.mjs +1 -2
- package/dist/googleCloud/sheets/server/index.d.mts +4 -4
- package/dist/googleCloud/sheets/server/index.mjs +1 -3
- package/dist/googleCloud/storage/server/index.d.mts +5 -5
- package/dist/googleCloud/storage/server/index.mjs +1 -4
- package/dist/googlePageSpeed/server/index.d.mts +1 -1
- package/dist/googlePageSpeed/server/index.mjs +2 -6
- package/dist/googleSearchIncidents/server/index.mjs +2 -5
- package/dist/greenDomain/server/index.mjs +2 -5
- package/dist/{index-1fBbJGQz.d.mts → index-BAU-daxD.d.mts} +12 -12
- package/dist/index-BlUxbvhl.d.mts +30 -0
- package/dist/inngest/index.mjs +1 -2
- package/dist/json/index.mjs +1 -4
- package/dist/littleWarden/server/index.d.mts +1 -1
- package/dist/littleWarden/server/index.mjs +2 -7
- package/dist/lodash/index.d.mts +11 -1
- package/dist/lodash/index.mjs +17 -15
- package/dist/lumar/api/server/index.d.mts +1 -2
- package/dist/lumar/api/server/index.mjs +3 -8
- package/dist/lumar/graphql/server/index.d.mts +1 -2
- package/dist/lumar/graphql/server/index.mjs +2 -9
- package/dist/myTarget/server/index.d.mts +1 -1
- package/dist/myTarget/server/index.mjs +2 -5
- package/dist/nextAuth/index.mjs +1 -3
- package/dist/nextJs/client/index.mjs +1 -3
- package/dist/nextJs/index.mjs +1 -2
- package/dist/number/index.mjs +2 -9
- package/dist/object/index.mjs +1 -2
- package/dist/onePassword/server/index.d.mts +7 -7
- package/dist/onePassword/server/index.mjs +1 -5
- package/dist/openAi/server/index.d.mts +1 -1
- package/dist/openAi/server/index.mjs +2 -6
- package/dist/post-DiwZvONk.mjs +22 -0
- package/dist/prisma/index.mjs +2 -4
- package/dist/prisma/server/index.d.mts +1 -1
- package/dist/prisma/server/index.mjs +1 -4
- package/dist/{server-Bwy4JI8Z.mjs → server-CCX9gh5k.mjs} +1 -4
- package/dist/snapchat/server/index.d.mts +1 -1
- package/dist/snapchat/server/index.mjs +2 -6
- package/dist/sorting/index.mjs +1 -5
- package/dist/stream/server/index.mjs +2 -4
- package/dist/string/index.d.mts +1 -1
- package/dist/string/index.mjs +1 -15
- package/dist/swr/client/index.d.mts +1 -2
- package/dist/swr/client/index.mjs +1 -2
- package/dist/upTimeRobot/server/index.d.mts +1 -1
- package/dist/upTimeRobot/server/index.mjs +2 -6
- package/dist/url/index.mjs +1 -3
- package/dist/url/server/index.mjs +15 -20
- package/dist/util/index.d.mts +1 -1
- package/dist/util/index.mjs +1 -10
- package/dist/util/server/index.mjs +1 -6
- package/dist/webWorker/index.mjs +1 -2
- package/dist/xml/server/index.mjs +2 -5
- package/package.json +34 -45
- package/dist/axios/index.d.mts +0 -22
- package/dist/axios/index.mjs +0 -50
- /package/dist/{index-DwB8X1lz.d.mts → index-1SE8er2n.d.mts} +0 -0
- /package/dist/{index-BHuvb_7y.d.mts → index-CXrNMYVx.d.mts} +0 -0
- /package/dist/{index-CqTOMR8f.d.mts → index-D-8_Li4c.d.mts} +0 -0
- /package/dist/{index-DDH4qfj3.d.mts → index-DVYYb5tw.d.mts} +0 -0
- /package/dist/{index-DInsoSQm.d.mts → index-DwYd5z_c.d.mts} +0 -0
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import { post } from "../../axios/index.mjs";
|
|
1
|
+
import { t as post } from "../../post-DiwZvONk.mjs";
|
|
3
2
|
import { ageGroups, devices, genders } from "../index.mjs";
|
|
4
|
-
|
|
5
3
|
//#region src/eskimi/server/getAgeGroup.ts
|
|
6
4
|
/**
|
|
7
5
|
* Map the Age Group and return the user-friendly string.
|
|
@@ -11,7 +9,6 @@ const getAgeGroup = (input) => {
|
|
|
11
9
|
if (1 === matches.length) return matches[0].name;
|
|
12
10
|
return "Undefined";
|
|
13
11
|
};
|
|
14
|
-
|
|
15
12
|
//#endregion
|
|
16
13
|
//#region src/eskimi/server/getGender.ts
|
|
17
14
|
/**
|
|
@@ -22,7 +19,6 @@ const getGender = (input) => {
|
|
|
22
19
|
if (1 === matches.length) return matches[0].name;
|
|
23
20
|
return "Undefined";
|
|
24
21
|
};
|
|
25
|
-
|
|
26
22
|
//#endregion
|
|
27
23
|
//#region src/eskimi/server/getDevice.ts
|
|
28
24
|
/**
|
|
@@ -33,7 +29,6 @@ const getDevice = (input) => {
|
|
|
33
29
|
if (1 === matches.length) return matches[0].name;
|
|
34
30
|
return "Undefined";
|
|
35
31
|
};
|
|
36
|
-
|
|
37
32
|
//#endregion
|
|
38
33
|
//#region src/eskimi/server/getData.ts
|
|
39
34
|
/**
|
|
@@ -45,6 +40,5 @@ const getData = async (accessToken, data, url) => {
|
|
|
45
40
|
"Content-Type": "application/json"
|
|
46
41
|
} })).getBodyDefaultTo(["data"], null);
|
|
47
42
|
};
|
|
48
|
-
|
|
49
43
|
//#endregion
|
|
50
|
-
export { getAgeGroup, getData, getDevice, getGender };
|
|
44
|
+
export { getAgeGroup, getData, getDevice, getGender };
|
package/dist/file/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { getYmdString } from "../date/index.mjs";
|
|
2
2
|
import { DateTime } from "luxon";
|
|
3
|
-
|
|
4
3
|
//#region src/file/getFileKey.ts
|
|
5
4
|
/**
|
|
6
5
|
* Create a file key from the inputs so it can handle objects/number/etc.
|
|
@@ -15,6 +14,5 @@ const getFileKey = (inputs) => {
|
|
|
15
14
|
}
|
|
16
15
|
return response;
|
|
17
16
|
};
|
|
18
|
-
|
|
19
17
|
//#endregion
|
|
20
|
-
export { getFileKey };
|
|
18
|
+
export { getFileKey };
|
package/dist/geo/index.mjs
CHANGED
|
@@ -1328,7 +1328,6 @@ const countries = [
|
|
|
1328
1328
|
googleAdsId: 2716
|
|
1329
1329
|
}
|
|
1330
1330
|
];
|
|
1331
|
-
|
|
1332
1331
|
//#endregion
|
|
1333
1332
|
//#region src/geo/languages.ts
|
|
1334
1333
|
/**
|
|
@@ -1586,6 +1585,5 @@ const languages = [
|
|
|
1586
1585
|
googleAdsId: 1040
|
|
1587
1586
|
}
|
|
1588
1587
|
];
|
|
1589
|
-
|
|
1590
1588
|
//#endregion
|
|
1591
|
-
export { countries, languages };
|
|
1589
|
+
export { countries, languages };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { i as ApiResponseClass } from "./api-BJgcoGmU.mjs";
|
|
2
|
+
import ky from "ky";
|
|
3
|
+
//#region src/api/get.ts
|
|
4
|
+
/**
|
|
5
|
+
* Make a GET request.
|
|
6
|
+
*/
|
|
7
|
+
const get = async (url, config = {}) => {
|
|
8
|
+
return await ky.get(url, {
|
|
9
|
+
throwHttpErrors: false,
|
|
10
|
+
...config
|
|
11
|
+
}).then(async (response) => {
|
|
12
|
+
const data = await response.json();
|
|
13
|
+
if (void 0 !== data.body && void 0 !== data.error && void 0 !== data.state) return new ApiResponseClass(data);
|
|
14
|
+
else if (response.status >= 200 && response.status <= 299) return new ApiResponseClass().setToSuccess(data);
|
|
15
|
+
return new ApiResponseClass().setToError(data, response.statusText);
|
|
16
|
+
}).catch((error) => {
|
|
17
|
+
return new ApiResponseClass().setToError(null, error.message);
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { get as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { isJson } from "./json/index.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/number/getNumber.ts
|
|
4
3
|
/**
|
|
5
4
|
* Take an input and return a number.
|
|
@@ -25,7 +24,6 @@ const getNumber = (input, defaultValue = 0) => {
|
|
|
25
24
|
const converted = Number(response);
|
|
26
25
|
return isNaN(converted) ? defaultValue : converted;
|
|
27
26
|
};
|
|
28
|
-
|
|
29
27
|
//#endregion
|
|
30
28
|
//#region src/number/getDecimal.ts
|
|
31
29
|
/**
|
|
@@ -35,6 +33,5 @@ const getDecimal = (input, dp = 2) => {
|
|
|
35
33
|
const number = getNumber(input);
|
|
36
34
|
return Number(number.toFixed(dp));
|
|
37
35
|
};
|
|
38
|
-
|
|
39
36
|
//#endregion
|
|
40
|
-
export { getNumber as n, getDecimal as t };
|
|
37
|
+
export { getNumber as n, getDecimal as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
|
-
|
|
3
2
|
//#region src/googleAds/keywordPlanner/server/googleAdsKeywordPlanner.ts
|
|
4
3
|
const network = {
|
|
5
4
|
GOOGLE_SEARCH_ONLY: 2,
|
|
@@ -46,6 +45,5 @@ const responseSchema = z.object({
|
|
|
46
45
|
topOfPageBidLow: z.number(),
|
|
47
46
|
totalSearchVolume: z.number()
|
|
48
47
|
});
|
|
49
|
-
|
|
50
48
|
//#endregion
|
|
51
|
-
export { defaultRequest, network, requestSchema, responseSchema };
|
|
49
|
+
export { defaultRequest, network, requestSchema, responseSchema };
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { t as BaseNamespace } from "../../index-
|
|
2
|
-
import * as google_ads_api0 from "google-ads-api";
|
|
3
|
-
import { GoogleAdsApi } from "google-ads-api";
|
|
1
|
+
import { t as BaseNamespace } from "../../index-1SE8er2n.mjs";
|
|
4
2
|
|
|
5
3
|
//#region src/googleAds/server/GoogleAdsNamespace.d.ts
|
|
6
4
|
declare class GoogleAdsNamespace extends BaseNamespace {
|
|
7
|
-
client:
|
|
5
|
+
client: any;
|
|
8
6
|
config: Config;
|
|
9
7
|
mccAccountId: string;
|
|
10
8
|
refreshToken: string;
|
|
11
9
|
ensureInit: () => Promise<void>;
|
|
12
|
-
getCustomer: (customerId: string) => Promise<
|
|
10
|
+
getCustomer: (customerId: string) => Promise<{
|
|
11
|
+
customer_id: string;
|
|
12
|
+
login_customer_id: string;
|
|
13
|
+
refresh_token: string;
|
|
14
|
+
}>;
|
|
13
15
|
}
|
|
14
16
|
//#endregion
|
|
15
17
|
//#region src/googleAds/server/googleAds.d.ts
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../_class/index.mjs";
|
|
2
2
|
import { onePasswordClient } from "../../onePassword/server/index.mjs";
|
|
3
|
-
|
|
4
3
|
//#region src/googleAds/server/GoogleAdsNamespace.ts
|
|
5
4
|
var GoogleAdsNamespace = class extends BaseNamespace {
|
|
6
5
|
mccAccountId = "";
|
|
7
6
|
refreshToken = "";
|
|
8
7
|
ensureInit = async () => {
|
|
9
8
|
if (!this.client) try {
|
|
10
|
-
|
|
11
|
-
this.client = new GoogleAdsApi({
|
|
9
|
+
this.client = {
|
|
12
10
|
client_id: this.config.client.clientId,
|
|
13
11
|
client_secret: this.config.client.clientSecret,
|
|
14
12
|
developer_token: this.config.client.developerToken
|
|
15
|
-
}
|
|
13
|
+
};
|
|
16
14
|
this.mccAccountId = this.config.mccAccountId;
|
|
17
15
|
this.refreshToken = this.config.refreshToken;
|
|
18
16
|
} catch (e) {
|
|
@@ -21,14 +19,13 @@ var GoogleAdsNamespace = class extends BaseNamespace {
|
|
|
21
19
|
};
|
|
22
20
|
getCustomer = async (customerId) => {
|
|
23
21
|
await this.ensureInit();
|
|
24
|
-
return
|
|
22
|
+
return {
|
|
25
23
|
customer_id: customerId,
|
|
26
24
|
login_customer_id: this.mccAccountId,
|
|
27
25
|
refresh_token: this.refreshToken
|
|
28
|
-
}
|
|
26
|
+
};
|
|
29
27
|
};
|
|
30
28
|
};
|
|
31
|
-
|
|
32
29
|
//#endregion
|
|
33
30
|
//#region src/googleAds/server/googleAds.ts
|
|
34
31
|
const googleAdsNamespaces = /* @__PURE__ */ new Map();
|
|
@@ -43,6 +40,5 @@ const googleAdsClient = async (key = "default", config, vaultId, itemId) => {
|
|
|
43
40
|
googleAdsNamespaces.set(key, namespace);
|
|
44
41
|
return namespace;
|
|
45
42
|
};
|
|
46
|
-
|
|
47
43
|
//#endregion
|
|
48
|
-
export { GoogleAdsNamespace, googleAdsClient };
|
|
44
|
+
export { GoogleAdsNamespace, googleAdsClient };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as BaseNamespace } from "../../../index-
|
|
2
|
-
import { t as GoogleCloudConfig } from "../../../index-
|
|
1
|
+
import { t as BaseNamespace } from "../../../index-1SE8er2n.mjs";
|
|
2
|
+
import { t as GoogleCloudConfig } from "../../../index-DVYYb5tw.mjs";
|
|
3
3
|
import { BigQuery, DatasetResource, QueryOptions } from "@google-cloud/bigquery";
|
|
4
4
|
import { GoogleAuthOptions } from "@google-cloud/common";
|
|
5
5
|
|
|
@@ -33,7 +33,7 @@ declare class GoogleCloudBigqueryNamespace extends BaseNamespace {
|
|
|
33
33
|
* Based off:
|
|
34
34
|
* https://github.com/googleapis/nodejs-bigquery/blob/main/samples/getDataset.js
|
|
35
35
|
*/
|
|
36
|
-
datasetExists: (datasetId: string) => Promise<
|
|
36
|
+
datasetExists: (datasetId: string) => Promise<boolean>;
|
|
37
37
|
/**
|
|
38
38
|
* Retrieve all the Datasets
|
|
39
39
|
*/
|
|
@@ -42,7 +42,7 @@ declare class GoogleCloudBigqueryNamespace extends BaseNamespace {
|
|
|
42
42
|
/**
|
|
43
43
|
* Create a Table if it doesn't already exist.
|
|
44
44
|
*/
|
|
45
|
-
createTable: (datasetId: string, datasetOptions: object, tableId: string, options?: object) => Promise<void>;
|
|
45
|
+
createTable: (datasetId: string, datasetOptions: object | undefined, tableId: string, options?: object) => Promise<void>;
|
|
46
46
|
/**
|
|
47
47
|
* Check to see whether a given BigQuery table exists.
|
|
48
48
|
* https://cloud.google.com/bigquery/docs/samples/bigquery-table-exists
|
|
@@ -2,7 +2,6 @@ import { isObject } from "../../../lodash/index.mjs";
|
|
|
2
2
|
import { BaseNamespace } from "../../../_class/index.mjs";
|
|
3
3
|
import { onePasswordClient } from "../../../onePassword/server/index.mjs";
|
|
4
4
|
import { getConfig } from "../../server/index.mjs";
|
|
5
|
-
|
|
6
5
|
//#region src/googleCloud/bigquery/server/GoogleCloudBigqueryNamespace.ts
|
|
7
6
|
var GoogleCloudBigqueryNamespace = class extends BaseNamespace {
|
|
8
7
|
ensureInit = async () => {
|
|
@@ -92,7 +91,6 @@ var GoogleCloudBigqueryNamespace = class extends BaseNamespace {
|
|
|
92
91
|
return response;
|
|
93
92
|
};
|
|
94
93
|
};
|
|
95
|
-
|
|
96
94
|
//#endregion
|
|
97
95
|
//#region src/googleCloud/bigquery/server/googleCloudBigquery.ts
|
|
98
96
|
const googleCloudBigqueryNamespaces = /* @__PURE__ */ new Map();
|
|
@@ -119,7 +117,6 @@ const googleCloudBigqueryClient = async (key = "default", projectId, config, vau
|
|
|
119
117
|
const getHandlerPath = (input) => {
|
|
120
118
|
return `${input.split(process.cwd())[1].substring(1).replace(/\\/g, "/")}`;
|
|
121
119
|
};
|
|
122
|
-
|
|
123
120
|
//#endregion
|
|
124
121
|
//#region src/googleCloud/bigquery/server/loadData.ts
|
|
125
122
|
/**
|
|
@@ -128,6 +125,5 @@ const getHandlerPath = (input) => {
|
|
|
128
125
|
const loadData = async ({ file, googleCloudBigqueryClient, googleCloudStorageClient, table }) => {
|
|
129
126
|
if (await googleCloudBigqueryClient.tableExists(table.datasetId, table.tableId)) await googleCloudBigqueryClient.client.dataset(table.datasetId).table(table.tableId).load(googleCloudStorageClient.client.bucket(file.bucket).file(file.key), file.metadata);
|
|
130
127
|
};
|
|
131
|
-
|
|
132
128
|
//#endregion
|
|
133
|
-
export { GoogleCloudBigqueryNamespace, getHandlerPath, googleCloudBigqueryClient, loadData };
|
|
129
|
+
export { GoogleCloudBigqueryNamespace, getHandlerPath, googleCloudBigqueryClient, loadData };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as getConfig, t as GoogleCloudConfig } from "../../index-
|
|
1
|
+
import { n as getConfig, t as GoogleCloudConfig } from "../../index-DVYYb5tw.mjs";
|
|
2
2
|
export { GoogleCloudConfig, getConfig };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as BaseNamespace } from "../../../index-
|
|
2
|
-
import { t as GoogleCloudConfig } from "../../../index-
|
|
3
|
-
import * as _googleapis_sheets0 from "@googleapis/sheets";
|
|
1
|
+
import { t as BaseNamespace } from "../../../index-1SE8er2n.mjs";
|
|
2
|
+
import { t as GoogleCloudConfig } from "../../../index-DVYYb5tw.mjs";
|
|
3
|
+
import * as _$_googleapis_sheets0 from "@googleapis/sheets";
|
|
4
4
|
import { GoogleAuth } from "googleapis-common";
|
|
5
5
|
|
|
6
6
|
//#region src/googleCloud/sheets/server/GoogleCloudSheetsNamespace.d.ts
|
|
@@ -16,7 +16,7 @@ declare class GoogleCloudSheetsNamespace extends BaseNamespace {
|
|
|
16
16
|
projectId?: string;
|
|
17
17
|
};
|
|
18
18
|
ensureInit: () => Promise<void>;
|
|
19
|
-
getBatchData: (props: GetBatchDataProps) => Promise<_googleapis_sheets0.sheets_v4.Schema$BatchGetValuesResponse>;
|
|
19
|
+
getBatchData: (props: GetBatchDataProps) => Promise<_$_googleapis_sheets0.sheets_v4.Schema$BatchGetValuesResponse>;
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
22
|
export { GoogleCloudSheetsNamespace };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../../_class/index.mjs";
|
|
2
2
|
import { getConfig } from "../../server/index.mjs";
|
|
3
|
-
|
|
4
3
|
//#region src/googleCloud/sheets/server/GoogleCloudSheetsNamespace.ts
|
|
5
4
|
var GoogleCloudSheetsNamespace = class extends BaseNamespace {
|
|
6
5
|
ensureInit = async () => {
|
|
@@ -26,6 +25,5 @@ var GoogleCloudSheetsNamespace = class extends BaseNamespace {
|
|
|
26
25
|
})).data;
|
|
27
26
|
};
|
|
28
27
|
};
|
|
29
|
-
|
|
30
28
|
//#endregion
|
|
31
|
-
export { GoogleCloudSheetsNamespace };
|
|
29
|
+
export { GoogleCloudSheetsNamespace };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as BaseNamespace } from "../../../index-
|
|
2
|
-
import { t as GoogleCloudConfig } from "../../../index-
|
|
3
|
-
import * as _google_cloud_storage0 from "@google-cloud/storage";
|
|
4
|
-
import { Storage } from "@google-cloud/storage";
|
|
1
|
+
import { t as BaseNamespace } from "../../../index-1SE8er2n.mjs";
|
|
2
|
+
import { t as GoogleCloudConfig } from "../../../index-DVYYb5tw.mjs";
|
|
5
3
|
import { GoogleAuthOptions } from "@google-cloud/common";
|
|
4
|
+
import * as _$_google_cloud_storage0 from "@google-cloud/storage";
|
|
5
|
+
import { Storage } from "@google-cloud/storage";
|
|
6
6
|
|
|
7
7
|
//#region src/googleCloud/storage/server/GoogleCloudStorageNamespace.d.ts
|
|
8
8
|
declare class GoogleCloudStorageNamespace extends BaseNamespace {
|
|
@@ -14,7 +14,7 @@ declare class GoogleCloudStorageNamespace extends BaseNamespace {
|
|
|
14
14
|
/**
|
|
15
15
|
* Copy a local file to Google Cloud Storage.
|
|
16
16
|
*/
|
|
17
|
-
copyToCloud: (bucket: string, localFile: string, options?: {}) => Promise<_google_cloud_storage0.UploadResponse>;
|
|
17
|
+
copyToCloud: (bucket: string, localFile: string, options?: {}) => Promise<_$_google_cloud_storage0.UploadResponse>;
|
|
18
18
|
/**
|
|
19
19
|
* Check to see if a file exists but don't get the contents.
|
|
20
20
|
*/
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../../_class/index.mjs";
|
|
2
2
|
import { onePasswordClient } from "../../../onePassword/server/index.mjs";
|
|
3
3
|
import { getConfig } from "../../server/index.mjs";
|
|
4
|
-
|
|
5
4
|
//#region src/googleCloud/storage/server/GoogleCloudStorageNamespace.ts
|
|
6
5
|
var GoogleCloudStorageNamespace = class extends BaseNamespace {
|
|
7
6
|
ensureInit = async () => {
|
|
@@ -50,7 +49,6 @@ var GoogleCloudStorageNamespace = class extends BaseNamespace {
|
|
|
50
49
|
});
|
|
51
50
|
};
|
|
52
51
|
};
|
|
53
|
-
|
|
54
52
|
//#endregion
|
|
55
53
|
//#region src/googleCloud/storage/server/googleCloudStorage.ts
|
|
56
54
|
const googleCloudStorageNamespaces = /* @__PURE__ */ new Map();
|
|
@@ -74,6 +72,5 @@ const googleCloudStorageClient = async (key = "default", projectId, config, vaul
|
|
|
74
72
|
googleCloudStorageNamespaces.set(key, namespace);
|
|
75
73
|
return namespace;
|
|
76
74
|
};
|
|
77
|
-
|
|
78
75
|
//#endregion
|
|
79
|
-
export { GoogleCloudStorageNamespace, googleCloudStorageClient };
|
|
76
|
+
export { GoogleCloudStorageNamespace, googleCloudStorageClient };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../_class/index.mjs";
|
|
2
|
-
import "../../
|
|
3
|
-
import { get } from "../../axios/index.mjs";
|
|
2
|
+
import { t as get } from "../../get-B9XztVOu.mjs";
|
|
4
3
|
import { onePasswordClient } from "../../onePassword/server/index.mjs";
|
|
5
|
-
|
|
6
4
|
//#region src/googlePageSpeed/server/GooglePageSpeedNamespace.ts
|
|
7
5
|
/**
|
|
8
6
|
* Based on https://developers.google.com/speed/docs/insights/rest/v5/pagespeedapi/runpagespeed
|
|
@@ -21,7 +19,6 @@ var GooglePageSpeedNamespace = class extends BaseNamespace {
|
|
|
21
19
|
return null;
|
|
22
20
|
};
|
|
23
21
|
};
|
|
24
|
-
|
|
25
22
|
//#endregion
|
|
26
23
|
//#region src/googlePageSpeed/server/googlePageSpeed.ts
|
|
27
24
|
const googlePageSpeedNamespaces = /* @__PURE__ */ new Map();
|
|
@@ -48,6 +45,5 @@ const strategy = {
|
|
|
48
45
|
DESKTOP: "DESKTOP",
|
|
49
46
|
MOBILE: "MOBILE"
|
|
50
47
|
};
|
|
51
|
-
|
|
52
48
|
//#endregion
|
|
53
|
-
export { GooglePageSpeedNamespace, category, googlePageSpeedClient, strategy };
|
|
49
|
+
export { GooglePageSpeedNamespace, category, googlePageSpeedClient, strategy };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import { get } from "../../axios/index.mjs";
|
|
1
|
+
import { t as get } from "../../get-B9XztVOu.mjs";
|
|
3
2
|
import { z } from "zod/v4";
|
|
4
|
-
|
|
5
3
|
//#region src/googleSearchIncidents/server/googleSearchIncidents.ts
|
|
6
4
|
/**
|
|
7
5
|
* https://status.search.google.com/summary
|
|
@@ -50,6 +48,5 @@ const incidentSchema = z.object({
|
|
|
50
48
|
}).array(),
|
|
51
49
|
uri: z.string()
|
|
52
50
|
}).array();
|
|
53
|
-
|
|
54
51
|
//#endregion
|
|
55
|
-
export { getReport, incidentSchema, updateSchema };
|
|
52
|
+
export { getReport, incidentSchema, updateSchema };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import { get } from "../../axios/index.mjs";
|
|
1
|
+
import { t as get } from "../../get-B9XztVOu.mjs";
|
|
3
2
|
import { z } from "zod/v4";
|
|
4
|
-
|
|
5
3
|
//#region src/greenDomain/server/greenDomain.ts
|
|
6
4
|
/**
|
|
7
5
|
* https://developers.thegreenwebfoundation.org/api/greencheck/v3/check-single-domain/
|
|
@@ -26,6 +24,5 @@ const greenDomainSchema = z.object({
|
|
|
26
24
|
link: z.string()
|
|
27
25
|
}).array().optional()
|
|
28
26
|
});
|
|
29
|
-
|
|
30
27
|
//#endregion
|
|
31
|
-
export { getSingleReport, greenDomainSchema };
|
|
28
|
+
export { getSingleReport, greenDomainSchema };
|
|
@@ -76,7 +76,7 @@ declare const differenceInBusinessDays: (start: InputDate, end: InputDate) => nu
|
|
|
76
76
|
* https://date-fns.org/v2.28.0/docs/eachDayOfInterval
|
|
77
77
|
* https://www.gov.uk/when-do-the-clocks-change
|
|
78
78
|
*/
|
|
79
|
-
declare const getDatesBetween: (start: InputDate, end: InputDate) => DateTime<true>[];
|
|
79
|
+
declare const getDatesBetween: (start: InputDate, end: InputDate) => (DateTime<true> | null)[];
|
|
80
80
|
/**
|
|
81
81
|
* Get an array of DateTime objects representing the 1st of each month between start and end dates.
|
|
82
82
|
*/
|
|
@@ -172,31 +172,31 @@ declare const getDurationMinutes: (seconds: number) => string;
|
|
|
172
172
|
/**
|
|
173
173
|
* Simple function takes any DateTime, String or Number and formats it.
|
|
174
174
|
*/
|
|
175
|
-
declare const format: (input
|
|
175
|
+
declare const format: (input?: InputDate, dateFormat?: string) => string;
|
|
176
176
|
/**
|
|
177
177
|
* Convert a Date into a dd number.
|
|
178
178
|
*/
|
|
179
|
-
declare const getDayNumber: (input
|
|
179
|
+
declare const getDayNumber: (input?: InputDate) => number;
|
|
180
180
|
/**
|
|
181
181
|
* Whenever we are displaying a month and year date in Codex, this will be the standardised format.
|
|
182
182
|
* Example: 1901-02-03 → 3 Feb 1901
|
|
183
183
|
*/
|
|
184
|
-
declare const getFullDate: (input
|
|
184
|
+
declare const getFullDate: (input?: InputDate) => string;
|
|
185
185
|
/**
|
|
186
186
|
* Whenever we are displaying a month and year date in Codex, this will be the standardised format.
|
|
187
187
|
* Example: 1901-02-03 01:23:45 → 1:23am 3 Feb 1901
|
|
188
188
|
*/
|
|
189
|
-
declare const getFullDateTime: (input
|
|
189
|
+
declare const getFullDateTime: (input?: InputDate) => string;
|
|
190
190
|
/**
|
|
191
191
|
* Returns a MMM YYYY value as a number for a given year.
|
|
192
192
|
* Example: 1901-02-03 → Feb 1901
|
|
193
193
|
*/
|
|
194
|
-
declare const getMonthYearString: (input
|
|
194
|
+
declare const getMonthYearString: (input?: InputDate) => string;
|
|
195
195
|
/**
|
|
196
196
|
* Returns a YYYY MMM value as a number for a given year.
|
|
197
197
|
* Example: 1901-02-03 → 1901 Feb
|
|
198
198
|
*/
|
|
199
|
-
declare const getYearMonthString: (input
|
|
199
|
+
declare const getYearMonthString: (input?: InputDate) => string;
|
|
200
200
|
/**
|
|
201
201
|
* Shorthand to get the current date.
|
|
202
202
|
*/
|
|
@@ -216,27 +216,27 @@ declare const getTodayYmdHisNumber: (setMidnight?: boolean) => number;
|
|
|
216
216
|
/**
|
|
217
217
|
* Convert a Date into a YYYY number.
|
|
218
218
|
*/
|
|
219
|
-
declare const getYearNumber: (input
|
|
219
|
+
declare const getYearNumber: (input?: InputDate) => number;
|
|
220
220
|
/**
|
|
221
221
|
* Returns a YYYYMMDDHHIISS value as a number.
|
|
222
222
|
* Example: 1901-02-03 01:23:45 → 19010203012345
|
|
223
223
|
*/
|
|
224
|
-
declare const getYmdHisNumber: (input
|
|
224
|
+
declare const getYmdHisNumber: (input?: InputDate) => number;
|
|
225
225
|
/**
|
|
226
226
|
* Returns a YYYY-MM-DD HH:MM:SS value as a string.
|
|
227
227
|
* Example: 1901-02-03 → 1901-02-03 00:00:00
|
|
228
228
|
*/
|
|
229
|
-
declare const getYmdHisString: (input
|
|
229
|
+
declare const getYmdHisString: (input?: InputDate) => string;
|
|
230
230
|
/**
|
|
231
231
|
* Returns a YYYYMMDD value as a number.
|
|
232
232
|
* Example: 1901-02-03 → 19010203
|
|
233
233
|
*/
|
|
234
|
-
declare const getYmdNumber: (input
|
|
234
|
+
declare const getYmdNumber: (input?: InputDate) => number;
|
|
235
235
|
/**
|
|
236
236
|
* Whenever we are displaying a YYYY-MM-DD date in Codex
|
|
237
237
|
* Example: 1901-02-03 → 1901-02-03
|
|
238
238
|
*/
|
|
239
|
-
declare const getYmdString: (input
|
|
239
|
+
declare const getYmdString: (input?: InputDate) => string;
|
|
240
240
|
/**
|
|
241
241
|
* Convert an Excel date "e.g. 44216" into a JavaScript date object.
|
|
242
242
|
* https://stackoverflow.com/questions/16229494/converting-excel-date-serial-number-to-date-using-javascript
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { o as ApiResponseClass, t as ApiResponse } from "./api-DoLMPDFM.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/api/deleteRequest.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Make a DELETE request.
|
|
6
|
+
* Can't use the function name delete as it's reserved
|
|
7
|
+
*/
|
|
8
|
+
declare const deleteRequest: (url: string, config?: {}) => Promise<ApiResponseClass>;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/api/functions.d.ts
|
|
11
|
+
declare const isCancelled: (apiResponse: ApiResponse) => boolean;
|
|
12
|
+
declare const isError: (apiResponse: ApiResponse) => boolean;
|
|
13
|
+
declare const isIdle: (apiResponse: ApiResponse) => boolean;
|
|
14
|
+
declare const isPending: (apiResponse: ApiResponse) => boolean;
|
|
15
|
+
declare const isSuccess: (apiResponse: ApiResponse) => boolean;
|
|
16
|
+
declare const isValidationError: (apiResponse: ApiResponse) => boolean;
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/api/get.d.ts
|
|
19
|
+
/**
|
|
20
|
+
* Make a GET request.
|
|
21
|
+
*/
|
|
22
|
+
declare const get: (url: string, config?: {}) => Promise<ApiResponseClass>;
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/api/post.d.ts
|
|
25
|
+
/**
|
|
26
|
+
* Make a POST request.
|
|
27
|
+
*/
|
|
28
|
+
declare const post: (url: string, data?: {}, config?: {}) => Promise<ApiResponseClass>;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { isIdle as a, isValidationError as c, isError as i, deleteRequest as l, get as n, isPending as o, isCancelled as r, isSuccess as s, post as t };
|
package/dist/inngest/index.mjs
CHANGED
package/dist/json/index.mjs
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { getArray } from "../array/index.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/json/getJsonNewline.ts
|
|
4
3
|
const getJsonNewline = (data) => {
|
|
5
4
|
return getArray(data).map((row) => JSON.stringify(row)).join("\n");
|
|
6
5
|
};
|
|
7
|
-
|
|
8
6
|
//#endregion
|
|
9
7
|
//#region src/json/isJson.ts
|
|
10
8
|
const isJson = (input) => {
|
|
@@ -22,6 +20,5 @@ const isJson = (input) => {
|
|
|
22
20
|
return false;
|
|
23
21
|
}
|
|
24
22
|
};
|
|
25
|
-
|
|
26
23
|
//#endregion
|
|
27
|
-
export { getJsonNewline, isJson };
|
|
24
|
+
export { getJsonNewline, isJson };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../_class/index.mjs";
|
|
2
|
-
import "../../
|
|
3
|
-
import { get } from "../../axios/index.mjs";
|
|
2
|
+
import { t as get } from "../../get-B9XztVOu.mjs";
|
|
4
3
|
import { onePasswordClient } from "../../onePassword/server/index.mjs";
|
|
5
|
-
|
|
6
4
|
//#region src/littleWarden/server/LittleWardenNamespace.ts
|
|
7
5
|
/**
|
|
8
6
|
* Based on https://developers.google.com/speed/docs/insights/rest/v5/pagespeedapi/runpagespeed
|
|
@@ -21,7 +19,6 @@ var LittleWardenNamespace = class extends BaseNamespace {
|
|
|
21
19
|
return null;
|
|
22
20
|
};
|
|
23
21
|
};
|
|
24
|
-
|
|
25
22
|
//#endregion
|
|
26
23
|
//#region src/littleWarden/server/getUrlStatus.ts
|
|
27
24
|
/**
|
|
@@ -30,7 +27,6 @@ var LittleWardenNamespace = class extends BaseNamespace {
|
|
|
30
27
|
const getUrlStatus = async (apiKey, urlId) => {
|
|
31
28
|
return (await get(`https://littlewarden.com/api/sites/${urlId}`, { headers: { "Authorization": `Token token="${apiKey}"` } })).getBodyDefaultTo(["data", "site"], {});
|
|
32
29
|
};
|
|
33
|
-
|
|
34
30
|
//#endregion
|
|
35
31
|
//#region src/littleWarden/server/littleWarden.ts
|
|
36
32
|
const littleWardenNamespaces = /* @__PURE__ */ new Map();
|
|
@@ -74,6 +70,5 @@ const isDanger = ({ field }) => {
|
|
|
74
70
|
if (void 0 !== field && void 0 !== field["status"]) response = littleWardenState.DANGER === field["status"];
|
|
75
71
|
return response;
|
|
76
72
|
};
|
|
77
|
-
|
|
78
73
|
//#endregion
|
|
79
|
-
export { LittleWardenNamespace, getUrlStatus, isAllGood, isDanger, isWarning, littleWardenClient, littleWardenState };
|
|
74
|
+
export { LittleWardenNamespace, getUrlStatus, isAllGood, isDanger, isWarning, littleWardenClient, littleWardenState };
|
package/dist/lodash/index.d.mts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
//#region src/lodash/chunk.d.ts
|
|
2
2
|
declare const chunk: <T>(array: T[], size: number) => T[][];
|
|
3
3
|
//#endregion
|
|
4
|
+
//#region src/lodash/findKey.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Finds the first key in an object that satisfies the provided predicate function.
|
|
7
|
+
*
|
|
8
|
+
* @param object - The object to inspect.
|
|
9
|
+
* @param predicate - The function invoked per iteration (value, key, object).
|
|
10
|
+
* @returns The key of the matched element, else undefined.
|
|
11
|
+
*/
|
|
12
|
+
declare const findKey: <T extends object>(object: T, predicate: (value: T[keyof T], key: string, object: T) => boolean) => string | undefined;
|
|
13
|
+
//#endregion
|
|
4
14
|
//#region src/lodash/flatten.d.ts
|
|
5
15
|
declare const flatten: <T>(array: T[][]) => T[];
|
|
6
16
|
//#endregion
|
|
@@ -42,4 +52,4 @@ declare const uniq: (arr: any[]) => any[];
|
|
|
42
52
|
//#region src/lodash/uniqBy.d.ts
|
|
43
53
|
declare const uniqBy: <T>(collection: T[], iteratee: ((item: T) => unknown) | string) => T[];
|
|
44
54
|
//#endregion
|
|
45
|
-
export { chunk, flatten, isDate, isEmpty, isEqual, isFunction, isObject, merge, orderBy, set, trim, unescape, uniq, uniqBy };
|
|
55
|
+
export { chunk, findKey, flatten, isDate, isEmpty, isEqual, isFunction, isObject, merge, orderBy, set, trim, unescape, uniq, uniqBy };
|