@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
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2025 Victor Korzunin
1
+ Copyright (c) 2026 Victor Korzunin
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
@@ -3,8 +3,8 @@
3
3
  */
4
4
  import { DynamoDBDocumentClient } from "@aws-sdk/lib-dynamodb";
5
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>;
6
+ import { Effect, Layer, ServiceMap } from "effect";
7
+ declare const DynamoDBDocumentClientInstance_base: ServiceMap.ServiceClass<DynamoDBDocumentClientInstance, "@effect-aws/dynamodb/DynamoDBDocumentClientInstance", DynamoDBDocumentClient>;
8
8
  /**
9
9
  * @since 1.0.0
10
10
  * @category tags
@@ -1 +1 @@
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
+ {"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,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;;AAGnD;;;GAGG;AACH,qBAAa,8BACX,SAAQ,mCAEP;CACD;AAEF;;;GAGG;AACH,eAAO,MAAM,IAAI,6FAKhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,2DAEjB,CAAC"}
@@ -6,71 +6,69 @@ import type { BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOut
6
6
  import type { ConditionalCheckFailedError, DuplicateItemError, IdempotentParameterMismatchError, InternalServerError, InvalidEndpointError, ItemCollectionSizeLimitExceededError, ProvisionedThroughputExceededError, RequestLimitExceededError, ResourceNotFoundError, SdkError, TransactionCanceledError, TransactionConflictError, TransactionInProgressError } from "@effect-aws/client-dynamodb";
7
7
  import { type HttpHandlerOptions } from "@effect-aws/commons";
8
8
  import type { Cause } from "effect";
9
- import { Effect, Layer } from "effect";
9
+ import { Effect, Layer, ServiceMap } from "effect";
10
10
  import * as Instance from "./DynamoDBDocumentClientInstance.js";
11
11
  interface DynamoDBDocumentService$ {
12
12
  readonly _: unique symbol;
13
13
  /**
14
14
  * @see {@link BatchExecuteStatementCommand}
15
15
  */
