@aligent/aws-wrappers 0.5.5 → 0.5.6
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/README.md +30 -1
- package/cjs/index.cjs +93 -47
- package/cjs/package.json +1 -1
- package/cjs/src/index.d.ts +2 -0
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/s3/s3.d.ts.map +1 -1
- package/cjs/src/scheduler/scheduler.d.ts.map +1 -1
- package/cjs/src/sfn/sfn.d.ts.map +1 -1
- package/cjs/src/sns/sns.d.ts.map +1 -1
- package/cjs/src/sqs/sqs.d.ts +20 -0
- package/cjs/src/sqs/sqs.d.ts.map +1 -1
- package/cjs/src/ssm/ssm.d.ts.map +1 -1
- package/cjs/src/util/batch-operation-error.d.ts +33 -0
- package/cjs/src/util/batch-operation-error.d.ts.map +1 -0
- package/cjs/src/util/chunk.d.ts +6 -0
- package/cjs/src/util/chunk.d.ts.map +1 -0
- package/docs/index/classes/APIGatewayService.md +6 -6
- package/docs/index/classes/APIGatewayV2Service.md +5 -5
- package/docs/index/classes/BatchOperationError.md +261 -0
- package/docs/index/classes/DynamoDBService.md +12 -12
- package/docs/index/classes/S3Service.md +15 -15
- package/docs/index/classes/SNSService.md +4 -4
- package/docs/index/classes/SQSService.md +20 -7
- package/docs/index/classes/SSMService.md +7 -7
- package/docs/index/classes/SchedulerService.md +11 -11
- package/docs/index/classes/SecretsManagerService.md +8 -8
- package/docs/index/classes/StepFunctionsService.md +6 -6
- package/docs/index/interfaces/BatchFailedEntry.md +43 -0
- package/docs/index/modules.md +5 -0
- package/docs/testing/testing/functions/createMockService.md +1 -1
- package/esm/index.mjs +93 -48
- package/esm/package.json +1 -1
- package/esm/src/index.d.ts +2 -0
- package/esm/src/index.d.ts.map +1 -1
- package/esm/src/s3/s3.d.ts.map +1 -1
- package/esm/src/scheduler/scheduler.d.ts.map +1 -1
- package/esm/src/sfn/sfn.d.ts.map +1 -1
- package/esm/src/sns/sns.d.ts.map +1 -1
- package/esm/src/sqs/sqs.d.ts +20 -0
- package/esm/src/sqs/sqs.d.ts.map +1 -1
- package/esm/src/ssm/ssm.d.ts.map +1 -1
- package/esm/src/util/batch-operation-error.d.ts +33 -0
- package/esm/src/util/batch-operation-error.d.ts.map +1 -0
- package/esm/src/util/chunk.d.ts +6 -0
- package/esm/src/util/chunk.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: SSMService
|
|
8
8
|
|
|
9
|
-
Defined in: [ssm/ssm.ts:
|
|
9
|
+
Defined in: [packages/aws-wrappers/src/ssm/ssm.ts:54](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/ssm/ssm.ts#L54)
|
|
10
10
|
|
|
11
11
|
Wrapper around the AWS SSM Parameter Store client providing structured
|
|
12
12
|
Powertools logging and X-Ray tracing by default. All read operations enable
|
|
@@ -31,7 +31,7 @@ mutate within the application.
|
|
|
31
31
|
|
|
32
32
|
> **new SSMService**(`opts?`): `SSMService`
|
|
33
33
|
|
|
34
|
-
Defined in: [ssm/ssm.ts:
|
|
34
|
+
Defined in: [packages/aws-wrappers/src/ssm/ssm.ts:64](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/ssm/ssm.ts#L64)
|
|
35
35
|
|
|
36
36
|
#### Parameters
|
|
37
37
|
|
|
@@ -63,7 +63,7 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
|
|
|
63
63
|
|
|
64
64
|
> **deleteParameter**(`name`): `Promise`\<`void`\>
|
|
65
65
|
|
|
66
|
-
Defined in: [ssm/ssm.ts:
|
|
66
|
+
Defined in: [packages/aws-wrappers/src/ssm/ssm.ts:151](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/ssm/ssm.ts#L151)
|
|
67
67
|
|
|
68
68
|
Delete an SSM parameter by name.
|
|
69
69
|
|
|
@@ -88,7 +88,7 @@ runtime cleanup only.
|
|
|
88
88
|
|
|
89
89
|
> **getParameter**(`name`): `Promise`\<`string` \| `undefined`\>
|
|
90
90
|
|
|
91
|
-
Defined in: [ssm/ssm.ts:
|
|
91
|
+
Defined in: [packages/aws-wrappers/src/ssm/ssm.ts:75](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/ssm/ssm.ts#L75)
|
|
92
92
|
|
|
93
93
|
Fetch a single SSM parameter's value.
|
|
94
94
|
|
|
@@ -115,7 +115,7 @@ value set.
|
|
|
115
115
|
|
|
116
116
|
> **getParameters**\<`K`\>(`aliases`): `Promise`\<`Record`\<`K`, `string` \| `undefined`\>\>
|
|
117
117
|
|
|
118
|
-
Defined in: [ssm/ssm.ts:
|
|
118
|
+
Defined in: [packages/aws-wrappers/src/ssm/ssm.ts:107](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/ssm/ssm.ts#L107)
|
|
119
119
|
|
|
120
120
|
Fetch multiple SSM parameters in a single request. Callers supply an
|
|
121
121
|
alias-to-path record, and the returned record is keyed by the same
|
|
@@ -165,7 +165,7 @@ no value.
|
|
|
165
165
|
|
|
166
166
|
> **getParametersByPath**(`path`, `opts?`): `Promise`\<`Parameter`[]\>
|
|
167
167
|
|
|
168
|
-
Defined in: [ssm/ssm.ts:
|
|
168
|
+
Defined in: [packages/aws-wrappers/src/ssm/ssm.ts:167](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/ssm/ssm.ts#L167)
|
|
169
169
|
|
|
170
170
|
Fetch all parameters under an SSM hierarchy path, auto-paginating across
|
|
171
171
|
all pages. `Recursive` defaults to `true` (overriding the AWS SDK
|
|
@@ -204,7 +204,7 @@ The full `Parameter` objects (including `Version`,
|
|
|
204
204
|
|
|
205
205
|
> **putParameter**(`input`): `Promise`\<`PutParameterCommandOutput`\>
|
|
206
206
|
|
|
207
|
-
Defined in: [ssm/ssm.ts:
|
|
207
|
+
Defined in: [packages/aws-wrappers/src/ssm/ssm.ts:138](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/ssm/ssm.ts#L138)
|
|
208
208
|
|
|
209
209
|
Create or update an SSM parameter. The log line omits `Value` to avoid
|
|
210
210
|
leaking secret material.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: SchedulerService
|
|
8
8
|
|
|
9
|
-
Defined in: [scheduler/scheduler.ts:
|
|
9
|
+
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:82](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/scheduler/scheduler.ts#L82)
|
|
10
10
|
|
|
11
11
|
Wrapper around the AWS EventBridge Scheduler client providing structured
|
|
12
12
|
Powertools logging and X-Ray tracing by default.
|
|
@@ -31,7 +31,7 @@ intent (`{ Mode: 'OFF' }` for a fixed-time schedule).
|
|
|
31
31
|
|
|
32
32
|
> **new SchedulerService**(`opts?`): `SchedulerService`
|
|
33
33
|
|
|
34
|
-
Defined in: [scheduler/scheduler.ts:
|
|
34
|
+
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:92](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/scheduler/scheduler.ts#L92)
|
|
35
35
|
|
|
36
36
|
#### Parameters
|
|
37
37
|
|
|
@@ -63,7 +63,7 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
|
|
|
63
63
|
|
|
64
64
|
> **createSchedule**(`input`): `Promise`\<`CreateScheduleCommandOutput`\>
|
|
65
65
|
|
|
66
|
-
Defined in: [scheduler/scheduler.ts:
|
|
66
|
+
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:101](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/scheduler/scheduler.ts#L101)
|
|
67
67
|
|
|
68
68
|
Create a new schedule. At INFO the log line omits `Target.Input` (the
|
|
69
69
|
target payload, a PII carrier).
|
|
@@ -86,7 +86,7 @@ target payload, a PII carrier).
|
|
|
86
86
|
|
|
87
87
|
> **createScheduleGroup**(`input`): `Promise`\<`CreateScheduleGroupCommandOutput`\>
|
|
88
88
|
|
|
89
|
-
Defined in: [scheduler/scheduler.ts:
|
|
89
|
+
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:155](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/scheduler/scheduler.ts#L155)
|
|
90
90
|
|
|
91
91
|
Create a new schedule group. Groups are containers for schedules and are
|
|
92
92
|
typically IaC-managed; use this for dynamically-provisioned groups only.
|
|
@@ -109,7 +109,7 @@ typically IaC-managed; use this for dynamically-provisioned groups only.
|
|
|
109
109
|
|
|
110
110
|
> **deleteSchedule**(`input`): `Promise`\<`DeleteScheduleCommandOutput`\>
|
|
111
111
|
|
|
112
|
-
Defined in: [scheduler/scheduler.ts:
|
|
112
|
+
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:135](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/scheduler/scheduler.ts#L135)
|
|
113
113
|
|
|
114
114
|
Delete a schedule.
|
|
115
115
|
|
|
@@ -131,7 +131,7 @@ Delete a schedule.
|
|
|
131
131
|
|
|
132
132
|
> **deleteScheduleGroup**(`input`): `Promise`\<`DeleteScheduleGroupCommandOutput`\>
|
|
133
133
|
|
|
134
|
-
Defined in: [scheduler/scheduler.ts:
|
|
134
|
+
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:177](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/scheduler/scheduler.ts#L177)
|
|
135
135
|
|
|
136
136
|
Delete a schedule group. Deleting a group also deletes every schedule it
|
|
137
137
|
contains, asynchronously — the API has no `UpdateScheduleGroup`, so this
|
|
@@ -155,7 +155,7 @@ is the only mutating group operation besides create.
|
|
|
155
155
|
|
|
156
156
|
> **getSchedule**(`input`): `Promise`\<`GetScheduleCommandOutput`\>
|
|
157
157
|
|
|
158
|
-
Defined in: [scheduler/scheduler.ts:
|
|
158
|
+
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:109](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/scheduler/scheduler.ts#L109)
|
|
159
159
|
|
|
160
160
|
Fetch a schedule's full configuration.
|
|
161
161
|
|
|
@@ -177,7 +177,7 @@ Fetch a schedule's full configuration.
|
|
|
177
177
|
|
|
178
178
|
> **getScheduleGroup**(`input`): `Promise`\<`GetScheduleGroupCommandOutput`\>
|
|
179
179
|
|
|
180
|
-
Defined in: [scheduler/scheduler.ts:
|
|
180
|
+
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:165](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/scheduler/scheduler.ts#L165)
|
|
181
181
|
|
|
182
182
|
Fetch a schedule group's configuration.
|
|
183
183
|
|
|
@@ -199,7 +199,7 @@ Fetch a schedule group's configuration.
|
|
|
199
199
|
|
|
200
200
|
> **listScheduleGroups**(`input?`): `Promise`\<`ScheduleGroupSummary`[]\>
|
|
201
201
|
|
|
202
|
-
Defined in: [scheduler/scheduler.ts:
|
|
202
|
+
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:188](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/scheduler/scheduler.ts#L188)
|
|
203
203
|
|
|
204
204
|
List schedule groups, auto-paginating across all pages. Bounded in
|
|
205
205
|
practice by the account's group count and the `NamePrefix` filter.
|
|
@@ -222,7 +222,7 @@ practice by the account's group count and the `NamePrefix` filter.
|
|
|
222
222
|
|
|
223
223
|
> **listSchedules**(`input?`): `Promise`\<`ScheduleSummary`[]\>
|
|
224
224
|
|
|
225
|
-
Defined in: [scheduler/scheduler.ts:
|
|
225
|
+
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:145](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/scheduler/scheduler.ts#L145)
|
|
226
226
|
|
|
227
227
|
List schedules, auto-paginating across all pages. Bounded in practice by
|
|
228
228
|
the account's schedule count and the `GroupName` / `NamePrefix` / `State`
|
|
@@ -246,7 +246,7 @@ filters, so the flat-array shape is safe.
|
|
|
246
246
|
|
|
247
247
|
> **updateSchedule**(`input`): `Promise`\<`UpdateScheduleCommandOutput`\>
|
|
248
248
|
|
|
249
|
-
Defined in: [scheduler/scheduler.ts:
|
|
249
|
+
Defined in: [packages/aws-wrappers/src/scheduler/scheduler.ts:127](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/scheduler/scheduler.ts#L127)
|
|
250
250
|
|
|
251
251
|
Update an existing schedule.
|
|
252
252
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: SecretsManagerService
|
|
8
8
|
|
|
9
|
-
Defined in: [secrets-manager/secrets-manager.ts:75](https://github.com/aligent/microservice-development-utilities/blob/
|
|
9
|
+
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:75](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L75)
|
|
10
10
|
|
|
11
11
|
Wrapper around the AWS Secrets Manager client providing structured
|
|
12
12
|
Powertools logging and X-Ray tracing by default.
|
|
@@ -30,7 +30,7 @@ mutable values.
|
|
|
30
30
|
|
|
31
31
|
> **new SecretsManagerService**(`opts?`): `SecretsManagerService`
|
|
32
32
|
|
|
33
|
-
Defined in: [secrets-manager/secrets-manager.ts:86](https://github.com/aligent/microservice-development-utilities/blob/
|
|
33
|
+
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:86](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L86)
|
|
34
34
|
|
|
35
35
|
#### Parameters
|
|
36
36
|
|
|
@@ -63,7 +63,7 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
|
|
|
63
63
|
|
|
64
64
|
> **createSecret**(`input`): `Promise`\<`CreateSecretCommandOutput`\>
|
|
65
65
|
|
|
66
|
-
Defined in: [secrets-manager/secrets-manager.ts:123](https://github.com/aligent/microservice-development-utilities/blob/
|
|
66
|
+
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:123](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L123)
|
|
67
67
|
|
|
68
68
|
Create a new secret. At INFO level the log line includes only identity
|
|
69
69
|
and non-secret metadata.
|
|
@@ -89,7 +89,7 @@ dynamically-issued credentials only.
|
|
|
89
89
|
|
|
90
90
|
> **deleteSecret**(`input`): `Promise`\<`DeleteSecretCommandOutput`\>
|
|
91
91
|
|
|
92
|
-
Defined in: [secrets-manager/secrets-manager.ts:163](https://github.com/aligent/microservice-development-utilities/blob/
|
|
92
|
+
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:163](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L163)
|
|
93
93
|
|
|
94
94
|
Delete a secret. Pass `ForceDeleteWithoutRecovery: true` to bypass the
|
|
95
95
|
default 7-30 day recovery window (irreversible).
|
|
@@ -114,7 +114,7 @@ Prefer IaC (CDK / Terraform) for secret lifecycle.
|
|
|
114
114
|
|
|
115
115
|
> **getJsonSecret**\<`T`\>(`secretId`): `Promise`\<`T`\>
|
|
116
116
|
|
|
117
|
-
Defined in: [secrets-manager/secrets-manager.ts:110](https://github.com/aligent/microservice-development-utilities/blob/
|
|
117
|
+
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:110](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L110)
|
|
118
118
|
|
|
119
119
|
Fetch a secret and parse it as JSON.
|
|
120
120
|
|
|
@@ -152,7 +152,7 @@ If the secret has no `SecretString` or the value is not valid JSON.
|
|
|
152
152
|
|
|
153
153
|
> **getSecret**(`secretId`): `Promise`\<`string`\>
|
|
154
154
|
|
|
155
|
-
Defined in: [secrets-manager/secrets-manager.ts:98](https://github.com/aligent/microservice-development-utilities/blob/
|
|
155
|
+
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:98](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L98)
|
|
156
156
|
|
|
157
157
|
Fetch a secret's string value from Secrets Manager.
|
|
158
158
|
|
|
@@ -183,7 +183,7 @@ stores binary data).
|
|
|
183
183
|
|
|
184
184
|
> **putSecretValue**(`input`): `Promise`\<`PutSecretValueCommandOutput`\>
|
|
185
185
|
|
|
186
|
-
Defined in: [secrets-manager/secrets-manager.ts:150](https://github.com/aligent/microservice-development-utilities/blob/
|
|
186
|
+
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:150](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L150)
|
|
187
187
|
|
|
188
188
|
Store a new version of a secret's value. At INFO level the log line
|
|
189
189
|
omits `SecretString` / `SecretBinary`.
|
|
@@ -208,7 +208,7 @@ Typically used by rotation flows.
|
|
|
208
208
|
|
|
209
209
|
> **updateSecret**(`input`): `Promise`\<`UpdateSecretCommandOutput`\>
|
|
210
210
|
|
|
211
|
-
Defined in: [secrets-manager/secrets-manager.ts:137](https://github.com/aligent/microservice-development-utilities/blob/
|
|
211
|
+
Defined in: [packages/aws-wrappers/src/secrets-manager/secrets-manager.ts:137](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/secrets-manager/secrets-manager.ts#L137)
|
|
212
212
|
|
|
213
213
|
Update an existing secret's metadata or value. At INFO level the log
|
|
214
214
|
line omits `SecretString` / `SecretBinary`.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: StepFunctionsService
|
|
8
8
|
|
|
9
|
-
Defined in: [sfn/sfn.ts:
|
|
9
|
+
Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:41](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/sfn/sfn.ts#L41)
|
|
10
10
|
|
|
11
11
|
Wrapper around the AWS Step Functions client providing structured
|
|
12
12
|
Powertools logging and X-Ray tracing by default.
|
|
@@ -23,7 +23,7 @@ log line omits them; the verbose levels (`POWERTOOLS_LOG_LEVEL=DEBUG` or
|
|
|
23
23
|
|
|
24
24
|
> **new StepFunctionsService**(`opts?`): `StepFunctionsService`
|
|
25
25
|
|
|
26
|
-
Defined in: [sfn/sfn.ts:
|
|
26
|
+
Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:51](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/sfn/sfn.ts#L51)
|
|
27
27
|
|
|
28
28
|
#### Parameters
|
|
29
29
|
|
|
@@ -55,7 +55,7 @@ which picks up `POWERTOOLS_SERVICE_NAME` from the environment.
|
|
|
55
55
|
|
|
56
56
|
> **describeExecution**(`input`): `Promise`\<`DescribeExecutionCommandOutput`\>
|
|
57
57
|
|
|
58
|
-
Defined in: [sfn/sfn.ts:
|
|
58
|
+
Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:80](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/sfn/sfn.ts#L80)
|
|
59
59
|
|
|
60
60
|
Describe an existing Step Functions execution.
|
|
61
61
|
|
|
@@ -77,7 +77,7 @@ Describe an existing Step Functions execution.
|
|
|
77
77
|
|
|
78
78
|
> **listExecutions**(`input`): `Promise`\<`ExecutionListItem`[]\>
|
|
79
79
|
|
|
80
|
-
Defined in: [sfn/sfn.ts:
|
|
80
|
+
Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:61](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/sfn/sfn.ts#L61)
|
|
81
81
|
|
|
82
82
|
List all executions for a state machine, auto-paginating across all
|
|
83
83
|
pages. Typically bounded by `statusFilter` and state-machine retention,
|
|
@@ -101,7 +101,7 @@ so the flat-array shape is safe in practice.
|
|
|
101
101
|
|
|
102
102
|
> **startExecution**(`input`): `Promise`\<`StartExecutionCommandOutput`\>
|
|
103
103
|
|
|
104
|
-
Defined in: [sfn/sfn.ts:
|
|
104
|
+
Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:70](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/sfn/sfn.ts#L70)
|
|
105
105
|
|
|
106
106
|
Start a new Step Functions execution.
|
|
107
107
|
|
|
@@ -123,7 +123,7 @@ Start a new Step Functions execution.
|
|
|
123
123
|
|
|
124
124
|
> **stopExecution**(`input`): `Promise`\<`StopExecutionCommandOutput`\>
|
|
125
125
|
|
|
126
|
-
Defined in: [sfn/sfn.ts:
|
|
126
|
+
Defined in: [packages/aws-wrappers/src/sfn/sfn.ts:90](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/sfn/sfn.ts#L90)
|
|
127
127
|
|
|
128
128
|
Stop an in-progress Step Functions execution.
|
|
129
129
|
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
[**@aligent/aws-wrappers**](../../modules.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@aligent/aws-wrappers](../../modules.md) / [index](../modules.md) / BatchFailedEntry
|
|
6
|
+
|
|
7
|
+
# Interface: BatchFailedEntry
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:6](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/util/batch-operation-error.ts#L6)
|
|
10
|
+
|
|
11
|
+
One entry a batch operation rejected. Deliberately limited to identifier,
|
|
12
|
+
code and message so the error never carries message bodies, attributes or
|
|
13
|
+
any other payload the caller sent.
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
<a id="code"></a>
|
|
18
|
+
|
|
19
|
+
### code
|
|
20
|
+
|
|
21
|
+
> **code**: `string` \| `undefined`
|
|
22
|
+
|
|
23
|
+
Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:8](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/util/batch-operation-error.ts#L8)
|
|
24
|
+
|
|
25
|
+
***
|
|
26
|
+
|
|
27
|
+
<a id="id"></a>
|
|
28
|
+
|
|
29
|
+
### id
|
|
30
|
+
|
|
31
|
+
> **id**: `string` \| `undefined`
|
|
32
|
+
|
|
33
|
+
Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:7](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/util/batch-operation-error.ts#L7)
|
|
34
|
+
|
|
35
|
+
***
|
|
36
|
+
|
|
37
|
+
<a id="message"></a>
|
|
38
|
+
|
|
39
|
+
### message
|
|
40
|
+
|
|
41
|
+
> **message**: `string` \| `undefined`
|
|
42
|
+
|
|
43
|
+
Defined in: [packages/aws-wrappers/src/util/batch-operation-error.ts:9](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/util/batch-operation-error.ts#L9)
|
package/docs/index/modules.md
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
- [APIGatewayService](classes/APIGatewayService.md)
|
|
12
12
|
- [APIGatewayV2Service](classes/APIGatewayV2Service.md)
|
|
13
|
+
- [BatchOperationError](classes/BatchOperationError.md)
|
|
13
14
|
- [DynamoDBService](classes/DynamoDBService.md)
|
|
14
15
|
- [S3Service](classes/S3Service.md)
|
|
15
16
|
- [SchedulerService](classes/SchedulerService.md)
|
|
@@ -18,3 +19,7 @@
|
|
|
18
19
|
- [SQSService](classes/SQSService.md)
|
|
19
20
|
- [SSMService](classes/SSMService.md)
|
|
20
21
|
- [StepFunctionsService](classes/StepFunctionsService.md)
|
|
22
|
+
|
|
23
|
+
## Interfaces
|
|
24
|
+
|
|
25
|
+
- [BatchFailedEntry](interfaces/BatchFailedEntry.md)
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **createMockService**\<`T`, `O`\>(`service`, `overrides`): `T` & `O`
|
|
10
10
|
|
|
11
|
-
Defined in: [testing/testing.ts:66](https://github.com/aligent/microservice-development-utilities/blob/
|
|
11
|
+
Defined in: [packages/aws-wrappers/src/testing/testing.ts:66](https://github.com/aligent/microservice-development-utilities/blob/36323d6a14efbe8673c2a1e7e5c4b742c6b4220a/packages/aws-wrappers/src/testing/testing.ts#L66)
|
|
12
12
|
|
|
13
13
|
Build a stand-in for a service class from an object of method overrides, for
|
|
14
14
|
use in unit tests of code that depends on the service.
|
package/esm/index.mjs
CHANGED
|
@@ -529,6 +529,18 @@ class DynamoDBService {
|
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
|
|
532
|
+
/**
|
|
533
|
+
* Split a list into consecutive chunks of at most `size` items, mirroring the
|
|
534
|
+
* per-request caps the AWS APIs enforce on batch operations.
|
|
535
|
+
*/
|
|
536
|
+
function chunk(items, size) {
|
|
537
|
+
const chunks = [];
|
|
538
|
+
for (let i = 0; i < items.length; i += size) {
|
|
539
|
+
chunks.push(items.slice(i, i + size));
|
|
540
|
+
}
|
|
541
|
+
return chunks;
|
|
542
|
+
}
|
|
543
|
+
|
|
532
544
|
const DEFAULT_PRESIGNED_URL_EXPIRES_IN_SECONDS = 3600;
|
|
533
545
|
const DELETE_OBJECTS_BATCH_LIMIT = 1000;
|
|
534
546
|
/**
|
|
@@ -654,14 +666,8 @@ class S3Service {
|
|
|
654
666
|
async listObjects(bucket, prefix) {
|
|
655
667
|
this.logger.info('Listing S3 objects', { input: { bucket, prefix } });
|
|
656
668
|
const paginator = paginateListObjectsV2({ client: this.client }, { Bucket: bucket, Prefix: prefix });
|
|
657
|
-
const
|
|
658
|
-
|
|
659
|
-
for (const object of page.Contents ?? []) {
|
|
660
|
-
if (object.Key)
|
|
661
|
-
keys.push(object.Key);
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
return keys;
|
|
669
|
+
const objects = await collectItems(paginator, page => page.Contents);
|
|
670
|
+
return objects.flatMap(object => (object.Key ? [object.Key] : []));
|
|
665
671
|
}
|
|
666
672
|
/**
|
|
667
673
|
* List and JSON-parse every object under a bucket and optional prefix.
|
|
@@ -737,8 +743,7 @@ class S3Service {
|
|
|
737
743
|
input: logFullInput ? { bucket, keys } : { bucket, keyCount: keys.length },
|
|
738
744
|
});
|
|
739
745
|
const results = [];
|
|
740
|
-
for (
|
|
741
|
-
const batch = keys.slice(i, i + DELETE_OBJECTS_BATCH_LIMIT);
|
|
746
|
+
for (const batch of chunk(keys, DELETE_OBJECTS_BATCH_LIMIT)) {
|
|
742
747
|
results.push(await this.client.send(new DeleteObjectsCommand({
|
|
743
748
|
Bucket: bucket,
|
|
744
749
|
Delete: { Objects: batch.map(Key => ({ Key })) },
|
|
@@ -880,12 +885,7 @@ class SchedulerService {
|
|
|
880
885
|
async listSchedules(input) {
|
|
881
886
|
this.logger.info('Listing schedules', { input });
|
|
882
887
|
const paginator = paginateListSchedules({ client: this.client }, input ?? {});
|
|
883
|
-
|
|
884
|
-
for await (const page of paginator) {
|
|
885
|
-
if (page.Schedules)
|
|
886
|
-
schedules.push(...page.Schedules);
|
|
887
|
-
}
|
|
888
|
-
return schedules;
|
|
888
|
+
return collectItems(paginator, page => page.Schedules);
|
|
889
889
|
}
|
|
890
890
|
/**
|
|
891
891
|
* Create a new schedule group. Groups are containers for schedules and are
|
|
@@ -918,12 +918,7 @@ class SchedulerService {
|
|
|
918
918
|
async listScheduleGroups(input) {
|
|
919
919
|
this.logger.info('Listing schedule groups', { input });
|
|
920
920
|
const paginator = paginateListScheduleGroups({ client: this.client }, input ?? {});
|
|
921
|
-
|
|
922
|
-
for await (const page of paginator) {
|
|
923
|
-
if (page.ScheduleGroups)
|
|
924
|
-
groups.push(...page.ScheduleGroups);
|
|
925
|
-
}
|
|
926
|
-
return groups;
|
|
921
|
+
return collectItems(paginator, page => page.ScheduleGroups);
|
|
927
922
|
}
|
|
928
923
|
}
|
|
929
924
|
|
|
@@ -1111,12 +1106,7 @@ class StepFunctionsService {
|
|
|
1111
1106
|
async listExecutions(input) {
|
|
1112
1107
|
this.logger.info('Listing Step Functions executions', { input });
|
|
1113
1108
|
const paginator = paginateListExecutions({ client: this.client }, input);
|
|
1114
|
-
|
|
1115
|
-
for await (const page of paginator) {
|
|
1116
|
-
if (page.executions)
|
|
1117
|
-
executions.push(...page.executions);
|
|
1118
|
-
}
|
|
1119
|
-
return executions;
|
|
1109
|
+
return collectItems(paginator, page => page.executions);
|
|
1120
1110
|
}
|
|
1121
1111
|
/**
|
|
1122
1112
|
* Start a new Step Functions execution.
|
|
@@ -1282,17 +1272,46 @@ class SNSService {
|
|
|
1282
1272
|
input: logFullInput ? input : { TopicArn: input.TopicArn, entryCount: entries.length },
|
|
1283
1273
|
});
|
|
1284
1274
|
const results = [];
|
|
1285
|
-
for (
|
|
1286
|
-
const chunk = entries.slice(i, i + PUBLISH_BATCH_LIMIT);
|
|
1275
|
+
for (const batch of chunk(entries, PUBLISH_BATCH_LIMIT)) {
|
|
1287
1276
|
results.push(await this.client.send(new PublishBatchCommand({
|
|
1288
1277
|
...input,
|
|
1289
|
-
PublishBatchRequestEntries:
|
|
1278
|
+
PublishBatchRequestEntries: batch,
|
|
1290
1279
|
})));
|
|
1291
1280
|
}
|
|
1292
1281
|
return results;
|
|
1293
1282
|
}
|
|
1294
1283
|
}
|
|
1295
1284
|
|
|
1285
|
+
/**
|
|
1286
|
+
* Thrown by the batch methods once every chunk has been sent and at least one
|
|
1287
|
+
* entry was rejected.
|
|
1288
|
+
*
|
|
1289
|
+
* `results` holds the raw SDK output of every chunk, so the outputs of the
|
|
1290
|
+
* entries that succeeded (message ids, sequence numbers) stay readable.
|
|
1291
|
+
* `failed` is the normalised list of rejected entries across all chunks.
|
|
1292
|
+
*
|
|
1293
|
+
* Match on `name` rather than `instanceof` if both the CJS and ESM builds of
|
|
1294
|
+
* this package may be loaded in one process.
|
|
1295
|
+
*/
|
|
1296
|
+
class BatchOperationError extends Error {
|
|
1297
|
+
results;
|
|
1298
|
+
failed;
|
|
1299
|
+
name = 'BatchOperationError';
|
|
1300
|
+
constructor(results, failed) {
|
|
1301
|
+
super(`Batch operation failed for ${failed.length} entries (${distinctCodes(failed).join(', ')})`);
|
|
1302
|
+
this.results = results;
|
|
1303
|
+
this.failed = failed;
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
/**
|
|
1307
|
+
* Distinct error codes in first-seen order, for the error message and the
|
|
1308
|
+
* warning log line.
|
|
1309
|
+
*/
|
|
1310
|
+
function distinctCodes(failed) {
|
|
1311
|
+
const codes = failed.flatMap(entry => (entry.code === undefined ? [] : [entry.code]));
|
|
1312
|
+
return [...new Set(codes)];
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1296
1315
|
const SQS_BATCH_LIMIT = 10;
|
|
1297
1316
|
const SQS_MESSAGE_BODY_MAX_BYTES = 256 * 1024;
|
|
1298
1317
|
/**
|
|
@@ -1386,10 +1405,36 @@ class SQSService {
|
|
|
1386
1405
|
this.logger.info('Deleting SQS message', { input });
|
|
1387
1406
|
return this.client.send(new DeleteMessageCommand(input));
|
|
1388
1407
|
}
|
|
1408
|
+
/**
|
|
1409
|
+
* SQS reports rejected entries under `Failed` on an otherwise successful
|
|
1410
|
+
* response, so a resolved chunk does not mean every entry was accepted.
|
|
1411
|
+
* Only id, code and message are copied out — never the entry itself — so
|
|
1412
|
+
* neither the error nor the warning can leak a payload.
|
|
1413
|
+
*/
|
|
1414
|
+
throwIfAnyFailed(operation, results) {
|
|
1415
|
+
const failed = results.flatMap(result => (result.Failed ?? []).map(({ Id, Code, Message }) => ({
|
|
1416
|
+
id: Id,
|
|
1417
|
+
code: Code,
|
|
1418
|
+
message: Message,
|
|
1419
|
+
})));
|
|
1420
|
+
if (failed.length === 0)
|
|
1421
|
+
return results;
|
|
1422
|
+
this.logger.warn(`${operation} had rejected entries`, {
|
|
1423
|
+
failedCount: failed.length,
|
|
1424
|
+
codes: distinctCodes(failed),
|
|
1425
|
+
});
|
|
1426
|
+
throw new BatchOperationError(results, failed);
|
|
1427
|
+
}
|
|
1389
1428
|
/**
|
|
1390
1429
|
* Send a batch of messages to an SQS queue. The SQS API caps
|
|
1391
1430
|
* SendMessageBatch at 10 entries per request, so this method auto-chunks
|
|
1392
1431
|
* the caller's entries and sends one request per chunk.
|
|
1432
|
+
*
|
|
1433
|
+
* Every chunk is sent before the outcome is judged. If SQS rejected any
|
|
1434
|
+
* entry, a {@link BatchOperationError} is then thrown carrying the
|
|
1435
|
+
* per-chunk results and the failed entries. Request-level SDK exceptions
|
|
1436
|
+
* (throttling, access denied) propagate unchanged and immediately, so
|
|
1437
|
+
* earlier chunks may already have been sent.
|
|
1393
1438
|
*/
|
|
1394
1439
|
async sendMessageBatch(input) {
|
|
1395
1440
|
const entries = input.Entries ?? [];
|
|
@@ -1401,16 +1446,22 @@ class SQSService {
|
|
|
1401
1446
|
input: logFullInput ? input : { QueueUrl: input.QueueUrl, entryCount: entries.length },
|
|
1402
1447
|
});
|
|
1403
1448
|
const results = [];
|
|
1404
|
-
for (
|
|
1405
|
-
|
|
1406
|
-
results.push(await this.client.send(new SendMessageBatchCommand({ ...input, Entries: chunk })));
|
|
1449
|
+
for (const batch of chunk(entries, SQS_BATCH_LIMIT)) {
|
|
1450
|
+
results.push(await this.client.send(new SendMessageBatchCommand({ ...input, Entries: batch })));
|
|
1407
1451
|
}
|
|
1408
|
-
return results;
|
|
1452
|
+
return this.throwIfAnyFailed('SQS sendMessageBatch', results);
|
|
1409
1453
|
}
|
|
1410
1454
|
/**
|
|
1411
1455
|
* Delete a batch of messages from an SQS queue. The SQS API caps
|
|
1412
1456
|
* DeleteMessageBatch at 10 entries per request, so this method auto-chunks
|
|
1413
1457
|
* the caller's entries and sends one request per chunk.
|
|
1458
|
+
*
|
|
1459
|
+
* Every chunk is sent before the outcome is judged. If SQS failed to
|
|
1460
|
+
* delete any message, a {@link BatchOperationError} is then thrown carrying
|
|
1461
|
+
* the per-chunk results and the failed entries; those messages will be
|
|
1462
|
+
* redelivered. Request-level SDK exceptions (throttling, access denied)
|
|
1463
|
+
* propagate unchanged and immediately, so earlier chunks may already have
|
|
1464
|
+
* been deleted.
|
|
1414
1465
|
*/
|
|
1415
1466
|
async deleteMessageBatch(input) {
|
|
1416
1467
|
const entries = input.Entries ?? [];
|
|
@@ -1422,11 +1473,10 @@ class SQSService {
|
|
|
1422
1473
|
input: logFullInput ? input : { QueueUrl: input.QueueUrl, entryCount: entries.length },
|
|
1423
1474
|
});
|
|
1424
1475
|
const results = [];
|
|
1425
|
-
for (
|
|
1426
|
-
|
|
1427
|
-
results.push(await this.client.send(new DeleteMessageBatchCommand({ ...input, Entries: chunk })));
|
|
1476
|
+
for (const batch of chunk(entries, SQS_BATCH_LIMIT)) {
|
|
1477
|
+
results.push(await this.client.send(new DeleteMessageBatchCommand({ ...input, Entries: batch })));
|
|
1428
1478
|
}
|
|
1429
|
-
return results;
|
|
1479
|
+
return this.throwIfAnyFailed('SQS deleteMessageBatch', results);
|
|
1430
1480
|
}
|
|
1431
1481
|
}
|
|
1432
1482
|
|
|
@@ -1515,10 +1565,9 @@ class SSMService {
|
|
|
1515
1565
|
this.logger.info('Fetching SSM parameters', { input: { aliases } });
|
|
1516
1566
|
const names = Object.values(aliases);
|
|
1517
1567
|
const byPath = new Map();
|
|
1518
|
-
for (
|
|
1519
|
-
const chunk = names.slice(i, i + GET_PARAMETERS_LIMIT);
|
|
1568
|
+
for (const batch of chunk(names, GET_PARAMETERS_LIMIT)) {
|
|
1520
1569
|
const response = await this.client.send(new GetParametersCommand({
|
|
1521
|
-
Names:
|
|
1570
|
+
Names: batch,
|
|
1522
1571
|
WithDecryption: true,
|
|
1523
1572
|
}));
|
|
1524
1573
|
for (const parameter of response.Parameters ?? []) {
|
|
@@ -1572,12 +1621,8 @@ class SSMService {
|
|
|
1572
1621
|
input: { path, recursive },
|
|
1573
1622
|
});
|
|
1574
1623
|
const paginator = paginateGetParametersByPath({ client: this.client }, { Path: path, Recursive: recursive, WithDecryption: true });
|
|
1575
|
-
|
|
1576
|
-
for await (const page of paginator) {
|
|
1577
|
-
parameters.push(...(page.Parameters ?? []));
|
|
1578
|
-
}
|
|
1579
|
-
return parameters;
|
|
1624
|
+
return collectItems(paginator, page => page.Parameters);
|
|
1580
1625
|
}
|
|
1581
1626
|
}
|
|
1582
1627
|
|
|
1583
|
-
export { APIGatewayService, APIGatewayV2Service, DynamoDBService, S3Service, SNSService, SQSService, SSMService, SchedulerService, SecretsManagerService, StepFunctionsService };
|
|
1628
|
+
export { APIGatewayService, APIGatewayV2Service, BatchOperationError, DynamoDBService, S3Service, SNSService, SQSService, SSMService, SchedulerService, SecretsManagerService, StepFunctionsService };
|
package/esm/package.json
CHANGED
package/esm/src/index.d.ts
CHANGED
|
@@ -8,4 +8,6 @@ export { StepFunctionsService } from './sfn/sfn.js';
|
|
|
8
8
|
export { SNSService } from './sns/sns.js';
|
|
9
9
|
export { SQSService } from './sqs/sqs.js';
|
|
10
10
|
export { SSMService } from './ssm/ssm.js';
|
|
11
|
+
export { BatchOperationError } from './util/batch-operation-error.js';
|
|
12
|
+
export type { BatchFailedEntry } from './util/batch-operation-error.js';
|
|
11
13
|
//# sourceMappingURL=index.d.ts.map
|
package/esm/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC"}
|