@8ms/helpers 2.3.49 → 2.4.0
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.mjs +1 -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 +33 -44
- 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
package/dist/_class/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as BaseClass, t as BaseNamespace } from "../index-
|
|
1
|
+
import { n as BaseClass, t as BaseNamespace } from "../index-1SE8er2n.mjs";
|
|
2
2
|
export { BaseClass, BaseNamespace };
|
package/dist/_class/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { set } from "../lodash/index.mjs";
|
|
2
2
|
import { defaultTo } from "../util/index.mjs";
|
|
3
3
|
import { isServer } from "../environment/index.mjs";
|
|
4
|
-
|
|
5
4
|
//#region src/_class/BaseClass.ts
|
|
6
5
|
var BaseClass = class {
|
|
7
6
|
/**
|
|
@@ -36,7 +35,6 @@ var BaseClass = class {
|
|
|
36
35
|
return defaultTo(this, fields, defaultValue);
|
|
37
36
|
};
|
|
38
37
|
};
|
|
39
|
-
|
|
40
38
|
//#endregion
|
|
41
39
|
//#region src/_class/BaseNamespace.ts
|
|
42
40
|
var BaseNamespace = class {
|
|
@@ -56,6 +54,5 @@ var BaseNamespace = class {
|
|
|
56
54
|
return this.client();
|
|
57
55
|
};
|
|
58
56
|
};
|
|
59
|
-
|
|
60
57
|
//#endregion
|
|
61
|
-
export { BaseClass, BaseNamespace };
|
|
58
|
+
export { BaseClass, BaseNamespace };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as jobSchema, i as datastreamSchema, n as JobSchemaType, o as stackSchema, r as StackSchemaType, t as DatastreamSchemaType } from "../index-
|
|
1
|
+
import { a as jobSchema, i as datastreamSchema, n as JobSchemaType, o as stackSchema, r as StackSchemaType, t as DatastreamSchemaType } from "../index-CXrNMYVx.mjs";
|
|
2
2
|
export { DatastreamSchemaType, JobSchemaType, StackSchemaType, datastreamSchema, jobSchema, stackSchema };
|
package/dist/adverity/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
|
-
|
|
3
2
|
//#region src/adverity/adverity.ts
|
|
4
3
|
const stackSchema = z.object({
|
|
5
4
|
id: z.string(),
|
|
@@ -59,6 +58,5 @@ const jobSchema = z.object({
|
|
|
59
58
|
z.string("Transfer")
|
|
60
59
|
])
|
|
61
60
|
});
|
|
62
|
-
|
|
63
61
|
//#endregion
|
|
64
|
-
export { datastreamSchema, jobSchema, stackSchema };
|
|
62
|
+
export { datastreamSchema, jobSchema, stackSchema };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as JobSchemaType } from "../../index-
|
|
2
|
-
import { X as InputDate } from "../../index-
|
|
1
|
+
import { n as JobSchemaType } from "../../index-CXrNMYVx.mjs";
|
|
2
|
+
import { X as InputDate } from "../../index-BAU-daxD.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/adverity/server/getJobs.d.ts
|
|
5
5
|
type AdverityJobsResponse = {
|
|
@@ -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 { getLuxonDate, getToday, getYesterday, getYmdString } from "../../date/index.mjs";
|
|
4
|
-
|
|
5
3
|
//#region src/adverity/server/getJobs.ts
|
|
6
4
|
/**
|
|
7
5
|
* Fetch all the jobs that ran yesterday by default.
|
|
@@ -20,6 +18,5 @@ const getJobs = async (apiKey, start, end, url) => {
|
|
|
20
18
|
}
|
|
21
19
|
return response;
|
|
22
20
|
};
|
|
23
|
-
|
|
24
21
|
//#endregion
|
|
25
|
-
export { getJobs };
|
|
22
|
+
export { getJobs };
|
package/dist/api/index.d.mts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
|
|
1
|
+
import { a as unexpectedError, i as defaultResponse, n as ApiState, o as ApiResponseClass, r as apiState, t as ApiResponse } from "../api-DoLMPDFM.mjs";
|
|
2
|
+
import { a as isIdle, c as isValidationError, i as isError, l as deleteRequest, n as get, o as isPending, r as isCancelled, s as isSuccess, t as post } from "../index-BlUxbvhl.mjs";
|
|
3
|
+
export { ApiResponse, ApiResponseClass, ApiState, apiState, defaultResponse, deleteRequest, get, isCancelled, isError, isIdle, isPending, isSuccess, isValidationError, post, unexpectedError };
|
package/dist/api/index.mjs
CHANGED
|
@@ -1,3 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { i as ApiResponseClass, n as defaultResponse, r as unexpectedError, t as apiState } from "../api-BJgcoGmU.mjs";
|
|
2
|
+
import { t as get } from "../get-B9XztVOu.mjs";
|
|
3
|
+
import { t as post } from "../post-DiwZvONk.mjs";
|
|
4
|
+
import ky from "ky";
|
|
5
|
+
//#region src/api/deleteRequest.ts
|
|
6
|
+
/**
|
|
7
|
+
* Make a DELETE request.
|
|
8
|
+
* Can't use the function name delete as it's reserved
|
|
9
|
+
*/
|
|
10
|
+
const deleteRequest = async (url, config = {}) => {
|
|
11
|
+
return await ky.delete(url, {
|
|
12
|
+
throwHttpErrors: false,
|
|
13
|
+
...config
|
|
14
|
+
}).then(async (response) => {
|
|
15
|
+
const data = await response.json();
|
|
16
|
+
if (void 0 !== data.body && void 0 !== data.error && void 0 !== data.state) return new ApiResponseClass(data);
|
|
17
|
+
else if (response.status >= 200 && response.status <= 299) return new ApiResponseClass().setToSuccess(data);
|
|
18
|
+
return new ApiResponseClass().setToError(data, response.statusText);
|
|
19
|
+
}).catch((error) => {
|
|
20
|
+
return new ApiResponseClass().setToError(null, error.message);
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/api/functions.ts
|
|
25
|
+
const isCancelled = (apiResponse) => {
|
|
26
|
+
return apiState.CANCELLED === apiResponse.state;
|
|
27
|
+
};
|
|
28
|
+
const isError = (apiResponse) => {
|
|
29
|
+
return apiState.ERROR === apiResponse.state;
|
|
30
|
+
};
|
|
31
|
+
const isIdle = (apiResponse) => {
|
|
32
|
+
return apiState.IDLE === apiResponse.state;
|
|
33
|
+
};
|
|
34
|
+
const isPending = (apiResponse) => {
|
|
35
|
+
return apiState.PENDING === apiResponse.state;
|
|
36
|
+
};
|
|
37
|
+
const isSuccess = (apiResponse) => {
|
|
38
|
+
return apiState.SUCCESS === apiResponse.state;
|
|
39
|
+
};
|
|
40
|
+
const isValidationError = (apiResponse) => {
|
|
41
|
+
return apiState.VALIDATION_ERROR === apiResponse.state;
|
|
42
|
+
};
|
|
43
|
+
//#endregion
|
|
44
|
+
export { ApiResponseClass, apiState, defaultResponse, deleteRequest, get, isCancelled, isError, isIdle, isPending, isSuccess, isValidationError, post, unexpectedError };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { defaultTo } from "./util/index.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/api/ApiResponseClass.ts
|
|
4
3
|
/**
|
|
5
4
|
* Class version of the API to enable quicker instances.
|
|
@@ -108,7 +107,6 @@ var ApiResponseClass = class ApiResponseClass {
|
|
|
108
107
|
}
|
|
109
108
|
};
|
|
110
109
|
};
|
|
111
|
-
|
|
112
110
|
//#endregion
|
|
113
111
|
//#region src/api/api.ts
|
|
114
112
|
const apiState = {
|
|
@@ -125,27 +123,5 @@ const defaultResponse = {
|
|
|
125
123
|
state: apiState.IDLE
|
|
126
124
|
};
|
|
127
125
|
const unexpectedError = "An unexpected error occurred, please try again.";
|
|
128
|
-
|
|
129
126
|
//#endregion
|
|
130
|
-
|
|
131
|
-
const isCancelled = (apiResponse) => {
|
|
132
|
-
return apiState.CANCELLED === apiResponse.state;
|
|
133
|
-
};
|
|
134
|
-
const isError = (apiResponse) => {
|
|
135
|
-
return apiState.ERROR === apiResponse.state;
|
|
136
|
-
};
|
|
137
|
-
const isIdle = (apiResponse) => {
|
|
138
|
-
return apiState.IDLE === apiResponse.state;
|
|
139
|
-
};
|
|
140
|
-
const isPending = (apiResponse) => {
|
|
141
|
-
return apiState.PENDING === apiResponse.state;
|
|
142
|
-
};
|
|
143
|
-
const isSuccess = (apiResponse) => {
|
|
144
|
-
return apiState.SUCCESS === apiResponse.state;
|
|
145
|
-
};
|
|
146
|
-
const isValidationError = (apiResponse) => {
|
|
147
|
-
return apiState.VALIDATION_ERROR === apiResponse.state;
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
//#endregion
|
|
151
|
-
export { isSuccess as a, defaultResponse as c, isPending as i, unexpectedError as l, isError as n, isValidationError as o, isIdle as r, apiState as s, isCancelled as t, ApiResponseClass as u };
|
|
127
|
+
export { ApiResponseClass as i, defaultResponse as n, unexpectedError as r, apiState as t };
|
|
@@ -58,12 +58,4 @@ type ApiResponse<T = any, E = any> = {
|
|
|
58
58
|
declare const defaultResponse: ApiResponse;
|
|
59
59
|
declare const unexpectedError: string;
|
|
60
60
|
//#endregion
|
|
61
|
-
|
|
62
|
-
declare const isCancelled: (apiResponse: ApiResponse) => boolean;
|
|
63
|
-
declare const isError: (apiResponse: ApiResponse) => boolean;
|
|
64
|
-
declare const isIdle: (apiResponse: ApiResponse) => boolean;
|
|
65
|
-
declare const isPending: (apiResponse: ApiResponse) => boolean;
|
|
66
|
-
declare const isSuccess: (apiResponse: ApiResponse) => boolean;
|
|
67
|
-
declare const isValidationError: (apiResponse: ApiResponse) => boolean;
|
|
68
|
-
//#endregion
|
|
69
|
-
export { isSuccess as a, ApiState as c, unexpectedError as d, ApiResponseClass as f, isPending as i, apiState as l, isError as n, isValidationError as o, isIdle as r, ApiResponse as s, isCancelled as t, defaultResponse as u };
|
|
61
|
+
export { unexpectedError as a, defaultResponse as i, ApiState as n, ApiResponseClass as o, apiState as r, ApiResponse as t };
|
package/dist/array/index.mjs
CHANGED
|
@@ -7,6 +7,5 @@ const contains = (haystack, needle) => -1 !== haystack.indexOf(needle);
|
|
|
7
7
|
* Convert an array into an array or return if already an array.
|
|
8
8
|
*/
|
|
9
9
|
const getArray = (input) => Array.isArray(input) ? input : [input];
|
|
10
|
-
|
|
11
10
|
//#endregion
|
|
12
|
-
export { contains, getArray };
|
|
11
|
+
export { contains, getArray };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
|
-
|
|
3
2
|
//#region src/atInternet/atInternet.ts
|
|
4
3
|
/**
|
|
5
4
|
* The request in the structure required by AT Internet.
|
|
@@ -13,6 +12,5 @@ const requestSchema = z.object({
|
|
|
13
12
|
"page-num": z.number(),
|
|
14
13
|
period: z.object({})
|
|
15
14
|
});
|
|
16
|
-
|
|
17
15
|
//#endregion
|
|
18
|
-
export { requestSchema };
|
|
16
|
+
export { requestSchema };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as BaseNamespace } from "../../../index-
|
|
2
|
-
import { X as InputDate } from "../../../index-
|
|
3
|
-
import { t as AwsConfig } from "../../../index-
|
|
4
|
-
import * as _aws_sdk_client_cloudwatch_logs0 from "@aws-sdk/client-cloudwatch-logs";
|
|
1
|
+
import { t as BaseNamespace } from "../../../index-1SE8er2n.mjs";
|
|
2
|
+
import { X as InputDate } from "../../../index-BAU-daxD.mjs";
|
|
3
|
+
import { t as AwsConfig } from "../../../index-D-8_Li4c.mjs";
|
|
4
|
+
import * as _$_aws_sdk_client_cloudwatch_logs0 from "@aws-sdk/client-cloudwatch-logs";
|
|
5
5
|
import { CloudWatchLogsClient } from "@aws-sdk/client-cloudwatch-logs";
|
|
6
6
|
|
|
7
7
|
//#region src/aws/cloudWatchLog/server/logEvent.d.ts
|
|
@@ -25,7 +25,7 @@ declare class AwsCloudWatchLogNamespace extends BaseNamespace {
|
|
|
25
25
|
* Create a CloudWatch Log Group.
|
|
26
26
|
* This should typically be the name of the application + environment
|
|
27
27
|
*/
|
|
28
|
-
createLogGroup: (logGroupName: string) => Promise<_aws_sdk_client_cloudwatch_logs0.CreateLogGroupCommandOutput>;
|
|
28
|
+
createLogGroup: (logGroupName: string) => Promise<_$_aws_sdk_client_cloudwatch_logs0.CreateLogGroupCommandOutput>;
|
|
29
29
|
/**
|
|
30
30
|
* Checks whether a CloudWatch Log Group exists.
|
|
31
31
|
*/
|
|
@@ -33,13 +33,13 @@ declare class AwsCloudWatchLogNamespace extends BaseNamespace {
|
|
|
33
33
|
/**
|
|
34
34
|
* Creates a stream within a CloudWatch Log Group.
|
|
35
35
|
*/
|
|
36
|
-
createStream: (logGroupName: string, logStreamName: string) => Promise<_aws_sdk_client_cloudwatch_logs0.CreateLogStreamCommandOutput>;
|
|
36
|
+
createStream: (logGroupName: string, logStreamName: string) => Promise<_$_aws_sdk_client_cloudwatch_logs0.CreateLogStreamCommandOutput>;
|
|
37
37
|
/**
|
|
38
38
|
* Checks whether a CloudWatch Log Stream exists within a given Log Group.
|
|
39
39
|
*/
|
|
40
40
|
logStreamExists: (logGroupName: string, logStreamName: string) => Promise<boolean>;
|
|
41
|
-
logEvent: (logGroupName: string, logStreamName: string, logEvent: LogEvent) => Promise<_aws_sdk_client_cloudwatch_logs0.PutLogEventsCommandOutput>;
|
|
42
|
-
logEvents: (logGroupName: string, logStreamName: string, logEvents: LogEvent[]) => Promise<_aws_sdk_client_cloudwatch_logs0.PutLogEventsCommandOutput>;
|
|
41
|
+
logEvent: (logGroupName: string, logStreamName: string, logEvent: LogEvent) => Promise<_$_aws_sdk_client_cloudwatch_logs0.PutLogEventsCommandOutput>;
|
|
42
|
+
logEvents: (logGroupName: string, logStreamName: string, logEvents: LogEvent[]) => Promise<_$_aws_sdk_client_cloudwatch_logs0.PutLogEventsCommandOutput>;
|
|
43
43
|
}
|
|
44
44
|
//#endregion
|
|
45
45
|
//#region src/aws/cloudWatchLog/server/awsCloudWatchLog.d.ts
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../../_class/index.mjs";
|
|
2
2
|
import { getLuxonDate } from "../../../date/index.mjs";
|
|
3
|
-
import { t as getConfig } from "../../../server-
|
|
4
|
-
|
|
3
|
+
import { t as getConfig } from "../../../server-CCX9gh5k.mjs";
|
|
5
4
|
//#region src/aws/cloudWatchLog/server/AwsCloudWatchLogNamespace.ts
|
|
6
5
|
var AwsCloudWatchLogNamespace = class extends BaseNamespace {
|
|
7
6
|
ensureInit = async () => {
|
|
@@ -75,7 +74,6 @@ var AwsCloudWatchLogNamespace = class extends BaseNamespace {
|
|
|
75
74
|
}));
|
|
76
75
|
};
|
|
77
76
|
};
|
|
78
|
-
|
|
79
77
|
//#endregion
|
|
80
78
|
//#region src/aws/cloudWatchLog/server/awsCloudWatchLog.ts
|
|
81
79
|
const awsCloudWatchLogNamespaces = /* @__PURE__ */ new Map();
|
|
@@ -85,7 +83,6 @@ const awsCloudWatchLogClient = async (key = "default", config, vaultId, itemId)
|
|
|
85
83
|
awsCloudWatchLogNamespaces.set(key, namespace);
|
|
86
84
|
return namespace;
|
|
87
85
|
};
|
|
88
|
-
|
|
89
86
|
//#endregion
|
|
90
87
|
//#region src/aws/cloudWatchLog/server/logEvent.ts
|
|
91
88
|
const logLevel = {
|
|
@@ -93,6 +90,5 @@ const logLevel = {
|
|
|
93
90
|
WARN: "warn",
|
|
94
91
|
ERROR: "error"
|
|
95
92
|
};
|
|
96
|
-
|
|
97
93
|
//#endregion
|
|
98
|
-
export { AwsCloudWatchLogNamespace, awsCloudWatchLogClient, logLevel };
|
|
94
|
+
export { AwsCloudWatchLogNamespace, awsCloudWatchLogClient, logLevel };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as BaseNamespace } from "../../../index-
|
|
2
|
-
import { X as InputDate } from "../../../index-
|
|
3
|
-
import { t as AwsConfig } from "../../../index-
|
|
4
|
-
import * as _aws_sdk_client_cloudwatch0 from "@aws-sdk/client-cloudwatch";
|
|
1
|
+
import { t as BaseNamespace } from "../../../index-1SE8er2n.mjs";
|
|
2
|
+
import { X as InputDate } from "../../../index-BAU-daxD.mjs";
|
|
3
|
+
import { t as AwsConfig } from "../../../index-D-8_Li4c.mjs";
|
|
4
|
+
import * as _$_aws_sdk_client_cloudwatch0 from "@aws-sdk/client-cloudwatch";
|
|
5
5
|
import { CloudWatchClient, StandardUnit } from "@aws-sdk/client-cloudwatch";
|
|
6
6
|
|
|
7
7
|
//#region src/aws/cloudWatchMetric/server/logMetric.d.ts
|
|
@@ -26,7 +26,7 @@ declare class AwsCloudWatchMetricNamespace extends BaseNamespace {
|
|
|
26
26
|
* The namespace is created automatically.
|
|
27
27
|
* Dimensions should contain additional info (but top level).
|
|
28
28
|
*/
|
|
29
|
-
logMetric: (namespace: string, metricData: LogMetric | LogMetric[]) => Promise<_aws_sdk_client_cloudwatch0.PutMetricDataCommandOutput>;
|
|
29
|
+
logMetric: (namespace: string, metricData: LogMetric | LogMetric[]) => Promise<_$_aws_sdk_client_cloudwatch0.PutMetricDataCommandOutput>;
|
|
30
30
|
}
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region src/aws/cloudWatchMetric/server/awsCloudWatchMetric.d.ts
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { getArray } from "../../../array/index.mjs";
|
|
2
2
|
import { BaseNamespace } from "../../../_class/index.mjs";
|
|
3
3
|
import { getLuxonDate } from "../../../date/index.mjs";
|
|
4
|
-
import { t as getConfig } from "../../../server-
|
|
4
|
+
import { t as getConfig } from "../../../server-CCX9gh5k.mjs";
|
|
5
5
|
import { StandardUnit } from "@aws-sdk/client-cloudwatch";
|
|
6
|
-
|
|
7
6
|
//#region src/aws/cloudWatchMetric/server/AwsCloudWatchMetricNamespace.ts
|
|
8
7
|
var AwsCloudWatchMetricNamespace = class extends BaseNamespace {
|
|
9
8
|
ensureInit = async () => {
|
|
@@ -38,7 +37,6 @@ var AwsCloudWatchMetricNamespace = class extends BaseNamespace {
|
|
|
38
37
|
}));
|
|
39
38
|
};
|
|
40
39
|
};
|
|
41
|
-
|
|
42
40
|
//#endregion
|
|
43
41
|
//#region src/aws/cloudWatchMetric/server/awsCloudWatchMetric.ts
|
|
44
42
|
const awsCloudWatchMetricNamespaces = /* @__PURE__ */ new Map();
|
|
@@ -48,6 +46,5 @@ const awsCloudWatchMetricClient = async (key = "default", config, vaultId, itemI
|
|
|
48
46
|
awsCloudWatchMetricNamespaces.set(key, namespace);
|
|
49
47
|
return namespace;
|
|
50
48
|
};
|
|
51
|
-
|
|
52
49
|
//#endregion
|
|
53
|
-
export { AwsCloudWatchMetricNamespace, awsCloudWatchMetricClient };
|
|
50
|
+
export { AwsCloudWatchMetricNamespace, awsCloudWatchMetricClient };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as BaseNamespace } from "../../../index-
|
|
2
|
-
import { t as AwsConfig } from "../../../index-
|
|
3
|
-
import * as _aws_sdk_client_ec20 from "@aws-sdk/client-ec2";
|
|
1
|
+
import { t as BaseNamespace } from "../../../index-1SE8er2n.mjs";
|
|
2
|
+
import { t as AwsConfig } from "../../../index-D-8_Li4c.mjs";
|
|
3
|
+
import * as _$_aws_sdk_client_ec20 from "@aws-sdk/client-ec2";
|
|
4
4
|
import { EC2Client } from "@aws-sdk/client-ec2";
|
|
5
5
|
|
|
6
6
|
//#region src/aws/ec2/server/AwsEc2Namespace.d.ts
|
|
@@ -8,8 +8,8 @@ declare class AwsEc2Namespace extends BaseNamespace {
|
|
|
8
8
|
client: EC2Client;
|
|
9
9
|
config: AwsConfig;
|
|
10
10
|
ensureInit: () => Promise<void>;
|
|
11
|
-
startInstances: (instanceIds: string[], additionalInfo?: string, dryRun?: boolean) => Promise<_aws_sdk_client_ec20.StartInstancesCommandOutput>;
|
|
12
|
-
stopInstances: (instanceIds: string[], hibernate?: boolean, force?: boolean, dryRun?: boolean) => Promise<_aws_sdk_client_ec20.StopInstancesCommandOutput>;
|
|
11
|
+
startInstances: (instanceIds: string[], additionalInfo?: string, dryRun?: boolean) => Promise<_$_aws_sdk_client_ec20.StartInstancesCommandOutput>;
|
|
12
|
+
stopInstances: (instanceIds: string[], hibernate?: boolean, force?: boolean, dryRun?: boolean) => Promise<_$_aws_sdk_client_ec20.StopInstancesCommandOutput>;
|
|
13
13
|
}
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/aws/ec2/server/awsEc2.d.ts
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../../_class/index.mjs";
|
|
2
|
-
import { t as getConfig } from "../../../server-
|
|
3
|
-
|
|
2
|
+
import { t as getConfig } from "../../../server-CCX9gh5k.mjs";
|
|
4
3
|
//#region src/aws/ec2/server/AwsEc2Namespace.ts
|
|
5
4
|
var AwsEc2Namespace = class extends BaseNamespace {
|
|
6
5
|
ensureInit = async () => {
|
|
@@ -33,7 +32,6 @@ var AwsEc2Namespace = class extends BaseNamespace {
|
|
|
33
32
|
return await this.client.send(command);
|
|
34
33
|
};
|
|
35
34
|
};
|
|
36
|
-
|
|
37
35
|
//#endregion
|
|
38
36
|
//#region src/aws/ec2/server/awsEc2.ts
|
|
39
37
|
const awsEc2Namespaces = /* @__PURE__ */ new Map();
|
|
@@ -43,6 +41,5 @@ const awsEc2Client = async (key = "default", config, vaultId, itemId) => {
|
|
|
43
41
|
awsEc2Namespaces.set(key, namespace);
|
|
44
42
|
return namespace;
|
|
45
43
|
};
|
|
46
|
-
|
|
47
44
|
//#endregion
|
|
48
|
-
export { AwsEc2Namespace, awsEc2Client };
|
|
45
|
+
export { AwsEc2Namespace, awsEc2Client };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as BaseNamespace } from "../../../index-
|
|
2
|
-
import { t as AwsConfig } from "../../../index-
|
|
1
|
+
import { t as BaseNamespace } from "../../../index-1SE8er2n.mjs";
|
|
2
|
+
import { t as AwsConfig } from "../../../index-D-8_Li4c.mjs";
|
|
3
3
|
import { DesiredStatus, ECSClient, LaunchType, NetworkConfiguration, SortOrder, TaskDefinitionStatus, TaskOverride } from "@aws-sdk/client-ecs";
|
|
4
4
|
|
|
5
5
|
//#region src/aws/ecs/server/AwsEcsNamespace.d.ts
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../../_class/index.mjs";
|
|
2
|
-
import { n as isResponse200, t as getConfig } from "../../../server-
|
|
3
|
-
|
|
2
|
+
import { n as isResponse200, t as getConfig } from "../../../server-CCX9gh5k.mjs";
|
|
4
3
|
//#region src/aws/ecs/server/AwsEcsNamespace.ts
|
|
5
4
|
var AwsEcsNamespace = class extends BaseNamespace {
|
|
6
5
|
ensureInit = async () => {
|
|
@@ -98,7 +97,6 @@ var AwsEcsNamespace = class extends BaseNamespace {
|
|
|
98
97
|
return response;
|
|
99
98
|
};
|
|
100
99
|
};
|
|
101
|
-
|
|
102
100
|
//#endregion
|
|
103
101
|
//#region src/aws/ecs/server/awsEcs.ts
|
|
104
102
|
const awsEcsNamespaces = /* @__PURE__ */ new Map();
|
|
@@ -108,6 +106,5 @@ const awsEcsClient = async (key = "default", config, vaultId, itemId) => {
|
|
|
108
106
|
awsEcsNamespaces.set(key, namespace);
|
|
109
107
|
return namespace;
|
|
110
108
|
};
|
|
111
|
-
|
|
112
109
|
//#endregion
|
|
113
|
-
export { AwsEcsNamespace, awsEcsClient };
|
|
110
|
+
export { AwsEcsNamespace, awsEcsClient };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as BaseNamespace } from "../../../index-
|
|
2
|
-
import { t as AwsConfig } from "../../../index-
|
|
1
|
+
import { t as BaseNamespace } from "../../../index-1SE8er2n.mjs";
|
|
2
|
+
import { t as AwsConfig } from "../../../index-D-8_Li4c.mjs";
|
|
3
3
|
import { GlueClient } from "@aws-sdk/client-glue";
|
|
4
4
|
|
|
5
5
|
//#region src/aws/glue/server/AwsGlueNamespace.d.ts
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../../_class/index.mjs";
|
|
2
|
-
import { n as isResponse200, t as getConfig } from "../../../server-
|
|
3
|
-
|
|
2
|
+
import { n as isResponse200, t as getConfig } from "../../../server-CCX9gh5k.mjs";
|
|
4
3
|
//#region src/aws/glue/server/AwsGlueNamespace.ts
|
|
5
4
|
var AwsGlueNamespace = class extends BaseNamespace {
|
|
6
5
|
ensureInit = async () => {
|
|
@@ -21,7 +20,6 @@ var AwsGlueNamespace = class extends BaseNamespace {
|
|
|
21
20
|
return isResponse200(await this.client.send(command));
|
|
22
21
|
};
|
|
23
22
|
};
|
|
24
|
-
|
|
25
23
|
//#endregion
|
|
26
24
|
//#region src/aws/glue/server/awsGlue.ts
|
|
27
25
|
const awsGlueNamespaces = /* @__PURE__ */ new Map();
|
|
@@ -31,6 +29,5 @@ const awsGlueClient = async (key = "default", config, vaultId, itemId) => {
|
|
|
31
29
|
awsGlueNamespaces.set(key, namespace);
|
|
32
30
|
return namespace;
|
|
33
31
|
};
|
|
34
|
-
|
|
35
32
|
//#endregion
|
|
36
|
-
export { AwsGlueNamespace, awsGlueClient };
|
|
33
|
+
export { AwsGlueNamespace, awsGlueClient };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as BaseNamespace } from "../../../index-
|
|
2
|
-
import { t as AwsConfig } from "../../../index-
|
|
1
|
+
import { t as BaseNamespace } from "../../../index-1SE8er2n.mjs";
|
|
2
|
+
import { t as AwsConfig } from "../../../index-D-8_Li4c.mjs";
|
|
3
3
|
import { LambdaClient } from "@aws-sdk/client-lambda";
|
|
4
4
|
|
|
5
5
|
//#region src/aws/lambda/server/AwsLambdaNamespace.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../../_class/index.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
2
|
+
import { i as ApiResponseClass } from "../../../api-BJgcoGmU.mjs";
|
|
3
|
+
import "../../../api/index.mjs";
|
|
4
|
+
import { n as isResponse200, t as getConfig } from "../../../server-CCX9gh5k.mjs";
|
|
5
5
|
//#region src/aws/lambda/server/AwsLambdaNamespace.ts
|
|
6
6
|
var AwsLambdaNamespace = class extends BaseNamespace {
|
|
7
7
|
ensureInit = async () => {
|
|
@@ -39,7 +39,6 @@ var AwsLambdaNamespace = class extends BaseNamespace {
|
|
|
39
39
|
return response;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
-
|
|
43
42
|
//#endregion
|
|
44
43
|
//#region src/aws/lambda/server/awsLambda.ts
|
|
45
44
|
const awsLambdaNamespaces = /* @__PURE__ */ new Map();
|
|
@@ -52,6 +51,5 @@ const awsLambdaClient = async (key = "default", config, vaultId, itemId) => {
|
|
|
52
51
|
const getHandlerPath = (input) => {
|
|
53
52
|
return `${input.split(process.cwd())[1].substring(1).replace(/\\/g, "/")}`;
|
|
54
53
|
};
|
|
55
|
-
|
|
56
54
|
//#endregion
|
|
57
|
-
export { AwsLambdaNamespace, awsLambdaClient, getHandlerPath };
|
|
55
|
+
export { AwsLambdaNamespace, awsLambdaClient, getHandlerPath };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as BaseNamespace } from "../../../index-
|
|
2
|
-
import { t as AwsConfig } from "../../../index-
|
|
1
|
+
import { t as BaseNamespace } from "../../../index-1SE8er2n.mjs";
|
|
2
|
+
import { t as AwsConfig } from "../../../index-D-8_Li4c.mjs";
|
|
3
3
|
import { z } from "zod/v4";
|
|
4
|
-
import * as _aws_sdk_client_s30 from "@aws-sdk/client-s3";
|
|
4
|
+
import * as _$_aws_sdk_client_s30 from "@aws-sdk/client-s3";
|
|
5
5
|
import { S3Client } from "@aws-sdk/client-s3";
|
|
6
6
|
|
|
7
7
|
//#region src/aws/s3/server/AwsS3Namespace.d.ts
|
|
@@ -13,8 +13,8 @@ type Options = {
|
|
|
13
13
|
};
|
|
14
14
|
type WritePresignedPostProps = {
|
|
15
15
|
bucket: string;
|
|
16
|
-
fields:
|
|
17
|
-
file:
|
|
16
|
+
fields: Record<string, string>;
|
|
17
|
+
file: File | Blob;
|
|
18
18
|
key: string;
|
|
19
19
|
url: string;
|
|
20
20
|
};
|
|
@@ -51,11 +51,11 @@ declare class AwsS3Namespace extends BaseNamespace {
|
|
|
51
51
|
readJson: (bucket: string, key: string) => Promise<ReadFileResponse>;
|
|
52
52
|
readJsonGzip: (bucket: string, key: string, gzipOptions?: object, awsS3Options?: Options) => Promise<ReadFileResponse>;
|
|
53
53
|
readGzip: (bucket: string, key: string, gzipOptions?: object, awsS3Options?: Options) => Promise<ReadFileResponse>;
|
|
54
|
-
writeBrotli: (bucket: string, key: string, data: any, brotliOptions?: object, awsS3Options?: Options) => Promise<_aws_sdk_client_s30.PutObjectCommandOutput>;
|
|
55
|
-
writeFile: (bucket: string, key: string, data: any, options?: Options) => Promise<_aws_sdk_client_s30.PutObjectCommandOutput>;
|
|
56
|
-
writeJson: (bucket: string, key: string, data: any, options?: Options) => Promise<_aws_sdk_client_s30.PutObjectCommandOutput>;
|
|
57
|
-
writeJsonGzip: (bucket: string, key: string, data: any, gzipOptions?: object, awsS3Options?: Options) => Promise<_aws_sdk_client_s30.PutObjectCommandOutput>;
|
|
58
|
-
writeGzip: (bucket: string, key: string, data: any, gzipOptions?: object, awsS3Options?: Options) => Promise<_aws_sdk_client_s30.PutObjectCommandOutput>;
|
|
54
|
+
writeBrotli: (bucket: string, key: string, data: any, brotliOptions?: object, awsS3Options?: Options) => Promise<_$_aws_sdk_client_s30.PutObjectCommandOutput>;
|
|
55
|
+
writeFile: (bucket: string, key: string, data: any, options?: Options) => Promise<_$_aws_sdk_client_s30.PutObjectCommandOutput>;
|
|
56
|
+
writeJson: (bucket: string, key: string, data: any, options?: Options) => Promise<_$_aws_sdk_client_s30.PutObjectCommandOutput>;
|
|
57
|
+
writeJsonGzip: (bucket: string, key: string, data: any, gzipOptions?: object, awsS3Options?: Options) => Promise<_$_aws_sdk_client_s30.PutObjectCommandOutput>;
|
|
58
|
+
writeGzip: (bucket: string, key: string, data: any, gzipOptions?: object, awsS3Options?: Options) => Promise<_$_aws_sdk_client_s30.PutObjectCommandOutput>;
|
|
59
59
|
/**
|
|
60
60
|
* Get a presigned post URL so we can upload directly to S3 via frontend.
|
|
61
61
|
*/
|