16
- batchExecuteStatement(args: BatchExecuteStatementCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchExecuteStatementCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | RequestLimitExceededError>;
16
+ batchExecuteStatement(args: BatchExecuteStatementCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchExecuteStatementCommandOutput, Cause.TimeoutError | SdkError | InternalServerError | RequestLimitExceededError>;
17
17
  /**
18
18
  * @see {@link BatchGetCommand}
19
19
  */
20
- batchGet(args: BatchGetCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchGetCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | InvalidEndpointError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError>;
20
+ batchGet(args: BatchGetCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchGetCommandOutput, Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError>;
21
21
  /**
22
22
  * @see {@link BatchWriteCommand}
23
23
  */
24
- batchWrite(args: BatchWriteCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchWriteCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | InvalidEndpointError | ItemCollectionSizeLimitExceededError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError>;
24
+ batchWrite(args: BatchWriteCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchWriteCommandOutput, Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError | ItemCollectionSizeLimitExceededError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError>;
25
25
  /**
26
26
  * @see {@link DeleteCommand}
27
27
  */
28
- delete(args: DeleteCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteCommandOutput, Cause.TimeoutException | SdkError | ConditionalCheckFailedError | InternalServerError | InvalidEndpointError | ItemCollectionSizeLimitExceededError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError | TransactionConflictError>;
28
+ delete(args: DeleteCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteCommandOutput, Cause.TimeoutError | SdkError | ConditionalCheckFailedError | InternalServerError | InvalidEndpointError | ItemCollectionSizeLimitExceededError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError | TransactionConflictError>;
29
29
  /**
30
30
  * @see {@link ExecuteStatementCommand}
31
31
  */
32
- executeStatement(args: ExecuteStatementCommandInput, options?: HttpHandlerOptions): Effect.Effect<ExecuteStatementCommandOutput, Cause.TimeoutException | SdkError | ConditionalCheckFailedError | DuplicateItemError | InternalServerError | ItemCollectionSizeLimitExceededError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError | TransactionConflictError>;
32
+ executeStatement(args: ExecuteStatementCommandInput, options?: HttpHandlerOptions): Effect.Effect<ExecuteStatementCommandOutput, Cause.TimeoutError | SdkError | ConditionalCheckFailedError | DuplicateItemError | InternalServerError | ItemCollectionSizeLimitExceededError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError | TransactionConflictError>;
33
33
  /**
34
34
  * @see {@link ExecuteTransactionCommand}
35
35
  */
36
- executeTransaction(args: ExecuteTransactionCommandInput, options?: HttpHandlerOptions): Effect.Effect<ExecuteTransactionCommandOutput, Cause.TimeoutException | SdkError | IdempotentParameterMismatchError | InternalServerError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError | TransactionCanceledError | TransactionInProgressError>;
36
+ executeTransaction(args: ExecuteTransactionCommandInput, options?: HttpHandlerOptions): Effect.Effect<ExecuteTransactionCommandOutput, Cause.TimeoutError | SdkError | IdempotentParameterMismatchError | InternalServerError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError | TransactionCanceledError | TransactionInProgressError>;
37
37
  /**
38
38
  * @see {@link GetCommand}
39
39
  */
40
- get(args: GetCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | InvalidEndpointError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError>;
40
+ get(args: GetCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetCommandOutput, Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError>;
41
41
  /**
42
42
  * @see {@link PutCommand}
43
43
  */
44
- put(args: PutCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutCommandOutput, Cause.TimeoutException | SdkError | ConditionalCheckFailedError | InternalServerError | InvalidEndpointError | ItemCollectionSizeLimitExceededError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError | TransactionConflictError>;
44
+ put(args: PutCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutCommandOutput, Cause.TimeoutError | SdkError | ConditionalCheckFailedError | InternalServerError | InvalidEndpointError | ItemCollectionSizeLimitExceededError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError | TransactionConflictError>;
45
45
  /**
46
46
  * @see {@link QueryCommand}
47
47
  */
48
- query(args: QueryCommandInput, options?: HttpHandlerOptions): Effect.Effect<QueryCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | InvalidEndpointError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError>;
48
+ query(args: QueryCommandInput, options?: HttpHandlerOptions): Effect.Effect<QueryCommandOutput, Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError>;
49
49
  /**
50
50
  * @see {@link ScanCommand}
51
51
  */
52
- scan(args: ScanCommandInput, options?: HttpHandlerOptions): Effect.Effect<ScanCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | InvalidEndpointError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError>;
52
+ scan(args: ScanCommandInput, options?: HttpHandlerOptions): Effect.Effect<ScanCommandOutput, Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError>;
53
53
  /**
54
54
  * @see {@link TransactGetCommand}
55
55
  */
56
- transactGet(args: TransactGetCommandInput, options?: HttpHandlerOptions): Effect.Effect<TransactGetCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | InvalidEndpointError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError | TransactionCanceledError>;
56
+ transactGet(args: TransactGetCommandInput, options?: HttpHandlerOptions): Effect.Effect<TransactGetCommandOutput, Cause.TimeoutError | SdkError | InternalServerError | InvalidEndpointError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError | TransactionCanceledError>;
57
57
  /**
58
58
  * @see {@link TransactWriteCommand}
59
59
  */
60
- transactWrite(args: TransactWriteCommandInput, options?: HttpHandlerOptions): Effect.Effect<TransactWriteCommandOutput, Cause.TimeoutException | SdkError | IdempotentParameterMismatchError | InternalServerError | InvalidEndpointError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError | TransactionCanceledError | TransactionInProgressError>;
60
+ transactWrite(args: TransactWriteCommandInput, options?: HttpHandlerOptions): Effect.Effect<TransactWriteCommandOutput, Cause.TimeoutError | SdkError | IdempotentParameterMismatchError | InternalServerError | InvalidEndpointError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError | TransactionCanceledError | TransactionInProgressError>;
61
61
  /**
62
62
  * @see {@link UpdateCommand}
63
63
  */
64
- update(args: UpdateCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateCommandOutput, Cause.TimeoutException | SdkError | ConditionalCheckFailedError | InternalServerError | InvalidEndpointError | ItemCollectionSizeLimitExceededError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError | TransactionConflictError>;
64
+ update(args: UpdateCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateCommandOutput, Cause.TimeoutError | SdkError | ConditionalCheckFailedError | InternalServerError | InvalidEndpointError | ItemCollectionSizeLimitExceededError | ProvisionedThroughputExceededError | RequestLimitExceededError | ResourceNotFoundError | TransactionConflictError>;
65
65
  }
66
66
  /**
67
67
  * @since 1.0.0
68
68
  * @category constructors
69
69
  */
70
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
- };
71
+ declare const DynamoDBDocumentService_base: ServiceMap.ServiceClass<DynamoDBDocumentService, "@effect-aws/dynamodb/DynamoDBDocumentService", DynamoDBDocumentService$>;
74
72
  /**
75
73
  * @since 1.0.0
76
74
  * @category models
@@ -1 +1 @@
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,gBAAgB,EAChB,iBA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AQ,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
+ {"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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EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,0BAA0B,EACxB,KAAK,CAAC,YAAY,GAClB,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,YAAY,GAClB,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,4BAE5C;IACC,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 +1 @@
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;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,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,qCAC1B,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe,CAAmD,CAAC"}
@@ -1,18 +1,18 @@
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
  type WithoutTableNameInArgs = {
7
7
  [K in keyof Omit<DynamoDBDocumentService.Type, "_">]: Parameters<DynamoDBDocumentService.Type[K]>[0] extends {
8
8
  TableName?: string;
9
- } ? (args: Omit<Parameters<DynamoDBDocumentService.Type[K]>[0], "TableName">, options?: Parameters<DynamoDBDocumentService.Type[K]>[1]) => Effect.Effect<Effect.Effect.Success<ReturnType<DynamoDBDocumentService.Type[K]>> extends {
9
+ } ? (args: Omit<Parameters<DynamoDBDocumentService.Type[K]>[0], "TableName">, options?: Parameters<DynamoDBDocumentService.Type[K]>[1]) => Effect.Effect<Effect.Success<ReturnType<DynamoDBDocumentService.Type[K]>> extends {
10
10
  Item?: infer Item;
11
- } ? Item | undefined : Effect.Effect.Success<ReturnType<DynamoDBDocumentService.Type[K]>> extends {
11
+ } ? Item | undefined : Effect.Success<ReturnType<DynamoDBDocumentService.Type[K]>> extends {
12
12
  Items?: infer Items;
13
- } ? Items : Effect.Effect.Success<ReturnType<DynamoDBDocumentService.Type[K]>> extends {
13
+ } ? Items : Effect.Success<ReturnType<DynamoDBDocumentService.Type[K]>> extends {
14
14
  Attributes?: infer Attributes;
15
- } ? Attributes | undefined : never, Effect.Effect.Error<ReturnType<DynamoDBDocumentService.Type[K]>>, Effect.Effect.Context<ReturnType<DynamoDBDocumentService.Type[K]>>> : never;
15
+ } ? Attributes | undefined : never, Effect.Error<ReturnType<DynamoDBDocumentService.Type[K]>>, Effect.Services<ReturnType<DynamoDBDocumentService.Type[K]>>> : never;
16
16
  };
17
17
  type WithoutTableNameInBatchRequest = {
18
18
  [K in keyof Omit<DynamoDBDocumentService.Type, "_">]: Parameters<DynamoDBDocumentService.Type[K]>[0] extends {
@@ -29,10 +29,10 @@ type OmitNeverProps<T> = {
29
29
  * @category constructors
30
30
  */
31
31
  export declare const makeDynamoDBStore: (props: DynamoDBStore.Config) => Effect.Effect<{
32
- scan: (args: Omit<import("@aws-sdk/lib-dynamodb").ScanCommandInput, "TableName">) => Effect.Effect<Record<string, any>[], import("effect/Cause").TimeoutException | import("@effect-aws/client-dynamodb").SdkError | import("@effect-aws/client-dynamodb").InternalServerError | import("@effect-aws/client-dynamodb").RequestLimitExceededError | import("@effect-aws/client-dynamodb").InvalidEndpointError | import("@effect-aws/client-dynamodb").ProvisionedThroughputExceededError | import("@effect-aws/client-dynamodb").ResourceNotFoundError, never>;
33
- query: (args: Omit<import("@aws-sdk/lib-dynamodb").QueryCommandInput, "TableName">) => Effect.Effect<Record<string, any>[], import("effect/Cause").TimeoutException | import("@effect-aws/client-dynamodb").SdkError | import("@effect-aws/client-dynamodb").InternalServerError | import("@effect-aws/client-dynamodb").RequestLimitExceededError | import("@effect-aws/client-dynamodb").InvalidEndpointError | import("@effect-aws/client-dynamodb").ProvisionedThroughputExceededError | import("@effect-aws/client-dynamodb").ResourceNotFoundError, never>;
34
- get: (args: Omit<import("@aws-sdk/lib-dynamodb").GetCommandInput, "TableName">) => Effect.Effect<Record<string, any> | undefined, import("effect/Cause").TimeoutException | import("@effect-aws/client-dynamodb").SdkError | import("@effect-aws/client-dynamodb").InternalServerError | import("@effect-aws/client-dynamodb").RequestLimitExceededError | import("@effect-aws/client-dynamodb").InvalidEndpointError | import("@effect-aws/client-dynamodb").ProvisionedThroughputExceededError | import("@effect-aws/client-dynamodb").ResourceNotFoundError, never>;
35
- put: (args: Omit<import("@aws-sdk/lib-dynamodb").PutCommandInput, "TableName">) => Effect.Effect<Record<string, any> | undefined, import("effect/Cause").TimeoutException | import("@effect-aws/client-dynamodb").SdkError | import("@effect-aws/client-dynamodb").InternalServerError | import("@effect-aws/client-dynamodb").RequestLimitExceededError | import("@effect-aws/client-dynamodb").InvalidEndpointError | import("@effect-aws/client-dynamodb").ProvisionedThroughputExceededError | import("@effect-aws/client-dynamodb").ResourceNotFoundError | import("@effect-aws/client-dynamodb").ItemCollectionSizeLimitExceededError | import("@effect-aws/client-dynamodb").ConditionalCheckFailedError | import("@effect-aws/client-dynamodb").TransactionConflictError, never>;
32
+ scan: (args: Omit<import("@aws-sdk/lib-dynamodb").ScanCommandInput, "TableName">) => Effect.Effect<Record<string, any>[], import("effect/Cause").TimeoutError | import("@effect-aws/client-dynamodb").SdkError | import("@effect-aws/client-dynamodb").InternalServerError | import("@effect-aws/client-dynamodb").RequestLimitExceededError | import("@effect-aws/client-dynamodb").InvalidEndpointError | import("@effect-aws/client-dynamodb").ProvisionedThroughputExceededError | import("@effect-aws/client-dynamodb").ResourceNotFoundError, never>;
33
+ query: (args: Omit<import("@aws-sdk/lib-dynamodb").QueryCommandInput, "TableName">) => Effect.Effect<Record<string, any>[], import("effect/Cause").TimeoutError | import("@effect-aws/client-dynamodb").SdkError | import("@effect-aws/client-dynamodb").InternalServerError | import("@effect-aws/client-dynamodb").RequestLimitExceededError | import("@effect-aws/client-dynamodb").InvalidEndpointError | import("@effect-aws/client-dynamodb").ProvisionedThroughputExceededError | import("@effect-aws/client-dynamodb").ResourceNotFoundError, never>;
34
+ get: (args: Omit<import("@aws-sdk/lib-dynamodb").GetCommandInput, "TableName">) => Effect.Effect<Record<string, any> | undefined, import("effect/Cause").TimeoutError | import("@effect-aws/client-dynamodb").SdkError | import("@effect-aws/client-dynamodb").InternalServerError | import("@effect-aws/client-dynamodb").RequestLimitExceededError | import("@effect-aws/client-dynamodb").InvalidEndpointError | import("@effect-aws/client-dynamodb").ProvisionedThroughputExceededError | import("@effect-aws/client-dynamodb").ResourceNotFoundError, never>;
35
+ put: (args: Omit<import("@aws-sdk/lib-dynamodb").PutCommandInput, "TableName">) => Effect.Effect<Record<string, any> | undefined, import("effect/Cause").TimeoutError | import("@effect-aws/client-dynamodb").SdkError | import("@effect-aws/client-dynamodb").InternalServerError | import("@effect-aws/client-dynamodb").RequestLimitExceededError | import("@effect-aws/client-dynamodb").InvalidEndpointError | import("@effect-aws/client-dynamodb").ProvisionedThroughputExceededError | import("@effect-aws/client-dynamodb").ResourceNotFoundError | import("@effect-aws/client-dynamodb").ItemCollectionSizeLimitExceededError | import("@effect-aws/client-dynamodb").ConditionalCheckFailedError | import("@effect-aws/client-dynamodb").TransactionConflictError, never>;
36
36
  batchWrite: (items: (Omit<import("@aws-sdk/client-dynamodb").WriteRequest, "PutRequest" | "DeleteRequest"> & {
37
37
  PutRequest?: (Omit<import("@aws-sdk/client-dynamodb").PutRequest, "Item"> & {
38
38
  Item: Record<string, any> | undefined;
@@ -40,25 +40,23 @@ export declare const makeDynamoDBStore: (props: DynamoDBStore.Config) => Effect.
40
40
  DeleteRequest?: (Omit<import("@aws-sdk/client-dynamodb").DeleteRequest, "Key"> & {
41
41
  Key: Record<string, any> | undefined;
42
42
  }) | undefined;
43
- })[]) => Effect.Effect<import("@aws-sdk/lib-dynamodb").BatchWriteCommandOutput, import("effect/Cause").TimeoutException | import("@effect-aws/client-dynamodb").SdkError | import("@effect-aws/client-dynamodb").InternalServerError | import("@effect-aws/client-dynamodb").RequestLimitExceededError | import("@effect-aws/client-dynamodb").InvalidEndpointError | import("@effect-aws/client-dynamodb").ProvisionedThroughputExceededError | import("@effect-aws/client-dynamodb").ResourceNotFoundError | import("@effect-aws/client-dynamodb").ItemCollectionSizeLimitExceededError, never>;
44
- batchPut: (items: Record<string, any>[]) => Effect.Effect<import("@aws-sdk/lib-dynamodb").BatchWriteCommandOutput, import("effect/Cause").TimeoutException | import("@effect-aws/client-dynamodb").SdkError | import("@effect-aws/client-dynamodb").InternalServerError | import("@effect-aws/client-dynamodb").RequestLimitExceededError | import("@effect-aws/client-dynamodb").InvalidEndpointError | import("@effect-aws/client-dynamodb").ProvisionedThroughputExceededError | import("@effect-aws/client-dynamodb").ResourceNotFoundError | import("@effect-aws/client-dynamodb").ItemCollectionSizeLimitExceededError, never>;
45
- batchDelete: (keys: Record<string, any>[]) => Effect.Effect<import("@aws-sdk/lib-dynamodb").BatchWriteCommandOutput, import("effect/Cause").TimeoutException | import("@effect-aws/client-dynamodb").SdkError | import("@effect-aws/client-dynamodb").InternalServerError | import("@effect-aws/client-dynamodb").RequestLimitExceededError | import("@effect-aws/client-dynamodb").InvalidEndpointError | import("@effect-aws/client-dynamodb").ProvisionedThroughputExceededError | import("@effect-aws/client-dynamodb").ResourceNotFoundError | import("@effect-aws/client-dynamodb").ItemCollectionSizeLimitExceededError, never>;
43
+ })[]) => Effect.Effect<import("@aws-sdk/lib-dynamodb").BatchWriteCommandOutput, import("effect/Cause").TimeoutError | import("@effect-aws/client-dynamodb").SdkError | import("@effect-aws/client-dynamodb").InternalServerError | import("@effect-aws/client-dynamodb").RequestLimitExceededError | import("@effect-aws/client-dynamodb").InvalidEndpointError | import("@effect-aws/client-dynamodb").ProvisionedThroughputExceededError | import("@effect-aws/client-dynamodb").ResourceNotFoundError | import("@effect-aws/client-dynamodb").ItemCollectionSizeLimitExceededError, never>;
44
+ batchPut: (items: Record<string, any>[]) => Effect.Effect<import("@aws-sdk/lib-dynamodb").BatchWriteCommandOutput, import("effect/Cause").TimeoutError | import("@effect-aws/client-dynamodb").SdkError | import("@effect-aws/client-dynamodb").InternalServerError | import("@effect-aws/client-dynamodb").RequestLimitExceededError | import("@effect-aws/client-dynamodb").InvalidEndpointError | import("@effect-aws/client-dynamodb").ProvisionedThroughputExceededError | import("@effect-aws/client-dynamodb").ResourceNotFoundError | import("@effect-aws/client-dynamodb").ItemCollectionSizeLimitExceededError, never>;
45
+ batchDelete: (keys: Record<string, any>[]) => Effect.Effect<import("@aws-sdk/lib-dynamodb").BatchWriteCommandOutput, import("effect/Cause").TimeoutError | import("@effect-aws/client-dynamodb").SdkError | import("@effect-aws/client-dynamodb").InternalServerError | import("@effect-aws/client-dynamodb").RequestLimitExceededError | import("@effect-aws/client-dynamodb").InvalidEndpointError | import("@effect-aws/client-dynamodb").ProvisionedThroughputExceededError | import("@effect-aws/client-dynamodb").ResourceNotFoundError | import("@effect-aws/client-dynamodb").ItemCollectionSizeLimitExceededError, never>;
46
46
  batchGet: (items: Omit<import("@aws-sdk/client-dynamodb").KeysAndAttributes, "Keys"> & {
47
47
  Keys: Record<string, any>[] | undefined;
48
- }) => Effect.Effect<import("@aws-sdk/lib-dynamodb").BatchGetCommandOutput, import("effect/Cause").TimeoutException | import("@effect-aws/client-dynamodb").SdkError | import("@effect-aws/client-dynamodb").InternalServerError | import("@effect-aws/client-dynamodb").RequestLimitExceededError | import("@effect-aws/client-dynamodb").InvalidEndpointError | import("@effect-aws/client-dynamodb").ProvisionedThroughputExceededError | import("@effect-aws/client-dynamodb").ResourceNotFoundError, never>;
49
- update: (args: Omit<import("@aws-sdk/lib-dynamodb").UpdateCommandInput, "TableName">) => Effect.Effect<Record<string, any> | undefined, import("effect/Cause").TimeoutException | import("@effect-aws/client-dynamodb").SdkError | import("@effect-aws/client-dynamodb").InternalServerError | import("@effect-aws/client-dynamodb").RequestLimitExceededError | import("@effect-aws/client-dynamodb").InvalidEndpointError | import("@effect-aws/client-dynamodb").ProvisionedThroughputExceededError | import("@effect-aws/client-dynamodb").ResourceNotFoundError | import("@effect-aws/client-dynamodb").ItemCollectionSizeLimitExceededError | import("@effect-aws/client-dynamodb").ConditionalCheckFailedError | import("@effect-aws/client-dynamodb").TransactionConflictError, never>;
50
- delete: (args: Omit<import("@aws-sdk/lib-dynamodb").DeleteCommandInput, "TableName">) => Effect.Effect<Record<string, any> | undefined, import("effect/Cause").TimeoutException | import("@effect-aws/client-dynamodb").SdkError | import("@effect-aws/client-dynamodb").InternalServerError | import("@effect-aws/client-dynamodb").RequestLimitExceededError | import("@effect-aws/client-dynamodb").InvalidEndpointError | import("@effect-aws/client-dynamodb").ProvisionedThroughputExceededError | import("@effect-aws/client-dynamodb").ResourceNotFoundError | import("@effect-aws/client-dynamodb").ItemCollectionSizeLimitExceededError | import("@effect-aws/client-dynamodb").ConditionalCheckFailedError | import("@effect-aws/client-dynamodb").TransactionConflictError, never>;
48
+ }) => Effect.Effect<import("@aws-sdk/lib-dynamodb").BatchGetCommandOutput, import("effect/Cause").TimeoutError | import("@effect-aws/client-dynamodb").SdkError | import("@effect-aws/client-dynamodb").InternalServerError | import("@effect-aws/client-dynamodb").RequestLimitExceededError | import("@effect-aws/client-dynamodb").InvalidEndpointError | import("@effect-aws/client-dynamodb").ProvisionedThroughputExceededError | import("@effect-aws/client-dynamodb").ResourceNotFoundError, never>;
49
+ update: (args: Omit<import("@aws-sdk/lib-dynamodb").UpdateCommandInput, "TableName">) => Effect.Effect<Record<string, any> | undefined, import("effect/Cause").TimeoutError | import("@effect-aws/client-dynamodb").SdkError | import("@effect-aws/client-dynamodb").InternalServerError | import("@effect-aws/client-dynamodb").RequestLimitExceededError | import("@effect-aws/client-dynamodb").InvalidEndpointError | import("@effect-aws/client-dynamodb").ProvisionedThroughputExceededError | import("@effect-aws/client-dynamodb").ResourceNotFoundError | import("@effect-aws/client-dynamodb").ItemCollectionSizeLimitExceededError | import("@effect-aws/client-dynamodb").ConditionalCheckFailedError | import("@effect-aws/client-dynamodb").TransactionConflictError, never>;
50
+ delete: (args: Omit<import("@aws-sdk/lib-dynamodb").DeleteCommandInput, "TableName">) => Effect.Effect<Record<string, any> | undefined, import("effect/Cause").TimeoutError | import("@effect-aws/client-dynamodb").SdkError | import("@effect-aws/client-dynamodb").InternalServerError | import("@effect-aws/client-dynamodb").RequestLimitExceededError | import("@effect-aws/client-dynamodb").InvalidEndpointError | import("@effect-aws/client-dynamodb").ProvisionedThroughputExceededError | import("@effect-aws/client-dynamodb").ResourceNotFoundError | import("@effect-aws/client-dynamodb").ItemCollectionSizeLimitExceededError | import("@effect-aws/client-dynamodb").ConditionalCheckFailedError | import("@effect-aws/client-dynamodb").TransactionConflictError, never>;
51
51
  }, never, DynamoDBDocumentService>;
52
- declare const DynamoDBStore_base: import("effect/Context").TagClass<DynamoDBStore, "@effect-aws/dynamodb/DynamoDBStore", DynamoDBStore.Type> & Effect.Tag.Proxy<DynamoDBStore, DynamoDBStore.Type> & {
53
- use: <X>(body: (_: DynamoDBStore.Type) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, R | DynamoDBStore> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, import("effect/Cause").UnknownException, DynamoDBStore> : Effect.Effect<X, never, DynamoDBStore>;
54
- };
52
+ declare const DynamoDBStore_base: ServiceMap.ServiceClass<DynamoDBStore, "@effect-aws/dynamodb/DynamoDBStore", DynamoDBStore.Type>;
55
53
  /**
56
54
  * @since 1.0.0
57
55
  * @category models
58
56
  */
59
57
  export declare class DynamoDBStore extends DynamoDBStore_base {
60
58
  static layer: (props: DynamoDBStore.Config) => Layer.Layer<DynamoDBStore, never, DynamoDBDocumentService>;
61
- static layerConfig: (config: Config.Config.Wrap<DynamoDBStore.Config>) => Layer.Layer<DynamoDBStore, import("effect/ConfigError").ConfigError, DynamoDBDocumentService>;
59
+ static layerConfig: (config: Config.Wrap<DynamoDBStore.Config>) => Layer.Layer<DynamoDBStore, Config.ConfigError, DynamoDBDocumentService>;
62
60
  }
63
61
  /**
64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UAAU,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAC9C,KAAK;CACV,CAAC;AAEF,KAAK,cAAc,CAAC,CAAC,IAAI;KACtB,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACvD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;kCA2C5B,CAAC;;AAEH;;;GAGG;AACH,qBAAa,aAAc,SAAQ,kBAGM;IACvC,MAAM,CAAC,KAAK,UAAW,cAAc,MAAM,gEAAkD;IAC7F,MAAM,CAAC,WAAW,WAAY,OAAO,IAAI,CAAC,cAAc,MAAM,CAAC,6EACgC;CAChG;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC;;OAEG;IACH,KAAY,MAAM,GAAG;QACnB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;KAC5B,CAAC;IAEF;;OAEG;IACH,KAAY,IAAI,GACZ,cAAc,CAAC,sBAAsB,CAAC,GACtC,cAAc,CAAC,8BAA8B,CAAC,GAC9C;QACA,QAAQ,EAAE,CACR,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,KAC9B,UAAU,CAAC,uBAAuB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;QAC5D,WAAW,EAAE,CACX,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,KAC7B,UAAU,CAAC,uBAAuB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;KAC7D,CAAC;CACL"}
@@ -3,25 +3,25 @@
3
3
  */
4
4
  import { DynamoDBDocumentClient } from "@aws-sdk/lib-dynamodb";
5
5
  import { DynamoDBClientInstance } from "@effect-aws/client-dynamodb";
6
- import { Context, Effect, Layer } from "effect";
6
+ import { Effect, Layer, ServiceMap } from "effect";
7
7
  import * as DynamoDBDocumentServiceConfig from "./DynamoDBDocumentServiceConfig.js";
8
8
  /**
9
9
  * @since 1.0.0
10
10
  * @category tags
11
11
  */
12
- export class DynamoDBDocumentClientInstance extends Context.Tag("@effect-aws/dynamodb/DynamoDBDocumentClientInstance")() {
12
+ export class DynamoDBDocumentClientInstance extends ServiceMap.Service()("@effect-aws/dynamodb/DynamoDBDocumentClientInstance") {
13
13
  }
14
14
  /**
15
15
  * @since 1.0.0
16
16
  * @category constructors
17
17
  */
18
18
  export const make = Effect.all([
19
- DynamoDBClientInstance.DynamoDBClientInstance,
19
+ DynamoDBClientInstance.DynamoDBClientInstance.asEffect(),
20
20
  DynamoDBDocumentServiceConfig.toTranslateConfig,
21
21
  ]).pipe(Effect.map(([client, config]) => DynamoDBDocumentClient.from(client, config)));
22
22
  /**
23
23
  * @since 1.0.0
24
24
  * @category layers
25
25
  */
26
- export const layer = Layer.scoped(DynamoDBDocumentClientInstance, make).pipe(Layer.provide(DynamoDBClientInstance.layer));
26
+ export const layer = Layer.effect(DynamoDBDocumentClientInstance, make).pipe(Layer.provide(DynamoDBClientInstance.layer));
27
27
  //# sourceMappingURL=DynamoDBDocumentClientInstance.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DynamoDBDocumentClientInstance.js","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;AAChD,OAAO,KAAK,6BAA6B,MAAM,oCAAoC,CAAC;AAEpF;;;GAGG;AACH,MAAM,OAAO,8BAA+B,SAAQ,OAAO,CAAC,GAAG,CAC7D,qDAAqD,CACtD,EAA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AE,MAAM,CAAC,CAAC,CAC9E,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,8BAA8B,EAAE,IAAI,CAAC,CAAC,IAAI,CAC1E,KAAK,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAC5C,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { BatchExecuteStatementCommand, BatchGetCommand, BatchWriteCommand, DeleteCommand, ExecuteStatementCommand, ExecuteTransactionCommand, GetCommand, PutCommand, QueryCommand, ScanCommand, TransactGetCommand, TransactWriteCommand, UpdateCommand, } from "@aws-sdk/lib-dynamodb";
2
2
  import { DynamoDBServiceConfig } from "@effect-aws/client-dynamodb";
3
3
  import { Service } from "@effect-aws/commons";
4
- import { Effect, Layer } from "effect";
4
+ import { Effect, Layer, ServiceMap } from "effect";
5
5
  import * as Instance from "./DynamoDBDocumentClientInstance.js";
6
6
  import * as DynamoDBDocumentServiceConfig from "./DynamoDBDocumentServiceConfig.js";
7
7
  const commands = {
@@ -33,7 +33,7 @@ export const makeDynamoDBDocumentService = Effect.gen(function* () {
33
33
  * @since 1.0.0
34
34
  * @category models
35
35
  */
36
- export class DynamoDBDocumentService extends Effect.Tag("@effect-aws/dynamodb/DynamoDBDocumentService")() {
36
+ export class DynamoDBDocumentService extends ServiceMap.Service()("@effect-aws/dynamodb/DynamoDBDocumentService") {
37
37
  static defaultLayer = Layer.effect(this, makeDynamoDBDocumentService).pipe(Layer.provide(Instance.layer));
38
38
  static layer = (config) => Layer.effect(this, makeDynamoDBDocumentService).pipe(Layer.provide(Instance.layer), Layer.provide(DynamoDBDocumentServiceConfig.setDynamoDBDocumentServiceConfig(config)));
39
39
  static baseLayer = (evaluate) => Layer.effect(this, makeDynamoDBDocumentService).pipe(Layer.provide(Layer.effect(Instance.DynamoDBDocumentClientInstance, Effect.map(DynamoDBServiceConfig.toDynamoDBClientConfig, evaluate))));
@@ -1 +1 @@
1
- {"version":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C,8BAA8B,EACvC,MAAM,CAAC,GAAG,CAAC,qBAAqB,CAAC,sBAAsB,EAAE,QAAQ,CAAC,CACnE,CACF,CACF,CAAC"}
@@ -1,24 +1,23 @@
1
- import { Effect, FiberRef, Layer } from "effect";
1
+ import { Effect, Layer, ServiceMap } from "effect";
2
2
  import { dual } from "effect/Function";
3
- import { globalValue } from "effect/GlobalValue";
4
3
  /**
5
4
  * @since 1.0.0
6
5
  * @category dynamodb service config
7
6
  */
8
- const currentDynamoDBDocumentServiceConfig = globalValue("@effect-aws/dynamodb/currentDynamoDBDocumentServiceConfig", () => FiberRef.unsafeMake({}));
7
+ const currentDynamoDBDocumentServiceConfig = ServiceMap.Reference("@effect-aws/dynamodb/currentDynamoDBDocumentServiceConfig", { defaultValue: () => ({}) });
9
8
  /**
10
9
  * @since 1.0.0
11
10
  * @category dynamodb service config
12
11
  */
13
- export const withDynamoDBDocumentServiceConfig = dual(2, (effect, config) => Effect.locally(effect, currentDynamoDBDocumentServiceConfig, config));
12
+ export const withDynamoDBDocumentServiceConfig = dual(2, (effect, config) => Effect.provideService(effect, currentDynamoDBDocumentServiceConfig, config));
14
13
  /**
15
14
  * @since 1.0.0
16
15
  * @category dynamodb service config
17
16
  */
18
- export const setDynamoDBDocumentServiceConfig = (config) => Layer.locallyScoped(currentDynamoDBDocumentServiceConfig, config);
17
+ export const setDynamoDBDocumentServiceConfig = (config) => Layer.succeed(currentDynamoDBDocumentServiceConfig, config);
19
18
  /**
20
19
  * @since 1.0.0
21
20
  * @category adapters
22
21
  */
23
- export const toTranslateConfig = FiberRef.get(currentDynamoDBDocumentServiceConfig);
22
+ export const toTranslateConfig = currentDynamoDBDocumentServiceConfig.asEffect();
24
23
  //# sourceMappingURL=DynamoDBDocumentServiceConfig.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DynamoDBDocumentServiceConfig.js","sourceRoot":"","sources":["../../src/DynamoDBDocumentServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM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M,CAAC,cAAc,CAAC,MAAM,EAAE,oCAAoC,EAAE,MAAM,CAAC,CAC9E,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,MAAsC,EAAE,EAAE,CACzF,KAAK,CAAC,OAAO,CAAC,oCAAoC,EAAE,MAAM,CAAC,CAAC;AAE9D;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAmC,oCAAoC,CAAC,QAAQ,EAAE,CAAC"}
@@ -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
  * @since 1.0.0
@@ -46,8 +46,8 @@ export const makeDynamoDBStore = Effect.fn(function* (props) {
46
46
  * @since 1.0.0
47
47
  * @category models
48
48
  */
49
- export class DynamoDBStore extends Effect.Tag("@effect-aws/dynamodb/DynamoDBStore")() {
49
+ export class DynamoDBStore extends ServiceMap.Service()("@effect-aws/dynamodb/DynamoDBStore") {
50
50
  static layer = (props) => Layer.effect(this, makeDynamoDBStore(props));
51
- static layerConfig = (config) => Layer.effect(this, Config.unwrap(config).pipe(Effect.flatMap(makeDynamoDBStore)));
51
+ static layerConfig = (config) => Layer.effect(this, Config.unwrap(config).asEffect().pipe(Effect.flatMap(makeDynamoDBStore)));
52
52
  }
53
53
  //# sourceMappingURL=DynamoDBStore.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DynamoDBStore.js","sourceRoot":"","sources":["../../src/DynamoDBStore.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAuCvE;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CA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@
1
1
  {
2
2
  "name": "@effect-aws/dynamodb",
3
- "version": "1.0.3",
3
+ "version": "2.0.0-beta.0",
4
4
  "description": "Effectful AWS DynamoDB library & functions",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -17,41 +17,35 @@
17
17
  "dependencies": {
18
18
  "@aws-sdk/client-dynamodb": "^3",
19
19
  "@aws-sdk/lib-dynamodb": "^3",
20
- "@effect-aws/commons": "^0.3.1"
20
+ "@effect-aws/commons": "^1.0.0-beta.0"
21
21
  },
22
22
  "peerDependencies": {
23
- "effect": ">=3.0.4 <4.0.0",
24
- "@effect-aws/client-dynamodb": "^1.10.9"
23
+ "effect": ">=4.0.0 <5.0.0",
24
+ "@effect-aws/client-dynamodb": "^2.0.0-beta.0"
25
25
  },
26
- "main": "./dist/cjs/index.js",
27
26
  "module": "./dist/esm/index.js",
28
27
  "types": "./dist/dts/index.d.ts",
29
28
  "exports": {
30
29
  "./package.json": "./package.json",
31
30
  ".": {
32
31
  "types": "./dist/dts/index.d.ts",
33
- "import": "./dist/esm/index.js",
34
- "default": "./dist/cjs/index.js"
32
+ "import": "./dist/esm/index.js"
35
33
  },
36
34
  "./DynamoDBDocumentClientInstance": {
37
35
  "types": "./dist/dts/DynamoDBDocumentClientInstance.d.ts",
38
- "import": "./dist/esm/DynamoDBDocumentClientInstance.js",
39
- "default": "./dist/cjs/DynamoDBDocumentClientInstance.js"
36
+ "import": "./dist/esm/DynamoDBDocumentClientInstance.js"
40
37
  },
41
38
  "./DynamoDBDocumentService": {
42
39
  "types": "./dist/dts/DynamoDBDocumentService.d.ts",
43
- "import": "./dist/esm/DynamoDBDocumentService.js",
44
- "default": "./dist/cjs/DynamoDBDocumentService.js"
40
+ "import": "./dist/esm/DynamoDBDocumentService.js"
45
41
  },
46
42
  "./DynamoDBDocumentServiceConfig": {
47
43
  "types": "./dist/dts/DynamoDBDocumentServiceConfig.d.ts",
48
- "import": "./dist/esm/DynamoDBDocumentServiceConfig.js",
49
- "default": "./dist/cjs/DynamoDBDocumentServiceConfig.js"
44
+ "import": "./dist/esm/DynamoDBDocumentServiceConfig.js"
50
45
  },
51
46
  "./DynamoDBStore": {
52
47
  "types": "./dist/dts/DynamoDBStore.d.ts",
53
- "import": "./dist/esm/DynamoDBStore.js",
54
- "default": "./dist/cjs/DynamoDBStore.js"
48
+ "import": "./dist/esm/DynamoDBStore.js"
55
49
  }
56
50
  },
57
51
  "typesVersions": {
@@ -3,23 +3,25 @@
3
3
  */
4
4
  import { DynamoDBDocumentClient } from "@aws-sdk/lib-dynamodb";
5
5
  import { DynamoDBClientInstance } from "@effect-aws/client-dynamodb";
6
- import { Context, Effect, Layer } from "effect";
6
+ import { Effect, Layer, ServiceMap } from "effect";
7
7
  import * as DynamoDBDocumentServiceConfig from "./DynamoDBDocumentServiceConfig.js";
8
8
 
9
9
  /**
10
10
  * @since 1.0.0
11
11
  * @category tags
12
12
  */
13
- export class DynamoDBDocumentClientInstance extends Context.Tag(
14
- "@effect-aws/dynamodb/DynamoDBDocumentClientInstance",
15
- )<DynamoDBDocumentClientInstance, DynamoDBDocumentClient>() {}
13
+ export class DynamoDBDocumentClientInstance
14
+ extends ServiceMap.Service<DynamoDBDocumentClientInstance, DynamoDBDocumentClient>()(
15
+ "@effect-aws/dynamodb/DynamoDBDocumentClientInstance",
16
+ )
17
+ {}
16
18
 
17
19
  /**
18
20
  * @since 1.0.0
19
21
  * @category constructors
20
22
  */
21
23
  export const make = Effect.all([
22
- DynamoDBClientInstance.DynamoDBClientInstance,
24
+ DynamoDBClientInstance.DynamoDBClientInstance.asEffect(),
23
25
  DynamoDBDocumentServiceConfig.toTranslateConfig,
24
26
  ]).pipe(
25
27
  Effect.map(([client, config]) => DynamoDBDocumentClient.from(client, config)),
@@ -29,6 +31,6 @@ export const make = Effect.all([
29
31
  * @since 1.0.0
30
32
  * @category layers
31
33
  */
32
- export const layer = Layer.scoped(DynamoDBDocumentClientInstance, make).pipe(
34
+ export const layer = Layer.effect(DynamoDBDocumentClientInstance, make).pipe(
33
35
  Layer.provide(DynamoDBClientInstance.layer),
34
36
  );