@webiny/aws-sdk 0.0.0-unstable.eb196ccd2f → 0.0.0-unstable.f6dc066313

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.
Files changed (47) hide show
  1. package/README.md +11 -0
  2. package/client-apigatewaymanagementapi/index.d.ts +2 -1
  3. package/client-apigatewaymanagementapi/index.js +1 -120
  4. package/client-apigatewaymanagementapi/index.js.map +1 -1
  5. package/client-cloudfront/index.js +1 -12
  6. package/client-cloudfront/index.js.map +1 -1
  7. package/client-cloudwatch/index.d.ts +3 -2
  8. package/client-cloudwatch/index.js +2 -55
  9. package/client-cloudwatch/index.js.map +1 -1
  10. package/client-cognito-identity-provider/index.d.ts +2 -2
  11. package/client-cognito-identity-provider/index.js +6 -60
  12. package/client-cognito-identity-provider/index.js.map +1 -1
  13. package/client-dynamodb/getDocumentClient.js +9 -16
  14. package/client-dynamodb/getDocumentClient.js.map +1 -1
  15. package/client-dynamodb/index.d.ts +3 -3
  16. package/client-dynamodb/index.js +4 -99
  17. package/client-dynamodb/index.js.map +1 -1
  18. package/client-eventbridge/index.d.ts +2 -2
  19. package/client-eventbridge/index.js +4 -28
  20. package/client-eventbridge/index.js.map +1 -1
  21. package/client-iam/index.js +1 -12
  22. package/client-iam/index.js.map +1 -1
  23. package/client-iot/index.js +1 -18
  24. package/client-iot/index.js.map +1 -1
  25. package/client-lambda/index.d.ts +2 -2
  26. package/client-lambda/index.js +6 -42
  27. package/client-lambda/index.js.map +1 -1
  28. package/client-s3/index.d.ts +3 -3
  29. package/client-s3/index.js +13 -158
  30. package/client-s3/index.js.map +1 -1
  31. package/client-scheduler/index.js +7 -43
  32. package/client-scheduler/index.js.map +1 -1
  33. package/client-sfn/index.js +16 -55
  34. package/client-sfn/index.js.map +1 -1
  35. package/client-sqs/index.d.ts +2 -1
  36. package/client-sqs/index.js +1 -24
  37. package/client-sqs/index.js.map +1 -1
  38. package/client-sts/index.js +1 -12
  39. package/client-sts/index.js.map +1 -1
  40. package/credential-providers/index.js +1 -12
  41. package/credential-providers/index.js.map +1 -1
  42. package/lib-storage/index.d.ts +2 -1
  43. package/lib-storage/index.js +1 -42
  44. package/lib-storage/index.js.map +1 -1
  45. package/package.json +30 -33
  46. package/types/index.js +1 -16
  47. package/types/index.js.map +1 -1
@@ -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","ignoreList":[]}
1
+ {"version":3,"names":["IAM"],"sources":["index.ts"],"sourcesContent":["export { IAM } from \"@aws-sdk/client-iam\";\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,qBAAqB","ignoreList":[]}
@@ -1,20 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "DescribeEndpointCommand", {
7
- enumerable: true,
8
- get: function () {
9
- return _clientIot.DescribeEndpointCommand;
10
- }
11
- });
12
- Object.defineProperty(exports, "IoTClient", {
13
- enumerable: true,
14
- get: function () {
15
- return _clientIot.IoTClient;
16
- }
17
- });
18
- var _clientIot = require("@aws-sdk/client-iot");
1
+ export { IoTClient, DescribeEndpointCommand } from "@aws-sdk/client-iot";
19
2
 
20
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_clientIot","require"],"sources":["index.ts"],"sourcesContent":["export { IoTClient, DescribeEndpointCommand } from \"@aws-sdk/client-iot\";\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA","ignoreList":[]}
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":[]}
@@ -1,5 +1,5 @@
1
1
  import type { LambdaClientConfig } from "@aws-sdk/client-lambda";
2
2
  import { LambdaClient } from "@aws-sdk/client-lambda";
3
- export { LambdaClient, InvokeCommand, GetFunctionConfigurationCommand, UpdateFunctionConfigurationCommand, UpdateFunctionCodeCommand } from "@aws-sdk/client-lambda";
4
- export type { InvocationType, InvokeCommandInput, LambdaClientConfig, InvokeCommandOutput, UpdateFunctionConfigurationCommandInput, UpdateFunctionConfigurationCommandOutput, UpdateFunctionCodeCommandInput, UpdateFunctionCodeCommandOutput } from "@aws-sdk/client-lambda";
3
+ export { LambdaClient, InvokeCommand, GetFunctionConfigurationCommand, UpdateFunctionConfigurationCommand, UpdateFunctionCodeCommand, InvocationType } from "@aws-sdk/client-lambda";
4
+ export type { InvokeCommandInput, LambdaClientConfig, InvokeCommandOutput, UpdateFunctionConfigurationCommandInput, UpdateFunctionConfigurationCommandOutput, UpdateFunctionCodeCommandInput, UpdateFunctionCodeCommandOutput } from "@aws-sdk/client-lambda";
5
5
  export declare const createLambdaClient: (input?: Partial<LambdaClientConfig>) => LambdaClient;
@@ -1,58 +1,22 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "GetFunctionConfigurationCommand", {
7
- enumerable: true,
8
- get: function () {
9
- return _clientLambda.GetFunctionConfigurationCommand;
10
- }
11
- });
12
- Object.defineProperty(exports, "InvokeCommand", {
13
- enumerable: true,
14
- get: function () {
15
- return _clientLambda.InvokeCommand;
16
- }
17
- });
18
- Object.defineProperty(exports, "LambdaClient", {
19
- enumerable: true,
20
- get: function () {
21
- return _clientLambda.LambdaClient;
22
- }
23
- });
24
- Object.defineProperty(exports, "UpdateFunctionCodeCommand", {
25
- enumerable: true,
26
- get: function () {
27
- return _clientLambda.UpdateFunctionCodeCommand;
28
- }
29
- });
30
- Object.defineProperty(exports, "UpdateFunctionConfigurationCommand", {
31
- enumerable: true,
32
- get: function () {
33
- return _clientLambda.UpdateFunctionConfigurationCommand;
34
- }
35
- });
36
- exports.createLambdaClient = void 0;
37
- var _utils = require("@webiny/utils");
38
- var _clientLambda = require("@aws-sdk/client-lambda");
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";
39
4
  const DEFAULT_CONFIG = {
40
5
  region: process.env.AWS_REGION
41
6
  };
