@webiny/aws-sdk 6.3.0 → 6.4.0-beta.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/client-apigatewaymanagementapi/index.js +1 -3
- package/client-cloudfront/index.js +0 -2
- package/client-cloudwatch/index.js +1 -3
- package/client-cognito-identity-provider/index.js +13 -15
- package/client-cognito-identity-provider/index.js.map +1 -1
- package/client-dynamodb/getDocumentClient.js +25 -43
- package/client-dynamodb/getDocumentClient.js.map +1 -1
- package/client-dynamodb/index.js +2 -4
- package/client-eventbridge/index.js +5 -7
- package/client-eventbridge/index.js.map +1 -1
- package/client-iam/index.js +0 -2
- package/client-iot/index.js +1 -3
- package/client-lambda/index.js +13 -15
- package/client-lambda/index.js.map +1 -1
- package/client-s3/index.js +33 -41
- package/client-s3/index.js.map +1 -1
- package/client-scheduler/index.js +15 -19
- package/client-scheduler/index.js.map +1 -1
- package/client-sfn/index.js +42 -46
- package/client-sfn/index.js.map +1 -1
- package/client-sqs/index.js +0 -2
- package/client-sts/index.js +0 -2
- package/credential-providers/index.js +0 -2
- package/lib-storage/index.js +0 -2
- package/package.json +25 -25
- package/types/index.js +0 -2
- package/client-apigatewaymanagementapi/index.js.map +0 -1
- package/client-cloudfront/index.js.map +0 -1
- package/client-cloudwatch/index.js.map +0 -1
- package/client-dynamodb/index.js.map +0 -1
- package/client-iam/index.js.map +0 -1
- package/client-iot/index.js.map +0 -1
- package/client-sqs/index.js.map +0 -1
- package/client-sts/index.js.map +0 -1
- package/credential-providers/index.js.map +0 -1
- package/lib-storage/index.js.map +0 -1
- package/types/index.js.map +0 -1
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export { ApiGatewayManagementApiClient,
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { ApiGatewayManagementApiClient, DeleteConnectionCommand, ForbiddenException, GetConnectionCommand, GoneException, LimitExceededException, PayloadTooLargeException, PostToConnectionCommand } from "@aws-sdk/client-apigatewaymanagementapi";
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
export { CloudWatchEventsClient, DeleteRuleCommand,
|
|
1
|
+
export { CloudWatchEventsClient, DeleteRuleCommand, PutRuleCommand, PutTargetsCommand, RemoveTargetsCommand } from "@aws-sdk/client-cloudwatch-events";
|
|
2
2
|
export { CloudWatchLogs } from "@aws-sdk/client-cloudwatch-logs";
|
|
3
|
-
|
|
4
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import { CognitoIdentityProvider } from "@aws-sdk/client-cognito-identity-provider";
|
|
1
|
+
import { AdminCreateUserCommand, AdminDeleteUserCommand, AdminGetUserCommand, AdminUpdateUserAttributesCommand, CognitoIdentityProvider, CognitoIdentityProviderClient } from "@aws-sdk/client-cognito-identity-provider";
|
|
2
2
|
import { createCacheKey } from "@webiny/utils";
|
|
3
|
-
export { AdminGetUserCommand, AdminCreateUserCommand, AdminDeleteUserCommand, AdminUpdateUserAttributesCommand, CognitoIdentityProvider, CognitoIdentityProviderClient } from "@aws-sdk/client-cognito-identity-provider";
|
|
4
3
|
const DEFAULT_CONFIG = {
|
|
5
|
-
|
|
4
|
+
region: process.env.AWS_REGION
|
|
6
5
|
};
|
|
7
6
|
const cache = {};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
cache[key] = client;
|
|
19
|
-
return client;
|
|
7
|
+
const createCognitoIdentityProviderClient = (input)=>{
|
|
8
|
+
const config = {
|
|
9
|
+
...DEFAULT_CONFIG,
|
|
10
|
+
...input
|
|
11
|
+
};
|
|
12
|
+
const key = createCacheKey(config);
|
|
13
|
+
if (cache[key]) return cache[key];
|
|
14
|
+
const client = new CognitoIdentityProvider(config);
|
|
15
|
+
cache[key] = client;
|
|
16
|
+
return client;
|
|
20
17
|
};
|
|
18
|
+
export { AdminCreateUserCommand, AdminDeleteUserCommand, AdminGetUserCommand, AdminUpdateUserAttributesCommand, CognitoIdentityProvider, CognitoIdentityProviderClient, createCognitoIdentityProviderClient };
|
|
21
19
|
|
|
22
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"client-cognito-identity-provider/index.js","sources":["../../src/client-cognito-identity-provider/index.ts"],"sourcesContent":["import type { CognitoIdentityProviderClientConfig } from \"@aws-sdk/client-cognito-identity-provider\";\nimport { CognitoIdentityProvider } from \"@aws-sdk/client-cognito-identity-provider\";\nimport type { GenericRecord } from \"@webiny/utils\";\nimport { createCacheKey } from \"@webiny/utils\";\n\nexport {\n AdminGetUserCommand,\n AdminCreateUserCommand,\n AdminDeleteUserCommand,\n AdminUpdateUserAttributesCommand,\n CognitoIdentityProvider,\n CognitoIdentityProviderClient\n} from \"@aws-sdk/client-cognito-identity-provider\";\n\nexport type {\n AttributeType,\n ListUsersResponse,\n AdminCreateUserRequest,\n AdminGetUserRequest,\n UserType,\n CognitoIdentityProviderClientConfig,\n AdminGetUserCommandInput,\n AdminGetUserCommandOutput,\n AdminCreateUserCommandInput,\n AdminCreateUserCommandOutput,\n AdminDeleteUserCommandInput,\n AdminDeleteUserCommandOutput,\n AdminUpdateUserAttributesCommandInput,\n AdminUpdateUserAttributesCommandOutput\n} from \"@aws-sdk/client-cognito-identity-provider\";\n\nconst DEFAULT_CONFIG = {\n region: process.env.AWS_REGION\n};\n\nconst cache: GenericRecord<string, CognitoIdentityProvider> = {};\n\nexport const createCognitoIdentityProviderClient = (\n input?: Partial<CognitoIdentityProviderClientConfig>\n) => {\n const config: CognitoIdentityProviderClientConfig = {\n ...DEFAULT_CONFIG,\n ...input\n };\n const key = createCacheKey(config);\n if (cache[key]) {\n return cache[key];\n }\n const client = new CognitoIdentityProvider(config);\n cache[key] = client;\n return client;\n};\n"],"names":["DEFAULT_CONFIG","process","cache","createCognitoIdentityProviderClient","input","config","key","createCacheKey","client","CognitoIdentityProvider"],"mappings":";;AA+BA,MAAMA,iBAAiB;IACnB,QAAQC,QAAQ,GAAG,CAAC,UAAU;AAClC;AAEA,MAAMC,QAAwD,CAAC;AAExD,MAAMC,sCAAsC,CAC/CC;IAEA,MAAMC,SAA8C;QAChD,GAAGL,cAAc;QACjB,GAAGI,KAAK;IACZ;IACA,MAAME,MAAMC,eAAeF;IAC3B,IAAIH,KAAK,CAACI,IAAI,EACV,OAAOJ,KAAK,CAACI,IAAI;IAErB,MAAME,SAAS,IAAIC,wBAAwBJ;IAC3CH,KAAK,CAACI,IAAI,GAAGE;IACb,OAAOA;AACX"}
|
|
@@ -1,56 +1,38 @@
|
|
|
1
1
|
import { DynamoDBClient } from "@aws-sdk/client-dynamodb";
|
|
2
2
|
import { DynamoDBDocument } from "@aws-sdk/lib-dynamodb";
|
|
3
3
|
import { createCacheKey } from "@webiny/utils";
|
|
4
|
-
let decorateDocumentClientCallable
|
|
4
|
+
let decorateDocumentClientCallable;
|
|
5
5
|
const DEFAULT_CONFIG = {
|
|
6
|
-
|
|
6
|
+
region: process.env.AWS_REGION
|
|
7
7
|
};
|
|
8
8
|
const documentClients = {};
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* We do not want users to be able to change these options, so we are not exposing them.
|
|
12
|
-
*/
|
|
13
9
|
const documentClientConfig = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
marshallOptions: {
|
|
11
|
+
convertEmptyValues: true,
|
|
12
|
+
removeUndefinedValues: true,
|
|
13
|
+
convertClassInstanceToMap: true
|
|
14
|
+
}
|
|
19
15
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const client = new DynamoDBClient(config);
|
|
31
|
-
const documentClient = DynamoDBDocument.from(client, documentClientConfig);
|
|
32
|
-
return documentClients[key] = applyDecoration(documentClient);
|
|
16
|
+
const getDocumentClient = (input)=>{
|
|
17
|
+
const config = {
|
|
18
|
+
...DEFAULT_CONFIG,
|
|
19
|
+
...input
|
|
20
|
+
};
|
|
21
|
+
const key = createCacheKey(config);
|
|
22
|
+
if (documentClients[key]) return applyDecoration(documentClients[key]);
|
|
23
|
+
const client = new DynamoDBClient(config);
|
|
24
|
+
const documentClient = DynamoDBDocument.from(client, documentClientConfig);
|
|
25
|
+
return documentClients[key] = applyDecoration(documentClient);
|
|
33
26
|
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
if (!decorateDocumentClientCallable) {
|
|
39
|
-
return client;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// @ts-expect-error
|
|
43
|
-
client.__decoratedByWebiny = true;
|
|
44
|
-
return decorateDocumentClientCallable(client);
|
|
27
|
+
const applyDecoration = (client)=>{
|
|
28
|
+
if (!decorateDocumentClientCallable) return client;
|
|
29
|
+
client.__decoratedByWebiny = true;
|
|
30
|
+
return decorateDocumentClientCallable(client);
|
|
45
31
|
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
* Decorate already existing clients.
|
|
50
|
-
*/
|
|
51
|
-
for (const key in documentClients) {
|
|
52
|
-
cb(documentClients[key]);
|
|
53
|
-
}
|
|
32
|
+
const decorateDocumentClient = (cb)=>{
|
|
33
|
+
decorateDocumentClientCallable = cb;
|
|
34
|
+
for(const key in documentClients)cb(documentClients[key]);
|
|
54
35
|
};
|
|
36
|
+
export { decorateDocumentClient, getDocumentClient as createDocumentClient, getDocumentClient };
|
|
55
37
|
|
|
56
38
|
//# sourceMappingURL=getDocumentClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"client-dynamodb/getDocumentClient.js","sources":["../../src/client-dynamodb/getDocumentClient.ts"],"sourcesContent":["import type { DynamoDBClientConfig } from \"@aws-sdk/client-dynamodb\";\nimport { DynamoDBClient } from \"@aws-sdk/client-dynamodb\";\nimport type { TranslateConfig } from \"@aws-sdk/lib-dynamodb\";\nimport { DynamoDBDocument } from \"@aws-sdk/lib-dynamodb\";\nimport { createCacheKey } from \"@webiny/utils\";\n\nexport interface IDecorateDocumentClientCallable {\n (client: DynamoDBDocument): DynamoDBDocument;\n}\n\nlet decorateDocumentClientCallable: IDecorateDocumentClientCallable | undefined = undefined;\n\nconst DEFAULT_CONFIG = {\n region: process.env.AWS_REGION\n};\n\nconst documentClients: Record<string, DynamoDBDocument> = {};\n\n/**\n * We do not want users to be able to change these options, so we are not exposing them.\n */\nconst documentClientConfig: TranslateConfig = {\n marshallOptions: {\n convertEmptyValues: true,\n removeUndefinedValues: true,\n convertClassInstanceToMap: true\n }\n};\n\nexport { getDocumentClient as createDocumentClient };\n\nexport const getDocumentClient = (input?: DynamoDBClientConfig): DynamoDBDocument => {\n const config: DynamoDBClientConfig = {\n ...DEFAULT_CONFIG,\n ...input\n };\n const key = createCacheKey(config);\n if (documentClients[key]) {\n return applyDecoration(documentClients[key]);\n }\n const client = new DynamoDBClient(config);\n const documentClient = DynamoDBDocument.from(client, documentClientConfig);\n return (documentClients[key] = applyDecoration(documentClient));\n};\n/**\n * Client will not be decorated more than once.\n */\nconst applyDecoration = (client: DynamoDBDocument): DynamoDBDocument => {\n if (!decorateDocumentClientCallable) {\n return client;\n }\n\n // @ts-expect-error\n client.__decoratedByWebiny = true;\n return decorateDocumentClientCallable(client);\n};\n\nexport const decorateDocumentClient = (cb: IDecorateDocumentClientCallable): void => {\n decorateDocumentClientCallable = cb;\n /**\n * Decorate already existing clients.\n */\n for (const key in documentClients) {\n cb(documentClients[key]);\n }\n};\n"],"names":["decorateDocumentClientCallable","DEFAULT_CONFIG","process","documentClients","documentClientConfig","getDocumentClient","input","config","key","createCacheKey","applyDecoration","client","DynamoDBClient","documentClient","DynamoDBDocument","decorateDocumentClient","cb"],"mappings":";;;AAUA,IAAIA;AAEJ,MAAMC,iBAAiB;IACnB,QAAQC,QAAQ,GAAG,CAAC,UAAU;AAClC;AAEA,MAAMC,kBAAoD,CAAC;AAK3D,MAAMC,uBAAwC;IAC1C,iBAAiB;QACb,oBAAoB;QACpB,uBAAuB;QACvB,2BAA2B;IAC/B;AACJ;AAIO,MAAMC,oBAAoB,CAACC;IAC9B,MAAMC,SAA+B;QACjC,GAAGN,cAAc;QACjB,GAAGK,KAAK;IACZ;IACA,MAAME,MAAMC,eAAeF;IAC3B,IAAIJ,eAAe,CAACK,IAAI,EACpB,OAAOE,gBAAgBP,eAAe,CAACK,IAAI;IAE/C,MAAMG,SAAS,IAAIC,eAAeL;IAClC,MAAMM,iBAAiBC,iBAAiB,IAAI,CAACH,QAAQP;IACrD,OAAQD,eAAe,CAACK,IAAI,GAAGE,gBAAgBG;AACnD;AAIA,MAAMH,kBAAkB,CAACC;IACrB,IAAI,CAACX,gCACD,OAAOW;IAIXA,OAAO,mBAAmB,GAAG;IAC7B,OAAOX,+BAA+BW;AAC1C;AAEO,MAAMI,yBAAyB,CAACC;IACnChB,iCAAiCgB;IAIjC,IAAK,MAAMR,OAAOL,gBACda,GAAGb,eAAe,CAACK,IAAI;AAE/B"}
|
package/client-dynamodb/index.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export { QueryCommand } from "@aws-sdk/client-dynamodb";
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
2
|
+
export { BatchGetCommand, BatchWriteCommand, DeleteCommand, DynamoDBDocument, GetCommand, PutCommand, ScanCommand, UpdateCommand } from "@aws-sdk/lib-dynamodb";
|
|
3
|
+
export { marshall, unmarshall } from "@aws-sdk/util-dynamodb";
|
|
4
4
|
export { getDocumentClient } from "./getDocumentClient.js";
|
|
5
|
-
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { EventBridgeClient } from "@aws-sdk/client-eventbridge";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
});
|
|
7
|
-
};
|
|
1
|
+
import { EventBridgeClient, PutEventsCommand } from "@aws-sdk/client-eventbridge";
|
|
2
|
+
const createEventBridgeClient = (config)=>new EventBridgeClient({
|
|
3
|
+
...config
|
|
4
|
+
});
|
|
5
|
+
export { EventBridgeClient, PutEventsCommand, createEventBridgeClient };
|
|
8
6
|
|
|
9
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"client-eventbridge/index.js","sources":["../../src/client-eventbridge/index.ts"],"sourcesContent":["import type { EventBridgeClientConfig } from \"@aws-sdk/client-eventbridge\";\nimport { EventBridgeClient } from \"@aws-sdk/client-eventbridge\";\n\nexport { EventBridgeClient, PutEventsCommand } from \"@aws-sdk/client-eventbridge\";\n\nexport type {\n EventBridgeClientConfig,\n PutEventsRequestEntry,\n PutEventsCommandInput,\n PutEventsCommandOutput\n} from \"@aws-sdk/client-eventbridge\";\n\nexport const createEventBridgeClient = (config?: Partial<EventBridgeClientConfig>) => {\n return new EventBridgeClient({\n ...config\n });\n};\n"],"names":["createEventBridgeClient","config","EventBridgeClient"],"mappings":";AAYO,MAAMA,0BAA0B,CAACC,SAC7B,IAAIC,kBAAkB;QACzB,GAAGD,MAAM;IACb"}
|
package/client-iam/index.js
CHANGED
package/client-iot/index.js
CHANGED
package/client-lambda/index.js
CHANGED
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
import { createCacheKey } from "@webiny/utils";
|
|
2
|
-
import { LambdaClient } from "@aws-sdk/client-lambda";
|
|
3
|
-
export { LambdaClient, InvokeCommand, GetFunctionConfigurationCommand, UpdateFunctionConfigurationCommand, UpdateFunctionCodeCommand, InvocationType } from "@aws-sdk/client-lambda";
|
|
2
|
+
import { GetFunctionConfigurationCommand, InvocationType, InvokeCommand, LambdaClient, UpdateFunctionCodeCommand, UpdateFunctionConfigurationCommand } from "@aws-sdk/client-lambda";
|
|
4
3
|
const DEFAULT_CONFIG = {
|
|
5
|
-
|
|
4
|
+
region: process.env.AWS_REGION
|
|
6
5
|
};
|
|
7
6
|
const lambdaClients = {};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
lambdaClients[key] = client;
|
|
19
|
-
return client;
|
|
7
|
+
const createLambdaClient = (input)=>{
|
|
8
|
+
const config = {
|
|
9
|
+
...DEFAULT_CONFIG,
|
|
10
|
+
...input
|
|
11
|
+
};
|
|
12
|
+
const key = createCacheKey(config);
|
|
13
|
+
if (lambdaClients[key]) return lambdaClients[key];
|
|
14
|
+
const client = new LambdaClient(config);
|
|
15
|
+
lambdaClients[key] = client;
|
|
16
|
+
return client;
|
|
20
17
|
};
|
|
18
|
+
export { GetFunctionConfigurationCommand, InvocationType, InvokeCommand, LambdaClient, UpdateFunctionCodeCommand, UpdateFunctionConfigurationCommand, createLambdaClient };
|
|
21
19
|
|
|
22
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"client-lambda/index.js","sources":["../../src/client-lambda/index.ts"],"sourcesContent":["import { createCacheKey } from \"@webiny/utils\";\nimport type { LambdaClientConfig } from \"@aws-sdk/client-lambda\";\nimport { LambdaClient } from \"@aws-sdk/client-lambda\";\n\nexport {\n LambdaClient,\n InvokeCommand,\n GetFunctionConfigurationCommand,\n UpdateFunctionConfigurationCommand,\n UpdateFunctionCodeCommand,\n InvocationType\n} from \"@aws-sdk/client-lambda\";\n\nexport type {\n InvokeCommandInput,\n LambdaClientConfig,\n InvokeCommandOutput,\n UpdateFunctionConfigurationCommandInput,\n UpdateFunctionConfigurationCommandOutput,\n UpdateFunctionCodeCommandInput,\n UpdateFunctionCodeCommandOutput\n} from \"@aws-sdk/client-lambda\";\n\nconst DEFAULT_CONFIG: LambdaClientConfig = {\n region: process.env.AWS_REGION\n};\n\nconst lambdaClients: Record<string, LambdaClient> = {};\n\nexport const createLambdaClient = (input?: Partial<LambdaClientConfig>): LambdaClient => {\n const config: LambdaClientConfig = {\n ...DEFAULT_CONFIG,\n ...input\n };\n const key = createCacheKey(config);\n\n if (lambdaClients[key]) {\n return lambdaClients[key];\n }\n\n const client = new LambdaClient(config);\n\n lambdaClients[key] = client;\n\n return client;\n};\n"],"names":["DEFAULT_CONFIG","process","lambdaClients","createLambdaClient","input","config","key","createCacheKey","client","LambdaClient"],"mappings":";;AAuBA,MAAMA,iBAAqC;IACvC,QAAQC,QAAQ,GAAG,CAAC,UAAU;AAClC;AAEA,MAAMC,gBAA8C,CAAC;AAE9C,MAAMC,qBAAqB,CAACC;IAC/B,MAAMC,SAA6B;QAC/B,GAAGL,cAAc;QACjB,GAAGI,KAAK;IACZ;IACA,MAAME,MAAMC,eAAeF;IAE3B,IAAIH,aAAa,CAACI,IAAI,EAClB,OAAOJ,aAAa,CAACI,IAAI;IAG7B,MAAME,SAAS,IAAIC,aAAaJ;IAEhCH,aAAa,CAACI,IAAI,GAAGE;IAErB,OAAOA;AACX"}
|
package/client-s3/index.js
CHANGED
|
@@ -1,49 +1,41 @@
|
|
|
1
|
-
import { S3, S3Client } from "@aws-sdk/client-s3";
|
|
1
|
+
import { AbortMultipartUploadCommand, CompleteMultipartUploadCommand, CopyObjectCommand, CreateMultipartUploadCommand, DeleteObjectCommand, GetObjectCommand, HeadObjectCommand, ListObjectsCommand, ListObjectsV2Command, ListPartsCommand, ObjectCannedACL, PutObjectCommand, S3, S3Client, UploadPartCommand, UploadPartCopyCommand } from "@aws-sdk/client-s3";
|
|
2
2
|
import { createCacheKey } from "@webiny/utils";
|
|
3
|
-
export { CopyObjectCommand, GetObjectCommand, HeadObjectCommand, ListObjectsCommand, UploadPartCopyCommand, ListObjectsV2Command, ListPartsCommand, ObjectCannedACL, DeleteObjectCommand, PutObjectCommand, UploadPartCommand, AbortMultipartUploadCommand, CompleteMultipartUploadCommand, CreateMultipartUploadCommand, S3, S3Client } from "@aws-sdk/client-s3";
|
|
4
|
-
export { createPresignedPost } from "@aws-sdk/s3-presigned-post";
|
|
5
|
-
export { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
|
6
3
|
const s3ClientsCache = new Map();
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
const createS3Client = (initial)=>{
|
|
5
|
+
const options = {
|
|
6
|
+
region: process.env.AWS_REGION,
|
|
7
|
+
...initial
|
|
8
|
+
};
|
|
9
|
+
const skipCache = false === options.cache;
|
|
10
|
+
delete options.cache;
|
|
11
|
+
if (skipCache) return new S3Client({
|
|
12
|
+
...options
|
|
13
|
+
});
|
|
14
|
+
const key = createCacheKey(options);
|
|
15
|
+
if (s3ClientsCache.has(key)) return s3ClientsCache.get(key);
|
|
16
|
+
const instance = new S3Client({
|
|
17
|
+
...options
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
if (s3ClientsCache.has(key)) {
|
|
21
|
-
return s3ClientsCache.get(key);
|
|
22
|
-
}
|
|
23
|
-
const instance = new S3Client({
|
|
24
|
-
...options
|
|
25
|
-
});
|
|
26
|
-
s3ClientsCache.set(key, instance);
|
|
27
|
-
return instance;
|
|
19
|
+
s3ClientsCache.set(key, instance);
|
|
20
|
+
return instance;
|
|
28
21
|
};
|
|
29
22
|
const s3Cache = new Map();
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return
|
|
43
|
-
}
|
|
44
|
-
const instance = new S3(options);
|
|
45
|
-
s3Cache.set(key, instance);
|
|
46
|
-
return instance;
|
|
23
|
+
const createS3 = (initial)=>{
|
|
24
|
+
const options = {
|
|
25
|
+
region: process.env.AWS_REGION,
|
|
26
|
+
...initial
|
|
27
|
+
};
|
|
28
|
+
const skipCache = false === options.cache;
|
|
29
|
+
delete options.cache;
|
|
30
|
+
if (skipCache) return new S3(options);
|
|
31
|
+
const key = createCacheKey(options);
|
|
32
|
+
if (s3Cache.has(key)) return s3Cache.get(key);
|
|
33
|
+
const instance = new S3(options);
|
|
34
|
+
s3Cache.set(key, instance);
|
|
35
|
+
return instance;
|
|
47
36
|
};
|
|
37
|
+
export { createPresignedPost } from "@aws-sdk/s3-presigned-post";
|
|
38
|
+
export { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
|
39
|
+
export { AbortMultipartUploadCommand, CompleteMultipartUploadCommand, CopyObjectCommand, CreateMultipartUploadCommand, DeleteObjectCommand, GetObjectCommand, HeadObjectCommand, ListObjectsCommand, ListObjectsV2Command, ListPartsCommand, ObjectCannedACL, PutObjectCommand, S3, S3Client, UploadPartCommand, UploadPartCopyCommand, createS3, createS3Client };
|
|
48
40
|
|
|
49
41
|
//# sourceMappingURL=index.js.map
|
package/client-s3/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"client-s3/index.js","sources":["../../src/client-s3/index.ts"],"sourcesContent":["import type { S3ClientConfig as BaseS3ClientConfig } from \"@aws-sdk/client-s3\";\nimport { S3, S3Client } from \"@aws-sdk/client-s3\";\nimport { createCacheKey } from \"@webiny/utils\";\n\nexport {\n CopyObjectCommand,\n GetObjectCommand,\n HeadObjectCommand,\n ListObjectsCommand,\n UploadPartCopyCommand,\n ListObjectsV2Command,\n ListPartsCommand,\n ObjectCannedACL,\n DeleteObjectCommand,\n PutObjectCommand,\n UploadPartCommand,\n AbortMultipartUploadCommand,\n CompleteMultipartUploadCommand,\n CreateMultipartUploadCommand,\n S3,\n S3Client\n} from \"@aws-sdk/client-s3\";\n\nexport type {\n PutObjectRequest,\n PutObjectCommandInput,\n Part,\n CopyObjectCommandInput,\n CopyObjectCommandOutput,\n DeleteObjectCommandInput,\n DeleteObjectsCommandInput,\n DeleteObjectsCommandOutput,\n AbortMultipartUploadCommandInput,\n CompleteMultipartUploadCommandInput,\n UploadPartCopyCommandInput,\n CreateMultipartUploadCommandInput,\n CompleteMultipartUploadCommandOutput,\n AbortMultipartUploadCommandOutput,\n CompleteMultipartUploadOutput,\n DeleteObjectOutput,\n GetObjectOutput,\n CompletedPart,\n GetObjectCommandOutput,\n HeadObjectOutput,\n HeadObjectCommandInput,\n HeadObjectCommandOutput,\n DeleteObjectCommandOutput,\n ListObjectsOutput,\n ListPartsCommandOutput,\n ListPartsOutput,\n PutObjectCommandOutput,\n UploadPartCommandOutput\n} from \"@aws-sdk/client-s3\";\n\nexport { createPresignedPost } from \"@aws-sdk/s3-presigned-post\";\nexport type { PresignedPost, PresignedPostOptions } from \"@aws-sdk/s3-presigned-post\";\n\nexport { getSignedUrl } from \"@aws-sdk/s3-request-presigner\";\n\nconst s3ClientsCache = new Map<string, S3Client>();\n\nexport interface S3ClientConfig extends BaseS3ClientConfig {\n cache?: boolean;\n}\n\nexport const createS3Client = (initial?: S3ClientConfig): S3Client => {\n const options: S3ClientConfig = {\n region: process.env.AWS_REGION,\n ...initial\n };\n const skipCache = options.cache === false;\n delete options.cache;\n if (skipCache) {\n return new S3Client({\n ...options\n });\n }\n\n const key = createCacheKey(options);\n if (s3ClientsCache.has(key)) {\n return s3ClientsCache.get(key) as S3Client;\n }\n\n const instance = new S3Client({\n ...options\n });\n s3ClientsCache.set(key, instance);\n\n return instance;\n};\n\nconst s3Cache = new Map<string, S3>();\n\nexport const createS3 = (initial?: S3ClientConfig): S3 => {\n const options: S3ClientConfig = {\n region: process.env.AWS_REGION,\n ...initial\n };\n const skipCache = options.cache === false;\n delete options.cache;\n if (skipCache) {\n return new S3(options);\n }\n const key = createCacheKey(options);\n if (s3Cache.has(key)) {\n return s3Cache.get(key) as S3;\n }\n\n const instance = new S3(options);\n\n s3Cache.set(key, instance);\n return instance;\n};\n"],"names":["s3ClientsCache","Map","createS3Client","initial","options","process","skipCache","S3Client","key","createCacheKey","instance","s3Cache","createS3","S3"],"mappings":";;AA2DA,MAAMA,iBAAiB,IAAIC;AAMpB,MAAMC,iBAAiB,CAACC;IAC3B,MAAMC,UAA0B;QAC5B,QAAQC,QAAQ,GAAG,CAAC,UAAU;QAC9B,GAAGF,OAAO;IACd;IACA,MAAMG,YAAYF,AAAkB,UAAlBA,QAAQ,KAAK;IAC/B,OAAOA,QAAQ,KAAK;IACpB,IAAIE,WACA,OAAO,IAAIC,SAAS;QAChB,GAAGH,OAAO;IACd;IAGJ,MAAMI,MAAMC,eAAeL;IAC3B,IAAIJ,eAAe,GAAG,CAACQ,MACnB,OAAOR,eAAe,GAAG,CAACQ;IAG9B,MAAME,WAAW,IAAIH,SAAS;QAC1B,GAAGH,OAAO;IACd;IACAJ,eAAe,GAAG,CAACQ,KAAKE;IAExB,OAAOA;AACX;AAEA,MAAMC,UAAU,IAAIV;AAEb,MAAMW,WAAW,CAACT;IACrB,MAAMC,UAA0B;QAC5B,QAAQC,QAAQ,GAAG,CAAC,UAAU;QAC9B,GAAGF,OAAO;IACd;IACA,MAAMG,YAAYF,AAAkB,UAAlBA,QAAQ,KAAK;IAC/B,OAAOA,QAAQ,KAAK;IACpB,IAAIE,WACA,OAAO,IAAIO,GAAGT;IAElB,MAAMI,MAAMC,eAAeL;IAC3B,IAAIO,QAAQ,GAAG,CAACH,MACZ,OAAOG,QAAQ,GAAG,CAACH;IAGvB,MAAME,WAAW,IAAIG,GAAGT;IAExBO,QAAQ,GAAG,CAACH,KAAKE;IACjB,OAAOA;AACX"}
|
|
@@ -1,24 +1,20 @@
|
|
|
1
1
|
import { createCacheKey } from "@webiny/utils";
|
|
2
|
-
import { SchedulerClient } from "@aws-sdk/client-scheduler";
|
|
3
|
-
export { SchedulerClient, GetScheduleCommand, CreateScheduleCommand, UpdateScheduleCommand, DeleteScheduleCommand } from "@aws-sdk/client-scheduler";
|
|
2
|
+
import { CreateScheduleCommand, DeleteScheduleCommand, GetScheduleCommand, SchedulerClient, UpdateScheduleCommand } from "@aws-sdk/client-scheduler";
|
|
4
3
|
const clients = {};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return
|
|
18
|
-
}
|
|
19
|
-
const client = new SchedulerClient(options);
|
|
20
|
-
clients[key] = client;
|
|
21
|
-
return client;
|
|
4
|
+
const createSchedulerClient = (input = {})=>{
|
|
5
|
+
const options = {
|
|
6
|
+
region: process.env.AWS_REGION,
|
|
7
|
+
...input
|
|
8
|
+
};
|
|
9
|
+
const skipCache = false === options.cache;
|
|
10
|
+
delete options.cache;
|
|
11
|
+
if (skipCache) return new SchedulerClient(options);
|
|
12
|
+
const key = createCacheKey(options);
|
|
13
|
+
if (clients[key]) return clients[key];
|
|
14
|
+
const client = new SchedulerClient(options);
|
|
15
|
+
clients[key] = client;
|
|
16
|
+
return client;
|
|
22
17
|
};
|
|
18
|
+
export { CreateScheduleCommand, DeleteScheduleCommand, GetScheduleCommand, SchedulerClient, UpdateScheduleCommand, createSchedulerClient };
|
|
23
19
|
|
|
24
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"client-scheduler/index.js","sources":["../../src/client-scheduler/index.ts"],"sourcesContent":["import { createCacheKey } from \"@webiny/utils\";\nimport type { SchedulerClientConfig as BaseSchedulerClientConfig } from \"@aws-sdk/client-scheduler\";\nimport { SchedulerClient } from \"@aws-sdk/client-scheduler\";\n\nexport {\n SchedulerClient,\n GetScheduleCommand,\n CreateScheduleCommand,\n UpdateScheduleCommand,\n DeleteScheduleCommand\n} from \"@aws-sdk/client-scheduler\";\n\nexport type {\n GetScheduleCommandInput,\n GetScheduleCommandOutput,\n CreateScheduleCommandInput,\n CreateScheduleCommandOutput,\n UpdateScheduleCommandInput,\n UpdateScheduleCommandOutput,\n DeleteScheduleCommandInput,\n DeleteScheduleCommandOutput\n} from \"@aws-sdk/client-scheduler\";\n\nconst clients: Record<string, SchedulerClient> = {};\n\nexport interface SchedulerClientConfig extends BaseSchedulerClientConfig {\n cache?: boolean;\n}\n\nexport const createSchedulerClient = (\n input: Partial<SchedulerClientConfig> = {}\n): SchedulerClient => {\n const options: SchedulerClientConfig = {\n region: process.env.AWS_REGION,\n ...input\n };\n\n const skipCache = options.cache === false;\n delete options.cache;\n if (skipCache) {\n return new SchedulerClient(options);\n }\n\n const key = createCacheKey(options);\n\n if (clients[key]) {\n return clients[key];\n }\n\n const client = new SchedulerClient(options);\n\n clients[key] = client;\n\n return client;\n};\n"],"names":["clients","createSchedulerClient","input","options","process","skipCache","SchedulerClient","key","createCacheKey","client"],"mappings":";;AAuBA,MAAMA,UAA2C,CAAC;AAM3C,MAAMC,wBAAwB,CACjCC,QAAwC,CAAC,CAAC;IAE1C,MAAMC,UAAiC;QACnC,QAAQC,QAAQ,GAAG,CAAC,UAAU;QAC9B,GAAGF,KAAK;IACZ;IAEA,MAAMG,YAAYF,AAAkB,UAAlBA,QAAQ,KAAK;IAC/B,OAAOA,QAAQ,KAAK;IACpB,IAAIE,WACA,OAAO,IAAIC,gBAAgBH;IAG/B,MAAMI,MAAMC,eAAeL;IAE3B,IAAIH,OAAO,CAACO,IAAI,EACZ,OAAOP,OAAO,CAACO,IAAI;IAGvB,MAAME,SAAS,IAAIH,gBAAgBH;IAEnCH,OAAO,CAACO,IAAI,GAAGE;IAEf,OAAOA;AACX"}
|
package/client-sfn/index.js
CHANGED
|
@@ -1,57 +1,53 @@
|
|
|
1
1
|
import { DescribeExecutionCommand, ListExecutionsCommand, SFNClient, SFNServiceException, StartExecutionCommand } from "@aws-sdk/client-sfn";
|
|
2
2
|
import { createCacheKey } from "@webiny/utils";
|
|
3
|
-
export { SFNClient, DescribeExecutionCommand, SFNServiceException, StartExecutionCommand, ListExecutionsCommand };
|
|
4
3
|
const stepFunctionClientsCache = new Map();
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
const createStepFunctionClient = (initial)=>{
|
|
5
|
+
const config = {
|
|
6
|
+
region: process.env.AWS_REGION,
|
|
7
|
+
...initial
|
|
8
|
+
};
|
|
9
|
+
const skipCache = false === config.cache;
|
|
10
|
+
delete config.cache;
|
|
11
|
+
if (skipCache) return new SFNClient({
|
|
12
|
+
...config
|
|
13
|
+
});
|
|
14
|
+
const key = createCacheKey(config);
|
|
15
|
+
if (stepFunctionClientsCache.has(key)) return stepFunctionClientsCache.get(key);
|
|
13
16
|
return new SFNClient({
|
|
14
|
-
|
|
17
|
+
...config
|
|
15
18
|
});
|
|
16
|
-
}
|
|
17
|
-
const key = createCacheKey(config);
|
|
18
|
-
if (stepFunctionClientsCache.has(key)) {
|
|
19
|
-
return stepFunctionClientsCache.get(key);
|
|
20
|
-
}
|
|
21
|
-
return new SFNClient({
|
|
22
|
-
...config
|
|
23
|
-
});
|
|
24
19
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
20
|
+
const triggerStepFunctionFactory = (input)=>{
|
|
21
|
+
const client = input instanceof SFNClient ? input : createStepFunctionClient(input);
|
|
22
|
+
return async (params)=>{
|
|
23
|
+
const cmd = new StartExecutionCommand({
|
|
24
|
+
...params,
|
|
25
|
+
stateMachineArn: params.stateMachineArn || process.env.BG_TASK_SFN_ARN,
|
|
26
|
+
name: params.name,
|
|
27
|
+
input: JSON.stringify(params.input)
|
|
28
|
+
});
|
|
29
|
+
return await client.send(cmd);
|
|
30
|
+
};
|
|
36
31
|
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
32
|
+
const listExecutionsFactory = (input)=>{
|
|
33
|
+
const client = input instanceof SFNClient ? input : createStepFunctionClient(input);
|
|
34
|
+
return async (params)=>{
|
|
35
|
+
const cmd = new ListExecutionsCommand({
|
|
36
|
+
...params,
|
|
37
|
+
stateMachineArn: params.stateMachineArn || process.env.BG_TASK_SFN_ARN
|
|
38
|
+
});
|
|
39
|
+
return await client.send(cmd);
|
|
40
|
+
};
|
|
46
41
|
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
42
|
+
const describeExecutionFactory = (input)=>{
|
|
43
|
+
const client = input instanceof SFNClient ? input : createStepFunctionClient(input);
|
|
44
|
+
return async (params)=>{
|
|
45
|
+
const cmd = new DescribeExecutionCommand({
|
|
46
|
+
...params
|
|
47
|
+
});
|
|
48
|
+
return await client.send(cmd);
|
|
49
|
+
};
|
|
55
50
|
};
|
|
51
|
+
export { DescribeExecutionCommand, ListExecutionsCommand, SFNClient, SFNServiceException, StartExecutionCommand, createStepFunctionClient, describeExecutionFactory, listExecutionsFactory, triggerStepFunctionFactory };
|
|
56
52
|
|
|
57
53
|
//# sourceMappingURL=index.js.map
|
package/client-sfn/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"client-sfn/index.js","sources":["../../src/client-sfn/index.ts"],"sourcesContent":["import type {\n DescribeExecutionCommandInput,\n DescribeExecutionCommandOutput,\n ListExecutionsCommandInput,\n ListExecutionsCommandOutput,\n SFNClientConfig as BaseSFNClientConfig,\n StartExecutionCommandInput,\n StartExecutionCommandOutput\n} from \"@aws-sdk/client-sfn\";\nimport {\n DescribeExecutionCommand,\n ListExecutionsCommand,\n SFNClient,\n SFNServiceException,\n StartExecutionCommand\n} from \"@aws-sdk/client-sfn\";\nimport { createCacheKey, type GenericRecord } from \"@webiny/utils\";\n\nexport {\n SFNClient,\n DescribeExecutionCommand,\n SFNServiceException,\n StartExecutionCommand,\n ListExecutionsCommand\n};\n\nexport type {\n DescribeExecutionCommandInput,\n DescribeExecutionCommandOutput,\n StartExecutionCommandInput,\n StartExecutionCommandOutput,\n ListExecutionsCommandInput,\n ListExecutionsCommandOutput\n};\n\nexport interface SFNClientConfig extends BaseSFNClientConfig {\n cache?: boolean;\n}\n\nexport interface TriggerStepFunctionParams<T extends GenericRecord = GenericRecord> extends Partial<\n Omit<StartExecutionCommandInput, \"input\">\n> {\n input: T;\n}\n\nconst stepFunctionClientsCache = new Map<string, SFNClient>();\n\nexport const createStepFunctionClient = (initial?: SFNClientConfig): SFNClient => {\n const config: SFNClientConfig = {\n region: process.env.AWS_REGION,\n ...initial\n };\n const skipCache = config.cache === false;\n delete config.cache;\n if (skipCache) {\n return new SFNClient({\n ...config\n });\n }\n\n const key = createCacheKey(config);\n if (stepFunctionClientsCache.has(key)) {\n return stepFunctionClientsCache.get(key) as SFNClient;\n }\n\n return new SFNClient({\n ...config\n });\n};\n\nexport const triggerStepFunctionFactory = (input?: SFNClient | SFNClientConfig) => {\n const client = input instanceof SFNClient ? input : createStepFunctionClient(input);\n return async <T extends GenericRecord = GenericRecord>(\n params: TriggerStepFunctionParams<T>\n ): Promise<StartExecutionCommandOutput> => {\n const cmd = new StartExecutionCommand({\n ...params,\n stateMachineArn: params.stateMachineArn || process.env.BG_TASK_SFN_ARN,\n name: params.name,\n input: JSON.stringify(params.input)\n });\n return await client.send(cmd);\n };\n};\n\nexport const listExecutionsFactory = (input?: SFNClient | SFNClientConfig) => {\n const client = input instanceof SFNClient ? input : createStepFunctionClient(input);\n return async (params: ListExecutionsCommandInput): Promise<ListExecutionsCommandOutput> => {\n const cmd = new ListExecutionsCommand({\n ...params,\n stateMachineArn: params.stateMachineArn || process.env.BG_TASK_SFN_ARN\n });\n return await client.send(cmd);\n };\n};\n\nexport const describeExecutionFactory = (input?: SFNClient | SFNClientConfig) => {\n const client = input instanceof SFNClient ? input : createStepFunctionClient(input);\n return async (\n params: DescribeExecutionCommandInput\n ): Promise<DescribeExecutionCommandOutput> => {\n const cmd = new DescribeExecutionCommand({\n ...params\n });\n return await client.send(cmd);\n };\n};\n"],"names":["stepFunctionClientsCache","Map","createStepFunctionClient","initial","config","process","skipCache","SFNClient","key","createCacheKey","triggerStepFunctionFactory","input","client","params","cmd","StartExecutionCommand","JSON","listExecutionsFactory","ListExecutionsCommand","describeExecutionFactory","DescribeExecutionCommand"],"mappings":";;AA6CA,MAAMA,2BAA2B,IAAIC;AAE9B,MAAMC,2BAA2B,CAACC;IACrC,MAAMC,SAA0B;QAC5B,QAAQC,QAAQ,GAAG,CAAC,UAAU;QAC9B,GAAGF,OAAO;IACd;IACA,MAAMG,YAAYF,AAAiB,UAAjBA,OAAO,KAAK;IAC9B,OAAOA,OAAO,KAAK;IACnB,IAAIE,WACA,OAAO,IAAIC,UAAU;QACjB,GAAGH,MAAM;IACb;IAGJ,MAAMI,MAAMC,eAAeL;IAC3B,IAAIJ,yBAAyB,GAAG,CAACQ,MAC7B,OAAOR,yBAAyB,GAAG,CAACQ;IAGxC,OAAO,IAAID,UAAU;QACjB,GAAGH,MAAM;IACb;AACJ;AAEO,MAAMM,6BAA6B,CAACC;IACvC,MAAMC,SAASD,iBAAiBJ,YAAYI,QAAQT,yBAAyBS;IAC7E,OAAO,OACHE;QAEA,MAAMC,MAAM,IAAIC,sBAAsB;YAClC,GAAGF,MAAM;YACT,iBAAiBA,OAAO,eAAe,IAAIR,QAAQ,GAAG,CAAC,eAAe;YACtE,MAAMQ,OAAO,IAAI;YACjB,OAAOG,KAAK,SAAS,CAACH,OAAO,KAAK;QACtC;QACA,OAAO,MAAMD,OAAO,IAAI,CAACE;IAC7B;AACJ;AAEO,MAAMG,wBAAwB,CAACN;IAClC,MAAMC,SAASD,iBAAiBJ,YAAYI,QAAQT,yBAAyBS;IAC7E,OAAO,OAAOE;QACV,MAAMC,MAAM,IAAII,sBAAsB;YAClC,GAAGL,MAAM;YACT,iBAAiBA,OAAO,eAAe,IAAIR,QAAQ,GAAG,CAAC,eAAe;QAC1E;QACA,OAAO,MAAMO,OAAO,IAAI,CAACE;IAC7B;AACJ;AAEO,MAAMK,2BAA2B,CAACR;IACrC,MAAMC,SAASD,iBAAiBJ,YAAYI,QAAQT,yBAAyBS;IAC7E,OAAO,OACHE;QAEA,MAAMC,MAAM,IAAIM,yBAAyB;YACrC,GAAGP,MAAM;QACb;QACA,OAAO,MAAMD,OAAO,IAAI,CAACE;IAC7B;AACJ"}
|
package/client-sqs/index.js
CHANGED
package/client-sts/index.js
CHANGED
package/lib-storage/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/aws-sdk",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0-beta.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Wrapper for AWS SDK",
|
|
6
6
|
"exports": {
|
|
@@ -9,33 +9,33 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"author": "Webiny Ltd.",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@aws-sdk/client-apigatewaymanagementapi": "3.
|
|
13
|
-
"@aws-sdk/client-cloudfront": "3.
|
|
14
|
-
"@aws-sdk/client-cloudwatch-events": "3.
|
|
15
|
-
"@aws-sdk/client-cloudwatch-logs": "3.
|
|
16
|
-
"@aws-sdk/client-cognito-identity-provider": "3.
|
|
17
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
18
|
-
"@aws-sdk/client-dynamodb-streams": "3.
|
|
19
|
-
"@aws-sdk/client-eventbridge": "3.
|
|
20
|
-
"@aws-sdk/client-iam": "3.
|
|
21
|
-
"@aws-sdk/client-iot": "3.
|
|
22
|
-
"@aws-sdk/client-lambda": "3.
|
|
23
|
-
"@aws-sdk/client-s3": "3.
|
|
24
|
-
"@aws-sdk/client-scheduler": "3.
|
|
25
|
-
"@aws-sdk/client-sfn": "3.
|
|
26
|
-
"@aws-sdk/client-sqs": "3.
|
|
27
|
-
"@aws-sdk/client-sts": "3.
|
|
28
|
-
"@aws-sdk/credential-providers": "3.
|
|
29
|
-
"@aws-sdk/lib-dynamodb": "3.
|
|
30
|
-
"@aws-sdk/lib-storage": "3.
|
|
31
|
-
"@aws-sdk/s3-presigned-post": "3.
|
|
32
|
-
"@aws-sdk/s3-request-presigner": "3.
|
|
12
|
+
"@aws-sdk/client-apigatewaymanagementapi": "3.1045.0",
|
|
13
|
+
"@aws-sdk/client-cloudfront": "3.1045.0",
|
|
14
|
+
"@aws-sdk/client-cloudwatch-events": "3.1045.0",
|
|
15
|
+
"@aws-sdk/client-cloudwatch-logs": "3.1045.0",
|
|
16
|
+
"@aws-sdk/client-cognito-identity-provider": "3.1045.0",
|
|
17
|
+
"@aws-sdk/client-dynamodb": "3.1045.0",
|
|
18
|
+
"@aws-sdk/client-dynamodb-streams": "3.1045.0",
|
|
19
|
+
"@aws-sdk/client-eventbridge": "3.1045.0",
|
|
20
|
+
"@aws-sdk/client-iam": "3.1045.0",
|
|
21
|
+
"@aws-sdk/client-iot": "3.1045.0",
|
|
22
|
+
"@aws-sdk/client-lambda": "3.1045.0",
|
|
23
|
+
"@aws-sdk/client-s3": "3.1045.0",
|
|
24
|
+
"@aws-sdk/client-scheduler": "3.1045.0",
|
|
25
|
+
"@aws-sdk/client-sfn": "3.1045.0",
|
|
26
|
+
"@aws-sdk/client-sqs": "3.1045.0",
|
|
27
|
+
"@aws-sdk/client-sts": "3.1045.0",
|
|
28
|
+
"@aws-sdk/credential-providers": "3.1045.0",
|
|
29
|
+
"@aws-sdk/lib-dynamodb": "3.1045.0",
|
|
30
|
+
"@aws-sdk/lib-storage": "3.1045.0",
|
|
31
|
+
"@aws-sdk/s3-presigned-post": "3.1045.0",
|
|
32
|
+
"@aws-sdk/s3-request-presigner": "3.1045.0",
|
|
33
33
|
"@aws-sdk/util-dynamodb": "3.996.2",
|
|
34
34
|
"@types/aws-lambda": "8.10.161",
|
|
35
|
-
"@webiny/utils": "6.
|
|
35
|
+
"@webiny/utils": "6.4.0-beta.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@webiny/build-tools": "6.
|
|
38
|
+
"@webiny/build-tools": "6.4.0-beta.0",
|
|
39
39
|
"rimraf": "6.1.3",
|
|
40
40
|
"typescript": "6.0.3"
|
|
41
41
|
},
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
]
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "a545d7529828af07d08d49c3da1bcb967483b9ce"
|
|
57
57
|
}
|
package/types/index.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ApiGatewayManagementApiClient","PostToConnectionCommand","DeleteConnectionCommand","GetConnectionCommand","GoneException","ForbiddenException","LimitExceededException","PayloadTooLargeException"],"sources":["index.ts"],"sourcesContent":["export {\n ApiGatewayManagementApiClient,\n PostToConnectionCommand,\n DeleteConnectionCommand,\n GetConnectionCommand,\n GoneException,\n ForbiddenException,\n LimitExceededException,\n PayloadTooLargeException\n} from \"@aws-sdk/client-apigatewaymanagementapi\";\nexport type {\n PostToConnectionCommandInput,\n PostToConnectionRequest,\n PostToConnectionCommandOutput,\n PostToConnectionCommandInputType,\n DeleteConnectionCommandInput,\n DeleteConnectionRequest,\n DeleteConnectionCommandOutput,\n GetConnectionCommandInput,\n GetConnectionCommandOutput,\n GetConnectionRequest,\n GetConnectionResponse\n} from \"@aws-sdk/client-apigatewaymanagementapi\";\n"],"mappings":"AAAA,SACIA,6BAA6B,EAC7BC,uBAAuB,EACvBC,uBAAuB,EACvBC,oBAAoB,EACpBC,aAAa,EACbC,kBAAkB,EAClBC,sBAAsB,EACtBC,wBAAwB,QACrB,yCAAyC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["CloudFront"],"sources":["index.ts"],"sourcesContent":["export { CloudFront } from \"@aws-sdk/client-cloudfront\";\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,4BAA4B","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["CloudWatchEventsClient","DeleteRuleCommand","RemoveTargetsCommand","PutRuleCommand","PutTargetsCommand","CloudWatchLogs"],"sources":["index.ts"],"sourcesContent":["export {\n CloudWatchEventsClient,\n DeleteRuleCommand,\n RemoveTargetsCommand,\n PutRuleCommand,\n PutTargetsCommand\n} from \"@aws-sdk/client-cloudwatch-events\";\nexport type { PutRuleCommandInput } from \"@aws-sdk/client-cloudwatch-events\";\n\nexport { CloudWatchLogs, type GetLogEventsRequest } from \"@aws-sdk/client-cloudwatch-logs\";\n"],"mappings":"AAAA,SACIA,sBAAsB,EACtBC,iBAAiB,EACjBC,oBAAoB,EACpBC,cAAc,EACdC,iBAAiB,QACd,mCAAmC;AAG1C,SAASC,cAAc,QAAkC,iCAAiC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["QueryCommand","BatchWriteCommand","BatchGetCommand","PutCommand","ScanCommand","GetCommand","UpdateCommand","DeleteCommand","DynamoDBDocument","unmarshall","marshall","getDocumentClient"],"sources":["index.ts"],"sourcesContent":["export { QueryCommand } from \"@aws-sdk/client-dynamodb\";\nexport type {\n ScanInput,\n ScanOutput,\n WriteRequest,\n DynamoDBClient,\n DynamoDBClientConfig,\n AttributeValue\n} from \"@aws-sdk/client-dynamodb\";\n\nexport type { StreamRecord } from \"@aws-sdk/client-dynamodb-streams\";\n\nexport {\n BatchWriteCommand,\n BatchGetCommand,\n PutCommand,\n ScanCommand,\n GetCommand,\n UpdateCommand,\n DeleteCommand,\n DynamoDBDocument\n} from \"@aws-sdk/lib-dynamodb\";\n\nexport type {\n BatchWriteCommandInput,\n BatchWriteCommandOutput,\n BatchGetCommandInput,\n BatchGetCommandOutput,\n PutCommandInput,\n PutCommandOutput,\n UpdateCommandInput,\n GetCommandInput,\n GetCommandOutput,\n DeleteCommandInput,\n DeleteCommandOutput,\n ScanCommandInput,\n ScanCommandOutput,\n QueryCommandOutput\n} from \"@aws-sdk/lib-dynamodb\";\n\nexport { unmarshall, marshall } from \"@aws-sdk/util-dynamodb\";\n\nexport { getDocumentClient } from \"./getDocumentClient.js\";\n"],"mappings":"AAAA,SAASA,YAAY,QAAQ,0BAA0B;AAYvD,SACIC,iBAAiB,EACjBC,eAAe,EACfC,UAAU,EACVC,WAAW,EACXC,UAAU,EACVC,aAAa,EACbC,aAAa,EACbC,gBAAgB,QACb,uBAAuB;AAmB9B,SAASC,UAAU,EAAEC,QAAQ,QAAQ,wBAAwB;AAE7D,SAASC,iBAAiB","ignoreList":[]}
|
package/client-iam/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["IAM"],"sources":["index.ts"],"sourcesContent":["export { IAM } from \"@aws-sdk/client-iam\";\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,qBAAqB","ignoreList":[]}
|
package/client-iot/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["IoTClient","DescribeEndpointCommand"],"sources":["index.ts"],"sourcesContent":["export { IoTClient, DescribeEndpointCommand } from \"@aws-sdk/client-iot\";\n"],"mappings":"AAAA,SAASA,SAAS,EAAEC,uBAAuB,QAAQ,qBAAqB","ignoreList":[]}
|
package/client-sqs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["SQSClient","SendMessageBatchCommand"],"sources":["index.ts"],"sourcesContent":["export { SQSClient, SendMessageBatchCommand } from \"@aws-sdk/client-sqs\";\nexport type { SendMessageBatchRequestEntry } from \"@aws-sdk/client-sqs\";\n"],"mappings":"AAAA,SAASA,SAAS,EAAEC,uBAAuB,QAAQ,qBAAqB","ignoreList":[]}
|
package/client-sts/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["STS"],"sources":["index.ts"],"sourcesContent":["export { STS } from \"@aws-sdk/client-sts\";\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,qBAAqB","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["fromTemporaryCredentials"],"sources":["index.ts"],"sourcesContent":["export { fromTemporaryCredentials } from \"@aws-sdk/credential-providers\";\n"],"mappings":"AAAA,SAASA,wBAAwB,QAAQ,+BAA+B","ignoreList":[]}
|
package/lib-storage/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Upload"],"sources":["index.ts"],"sourcesContent":["export { Upload } from \"@aws-sdk/lib-storage\";\nexport type {\n Options,\n Progress,\n BodyDataTypes,\n RawDataPart,\n Configuration\n} from \"@aws-sdk/lib-storage\";\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,sBAAsB","ignoreList":[]}
|
package/types/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"aws-lambda\";\n"],"mappings":"AAAA,cAAc,YAAY","ignoreList":[]}
|