@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.
- package/Errors/package.json +6 -0
- package/TextractClientInstance/package.json +6 -0
- package/TextractService/package.json +6 -0
- package/TextractServiceConfig/package.json +6 -0
- package/{lib → dist/cjs}/Errors.d.ts +6 -11
- package/dist/cjs/Errors.d.ts.map +1 -0
- package/dist/cjs/Errors.js +26 -0
- package/dist/cjs/Errors.js.map +1 -0
- package/dist/cjs/TextractClientInstance.d.ts +24 -0
- package/dist/cjs/TextractClientInstance.d.ts.map +1 -0
- package/dist/cjs/TextractClientInstance.js +50 -0
- package/dist/cjs/TextractClientInstance.js.map +1 -0
- package/dist/cjs/TextractService.d.ts +141 -0
- package/dist/cjs/TextractService.d.ts.map +1 -0
- package/dist/cjs/TextractService.js +84 -0
- package/dist/cjs/TextractService.js.map +1 -0
- package/dist/cjs/TextractServiceConfig.d.ts +25 -0
- package/dist/cjs/TextractServiceConfig.d.ts.map +1 -0
- package/dist/cjs/TextractServiceConfig.js +35 -0
- package/dist/cjs/TextractServiceConfig.js.map +1 -0
- package/dist/cjs/index.d.ts +39 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +56 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/dts/Errors.d.ts +25 -0
- package/dist/dts/Errors.d.ts.map +1 -0
- package/dist/dts/TextractClientInstance.d.ts +24 -0
- package/dist/dts/TextractClientInstance.d.ts.map +1 -0
- package/dist/dts/TextractService.d.ts +141 -0
- package/dist/dts/TextractService.d.ts.map +1 -0
- package/dist/dts/TextractServiceConfig.d.ts +25 -0
- package/dist/dts/TextractServiceConfig.d.ts.map +1 -0
- package/dist/dts/index.d.ts +39 -0
- package/dist/dts/index.d.ts.map +1 -0
- package/dist/esm/Errors.js +23 -0
- package/dist/esm/Errors.js.map +1 -0
- package/dist/esm/TextractClientInstance.js +23 -0
- package/dist/esm/TextractClientInstance.js.map +1 -0
- package/dist/esm/TextractService.js +57 -0
- package/dist/esm/TextractService.js.map +1 -0
- package/dist/esm/TextractServiceConfig.js +31 -0
- package/dist/esm/TextractServiceConfig.js.map +1 -0
- package/dist/esm/index.js +27 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +4 -0
- package/package.json +60 -43
- package/src/Errors.ts +65 -0
- package/src/TextractClientInstance.ts +33 -0
- package/src/TextractService.ts +692 -0
- package/src/TextractServiceConfig.ts +52 -0
- package/src/index.ts +44 -0
- package/CHANGELOG.md +0 -19
- package/docgen.json +0 -8
- package/lib/Errors.js +0 -26
- package/lib/TextractClientInstance.d.ts +0 -31
- package/lib/TextractClientInstance.js +0 -57
- package/lib/TextractClientInstanceConfig.d.ts +0 -23
- package/lib/TextractClientInstanceConfig.js +0 -44
- package/lib/TextractService.d.ts +0 -190
- package/lib/TextractService.js +0 -113
- package/lib/esm/Errors.js +0 -23
- package/lib/esm/TextractClientInstance.js +0 -30
- package/lib/esm/TextractClientInstanceConfig.js +0 -40
- package/lib/esm/TextractService.js +0 -109
- package/lib/esm/index.js +0 -5
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -21
- package/project.json +0 -77
- package/vitest.config.ts +0 -3
|
@@ -1,11 +1,7 @@
|
|
|
1
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 {
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
name: string;
|
|
6
|
-
}> = T & {
|
|
7
|
-
readonly _tag: T["name"];
|
|
8
|
-
};
|
|
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"];
|
|
9
5
|
export type AccessDeniedError = TaggedException<AccessDeniedException>;
|
|
10
6
|
export type BadDocumentError = TaggedException<BadDocumentException>;
|
|
11
7
|
export type ConflictError = TaggedException<ConflictException>;
|
|
@@ -24,7 +20,6 @@ export type ServiceQuotaExceededError = TaggedException<ServiceQuotaExceededExce
|
|
|
24
20
|
export type ThrottlingError = TaggedException<ThrottlingException>;
|
|
25
21
|
export type UnsupportedDocumentError = TaggedException<UnsupportedDocumentException>;
|
|
26
22
|
export type ValidationError = TaggedException<ValidationException>;
|
|
27
|
-
export type SdkError =
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
export declare const SdkError: Data.Case.Constructor<SdkError, "_tag">;
|
|
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":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,yBAAyB,EACzB,+BAA+B,EAC/B,oCAAoC,EACpC,mBAAmB,IAAI,uBAAuB,EAC9C,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACxB,sBAAsB,EACtB,sCAAsC,EACtC,yBAAyB,EACzB,6BAA6B,EAC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,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,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SdkError = exports.AllServiceErrors = void 0;
|
|
4
|
+
const commons_1 = require("@effect-aws/commons");
|
|
5
|
+
exports.AllServiceErrors = [
|
|
6
|
+
"AccessDeniedException",
|
|
7
|
+
"BadDocumentException",
|
|
8
|
+
"ConflictException",
|
|
9
|
+
"DocumentTooLargeException",
|
|
10
|
+
"HumanLoopQuotaExceededException",
|
|
11
|
+
"IdempotentParameterMismatchException",
|
|
12
|
+
"InternalServerError",
|
|
13
|
+
"InvalidJobIdException",
|
|
14
|
+
"InvalidKMSKeyException",
|
|
15
|
+
"InvalidParameterException",
|
|
16
|
+
"InvalidS3ObjectException",
|
|
17
|
+
"LimitExceededException",
|
|
18
|
+
"ProvisionedThroughputExceededException",
|
|
19
|
+
"ResourceNotFoundException",
|
|
20
|
+
"ServiceQuotaExceededException",
|
|
21
|
+
"ThrottlingException",
|
|
22
|
+
"UnsupportedDocumentException",
|
|
23
|
+
"ValidationException",
|
|
24
|
+
];
|
|
25
|
+
exports.SdkError = commons_1.SdkError;
|
|
26
|
+
//# sourceMappingURL=Errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAqBA,iDAAiE;AAEpD,QAAA,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;AAsBE,QAAA,QAAQ,GAAG,kBAAc,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,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.layer = exports.make = exports.TextractClientInstance = void 0;
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
*/
|
|
30
|
+
const client_textract_1 = require("@aws-sdk/client-textract");
|
|
31
|
+
const effect_1 = require("effect");
|
|
32
|
+
const TextractServiceConfig = __importStar(require("./TextractServiceConfig.js"));
|
|
33
|
+
/**
|
|
34
|
+
* @since 1.0.0
|
|
35
|
+
* @category tags
|
|
36
|
+
*/
|
|
37
|
+
class TextractClientInstance extends effect_1.Context.Tag("@effect-aws/client-textract/TextractClientInstance")() {
|
|
38
|
+
}
|
|
39
|
+
exports.TextractClientInstance = TextractClientInstance;
|
|
40
|
+
/**
|
|
41
|
+
* @since 1.0.0
|
|
42
|
+
* @category constructors
|
|
43
|
+
*/
|
|
44
|
+
exports.make = effect_1.Effect.flatMap(TextractServiceConfig.toTextractClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_textract_1.TextractClient(config)), (client) => effect_1.Effect.sync(() => client.destroy())));
|
|
45
|
+
/**
|
|
46
|
+
* @since 1.0.0
|
|
47
|
+
* @category layers
|
|
48
|
+
*/
|
|
49
|
+
exports.layer = effect_1.Layer.scoped(TextractClientInstance, exports.make);
|
|
50
|
+
//# sourceMappingURL=TextractClientInstance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextractClientInstance.js","sourceRoot":"","sources":["../../src/TextractClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,8DAA0D;AAC1D,mCAAgD;AAChD,kFAAoE;AAEpE;;;GAGG;AACH,MAAa,sBAAuB,SAAQ,gBAAO,CAAC,GAAG,CACrD,oDAAoD,CACrD,EAA0C;CAAG;AAF9C,wDAE8C;AAE9C;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,qBAAqB,CAAC,sBAAsB,EAC5C,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,gCAAc,CAAC,MAAM,CAAC,CAAC,EAC7C,CAAC,MAAM,EAAE,EAAE,CAAC,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACU,QAAA,KAAK,GAAG,cAAK,CAAC,MAAM,CAAC,sBAAsB,EAAE,YAAI,CAAC,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.d.ts.map
|
|
@@ -0,0 +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,EAC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H,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,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.TextractService = exports.makeTextractService = void 0;
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
*/
|
|
30
|
+
const client_textract_1 = require("@aws-sdk/client-textract");
|
|
31
|
+
const commons_1 = require("@effect-aws/commons");
|
|
32
|
+
const effect_1 = require("effect");
|
|
33
|
+
const Errors_js_1 = require("./Errors.js");
|
|
34
|
+
const Instance = __importStar(require("./TextractClientInstance.js"));
|
|
35
|
+
const TextractServiceConfig = __importStar(require("./TextractServiceConfig.js"));
|
|
36
|
+
const commands = {
|
|
37
|
+
AnalyzeDocumentCommand: client_textract_1.AnalyzeDocumentCommand,
|
|
38
|
+
AnalyzeExpenseCommand: client_textract_1.AnalyzeExpenseCommand,
|
|
39
|
+
AnalyzeIDCommand: client_textract_1.AnalyzeIDCommand,
|
|
40
|
+
CreateAdapterCommand: client_textract_1.CreateAdapterCommand,
|
|
41
|
+
CreateAdapterVersionCommand: client_textract_1.CreateAdapterVersionCommand,
|
|
42
|
+
DeleteAdapterCommand: client_textract_1.DeleteAdapterCommand,
|
|
43
|
+
DeleteAdapterVersionCommand: client_textract_1.DeleteAdapterVersionCommand,
|
|
44
|
+
DetectDocumentTextCommand: client_textract_1.DetectDocumentTextCommand,
|
|
45
|
+
GetAdapterCommand: client_textract_1.GetAdapterCommand,
|
|
46
|
+
GetAdapterVersionCommand: client_textract_1.GetAdapterVersionCommand,
|
|
47
|
+
GetDocumentAnalysisCommand: client_textract_1.GetDocumentAnalysisCommand,
|
|
48
|
+
GetDocumentTextDetectionCommand: client_textract_1.GetDocumentTextDetectionCommand,
|
|
49
|
+
GetExpenseAnalysisCommand: client_textract_1.GetExpenseAnalysisCommand,
|
|
50
|
+
GetLendingAnalysisCommand: client_textract_1.GetLendingAnalysisCommand,
|
|
51
|
+
GetLendingAnalysisSummaryCommand: client_textract_1.GetLendingAnalysisSummaryCommand,
|
|
52
|
+
ListAdapterVersionsCommand: client_textract_1.ListAdapterVersionsCommand,
|
|
53
|
+
ListAdaptersCommand: client_textract_1.ListAdaptersCommand,
|
|
54
|
+
ListTagsForResourceCommand: client_textract_1.ListTagsForResourceCommand,
|
|
55
|
+
StartDocumentAnalysisCommand: client_textract_1.StartDocumentAnalysisCommand,
|
|
56
|
+
StartDocumentTextDetectionCommand: client_textract_1.StartDocumentTextDetectionCommand,
|
|
57
|
+
StartExpenseAnalysisCommand: client_textract_1.StartExpenseAnalysisCommand,
|
|
58
|
+
StartLendingAnalysisCommand: client_textract_1.StartLendingAnalysisCommand,
|
|
59
|
+
TagResourceCommand: client_textract_1.TagResourceCommand,
|
|
60
|
+
UntagResourceCommand: client_textract_1.UntagResourceCommand,
|
|
61
|
+
UpdateAdapterCommand: client_textract_1.UpdateAdapterCommand,
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* @since 1.0.0
|
|
65
|
+
* @category constructors
|
|
66
|
+
*/
|
|
67
|
+
exports.makeTextractService = effect_1.Effect.gen(function* () {
|
|
68
|
+
const client = yield* Instance.TextractClientInstance;
|
|
69
|
+
return commons_1.Service.fromClientAndCommands(client, commands, {
|
|
70
|
+
errorTags: Errors_js_1.AllServiceErrors,
|
|
71
|
+
resolveClientConfig: TextractServiceConfig.toTextractClientConfig,
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
/**
|
|
75
|
+
* @since 1.0.0
|
|
76
|
+
* @category models
|
|
77
|
+
*/
|
|
78
|
+
class TextractService extends effect_1.Effect.Tag("@effect-aws/client-textract/TextractService")() {
|
|
79
|
+
static defaultLayer = effect_1.Layer.effect(this, exports.makeTextractService).pipe(effect_1.Layer.provide(Instance.layer));
|
|
80
|
+
static layer = (config) => effect_1.Layer.effect(this, exports.makeTextractService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(TextractServiceConfig.setTextractServiceConfig(config)));
|
|
81
|
+
static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeTextractService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.TextractClientInstance, effect_1.Effect.map(TextractServiceConfig.toTextractClientConfig, evaluate))));
|
|
82
|
+
}
|
|
83
|
+
exports.TextractService = TextractService;
|
|
84
|
+
//# sourceMappingURL=TextractService.js.map
|
|
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EACR;QACE,SAAS,EAAE,4BAAgB;QAC3B,mBAAmB,EAAE,qBAAqB,CAAC,sBAAsB;KAClE,CACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAa,eAAgB,SAAQ,eAAM,CAAC,GAAG,CAAC,6CAA6C,CAAC,EAG3F;IACD,MAAM,CAAU,YAAY,GAAG,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,2BAAmB,CAAC,CAAC,IAAI,CAAC,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3G,MAAM,CAAU,KAAK,GAAG,CAAC,MAA8B,EAAE,EAAE,CACzD,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,2BAAmB,CAAC,CAAC,IAAI,CAC1C,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,cAAK,CAAC,OAAO,CAAC,qBAAqB,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC,CACtE,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAiE,EACjE,EAAE,CACF,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,2BAAmB,CAAC,CAAC,IAAI,CAC1C,cAAK,CAAC,OAAO,CACX,cAAK,CAAC,MAAM,CACV,QAAQ,CAAC,sBAAsB,EAC/B,eAAM,CAAC,GAAG,CAAC,qBAAqB,CAAC,sBAAsB,EAAE,QAAQ,CAAC,CACnE,CACF,CACF,CAAC;;AApBN,0CAqBC"}
|
|
@@ -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,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toTextractClientConfig = exports.setTextractServiceConfig = exports.withTextractServiceConfig = void 0;
|
|
4
|
+
const commons_1 = require("@effect-aws/commons");
|
|
5
|
+
const effect_1 = require("effect");
|
|
6
|
+
const Function_1 = require("effect/Function");
|
|
7
|
+
const GlobalValue_1 = require("effect/GlobalValue");
|
|
8
|
+
/**
|
|
9
|
+
* @since 1.0.0
|
|
10
|
+
* @category textract service config
|
|
11
|
+
*/
|
|
12
|
+
const currentTextractServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-textract/currentTextractServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category textract service config
|
|
16
|
+
*/
|
|
17
|
+
exports.withTextractServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentTextractServiceConfig, config));
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category textract service config
|
|
21
|
+
*/
|
|
22
|
+
const setTextractServiceConfig = (config) => effect_1.Layer.locallyScoped(currentTextractServiceConfig, config);
|
|
23
|
+
exports.setTextractServiceConfig = setTextractServiceConfig;
|
|
24
|
+
/**
|
|
25
|
+
* @since 1.0.0
|
|
26
|
+
* @category adapters
|
|
27
|
+
*/
|
|
28
|
+
exports.toTextractClientConfig = effect_1.Effect.gen(function* () {
|
|
29
|
+
const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentTextractServiceConfig);
|
|
30
|
+
const logger = serviceLogger === true
|
|
31
|
+
? yield* commons_1.ServiceLogger.toClientLogger(commons_1.ServiceLogger.defaultServiceLogger)
|
|
32
|
+
: (serviceLogger ? yield* commons_1.ServiceLogger.toClientLogger(commons_1.ServiceLogger.make(serviceLogger)) : undefined);
|
|
33
|
+
return { logger, ...config };
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=TextractServiceConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextractServiceConfig.js","sourceRoot":"","sources":["../../src/TextractServiceConfig.ts"],"names":[],"mappings":";;;AAIA,iDAAoD;AACpD,mCAAiD;AACjD,8CAAuC;AACvC,oDAAiD;AAGjD;;;GAGG;AACH,MAAM,4BAA4B,GAAG,IAAA,yBAAW,EAC9C,0DAA0D,EAC1D,GAAG,EAAE,CAAC,iBAAQ,CAAC,UAAU,CAAyB,EAAE,CAAC,CACtD,CAAC;AAEF;;;GAGG;AACU,QAAA,yBAAyB,GAGlC,IAAA,eAAI,EACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAA8B,EAA0B,EAAE,CAClG,eAAM,CAAC,OAAO,CAAC,MAAM,EAAE,4BAA4B,EAAE,MAAM,CAAC,CAC/D,CAAC;AAEF;;;GAGG;AACI,MAAM,wBAAwB,GAAG,CAAC,MAA8B,EAAE,EAAE,CACzE,cAAK,CAAC,aAAa,CAAC,4BAA4B,EAAE,MAAM,CAAC,CAAC;AAD/C,QAAA,wBAAwB,4BACuB;AAE5D;;;GAGG;AACU,QAAA,sBAAsB,GAAwC,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC7F,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,iBAAQ,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;IAE/F,MAAM,MAAM,GAAG,aAAa,KAAK,IAAI;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAa,CAAC,cAAc,CAAC,uBAAa,CAAC,oBAAoB,CAAC;QACzE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAa,CAAC,cAAc,CAAC,uBAAa,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,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,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Textract = exports.TextractServiceConfig = exports.TextractClientInstance = void 0;
|
|
30
|
+
/**
|
|
31
|
+
* @since 1.0.0
|
|
32
|
+
*/
|
|
33
|
+
const TextractService_js_1 = require("./TextractService.js");
|
|
34
|
+
/**
|
|
35
|
+
* @since 1.0.0
|
|
36
|
+
*/
|
|
37
|
+
__exportStar(require("./Errors.js"), exports);
|
|
38
|
+
/**
|
|
39
|
+
* @since 1.0.0
|
|
40
|
+
*/
|
|
41
|
+
exports.TextractClientInstance = __importStar(require("./TextractClientInstance.js"));
|
|
42
|
+
/**
|
|
43
|
+
* @since 1.0.0
|
|
44
|
+
*/
|
|
45
|
+
exports.TextractServiceConfig = __importStar(require("./TextractServiceConfig.js"));
|
|
46
|
+
/**
|
|
47
|
+
* @since 1.0.0
|
|
48
|
+
*/
|
|
49
|
+
__exportStar(require("./TextractService.js"), exports);
|
|
50
|
+
/**
|
|
51
|
+
* @since 1.0.0
|
|
52
|
+
* @category exports
|
|
53
|
+
* @alias TextractService
|
|
54
|
+
*/
|
|
55
|
+
exports.Textract = TextractService_js_1.TextractService;
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,6DAAuD;AAEvD;;GAEG;AACH,8CAA4B;AAE5B;;GAEG;AACH,sFAAsE;AAEtE;;GAEG;AACH,oFAAoE;AAEpE;;GAEG;AACH,uDAAqC;AAerC;;;;GAIG;AACU,QAAA,QAAQ,GAAG,oCAAe,CAAC"}
|