@effect-aws/dynamodb 1.0.3 → 2.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/LICENSE +1 -1
  2. package/dist/dts/DynamoDBDocumentClientInstance.d.ts +2 -2
  3. package/dist/dts/DynamoDBDocumentClientInstance.d.ts.map +1 -1
  4. package/dist/dts/DynamoDBDocumentService.d.ts +15 -17
  5. package/dist/dts/DynamoDBDocumentService.d.ts.map +1 -1
  6. package/dist/dts/DynamoDBDocumentServiceConfig.d.ts.map +1 -1
  7. package/dist/dts/DynamoDBStore.d.ts +17 -19
  8. package/dist/dts/DynamoDBStore.d.ts.map +1 -1
  9. package/dist/esm/DynamoDBDocumentClientInstance.js +4 -4
  10. package/dist/esm/DynamoDBDocumentClientInstance.js.map +1 -1
  11. package/dist/esm/DynamoDBDocumentService.js +2 -2
  12. package/dist/esm/DynamoDBDocumentService.js.map +1 -1
  13. package/dist/esm/DynamoDBDocumentServiceConfig.js +5 -6
  14. package/dist/esm/DynamoDBDocumentServiceConfig.js.map +1 -1
  15. package/dist/esm/DynamoDBStore.js +3 -3
  16. package/dist/esm/DynamoDBStore.js.map +1 -1
  17. package/package.json +9 -15
  18. package/src/DynamoDBDocumentClientInstance.ts +8 -6
  19. package/src/DynamoDBDocumentService.ts +16 -16
  20. package/src/DynamoDBDocumentServiceConfig.ts +6 -7
  21. package/src/DynamoDBStore.ts +10 -10
  22. package/dist/cjs/DynamoDBDocumentClientInstance.d.ts +0 -25
  23. package/dist/cjs/DynamoDBDocumentClientInstance.d.ts.map +0 -1
  24. package/dist/cjs/DynamoDBDocumentClientInstance.js +0 -54
  25. package/dist/cjs/DynamoDBDocumentClientInstance.js.map +0 -1
  26. package/dist/cjs/DynamoDBDocumentService.d.ts +0 -97
  27. package/dist/cjs/DynamoDBDocumentService.d.ts.map +0 -1
  28. package/dist/cjs/DynamoDBDocumentService.js +0 -68
  29. package/dist/cjs/DynamoDBDocumentService.js.map +0 -1
  30. package/dist/cjs/DynamoDBDocumentServiceConfig.d.ts +0 -25
  31. package/dist/cjs/DynamoDBDocumentServiceConfig.d.ts.map +0 -1
  32. package/dist/cjs/DynamoDBDocumentServiceConfig.js +0 -28
  33. package/dist/cjs/DynamoDBDocumentServiceConfig.js.map +0 -1
  34. package/dist/cjs/DynamoDBStore.d.ts +0 -82
  35. package/dist/cjs/DynamoDBStore.d.ts.map +0 -1
  36. package/dist/cjs/DynamoDBStore.js +0 -57
  37. package/dist/cjs/DynamoDBStore.js.map +0 -1
  38. package/dist/cjs/index.d.ts +0 -44
  39. package/dist/cjs/index.d.ts.map +0 -1
  40. package/dist/cjs/index.js +0 -56
  41. package/dist/cjs/index.js.map +0 -1
