@effect-aws/client-textract 1.2.0 → 1.9.3

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 (69) hide show
  1. package/Errors/package.json +6 -0
  2. package/TextractClientInstance/package.json +6 -0
  3. package/TextractService/package.json +6 -0
  4. package/TextractServiceConfig/package.json +6 -0
  5. package/{lib → dist/cjs}/Errors.d.ts +6 -11
  6. package/dist/cjs/Errors.d.ts.map +1 -0
  7. package/dist/cjs/Errors.js +26 -0
  8. package/dist/cjs/Errors.js.map +1 -0
  9. package/dist/cjs/TextractClientInstance.d.ts +24 -0
  10. package/dist/cjs/TextractClientInstance.d.ts.map +1 -0
  11. package/dist/cjs/TextractClientInstance.js +50 -0
  12. package/dist/cjs/TextractClientInstance.js.map +1 -0
  13. package/dist/cjs/TextractService.d.ts +141 -0
  14. package/dist/cjs/TextractService.d.ts.map +1 -0
  15. package/dist/cjs/TextractService.js +84 -0
  16. package/dist/cjs/TextractService.js.map +1 -0
  17. package/dist/cjs/TextractServiceConfig.d.ts +25 -0
  18. package/dist/cjs/TextractServiceConfig.d.ts.map +1 -0
  19. package/dist/cjs/TextractServiceConfig.js +35 -0
  20. package/dist/cjs/TextractServiceConfig.js.map +1 -0
  21. package/dist/cjs/index.d.ts +39 -0
  22. package/dist/cjs/index.d.ts.map +1 -0
  23. package/dist/cjs/index.js +56 -0
  24. package/dist/cjs/index.js.map +1 -0
  25. package/dist/dts/Errors.d.ts +25 -0
  26. package/dist/dts/Errors.d.ts.map +1 -0
  27. package/dist/dts/TextractClientInstance.d.ts +24 -0
  28. package/dist/dts/TextractClientInstance.d.ts.map +1 -0
  29. package/dist/dts/TextractService.d.ts +141 -0
  30. package/dist/dts/TextractService.d.ts.map +1 -0
  31. package/dist/dts/TextractServiceConfig.d.ts +25 -0
  32. package/dist/dts/TextractServiceConfig.d.ts.map +1 -0
  33. package/dist/dts/index.d.ts +39 -0
  34. package/dist/dts/index.d.ts.map +1 -0
  35. package/dist/esm/Errors.js +23 -0
  36. package/dist/esm/Errors.js.map +1 -0
  37. package/dist/esm/TextractClientInstance.js +23 -0
  38. package/dist/esm/TextractClientInstance.js.map +1 -0
  39. package/dist/esm/TextractService.js +57 -0
  40. package/dist/esm/TextractService.js.map +1 -0
  41. package/dist/esm/TextractServiceConfig.js +31 -0
  42. package/dist/esm/TextractServiceConfig.js.map +1 -0
  43. package/dist/esm/index.js +27 -0
  44. package/dist/esm/index.js.map +1 -0
  45. package/dist/esm/package.json +4 -0
  46. package/package.json +60 -43
  47. package/src/Errors.ts +65 -0
  48. package/src/TextractClientInstance.ts +33 -0
  49. package/src/TextractService.ts +692 -0
  50. package/src/TextractServiceConfig.ts +52 -0
  51. package/src/index.ts +44 -0
  52. package/CHANGELOG.md +0 -19
  53. package/docgen.json +0 -8
  54. package/lib/Errors.js +0 -26
  55. package/lib/TextractClientInstance.d.ts +0 -31
  56. package/lib/TextractClientInstance.js +0 -57
  57. package/lib/TextractClientInstanceConfig.d.ts +0 -23
  58. package/lib/TextractClientInstanceConfig.js +0 -44
  59. package/lib/TextractService.d.ts +0 -190
  60. package/lib/TextractService.js +0 -113
  61. package/lib/esm/Errors.js +0 -23
  62. package/lib/esm/TextractClientInstance.js +0 -30
  63. package/lib/esm/TextractClientInstanceConfig.js +0 -40
  64. package/lib/esm/TextractService.js +0 -109
  65. package/lib/esm/index.js +0 -5
  66. package/lib/index.d.ts +0 -4
  67. package/lib/index.js +0 -21
  68. package/project.json +0 -77
  69. package/vitest.config.ts +0 -3
