@effect-aws/client-textract 1.10.9 → 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.
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/dts/TextractClientInstance.d.ts +2 -2
- package/dist/dts/TextractClientInstance.d.ts.map +1 -1
- package/dist/dts/TextractService.d.ts +27 -29
- package/dist/dts/TextractService.d.ts.map +1 -1
- package/dist/dts/TextractServiceConfig.d.ts.map +1 -1
- package/dist/esm/TextractClientInstance.js +3 -3
- package/dist/esm/TextractClientInstance.js.map +1 -1
- package/dist/esm/TextractService.js +2 -2
- package/dist/esm/TextractService.js.map +1 -1
- package/dist/esm/TextractServiceConfig.js +5 -6
- package/dist/esm/TextractServiceConfig.js.map +1 -1
- package/package.json +8 -14
- package/src/TextractClientInstance.ts +4 -4
- package/src/TextractService.ts +28 -28
- package/src/TextractServiceConfig.ts +6 -7
- package/dist/cjs/Errors.d.ts +0 -25
- package/dist/cjs/Errors.d.ts.map +0 -1
- package/dist/cjs/Errors.js +0 -24
- package/dist/cjs/Errors.js.map +0 -1
- package/dist/cjs/TextractClientInstance.d.ts +0 -24
- package/dist/cjs/TextractClientInstance.d.ts.map +0 -1
- package/dist/cjs/TextractClientInstance.js +0 -50
- package/dist/cjs/TextractClientInstance.js.map +0 -1
- package/dist/cjs/TextractService.d.ts +0 -146
- package/dist/cjs/TextractService.d.ts.map +0 -1
- package/dist/cjs/TextractService.js +0 -84
- package/dist/cjs/TextractService.js.map +0 -1
- package/dist/cjs/TextractServiceConfig.d.ts +0 -25
- package/dist/cjs/TextractServiceConfig.d.ts.map +0 -1
- package/dist/cjs/TextractServiceConfig.js +0 -35
- package/dist/cjs/TextractServiceConfig.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -44
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -56
- package/dist/cjs/index.js.map +0 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ With default TextractClient instance:
|
|
|
16
16
|
```typescript
|
|
17
17
|
import { Textract } from "@effect-aws/client-textract";
|
|
18
18
|
|
|
19
|
-
const program = Textract.listAdapters(args);
|
|
19
|
+
const program = Textract.use((svc) => svc.listAdapters(args));
|
|
20
20
|
|
|
21
21
|
const result = pipe(
|
|
22
22
|
program,
|
|
@@ -30,7 +30,7 @@ With custom TextractClient instance:
|
|
|
30
30
|
```typescript
|
|
31
31
|
import { Textract } from "@effect-aws/client-textract";
|
|
32
32
|
|
|
33
|
-
const program = Textract.listAdapters(args);
|
|
33
|
+
const program = Textract.use((svc) => svc.listAdapters(args));
|
|
34
34
|
|
|
35
35
|
const result = await pipe(
|
|
36
36
|
program,
|
|
@@ -46,7 +46,7 @@ With custom TextractClient configuration:
|
|
|
46
46
|
```typescript
|
|
47
47
|
import { Textract } from "@effect-aws/client-textract";
|
|
48
48
|
|
|
49
|
-
const program = Textract.listAdapters(args);
|
|
49
|
+
const program = Textract.use((svc) => svc.listAdapters(args));
|
|
50
50
|
|
|
51
51
|
const result = await pipe(
|
|
52
52
|
program,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { TextractClient } from "@aws-sdk/client-textract";
|
|
5
|
-
import {
|
|
6
|
-
declare const TextractClientInstance_base:
|
|
5
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
6
|
+
declare const TextractClientInstance_base: ServiceMap.ServiceClass<TextractClientInstance, "@effect-aws/client-textract/TextractClientInstance", TextractClient>;
|
|
7
7
|
/**
|
|
8
8
|
* @since 1.0.0
|
|
9
9
|
* @category tags
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextractClientInstance.d.ts","sourceRoot":"","sources":["../../src/TextractClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"TextractClientInstance.d.ts","sourceRoot":"","sources":["../../src/TextractClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;;AAGnD;;;GAGG;AACH,qBAAa,sBAAuB,SAAQ,2BAE3C;CAAG;AAEJ;;;GAGG;AACH,eAAO,MAAM,IAAI,oEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,mDAA6C,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { type AnalyzeDocumentCommandInput, type AnalyzeDocumentCommandOutput, type AnalyzeExpenseCommandInput, type AnalyzeExpenseCommandOutput, type AnalyzeIDCommandInput, type AnalyzeIDCommandOutput, type CreateAdapterCommandInput, type CreateAdapterCommandOutput, type CreateAdapterVersionCommandInput, type CreateAdapterVersionCommandOutput, type DeleteAdapterCommandInput, type DeleteAdapterCommandOutput, type DeleteAdapterVersionCommandInput, type DeleteAdapterVersionCommandOutput, type DetectDocumentTextCommandInput, type DetectDocumentTextCommandOutput, type GetAdapterCommandInput, type GetAdapterCommandOutput, type GetAdapterVersionCommandInput, type GetAdapterVersionCommandOutput, type GetDocumentAnalysisCommandInput, type GetDocumentAnalysisCommandOutput, type GetDocumentTextDetectionCommandInput, type GetDocumentTextDetectionCommandOutput, type GetExpenseAnalysisCommandInput, type GetExpenseAnalysisCommandOutput, type GetLendingAnalysisCommandInput, type GetLendingAnalysisCommandOutput, type GetLendingAnalysisSummaryCommandInput, type GetLendingAnalysisSummaryCommandOutput, type ListAdaptersCommandInput, type ListAdaptersCommandOutput, type ListAdapterVersionsCommandInput, type ListAdapterVersionsCommandOutput, type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput, type StartDocumentAnalysisCommandInput, type StartDocumentAnalysisCommandOutput, type StartDocumentTextDetectionCommandInput, type StartDocumentTextDetectionCommandOutput, type StartExpenseAnalysisCommandInput, type StartExpenseAnalysisCommandOutput, type StartLendingAnalysisCommandInput, type StartLendingAnalysisCommandOutput, type TagResourceCommandInput, type TagResourceCommandOutput, type TextractClient, type TextractClientConfig, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateAdapterCommandInput, type UpdateAdapterCommandOutput } from "@aws-sdk/client-textract";
|
|
5
5
|
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
6
6
|
import type { Cause } from "effect";
|
|
7
|
-
import { Effect, Layer } from "effect";
|
|
7
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
8
8
|
import type { AccessDeniedError, BadDocumentError, ConflictError, DocumentTooLargeError, HumanLoopQuotaExceededError, IdempotentParameterMismatchError, InternalServerError, InvalidJobIdError, InvalidKMSKeyError, InvalidParameterError, InvalidS3ObjectError, LimitExceededError, ProvisionedThroughputExceededError, ResourceNotFoundError, SdkError, ServiceQuotaExceededError, ThrottlingError, UnsupportedDocumentError, ValidationError } from "./Errors.js";
|
|
9
9
|
import * as Instance from "./TextractClientInstance.js";
|
|
10
10
|
interface TextractService$ {
|
|
@@ -12,112 +12,110 @@ interface TextractService$ {
|
|
|
12
12
|
/**
|
|
13
13
|
* @see {@link AnalyzeDocumentCommand}
|
|
14
14
|
*/
|
|
15
|
-
analyzeDocument(args: AnalyzeDocumentCommandInput, options?: HttpHandlerOptions): Effect.Effect<AnalyzeDocumentCommandOutput, Cause.
|
|
15
|
+
analyzeDocument(args: AnalyzeDocumentCommandInput, options?: HttpHandlerOptions): Effect.Effect<AnalyzeDocumentCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | HumanLoopQuotaExceededError | InternalServerError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
|
|
16
16
|
/**
|
|
17
17
|
* @see {@link AnalyzeExpenseCommand}
|
|
18
18
|
*/
|
|
19
|
-
analyzeExpense(args: AnalyzeExpenseCommandInput, options?: HttpHandlerOptions): Effect.Effect<AnalyzeExpenseCommandOutput, Cause.
|
|
19
|
+
analyzeExpense(args: AnalyzeExpenseCommandInput, options?: HttpHandlerOptions): Effect.Effect<AnalyzeExpenseCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | InternalServerError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
|
|
20
20
|
/**
|
|
21
21
|
* @see {@link AnalyzeIDCommand}
|
|
22
22
|
*/
|
|
23
|
-
analyzeID(args: AnalyzeIDCommandInput, options?: HttpHandlerOptions): Effect.Effect<AnalyzeIDCommandOutput, Cause.
|
|
23
|
+
analyzeID(args: AnalyzeIDCommandInput, options?: HttpHandlerOptions): Effect.Effect<AnalyzeIDCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | InternalServerError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
|
|
24
24
|
/**
|
|
25
25
|
* @see {@link CreateAdapterCommand}
|
|
26
26
|
*/
|
|
27
|
-
createAdapter(args: CreateAdapterCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateAdapterCommandOutput, Cause.
|
|
27
|
+
createAdapter(args: CreateAdapterCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateAdapterCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError | IdempotentParameterMismatchError | InternalServerError | InvalidParameterError | LimitExceededError | ProvisionedThroughputExceededError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
28
28
|
/**
|
|
29
29
|
* @see {@link CreateAdapterVersionCommand}
|
|
30
30
|
*/
|
|
31
|
-
createAdapterVersion(args: CreateAdapterVersionCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateAdapterVersionCommandOutput, Cause.
|
|
31
|
+
createAdapterVersion(args: CreateAdapterVersionCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateAdapterVersionCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError | IdempotentParameterMismatchError | InternalServerError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | LimitExceededError | ProvisionedThroughputExceededError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
32
32
|
/**
|
|
33
33
|
* @see {@link DeleteAdapterCommand}
|
|
34
34
|
*/
|
|
35
|
-
deleteAdapter(args: DeleteAdapterCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteAdapterCommandOutput, Cause.
|
|
35
|
+
deleteAdapter(args: DeleteAdapterCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteAdapterCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
36
36
|
/**
|
|
37
37
|
* @see {@link DeleteAdapterVersionCommand}
|
|
38
38
|
*/
|
|
39
|
-
deleteAdapterVersion(args: DeleteAdapterVersionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteAdapterVersionCommandOutput, Cause.
|
|
39
|
+
deleteAdapterVersion(args: DeleteAdapterVersionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteAdapterVersionCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
40
40
|
/**
|
|
41
41
|
* @see {@link DetectDocumentTextCommand}
|
|
42
42
|
*/
|
|
43
|
-
detectDocumentText(args: DetectDocumentTextCommandInput, options?: HttpHandlerOptions): Effect.Effect<DetectDocumentTextCommandOutput, Cause.
|
|
43
|
+
detectDocumentText(args: DetectDocumentTextCommandInput, options?: HttpHandlerOptions): Effect.Effect<DetectDocumentTextCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | InternalServerError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
|
|
44
44
|
/**
|
|
45
45
|
* @see {@link GetAdapterCommand}
|
|
46
46
|
*/
|
|
47
|
-
getAdapter(args: GetAdapterCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAdapterCommandOutput, Cause.
|
|
47
|
+
getAdapter(args: GetAdapterCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAdapterCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
48
48
|
/**
|
|
49
49
|
* @see {@link GetAdapterVersionCommand}
|
|
50
50
|
*/
|
|
51
|
-
getAdapterVersion(args: GetAdapterVersionCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAdapterVersionCommandOutput, Cause.
|
|
51
|
+
getAdapterVersion(args: GetAdapterVersionCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAdapterVersionCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
52
52
|
/**
|
|
53
53
|
* @see {@link GetDocumentAnalysisCommand}
|
|
54
54
|
*/
|
|
55
|
-
getDocumentAnalysis(args: GetDocumentAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetDocumentAnalysisCommandOutput, Cause.
|
|
55
|
+
getDocumentAnalysis(args: GetDocumentAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetDocumentAnalysisCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidJobIdError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError>;
|
|
56
56
|
/**
|
|
57
57
|
* @see {@link GetDocumentTextDetectionCommand}
|
|
58
58
|
*/
|
|
59
|
-
getDocumentTextDetection(args: GetDocumentTextDetectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetDocumentTextDetectionCommandOutput, Cause.
|
|
59
|
+
getDocumentTextDetection(args: GetDocumentTextDetectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetDocumentTextDetectionCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidJobIdError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError>;
|
|
60
60
|
/**
|
|
61
61
|
* @see {@link GetExpenseAnalysisCommand}
|
|
62
62
|
*/
|
|
63
|
-
getExpenseAnalysis(args: GetExpenseAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetExpenseAnalysisCommandOutput, Cause.
|
|
63
|
+
getExpenseAnalysis(args: GetExpenseAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetExpenseAnalysisCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidJobIdError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError>;
|
|
64
64
|
/**
|
|
65
65
|
* @see {@link GetLendingAnalysisCommand}
|
|
66
66
|
*/
|
|
67
|
-
getLendingAnalysis(args: GetLendingAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetLendingAnalysisCommandOutput, Cause.
|
|
67
|
+
getLendingAnalysis(args: GetLendingAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetLendingAnalysisCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidJobIdError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError>;
|
|
68
68
|
/**
|
|
69
69
|
* @see {@link GetLendingAnalysisSummaryCommand}
|
|
70
70
|
*/
|
|
71
|
-
getLendingAnalysisSummary(args: GetLendingAnalysisSummaryCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetLendingAnalysisSummaryCommandOutput, Cause.
|
|
71
|
+
getLendingAnalysisSummary(args: GetLendingAnalysisSummaryCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetLendingAnalysisSummaryCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidJobIdError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError>;
|
|
72
72
|
/**
|
|
73
73
|
* @see {@link ListAdapterVersionsCommand}
|
|
74
74
|
*/
|
|
75
|
-
listAdapterVersions(args: ListAdapterVersionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListAdapterVersionsCommandOutput, Cause.
|
|
75
|
+
listAdapterVersions(args: ListAdapterVersionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListAdapterVersionsCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
76
76
|
/**
|
|
77
77
|
* @see {@link ListAdaptersCommand}
|
|
78
78
|
*/
|
|
79
|
-
listAdapters(args: ListAdaptersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListAdaptersCommandOutput, Cause.
|
|
79
|
+
listAdapters(args: ListAdaptersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListAdaptersCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ThrottlingError | ValidationError>;
|
|
80
80
|
/**
|
|
81
81
|
* @see {@link ListTagsForResourceCommand}
|
|
82
82
|
*/
|
|
83
|
-
listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, Cause.
|
|
83
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
84
84
|
/**
|
|
85
85
|
* @see {@link StartDocumentAnalysisCommand}
|
|
86
86
|
*/
|
|
87
|
-
startDocumentAnalysis(args: StartDocumentAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartDocumentAnalysisCommandOutput, Cause.
|
|
87
|
+
startDocumentAnalysis(args: StartDocumentAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartDocumentAnalysisCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | IdempotentParameterMismatchError | InternalServerError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | LimitExceededError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
|
|
88
88
|
/**
|
|
89
89
|
* @see {@link StartDocumentTextDetectionCommand}
|
|
90
90
|
*/
|
|
91
|
-
startDocumentTextDetection(args: StartDocumentTextDetectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartDocumentTextDetectionCommandOutput, Cause.
|
|
91
|
+
startDocumentTextDetection(args: StartDocumentTextDetectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartDocumentTextDetectionCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | IdempotentParameterMismatchError | InternalServerError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | LimitExceededError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
|
|
92
92
|
/**
|
|
93
93
|
* @see {@link StartExpenseAnalysisCommand}
|
|
94
94
|
*/
|
|
95
|
-
startExpenseAnalysis(args: StartExpenseAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartExpenseAnalysisCommandOutput, Cause.
|
|
95
|
+
startExpenseAnalysis(args: StartExpenseAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartExpenseAnalysisCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | IdempotentParameterMismatchError | InternalServerError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | LimitExceededError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
|
|
96
96
|
/**
|
|
97
97
|
* @see {@link StartLendingAnalysisCommand}
|
|
98
98
|
*/
|
|
99
|
-
startLendingAnalysis(args: StartLendingAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartLendingAnalysisCommandOutput, Cause.
|
|
99
|
+
startLendingAnalysis(args: StartLendingAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartLendingAnalysisCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | IdempotentParameterMismatchError | InternalServerError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | LimitExceededError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
|
|
100
100
|
/**
|
|
101
101
|
* @see {@link TagResourceCommand}
|
|
102
102
|
*/
|
|
103
|
-
tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, Cause.
|
|
103
|
+
tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
104
104
|
/**
|
|
105
105
|
* @see {@link UntagResourceCommand}
|
|
106
106
|
*/
|
|
107
|
-
untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, Cause.
|
|
107
|
+
untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
108
108
|
/**
|
|
109
109
|
* @see {@link UpdateAdapterCommand}
|
|
110
110
|
*/
|
|
111
|
-
updateAdapter(args: UpdateAdapterCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateAdapterCommandOutput, Cause.
|
|
111
|
+
updateAdapter(args: UpdateAdapterCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateAdapterCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
112
112
|
}
|
|
113
113
|
/**
|
|
114
114
|
* @since 1.0.0
|
|
115
115
|
* @category constructors
|
|
116
116
|
*/
|
|
117
117
|
export declare const makeTextractService: Effect.Effect<TextractService$, never, Instance.TextractClientInstance>;
|
|
118
|
-
declare const TextractService_base:
|
|
119
|
-
use: <X>(body: (_: TextractService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, TextractService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, TextractService> : Effect.Effect<X, never, TextractService>;
|
|
120
|
-
};
|
|
118
|
+
declare const TextractService_base: ServiceMap.ServiceClass<TextractService, "@effect-aws/client-textract/TextractService", TextractService$>;
|
|
121
119
|
/**
|
|
122
120
|
* @since 1.0.0
|
|
123
121
|
* @category models
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextractService.d.ts","sourceRoot":"","sources":["../../src/TextractService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EAEjC,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAE3B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,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AAyB,EAC/B,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,0BAA0B,EACxB,KAAK,CAAC,YAAY,GAClB,QAAQ,GACR,iBAAiB,GACjB,mBAAmB,GACnB,qBAAqB,GACrB,kCAAkC,GAClC,qBAAqB,GACrB,eAAe,GACf,eAAe,CAClB,CAAC;IAEF;;OAEG;IACH,aAAa,CACX,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,0BAA0B,EACxB,KAAK,CAAC,YAAY,GAClB,QAAQ,GACR,iBAAiB,GACjB,aAAa,GACb,mBAAmB,GACnB,qBAAqB,GACrB,kCAAkC,GAClC,qBAAqB,GACrB,eAAe,GACf,eAAe,CAClB,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,yEAW9B,CAAC;;AAEH;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,oBAGa;IAChD,MAAM,CAAC,QAAQ,CAAC,YAAY,6CAA+E;IAC3G,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,gBAAgB,MAAM,gDAInD;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,oBAAoB,KAAK,cAAc,gDAS/D;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC;QAClE,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;IAED;;OAEG;IACH,KAAY,IAAI,GAAG,gBAAgB,CAAC;CACrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextractServiceConfig.d.ts","sourceRoot":"","sources":["../../src/TextractServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TextractServiceConfig.d.ts","sourceRoot":"","sources":["../../src/TextractServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAc,MAAM,QAAQ,CAAC;AAEnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAW5D;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE;IACtC,CAAC,MAAM,EAAE,eAAe,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;IACtG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAKnG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,WAAY,gBAAgB,MAAM,qCAClB,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAQrE,CAAC"}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { TextractClient } from "@aws-sdk/client-textract";
|
|
5
|
-
import {
|
|
5
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
6
6
|
import * as TextractServiceConfig from "./TextractServiceConfig.js";
|
|
7
7
|
/**
|
|
8
8
|
* @since 1.0.0
|
|
9
9
|
* @category tags
|
|
10
10
|
*/
|
|
11
|
-
export class TextractClientInstance extends
|
|
11
|
+
export class TextractClientInstance extends ServiceMap.Service()("@effect-aws/client-textract/TextractClientInstance") {
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* @since 1.0.0
|
|
@@ -19,5 +19,5 @@ export const make = Effect.flatMap(TextractServiceConfig.toTextractClientConfig,
|
|
|
19
19
|
* @since 1.0.0
|
|
20
20
|
* @category layers
|
|
21
21
|
*/
|
|
22
|
-
export const layer = Layer.
|
|
22
|
+
export const layer = Layer.effect(TextractClientInstance, make);
|
|
23
23
|
//# sourceMappingURL=TextractClientInstance.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextractClientInstance.js","sourceRoot":"","sources":["../../src/TextractClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"TextractClientInstance.js","sourceRoot":"","sources":["../../src/TextractClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,KAAK,qBAAqB,MAAM,4BAA4B,CAAC;AAEpE;;;GAGG;AACH,MAAM,OAAO,sBAAuB,SAAQ,UAAU,CAAC,OAAO,EAA0C,CACtG,oDAAoD,CACrD;CAAG;AAEJ;;;GAGG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAChC,qBAAqB,CAAC,sBAAsB,EAC5C,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,CAAC,cAAc,CACnB,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,cAAc,CAAC,MAAM,CAAC,CAAC,EAC7C,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { AnalyzeDocumentCommand, AnalyzeExpenseCommand, AnalyzeIDCommand, CreateAdapterCommand, CreateAdapterVersionCommand, DeleteAdapterCommand, DeleteAdapterVersionCommand, DetectDocumentTextCommand, GetAdapterCommand, GetAdapterVersionCommand, GetDocumentAnalysisCommand, GetDocumentTextDetectionCommand, GetExpenseAnalysisCommand, GetLendingAnalysisCommand, GetLendingAnalysisSummaryCommand, ListAdaptersCommand, ListAdapterVersionsCommand, ListTagsForResourceCommand, StartDocumentAnalysisCommand, StartDocumentTextDetectionCommand, StartExpenseAnalysisCommand, StartLendingAnalysisCommand, TagResourceCommand, UntagResourceCommand, UpdateAdapterCommand, } from "@aws-sdk/client-textract";
|
|
5
5
|
import { Service } from "@effect-aws/commons";
|
|
6
|
-
import { Effect, Layer } from "effect";
|
|
6
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
7
7
|
import { AllServiceErrors } from "./Errors.js";
|
|
8
8
|
import * as Instance from "./TextractClientInstance.js";
|
|
9
9
|
import * as TextractServiceConfig from "./TextractServiceConfig.js";
|
|
@@ -49,7 +49,7 @@ export const makeTextractService = Effect.gen(function* () {
|
|
|
49
49
|
* @since 1.0.0
|
|
50
50
|
* @category models
|
|
51
51
|
*/
|
|
52
|
-
export class TextractService extends
|
|
52
|
+
export class TextractService extends ServiceMap.Service()("@effect-aws/client-textract/TextractService") {
|
|
53
53
|
static defaultLayer = Layer.effect(this, makeTextractService).pipe(Layer.provide(Instance.layer));
|
|
54
54
|
static layer = (config) => Layer.effect(this, makeTextractService).pipe(Layer.provide(Instance.layer), Layer.provide(TextractServiceConfig.setTextractServiceConfig(config)));
|
|
55
55
|
static baseLayer = (evaluate) => Layer.effect(this, makeTextractService).pipe(Layer.provide(Layer.effect(Instance.TextractClientInstance, Effect.map(TextractServiceConfig.toTextractClientConfig, evaluate))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextractService.js","sourceRoot":"","sources":["../../src/TextractService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,sBAAsB,EAGtB,qBAAqB,EAGrB,gBAAgB,EAGhB,oBAAoB,EAGpB,2BAA2B,EAG3B,oBAAoB,EAGpB,2BAA2B,EAG3B,yBAAyB,EAGzB,iBAAiB,EAGjB,wBAAwB,EAGxB,0BAA0B,EAG1B,+BAA+B,EAG/B,yBAAyB,EAGzB,yBAAyB,EAGzB,gCAAgC,EAGhC,mBAAmB,EAGnB,0BAA0B,EAG1B,0BAA0B,EAG1B,4BAA4B,EAG5B,iCAAiC,EAGjC,2BAA2B,EAG3B,2BAA2B,EAG3B,kBAAkB,EAKlB,oBAAoB,EAGpB,oBAAoB,GAGrB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"TextractService.js","sourceRoot":"","sources":["../../src/TextractService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,sBAAsB,EAGtB,qBAAqB,EAGrB,gBAAgB,EAGhB,oBAAoB,EAGpB,2BAA2B,EAG3B,oBAAoB,EAGpB,2BAA2B,EAG3B,yBAAyB,EAGzB,iBAAiB,EAGjB,wBAAwB,EAGxB,0BAA0B,EAG1B,+BAA+B,EAG/B,yBAAyB,EAGzB,yBAAyB,EAGzB,gCAAgC,EAGhC,mBAAmB,EAGnB,0B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AAQ,UAAU,CAAC,OAAO,EAGpD,CAAC,6CAA6C,CAAC;IAChD,MAAM,CAAU,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3G,MAAM,CAAU,KAAK,GAAG,CAAC,MAA8B,EAAE,EAAE,CACzD,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC,IAAI,CAC1C,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,KAAK,CAAC,OAAO,CAAC,qBAAqB,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC,CACtE,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAiE,EACjE,EAAE,CACF,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC,IAAI,CAC1C,KAAK,CAAC,OAAO,CACX,KAAK,CAAC,MAAM,CACV,QAAQ,CAAC,sBAAsB,EAC/B,MAAM,CAAC,GAAG,CAAC,qBAAqB,CAAC,sBAAsB,EAAE,QAAQ,CAAC,CACnE,CACF,CACF,CAAC"}
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
import { ServiceLogger } from "@effect-aws/commons";
|
|
2
|
-
import { Effect,
|
|
2
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
3
3
|
import { dual } from "effect/Function";
|
|
4
|
-
import { globalValue } from "effect/GlobalValue";
|
|
5
4
|
/**
|
|
6
5
|
* @since 1.0.0
|
|
7
6
|
* @category textract service config
|
|
8
7
|
*/
|
|
9
|
-
const currentTextractServiceConfig =
|
|
8
|
+
const currentTextractServiceConfig = ServiceMap.Reference("@effect-aws/client-textract/currentTextractServiceConfig", { defaultValue: () => ({}) });
|
|
10
9
|
/**
|
|
11
10
|
* @since 1.0.0
|
|
12
11
|
* @category textract service config
|
|
13
12
|
*/
|
|
14
|
-
export const withTextractServiceConfig = dual(2, (effect, config) => Effect.
|
|
13
|
+
export const withTextractServiceConfig = dual(2, (effect, config) => Effect.provideService(effect, currentTextractServiceConfig, config));
|
|
15
14
|
/**
|
|
16
15
|
* @since 1.0.0
|
|
17
16
|
* @category textract service config
|
|
18
17
|
*/
|
|
19
|
-
export const setTextractServiceConfig = (config) => Layer.
|
|
18
|
+
export const setTextractServiceConfig = (config) => Layer.succeed(currentTextractServiceConfig, config);
|
|
20
19
|
/**
|
|
21
20
|
* @since 1.0.0
|
|
22
21
|
* @category adapters
|
|
23
22
|
*/
|
|
24
23
|
export const toTextractClientConfig = Effect.gen(function* () {
|
|
25
|
-
const { logger: serviceLogger, ...config } = yield*
|
|
24
|
+
const { logger: serviceLogger, ...config } = yield* currentTextractServiceConfig;
|
|
26
25
|
const logger = serviceLogger === true
|
|
27
26
|
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
|
28
27
|
: (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextractServiceConfig.js","sourceRoot":"","sources":["../../src/TextractServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"TextractServiceConfig.js","sourceRoot":"","sources":["../../src/TextractServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAGvC;;;GAGG;AACH,MAAM,4BAA4B,GAAG,UAAU,CAAC,SAAS,CACvD,0DAA0D,EAC1D,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAC7B,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAGlC,IAAI,CACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAA8B,EAA0B,EAAE,CAClG,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,4BAA4B,EAAE,MAAM,CAAC,CACtE,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,MAA8B,EAAE,EAAE,CACzE,KAAK,CAAC,OAAO,CAAC,4BAA4B,EAAE,MAAM,CAAC,CAAC;AAEtD;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAwC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC7F,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,4BAA4B,CAAC;IAEjF,MAAM,MAAM,GAAG,aAAa,KAAK,IAAI;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,CAAC,oBAAoB,CAAC;QACzE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAEzG,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AAC/B,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-aws/client-textract",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.0",
|
|
4
4
|
"description": "Effectful AWS Textract client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,40 +16,34 @@
|
|
|
16
16
|
"homepage": "https://floydspace.github.io/effect-aws/docs/client-textract",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@aws-sdk/client-textract": "^3",
|
|
19
|
-
"@effect-aws/commons": "^0.
|
|
19
|
+
"@effect-aws/commons": "^1.0.0-beta.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"effect": ">=
|
|
22
|
+
"effect": ">=4.0.0 <5.0.0"
|
|
23
23
|
},
|
|
24
|
-
"main": "./dist/cjs/index.js",
|
|
25
24
|
"module": "./dist/esm/index.js",
|
|
26
25
|
"types": "./dist/dts/index.d.ts",
|
|
27
26
|
"exports": {
|
|
28
27
|
"./package.json": "./package.json",
|
|
29
28
|
".": {
|
|
30
29
|
"types": "./dist/dts/index.d.ts",
|
|
31
|
-
"import": "./dist/esm/index.js"
|
|
32
|
-
"default": "./dist/cjs/index.js"
|
|
30
|
+
"import": "./dist/esm/index.js"
|
|
33
31
|
},
|
|
34
32
|
"./Errors": {
|
|
35
33
|
"types": "./dist/dts/Errors.d.ts",
|
|
36
|
-
"import": "./dist/esm/Errors.js"
|
|
37
|
-
"default": "./dist/cjs/Errors.js"
|
|
34
|
+
"import": "./dist/esm/Errors.js"
|
|
38
35
|
},
|
|
39
36
|
"./TextractClientInstance": {
|
|
40
37
|
"types": "./dist/dts/TextractClientInstance.d.ts",
|
|
41
|
-
"import": "./dist/esm/TextractClientInstance.js"
|
|
42
|
-
"default": "./dist/cjs/TextractClientInstance.js"
|
|
38
|
+
"import": "./dist/esm/TextractClientInstance.js"
|
|
43
39
|
},
|
|
44
40
|
"./TextractService": {
|
|
45
41
|
"types": "./dist/dts/TextractService.d.ts",
|
|
46
|
-
"import": "./dist/esm/TextractService.js"
|
|
47
|
-
"default": "./dist/cjs/TextractService.js"
|
|
42
|
+
"import": "./dist/esm/TextractService.js"
|
|
48
43
|
},
|
|
49
44
|
"./TextractServiceConfig": {
|
|
50
45
|
"types": "./dist/dts/TextractServiceConfig.d.ts",
|
|
51
|
-
"import": "./dist/esm/TextractServiceConfig.js"
|
|
52
|
-
"default": "./dist/cjs/TextractServiceConfig.js"
|
|
46
|
+
"import": "./dist/esm/TextractServiceConfig.js"
|
|
53
47
|
}
|
|
54
48
|
},
|
|
55
49
|
"typesVersions": {
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { TextractClient } from "@aws-sdk/client-textract";
|
|
5
|
-
import {
|
|
5
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
6
6
|
import * as TextractServiceConfig from "./TextractServiceConfig.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @since 1.0.0
|
|
10
10
|
* @category tags
|
|
11
11
|
*/
|
|
12
|
-
export class TextractClientInstance extends
|
|
12
|
+
export class TextractClientInstance extends ServiceMap.Service<TextractClientInstance, TextractClient>()(
|
|
13
13
|
"@effect-aws/client-textract/TextractClientInstance",
|
|
14
|
-
)
|
|
14
|
+
) {}
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* @since 1.0.0
|
|
@@ -30,4 +30,4 @@ export const make = Effect.flatMap(
|
|
|
30
30
|
* @since 1.0.0
|
|
31
31
|
* @category layers
|
|
32
32
|
*/
|
|
33
|
-
export const layer = Layer.
|
|
33
|
+
export const layer = Layer.effect(TextractClientInstance, make);
|