@webiny/aws-sdk 5.40.0-beta.2 → 5.40.0-beta.4

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.
@@ -0,0 +1 @@
1
+ export { ApiGatewayManagementApiClient, PostToConnectionCommand, PostToConnectionCommandInput, PostToConnectionRequest, PostToConnectionCommandOutput, PostToConnectionCommandInputType, DeleteConnectionCommand, DeleteConnectionCommandInput, DeleteConnectionRequest, DeleteConnectionCommandOutput, GetConnectionCommand, GetConnectionCommandInput, GetConnectionCommandOutput, GetConnectionRequest, GetConnectionResponse, GoneException, ForbiddenException, LimitExceededException, PayloadTooLargeException } from "@aws-sdk/client-apigatewaymanagementapi";
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "ApiGatewayManagementApiClient", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _clientApigatewaymanagementapi.ApiGatewayManagementApiClient;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "DeleteConnectionCommand", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _clientApigatewaymanagementapi.DeleteConnectionCommand;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "DeleteConnectionCommandInput", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _clientApigatewaymanagementapi.DeleteConnectionCommandInput;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "DeleteConnectionCommandOutput", {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _clientApigatewaymanagementapi.DeleteConnectionCommandOutput;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "DeleteConnectionRequest", {
31
+ enumerable: true,
32
+ get: function get() {
33
+ return _clientApigatewaymanagementapi.DeleteConnectionRequest;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "ForbiddenException", {
37
+ enumerable: true,
38
+ get: function get() {
39
+ return _clientApigatewaymanagementapi.ForbiddenException;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "GetConnectionCommand", {
43
+ enumerable: true,
44
+ get: function get() {
45
+ return _clientApigatewaymanagementapi.GetConnectionCommand;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "GetConnectionCommandInput", {
49
+ enumerable: true,
50
+ get: function get() {
51
+ return _clientApigatewaymanagementapi.GetConnectionCommandInput;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "GetConnectionCommandOutput", {
55
+ enumerable: true,
56
+ get: function get() {
57
+ return _clientApigatewaymanagementapi.GetConnectionCommandOutput;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "GetConnectionRequest", {
61
+ enumerable: true,
62
+ get: function get() {
63
+ return _clientApigatewaymanagementapi.GetConnectionRequest;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "GetConnectionResponse", {
67
+ enumerable: true,
68
+ get: function get() {
69
+ return _clientApigatewaymanagementapi.GetConnectionResponse;
70
+ }
71
+ });
72
+ Object.defineProperty(exports, "GoneException", {
73
+ enumerable: true,
74
+ get: function get() {
75
+ return _clientApigatewaymanagementapi.GoneException;
76
+ }
77
+ });
78
+ Object.defineProperty(exports, "LimitExceededException", {
79
+ enumerable: true,
80
+ get: function get() {
81
+ return _clientApigatewaymanagementapi.LimitExceededException;
82
+ }
83
+ });
84
+ Object.defineProperty(exports, "PayloadTooLargeException", {
85
+ enumerable: true,
86
+ get: function get() {
87
+ return _clientApigatewaymanagementapi.PayloadTooLargeException;
88
+ }
89
+ });
90
+ Object.defineProperty(exports, "PostToConnectionCommand", {
91
+ enumerable: true,
92
+ get: function get() {
93
+ return _clientApigatewaymanagementapi.PostToConnectionCommand;
94
+ }
95
+ });
96
+ Object.defineProperty(exports, "PostToConnectionCommandInput", {
97
+ enumerable: true,
98
+ get: function get() {
99
+ return _clientApigatewaymanagementapi.PostToConnectionCommandInput;
100
+ }
101
+ });
102
+ Object.defineProperty(exports, "PostToConnectionCommandInputType", {
103
+ enumerable: true,
104
+ get: function get() {
105
+ return _clientApigatewaymanagementapi.PostToConnectionCommandInputType;
106
+ }
107
+ });
108
+ Object.defineProperty(exports, "PostToConnectionCommandOutput", {
109
+ enumerable: true,
110
+ get: function get() {
111
+ return _clientApigatewaymanagementapi.PostToConnectionCommandOutput;
112
+ }
113
+ });
114
+ Object.defineProperty(exports, "PostToConnectionRequest", {
115
+ enumerable: true,
116
+ get: function get() {
117
+ return _clientApigatewaymanagementapi.PostToConnectionRequest;
118
+ }
119
+ });
120
+ var _clientApigatewaymanagementapi = require("@aws-sdk/client-apigatewaymanagementapi");
121
+
122
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_clientApigatewaymanagementapi","require"],"sources":["index.ts"],"sourcesContent":["export {\n ApiGatewayManagementApiClient,\n PostToConnectionCommand,\n PostToConnectionCommandInput,\n PostToConnectionRequest,\n PostToConnectionCommandOutput,\n PostToConnectionCommandInputType,\n DeleteConnectionCommand,\n DeleteConnectionCommandInput,\n DeleteConnectionRequest,\n DeleteConnectionCommandOutput,\n GetConnectionCommand,\n GetConnectionCommandInput,\n GetConnectionCommandOutput,\n GetConnectionRequest,\n GetConnectionResponse,\n // Exceptions\n GoneException,\n ForbiddenException,\n LimitExceededException,\n PayloadTooLargeException\n} from \"@aws-sdk/client-apigatewaymanagementapi\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,8BAAA,GAAAC,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_clientCloudfront","require"],"sources":["index.ts"],"sourcesContent":["export { CloudFront } from \"@aws-sdk/client-cloudfront\";\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA"}
1
+ {"version":3,"names":["_clientCloudfront","require"],"sources":["index.ts"],"sourcesContent":["export { CloudFront } from \"@aws-sdk/client-cloudfront\";\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_clientCloudwatchEvents","require","_clientCloudwatchLogs"],"sources":["index.ts"],"sourcesContent":["export {\n CloudWatchEventsClient,\n DeleteRuleCommand,\n RemoveTargetsCommand,\n PutRuleCommand,\n PutTargetsCommand,\n PutRuleCommandInput\n} from \"@aws-sdk/client-cloudwatch-events\";\n\nexport { CloudWatchLogs, GetLogEventsRequest } from \"@aws-sdk/client-cloudwatch-logs\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AASA,IAAAC,qBAAA,GAAAD,OAAA"}
1
+ {"version":3,"names":["_clientCloudwatchEvents","require","_clientCloudwatchLogs"],"sources":["index.ts"],"sourcesContent":["export {\n CloudWatchEventsClient,\n DeleteRuleCommand,\n RemoveTargetsCommand,\n PutRuleCommand,\n PutTargetsCommand,\n PutRuleCommandInput\n} from \"@aws-sdk/client-cloudwatch-events\";\n\nexport { CloudWatchLogs, GetLogEventsRequest } from \"@aws-sdk/client-cloudwatch-logs\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AASA,IAAAC,qBAAA,GAAAD,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_clientCognitoIdentityProvider","require"],"sources":["index.ts"],"sourcesContent":["export {\n AdminCreateUserRequest,\n CognitoIdentityProvider,\n ListUsersResponse,\n UserType\n} from \"@aws-sdk/client-cognito-identity-provider\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,8BAAA,GAAAC,OAAA"}
1
+ {"version":3,"names":["_clientCognitoIdentityProvider","require"],"sources":["index.ts"],"sourcesContent":["export {\n AdminCreateUserRequest,\n CognitoIdentityProvider,\n ListUsersResponse,\n UserType\n} from \"@aws-sdk/client-cognito-identity-provider\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,8BAAA,GAAAC,OAAA","ignoreList":[]}
@@ -18,22 +18,26 @@ var createKey = function createKey(config) {
18
18
  return hash.digest("hex");
19
19
  };
20
20
  var documentClients = {};
21
- var getDocumentClient = function getDocumentClient(input) {
21
+ /**
22
+ * We do not want users to be able to change these options, so we are not exposing them.
23
+ */
24
+ var documentClientConfig = {
25
+ marshallOptions: {
26
+ convertEmptyValues: true,
27
+ removeUndefinedValues: true,
28
+ convertClassInstanceToMap: true
29
+ }
30
+ };
31
+ var getDocumentClient = exports.getDocumentClient = function getDocumentClient(input) {
22
32
  var config = input || DEFAULT_CONFIG;
23
33
  var key = createKey(config);
24
34
  if (documentClients[key]) {
25
35
  return documentClients[key];
26
36
  }
27
37
  var client = new _clientDynamodb.DynamoDBClient(config);
28
- var documentClient = _libDynamodb.DynamoDBDocument.from(client, {
29
- marshallOptions: {
30
- convertEmptyValues: true,
31
- removeUndefinedValues: true
32
- }
33
- });
38
+ var documentClient = _libDynamodb.DynamoDBDocument.from(client, documentClientConfig);
34
39
  documentClients[key] = documentClient;
35
40
  return documentClient;
36
41
  };
37
- exports.getDocumentClient = getDocumentClient;
38
42
 
39
43
  //# sourceMappingURL=getDocumentClient.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_clientDynamodb","require","_libDynamodb","_crypto","_interopRequireDefault","DEFAULT_CONFIG","region","process","env","AWS_REGION","createKey","config","key","JSON","stringify","hash","crypto","createHash","update","digest","documentClients","getDocumentClient","input","client","DynamoDBClient","documentClient","DynamoDBDocument","from","marshallOptions","convertEmptyValues","removeUndefinedValues","exports"],"sources":["getDocumentClient.ts"],"sourcesContent":["import { DynamoDBClient, DynamoDBClientConfig } from \"@aws-sdk/client-dynamodb\";\nimport { DynamoDBDocument } from \"@aws-sdk/lib-dynamodb\";\nimport crypto from \"crypto\";\n\nconst DEFAULT_CONFIG = {\n region: process.env.AWS_REGION\n};\n\nconst createKey = (config: DynamoDBClientConfig): string => {\n const key = JSON.stringify(config);\n const hash = crypto.createHash(\"sha1\");\n hash.update(key);\n return hash.digest(\"hex\");\n};\n\nconst documentClients: Record<string, DynamoDBDocument> = {};\n\nexport const getDocumentClient = (input?: DynamoDBClientConfig) => {\n const config = input || DEFAULT_CONFIG;\n const key = createKey(config);\n if (documentClients[key]) {\n return documentClients[key];\n }\n const client = new DynamoDBClient(config);\n const documentClient = DynamoDBDocument.from(client, {\n marshallOptions: {\n convertEmptyValues: true,\n removeUndefinedValues: true\n }\n });\n documentClients[key] = documentClient;\n return documentClient;\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,IAAMI,cAAc,GAAG;EACnBC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC;AACxB,CAAC;AAED,IAAMC,SAAS,GAAG,SAAZA,SAASA,CAAIC,MAA4B,EAAa;EACxD,IAAMC,GAAG,GAAGC,IAAI,CAACC,SAAS,CAACH,MAAM,CAAC;EAClC,IAAMI,IAAI,GAAGC,eAAM,CAACC,UAAU,CAAC,MAAM,CAAC;EACtCF,IAAI,CAACG,MAAM,CAACN,GAAG,CAAC;EAChB,OAAOG,IAAI,CAACI,MAAM,CAAC,KAAK,CAAC;AAC7B,CAAC;AAED,IAAMC,eAAiD,GAAG,CAAC,CAAC;AAErD,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,KAA4B,EAAK;EAC/D,IAAMX,MAAM,GAAGW,KAAK,IAAIjB,cAAc;EACtC,IAAMO,GAAG,GAAGF,SAAS,CAACC,MAAM,CAAC;EAC7B,IAAIS,eAAe,CAACR,GAAG,CAAC,EAAE;IACtB,OAAOQ,eAAe,CAACR,GAAG,CAAC;EAC/B;EACA,IAAMW,MAAM,GAAG,IAAIC,8BAAc,CAACb,MAAM,CAAC;EACzC,IAAMc,cAAc,GAAGC,6BAAgB,CAACC,IAAI,CAACJ,MAAM,EAAE;IACjDK,eAAe,EAAE;MACbC,kBAAkB,EAAE,IAAI;MACxBC,qBAAqB,EAAE;IAC3B;EACJ,CAAC,CAAC;EACFV,eAAe,CAACR,GAAG,CAAC,GAAGa,cAAc;EACrC,OAAOA,cAAc;AACzB,CAAC;AAACM,OAAA,CAAAV,iBAAA,GAAAA,iBAAA"}
1
+ {"version":3,"names":["_clientDynamodb","require","_libDynamodb","_crypto","_interopRequireDefault","DEFAULT_CONFIG","region","process","env","AWS_REGION","createKey","config","key","JSON","stringify","hash","crypto","createHash","update","digest","documentClients","documentClientConfig","marshallOptions","convertEmptyValues","removeUndefinedValues","convertClassInstanceToMap","getDocumentClient","exports","input","client","DynamoDBClient","documentClient","DynamoDBDocument","from"],"sources":["getDocumentClient.ts"],"sourcesContent":["import { DynamoDBClient, DynamoDBClientConfig } from \"@aws-sdk/client-dynamodb\";\nimport { DynamoDBDocument, TranslateConfig } from \"@aws-sdk/lib-dynamodb\";\nimport crypto from \"crypto\";\n\nconst DEFAULT_CONFIG = {\n region: process.env.AWS_REGION\n};\n\nconst createKey = (config: DynamoDBClientConfig): string => {\n const key = JSON.stringify(config);\n const hash = crypto.createHash(\"sha1\");\n hash.update(key);\n return hash.digest(\"hex\");\n};\n\nconst documentClients: Record<string, DynamoDBDocument> = {};\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 const getDocumentClient = (input?: DynamoDBClientConfig): DynamoDBDocument => {\n const config = input || DEFAULT_CONFIG;\n const key = createKey(config);\n if (documentClients[key]) {\n return documentClients[key];\n }\n const client = new DynamoDBClient(config);\n\n const documentClient = DynamoDBDocument.from(client, documentClientConfig);\n\n documentClients[key] = documentClient;\n return documentClient;\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,IAAMI,cAAc,GAAG;EACnBC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC;AACxB,CAAC;AAED,IAAMC,SAAS,GAAG,SAAZA,SAASA,CAAIC,MAA4B,EAAa;EACxD,IAAMC,GAAG,GAAGC,IAAI,CAACC,SAAS,CAACH,MAAM,CAAC;EAClC,IAAMI,IAAI,GAAGC,eAAM,CAACC,UAAU,CAAC,MAAM,CAAC;EACtCF,IAAI,CAACG,MAAM,CAACN,GAAG,CAAC;EAChB,OAAOG,IAAI,CAACI,MAAM,CAAC,KAAK,CAAC;AAC7B,CAAC;AAED,IAAMC,eAAiD,GAAG,CAAC,CAAC;AAC5D;AACA;AACA;AACA,IAAMC,oBAAqC,GAAG;EAC1CC,eAAe,EAAE;IACbC,kBAAkB,EAAE,IAAI;IACxBC,qBAAqB,EAAE,IAAI;IAC3BC,yBAAyB,EAAE;EAC/B;AACJ,CAAC;AAEM,IAAMC,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,SAApBA,iBAAiBA,CAAIE,KAA4B,EAAuB;EACjF,IAAMjB,MAAM,GAAGiB,KAAK,IAAIvB,cAAc;EACtC,IAAMO,GAAG,GAAGF,SAAS,CAACC,MAAM,CAAC;EAC7B,IAAIS,eAAe,CAACR,GAAG,CAAC,EAAE;IACtB,OAAOQ,eAAe,CAACR,GAAG,CAAC;EAC/B;EACA,IAAMiB,MAAM,GAAG,IAAIC,8BAAc,CAACnB,MAAM,CAAC;EAEzC,IAAMoB,cAAc,GAAGC,6BAAgB,CAACC,IAAI,CAACJ,MAAM,EAAER,oBAAoB,CAAC;EAE1ED,eAAe,CAACR,GAAG,CAAC,GAAGmB,cAAc;EACrC,OAAOA,cAAc;AACzB,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_clientDynamodb","require","_libDynamodb","_utilDynamodb","_getDocumentClient"],"sources":["index.ts"],"sourcesContent":["export { QueryCommand, ScanInput, ScanOutput, WriteRequest } from \"@aws-sdk/client-dynamodb\";\nexport type {\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 GetCommandOutput,\n BatchWriteCommand,\n PutCommand,\n GetCommand,\n UpdateCommand,\n DeleteCommand,\n DynamoDBDocument\n} from \"@aws-sdk/lib-dynamodb\";\n\nexport { unmarshall, marshall } from \"@aws-sdk/util-dynamodb\";\n\nexport { getDocumentClient } from \"./getDocumentClient\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AASA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,aAAA,GAAAF,OAAA;AAEA,IAAAG,kBAAA,GAAAH,OAAA"}
1
+ {"version":3,"names":["_clientDynamodb","require","_libDynamodb","_utilDynamodb","_getDocumentClient"],"sources":["index.ts"],"sourcesContent":["export { QueryCommand, ScanInput, ScanOutput, WriteRequest } from \"@aws-sdk/client-dynamodb\";\nexport type {\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 GetCommandOutput,\n BatchWriteCommand,\n PutCommand,\n GetCommand,\n UpdateCommand,\n DeleteCommand,\n DynamoDBDocument\n} from \"@aws-sdk/lib-dynamodb\";\n\nexport { unmarshall, marshall } from \"@aws-sdk/util-dynamodb\";\n\nexport { getDocumentClient } from \"./getDocumentClient\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AASA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,aAAA,GAAAF,OAAA;AAEA,IAAAG,kBAAA,GAAAH,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_clientEventbridge","require"],"sources":["index.ts"],"sourcesContent":["export {\n EventBridgeClient,\n PutEventsRequestEntry,\n PutEventsCommand,\n PutEventsCommandInput,\n PutEventsCommandOutput\n} from \"@aws-sdk/client-eventbridge\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA"}
1
+ {"version":3,"names":["_clientEventbridge","require"],"sources":["index.ts"],"sourcesContent":["export {\n EventBridgeClient,\n PutEventsRequestEntry,\n PutEventsCommand,\n PutEventsCommandInput,\n PutEventsCommandOutput\n} from \"@aws-sdk/client-eventbridge\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_clientIam","require"],"sources":["index.ts"],"sourcesContent":["export { IAM } from \"@aws-sdk/client-iam\";\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA"}
1
+ {"version":3,"names":["_clientIam","require"],"sources":["index.ts"],"sourcesContent":["export { IAM } from \"@aws-sdk/client-iam\";\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_clientLambda","require"],"sources":["index.ts"],"sourcesContent":["export { LambdaClient, InvokeCommand } from \"@aws-sdk/client-lambda\";\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA"}
1
+ {"version":3,"names":["_clientLambda","require"],"sources":["index.ts"],"sourcesContent":["export { LambdaClient, InvokeCommand } from \"@aws-sdk/client-lambda\";\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA","ignoreList":[]}
@@ -167,7 +167,7 @@ var _utils = require("@webiny/utils");
167
167
  var _s3PresignedPost = require("@aws-sdk/s3-presigned-post");
168
168
  var _s3RequestPresigner = require("@aws-sdk/s3-request-presigner");
169
169
  var clients = new Map();
170
- var createS3Client = function createS3Client(initial) {
170
+ var createS3Client = exports.createS3Client = function createS3Client(initial) {
171
171
  var options = (0, _objectSpread2.default)({
172
172
  region: process.env.AWS_REGION
173
173
  }, initial);
@@ -179,6 +179,5 @@ var createS3Client = function createS3Client(initial) {
179
179
  clients.set(key, instance);
180
180
  return instance;
181
181
  };
182
- exports.createS3Client = createS3Client;
183
182
 
184
183
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_clientS","require","_utils","_s3PresignedPost","_s3RequestPresigner","clients","Map","createS3Client","initial","options","_objectSpread2","default","region","process","env","AWS_REGION","key","createCacheKey","has","get","instance","S3","set","exports"],"sources":["index.ts"],"sourcesContent":["import { S3, S3ClientConfig } from \"@aws-sdk/client-s3\";\nimport { createCacheKey } from \"@webiny/utils\";\n\nexport {\n CompleteMultipartUploadCommand,\n CompleteMultipartUploadCommandOutput,\n AbortMultipartUploadCommandOutput,\n CompleteMultipartUploadOutput,\n DeleteObjectOutput,\n GetObjectCommand,\n GetObjectOutput,\n HeadObjectCommand,\n HeadObjectOutput,\n ListObjectsOutput,\n ListPartsCommand,\n ListPartsCommandOutput,\n ListPartsOutput,\n ObjectCannedACL,\n Part,\n PutObjectCommand,\n PutObjectCommandInput,\n PutObjectCommandOutput,\n PutObjectRequest,\n S3,\n S3Client,\n UploadPartCommand\n} from \"@aws-sdk/client-s3\";\n\nexport { createPresignedPost } from \"@aws-sdk/s3-presigned-post\";\nexport { PresignedPost, PresignedPostOptions } from \"@aws-sdk/s3-presigned-post\";\n\nexport { getSignedUrl } from \"@aws-sdk/s3-request-presigner\";\n\nconst clients = new Map<string, S3>();\n\nexport const createS3Client = (initial?: S3ClientConfig): S3 => {\n const options = {\n region: process.env.AWS_REGION,\n ...initial\n };\n const key = createCacheKey(options);\n if (clients.has(key)) {\n return clients.get(key) as S3;\n }\n\n const instance = new S3(options);\n clients.set(key, instance);\n return instance;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AA2BA,IAAAE,gBAAA,GAAAF,OAAA;AAGA,IAAAG,mBAAA,GAAAH,OAAA;AAEA,IAAMI,OAAO,GAAG,IAAIC,GAAG,CAAa,CAAC;AAE9B,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,OAAwB,EAAS;EAC5D,IAAMC,OAAO,OAAAC,cAAA,CAAAC,OAAA;IACTC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC;EAAU,GAC3BP,OAAO,CACb;EACD,IAAMQ,GAAG,GAAG,IAAAC,qBAAc,EAACR,OAAO,CAAC;EACnC,IAAIJ,OAAO,CAACa,GAAG,CAACF,GAAG,CAAC,EAAE;IAClB,OAAOX,OAAO,CAACc,GAAG,CAACH,GAAG,CAAC;EAC3B;EAEA,IAAMI,QAAQ,GAAG,IAAIC,WAAE,CAACZ,OAAO,CAAC;EAChCJ,OAAO,CAACiB,GAAG,CAACN,GAAG,EAAEI,QAAQ,CAAC;EAC1B,OAAOA,QAAQ;AACnB,CAAC;AAACG,OAAA,CAAAhB,cAAA,GAAAA,cAAA"}
1
+ {"version":3,"names":["_clientS","require","_utils","_s3PresignedPost","_s3RequestPresigner","clients","Map","createS3Client","exports","initial","options","_objectSpread2","default","region","process","env","AWS_REGION","key","createCacheKey","has","get","instance","S3","set"],"sources":["index.ts"],"sourcesContent":["import { S3, S3ClientConfig } from \"@aws-sdk/client-s3\";\nimport { createCacheKey } from \"@webiny/utils\";\n\nexport {\n CompleteMultipartUploadCommand,\n CompleteMultipartUploadCommandOutput,\n AbortMultipartUploadCommandOutput,\n CompleteMultipartUploadOutput,\n DeleteObjectOutput,\n GetObjectCommand,\n GetObjectOutput,\n HeadObjectCommand,\n HeadObjectOutput,\n ListObjectsOutput,\n ListPartsCommand,\n ListPartsCommandOutput,\n ListPartsOutput,\n ObjectCannedACL,\n Part,\n PutObjectCommand,\n PutObjectCommandInput,\n PutObjectCommandOutput,\n PutObjectRequest,\n S3,\n S3Client,\n UploadPartCommand\n} from \"@aws-sdk/client-s3\";\n\nexport { createPresignedPost } from \"@aws-sdk/s3-presigned-post\";\nexport { PresignedPost, PresignedPostOptions } from \"@aws-sdk/s3-presigned-post\";\n\nexport { getSignedUrl } from \"@aws-sdk/s3-request-presigner\";\n\nconst clients = new Map<string, S3>();\n\nexport const createS3Client = (initial?: S3ClientConfig): S3 => {\n const options = {\n region: process.env.AWS_REGION,\n ...initial\n };\n const key = createCacheKey(options);\n if (clients.has(key)) {\n return clients.get(key) as S3;\n }\n\n const instance = new S3(options);\n clients.set(key, instance);\n return instance;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AA2BA,IAAAE,gBAAA,GAAAF,OAAA;AAGA,IAAAG,mBAAA,GAAAH,OAAA;AAEA,IAAMI,OAAO,GAAG,IAAIC,GAAG,CAAa,CAAC;AAE9B,IAAMC,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,SAAjBA,cAAcA,CAAIE,OAAwB,EAAS;EAC5D,IAAMC,OAAO,OAAAC,cAAA,CAAAC,OAAA;IACTC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC;EAAU,GAC3BP,OAAO,CACb;EACD,IAAMQ,GAAG,GAAG,IAAAC,qBAAc,EAACR,OAAO,CAAC;EACnC,IAAIL,OAAO,CAACc,GAAG,CAACF,GAAG,CAAC,EAAE;IAClB,OAAOZ,OAAO,CAACe,GAAG,CAACH,GAAG,CAAC;EAC3B;EAEA,IAAMI,QAAQ,GAAG,IAAIC,WAAE,CAACZ,OAAO,CAAC;EAChCL,OAAO,CAACkB,GAAG,CAACN,GAAG,EAAEI,QAAQ,CAAC;EAC1B,OAAOA,QAAQ;AACnB,CAAC","ignoreList":[]}
@@ -33,7 +33,7 @@ var getClient = function getClient(config) {
33
33
  region: config.region || process.env.AWS_REGION
34
34
  }));
35
35
  };
36
- var triggerStepFunctionFactory = function triggerStepFunctionFactory(config) {
36
+ var triggerStepFunctionFactory = exports.triggerStepFunctionFactory = function triggerStepFunctionFactory(config) {
37
37
  var client = getClient(config);
38
38
  return async function (params) {
39
39
  var cmd = new _clientSfn.StartExecutionCommand((0, _objectSpread2.default)((0, _objectSpread2.default)({}, params), {}, {
@@ -44,6 +44,5 @@ var triggerStepFunctionFactory = function triggerStepFunctionFactory(config) {
44
44
  return await client.send(cmd);
45
45
  };
46
46
  };
47
- exports.triggerStepFunctionFactory = triggerStepFunctionFactory;
48
47
 
49
48
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_clientSfn","require","getClient","config","SFNClient","_objectSpread2","default","region","process","env","AWS_REGION","triggerStepFunctionFactory","client","params","cmd","StartExecutionCommand","stateMachineArn","BG_TASK_SFN_ARN","name","input","JSON","stringify","send","exports"],"sources":["index.ts"],"sourcesContent":["import {\n SFNClient,\n SFNClientConfig,\n StartExecutionCommand,\n StartExecutionCommandInput\n} from \"@aws-sdk/client-sfn\";\n\nexport { SFNClient, StartExecutionCommand, SFNServiceException } from \"@aws-sdk/client-sfn\";\n\nexport type GenericData = string | number | boolean | null | undefined;\n\nexport interface GenericStepFunctionData {\n [key: string]: GenericData | GenericData[];\n}\n\nexport interface TriggerStepFunctionParams<\n T extends GenericStepFunctionData = GenericStepFunctionData\n> extends Partial<Omit<StartExecutionCommandInput, \"input\">> {\n input: T;\n}\n\nconst getClient = (config: SFNClient | SFNClientConfig): SFNClient => {\n if (config instanceof SFNClient) {\n return config;\n }\n return new SFNClient({\n ...config,\n region: config.region || process.env.AWS_REGION\n });\n};\n\nexport const triggerStepFunctionFactory = (config: SFNClient | SFNClientConfig) => {\n const client = getClient(config);\n return async <T extends GenericStepFunctionData = GenericStepFunctionData>(\n params: TriggerStepFunctionParams<T>\n ) => {\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAqBA,IAAMC,SAAS,GAAG,SAAZA,SAASA,CAAIC,MAAmC,EAAgB;EAClE,IAAIA,MAAM,YAAYC,oBAAS,EAAE;IAC7B,OAAOD,MAAM;EACjB;EACA,OAAO,IAAIC,oBAAS,KAAAC,cAAA,CAAAC,OAAA,MAAAD,cAAA,CAAAC,OAAA,MACbH,MAAM;IACTI,MAAM,EAAEJ,MAAM,CAACI,MAAM,IAAIC,OAAO,CAACC,GAAG,CAACC;EAAU,EAClD,CAAC;AACN,CAAC;AAEM,IAAMC,0BAA0B,GAAG,SAA7BA,0BAA0BA,CAAIR,MAAmC,EAAK;EAC/E,IAAMS,MAAM,GAAGV,SAAS,CAACC,MAAM,CAAC;EAChC,OAAO,gBACHU,MAAoC,EACnC;IACD,IAAMC,GAAG,GAAG,IAAIC,gCAAqB,KAAAV,cAAA,CAAAC,OAAA,MAAAD,cAAA,CAAAC,OAAA,MAC9BO,MAAM;MACTG,eAAe,EAAEH,MAAM,CAACG,eAAe,IAAIR,OAAO,CAACC,GAAG,CAACQ,eAAe;MACtEC,IAAI,EAAEL,MAAM,CAACK,IAAI;MACjBC,KAAK,EAAEC,IAAI,CAACC,SAAS,CAACR,MAAM,CAACM,KAAK;IAAC,EACtC,CAAC;IACF,OAAO,MAAMP,MAAM,CAACU,IAAI,CAACR,GAAG,CAAC;EACjC,CAAC;AACL,CAAC;AAACS,OAAA,CAAAZ,0BAAA,GAAAA,0BAAA"}
1
+ {"version":3,"names":["_clientSfn","require","getClient","config","SFNClient","_objectSpread2","default","region","process","env","AWS_REGION","triggerStepFunctionFactory","exports","client","params","cmd","StartExecutionCommand","stateMachineArn","BG_TASK_SFN_ARN","name","input","JSON","stringify","send"],"sources":["index.ts"],"sourcesContent":["import {\n SFNClient,\n SFNClientConfig,\n StartExecutionCommand,\n StartExecutionCommandInput\n} from \"@aws-sdk/client-sfn\";\n\nexport { SFNClient, StartExecutionCommand, SFNServiceException } from \"@aws-sdk/client-sfn\";\n\nexport type GenericData = string | number | boolean | null | undefined;\n\nexport interface GenericStepFunctionData {\n [key: string]: GenericData | GenericData[];\n}\n\nexport interface TriggerStepFunctionParams<\n T extends GenericStepFunctionData = GenericStepFunctionData\n> extends Partial<Omit<StartExecutionCommandInput, \"input\">> {\n input: T;\n}\n\nconst getClient = (config: SFNClient | SFNClientConfig): SFNClient => {\n if (config instanceof SFNClient) {\n return config;\n }\n return new SFNClient({\n ...config,\n region: config.region || process.env.AWS_REGION\n });\n};\n\nexport const triggerStepFunctionFactory = (config: SFNClient | SFNClientConfig) => {\n const client = getClient(config);\n return async <T extends GenericStepFunctionData = GenericStepFunctionData>(\n params: TriggerStepFunctionParams<T>\n ) => {\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAqBA,IAAMC,SAAS,GAAG,SAAZA,SAASA,CAAIC,MAAmC,EAAgB;EAClE,IAAIA,MAAM,YAAYC,oBAAS,EAAE;IAC7B,OAAOD,MAAM;EACjB;EACA,OAAO,IAAIC,oBAAS,KAAAC,cAAA,CAAAC,OAAA,MAAAD,cAAA,CAAAC,OAAA,MACbH,MAAM;IACTI,MAAM,EAAEJ,MAAM,CAACI,MAAM,IAAIC,OAAO,CAACC,GAAG,CAACC;EAAU,EAClD,CAAC;AACN,CAAC;AAEM,IAAMC,0BAA0B,GAAAC,OAAA,CAAAD,0BAAA,GAAG,SAA7BA,0BAA0BA,CAAIR,MAAmC,EAAK;EAC/E,IAAMU,MAAM,GAAGX,SAAS,CAACC,MAAM,CAAC;EAChC,OAAO,gBACHW,MAAoC,EACnC;IACD,IAAMC,GAAG,GAAG,IAAIC,gCAAqB,KAAAX,cAAA,CAAAC,OAAA,MAAAD,cAAA,CAAAC,OAAA,MAC9BQ,MAAM;MACTG,eAAe,EAAEH,MAAM,CAACG,eAAe,IAAIT,OAAO,CAACC,GAAG,CAACS,eAAe;MACtEC,IAAI,EAAEL,MAAM,CAACK,IAAI;MACjBC,KAAK,EAAEC,IAAI,CAACC,SAAS,CAACR,MAAM,CAACM,KAAK;IAAC,EACtC,CAAC;IACF,OAAO,MAAMP,MAAM,CAACU,IAAI,CAACR,GAAG,CAAC;EACjC,CAAC;AACL,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_clientSqs","require"],"sources":["index.ts"],"sourcesContent":["export {\n SQSClient,\n SendMessageBatchRequestEntry,\n SendMessageBatchCommand\n} from \"@aws-sdk/client-sqs\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA"}
1
+ {"version":3,"names":["_clientSqs","require"],"sources":["index.ts"],"sourcesContent":["export {\n SQSClient,\n SendMessageBatchRequestEntry,\n SendMessageBatchCommand\n} from \"@aws-sdk/client-sqs\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_clientSts","require"],"sources":["index.ts"],"sourcesContent":["export { STS } from \"@aws-sdk/client-sts\";\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA"}
1
+ {"version":3,"names":["_clientSts","require"],"sources":["index.ts"],"sourcesContent":["export { STS } from \"@aws-sdk/client-sts\";\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_credentialProviders","require"],"sources":["index.ts"],"sourcesContent":["export { fromTemporaryCredentials } from \"@aws-sdk/credential-providers\";\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,oBAAA,GAAAC,OAAA"}
1
+ {"version":3,"names":["_credentialProviders","require"],"sources":["index.ts"],"sourcesContent":["export { fromTemporaryCredentials } from \"@aws-sdk/credential-providers\";\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,oBAAA,GAAAC,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_libStorage","require"],"sources":["index.ts"],"sourcesContent":["export {\n Upload,\n Options,\n Progress,\n BodyDataTypes,\n RawDataPart,\n Configuration\n} from \"@aws-sdk/lib-storage\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA"}
1
+ {"version":3,"names":["_libStorage","require"],"sources":["index.ts"],"sourcesContent":["export {\n Upload,\n Options,\n Progress,\n BodyDataTypes,\n RawDataPart,\n Configuration\n} from \"@aws-sdk/lib-storage\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,38 +1,39 @@
1
1
  {
2
2
  "name": "@webiny/aws-sdk",
3
- "version": "5.40.0-beta.2",
3
+ "version": "5.40.0-beta.4",
4
4
  "description": "Wrapper for AWS SDK",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
7
7
  "author": "Webiny Ltd.",
8
8
  "dependencies": {
9
- "@aws-sdk/client-cloudfront": "3.425.0",
10
- "@aws-sdk/client-cloudwatch-events": "3.425.0",
11
- "@aws-sdk/client-cloudwatch-logs": "3.425.0",
12
- "@aws-sdk/client-cognito-identity-provider": "3.425.0",
13
- "@aws-sdk/client-dynamodb": "3.425.0",
14
- "@aws-sdk/client-dynamodb-streams": "3.425.0",
15
- "@aws-sdk/client-eventbridge": "3.425.0",
16
- "@aws-sdk/client-iam": "3.425.0",
17
- "@aws-sdk/client-lambda": "3.425.0",
18
- "@aws-sdk/client-s3": "3.425.0",
19
- "@aws-sdk/client-sfn": "3.484.0",
20
- "@aws-sdk/client-sqs": "3.425.0",
21
- "@aws-sdk/client-sts": "3.425.0",
22
- "@aws-sdk/credential-providers": "3.425.0",
23
- "@aws-sdk/lib-dynamodb": "3.425.0",
24
- "@aws-sdk/lib-storage": "3.451.0",
25
- "@aws-sdk/s3-presigned-post": "3.425.0",
26
- "@aws-sdk/s3-request-presigner": "3.425.0",
27
- "@aws-sdk/util-dynamodb": "3.425.0",
28
- "@webiny/utils": "5.40.0-beta.2"
9
+ "@aws-sdk/client-apigatewaymanagementapi": "3.540.0",
10
+ "@aws-sdk/client-cloudfront": "3.540.0",
11
+ "@aws-sdk/client-cloudwatch-events": "3.540.0",
12
+ "@aws-sdk/client-cloudwatch-logs": "3.540.0",
13
+ "@aws-sdk/client-cognito-identity-provider": "3.540.0",
14
+ "@aws-sdk/client-dynamodb": "3.540.0",
15
+ "@aws-sdk/client-dynamodb-streams": "3.540.0",
16
+ "@aws-sdk/client-eventbridge": "3.540.0",
17
+ "@aws-sdk/client-iam": "3.540.0",
18
+ "@aws-sdk/client-lambda": "3.540.0",
19
+ "@aws-sdk/client-s3": "3.540.0",
20
+ "@aws-sdk/client-sfn": "3.540.0",
21
+ "@aws-sdk/client-sqs": "3.540.0",
22
+ "@aws-sdk/client-sts": "3.540.0",
23
+ "@aws-sdk/credential-providers": "3.540.0",
24
+ "@aws-sdk/lib-dynamodb": "3.540.0",
25
+ "@aws-sdk/lib-storage": "3.540.0",
26
+ "@aws-sdk/s3-presigned-post": "3.540.0",
27
+ "@aws-sdk/s3-request-presigner": "3.540.0",
28
+ "@aws-sdk/util-dynamodb": "3.540.0",
29
+ "@webiny/utils": "5.40.0-beta.4"
29
30
  },
30
31
  "devDependencies": {
31
- "@babel/cli": "7.22.6",
32
- "@babel/core": "7.22.8",
33
- "@webiny/cli": "5.40.0-beta.2",
34
- "@webiny/project-utils": "5.40.0-beta.2",
35
- "rimraf": "3.0.2",
32
+ "@babel/cli": "7.24.1",
33
+ "@babel/core": "7.24.3",
34
+ "@webiny/cli": "5.40.0-beta.4",
35
+ "@webiny/project-utils": "5.40.0-beta.4",
36
+ "rimraf": "5.0.5",
36
37
  "typescript": "4.7.4"
37
38
  },
38
39
  "publishConfig": {
@@ -43,5 +44,5 @@
43
44
  "build": "yarn webiny run build",
44
45
  "watch": "yarn webiny run watch"
45
46
  },
46
- "gitHead": "15e414a228687140ce2f30bd2f55763368e99827"
47
+ "gitHead": "42f3b1c985d6f8317d5c1084838b43a270c79f01"
47
48
  }