@8ms/helpers 2.1.4 → 2.2.10
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/.github/workflows/deploy_npmjs.yml +19 -14
- package/_class/BaseClass.js +43 -52
- package/_class/BaseNamespace.js +17 -20
- package/_class/index.js +2 -7
- package/adverity/getJobs.js +7 -11
- package/adverity/index.js +51 -54
- package/adverity/server.js +1 -5
- package/api/ApiResponseClass.js +84 -88
- package/api/functions.js +13 -22
- package/api/index.js +3 -19
- package/api/types.js +5 -9
- package/array/index.js +3 -11
- package/atInternet/index.js +10 -13
- package/aws/ec2/AwsEc2Namespace.js +34 -74
- package/aws/ec2/server.js +5 -9
- package/aws/ecs/AwsEcsNamespace.js +110 -150
- package/aws/ecs/server.js +5 -9
- package/aws/glue/AwsGlueNamespace.js +26 -66
- package/aws/glue/server.js +5 -9
- package/aws/isResponse200.js +3 -7
- package/aws/lambda/AwsLambdaNamespace.js +62 -102
- package/aws/lambda/server.js +6 -11
- package/aws/s3/AwsS3Namespace.js +347 -390
- package/aws/s3/payload.js +29 -32
- package/aws/s3/server.js +9 -14
- package/aws/server.js +5 -10
- package/aws/ses/AwsSesNamespace.js +36 -76
- package/aws/ses/SimpleEmail.js +267 -304
- package/aws/ses/server.js +6 -11
- package/aws/sqs/AwsSqsNamespace.js +49 -89
- package/aws/sqs/server.js +5 -9
- package/aws/ssm/AwsSsmNamespace.js +43 -79
- package/aws/ssm/server.js +5 -9
- package/axios/deleteRequest.js +8 -15
- package/axios/get.js +8 -15
- package/axios/index.js +3 -9
- package/axios/post.js +8 -15
- package/boolean/index.js +3 -10
- package/brightData/serpApi/buildGoogleSerpUrl.js +1 -5
- package/brightData/serpApi/buildGoogleTrendsUrl.js +1 -5
- package/brightData/serpApi/getAsyncRequestId.js +8 -12
- package/brightData/serpApi/getAsyncResults.js +8 -12
- package/brightData/serpApi/getRealtime.js +3 -7
- package/brightData/serpApi/server.js +6 -14
- package/brightData/server.js +2 -7
- package/brightData/webScraperIde/getBatch.js +3 -7
- package/brightData/webScraperIde/getRealtime.js +11 -15
- package/brightData/webScraperIde/server.js +2 -7
- package/cache/server.js +2 -7
- package/cache/test/cache.test.js +4 -6
- package/crud/index.js +1 -4
- package/crypto/getDecrypt.js +2 -39
- package/crypto/getEncrypt.js +2 -39
- package/crypto/getRandom.js +1 -5
- package/crypto/getSha256.js +4 -41
- package/crypto/index.js +4 -11
- package/date/calculation.js +70 -99
- package/date/financialYear.js +16 -23
- package/date/format.js +40 -61
- package/date/index.js +4 -20
- package/date/type.js +4 -7
- package/environment/index.js +15 -25
- package/eskimi/getAgeGroup.js +3 -7
- package/eskimi/getData.js +3 -7
- package/eskimi/getDevice.js +3 -7
- package/eskimi/getGender.js +3 -7
- package/eskimi/server.js +23 -26
- package/file/index.js +8 -46
- package/geo/countries.js +1 -4
- package/geo/index.js +2 -7
- package/geo/languages.js +1 -4
- package/google/bigQuery/GoogleBigQueryNamespace.js +108 -148
- package/google/bigQuery/loadData.js +1 -5
- package/google/bigQuery/server.js +8 -14
- package/google/server.js +1 -5
- package/google/sheets/GoogleSheetsNamespace.js +34 -74
- package/google/sheets/getAssociatedData.js +1 -5
- package/google/sheets/server.js +8 -14
- package/google/storage/GoogleCloudStorageNamespace.js +62 -102
- package/google/storage/server.js +6 -10
- package/googleAds/GoogleAdsNamespace.js +28 -68
- package/googleAds/keywordPlanner/server.js +32 -35
- package/googleAds/server.js +6 -10
- package/googlePageSpeed/GooglePageSpeedNamespace.js +21 -28
- package/googlePageSpeed/server.js +8 -12
- package/googleSearchIncidents/server.js +28 -32
- package/greenDomain/server.js +17 -21
- package/inngest/server.js +1 -4
- package/json/getJsonNewline.js +3 -7
- package/json/index.js +2 -7
- package/json/isJson.js +1 -5
- package/littleWarden/LittleWardenNamespace.js +24 -31
- package/littleWarden/getUrlStatus.js +3 -7
- package/littleWarden/server.js +14 -22
- package/lumar/api/buildRequest.js +14 -18
- package/lumar/api/getData.js +3 -7
- package/lumar/api/initClient.js +3 -7
- package/lumar/api/server.js +6 -12
- package/lumar/graphql/columns.js +1 -4
- package/lumar/graphql/getData.js +3 -7
- package/lumar/graphql/initClient.js +3 -7
- package/lumar/graphql/queries/crawl.js +1 -2
- package/lumar/graphql/queries/getCrawls.js +1 -3
- package/lumar/graphql/queries/getReportDifferences.js +3 -5
- package/lumar/graphql/queries/getRows.js +1 -3
- package/lumar/graphql/queries/getTotals.js +1 -3
- package/lumar/graphql/queries/row.js +1 -2
- package/lumar/graphql/reportTemplates.js +1 -4
- package/lumar/graphql/server.js +7 -15
- package/myTarget/server.js +3 -7
- package/nextAuth/index.js +2 -6
- package/nextAuth/isSessionReady.js +1 -5
- package/nextJs/client/LazyLoad.js +5 -12
- package/nextJs/client.js +1 -5
- package/nextJs/index.js +2 -7
- package/number/format.js +3 -7
- package/number/formatCurrency.js +1 -5
- package/number/getDecimal.js +3 -7
- package/number/getNumber.js +3 -7
- package/number/getPercentIncrease.js +4 -8
- package/number/getSafeDivide.js +6 -10
- package/number/index.js +6 -15
- package/object/index.js +1 -5
- package/object/replaceKeys.js +3 -7
- package/onePassword/OnePasswordNamespace.js +36 -76
- package/onePassword/server.js +3 -7
- package/openAi/OpenAiNamespace.js +32 -39
- package/openAi/server.js +6 -10
- package/package.json +136 -120
- package/prisma/PrismaNamespace.d.ts +3 -3
- package/prisma/PrismaNamespace.js +55 -81
- package/prisma/getDecimal.js +5 -12
- package/prisma/server.d.ts +13 -0
- package/prisma/server.js +6 -9
- package/snapchat/SnapchatNamespace.js +20 -27
- package/snapchat/server.js +6 -10
- package/sorting/byNumberAscending.js +1 -5
- package/sorting/byNumberDescending.js +1 -5
- package/sorting/byStringAscending.js +1 -5
- package/sorting/byStringDescending.js +1 -5
- package/sorting/index.js +4 -11
- package/stream/server.js +1 -5
- package/stream/sort.js +1 -5
- package/string/getCapitalised.js +3 -7
- package/string/getClean.js +17 -21
- package/string/getFolder.js +3 -10
- package/string/getProperCase.js +4 -8
- package/string/getString.js +8 -15
- package/string/getStringFromStream.js +1 -5
- package/string/getUnescaped.js +3 -10
- package/string/getWithoutAccents.js +1 -5
- package/string/getWithoutHtmlTags.js +1 -5
- package/string/getWithoutPunctuation.js +1 -5
- package/string/getWithoutUnderscores.js +1 -5
- package/string/getWithoutWhitespaces.js +1 -5
- package/string/index.js +12 -27
- package/string/reservedWords.js +5 -9
- package/swr/index.js +9 -18
- package/upTimeRobot/UpTimeRobotNamespace.js +32 -42
- package/upTimeRobot/server.js +11 -15
- package/url/index.js +12 -23
- package/url/server.js +1 -5
- package/url/writeUrlContents.js +6 -46
- package/util/defaultTo.js +5 -12
- package/util/getBrotliCompressed.js +3 -10
- package/util/getBrotliDecompressed.js +3 -10
- package/util/getClean.js +5 -9
- package/util/getError.js +1 -5
- package/util/getGzipCompressed.js +3 -10
- package/util/getGzipDecompressed.js +3 -10
- package/util/getWithoutHash.js +1 -5
- package/util/getWithoutParameter.js +1 -5
- package/util/index.js +7 -17
- package/util/isUndefined.js +3 -7
- package/util/promiseChunks.js +6 -10
- package/util/server.js +4 -11
- package/util/sleep.js +1 -5
- package/webWorker/index.js +1 -4
- package/xml/getXml.js +3 -7
- package/.yarn/install-state.gz +0 -0
- package/.yarn/releases/yarn-4.9.4.cjs +0 -942
- package/.yarnrc.yml +0 -3
- package/aws/athenaExpress/AwsAthenaNamespace.d.ts +0 -8
- package/aws/athenaExpress/AwsAthenaNamespace.js +0 -82
- package/aws/athenaExpress/server.d.ts +0 -10
- package/aws/athenaExpress/server.js +0 -40
|
@@ -1,79 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
})
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.OnePasswordNamespace = void 0;
|
|
37
|
-
const _class_1 = require("../_class");
|
|
38
|
-
class OnePasswordNamespace extends _class_1.BaseNamespace {
|
|
39
|
-
constructor() {
|
|
40
|
-
super(...arguments);
|
|
41
|
-
// Async setup to only initialise where required
|
|
42
|
-
this.ensureInit = async () => {
|
|
43
|
-
if (!this.client) {
|
|
44
|
-
try {
|
|
45
|
-
const { createClient } = await Promise.resolve().then(() => __importStar(require("@1password/sdk")));
|
|
46
|
-
this.client = await createClient({
|
|
47
|
-
auth: this.config.serviceAccountToken,
|
|
48
|
-
integrationName: this.config.integrationName || "8MS Helper TS",
|
|
49
|
-
integrationVersion: this.config.integrationVersion || "v1.0.0",
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
catch (e) {
|
|
53
|
-
throw new Error("1Password SDK not installed");
|
|
54
|
-
}
|
|
1
|
+
import { BaseNamespace } from "../_class";
|
|
2
|
+
export class OnePasswordNamespace extends BaseNamespace {
|
|
3
|
+
// Async setup to only initialise where required
|
|
4
|
+
ensureInit = async () => {
|
|
5
|
+
if (!this.client) {
|
|
6
|
+
try {
|
|
7
|
+
const { createClient } = await import("@1password/sdk");
|
|
8
|
+
this.client = await createClient({
|
|
9
|
+
auth: this.config.serviceAccountToken,
|
|
10
|
+
integrationName: this.config.integrationName || "8MS Helper TS",
|
|
11
|
+
integrationVersion: this.config.integrationVersion || "v1.0.0",
|
|
12
|
+
});
|
|
55
13
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
await this.ensureInit();
|
|
59
|
-
return this.client.vaults.list();
|
|
60
|
-
};
|
|
61
|
-
this.getItem = async (vaultId, itemId) => {
|
|
62
|
-
await this.ensureInit();
|
|
63
|
-
return this.client.items.get(vaultId, itemId);
|
|
64
|
-
};
|
|
65
|
-
this.getJsonNote = async (vaultId, itemId) => {
|
|
66
|
-
let response = null;
|
|
67
|
-
const item = await this.getItem(vaultId, itemId);
|
|
68
|
-
if (item && "undefined" !== typeof item.notes) {
|
|
69
|
-
response = JSON.parse(item.notes);
|
|
14
|
+
catch (e) {
|
|
15
|
+
throw new Error("1Password SDK not installed");
|
|
70
16
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
listVaults = async () => {
|
|
20
|
+
await this.ensureInit();
|
|
21
|
+
return this.client.vaults.list();
|
|
22
|
+
};
|
|
23
|
+
getItem = async (vaultId, itemId) => {
|
|
24
|
+
await this.ensureInit();
|
|
25
|
+
return this.client.items.get(vaultId, itemId);
|
|
26
|
+
};
|
|
27
|
+
getJsonNote = async (vaultId, itemId) => {
|
|
28
|
+
let response = null;
|
|
29
|
+
const item = await this.getItem(vaultId, itemId);
|
|
30
|
+
if (item && "undefined" !== typeof item.notes) {
|
|
31
|
+
response = JSON.parse(item.notes);
|
|
32
|
+
}
|
|
33
|
+
return response;
|
|
34
|
+
};
|
|
35
|
+
listItems = async (vaultId) => {
|
|
36
|
+
await this.ensureInit();
|
|
37
|
+
return this.client.items.list(vaultId);
|
|
38
|
+
};
|
|
78
39
|
}
|
|
79
|
-
exports.OnePasswordNamespace = OnePasswordNamespace;
|
package/onePassword/server.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.onePasswordClient = void 0;
|
|
4
|
-
const OnePasswordNamespace_1 = require("./OnePasswordNamespace");
|
|
1
|
+
import { OnePasswordNamespace } from "./OnePasswordNamespace";
|
|
5
2
|
const onePasswordNamespaces = new Map();
|
|
6
3
|
// Main client that is used by system
|
|
7
|
-
const onePasswordClient = async (key = "default", config) => {
|
|
4
|
+
export const onePasswordClient = async (key = "default", config) => {
|
|
8
5
|
if (onePasswordNamespaces.has(key)) {
|
|
9
6
|
return onePasswordNamespaces.get(key);
|
|
10
7
|
}
|
|
@@ -18,8 +15,7 @@ const onePasswordClient = async (key = "default", config) => {
|
|
|
18
15
|
throw new Error(`Config required for namespace '${key}'`);
|
|
19
16
|
}
|
|
20
17
|
}
|
|
21
|
-
const namespace = new
|
|
18
|
+
const namespace = new OnePasswordNamespace(key, config);
|
|
22
19
|
onePasswordNamespaces.set(key, namespace);
|
|
23
20
|
return namespace;
|
|
24
21
|
};
|
|
25
|
-
exports.onePasswordClient = onePasswordClient;
|
|
@@ -1,42 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
model,
|
|
23
|
-
messages: [
|
|
24
|
-
{
|
|
25
|
-
role: "user",
|
|
26
|
-
content: prompt,
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
temperature: 1,
|
|
30
|
-
}, {
|
|
31
|
-
headers: {
|
|
32
|
-
Authorization: `Bearer ${this.config.apiKey}`,
|
|
1
|
+
import { BaseNamespace } from "../_class";
|
|
2
|
+
import { post } from "../axios";
|
|
3
|
+
export class OpenAiNamespace extends BaseNamespace {
|
|
4
|
+
/**
|
|
5
|
+
* Renew the access token as it expires every 3 hours.
|
|
6
|
+
*/
|
|
7
|
+
ensureInit = async () => {
|
|
8
|
+
if (!this.client) {
|
|
9
|
+
this.client = true;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
completion = async (prompt, temperature = 1, maxTokens = null, model = "gpt-3.5-turbo") => {
|
|
13
|
+
let response = null;
|
|
14
|
+
// Make the API request
|
|
15
|
+
const apiResponse = await post(`https://api.openai.com/v1/chat/completions`, {
|
|
16
|
+
max_tokens: maxTokens,
|
|
17
|
+
model,
|
|
18
|
+
messages: [
|
|
19
|
+
{
|
|
20
|
+
role: "user",
|
|
21
|
+
content: prompt,
|
|
33
22
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
23
|
+
],
|
|
24
|
+
temperature: 1,
|
|
25
|
+
}, {
|
|
26
|
+
headers: {
|
|
27
|
+
Authorization: `Bearer ${this.config.apiKey}`,
|
|
37
28
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
29
|
+
});
|
|
30
|
+
if (apiResponse.isSuccess()) {
|
|
31
|
+
response = apiResponse.getBody();
|
|
32
|
+
}
|
|
33
|
+
return response;
|
|
34
|
+
};
|
|
41
35
|
}
|
|
42
|
-
exports.OpenAiNamespace = OpenAiNamespace;
|
package/openAi/server.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.openAiClient = void 0;
|
|
4
|
-
const OpenAiNamespace_1 = require("./OpenAiNamespace");
|
|
5
|
-
const server_1 = require("../onePassword/server");
|
|
1
|
+
import { OpenAiNamespace } from "./OpenAiNamespace";
|
|
2
|
+
import { onePasswordClient } from "../onePassword/server";
|
|
6
3
|
const openAiNamespaces = new Map();
|
|
7
|
-
const openAiClient = async (key = "default", config, vaultId, itemId) => {
|
|
4
|
+
export const openAiClient = async (key = "default", config, vaultId, itemId) => {
|
|
8
5
|
if (openAiNamespaces.has(key)) {
|
|
9
6
|
return openAiNamespaces.get(key);
|
|
10
7
|
}
|
|
@@ -13,18 +10,17 @@ const openAiClient = async (key = "default", config, vaultId, itemId) => {
|
|
|
13
10
|
instanceConfig = config;
|
|
14
11
|
}
|
|
15
12
|
else if (vaultId && itemId) {
|
|
16
|
-
instanceConfig = await (await
|
|
13
|
+
instanceConfig = await (await onePasswordClient())
|
|
17
14
|
.getJsonNote(vaultId, itemId);
|
|
18
15
|
}
|
|
19
16
|
else if (process.env.OPEN_AI_VAULT_ID && process.env.OPEN_AI_ITEM_ID) {
|
|
20
|
-
instanceConfig = await (await
|
|
17
|
+
instanceConfig = await (await onePasswordClient())
|
|
21
18
|
.getJsonNote(process.env.OPEN_AI_VAULT_ID, process.env.OPEN_AI_ITEM_ID);
|
|
22
19
|
}
|
|
23
20
|
else {
|
|
24
21
|
throw new Error(`Config required for namespace '${key}'`);
|
|
25
22
|
}
|
|
26
|
-
const namespace = new
|
|
23
|
+
const namespace = new OpenAiNamespace(key, instanceConfig);
|
|
27
24
|
openAiNamespaces.set(key, namespace);
|
|
28
25
|
return namespace;
|
|
29
26
|
};
|
|
30
|
-
exports.openAiClient = openAiClient;
|
package/package.json
CHANGED
|
@@ -1,187 +1,203 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name":
|
|
3
|
-
"license":
|
|
4
|
-
"version":
|
|
5
|
-
"repository":
|
|
2
|
+
"name": "@8ms/helpers",
|
|
3
|
+
"license": "UNLICENSED",
|
|
4
|
+
"version": "2.2.10",
|
|
5
|
+
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url":
|
|
7
|
+
"url": "git+https://github.com/8millionstories-organisation/8ms-helpers-ts.git"
|
|
8
8
|
},
|
|
9
|
-
"main":
|
|
10
|
-
"types":
|
|
11
|
-
"
|
|
9
|
+
"main": "index.js",
|
|
10
|
+
"types": "index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./index.d.ts",
|
|
14
|
+
"default": "./index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
12
18
|
"build": "tsc",
|
|
13
|
-
"jest":
|
|
19
|
+
"jest": "jest --watch"
|
|
14
20
|
},
|
|
15
|
-
"
|
|
16
|
-
|
|
21
|
+
"packageManager": "pnpm@9.15.0",
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": "24"
|
|
17
24
|
},
|
|
18
|
-
"dependencies":
|
|
19
|
-
"axios":
|
|
20
|
-
"lodash": "^4.17.
|
|
21
|
-
"luxon":
|
|
22
|
-
"zod":
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"axios": "^1.13.5",
|
|
27
|
+
"lodash": "^4.17.23",
|
|
28
|
+
"luxon": "^3.7.2",
|
|
29
|
+
"zod": "^4.3.6"
|
|
23
30
|
},
|
|
24
|
-
"peerDependencies":
|
|
25
|
-
"@1password/sdk":
|
|
26
|
-
"@aws-sdk/client-ec2":
|
|
27
|
-
"@aws-sdk/client-ecs":
|
|
28
|
-
"@aws-sdk/client-glue":
|
|
29
|
-
"@aws-sdk/client-lambda":
|
|
30
|
-
"@aws-sdk/client-s3":
|
|
31
|
-
"@aws-sdk/client-ses":
|
|
32
|
-
"@aws-sdk/client-sqs":
|
|
33
|
-
"@aws-sdk/client-ssm":
|
|
34
|
-
"@aws-sdk/lib-storage":
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"@1password/sdk": "<1.0.0",
|
|
33
|
+
"@aws-sdk/client-ec2": "^3.0.0",
|
|
34
|
+
"@aws-sdk/client-ecs": "^3.0.0",
|
|
35
|
+
"@aws-sdk/client-glue": "^3.0.0",
|
|
36
|
+
"@aws-sdk/client-lambda": "^3.0.0",
|
|
37
|
+
"@aws-sdk/client-s3": "^3.0.0",
|
|
38
|
+
"@aws-sdk/client-ses": "^3.0.0",
|
|
39
|
+
"@aws-sdk/client-sqs": "^3.0.0",
|
|
40
|
+
"@aws-sdk/client-ssm": "^3.0.0",
|
|
41
|
+
"@aws-sdk/lib-storage": "^3.0.0",
|
|
35
42
|
"@aws-sdk/s3-request-presigner": "^3.0.0",
|
|
36
|
-
"@google-cloud/bigquery":
|
|
37
|
-
"@google-cloud/
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
40
|
-
"@
|
|
41
|
-
"@prisma/
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
43
|
+
"@google-cloud/bigquery": "^8.0.0",
|
|
44
|
+
"@google-cloud/common": "^6.0.0",
|
|
45
|
+
"@google-cloud/storage": "^7.0.0",
|
|
46
|
+
"@googleapis/sheets": "^13.0.0",
|
|
47
|
+
"@planetscale/database": "^1.0.0",
|
|
48
|
+
"@prisma/adapter-mariadb": "^7.0.0",
|
|
49
|
+
"@prisma/adapter-pg": "^7.0.0",
|
|
50
|
+
"@prisma/adapter-planetscale": "^7.0.0",
|
|
51
|
+
"@prisma/client": "^7.0.0",
|
|
52
|
+
"crypto-js": "^4.0.0",
|
|
53
|
+
"fs-extra": "^11.0.0",
|
|
54
|
+
"google-ads-api": "^23.0.0",
|
|
55
|
+
"googleapis-common": "^8.0.0",
|
|
56
|
+
"next": "^16.0.0",
|
|
57
|
+
"react": "^19.0.0",
|
|
58
|
+
"react-intersection-observer": "^10.0.0",
|
|
59
|
+
"stream-chain": "^3.0.0",
|
|
60
|
+
"stream-json": "^1.0.0",
|
|
61
|
+
"swr": "^2.0.0"
|
|
53
62
|
},
|
|
54
63
|
"peerDependenciesMeta": {
|
|
55
|
-
"@1password/sdk":
|
|
64
|
+
"@1password/sdk": {
|
|
56
65
|
"optional": true
|
|
57
66
|
},
|
|
58
|
-
"@aws-sdk/client-ec2":
|
|
67
|
+
"@aws-sdk/client-ec2": {
|
|
59
68
|
"optional": true
|
|
60
69
|
},
|
|
61
|
-
"@aws-sdk/client-ecs":
|
|
70
|
+
"@aws-sdk/client-ecs": {
|
|
62
71
|
"optional": true
|
|
63
72
|
},
|
|
64
|
-
"@aws-sdk/client-glue":
|
|
73
|
+
"@aws-sdk/client-glue": {
|
|
65
74
|
"optional": true
|
|
66
75
|
},
|
|
67
|
-
"@aws-sdk/client-lambda":
|
|
76
|
+
"@aws-sdk/client-lambda": {
|
|
68
77
|
"optional": true
|
|
69
78
|
},
|
|
70
|
-
"@aws-sdk/client-s3":
|
|
79
|
+
"@aws-sdk/client-s3": {
|
|
71
80
|
"optional": true
|
|
72
81
|
},
|
|
73
|
-
"@aws-sdk/client-ses":
|
|
82
|
+
"@aws-sdk/client-ses": {
|
|
74
83
|
"optional": true
|
|
75
84
|
},
|
|
76
|
-
"@aws-sdk/client-sqs":
|
|
85
|
+
"@aws-sdk/client-sqs": {
|
|
77
86
|
"optional": true
|
|
78
87
|
},
|
|
79
|
-
"@aws-sdk/client-ssm":
|
|
88
|
+
"@aws-sdk/client-ssm": {
|
|
80
89
|
"optional": true
|
|
81
90
|
},
|
|
82
|
-
"@aws-sdk/lib-storage":
|
|
91
|
+
"@aws-sdk/lib-storage": {
|
|
83
92
|
"optional": true
|
|
84
93
|
},
|
|
85
94
|
"@aws-sdk/s3-request-presigner": {
|
|
86
95
|
"optional": true
|
|
87
96
|
},
|
|
88
|
-
"@google-cloud/bigquery":
|
|
97
|
+
"@google-cloud/bigquery": {
|
|
98
|
+
"optional": true
|
|
99
|
+
},
|
|
100
|
+
"@google-cloud/common": {
|
|
89
101
|
"optional": true
|
|
90
102
|
},
|
|
91
|
-
"@google-cloud/storage":
|
|
103
|
+
"@google-cloud/storage": {
|
|
92
104
|
"optional": true
|
|
93
105
|
},
|
|
94
|
-
"@googleapis/sheets":
|
|
106
|
+
"@googleapis/sheets": {
|
|
95
107
|
"optional": true
|
|
96
108
|
},
|
|
97
|
-
"@planetscale/database":
|
|
109
|
+
"@planetscale/database": {
|
|
98
110
|
"optional": true
|
|
99
111
|
},
|
|
100
|
-
"@prisma/adapter-
|
|
112
|
+
"@prisma/adapter-mariadb": {
|
|
101
113
|
"optional": true
|
|
102
114
|
},
|
|
103
|
-
"@prisma/
|
|
115
|
+
"@prisma/adapter-pg": {
|
|
104
116
|
"optional": true
|
|
105
117
|
},
|
|
106
|
-
"
|
|
118
|
+
"@prisma/adapter-planetscale": {
|
|
107
119
|
"optional": true
|
|
108
120
|
},
|
|
109
|
-
"
|
|
121
|
+
"@prisma/client": {
|
|
110
122
|
"optional": true
|
|
111
123
|
},
|
|
112
|
-
"crypto-js":
|
|
124
|
+
"crypto-js": {
|
|
113
125
|
"optional": true
|
|
114
126
|
},
|
|
115
|
-
"fs-extra":
|
|
127
|
+
"fs-extra": {
|
|
116
128
|
"optional": true
|
|
117
129
|
},
|
|
118
|
-
"google-ads-api":
|
|
130
|
+
"google-ads-api": {
|
|
119
131
|
"optional": true
|
|
120
132
|
},
|
|
121
|
-
"
|
|
133
|
+
"googleapis-common": {
|
|
122
134
|
"optional": true
|
|
123
135
|
},
|
|
124
|
-
"
|
|
136
|
+
"next": {
|
|
125
137
|
"optional": true
|
|
126
138
|
},
|
|
127
|
-
"
|
|
139
|
+
"react": {
|
|
128
140
|
"optional": true
|
|
129
141
|
},
|
|
130
|
-
"stream-
|
|
142
|
+
"stream-chain": {
|
|
131
143
|
"optional": true
|
|
132
144
|
},
|
|
133
|
-
"
|
|
145
|
+
"stream-json": {
|
|
146
|
+
"optional": true
|
|
147
|
+
},
|
|
148
|
+
"swr": {
|
|
134
149
|
"optional": true
|
|
135
150
|
}
|
|
136
151
|
},
|
|
137
|
-
"devDependencies":
|
|
138
|
-
"@1password/sdk":
|
|
139
|
-
"@aws-sdk/client-ec2":
|
|
140
|
-
"@aws-sdk/client-ecs":
|
|
141
|
-
"@aws-sdk/client-glue":
|
|
142
|
-
"@aws-sdk/client-lambda":
|
|
143
|
-
"@aws-sdk/client-s3":
|
|
144
|
-
"@aws-sdk/client-ses":
|
|
145
|
-
"@aws-sdk/client-sqs":
|
|
146
|
-
"@aws-sdk/client-ssm":
|
|
147
|
-
"@aws-sdk/lib-storage":
|
|
148
|
-
"@aws-sdk/s3-request-presigner": "^3.
|
|
149
|
-
"@babel/core":
|
|
150
|
-
"@babel/preset-env":
|
|
151
|
-
"@babel/preset-flow":
|
|
152
|
-
"@babel/preset-typescript":
|
|
153
|
-
"@google-cloud/bigquery":
|
|
154
|
-
"@google-cloud/
|
|
155
|
-
"@
|
|
156
|
-
"@
|
|
157
|
-
"@
|
|
158
|
-
"@prisma/
|
|
159
|
-
"@
|
|
160
|
-
"@
|
|
161
|
-
"@
|
|
162
|
-
"@types/
|
|
163
|
-
"@types/
|
|
164
|
-
"@types/
|
|
165
|
-
"@types/
|
|
166
|
-
"@types/
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
"
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
"
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
|
|
186
|
-
|
|
152
|
+
"devDependencies": {
|
|
153
|
+
"@1password/sdk": "^0.4.0",
|
|
154
|
+
"@aws-sdk/client-ec2": "^3.992.0",
|
|
155
|
+
"@aws-sdk/client-ecs": "^3.992.0",
|
|
156
|
+
"@aws-sdk/client-glue": "^3.992.0",
|
|
157
|
+
"@aws-sdk/client-lambda": "^3.992.0",
|
|
158
|
+
"@aws-sdk/client-s3": "^3.992.0",
|
|
159
|
+
"@aws-sdk/client-ses": "^3.992.0",
|
|
160
|
+
"@aws-sdk/client-sqs": "^3.992.0",
|
|
161
|
+
"@aws-sdk/client-ssm": "^3.992.0",
|
|
162
|
+
"@aws-sdk/lib-storage": "^3.992.0",
|
|
163
|
+
"@aws-sdk/s3-request-presigner": "^3.992.0",
|
|
164
|
+
"@babel/core": "7.29.0",
|
|
165
|
+
"@babel/preset-env": "7.29.0",
|
|
166
|
+
"@babel/preset-flow": "7.27.1",
|
|
167
|
+
"@babel/preset-typescript": "7.28.5",
|
|
168
|
+
"@google-cloud/bigquery": "^8.1.1",
|
|
169
|
+
"@google-cloud/common": "^6.0.0",
|
|
170
|
+
"@google-cloud/storage": "^7.19.0",
|
|
171
|
+
"@googleapis/sheets": "^13.0.1",
|
|
172
|
+
"@planetscale/database": "^1.19.0",
|
|
173
|
+
"@prisma/adapter-mariadb": "^7.4.0",
|
|
174
|
+
"@prisma/adapter-pg": "^7.4.0",
|
|
175
|
+
"@prisma/adapter-planetscale": "^7.4.0",
|
|
176
|
+
"@prisma/client": "^7.4.0",
|
|
177
|
+
"@types/babel__core": "^7.20.5",
|
|
178
|
+
"@types/crypto-js": "^4.2.2",
|
|
179
|
+
"@types/fs-extra": "11.0.4",
|
|
180
|
+
"@types/jest": "30.0.0",
|
|
181
|
+
"@types/lodash": "^4.17.23",
|
|
182
|
+
"@types/luxon": "3.7.1",
|
|
183
|
+
"@types/node": "^24.10.13",
|
|
184
|
+
"@types/react": "^19.2.14",
|
|
185
|
+
"babel-jest": "30.2.0",
|
|
186
|
+
"crypto-js": "^4.2.0",
|
|
187
|
+
"dotenv": "^17.3.1",
|
|
188
|
+
"fs-extra": "11.3.3",
|
|
189
|
+
"google-ads-api": "^23.0.0",
|
|
190
|
+
"googleapis-common": "^8.0.0",
|
|
191
|
+
"jest": "30.2.0",
|
|
192
|
+
"next": "^16.1.6",
|
|
193
|
+
"node-fetch": "3.3.2",
|
|
194
|
+
"react": "^19.2.4",
|
|
195
|
+
"react-intersection-observer": "^10.0.2",
|
|
196
|
+
"stream-chain": "^3.4.0",
|
|
197
|
+
"stream-json": "^1.9.1",
|
|
198
|
+
"swr": "^2.4.0",
|
|
199
|
+
"ts-node": "10.9.2",
|
|
200
|
+
"tslib": "2.8.1",
|
|
201
|
+
"typescript": "^5.9.3"
|
|
202
|
+
}
|
|
187
203
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PrismaConfig } from "./server";
|
|
1
|
+
import type { PrismaConfig } from "./server";
|
|
2
2
|
import { BaseNamespace } from "../_class";
|
|
3
|
-
import type {
|
|
3
|
+
import type { PrismaClientLike } from "./server";
|
|
4
4
|
export declare class PrismaNamespace extends BaseNamespace {
|
|
5
|
-
client:
|
|
5
|
+
client: PrismaClientLike;
|
|
6
6
|
config: PrismaConfig;
|
|
7
7
|
ensureInit: () => Promise<void>;
|
|
8
8
|
}
|