@@ -0,0 +1,25 @@
1
+ import type { AccessDeniedException, BadDocumentException, ConflictException, DocumentTooLargeException, HumanLoopQuotaExceededException, IdempotentParameterMismatchException, InternalServerError as InternalServerException, InvalidJobIdException, InvalidKMSKeyException, InvalidParameterException, InvalidS3ObjectException, LimitExceededException, ProvisionedThroughputExceededException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnsupportedDocumentException, ValidationException } from "@aws-sdk/client-textract";
2
+ import type { TaggedException } from "@effect-aws/commons";
3
+ import { SdkError as CommonSdkError } from "@effect-aws/commons";
4
+ export declare const AllServiceErrors: readonly ["AccessDeniedException", "BadDocumentException", "ConflictException", "DocumentTooLargeException", "HumanLoopQuotaExceededException", "IdempotentParameterMismatchException", "InternalServerError", "InvalidJobIdException", "InvalidKMSKeyException", "InvalidParameterException", "InvalidS3ObjectException", "LimitExceededException", "ProvisionedThroughputExceededException", "ResourceNotFoundException", "ServiceQuotaExceededException", "ThrottlingException", "UnsupportedDocumentException", "ValidationException"];
5
+ export type AccessDeniedError = TaggedException<AccessDeniedException>;
6
+ export type BadDocumentError = TaggedException<BadDocumentException>;
7
+ export type ConflictError = TaggedException<ConflictException>;
8
+ export type DocumentTooLargeError = TaggedException<DocumentTooLargeException>;
9
+ export type HumanLoopQuotaExceededError = TaggedException<HumanLoopQuotaExceededException>;
10
+ export type IdempotentParameterMismatchError = TaggedException<IdempotentParameterMismatchException>;
11
+ export type InternalServerError = TaggedException<InternalServerException>;
12
+ export type InvalidJobIdError = TaggedException<InvalidJobIdException>;
13
+ export type InvalidKMSKeyError = TaggedException<InvalidKMSKeyException>;
14
+ export type InvalidParameterError = TaggedException<InvalidParameterException>;
15
+ export type InvalidS3ObjectError = TaggedException<InvalidS3ObjectException>;
16
+ export type LimitExceededError = TaggedException<LimitExceededException>;
17
+ export type ProvisionedThroughputExceededError = TaggedException<ProvisionedThroughputExceededException>;
18
+ export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
19
+ export type ServiceQuotaExceededError = TaggedException<ServiceQuotaExceededException>;
20
+ export type ThrottlingError = TaggedException<ThrottlingException>;
21
+ export type UnsupportedDocumentError = TaggedException<UnsupportedDocumentException>;
22
+ export type ValidationError = TaggedException<ValidationException>;
23
+ export type SdkError = CommonSdkError;
24
+ export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
25
+ //# sourceMappingURL=Errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file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AAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,kCAAkC,GAAG,eAAe,CAAC,sCAAsC,CAAC,CAAC;AACzG,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC,4BAA4B,CAAC,CAAC;AACrF,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AAEnE,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,gEAAiB,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { TextractClient } from "@aws-sdk/client-textract";
5
+ import { Context, Effect, Layer } from "effect";
6
+ declare const TextractClientInstance_base: Context.TagClass<TextractClientInstance, "@effect-aws/client-textract/TextractClientInstance", TextractClient>;
7
+ /**
8
+ * @since 1.0.0
9
+ * @category tags
10
+ */
11
+ export declare class TextractClientInstance extends TextractClientInstance_base {
12
+ }
13
+ /**
14
+ * @since 1.0.0
15
+ * @category constructors
16
+ */
17
+ export declare const make: Effect.Effect<TextractClient, never, import("effect/Scope").Scope>;
18
+ /**
19
+ * @since 1.0.0
20
+ * @category layers
21
+ */
22
+ export declare const layer: Layer.Layer<TextractClientInstance, never, never>;
23
+ export {};
24
+ //# sourceMappingURL=TextractClientInstance.d.ts.map
@@ -0,0 +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,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,sBAAuB,SAAQ,2BAED;CAAG;AAE9C;;;GAGG;AACH,eAAO,MAAM,IAAI,oEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,mDAA6C,CAAC"}
@@ -0,0 +1,141 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
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
+ import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
6
+ import { Effect, Layer } from "effect";
7
+ import type { AccessDeniedError, BadDocumentError, ConflictError, DocumentTooLargeError, HumanLoopQuotaExceededError, IdempotentParameterMismatchError, InternalServerError, InvalidJobIdError, InvalidKMSKeyError, InvalidParameterError, InvalidS3ObjectError, LimitExceededError, ProvisionedThroughputExceededError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, UnsupportedDocumentError, ValidationError } from "./Errors.js";
8
+ import * as Instance from "./TextractClientInstance.js";
9
+ interface TextractService$ {
10
+ readonly _: unique symbol;
11
+ /**
12
+ * @see {@link AnalyzeDocumentCommand}
13
+ */
14
+ analyzeDocument(args: AnalyzeDocumentCommandInput, options?: HttpHandlerOptions): Effect.Effect<AnalyzeDocumentCommandOutput, SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | HumanLoopQuotaExceededError | InternalServerError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
15
+ /**
16
+ * @see {@link AnalyzeExpenseCommand}
17
+ */
18
+ analyzeExpense(args: AnalyzeExpenseCommandInput, options?: HttpHandlerOptions): Effect.Effect<AnalyzeExpenseCommandOutput, SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | InternalServerError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
19
+ /**
20
+ * @see {@link AnalyzeIDCommand}
21
+ */
22
+ analyzeID(args: AnalyzeIDCommandInput, options?: HttpHandlerOptions): Effect.Effect<AnalyzeIDCommandOutput, SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | InternalServerError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
23
+ /**
24
+ * @see {@link CreateAdapterCommand}
25
+ */
26
+ createAdapter(args: CreateAdapterCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateAdapterCommandOutput, SdkError | AccessDeniedError | ConflictError | IdempotentParameterMismatchError | InternalServerError | InvalidParameterError | LimitExceededError | ProvisionedThroughputExceededError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
27
+ /**
28
+ * @see {@link CreateAdapterVersionCommand}
29
+ */
30
+ createAdapterVersion(args: CreateAdapterVersionCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateAdapterVersionCommandOutput, SdkError | AccessDeniedError | ConflictError | IdempotentParameterMismatchError | InternalServerError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | LimitExceededError | ProvisionedThroughputExceededError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
31
+ /**
32
+ * @see {@link DeleteAdapterCommand}
33
+ */
34
+ deleteAdapter(args: DeleteAdapterCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteAdapterCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
35
+ /**
36
+ * @see {@link DeleteAdapterVersionCommand}
37
+ */
38
+ deleteAdapterVersion(args: DeleteAdapterVersionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteAdapterVersionCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
39
+ /**
40
+ * @see {@link DetectDocumentTextCommand}
41
+ */
42
+ detectDocumentText(args: DetectDocumentTextCommandInput, options?: HttpHandlerOptions): Effect.Effect<DetectDocumentTextCommandOutput, SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | InternalServerError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
43
+ /**
44
+ * @see {@link GetAdapterCommand}
45
+ */
46
+ getAdapter(args: GetAdapterCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAdapterCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
47
+ /**
48
+ * @see {@link GetAdapterVersionCommand}
49
+ */
50
+ getAdapterVersion(args: GetAdapterVersionCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAdapterVersionCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
51
+ /**
52
+ * @see {@link GetDocumentAnalysisCommand}
53
+ */
54
+ getDocumentAnalysis(args: GetDocumentAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetDocumentAnalysisCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidJobIdError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError>;
55
+ /**
56
+ * @see {@link GetDocumentTextDetectionCommand}
57
+ */
58
+ getDocumentTextDetection(args: GetDocumentTextDetectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetDocumentTextDetectionCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidJobIdError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError>;
59
+ /**
60
+ * @see {@link GetExpenseAnalysisCommand}
61
+ */
62
+ getExpenseAnalysis(args: GetExpenseAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetExpenseAnalysisCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidJobIdError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError>;
63
+ /**
64
+ * @see {@link GetLendingAnalysisCommand}
65
+ */
66
+ getLendingAnalysis(args: GetLendingAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetLendingAnalysisCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidJobIdError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError>;
67
+ /**
68
+ * @see {@link GetLendingAnalysisSummaryCommand}
69
+ */
70
+ getLendingAnalysisSummary(args: GetLendingAnalysisSummaryCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetLendingAnalysisSummaryCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidJobIdError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | ProvisionedThroughputExceededError | ThrottlingError>;
71
+ /**
72
+ * @see {@link ListAdapterVersionsCommand}
73
+ */
74
+ listAdapterVersions(args: ListAdapterVersionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListAdapterVersionsCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
75
+ /**
76
+ * @see {@link ListAdaptersCommand}
77
+ */
78
+ listAdapters(args: ListAdaptersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListAdaptersCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ThrottlingError | ValidationError>;
79
+ /**
80
+ * @see {@link ListTagsForResourceCommand}
81
+ */
82
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
83
+ /**
84
+ * @see {@link StartDocumentAnalysisCommand}
85
+ */
86
+ startDocumentAnalysis(args: StartDocumentAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartDocumentAnalysisCommandOutput, SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | IdempotentParameterMismatchError | InternalServerError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | LimitExceededError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
87
+ /**
88
+ * @see {@link StartDocumentTextDetectionCommand}
89
+ */
90
+ startDocumentTextDetection(args: StartDocumentTextDetectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartDocumentTextDetectionCommandOutput, SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | IdempotentParameterMismatchError | InternalServerError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | LimitExceededError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
91
+ /**
92
+ * @see {@link StartExpenseAnalysisCommand}
93
+ */
94
+ startExpenseAnalysis(args: StartExpenseAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartExpenseAnalysisCommandOutput, SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | IdempotentParameterMismatchError | InternalServerError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | LimitExceededError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
95
+ /**
96
+ * @see {@link StartLendingAnalysisCommand}
97
+ */
98
+ startLendingAnalysis(args: StartLendingAnalysisCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartLendingAnalysisCommandOutput, SdkError | AccessDeniedError | BadDocumentError | DocumentTooLargeError | IdempotentParameterMismatchError | InternalServerError | InvalidKMSKeyError | InvalidParameterError | InvalidS3ObjectError | LimitExceededError | ProvisionedThroughputExceededError | ThrottlingError | UnsupportedDocumentError>;
99
+ /**
100
+ * @see {@link TagResourceCommand}
101
+ */
102
+ tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
103
+ /**
104
+ * @see {@link UntagResourceCommand}
105
+ */
106
+ untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, SdkError | AccessDeniedError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
107
+ /**
108
+ * @see {@link UpdateAdapterCommand}
109
+ */
110
+ updateAdapter(args: UpdateAdapterCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateAdapterCommandOutput, SdkError | AccessDeniedError | ConflictError | InternalServerError | InvalidParameterError | ProvisionedThroughputExceededError | ResourceNotFoundError | ThrottlingError | ValidationError>;
111
+ }
112
+ /**
113
+ * @since 1.0.0
114
+ * @category constructors
115
+ */
116
+ export declare const makeTextractService: Effect.Effect<TextractService$, never, Instance.TextractClientInstance>;
117
+ declare const TextractService_base: import("effect/Context").TagClass<TextractService, "@effect-aws/client-textract/TextractService", TextractService$> & Effect.Tag.Proxy<TextractService, TextractService$> & {
118
+ 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, import("effect/Cause").UnknownException, TextractService> : Effect.Effect<X, never, TextractService>;
119
+ };
120
+ /**
121
+ * @since 1.0.0
122
+ * @category models
123
+ */
124
+ export declare class TextractService extends TextractService_base {
125
+ static readonly defaultLayer: Layer.Layer<TextractService, never, never>;
126
+ static readonly layer: (config: TextractService.Config) => Layer.Layer<TextractService, never, never>;
127
+ static readonly baseLayer: (evaluate: (defaultConfig: TextractClientConfig) => TextractClient) => Layer.Layer<TextractService, never, never>;
128
+ }
129
+ /**
130
+ * @since 1.0.0
131
+ */
132
+ export declare namespace TextractService {
133
+ /**
134
+ * @since 1.0.0
135
+ */
136
+ interface Config extends Omit<TextractClientConfig, "logger"> {
137
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
138
+ }
139
+ }
140
+ export {};
141
+ //# sourceMappingURL=TextractService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AAC;;;;AAEH;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,oBAGlC;IACD,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;CACF"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import type { TextractClientConfig } from "@aws-sdk/client-textract";
5
+ import { Effect, Layer } from "effect";
6
+ import type { TextractService } from "./TextractService.js";
7
+ /**
8
+ * @since 1.0.0
9
+ * @category textract service config
10
+ */
11
+ export declare const withTextractServiceConfig: {
12
+ (config: TextractService.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: TextractService.Config): Effect.Effect<A, E, R>;
14
+ };
15
+ /**
16
+ * @since 1.0.0
17
+ * @category textract service config
18
+ */
19
+ export declare const setTextractServiceConfig: (config: TextractService.Config) => Layer.Layer<never, never, never>;
20
+ /**
21
+ * @since 1.0.0
22
+ * @category adapters
23
+ */
24
+ export declare const toTextractClientConfig: Effect.Effect<TextractClientConfig>;
25
+ //# sourceMappingURL=TextractServiceConfig.d.ts.map
@@ -0,0 +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,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,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,qCACZ,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAQrE,CAAC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { TextractService } from "./TextractService.js";
5
+ /**
6
+ * @since 1.0.0
7
+ */
8
+ export * from "./Errors.js";
9
+ /**
10
+ * @since 1.0.0
11
+ */
12
+ export * as TextractClientInstance from "./TextractClientInstance.js";
13
+ /**
14
+ * @since 1.0.0
15
+ */
16
+ export * as TextractServiceConfig from "./TextractServiceConfig.js";
17
+ /**
18
+ * @since 1.0.0
19
+ */
20
+ export * from "./TextractService.js";
21
+ /**
22
+ * @since 1.0.0
23
+ * @category exports
24
+ * @alias TextractService
25
+ */
26
+ export declare namespace Textract {
27
+ /**
28
+ * @since 1.0.0
29
+ * @alias TextractService.Config
30
+ */
31
+ type Config = TextractService.Config;
32
+ }
33
+ /**
34
+ * @since 1.0.0
35
+ * @category exports
36
+ * @alias TextractService
37
+ */
38
+ export declare const Textract: typeof TextractService;
39
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,sBAAsB,MAAM,6BAA6B,CAAC;AAEtE;;GAEG;AACH,OAAO,KAAK,qBAAqB,MAAM,4BAA4B,CAAC;AAEpE;;GAEG;AACH,cAAc,sBAAsB,CAAC;AAErC;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC;;;OAGG;IACH,KAAY,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC;CAC7C;AAED;;;;GAIG;AACH,eAAO,MAAM,QAAQ,wBAAkB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { SdkError as CommonSdkError } from "@effect-aws/commons";
2
+ export const AllServiceErrors = [
3
+ "AccessDeniedException",
4
+ "BadDocumentException",
5
+ "ConflictException",
6
+ "DocumentTooLargeException",
7
+ "HumanLoopQuotaExceededException",
8
+ "IdempotentParameterMismatchException",
9
+ "InternalServerError",
10
+ "InvalidJobIdException",
11
+ "InvalidKMSKeyException",
12
+ "InvalidParameterException",
13
+ "InvalidS3ObjectException",
14
+ "LimitExceededException",
15
+ "ProvisionedThroughputExceededException",
16
+ "ResourceNotFoundException",
17
+ "ServiceQuotaExceededException",
18
+ "ThrottlingException",
19
+ "UnsupportedDocumentException",
20
+ "ValidationException",
21
+ ];
22
+ export const SdkError = CommonSdkError;
23
+ //# sourceMappingURL=Errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,uBAAuB;IACvB,sBAAsB;IACtB,mBAAmB;IACnB,2BAA2B;IAC3B,iCAAiC;IACjC,sCAAsC;IACtC,qBAAqB;IACrB,uBAAuB;IACvB,wBAAwB;IACxB,2BAA2B;IAC3B,0BAA0B;IAC1B,wBAAwB;IACxB,wCAAwC;IACxC,2BAA2B;IAC3B,+BAA+B;IAC/B,qBAAqB;IACrB,8BAA8B;IAC9B,qBAAqB;CACb,CAAC;AAsBX,MAAM,CAAC,MAAM,QAAQ,GAAG,cAAc,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { TextractClient } from "@aws-sdk/client-textract";
5
+ import { Context, Effect, Layer } from "effect";
6
+ import * as TextractServiceConfig from "./TextractServiceConfig.js";
7
+ /**
8
+ * @since 1.0.0
9
+ * @category tags
10
+ */
11
+ export class TextractClientInstance extends Context.Tag("@effect-aws/client-textract/TextractClientInstance")() {
12
+ }
13
+ /**
14
+ * @since 1.0.0
15
+ * @category constructors
16
+ */
17
+ export const make = Effect.flatMap(TextractServiceConfig.toTextractClientConfig, (config) => Effect.acquireRelease(Effect.sync(() => new TextractClient(config)), (client) => Effect.sync(() => client.destroy())));
18
+ /**
19
+ * @since 1.0.0
20
+ * @category layers
21
+ */
22
+ export const layer = Layer.scoped(TextractClientInstance, make);
23
+ //# sourceMappingURL=TextractClientInstance.js.map
@@ -0,0 +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,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,KAAK,qBAAqB,MAAM,4BAA4B,CAAC;AAEpE;;;GAGG;AACH,MAAM,OAAO,sBAAuB,SAAQ,OAAO,CAAC,GAAG,CACrD,oDAAoD,CACrD,EAA0C;CAAG;AAE9C;;;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"}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
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
+ import { Service } from "@effect-aws/commons";
6
+ import { Effect, Layer } from "effect";
7
+ import { AllServiceErrors } from "./Errors.js";
8
+ import * as Instance from "./TextractClientInstance.js";
9
+ import * as TextractServiceConfig from "./TextractServiceConfig.js";
10
+ const commands = {
11
+ AnalyzeDocumentCommand,
12
+ AnalyzeExpenseCommand,
13
+ AnalyzeIDCommand,
14
+ CreateAdapterCommand,
15
+ CreateAdapterVersionCommand,
16
+ DeleteAdapterCommand,
17
+ DeleteAdapterVersionCommand,
18
+ DetectDocumentTextCommand,
19
+ GetAdapterCommand,
20
+ GetAdapterVersionCommand,
21
+ GetDocumentAnalysisCommand,
22
+ GetDocumentTextDetectionCommand,
23
+ GetExpenseAnalysisCommand,
24
+ GetLendingAnalysisCommand,
25
+ GetLendingAnalysisSummaryCommand,
26
+ ListAdapterVersionsCommand,
27
+ ListAdaptersCommand,
28
+ ListTagsForResourceCommand,
29
+ StartDocumentAnalysisCommand,
30
+ StartDocumentTextDetectionCommand,
31
+ StartExpenseAnalysisCommand,
32
+ StartLendingAnalysisCommand,
33
+ TagResourceCommand,
34
+ UntagResourceCommand,
35
+ UpdateAdapterCommand,
36
+ };
37
+ /**
38
+ * @since 1.0.0
39
+ * @category constructors
40
+ */
41
+ export const makeTextractService = Effect.gen(function* () {
42
+ const client = yield* Instance.TextractClientInstance;
43
+ return Service.fromClientAndCommands(client, commands, {
44
+ errorTags: AllServiceErrors,
45
+ resolveClientConfig: TextractServiceConfig.toTextractClientConfig,
46
+ });
47
+ });
48
+ /**
49
+ * @since 1.0.0
50
+ * @category models
51
+ */
52
+ export class TextractService extends Effect.Tag("@effect-aws/client-textract/TextractService")() {
53
+ static defaultLayer = Layer.effect(this, makeTextractService).pipe(Layer.provide(Instance.layer));
54
+ static layer = (config) => Layer.effect(this, makeTextractService).pipe(Layer.provide(Instance.layer), Layer.provide(TextractServiceConfig.setTextractServiceConfig(config)));
55
+ static baseLayer = (evaluate) => Layer.effect(this, makeTextractService).pipe(Layer.provide(Layer.effect(Instance.TextractClientInstance, Effect.map(TextractServiceConfig.toTextractClientConfig, evaluate))));
56
+ }
57
+ //# sourceMappingURL=TextractService.js.map
@@ -0,0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B,GAAG,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IACrD,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IAEtD,OAAO,OAAO,CAAC,qBAAqB,CAClC,MAAM,EACN,QAAQ,EACR;QACE,SAAS,EAAE,gBAAgB;QAC3B,mBAAmB,EAAE,qBAAqB,CAAC,sBAAsB;KAClE,CACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,OAAO,eAAgB,SAAQ,MAAM,CAAC,GAAG,CAAC,6CAA6C,CAAC,EAG3F;IACD,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"}
@@ -0,0 +1,31 @@
1
+ import { ServiceLogger } from "@effect-aws/commons";
2
+ import { Effect, FiberRef, Layer } from "effect";
3
+ import { dual } from "effect/Function";
4
+ import { globalValue } from "effect/GlobalValue";
5
+ /**
6
+ * @since 1.0.0
7
+ * @category textract service config
8
+ */
9
+ const currentTextractServiceConfig = globalValue("@effect-aws/client-textract/currentTextractServiceConfig", () => FiberRef.unsafeMake({}));
10
+ /**
11
+ * @since 1.0.0
12
+ * @category textract service config
13
+ */
14
+ export const withTextractServiceConfig = dual(2, (effect, config) => Effect.locally(effect, currentTextractServiceConfig, config));
15
+ /**
16
+ * @since 1.0.0
17
+ * @category textract service config
18
+ */
19
+ export const setTextractServiceConfig = (config) => Layer.locallyScoped(currentTextractServiceConfig, config);
20
+ /**
21
+ * @since 1.0.0
22
+ * @category adapters
23
+ */
24
+ export const toTextractClientConfig = Effect.gen(function* () {
25
+ const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentTextractServiceConfig);
26
+ const logger = serviceLogger === true
27
+ ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
28
+ : (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
29
+ return { logger, ...config };
30
+ });
31
+ //# sourceMappingURL=TextractServiceConfig.js.map
@@ -0,0 +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,QAAQ,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD;;;GAGG;AACH,MAAM,4BAA4B,GAAG,WAAW,CAC9C,0DAA0D,EAC1D,GAAG,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAyB,EAAE,CAAC,CACtD,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAGlC,IAAI,CACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAA8B,EAA0B,EAAE,CAClG,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,4BAA4B,EAAE,MAAM,CAAC,CAC/D,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,MAA8B,EAAE,EAAE,CACzE,KAAK,CAAC,aAAa,CAAC,4BAA4B,EAAE,MAAM,CAAC,CAAC;AAE5D;;;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,QAAQ,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;IAE/F,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"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { TextractService } from "./TextractService.js";
5
+ /**
6
+ * @since 1.0.0
7
+ */
8
+ export * from "./Errors.js";
9
+ /**
10
+ * @since 1.0.0
11
+ */
12
+ export * as TextractClientInstance from "./TextractClientInstance.js";
13
+ /**
14
+ * @since 1.0.0
15
+ */
16
+ export * as TextractServiceConfig from "./TextractServiceConfig.js";
17
+ /**
18
+ * @since 1.0.0
19
+ */
20
+ export * from "./TextractService.js";
21
+ /**
22
+ * @since 1.0.0
23
+ * @category exports
24
+ * @alias TextractService
25
+ */
26
+ export const Textract = TextractService;
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,sBAAsB,MAAM,6BAA6B,CAAC;AAEtE;;GAEG;AACH,OAAO,KAAK,qBAAqB,MAAM,4BAA4B,CAAC;AAEpE;;GAEG;AACH,cAAc,sBAAsB,CAAC;AAerC;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CAAC"}
@@ -0,0 +1,4 @@
1
+ {
2
+ "type": "module",
3
+ "sideEffects": []
4
+ }
package/package.json CHANGED
@@ -1,54 +1,71 @@
1
1
  {
2
2
  "name": "@effect-aws/client-textract",
3
+ "version": "1.9.3",
4
+ "description": "Effectful AWS Textract client",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "github:floydspace/effect-aws",
9
+ "directory": "packages/client-textract"
10
+ },
11
+ "sideEffects": [],
3
12
  "author": {
4
13
  "name": "Victor Korzunin",
5
- "email": "ifloydrose@gmail.com",
6
- "organization": false
14
+ "email": "ifloydrose@gmail.com"
7
15
  },
8
- "devDependencies": {
9
- "@types/node": "^18",
10
- "@typescript-eslint/eslint-plugin": "^7",
11
- "@typescript-eslint/parser": "^7",
12
- "aws-sdk-client-mock": "^4.0.2",
13
- "aws-sdk-client-mock-vitest": "^4.0.0",
14
- "effect": "3.0.0",
15
- "eslint": "^8",
16
- "eslint-config-prettier": "^9.1.0",
17
- "eslint-import-resolver-typescript": "^3.6.1",
18
- "eslint-plugin-import": "^2.29.1",
19
- "eslint-plugin-prettier": "^5.2.1",
20
- "prettier": "^3.2.5",
21
- "typescript": "^5.4.2",
22
- "vitest": "^2.0.5"
16
+ "homepage": "https://floydspace.github.io/effect-aws/docs/client-textract",
17
+ "dependencies": {
18
+ "@aws-sdk/client-textract": "^3",
19
+ "@effect-aws/commons": "^0.2.0"
23
20
  },
24
21
  "peerDependencies": {
25
- "effect": ">=3.0.0 <4.0.0"
22
+ "effect": ">=3.0.4 <4.0.0"
26
23
  },
27
- "dependencies": {
28
- "@aws-sdk/client-textract": "^3"
29
- },
30
- "main": "lib/index.js",
31
- "license": "MIT",
32
- "homepage": "https://floydspace.github.io/effect-aws",
33
- "publishConfig": {
34
- "access": "public"
24
+ "main": "./dist/cjs/index.js",
25
+ "module": "./dist/esm/index.js",
26
+ "types": "./dist/dts/index.d.ts",
27
+ "exports": {
28
+ "./package.json": "./package.json",
29
+ ".": {
30
+ "types": "./dist/dts/index.d.ts",
31
+ "import": "./dist/esm/index.js",
32
+ "default": "./dist/cjs/index.js"
33
+ },
34
+ "./Errors": {
35
+ "types": "./dist/dts/Errors.d.ts",
36
+ "import": "./dist/esm/Errors.js",
37
+ "default": "./dist/cjs/Errors.js"
38
+ },
39
+ "./TextractClientInstance": {
40
+ "types": "./dist/dts/TextractClientInstance.d.ts",
41
+ "import": "./dist/esm/TextractClientInstance.js",
42
+ "default": "./dist/cjs/TextractClientInstance.js"
43
+ },
44
+ "./TextractService": {
45
+ "types": "./dist/dts/TextractService.d.ts",
46
+ "import": "./dist/esm/TextractService.js",
47
+ "default": "./dist/cjs/TextractService.js"
48
+ },
49
+ "./TextractServiceConfig": {
50
+ "types": "./dist/dts/TextractServiceConfig.d.ts",
51
+ "import": "./dist/esm/TextractServiceConfig.js",
52
+ "default": "./dist/cjs/TextractServiceConfig.js"
53
+ }
35
54
  },
36
- "version": "1.2.0",
37
- "types": "lib/index.d.ts",
38
- "module": "lib/esm/index.js",
39
- "sideEffects": [],
40
- "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\".",
41
- "scripts": {
42
- "build": "npx projen build",
43
- "compile": "npx projen compile",
44
- "default": "npx projen default",
45
- "eslint": "npx projen eslint",
46
- "package": "npx projen package",
47
- "post-compile": "npx projen post-compile",
48
- "pre-compile": "npx projen pre-compile",
49
- "test": "npx projen test",
50
- "test:watch": "npx projen test:watch",
51
- "watch": "npx projen watch",
52
- "docgen": "docgen"
55
+ "typesVersions": {
56
+ "*": {
57
+ "Errors": [
58
+ "./dist/dts/Errors.d.ts"
59
+ ],
60
+ "TextractClientInstance": [
61
+ "./dist/dts/TextractClientInstance.d.ts"
62
+ ],
63
+ "TextractService": [
64
+ "./dist/dts/TextractService.d.ts"
65
+ ],
66
+ "TextractServiceConfig": [
67
+ "./dist/dts/TextractServiceConfig.d.ts"
68
+ ]
69
+ }
53
70
  }
54
71
  }