@@ -65,7 +65,7 @@ import type {
65
65
  import { DynamoDBServiceConfig } from "@effect-aws/client-dynamodb";
66
66
  import { type HttpHandlerOptions, Service } from "@effect-aws/commons";
67
67
  import type { Cause } from "effect";
68
- import { Effect, Layer } from "effect";
68
+ import { Effect, Layer, ServiceMap } from "effect";
69
69
  import * as Instance from "./DynamoDBDocumentClientInstance.js";
70
70
  import * as DynamoDBDocumentServiceConfig from "./DynamoDBDocumentServiceConfig.js";
71
71
 
@@ -96,7 +96,7 @@ interface DynamoDBDocumentService$ {
96
96
  options?: HttpHandlerOptions,
97
97
  ): Effect.Effect<
98
98
  BatchExecuteStatementCommandOutput,
99
- Cause.TimeoutException | SdkError | InternalServerError | RequestLimitExceededError
99
+ Cause.TimeoutError | SdkError | InternalServerError | RequestLimitExceededError
100
100
  >;
101
101
 
102
102
  /**
@@ -107,7 +107,7 @@ interface DynamoDBDocumentService$ {
107
107
  options?: HttpHandlerOptions,
108
108
  ): Effect.Effect<
109
109
  BatchGetCommandOutput,
110
- | Cause.TimeoutException
110
+ | Cause.TimeoutError
111
111
  | SdkError
112
112
  | InternalServerError
113
113
  | InvalidEndpointError
@@ -124,7 +124,7 @@ interface DynamoDBDocumentService$ {
124
124
  options?: HttpHandlerOptions,
125
125
  ): Effect.Effect<
126
126
  BatchWriteCommandOutput,
127
- | Cause.TimeoutException
127
+ | Cause.TimeoutError
128
128
  | SdkError
129
129
  | InternalServerError
130
130
  | InvalidEndpointError
@@ -142,7 +142,7 @@ interface DynamoDBDocumentService$ {
142
142
  options?: HttpHandlerOptions,
143
143
  ): Effect.Effect<
144
144
  DeleteCommandOutput,
145
- | Cause.TimeoutException
145
+ | Cause.TimeoutError
146
146
  | SdkError
147
147
  | ConditionalCheckFailedError
148
148
  | InternalServerError
@@ -162,7 +162,7 @@ interface DynamoDBDocumentService$ {
162
162
  options?: HttpHandlerOptions,
163
163
  ): Effect.Effect<
164
164
  ExecuteStatementCommandOutput,
165
- | Cause.TimeoutException
165
+ | Cause.TimeoutError
166
166
  | SdkError
167
167
  | ConditionalCheckFailedError
168
168
  | DuplicateItemError
@@ -182,7 +182,7 @@ interface DynamoDBDocumentService$ {
182
182
  options?: HttpHandlerOptions,
183
183
  ): Effect.Effect<
184
184
  ExecuteTransactionCommandOutput,
185
- | Cause.TimeoutException
185
+ | Cause.TimeoutError
186
186
  | SdkError
187
187
  | IdempotentParameterMismatchError
188
188
  | InternalServerError
@@ -201,7 +201,7 @@ interface DynamoDBDocumentService$ {
201
201
  options?: HttpHandlerOptions,
202
202
  ): Effect.Effect<
203
203
  GetCommandOutput,
204
- | Cause.TimeoutException
204
+ | Cause.TimeoutError
205
205
  | SdkError
206
206
  | InternalServerError
207
207
  | InvalidEndpointError
@@ -218,7 +218,7 @@ interface DynamoDBDocumentService$ {
218
218
  options?: HttpHandlerOptions,
219
219
  ): Effect.Effect<
220
220
  PutCommandOutput,
221
- | Cause.TimeoutException
221
+ | Cause.TimeoutError
222
222
  | SdkError
223
223
  | ConditionalCheckFailedError
224
224
  | InternalServerError
@@ -238,7 +238,7 @@ interface DynamoDBDocumentService$ {
238
238
  options?: HttpHandlerOptions,
239
239
  ): Effect.Effect<
240
240
  QueryCommandOutput,
241
- | Cause.TimeoutException
241
+ | Cause.TimeoutError
242
242
  | SdkError
243
243
  | InternalServerError
244
244
  | InvalidEndpointError
@@ -255,7 +255,7 @@ interface DynamoDBDocumentService$ {
255
255
  options?: HttpHandlerOptions,
256
256
  ): Effect.Effect<
257
257
  ScanCommandOutput,
258
- | Cause.TimeoutException
258
+ | Cause.TimeoutError
259
259
  | SdkError
260
260
  | InternalServerError
261
261
  | InvalidEndpointError
@@ -272,7 +272,7 @@ interface DynamoDBDocumentService$ {
272
272
  options?: HttpHandlerOptions,
273
273
  ): Effect.Effect<
274
274
  TransactGetCommandOutput,
275
- | Cause.TimeoutException
275
+ | Cause.TimeoutError
276
276
  | SdkError
277
277
  | InternalServerError
278
278
  | InvalidEndpointError
@@ -290,7 +290,7 @@ interface DynamoDBDocumentService$ {
290
290
  options?: HttpHandlerOptions,
291
291
  ): Effect.Effect<
292
292
  TransactWriteCommandOutput,
293
- | Cause.TimeoutException
293
+ | Cause.TimeoutError
294
294
  | SdkError
295
295
  | IdempotentParameterMismatchError
296
296
  | InternalServerError
@@ -310,7 +310,7 @@ interface DynamoDBDocumentService$ {
310
310
  options?: HttpHandlerOptions,
311
311
  ): Effect.Effect<
312
312
  UpdateCommandOutput,
313
- | Cause.TimeoutException
313
+ | Cause.TimeoutError
314
314
  | SdkError
315
315
  | ConditionalCheckFailedError
316
316
  | InternalServerError
@@ -339,9 +339,9 @@ export const makeDynamoDBDocumentService = Effect.gen(function*() {
339
339
  * @since 1.0.0
340
340
  * @category models
341
341
  */
342
- export class DynamoDBDocumentService extends Effect.Tag(
342
+ export class DynamoDBDocumentService extends ServiceMap.Service<DynamoDBDocumentService, DynamoDBDocumentService$>()(
343
343
  "@effect-aws/dynamodb/DynamoDBDocumentService",
344
- )<DynamoDBDocumentService, DynamoDBDocumentService$>() {
344
+ ) {
345
345
  static readonly defaultLayer = Layer.effect(this, makeDynamoDBDocumentService).pipe(Layer.provide(Instance.layer));
346
346
  static readonly layer = (config: DynamoDBDocumentService.Config) =>
347
347
  Layer.effect(this, makeDynamoDBDocumentService).pipe(
@@ -2,18 +2,17 @@
2
2
  * @since 1.0.0
3
3
  */
4
4
  import type { TranslateConfig } from "@aws-sdk/lib-dynamodb";
5
- import { Effect, FiberRef, Layer } from "effect";
5
+ import { Effect, Layer, ServiceMap } from "effect";
6
6
  import { dual } from "effect/Function";
7
- import { globalValue } from "effect/GlobalValue";
8
7
  import type { DynamoDBDocumentService } from "./DynamoDBDocumentService.js";
9
8
 
10
9
  /**
11
10
  * @since 1.0.0
12
11
  * @category dynamodb service config
13
12
  */
14
- const currentDynamoDBDocumentServiceConfig = globalValue(
13
+ const currentDynamoDBDocumentServiceConfig = ServiceMap.Reference<DynamoDBDocumentService.Config>(
15
14
  "@effect-aws/dynamodb/currentDynamoDBDocumentServiceConfig",
16
- () => FiberRef.unsafeMake<DynamoDBDocumentService.Config>({}),
15
+ { defaultValue: () => ({}) },
17
16
  );
18
17
 
19
18
  /**
@@ -26,7 +25,7 @@ export const withDynamoDBDocumentServiceConfig: {
26
25
  } = dual(
27
26
  2,
28
27
  <A, E, R>(effect: Effect.Effect<A, E, R>, config: DynamoDBDocumentService.Config): Effect.Effect<A, E, R> =>
29
- Effect.locally(effect, currentDynamoDBDocumentServiceConfig, config),
28
+ Effect.provideService(effect, currentDynamoDBDocumentServiceConfig, config),
30
29
  );
31
30
 
32
31
  /**
@@ -34,10 +33,10 @@ export const withDynamoDBDocumentServiceConfig: {
34
33
  * @category dynamodb service config
35
34
  */
36
35
  export const setDynamoDBDocumentServiceConfig = (config: DynamoDBDocumentService.Config) =>
37
- Layer.locallyScoped(currentDynamoDBDocumentServiceConfig, config);
36
+ Layer.succeed(currentDynamoDBDocumentServiceConfig, config);
38
37
 
39
38
  /**
40
39
  * @since 1.0.0
41
40
  * @category adapters
42
41
  */
43
- export const toTranslateConfig: Effect.Effect<TranslateConfig> = FiberRef.get(currentDynamoDBDocumentServiceConfig);
42
+ export const toTranslateConfig: Effect.Effect<TranslateConfig> = currentDynamoDBDocumentServiceConfig.asEffect();
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @since 1.0.0
3
3
  */
4
- import { Config, Effect, Layer } from "effect";
4
+ import { Config, Effect, Layer, ServiceMap } from "effect";
5
5
  import { DynamoDBDocumentService } from "./DynamoDBDocumentService.js";
6
6
 
7
7
  type WithoutTableNameInArgs = {
@@ -11,18 +11,18 @@ type WithoutTableNameInArgs = {
11
11
  args: Omit<Parameters<DynamoDBDocumentService.Type[K]>[0], "TableName">,
12
12
  options?: Parameters<DynamoDBDocumentService.Type[K]>[1],
13
13
  ) => Effect.Effect<
14
- Effect.Effect.Success<
14
+ Effect.Success<
15
15
  ReturnType<DynamoDBDocumentService.Type[K]>
16
16
  > extends { Item?: infer Item } ? Item | undefined
17
- : Effect.Effect.Success<
17
+ : Effect.Success<
18
18
  ReturnType<DynamoDBDocumentService.Type[K]>
19
19
  > extends { Items?: infer Items } ? Items
20
- : Effect.Effect.Success<
20
+ : Effect.Success<
21
21
  ReturnType<DynamoDBDocumentService.Type[K]>
22
22
  > extends { Attributes?: infer Attributes } ? Attributes | undefined
23
23
  : never,
24
- Effect.Effect.Error<ReturnType<DynamoDBDocumentService.Type[K]>>,
25
- Effect.Effect.Context<ReturnType<DynamoDBDocumentService.Type[K]>>
24
+ Effect.Error<ReturnType<DynamoDBDocumentService.Type[K]>>,
25
+ Effect.Services<ReturnType<DynamoDBDocumentService.Type[K]>>
26
26
  >
27
27
  : never;
28
28
  };
@@ -94,13 +94,13 @@ export const makeDynamoDBStore = Effect.fn(function*(props: DynamoDBStore.Config
94
94
  * @since 1.0.0
95
95
  * @category models
96
96
  */
97
- export class DynamoDBStore extends Effect.Tag("@effect-aws/dynamodb/DynamoDBStore")<
97
+ export class DynamoDBStore extends ServiceMap.Service<
98
98
  DynamoDBStore,
99
99
  DynamoDBStore.Type
100
- >() {
100
+ >()("@effect-aws/dynamodb/DynamoDBStore") {
101
101
  static layer = (props: DynamoDBStore.Config) => Layer.effect(this, makeDynamoDBStore(props));
102
- static layerConfig = (config: Config.Config.Wrap<DynamoDBStore.Config>) =>
103
- Layer.effect(this, Config.unwrap(config).pipe(Effect.flatMap(makeDynamoDBStore)));
102
+ static layerConfig = (config: Config.Wrap<DynamoDBStore.Config>) =>
103
+ Layer.effect(this, Config.unwrap(config).asEffect().pipe(Effect.flatMap(makeDynamoDBStore)));
104
104
  }
105
105
 
106
106
  /**
@@ -1,25 +0,0 @@
1
- /**
2
- * @since 1.0.0
3
- */
4
- import { DynamoDBDocumentClient } from "@aws-sdk/lib-dynamodb";
5
- import { DynamoDBClientInstance } from "@effect-aws/client-dynamodb";
6
- import { Context, Effect, Layer } from "effect";
7
- declare const DynamoDBDocumentClientInstance_base: Context.TagClass<DynamoDBDocumentClientInstance, "@effect-aws/dynamodb/DynamoDBDocumentClientInstance", DynamoDBDocumentClient>;
8
- /**
9
- * @since 1.0.0
10
- * @category tags
11
- */
12
- export declare class DynamoDBDocumentClientInstance extends DynamoDBDocumentClientInstance_base {
13
- }
14
- /**
15
- * @since 1.0.0
16
- * @category constructors
17
- */
18
- export declare const make: Effect.Effect<DynamoDBDocumentClient, never, DynamoDBClientInstance.DynamoDBClientInstance>;
19
- /**
20
- * @since 1.0.0
21
- * @category layers
22
- */
23
- export declare const layer: Layer.Layer<DynamoDBDocumentClientInstance, never, never>;
24
- export {};
25
- //# sourceMappingURL=DynamoDBDocumentClientInstance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DynamoDBDocumentClientInstance.d.ts","sourceRoot":"","sources":["../../src/DynamoDBDocumentClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,8BAA+B,SAAQ,mCAEO;CAAG;AAE9D;;;GAGG;AACH,eAAO,MAAM,IAAI,6FAKhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,2DAEjB,CAAC"}
@@ -1,54 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.layer = exports.make = exports.DynamoDBDocumentClientInstance = void 0;
27
- /**
28
- * @since 1.0.0
29
- */
30
- const lib_dynamodb_1 = require("@aws-sdk/lib-dynamodb");
31
- const client_dynamodb_1 = require("@effect-aws/client-dynamodb");
32
- const effect_1 = require("effect");
33
- const DynamoDBDocumentServiceConfig = __importStar(require("./DynamoDBDocumentServiceConfig.js"));
34
- /**
35
- * @since 1.0.0
36
- * @category tags
37
- */
38
- class DynamoDBDocumentClientInstance extends effect_1.Context.Tag("@effect-aws/dynamodb/DynamoDBDocumentClientInstance")() {
39
- }
40
- exports.DynamoDBDocumentClientInstance = DynamoDBDocumentClientInstance;
41
- /**
42
- * @since 1.0.0
43
- * @category constructors
44
- */
45
- exports.make = effect_1.Effect.all([
46
- client_dynamodb_1.DynamoDBClientInstance.DynamoDBClientInstance,
47
- DynamoDBDocumentServiceConfig.toTranslateConfig,
48
- ]).pipe(effect_1.Effect.map(([client, config]) => lib_dynamodb_1.DynamoDBDocumentClient.from(client, config)));
49
- /**
50
- * @since 1.0.0
51
- * @category layers
52
- */
53
- exports.layer = effect_1.Layer.scoped(DynamoDBDocumentClientInstance, exports.make).pipe(effect_1.Layer.provide(client_dynamodb_1.DynamoDBClientInstance.layer));
54
- //# sourceMappingURL=DynamoDBDocumentClientInstance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DynamoDBDocumentClientInstance.js","sourceRoot":"","sources":["../../src/DynamoDBDocumentClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,wDAA+D;AAC/D,iEAAqE;AACrE,mCAAgD;AAChD,kGAAoF;AAEpF;;;GAGG;AACH,MAAa,8BAA+B,SAAQ,gBAAO,CAAC,GAAG,CAC7D,qDAAqD,CACtD,EAA0D;CAAG;AAF9D,wEAE8D;AAE9D;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,GAAG,CAAC;IAC7B,wCAAsB,CAAC,sBAAsB;IAC7C,6BAA6B,CAAC,iBAAiB;CAChD,CAAC,CAAC,IAAI,CACL,eAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,qCAAsB,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAC9E,CAAC;AAEF;;;GAGG;AACU,QAAA,KAAK,GAAG,cAAK,CAAC,MAAM,CAAC,8BAA8B,EAAE,YAAI,CAAC,CAAC,IAAI,CAC1E,cAAK,CAAC,OAAO,CAAC,wCAAsB,CAAC,KAAK,CAAC,CAC5C,CAAC"}
@@ -1,97 +0,0 @@
1
- /**
2
- * @since 1.0.0
3
- */
4
- import type { DynamoDBClientConfig } from "@aws-sdk/client-dynamodb";
5
- import type { BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput, BatchGetCommandInput, BatchGetCommandOutput, BatchWriteCommandInput, BatchWriteCommandOutput, DeleteCommandInput, DeleteCommandOutput, DynamoDBDocumentClient, ExecuteStatementCommandInput, ExecuteStatementCommandOutput, ExecuteTransactionCommandInput, ExecuteTransactionCommandOutput, GetCommandInput, GetCommandOutput, PutCommandInput, PutCommandOutput, QueryCommandInput, QueryCommandOutput, ScanCommandInput, ScanCommandOutput, TransactGetCommandInput, TransactGetCommandOutput, TransactWriteCommandInput, TransactWriteCommandOutput, TranslateConfig, UpdateCommandInput, UpdateCommandOutput } from "@aws-sdk/lib-dynamodb";
6
- import type { ConditionalCheckFailedError, DuplicateItemError, IdempotentParameterMismatchError, InternalServerError, InvalidEndpointError, ItemCollectionSizeLimitExceededError, ProvisionedThroughputExceededError, RequestLimitExceededError, ResourceNotFoundError, SdkError, TransactionCanceledError, TransactionConflictError, TransactionInProgressError } from "@effect-aws/client-dynamodb";
7
- import { type HttpHandlerOptions } from "@effect-aws/commons";
8
- import type { Cause } from "effect";
9
- import { Effect, Layer } from "effect";
10
- import * as Instance from "./DynamoDBDocumentClientInstance.js";
11
- interface DynamoDBDocumentService$ {
12
- readonly _: unique symbol;
13
- /**
14
- * @see {@link BatchExecuteStatementCommand}
15
- */
16
- batchExecuteStatement(args: BatchExecuteStatementCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchExecuteStatementCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | RequestLimitExceededError>;
17
- /**
18
- * @see {@link BatchGetCommand}
19
- */
20
- batchGet(args: BatchGetCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchGetCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | InvalidEndpointError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError>;
21
- /**
22
- * @see {@link BatchWriteCommand}
23
- */
24
- batchWrite(args: BatchWriteCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchWriteCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | InvalidEndpointError | ItemCollectionSizeLimitExceededError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError>;
25
- /**
26
- * @see {@link DeleteCommand}
27
- */
28
- delete(args: DeleteCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteCommandOutput, Cause.TimeoutException | SdkError | ConditionalCheckFailedError | InternalServerError | InvalidEndpointError | ItemCollectionSizeLimitExceededError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError | TransactionConflictError>;
29
- /**
30
- * @see {@link ExecuteStatementCommand}
31
- */
32
- executeStatement(args: ExecuteStatementCommandInput, options?: HttpHandlerOptions): Effect.Effect<ExecuteStatementCommandOutput, Cause.TimeoutException | SdkError | ConditionalCheckFailedError | DuplicateItemError | InternalServerError | ItemCollectionSizeLimitExceededError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError | TransactionConflictError>;
33
- /**
34
- * @see {@link ExecuteTransactionCommand}
35
- */
36
- executeTransaction(args: ExecuteTransactionCommandInput, options?: HttpHandlerOptions): Effect.Effect<ExecuteTransactionCommandOutput, Cause.TimeoutException | SdkError | IdempotentParameterMismatchError | InternalServerError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError | TransactionCanceledError | TransactionInProgressError>;
37
- /**
38
- * @see {@link GetCommand}
39
- */
40
- get(args: GetCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | InvalidEndpointError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError>;
41
- /**
42
- * @see {@link PutCommand}
43
- */
44
- put(args: PutCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutCommandOutput, Cause.TimeoutException | SdkError | ConditionalCheckFailedError | InternalServerError | InvalidEndpointError | ItemCollectionSizeLimitExceededError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError | TransactionConflictError>;
45
- /**
46
- * @see {@link QueryCommand}
47
- */
48
- query(args: QueryCommandInput, options?: HttpHandlerOptions): Effect.Effect<QueryCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | InvalidEndpointError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError>;
49
- /**
50
- * @see {@link ScanCommand}
51
- */
52
- scan(args: ScanCommandInput, options?: HttpHandlerOptions): Effect.Effect<ScanCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | InvalidEndpointError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError>;
53
- /**
54
- * @see {@link TransactGetCommand}
55
- */
56
- transactGet(args: TransactGetCommandInput, options?: HttpHandlerOptions): Effect.Effect<TransactGetCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | InvalidEndpointError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError | TransactionCanceledError>;
57
- /**
58
- * @see {@link TransactWriteCommand}
59
- */
60
- transactWrite(args: TransactWriteCommandInput, options?: HttpHandlerOptions): Effect.Effect<TransactWriteCommandOutput, Cause.TimeoutException | SdkError | IdempotentParameterMismatchError | InternalServerError | InvalidEndpointError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError | TransactionCanceledError | TransactionInProgressError>;
61
- /**
62
- * @see {@link UpdateCommand}
63
- */
64
- update(args: UpdateCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateCommandOutput, Cause.TimeoutException | SdkError | ConditionalCheckFailedError | InternalServerError | InvalidEndpointError | ItemCollectionSizeLimitExceededError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError | TransactionConflictError>;
65
- }
66
- /**
67
- * @since 1.0.0
68
- * @category constructors
69
- */
70
- export declare const makeDynamoDBDocumentService: Effect.Effect<DynamoDBDocumentService$, never, Instance.DynamoDBDocumentClientInstance>;
71
- declare const DynamoDBDocumentService_base: import("effect/Context").TagClass<DynamoDBDocumentService, "@effect-aws/dynamodb/DynamoDBDocumentService", DynamoDBDocumentService$> & Effect.Tag.Proxy<DynamoDBDocumentService, DynamoDBDocumentService$> & {
72
- use: <X>(body: (_: DynamoDBDocumentService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, DynamoDBDocumentService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, DynamoDBDocumentService> : Effect.Effect<X, never, DynamoDBDocumentService>;
73
- };
74
- /**
75
- * @since 1.0.0
76
- * @category models
77
- */
78
- export declare class DynamoDBDocumentService extends DynamoDBDocumentService_base {
79
- static readonly defaultLayer: Layer.Layer<DynamoDBDocumentService, never, never>;
80
- static readonly layer: (config: DynamoDBDocumentService.Config) => Layer.Layer<DynamoDBDocumentService, never, never>;
81
- static readonly baseLayer: (evaluate: (defaultConfig: DynamoDBClientConfig) => DynamoDBDocumentClient) => Layer.Layer<DynamoDBDocumentService, never, never>;
82
- }
83
- /**
84
- * @since 1.0.0
85
- */
86
- export declare namespace DynamoDBDocumentService {
87
- /**
88
- * @since 1.0.0
89
- */
90
- type Config = TranslateConfig;
91
- /**
92
- * @since 1.0.0
93
- */
94
- type Type = DynamoDBDocumentService$;
95
- }
96
- export {};
97
- //# sourceMappingURL=DynamoDBDocumentService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DynamoDBDocumentService.d.ts","sourceRoot":"","sources":["../../src/DynamoDBDocumentService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,KAAK,EACV,iCAAiC,EACjC,kCAAkC,EAClC,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,4BAA4B,EAC5B,6BAA6B,EAC7B,8BAA8B,EAC9B,+BAA+B,EAC/B,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,gBAA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AgB,GACtB,QAAQ,GACR,gCAAgC,GAChC,mBAAmB,GACnB,oBAAoB,GACpB,kCAAkC,GAClC,yBAAyB,GACzB,qBAAqB,GACrB,wBAAwB,GACxB,0BAA0B,CAC7B,CAAC;IAEF;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,kBAAkB,EACxB,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,mBAAmB,EACjB,KAAK,CAAC,gBAAgB,GACtB,QAAQ,GACR,2BAA2B,GAC3B,mBAAmB,GACnB,oBAAoB,GACpB,oCAAoC,GACpC,kCAAkC,GAClC,yBAAyB,GACzB,qBAAqB,GACrB,wBAAwB,CAC3B,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,2BAA2B,yFAMtC,CAAC;;;;AAEH;;;GAGG;AACH,qBAAa,uBAAwB,SAAQ,4BAES;IACpD,MAAM,CAAC,QAAQ,CAAC,YAAY,qDAAuF;IACnH,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,wBAAwB,MAAM,wDAI3D;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,oBAAoB,KAAK,sBAAsB,wDASvE;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,uBAAuB,CAAC;IAC/C;;OAEG;IACH,KAAY,MAAM,GAAG,eAAe,CAAC;IAErC;;OAEG;IACH,KAAY,IAAI,GAAG,wBAAwB,CAAC;CAC7C"}
@@ -1,68 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.DynamoDBDocumentService = exports.makeDynamoDBDocumentService = void 0;
27
- const lib_dynamodb_1 = require("@aws-sdk/lib-dynamodb");
28
- const client_dynamodb_1 = require("@effect-aws/client-dynamodb");
29
- const commons_1 = require("@effect-aws/commons");
30
- const effect_1 = require("effect");
31
- const Instance = __importStar(require("./DynamoDBDocumentClientInstance.js"));
32
- const DynamoDBDocumentServiceConfig = __importStar(require("./DynamoDBDocumentServiceConfig.js"));
33
- const commands = {
34
- BatchExecuteStatementCommand: lib_dynamodb_1.BatchExecuteStatementCommand,
35
- BatchGetCommand: lib_dynamodb_1.BatchGetCommand,
36
- BatchWriteCommand: lib_dynamodb_1.BatchWriteCommand,
37
- DeleteCommand: lib_dynamodb_1.DeleteCommand,
38
- ExecuteStatementCommand: lib_dynamodb_1.ExecuteStatementCommand,
39
- ExecuteTransactionCommand: lib_dynamodb_1.ExecuteTransactionCommand,
40
- GetCommand: lib_dynamodb_1.GetCommand,
41
- PutCommand: lib_dynamodb_1.PutCommand,
42
- QueryCommand: lib_dynamodb_1.QueryCommand,
43
- ScanCommand: lib_dynamodb_1.ScanCommand,
44
- TransactGetCommand: lib_dynamodb_1.TransactGetCommand,
45
- TransactWriteCommand: lib_dynamodb_1.TransactWriteCommand,
46
- UpdateCommand: lib_dynamodb_1.UpdateCommand,
47
- };
48
- /**
49
- * @since 1.0.0
50
- * @category constructors
51
- */
52
- exports.makeDynamoDBDocumentService = effect_1.Effect.gen(function* () {
53
- const client = yield* Instance.DynamoDBDocumentClientInstance;
54
- return yield* commons_1.Service.fromClientAndCommands(client, commands, {
55
- resolveClientConfig: client_dynamodb_1.DynamoDBServiceConfig.toDynamoDBClientConfig,
56
- });
57
- });
58
- /**
59
- * @since 1.0.0
60
- * @category models
61
- */
62
- class DynamoDBDocumentService extends effect_1.Effect.Tag("@effect-aws/dynamodb/DynamoDBDocumentService")() {
63
- static defaultLayer = effect_1.Layer.effect(this, exports.makeDynamoDBDocumentService).pipe(effect_1.Layer.provide(Instance.layer));
64
- static layer = (config) => effect_1.Layer.effect(this, exports.makeDynamoDBDocumentService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(DynamoDBDocumentServiceConfig.setDynamoDBDocumentServiceConfig(config)));
65
- static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeDynamoDBDocumentService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.DynamoDBDocumentClientInstance, effect_1.Effect.map(client_dynamodb_1.DynamoDBServiceConfig.toDynamoDBClientConfig, evaluate))));
66
- }
67
- exports.DynamoDBDocumentService = DynamoDBDocumentService;
68
- //# sourceMappingURL=DynamoDBDocumentService.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DynamoDBDocumentService.js","sourceRoot":"","sources":["../../src/DynamoDBDocumentService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,wDAc+B;AAgB/B,iEAAoE;AACpE,iDAAuE;AAEvE,mCAAuC;AACvC,8EAAgE;AAChE,kGAAoF;AAEpF,MAAM,QAAQ,GAAG;IACf,4BAA4B,EAA5B,2CAA4B;IAC5B,eAAe,EAAf,8BAAe;IACf,iBAAiB,EAAjB,gCAAiB;IACjB,aAAa,EAAb,4BAAa;IACb,uBAAuB,EAAvB,sCAAuB;IACvB,yBAAyB,EAAzB,wCAAyB;IACzB,UAAU,EAAV,yBAAU;IACV,UAAU,EAAV,yBAAU;IACV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,QAAQ,CAAC,CACnE,CACF,CACF,CAAC;;AAnBN,0DAoBC"}
@@ -1,25 +0,0 @@
1
- /**
2
- * @since 1.0.0
3
- */
4
- import type { TranslateConfig } from "@aws-sdk/lib-dynamodb";
5
- import { Effect, Layer } from "effect";
6
- import type { DynamoDBDocumentService } from "./DynamoDBDocumentService.js";
7
- /**
8
- * @since 1.0.0
9
- * @category dynamodb service config
10
- */
11
- export declare const withDynamoDBDocumentServiceConfig: {
12
- (config: DynamoDBDocumentService.Config): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
13
- <A, E, R>(effect: Effect.Effect<A, E, R>, config: DynamoDBDocumentService.Config): Effect.Effect<A, E, R>;
14
- };
15
- /**
16
- * @since 1.0.0
17
- * @category dynamodb service config
18
- */
19
- export declare const setDynamoDBDocumentServiceConfig: (config: DynamoDBDocumentService.Config) => Layer.Layer<never, never, never>;
20
- /**
21
- * @since 1.0.0
22
- * @category adapters
23
- */
24
- export declare const toTranslateConfig: Effect.Effect<TranslateConfig>;
25
- //# sourceMappingURL=DynamoDBDocumentServiceConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DynamoDBDocumentServiceConfig.d.ts","sourceRoot":"","sources":["../../src/DynamoDBDocumentServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAW5E;;;GAGG;AACH,eAAO,MAAM,iCAAiC,EAAE;IAC9C,CAAC,MAAM,EAAE,uBAAuB,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9G,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,uBAAuB,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAK3G,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gCAAgC,WAAY,wBAAwB,MAAM,qCACpB,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe,CAAsD,CAAC"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toTranslateConfig = exports.setDynamoDBDocumentServiceConfig = exports.withDynamoDBDocumentServiceConfig = void 0;
4
- const effect_1 = require("effect");
5
- const Function_1 = require("effect/Function");
6
- const GlobalValue_1 = require("effect/GlobalValue");
7
- /**
8
- * @since 1.0.0
9
- * @category dynamodb service config
10
- */
11
- const currentDynamoDBDocumentServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/dynamodb/currentDynamoDBDocumentServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
12
- /**
13
- * @since 1.0.0
14
- * @category dynamodb service config
15
- */
16
- exports.withDynamoDBDocumentServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentDynamoDBDocumentServiceConfig, config));
17
- /**
18
- * @since 1.0.0
19
- * @category dynamodb service config
20
- */
21
- const setDynamoDBDocumentServiceConfig = (config) => effect_1.Layer.locallyScoped(currentDynamoDBDocumentServiceConfig, config);
22
- exports.setDynamoDBDocumentServiceConfig = setDynamoDBDocumentServiceConfig;
23
- /**
24
- * @since 1.0.0
25
- * @category adapters
26
- */
27
- exports.toTranslateConfig = effect_1.FiberRef.get(currentDynamoDBDocumentServiceConfig);
28
- //# sourceMappingURL=DynamoDBDocumentServiceConfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DynamoDBDocumentServiceConfig.js","sourceRoot":"","sources":["../../src/DynamoDBDocumentServiceConfig.ts"],"names":[],"mappings":";;;AAIA,mCAAiD;AACjD,8CAAuC;AACvC,oDAAiD;AAGjD;;;GAGG;AACH,MAAM,oCAAoC,GAAG,IAAA,yBAAW,EACtD,2DAA2D,EAC3D,GAAG,EAAE,CAAC,iBAAQ,CAAC,UAAU,CAAiC,EAAE,CAAC,CAC9D,CAAC;AAEF;;;GAGG;AACU,QAAA,iCAAiC,GAG1C,IAAA,eAAI,EACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAAsC,EAA0B,EAAE,CAC1G,eAAM,CAAC,OAAO,CAAC,MAAM,EAAE,oCAAoC,EAAE,MAAM,CAAC,CACvE,CAAC;AAEF;;;GAGG;AACI,MAAM,gCAAgC,GAAG,CAAC,MAAsC,EAAE,EAAE,CACzF,cAAK,CAAC,aAAa,CAAC,oCAAoC,EAAE,MAAM,CAAC,CAAC;AADvD,QAAA,gCAAgC,oCACuB;AAEpE;;;GAGG;AACU,QAAA,iBAAiB,GAAmC,iBAAQ,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC"}