42
7
  const lambdaClients = {};
43
- const createLambdaClient = input => {
8
+ export const createLambdaClient = input => {
44
9
  const config = {
45
10
  ...DEFAULT_CONFIG,
46
11
  ...input
47
12
  };
48
- const key = (0, _utils.createCacheKey)(config);
13
+ const key = createCacheKey(config);
49
14
  if (lambdaClients[key]) {
50
15
  return lambdaClients[key];
51
16
  }
52
- const client = new _clientLambda.LambdaClient(config);
17
+ const client = new LambdaClient(config);
53
18
  lambdaClients[key] = client;
54
19
  return client;
55
20
  };
56
- exports.createLambdaClient = createLambdaClient;
57
21
 
58
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_utils","require","_clientLambda","DEFAULT_CONFIG","region","process","env","AWS_REGION","lambdaClients","createLambdaClient","input","config","key","createCacheKey","client","LambdaClient","exports"],"sources":["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} from \"@aws-sdk/client-lambda\";\n\nexport type {\n InvocationType,\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,aAAA,GAAAD,OAAA;AAqBA,MAAME,cAAkC,GAAG;EACvCC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC;AACxB,CAAC;AAED,MAAMC,aAA2C,GAAG,CAAC,CAAC;AAE/C,MAAMC,kBAAkB,GAAIC,KAAmC,IAAmB;EACrF,MAAMC,MAA0B,GAAG;IAC/B,GAAGR,cAAc;IACjB,GAAGO;EACP,CAAC;EACD,MAAME,GAAG,GAAG,IAAAC,qBAAc,EAACF,MAAM,CAAC;EAElC,IAAIH,aAAa,CAACI,GAAG,CAAC,EAAE;IACpB,OAAOJ,aAAa,CAACI,GAAG,CAAC;EAC7B;EAEA,MAAME,MAAM,GAAG,IAAIC,0BAAY,CAACJ,MAAM,CAAC;EAEvCH,aAAa,CAACI,GAAG,CAAC,GAAGE,MAAM;EAE3B,OAAOA,MAAM;AACjB,CAAC;AAACE,OAAA,CAAAP,kBAAA,GAAAA,kBAAA","ignoreList":[]}
1
+ {"version":3,"names":["createCacheKey","LambdaClient","InvokeCommand","GetFunctionConfigurationCommand","UpdateFunctionConfigurationCommand","UpdateFunctionCodeCommand","InvocationType","DEFAULT_CONFIG","region","process","env","AWS_REGION","lambdaClients","createLambdaClient","input","config","key","client"],"sources":["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"],"mappings":"AAAA,SAASA,cAAc,QAAQ,eAAe;AAE9C,SAASC,YAAY,QAAQ,wBAAwB;AAErD,SACIA,YAAY,EACZC,aAAa,EACbC,+BAA+B,EAC/BC,kCAAkC,EAClCC,yBAAyB,EACzBC,cAAc,QACX,wBAAwB;AAY/B,MAAMC,cAAkC,GAAG;EACvCC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC;AACxB,CAAC;AAED,MAAMC,aAA2C,GAAG,CAAC,CAAC;AAEtD,OAAO,MAAMC,kBAAkB,GAAIC,KAAmC,IAAmB;EACrF,MAAMC,MAA0B,GAAG;IAC/B,GAAGR,cAAc;IACjB,GAAGO;EACP,CAAC;EACD,MAAME,GAAG,GAAGhB,cAAc,CAACe,MAAM,CAAC;EAElC,IAAIH,aAAa,CAACI,GAAG,CAAC,EAAE;IACpB,OAAOJ,aAAa,CAACI,GAAG,CAAC;EAC7B;EAEA,MAAMC,MAAM,GAAG,IAAIhB,YAAY,CAACc,MAAM,CAAC;EAEvCH,aAAa,CAACI,GAAG,CAAC,GAAGC,MAAM;EAE3B,OAAOA,MAAM;AACjB,CAAC","ignoreList":[]}
@@ -1,9 +1,9 @@
1
1
  import type { S3ClientConfig as BaseS3ClientConfig } from "@aws-sdk/client-s3";
2
2
  import { S3, S3Client } from "@aws-sdk/client-s3";
3
- export { CopyObjectCommand, GetObjectCommand, HeadObjectCommand, ListObjectsCommand, UploadPartCopyCommand, ListObjectsV2Command, ListPartsCommand, ObjectCannedACL, Part, DeleteObjectCommand, PutObjectCommand, PutObjectCommandInput, PutObjectRequest, UploadPartCommand, AbortMultipartUploadCommand, CompleteMultipartUploadCommand, CreateMultipartUploadCommand, S3, S3Client } from "@aws-sdk/client-s3";
4
- export type { CopyObjectCommandInput, CopyObjectCommandOutput, DeleteObjectCommandInput, DeleteObjectsCommandInput, DeleteObjectsCommandOutput, AbortMultipartUploadCommandInput, CompleteMultipartUploadCommandInput, UploadPartCopyCommandInput, CreateMultipartUploadCommandInput, CompleteMultipartUploadCommandOutput, AbortMultipartUploadCommandOutput, CompleteMultipartUploadOutput, DeleteObjectOutput, GetObjectOutput, CompletedPart, GetObjectCommandOutput, HeadObjectOutput, HeadObjectCommandInput, HeadObjectCommandOutput, DeleteObjectCommandOutput, ListObjectsOutput, ListPartsCommandOutput, ListPartsOutput, PutObjectCommandOutput, UploadPartCommandOutput } from "@aws-sdk/client-s3";
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 type { PutObjectRequest, PutObjectCommandInput, Part, CopyObjectCommandInput, CopyObjectCommandOutput, DeleteObjectCommandInput, DeleteObjectsCommandInput, DeleteObjectsCommandOutput, AbortMultipartUploadCommandInput, CompleteMultipartUploadCommandInput, UploadPartCopyCommandInput, CreateMultipartUploadCommandInput, CompleteMultipartUploadCommandOutput, AbortMultipartUploadCommandOutput, CompleteMultipartUploadOutput, DeleteObjectOutput, GetObjectOutput, CompletedPart, GetObjectCommandOutput, HeadObjectOutput, HeadObjectCommandInput, HeadObjectCommandOutput, DeleteObjectCommandOutput, ListObjectsOutput, ListPartsCommandOutput, ListPartsOutput, PutObjectCommandOutput, UploadPartCommandOutput } from "@aws-sdk/client-s3";
5
5
  export { createPresignedPost } from "@aws-sdk/s3-presigned-post";
6
- export { PresignedPost, PresignedPostOptions } from "@aws-sdk/s3-presigned-post";
6
+ export type { PresignedPost, PresignedPostOptions } from "@aws-sdk/s3-presigned-post";
7
7
  export { getSignedUrl } from "@aws-sdk/s3-request-presigner";
8
8
  export interface S3ClientConfig extends BaseS3ClientConfig {
9
9
  cache?: boolean;
@@ -1,153 +1,10 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "AbortMultipartUploadCommand", {
7
- enumerable: true,
8
- get: function () {
9
- return _clientS.AbortMultipartUploadCommand;
10
- }
11
- });
12
- Object.defineProperty(exports, "CompleteMultipartUploadCommand", {
13
- enumerable: true,
14
- get: function () {
15
- return _clientS.CompleteMultipartUploadCommand;
16
- }
17
- });
18
- Object.defineProperty(exports, "CopyObjectCommand", {
19
- enumerable: true,
20
- get: function () {
21
- return _clientS.CopyObjectCommand;
22
- }
23
- });
24
- Object.defineProperty(exports, "CreateMultipartUploadCommand", {
25
- enumerable: true,
26
- get: function () {
27
- return _clientS.CreateMultipartUploadCommand;
28
- }
29
- });
30
- Object.defineProperty(exports, "DeleteObjectCommand", {
31
- enumerable: true,
32
- get: function () {
33
- return _clientS.DeleteObjectCommand;
34
- }
35
- });
36
- Object.defineProperty(exports, "GetObjectCommand", {
37
- enumerable: true,
38
- get: function () {
39
- return _clientS.GetObjectCommand;
40
- }
41
- });
42
- Object.defineProperty(exports, "HeadObjectCommand", {
43
- enumerable: true,
44
- get: function () {
45
- return _clientS.HeadObjectCommand;
46
- }
47
- });
48
- Object.defineProperty(exports, "ListObjectsCommand", {
49
- enumerable: true,
50
- get: function () {
51
- return _clientS.ListObjectsCommand;
52
- }
53
- });
54
- Object.defineProperty(exports, "ListObjectsV2Command", {
55
- enumerable: true,
56
- get: function () {
57
- return _clientS.ListObjectsV2Command;
58
- }
59
- });
60
- Object.defineProperty(exports, "ListPartsCommand", {
61
- enumerable: true,
62
- get: function () {
63
- return _clientS.ListPartsCommand;
64
- }
65
- });
66
- Object.defineProperty(exports, "ObjectCannedACL", {
67
- enumerable: true,
68
- get: function () {
69
- return _clientS.ObjectCannedACL;
70
- }
71
- });
72
- Object.defineProperty(exports, "Part", {
73
- enumerable: true,
74
- get: function () {
75
- return _clientS.Part;
76
- }
77
- });
78
- Object.defineProperty(exports, "PresignedPost", {
79
- enumerable: true,
80
- get: function () {
81
- return _s3PresignedPost.PresignedPost;
82
- }
83
- });
84
- Object.defineProperty(exports, "PresignedPostOptions", {
85
- enumerable: true,
86
- get: function () {
87
- return _s3PresignedPost.PresignedPostOptions;
88
- }
89
- });
90
- Object.defineProperty(exports, "PutObjectCommand", {
91
- enumerable: true,
92
- get: function () {
93
- return _clientS.PutObjectCommand;
94
- }
95
- });
96
- Object.defineProperty(exports, "PutObjectCommandInput", {
97
- enumerable: true,
98
- get: function () {
99
- return _clientS.PutObjectCommandInput;
100
- }
101
- });
102
- Object.defineProperty(exports, "PutObjectRequest", {
103
- enumerable: true,
104
- get: function () {
105
- return _clientS.PutObjectRequest;
106
- }
107
- });
108
- Object.defineProperty(exports, "S3", {
109
- enumerable: true,
110
- get: function () {
111
- return _clientS.S3;
112
- }
113
- });
114
- Object.defineProperty(exports, "S3Client", {
115
- enumerable: true,
116
- get: function () {
117
- return _clientS.S3Client;
118
- }
119
- });
120
- Object.defineProperty(exports, "UploadPartCommand", {
121
- enumerable: true,
122
- get: function () {
123
- return _clientS.UploadPartCommand;
124
- }
125
- });
126
- Object.defineProperty(exports, "UploadPartCopyCommand", {
127
- enumerable: true,
128
- get: function () {
129
- return _clientS.UploadPartCopyCommand;
130
- }
131
- });
132
- Object.defineProperty(exports, "createPresignedPost", {
133
- enumerable: true,
134
- get: function () {
135
- return _s3PresignedPost.createPresignedPost;
136
- }
137
- });
138
- exports.createS3Client = exports.createS3 = void 0;
139
- Object.defineProperty(exports, "getSignedUrl", {
140
- enumerable: true,
141
- get: function () {
142
- return _s3RequestPresigner.getSignedUrl;
143
- }
144
- });
145
- var _clientS = require("@aws-sdk/client-s3");
146
- var _utils = require("@webiny/utils");
147
- var _s3PresignedPost = require("@aws-sdk/s3-presigned-post");
148
- var _s3RequestPresigner = require("@aws-sdk/s3-request-presigner");
1
+ import { S3, S3Client } from "@aws-sdk/client-s3";
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";
149
6
  const s3ClientsCache = new Map();
150
- const createS3Client = initial => {
7
+ export const createS3Client = initial => {
151
8
  const options = {
152
9
  region: process.env.AWS_REGION,
153
10
  ...initial
@@ -155,23 +12,22 @@ const createS3Client = initial => {
155
12
  const skipCache = options.cache === false;
156
13
  delete options.cache;
157
14
  if (skipCache) {
158
- return new _clientS.S3Client({
15
+ return new S3Client({
159
16
  ...options
160
17
  });
161
18
  }
162
- const key = (0, _utils.createCacheKey)(options);
19
+ const key = createCacheKey(options);
163
20
  if (s3ClientsCache.has(key)) {
164
21
  return s3ClientsCache.get(key);
165
22
  }
166
- const instance = new _clientS.S3Client({
23
+ const instance = new S3Client({
167
24
  ...options
168
25
  });
169
26
  s3ClientsCache.set(key, instance);
170
27
  return instance;
171
28
  };
172
- exports.createS3Client = createS3Client;
173
29
  const s3Cache = new Map();
174
- const createS3 = initial => {
30
+ export const createS3 = initial => {
175
31
  const options = {
176
32
  region: process.env.AWS_REGION,
177
33
  ...initial
@@ -179,16 +35,15 @@ const createS3 = initial => {
179
35
  const skipCache = options.cache === false;
180
36
  delete options.cache;
181
37
  if (skipCache) {
182
- return new _clientS.S3(options);
38
+ return new S3(options);
183
39
  }
184
- const key = (0, _utils.createCacheKey)(options);
40
+ const key = createCacheKey(options);
185
41
  if (s3Cache.has(key)) {
186
42
  return s3Cache.get(key);
187
43
  }
188
- const instance = new _clientS.S3(options);
44
+ const instance = new S3(options);
189
45
  s3Cache.set(key, instance);
190
46
  return instance;
191
47
  };
192
- exports.createS3 = createS3;
193
48
 
194
49
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_clientS","require","_utils","_s3PresignedPost","_s3RequestPresigner","s3ClientsCache","Map","createS3Client","initial","options","region","process","env","AWS_REGION","skipCache","cache","S3Client","key","createCacheKey","has","get","instance","set","exports","s3Cache","createS3","S3"],"sources":["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 Part,\n DeleteObjectCommand,\n PutObjectCommand,\n PutObjectCommandInput,\n PutObjectRequest,\n UploadPartCommand,\n AbortMultipartUploadCommand,\n CompleteMultipartUploadCommand,\n CreateMultipartUploadCommand,\n S3,\n S3Client\n} from \"@aws-sdk/client-s3\";\n\nexport type {\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 { 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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAoDA,IAAAE,gBAAA,GAAAF,OAAA;AAGA,IAAAG,mBAAA,GAAAH,OAAA;AAEA,MAAMI,cAAc,GAAG,IAAIC,GAAG,CAAmB,CAAC;AAM3C,MAAMC,cAAc,GAAIC,OAAwB,IAAe;EAClE,MAAMC,OAAuB,GAAG;IAC5BC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC,UAAU;IAC9B,GAAGL;EACP,CAAC;EACD,MAAMM,SAAS,GAAGL,OAAO,CAACM,KAAK,KAAK,KAAK;EACzC,OAAON,OAAO,CAACM,KAAK;EACpB,IAAID,SAAS,EAAE;IACX,OAAO,IAAIE,iBAAQ,CAAC;MAChB,GAAGP;IACP,CAAC,CAAC;EACN;EAEA,MAAMQ,GAAG,GAAG,IAAAC,qBAAc,EAACT,OAAO,CAAC;EACnC,IAAIJ,cAAc,CAACc,GAAG,CAACF,GAAG,CAAC,EAAE;IACzB,OAAOZ,cAAc,CAACe,GAAG,CAACH,GAAG,CAAC;EAClC;EAEA,MAAMI,QAAQ,GAAG,IAAIL,iBAAQ,CAAC;IAC1B,GAAGP;EACP,CAAC,CAAC;EACFJ,cAAc,CAACiB,GAAG,CAACL,GAAG,EAAEI,QAAQ,CAAC;EAEjC,OAAOA,QAAQ;AACnB,CAAC;AAACE,OAAA,CAAAhB,cAAA,GAAAA,cAAA;AAEF,MAAMiB,OAAO,GAAG,IAAIlB,GAAG,CAAa,CAAC;AAE9B,MAAMmB,QAAQ,GAAIjB,OAAwB,IAAS;EACtD,MAAMC,OAAuB,GAAG;IAC5BC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC,UAAU;IAC9B,GAAGL;EACP,CAAC;EACD,MAAMM,SAAS,GAAGL,OAAO,CAACM,KAAK,KAAK,KAAK;EACzC,OAAON,OAAO,CAACM,KAAK;EACpB,IAAID,SAAS,EAAE;IACX,OAAO,IAAIY,WAAE,CAACjB,OAAO,CAAC;EAC1B;EACA,MAAMQ,GAAG,GAAG,IAAAC,qBAAc,EAACT,OAAO,CAAC;EACnC,IAAIe,OAAO,CAACL,GAAG,CAACF,GAAG,CAAC,EAAE;IAClB,OAAOO,OAAO,CAACJ,GAAG,CAACH,GAAG,CAAC;EAC3B;EAEA,MAAMI,QAAQ,GAAG,IAAIK,WAAE,CAACjB,OAAO,CAAC;EAEhCe,OAAO,CAACF,GAAG,CAACL,GAAG,EAAEI,QAAQ,CAAC;EAC1B,OAAOA,QAAQ;AACnB,CAAC;AAACE,OAAA,CAAAE,QAAA,GAAAA,QAAA","ignoreList":[]}
1
+ {"version":3,"names":["S3","S3Client","createCacheKey","CopyObjectCommand","GetObjectCommand","HeadObjectCommand","ListObjectsCommand","UploadPartCopyCommand","ListObjectsV2Command","ListPartsCommand","ObjectCannedACL","DeleteObjectCommand","PutObjectCommand","UploadPartCommand","AbortMultipartUploadCommand","CompleteMultipartUploadCommand","CreateMultipartUploadCommand","createPresignedPost","getSignedUrl","s3ClientsCache","Map","createS3Client","initial","options","region","process","env","AWS_REGION","skipCache","cache","key","has","get","instance","set","s3Cache","createS3"],"sources":["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"],"mappings":"AACA,SAASA,EAAE,EAAEC,QAAQ,QAAQ,oBAAoB;AACjD,SAASC,cAAc,QAAQ,eAAe;AAE9C,SACIC,iBAAiB,EACjBC,gBAAgB,EAChBC,iBAAiB,EACjBC,kBAAkB,EAClBC,qBAAqB,EACrBC,oBAAoB,EACpBC,gBAAgB,EAChBC,eAAe,EACfC,mBAAmB,EACnBC,gBAAgB,EAChBC,iBAAiB,EACjBC,2BAA2B,EAC3BC,8BAA8B,EAC9BC,4BAA4B,EAC5BhB,EAAE,EACFC,QAAQ,QACL,oBAAoB;AAiC3B,SAASgB,mBAAmB,QAAQ,4BAA4B;AAGhE,SAASC,YAAY,QAAQ,+BAA+B;AAE5D,MAAMC,cAAc,GAAG,IAAIC,GAAG,CAAmB,CAAC;AAMlD,OAAO,MAAMC,cAAc,GAAIC,OAAwB,IAAe;EAClE,MAAMC,OAAuB,GAAG;IAC5BC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC,UAAU;IAC9B,GAAGL;EACP,CAAC;EACD,MAAMM,SAAS,GAAGL,OAAO,CAACM,KAAK,KAAK,KAAK;EACzC,OAAON,OAAO,CAACM,KAAK;EACpB,IAAID,SAAS,EAAE;IACX,OAAO,IAAI3B,QAAQ,CAAC;MAChB,GAAGsB;IACP,CAAC,CAAC;EACN;EAEA,MAAMO,GAAG,GAAG5B,cAAc,CAACqB,OAAO,CAAC;EACnC,IAAIJ,cAAc,CAACY,GAAG,CAACD,GAAG,CAAC,EAAE;IACzB,OAAOX,cAAc,CAACa,GAAG,CAACF,GAAG,CAAC;EAClC;EAEA,MAAMG,QAAQ,GAAG,IAAIhC,QAAQ,CAAC;IAC1B,GAAGsB;EACP,CAAC,CAAC;EACFJ,cAAc,CAACe,GAAG,CAACJ,GAAG,EAAEG,QAAQ,CAAC;EAEjC,OAAOA,QAAQ;AACnB,CAAC;AAED,MAAME,OAAO,GAAG,IAAIf,GAAG,CAAa,CAAC;AAErC,OAAO,MAAMgB,QAAQ,GAAId,OAAwB,IAAS;EACtD,MAAMC,OAAuB,GAAG;IAC5BC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC,UAAU;IAC9B,GAAGL;EACP,CAAC;EACD,MAAMM,SAAS,GAAGL,OAAO,CAACM,KAAK,KAAK,KAAK;EACzC,OAAON,OAAO,CAACM,KAAK;EACpB,IAAID,SAAS,EAAE;IACX,OAAO,IAAI5B,EAAE,CAACuB,OAAO,CAAC;EAC1B;EACA,MAAMO,GAAG,GAAG5B,cAAc,CAACqB,OAAO,CAAC;EACnC,IAAIY,OAAO,CAACJ,GAAG,CAACD,GAAG,CAAC,EAAE;IAClB,OAAOK,OAAO,CAACH,GAAG,CAACF,GAAG,CAAC;EAC3B;EAEA,MAAMG,QAAQ,GAAG,IAAIjC,EAAE,CAACuB,OAAO,CAAC;EAEhCY,OAAO,CAACD,GAAG,CAACJ,GAAG,EAAEG,QAAQ,CAAC;EAC1B,OAAOA,QAAQ;AACnB,CAAC","ignoreList":[]}
@@ -1,43 +1,8 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "CreateScheduleCommand", {
7
- enumerable: true,
8
- get: function () {
9
- return _clientScheduler.CreateScheduleCommand;
10
- }
11
- });
12
- Object.defineProperty(exports, "DeleteScheduleCommand", {
13
- enumerable: true,
14
- get: function () {
15
- return _clientScheduler.DeleteScheduleCommand;
16
- }
17
- });
18
- Object.defineProperty(exports, "GetScheduleCommand", {
19
- enumerable: true,
20
- get: function () {
21
- return _clientScheduler.GetScheduleCommand;
22
- }
23
- });
24
- Object.defineProperty(exports, "SchedulerClient", {
25
- enumerable: true,
26
- get: function () {
27
- return _clientScheduler.SchedulerClient;
28
- }
29
- });
30
- Object.defineProperty(exports, "UpdateScheduleCommand", {
31
- enumerable: true,
32
- get: function () {
33
- return _clientScheduler.UpdateScheduleCommand;
34
- }
35
- });
36
- exports.createSchedulerClient = void 0;
37
- var _utils = require("@webiny/utils");
38
- var _clientScheduler = require("@aws-sdk/client-scheduler");
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";
39
4
  const clients = {};
40
- const createSchedulerClient = (input = {}) => {
5
+ export const createSchedulerClient = (input = {}) => {
41
6
  const options = {
42
7
  region: process.env.AWS_REGION,
43
8
  ...input
@@ -45,16 +10,15 @@ const createSchedulerClient = (input = {}) => {
45
10
  const skipCache = options.cache === false;
46
11
  delete options.cache;
47
12
  if (skipCache) {
48
- return new _clientScheduler.SchedulerClient(options);
13
+ return new SchedulerClient(options);
49
14
  }
50
- const key = (0, _utils.createCacheKey)(options);
15
+ const key = createCacheKey(options);
51
16
  if (clients[key]) {
52
17
  return clients[key];
53
18
  }
54
- const client = new _clientScheduler.SchedulerClient(options);
19
+ const client = new SchedulerClient(options);
55
20
  clients[key] = client;
56
21
  return client;
57
22
  };
58
- exports.createSchedulerClient = createSchedulerClient;
59
23
 
60
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_utils","require","_clientScheduler","clients","createSchedulerClient","input","options","region","process","env","AWS_REGION","skipCache","cache","SchedulerClient","key","createCacheKey","client","exports"],"sources":["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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,gBAAA,GAAAD,OAAA;AAqBA,MAAME,OAAwC,GAAG,CAAC,CAAC;AAM5C,MAAMC,qBAAqB,GAAGA,CACjCC,KAAqC,GAAG,CAAC,CAAC,KACxB;EAClB,MAAMC,OAA8B,GAAG;IACnCC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC,UAAU;IAC9B,GAAGL;EACP,CAAC;EAED,MAAMM,SAAS,GAAGL,OAAO,CAACM,KAAK,KAAK,KAAK;EACzC,OAAON,OAAO,CAACM,KAAK;EACpB,IAAID,SAAS,EAAE;IACX,OAAO,IAAIE,gCAAe,CAACP,OAAO,CAAC;EACvC;EAEA,MAAMQ,GAAG,GAAG,IAAAC,qBAAc,EAACT,OAAO,CAAC;EAEnC,IAAIH,OAAO,CAACW,GAAG,CAAC,EAAE;IACd,OAAOX,OAAO,CAACW,GAAG,CAAC;EACvB;EAEA,MAAME,MAAM,GAAG,IAAIH,gCAAe,CAACP,OAAO,CAAC;EAE3CH,OAAO,CAACW,GAAG,CAAC,GAAGE,MAAM;EAErB,OAAOA,MAAM;AACjB,CAAC;AAACC,OAAA,CAAAb,qBAAA,GAAAA,qBAAA","ignoreList":[]}
1
+ {"version":3,"names":["createCacheKey","SchedulerClient","GetScheduleCommand","CreateScheduleCommand","UpdateScheduleCommand","DeleteScheduleCommand","clients","createSchedulerClient","input","options","region","process","env","AWS_REGION","skipCache","cache","key","client"],"sources":["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"],"mappings":"AAAA,SAASA,cAAc,QAAQ,eAAe;AAE9C,SAASC,eAAe,QAAQ,2BAA2B;AAE3D,SACIA,eAAe,EACfC,kBAAkB,EAClBC,qBAAqB,EACrBC,qBAAqB,EACrBC,qBAAqB,QAClB,2BAA2B;AAalC,MAAMC,OAAwC,GAAG,CAAC,CAAC;AAMnD,OAAO,MAAMC,qBAAqB,GAAGA,CACjCC,KAAqC,GAAG,CAAC,CAAC,KACxB;EAClB,MAAMC,OAA8B,GAAG;IACnCC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC,UAAU;IAC9B,GAAGL;EACP,CAAC;EAED,MAAMM,SAAS,GAAGL,OAAO,CAACM,KAAK,KAAK,KAAK;EACzC,OAAON,OAAO,CAACM,KAAK;EACpB,IAAID,SAAS,EAAE;IACX,OAAO,IAAIb,eAAe,CAACQ,OAAO,CAAC;EACvC;EAEA,MAAMO,GAAG,GAAGhB,cAAc,CAACS,OAAO,CAAC;EAEnC,IAAIH,OAAO,CAACU,GAAG,CAAC,EAAE;IACd,OAAOV,OAAO,CAACU,GAAG,CAAC;EACvB;EAEA,MAAMC,MAAM,GAAG,IAAIhB,eAAe,CAACQ,OAAO,CAAC;EAE3CH,OAAO,CAACU,GAAG,CAAC,GAAGC,MAAM;EAErB,OAAOA,MAAM;AACjB,CAAC","ignoreList":[]}
@@ -1,43 +1,8 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "DescribeExecutionCommand", {
7
- enumerable: true,
8
- get: function () {
9
- return _clientSfn.DescribeExecutionCommand;
10
- }
11
- });
12
- Object.defineProperty(exports, "ListExecutionsCommand", {
13
- enumerable: true,
14
- get: function () {
15
- return _clientSfn.ListExecutionsCommand;
16
- }
17
- });
18
- Object.defineProperty(exports, "SFNClient", {
19
- enumerable: true,
20
- get: function () {
21
- return _clientSfn.SFNClient;
22
- }
23
- });
24
- Object.defineProperty(exports, "SFNServiceException", {
25
- enumerable: true,
26
- get: function () {
27
- return _clientSfn.SFNServiceException;
28
- }
29
- });
30
- Object.defineProperty(exports, "StartExecutionCommand", {
31
- enumerable: true,
32
- get: function () {
33
- return _clientSfn.StartExecutionCommand;
34
- }
35
- });
36
- exports.triggerStepFunctionFactory = exports.listExecutionsFactory = exports.describeExecutionFactory = exports.createStepFunctionClient = void 0;
37
- var _clientSfn = require("@aws-sdk/client-sfn");
38
- var _utils = require("@webiny/utils");
1
+ import { DescribeExecutionCommand, ListExecutionsCommand, SFNClient, SFNServiceException, StartExecutionCommand } from "@aws-sdk/client-sfn";
2
+ import { createCacheKey } from "@webiny/utils";
3
+ export { SFNClient, DescribeExecutionCommand, SFNServiceException, StartExecutionCommand, ListExecutionsCommand };
39
4
  const stepFunctionClientsCache = new Map();
40
- const createStepFunctionClient = initial => {
5
+ export const createStepFunctionClient = initial => {
41
6
  const config = {
42
7
  region: process.env.AWS_REGION,
43
8
  ...initial
@@ -45,23 +10,22 @@ const createStepFunctionClient = initial => {
45
10
  const skipCache = config.cache === false;
46
11
  delete config.cache;
47
12
  if (skipCache) {
48
- return new _clientSfn.SFNClient({
13
+ return new SFNClient({
49
14
  ...config
50
15
  });
51
16
  }
52
- const key = (0, _utils.createCacheKey)(config);
17
+ const key = createCacheKey(config);
53
18
  if (stepFunctionClientsCache.has(key)) {
54
19
  return stepFunctionClientsCache.get(key);
55
20
  }
56
- return new _clientSfn.SFNClient({
21
+ return new SFNClient({
57
22
  ...config
58
23
  });
59
24
  };
60
- exports.createStepFunctionClient = createStepFunctionClient;
61
- const triggerStepFunctionFactory = input => {
62
- const client = input instanceof _clientSfn.SFNClient ? input : createStepFunctionClient(input);
25
+ export const triggerStepFunctionFactory = input => {
26
+ const client = input instanceof SFNClient ? input : createStepFunctionClient(input);
63
27
  return async params => {
64
- const cmd = new _clientSfn.StartExecutionCommand({
28
+ const cmd = new StartExecutionCommand({
65
29
  ...params,
66
30
  stateMachineArn: params.stateMachineArn || process.env.BG_TASK_SFN_ARN,
67
31
  name: params.name,
@@ -70,27 +34,24 @@ const triggerStepFunctionFactory = input => {
70
34
  return await client.send(cmd);
71
35
  };
72
36
  };
73
- exports.triggerStepFunctionFactory = triggerStepFunctionFactory;
74
- const listExecutionsFactory = input => {
75
- const client = input instanceof _clientSfn.SFNClient ? input : createStepFunctionClient(input);
37
+ export const listExecutionsFactory = input => {
38
+ const client = input instanceof SFNClient ? input : createStepFunctionClient(input);
76
39
  return async params => {
77
- const cmd = new _clientSfn.ListExecutionsCommand({
40
+ const cmd = new ListExecutionsCommand({
78
41
  ...params,
79
42
  stateMachineArn: params.stateMachineArn || process.env.BG_TASK_SFN_ARN
80
43
  });
81
44
  return await client.send(cmd);
82
45
  };
83
46
  };
84
- exports.listExecutionsFactory = listExecutionsFactory;
85
- const describeExecutionFactory = input => {
86
- const client = input instanceof _clientSfn.SFNClient ? input : createStepFunctionClient(input);
47
+ export const describeExecutionFactory = input => {
48
+ const client = input instanceof SFNClient ? input : createStepFunctionClient(input);
87
49
  return async params => {
88
- const cmd = new _clientSfn.DescribeExecutionCommand({
50
+ const cmd = new DescribeExecutionCommand({
89
51
  ...params
90
52
  });
91
53
  return await client.send(cmd);
92
54
  };
93
55
  };
94
- exports.describeExecutionFactory = describeExecutionFactory;
95
56
 
96
57
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_clientSfn","require","_utils","stepFunctionClientsCache","Map","createStepFunctionClient","initial","config","region","process","env","AWS_REGION","skipCache","cache","SFNClient","key","createCacheKey","has","get","exports","triggerStepFunctionFactory","input","client","params","cmd","StartExecutionCommand","stateMachineArn","BG_TASK_SFN_ARN","name","JSON","stringify","send","listExecutionsFactory","ListExecutionsCommand","describeExecutionFactory","DescribeExecutionCommand"],"sources":["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>\n extends Partial<Omit<StartExecutionCommandInput, \"input\">> {\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,IAAAA,UAAA,GAAAC,OAAA;AAOA,IAAAC,MAAA,GAAAD,OAAA;AA4BA,MAAME,wBAAwB,GAAG,IAAIC,GAAG,CAAoB,CAAC;AAEtD,MAAMC,wBAAwB,GAAIC,OAAyB,IAAgB;EAC9E,MAAMC,MAAuB,GAAG;IAC5BC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC,UAAU;IAC9B,GAAGL;EACP,CAAC;EACD,MAAMM,SAAS,GAAGL,MAAM,CAACM,KAAK,KAAK,KAAK;EACxC,OAAON,MAAM,CAACM,KAAK;EACnB,IAAID,SAAS,EAAE;IACX,OAAO,IAAIE,oBAAS,CAAC;MACjB,GAAGP;IACP,CAAC,CAAC;EACN;EAEA,MAAMQ,GAAG,GAAG,IAAAC,qBAAc,EAACT,MAAM,CAAC;EAClC,IAAIJ,wBAAwB,CAACc,GAAG,CAACF,GAAG,CAAC,EAAE;IACnC,OAAOZ,wBAAwB,CAACe,GAAG,CAACH,GAAG,CAAC;EAC5C;EAEA,OAAO,IAAID,oBAAS,CAAC;IACjB,GAAGP;EACP,CAAC,CAAC;AACN,CAAC;AAACY,OAAA,CAAAd,wBAAA,GAAAA,wBAAA;AAEK,MAAMe,0BAA0B,GAAIC,KAAmC,IAAK;EAC/E,MAAMC,MAAM,GAAGD,KAAK,YAAYP,oBAAS,GAAGO,KAAK,GAAGhB,wBAAwB,CAACgB,KAAK,CAAC;EACnF,OAAO,MACHE,MAAoC,IACG;IACvC,MAAMC,GAAG,GAAG,IAAIC,gCAAqB,CAAC;MAClC,GAAGF,MAAM;MACTG,eAAe,EAAEH,MAAM,CAACG,eAAe,IAAIjB,OAAO,CAACC,GAAG,CAACiB,eAAe;MACtEC,IAAI,EAAEL,MAAM,CAACK,IAAI;MACjBP,KAAK,EAAEQ,IAAI,CAACC,SAAS,CAACP,MAAM,CAACF,KAAK;IACtC,CAAC,CAAC;IACF,OAAO,MAAMC,MAAM,CAACS,IAAI,CAACP,GAAG,CAAC;EACjC,CAAC;AACL,CAAC;AAACL,OAAA,CAAAC,0BAAA,GAAAA,0BAAA;AAEK,MAAMY,qBAAqB,GAAIX,KAAmC,IAAK;EAC1E,MAAMC,MAAM,GAAGD,KAAK,YAAYP,oBAAS,GAAGO,KAAK,GAAGhB,wBAAwB,CAACgB,KAAK,CAAC;EACnF,OAAO,MAAOE,MAAkC,IAA2C;IACvF,MAAMC,GAAG,GAAG,IAAIS,gCAAqB,CAAC;MAClC,GAAGV,MAAM;MACTG,eAAe,EAAEH,MAAM,CAACG,eAAe,IAAIjB,OAAO,CAACC,GAAG,CAACiB;IAC3D,CAAC,CAAC;IACF,OAAO,MAAML,MAAM,CAACS,IAAI,CAACP,GAAG,CAAC;EACjC,CAAC;AACL,CAAC;AAACL,OAAA,CAAAa,qBAAA,GAAAA,qBAAA;AAEK,MAAME,wBAAwB,GAAIb,KAAmC,IAAK;EAC7E,MAAMC,MAAM,GAAGD,KAAK,YAAYP,oBAAS,GAAGO,KAAK,GAAGhB,wBAAwB,CAACgB,KAAK,CAAC;EACnF,OAAO,MACHE,MAAqC,IACK;IAC1C,MAAMC,GAAG,GAAG,IAAIW,mCAAwB,CAAC;MACrC,GAAGZ;IACP,CAAC,CAAC;IACF,OAAO,MAAMD,MAAM,CAACS,IAAI,CAACP,GAAG,CAAC;EACjC,CAAC;AACL,CAAC;AAACL,OAAA,CAAAe,wBAAA,GAAAA,wBAAA","ignoreList":[]}
1
+ {"version":3,"names":["DescribeExecutionCommand","ListExecutionsCommand","SFNClient","SFNServiceException","StartExecutionCommand","createCacheKey","stepFunctionClientsCache","Map","createStepFunctionClient","initial","config","region","process","env","AWS_REGION","skipCache","cache","key","has","get","triggerStepFunctionFactory","input","client","params","cmd","stateMachineArn","BG_TASK_SFN_ARN","name","JSON","stringify","send","listExecutionsFactory","describeExecutionFactory"],"sources":["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>\n extends Partial<Omit<StartExecutionCommandInput, \"input\">> {\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"],"mappings":"AASA,SACIA,wBAAwB,EACxBC,qBAAqB,EACrBC,SAAS,EACTC,mBAAmB,EACnBC,qBAAqB,QAClB,qBAAqB;AAC5B,SAASC,cAAc,QAA4B,eAAe;AAElE,SACIH,SAAS,EACTF,wBAAwB,EACxBG,mBAAmB,EACnBC,qBAAqB,EACrBH,qBAAqB;AAqBzB,MAAMK,wBAAwB,GAAG,IAAIC,GAAG,CAAoB,CAAC;AAE7D,OAAO,MAAMC,wBAAwB,GAAIC,OAAyB,IAAgB;EAC9E,MAAMC,MAAuB,GAAG;IAC5BC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC,UAAU;IAC9B,GAAGL;EACP,CAAC;EACD,MAAMM,SAAS,GAAGL,MAAM,CAACM,KAAK,KAAK,KAAK;EACxC,OAAON,MAAM,CAACM,KAAK;EACnB,IAAID,SAAS,EAAE;IACX,OAAO,IAAIb,SAAS,CAAC;MACjB,GAAGQ;IACP,CAAC,CAAC;EACN;EAEA,MAAMO,GAAG,GAAGZ,cAAc,CAACK,MAAM,CAAC;EAClC,IAAIJ,wBAAwB,CAACY,GAAG,CAACD,GAAG,CAAC,EAAE;IACnC,OAAOX,wBAAwB,CAACa,GAAG,CAACF,GAAG,CAAC;EAC5C;EAEA,OAAO,IAAIf,SAAS,CAAC;IACjB,GAAGQ;EACP,CAAC,CAAC;AACN,CAAC;AAED,OAAO,MAAMU,0BAA0B,GAAIC,KAAmC,IAAK;EAC/E,MAAMC,MAAM,GAAGD,KAAK,YAAYnB,SAAS,GAAGmB,KAAK,GAAGb,wBAAwB,CAACa,KAAK,CAAC;EACnF,OAAO,MACHE,MAAoC,IACG;IACvC,MAAMC,GAAG,GAAG,IAAIpB,qBAAqB,CAAC;MAClC,GAAGmB,MAAM;MACTE,eAAe,EAAEF,MAAM,CAACE,eAAe,IAAIb,OAAO,CAACC,GAAG,CAACa,eAAe;MACtEC,IAAI,EAAEJ,MAAM,CAACI,IAAI;MACjBN,KAAK,EAAEO,IAAI,CAACC,SAAS,CAACN,MAAM,CAACF,KAAK;IACtC,CAAC,CAAC;IACF,OAAO,MAAMC,MAAM,CAACQ,IAAI,CAACN,GAAG,CAAC;EACjC,CAAC;AACL,CAAC;AAED,OAAO,MAAMO,qBAAqB,GAAIV,KAAmC,IAAK;EAC1E,MAAMC,MAAM,GAAGD,KAAK,YAAYnB,SAAS,GAAGmB,KAAK,GAAGb,wBAAwB,CAACa,KAAK,CAAC;EACnF,OAAO,MAAOE,MAAkC,IAA2C;IACvF,MAAMC,GAAG,GAAG,IAAIvB,qBAAqB,CAAC;MAClC,GAAGsB,MAAM;MACTE,eAAe,EAAEF,MAAM,CAACE,eAAe,IAAIb,OAAO,CAACC,GAAG,CAACa;IAC3D,CAAC,CAAC;IACF,OAAO,MAAMJ,MAAM,CAACQ,IAAI,CAACN,GAAG,CAAC;EACjC,CAAC;AACL,CAAC;AAED,OAAO,MAAMQ,wBAAwB,GAAIX,KAAmC,IAAK;EAC7E,MAAMC,MAAM,GAAGD,KAAK,YAAYnB,SAAS,GAAGmB,KAAK,GAAGb,wBAAwB,CAACa,KAAK,CAAC;EACnF,OAAO,MACHE,MAAqC,IACK;IAC1C,MAAMC,GAAG,GAAG,IAAIxB,wBAAwB,CAAC;MACrC,GAAGuB;IACP,CAAC,CAAC;IACF,OAAO,MAAMD,MAAM,CAACQ,IAAI,CAACN,GAAG,CAAC;EACjC,CAAC;AACL,CAAC","ignoreList":[]}
@@ -1 +1,2 @@
1
- export { SQSClient, SendMessageBatchRequestEntry, SendMessageBatchCommand } from "@aws-sdk/client-sqs";
1
+ export { SQSClient, SendMessageBatchCommand } from "@aws-sdk/client-sqs";
2
+ export type { SendMessageBatchRequestEntry } from "@aws-sdk/client-sqs";
@@ -1,26 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "SQSClient", {
7
- enumerable: true,
8
- get: function () {
9
- return _clientSqs.SQSClient;
10
- }
11
- });
12
- Object.defineProperty(exports, "SendMessageBatchCommand", {
13
- enumerable: true,
14
- get: function () {
15
- return _clientSqs.SendMessageBatchCommand;
16
- }
17
- });
18
- Object.defineProperty(exports, "SendMessageBatchRequestEntry", {
19
- enumerable: true,
20
- get: function () {
21
- return _clientSqs.SendMessageBatchRequestEntry;
22
- }
23
- });
24
- var _clientSqs = require("@aws-sdk/client-sqs");
1
+ export { SQSClient, SendMessageBatchCommand } from "@aws-sdk/client-sqs";
25
2
 
26
3
  //# sourceMappingURL=index.js.map
@@ -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","ignoreList":[]}
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":[]}