@effect-aws/client-cloudsearch 1.1.0 → 1.9.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/CloudSearchClientInstance/package.json +6 -0
- package/CloudSearchService/package.json +6 -0
- package/CloudSearchServiceConfig/package.json +6 -0
- package/Errors/package.json +6 -0
- package/LICENSE +1 -1
- package/dist/cjs/CloudSearchClientInstance.d.ts +24 -0
- package/dist/cjs/CloudSearchClientInstance.d.ts.map +1 -0
- package/dist/cjs/CloudSearchClientInstance.js +50 -0
- package/dist/cjs/CloudSearchClientInstance.js.map +1 -0
- package/{lib → dist/cjs}/CloudSearchService.d.ts +16 -38
- package/dist/cjs/CloudSearchService.d.ts.map +1 -0
- package/dist/cjs/CloudSearchService.js +82 -0
- package/dist/cjs/CloudSearchService.js.map +1 -0
- package/dist/cjs/CloudSearchServiceConfig.d.ts +25 -0
- package/dist/cjs/CloudSearchServiceConfig.d.ts.map +1 -0
- package/dist/cjs/CloudSearchServiceConfig.js +35 -0
- package/dist/cjs/CloudSearchServiceConfig.js.map +1 -0
- package/{lib → dist/cjs}/Errors.d.ts +6 -11
- package/dist/cjs/Errors.d.ts.map +1 -0
- package/dist/cjs/Errors.js +16 -0
- package/dist/cjs/Errors.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/CloudSearchClientInstance.d.ts +24 -0
- package/dist/dts/CloudSearchClientInstance.d.ts.map +1 -0
- package/dist/dts/CloudSearchService.d.ts +173 -0
- package/dist/dts/CloudSearchService.d.ts.map +1 -0
- package/dist/dts/CloudSearchServiceConfig.d.ts +25 -0
- package/dist/dts/CloudSearchServiceConfig.d.ts.map +1 -0
- package/dist/dts/Errors.d.ts +15 -0
- package/dist/dts/Errors.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/CloudSearchClientInstance.js +23 -0
- package/dist/esm/CloudSearchClientInstance.js.map +1 -0
- package/dist/esm/CloudSearchService.js +55 -0
- package/dist/esm/CloudSearchService.js.map +1 -0
- package/dist/esm/CloudSearchServiceConfig.js +31 -0
- package/dist/esm/CloudSearchServiceConfig.js.map +1 -0
- package/dist/esm/Errors.js +13 -0
- package/dist/esm/Errors.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/CloudSearchClientInstance.ts +33 -0
- package/src/CloudSearchService.ts +525 -0
- package/src/CloudSearchServiceConfig.ts +52 -0
- package/src/Errors.ts +35 -0
- package/src/index.ts +44 -0
- package/CHANGELOG.md +0 -29
- package/docgen.json +0 -8
- package/lib/CloudSearchClientInstance.d.ts +0 -31
- package/lib/CloudSearchClientInstance.js +0 -57
- package/lib/CloudSearchClientInstanceConfig.d.ts +0 -23
- package/lib/CloudSearchClientInstanceConfig.js +0 -44
- package/lib/CloudSearchService.js +0 -114
- package/lib/Errors.js +0 -16
- package/lib/esm/CloudSearchClientInstance.js +0 -30
- package/lib/esm/CloudSearchClientInstanceConfig.js +0 -40
- package/lib/esm/CloudSearchService.js +0 -110
- package/lib/esm/Errors.js +0 -13
- 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
package/LICENSE
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { CloudSearchClient } from "@aws-sdk/client-cloudsearch";
|
|
5
|
+
import { Context, Effect, Layer } from "effect";
|
|
6
|
+
declare const CloudSearchClientInstance_base: Context.TagClass<CloudSearchClientInstance, "@effect-aws/client-cloudsearch/CloudSearchClientInstance", CloudSearchClient>;
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category tags
|
|
10
|
+
*/
|
|
11
|
+
export declare class CloudSearchClientInstance extends CloudSearchClientInstance_base {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category constructors
|
|
16
|
+
*/
|
|
17
|
+
export declare const make: Effect.Effect<CloudSearchClient, never, import("effect/Scope").Scope>;
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category layers
|
|
21
|
+
*/
|
|
22
|
+
export declare const layer: Layer.Layer<CloudSearchClientInstance, never, never>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=CloudSearchClientInstance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudSearchClientInstance.d.ts","sourceRoot":"","sources":["../../src/CloudSearchClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,yBAA0B,SAAQ,8BAEE;CAAG;AAEpD;;;GAGG;AACH,eAAO,MAAM,IAAI,uEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,sDAAgD,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.CloudSearchClientInstance = void 0;
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
*/
|
|
30
|
+
const client_cloudsearch_1 = require("@aws-sdk/client-cloudsearch");
|
|
31
|
+
const effect_1 = require("effect");
|
|
32
|
+
const CloudSearchServiceConfig = __importStar(require("./CloudSearchServiceConfig.js"));
|
|
33
|
+
/**
|
|
34
|
+
* @since 1.0.0
|
|
35
|
+
* @category tags
|
|
36
|
+
*/
|
|
37
|
+
class CloudSearchClientInstance extends effect_1.Context.Tag("@effect-aws/client-cloudsearch/CloudSearchClientInstance")() {
|
|
38
|
+
}
|
|
39
|
+
exports.CloudSearchClientInstance = CloudSearchClientInstance;
|
|
40
|
+
/**
|
|
41
|
+
* @since 1.0.0
|
|
42
|
+
* @category constructors
|
|
43
|
+
*/
|
|
44
|
+
exports.make = effect_1.Effect.flatMap(CloudSearchServiceConfig.toCloudSearchClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_cloudsearch_1.CloudSearchClient(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(CloudSearchClientInstance, exports.make);
|
|
50
|
+
//# sourceMappingURL=CloudSearchClientInstance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudSearchClientInstance.js","sourceRoot":"","sources":["../../src/CloudSearchClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oEAAgE;AAChE,mCAAgD;AAChD,wFAA0E;AAE1E;;;GAGG;AACH,MAAa,yBAA0B,SAAQ,gBAAO,CAAC,GAAG,CACxD,0DAA0D,CAC3D,EAAgD;CAAG;AAFpD,8DAEoD;AAEpD;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,wBAAwB,CAAC,yBAAyB,EAClD,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,sCAAiB,CAAC,MAAM,CAAC,CAAC,EAChD,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,yBAAyB,EAAE,YAAI,CAAC,CAAC"}
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import { type
|
|
4
|
+
import { type BuildSuggestersCommandInput, type BuildSuggestersCommandOutput, type CloudSearchClient, type CloudSearchClientConfig, type CreateDomainCommandInput, type CreateDomainCommandOutput, type DefineAnalysisSchemeCommandInput, type DefineAnalysisSchemeCommandOutput, type DefineExpressionCommandInput, type DefineExpressionCommandOutput, type DefineIndexFieldCommandInput, type DefineIndexFieldCommandOutput, type DefineSuggesterCommandInput, type DefineSuggesterCommandOutput, type DeleteAnalysisSchemeCommandInput, type DeleteAnalysisSchemeCommandOutput, type DeleteDomainCommandInput, type DeleteDomainCommandOutput, type DeleteExpressionCommandInput, type DeleteExpressionCommandOutput, type DeleteIndexFieldCommandInput, type DeleteIndexFieldCommandOutput, type DeleteSuggesterCommandInput, type DeleteSuggesterCommandOutput, type DescribeAnalysisSchemesCommandInput, type DescribeAnalysisSchemesCommandOutput, type DescribeAvailabilityOptionsCommandInput, type DescribeAvailabilityOptionsCommandOutput, type DescribeDomainEndpointOptionsCommandInput, type DescribeDomainEndpointOptionsCommandOutput, type DescribeDomainsCommandInput, type DescribeDomainsCommandOutput, type DescribeExpressionsCommandInput, type DescribeExpressionsCommandOutput, type DescribeIndexFieldsCommandInput, type DescribeIndexFieldsCommandOutput, type DescribeScalingParametersCommandInput, type DescribeScalingParametersCommandOutput, type DescribeServiceAccessPoliciesCommandInput, type DescribeServiceAccessPoliciesCommandOutput, type DescribeSuggestersCommandInput, type DescribeSuggestersCommandOutput, type IndexDocumentsCommandInput, type IndexDocumentsCommandOutput, type ListDomainNamesCommandInput, type ListDomainNamesCommandOutput, type UpdateAvailabilityOptionsCommandInput, type UpdateAvailabilityOptionsCommandOutput, type UpdateDomainEndpointOptionsCommandInput, type UpdateDomainEndpointOptionsCommandOutput, type UpdateScalingParametersCommandInput, type UpdateScalingParametersCommandOutput, type UpdateServiceAccessPoliciesCommandInput, type UpdateServiceAccessPoliciesCommandOutput } from "@aws-sdk/client-cloudsearch";
|
|
5
|
+
import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
|
|
5
6
|
import { Effect, Layer } from "effect";
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import { BaseError, DisabledOperationError, InternalError, InvalidTypeError, LimitExceededError, ResourceAlreadyExistsError, ResourceNotFoundError, ValidationError, SdkError } from "./Errors";
|
|
9
|
-
/**
|
|
10
|
-
* @since 1.0.0
|
|
11
|
-
*/
|
|
12
|
-
export interface HttpHandlerOptions {
|
|
13
|
-
/**
|
|
14
|
-
* The maximum time in milliseconds that the connection phase of a request
|
|
15
|
-
* may take before the connection attempt is abandoned.
|
|
16
|
-
*/
|
|
17
|
-
requestTimeout?: number;
|
|
18
|
-
}
|
|
7
|
+
import * as Instance from "./CloudSearchClientInstance.js";
|
|
8
|
+
import type { BaseError, DisabledOperationError, InternalError, InvalidTypeError, LimitExceededError, ResourceAlreadyExistsError, ResourceNotFoundError, ValidationError } from "./Errors.js";
|
|
19
9
|
interface CloudSearchService$ {
|
|
20
10
|
readonly _: unique symbol;
|
|
21
11
|
/**
|
|
@@ -127,7 +117,7 @@ interface CloudSearchService$ {
|
|
|
127
117
|
* @since 1.0.0
|
|
128
118
|
* @category constructors
|
|
129
119
|
*/
|
|
130
|
-
export declare const makeCloudSearchService: Effect.Effect<CloudSearchService$, never, CloudSearchClientInstance>;
|
|
120
|
+
export declare const makeCloudSearchService: Effect.Effect<CloudSearchService$, never, Instance.CloudSearchClientInstance>;
|
|
131
121
|
declare const CloudSearchService_base: import("effect/Context").TagClass<CloudSearchService, "@effect-aws/client-cloudsearch/CloudSearchService", CloudSearchService$> & {
|
|
132
122
|
readonly _: Effect.Effect<CloudSearchService$["_"], never, CloudSearchService>;
|
|
133
123
|
buildSuggesters: (args: BuildSuggestersCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<BuildSuggestersCommandOutput, BaseError | InternalError | ResourceNotFoundError | ValidationError | SdkError, CloudSearchService>;
|
|
@@ -157,7 +147,7 @@ declare const CloudSearchService_base: import("effect/Context").TagClass<CloudSe
|
|
|
157
147
|
updateScalingParameters: (args: UpdateScalingParametersCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateScalingParametersCommandOutput, BaseError | InternalError | InvalidTypeError | LimitExceededError | ResourceNotFoundError | ValidationError | SdkError, CloudSearchService>;
|
|
158
148
|
updateServiceAccessPolicies: (args: UpdateServiceAccessPoliciesCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateServiceAccessPoliciesCommandOutput, BaseError | InternalError | InvalidTypeError | LimitExceededError | ResourceNotFoundError | ValidationError | SdkError, CloudSearchService>;
|
|
159
149
|
} & {
|
|
160
|
-
use: <X>(body: (_: CloudSearchService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E,
|
|
150
|
+
use: <X>(body: (_: CloudSearchService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, CloudSearchService | R> : Effect.Effect<X, never, CloudSearchService>;
|
|
161
151
|
};
|
|
162
152
|
/**
|
|
163
153
|
* @since 1.0.0
|
|
@@ -165,31 +155,19 @@ declare const CloudSearchService_base: import("effect/Context").TagClass<CloudSe
|
|
|
165
155
|
*/
|
|
166
156
|
export declare class CloudSearchService extends CloudSearchService_base {
|
|
167
157
|
static readonly defaultLayer: Layer.Layer<CloudSearchService, never, never>;
|
|
168
|
-
static readonly layer: (config:
|
|
158
|
+
static readonly layer: (config: CloudSearchService.Config) => Layer.Layer<CloudSearchService, never, never>;
|
|
169
159
|
static readonly baseLayer: (evaluate: (defaultConfig: CloudSearchClientConfig) => CloudSearchClient) => Layer.Layer<CloudSearchService, never, never>;
|
|
170
160
|
}
|
|
171
161
|
/**
|
|
172
162
|
* @since 1.0.0
|
|
173
|
-
* @category models
|
|
174
|
-
* @alias CloudSearchService
|
|
175
|
-
*/
|
|
176
|
-
export declare const CloudSearch: typeof CloudSearchService;
|
|
177
|
-
/**
|
|
178
|
-
* @since 1.0.0
|
|
179
|
-
* @category layers
|
|
180
|
-
* @deprecated use CloudSearch.baseLayer instead
|
|
181
163
|
*/
|
|
182
|
-
export declare
|
|
183
|
-
/**
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
* @since 1.0.0
|
|
191
|
-
* @category layers
|
|
192
|
-
* @deprecated use CloudSearch.defaultLayer instead
|
|
193
|
-
*/
|
|
194
|
-
export declare const DefaultCloudSearchServiceLayer: Layer.Layer<CloudSearchService, never, never>;
|
|
164
|
+
export declare namespace CloudSearchService {
|
|
165
|
+
/**
|
|
166
|
+
* @since 1.0.0
|
|
167
|
+
*/
|
|
168
|
+
interface Config extends Omit<CloudSearchClientConfig, "logger"> {
|
|
169
|
+
readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
195
172
|
export {};
|
|
173
|
+
//# sourceMappingURL=CloudSearchService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudSearchService.d.ts","sourceRoot":"","sources":["../../src/CloudSearchService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAE5B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAE9B,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EAEjC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAE9B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EAEjC,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EAEzC,KAAK,uCAAuC,EAC5C,KAAK,wCAAwC,EAE7C,KAAK,yCAAyC,EAC9C,KAAK,0CAA0C,EAE/C,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EAEjC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,+B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AS,GACT,aAAa,GACb,gBAAgB,GAChB,kBAAkB,GAClB,qBAAqB,GACrB,eAAe,CAClB,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB,+EAIjC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,uBAGrC;IACD,MAAM,CAAC,QAAQ,CAAC,YAAY,gDAAkF;IAC9G,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,mBAAmB,MAAM,mDAItD;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,uBAAuB,KAAK,iBAAiB,mDASrE;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,kBAAkB,CAAC;IAC1C;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,uBAAuB,EAAE,QAAQ,CAAC;QACrE,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
|
|
@@ -0,0 +1,82 @@
|
|
|
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.CloudSearchService = exports.makeCloudSearchService = void 0;
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
*/
|
|
30
|
+
const client_cloudsearch_1 = require("@aws-sdk/client-cloudsearch");
|
|
31
|
+
const commons_1 = require("@effect-aws/commons");
|
|
32
|
+
const effect_1 = require("effect");
|
|
33
|
+
const Instance = __importStar(require("./CloudSearchClientInstance.js"));
|
|
34
|
+
const CloudSearchServiceConfig = __importStar(require("./CloudSearchServiceConfig.js"));
|
|
35
|
+
const Errors_js_1 = require("./Errors.js");
|
|
36
|
+
const commands = {
|
|
37
|
+
BuildSuggestersCommand: client_cloudsearch_1.BuildSuggestersCommand,
|
|
38
|
+
CreateDomainCommand: client_cloudsearch_1.CreateDomainCommand,
|
|
39
|
+
DefineAnalysisSchemeCommand: client_cloudsearch_1.DefineAnalysisSchemeCommand,
|
|
40
|
+
DefineExpressionCommand: client_cloudsearch_1.DefineExpressionCommand,
|
|
41
|
+
DefineIndexFieldCommand: client_cloudsearch_1.DefineIndexFieldCommand,
|
|
42
|
+
DefineSuggesterCommand: client_cloudsearch_1.DefineSuggesterCommand,
|
|
43
|
+
DeleteAnalysisSchemeCommand: client_cloudsearch_1.DeleteAnalysisSchemeCommand,
|
|
44
|
+
DeleteDomainCommand: client_cloudsearch_1.DeleteDomainCommand,
|
|
45
|
+
DeleteExpressionCommand: client_cloudsearch_1.DeleteExpressionCommand,
|
|
46
|
+
DeleteIndexFieldCommand: client_cloudsearch_1.DeleteIndexFieldCommand,
|
|
47
|
+
DeleteSuggesterCommand: client_cloudsearch_1.DeleteSuggesterCommand,
|
|
48
|
+
DescribeAnalysisSchemesCommand: client_cloudsearch_1.DescribeAnalysisSchemesCommand,
|
|
49
|
+
DescribeAvailabilityOptionsCommand: client_cloudsearch_1.DescribeAvailabilityOptionsCommand,
|
|
50
|
+
DescribeDomainEndpointOptionsCommand: client_cloudsearch_1.DescribeDomainEndpointOptionsCommand,
|
|
51
|
+
DescribeDomainsCommand: client_cloudsearch_1.DescribeDomainsCommand,
|
|
52
|
+
DescribeExpressionsCommand: client_cloudsearch_1.DescribeExpressionsCommand,
|
|
53
|
+
DescribeIndexFieldsCommand: client_cloudsearch_1.DescribeIndexFieldsCommand,
|
|
54
|
+
DescribeScalingParametersCommand: client_cloudsearch_1.DescribeScalingParametersCommand,
|
|
55
|
+
DescribeServiceAccessPoliciesCommand: client_cloudsearch_1.DescribeServiceAccessPoliciesCommand,
|
|
56
|
+
DescribeSuggestersCommand: client_cloudsearch_1.DescribeSuggestersCommand,
|
|
57
|
+
IndexDocumentsCommand: client_cloudsearch_1.IndexDocumentsCommand,
|
|
58
|
+
ListDomainNamesCommand: client_cloudsearch_1.ListDomainNamesCommand,
|
|
59
|
+
UpdateAvailabilityOptionsCommand: client_cloudsearch_1.UpdateAvailabilityOptionsCommand,
|
|
60
|
+
UpdateDomainEndpointOptionsCommand: client_cloudsearch_1.UpdateDomainEndpointOptionsCommand,
|
|
61
|
+
UpdateScalingParametersCommand: client_cloudsearch_1.UpdateScalingParametersCommand,
|
|
62
|
+
UpdateServiceAccessPoliciesCommand: client_cloudsearch_1.UpdateServiceAccessPoliciesCommand,
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* @since 1.0.0
|
|
66
|
+
* @category constructors
|
|
67
|
+
*/
|
|
68
|
+
exports.makeCloudSearchService = effect_1.Effect.gen(function* () {
|
|
69
|
+
const client = yield* Instance.CloudSearchClientInstance;
|
|
70
|
+
return commons_1.Service.fromClientAndCommands(client, commands, Errors_js_1.AllServiceErrors);
|
|
71
|
+
});
|
|
72
|
+
/**
|
|
73
|
+
* @since 1.0.0
|
|
74
|
+
* @category models
|
|
75
|
+
*/
|
|
76
|
+
class CloudSearchService extends effect_1.Effect.Tag("@effect-aws/client-cloudsearch/CloudSearchService")() {
|
|
77
|
+
static defaultLayer = effect_1.Layer.effect(this, exports.makeCloudSearchService).pipe(effect_1.Layer.provide(Instance.layer));
|
|
78
|
+
static layer = (config) => effect_1.Layer.effect(this, exports.makeCloudSearchService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(CloudSearchServiceConfig.setCloudSearchServiceConfig(config)));
|
|
79
|
+
static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeCloudSearchService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.CloudSearchClientInstance, effect_1.Effect.map(CloudSearchServiceConfig.toCloudSearchClientConfig, evaluate))));
|
|
80
|
+
}
|
|
81
|
+
exports.CloudSearchService = CloudSearchService;
|
|
82
|
+
//# sourceMappingURL=CloudSearchService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudSearchService.js","sourceRoot":"","sources":["../../src/CloudSearchService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oEAiFqC;AAErC,iDAA8C;AAC9C,mCAAuC;AACvC,yEAA2D;AAC3D,wFAA0E;AAW1E,2CAA+C;AAE/C,MAAM,QAAQ,GAAG;IACf,sBAAsB,EAAtB,2CAAsB;IACtB,mBAAmB,EAAnB,wCAAmB;IACnB,2BAA2B,EAA3B,gDAA2B;IAC3B,uBAAuB,EAAvB,4CAAuB;IACvB,uBAAuB,EAAvB,4CAAuB;IACvB,sBAAsB,EAAtB,2CAAsB;IACtB,2BAA2B,EAA3B,gDAA2B;IAC3B,mBAAmB,EAAnB,wCAAmB;IACnB,uBAAuB,EAAvB,4CAAuB;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OAAO,CAAC,wBAAwB,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC,CAC5E,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAuE,EACvE,EAAE,CACF,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,8BAAsB,CAAC,CAAC,IAAI,CAC7C,cAAK,CAAC,OAAO,CACX,cAAK,CAAC,MAAM,CACV,QAAQ,CAAC,yBAAyB,EAClC,eAAM,CAAC,GAAG,CAAC,wBAAwB,CAAC,yBAAyB,EAAE,QAAQ,CAAC,CACzE,CACF,CACF,CAAC;;AApBN,gDAqBC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import type { CloudSearchClientConfig } from "@aws-sdk/client-cloudsearch";
|
|
5
|
+
import { Effect, Layer } from "effect";
|
|
6
|
+
import type { CloudSearchService } from "./CloudSearchService.js";
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category cloudsearch service config
|
|
10
|
+
*/
|
|
11
|
+
export declare const withCloudSearchServiceConfig: {
|
|
12
|
+
(config: CloudSearchService.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: CloudSearchService.Config): Effect.Effect<A, E, R>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @since 1.0.0
|
|
17
|
+
* @category cloudsearch service config
|
|
18
|
+
*/
|
|
19
|
+
export declare const setCloudSearchServiceConfig: (config: CloudSearchService.Config) => Layer.Layer<never, never, never>;
|
|
20
|
+
/**
|
|
21
|
+
* @since 1.0.0
|
|
22
|
+
* @category adapters
|
|
23
|
+
*/
|
|
24
|
+
export declare const toCloudSearchClientConfig: Effect.Effect<CloudSearchClientConfig>;
|
|
25
|
+
//# sourceMappingURL=CloudSearchServiceConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudSearchServiceConfig.d.ts","sourceRoot":"","sources":["../../src/CloudSearchServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAWlE;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAE;IACzC,CAAC,MAAM,EAAE,kBAAkB,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;IACzG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,kBAAkB,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAKtG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,2BAA2B,WAAY,mBAAmB,MAAM,qCACf,CAAC;AAE/D;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAQ3E,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toCloudSearchClientConfig = exports.setCloudSearchServiceConfig = exports.withCloudSearchServiceConfig = 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 cloudsearch service config
|
|
11
|
+
*/
|
|
12
|
+
const currentCloudSearchServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-cloudsearch/currentCloudSearchServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category cloudsearch service config
|
|
16
|
+
*/
|
|
17
|
+
exports.withCloudSearchServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentCloudSearchServiceConfig, config));
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category cloudsearch service config
|
|
21
|
+
*/
|
|
22
|
+
const setCloudSearchServiceConfig = (config) => effect_1.Layer.locallyScoped(currentCloudSearchServiceConfig, config);
|
|
23
|
+
exports.setCloudSearchServiceConfig = setCloudSearchServiceConfig;
|
|
24
|
+
/**
|
|
25
|
+
* @since 1.0.0
|
|
26
|
+
* @category adapters
|
|
27
|
+
*/
|
|
28
|
+
exports.toCloudSearchClientConfig = effect_1.Effect.gen(function* () {
|
|
29
|
+
const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentCloudSearchServiceConfig);
|
|
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=CloudSearchServiceConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudSearchServiceConfig.js","sourceRoot":"","sources":["../../src/CloudSearchServiceConfig.ts"],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Exception, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ValidationException } from "@aws-sdk/client-cloudsearch";
|
|
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 ["BaseException", "DisabledOperationException", "InternalException", "InvalidTypeException", "LimitExceededException", "ResourceAlreadyExistsException", "ResourceNotFoundException", "ValidationException"];
|
|
9
5
|
export type BaseError = TaggedException<BaseException>;
|
|
10
6
|
export type DisabledOperationError = TaggedException<DisabledOperationException>;
|
|
11
7
|
export type InternalError = TaggedException<InternalException>;
|
|
@@ -14,7 +10,6 @@ export type LimitExceededError = TaggedException<LimitExceededException>;
|
|
|
14
10
|
export type ResourceAlreadyExistsError = TaggedException<ResourceAlreadyExistsException>;
|
|
15
11
|
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
16
12
|
export type ValidationError = TaggedException<ValidationException>;
|
|
17
|
-
export type SdkError =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export declare const SdkError: Data.Case.Constructor<SdkError, "_tag">;
|
|
13
|
+
export type SdkError = CommonSdkError;
|
|
14
|
+
export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
|
|
15
|
+
//# 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,aAAa,EACb,0BAA0B,EAC1B,iBAAiB,EACjB,oBAAoB,EACpB,sBAAsB,EACtB,8BAA8B,EAC9B,yBAAyB,EACzB,mBAAmB,EACpB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,gBAAgB,uNASnB,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,eAAe,CAAC,aAAa,CAAC,CAAC;AACvD,MAAM,MAAM,sBAAsB,GAAG,eAAe,CAAC,0BAA0B,CAAC,CAAC;AACjF,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;AACrE,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,0BAA0B,GAAG,eAAe,CAAC,8BAA8B,CAAC,CAAC;AACzF,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,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,16 @@
|
|
|
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
|
+
"BaseException",
|
|
7
|
+
"DisabledOperationException",
|
|
8
|
+
"InternalException",
|
|
9
|
+
"InvalidTypeException",
|
|
10
|
+
"LimitExceededException",
|
|
11
|
+
"ResourceAlreadyExistsException",
|
|
12
|
+
"ResourceNotFoundException",
|
|
13
|
+
"ValidationException",
|
|
14
|
+
];
|
|
15
|
+
exports.SdkError = commons_1.SdkError;
|
|
16
|
+
//# sourceMappingURL=Errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAWA,iDAAiE;AAEpD,QAAA,gBAAgB,GAAG;IAC9B,eAAe;IACf,4BAA4B;IAC5B,mBAAmB;IACnB,sBAAsB;IACtB,wBAAwB;IACxB,gCAAgC;IAChC,2BAA2B;IAC3B,qBAAqB;CACb,CAAC;AAYE,QAAA,QAAQ,GAAG,kBAAc,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { CloudSearchService } from "./CloudSearchService.js";
|
|
5
|
+
/**
|
|
6
|
+
* @since 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
export * from "./Errors.js";
|
|
9
|
+
/**
|
|
10
|
+
* @since 1.0.0
|
|
11
|
+
*/
|
|
12
|
+
export * as CloudSearchClientInstance from "./CloudSearchClientInstance.js";
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
*/
|
|
16
|
+
export * as CloudSearchServiceConfig from "./CloudSearchServiceConfig.js";
|
|
17
|
+
/**
|
|
18
|
+
* @since 1.0.0
|
|
19
|
+
*/
|
|
20
|
+
export * from "./CloudSearchService.js";
|
|
21
|
+
/**
|
|
22
|
+
* @since 1.0.0
|
|
23
|
+
* @category exports
|
|
24
|
+
* @alias CloudSearchService
|
|
25
|
+
*/
|
|
26
|
+
export declare namespace CloudSearch {
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
* @alias CloudSearchService.Config
|
|
30
|
+
*/
|
|
31
|
+
type Config = CloudSearchService.Config;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @since 1.0.0
|
|
35
|
+
* @category exports
|
|
36
|
+
* @alias CloudSearchService
|
|
37
|
+
*/
|
|
38
|
+
export declare const CloudSearch: typeof CloudSearchService;
|
|
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,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,yBAAyB,MAAM,gCAAgC,CAAC;AAE5E;;GAEG;AACH,OAAO,KAAK,wBAAwB,MAAM,+BAA+B,CAAC;AAE1E;;GAEG;AACH,cAAc,yBAAyB,CAAC;AAExC;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC;;;OAGG;IACH,KAAY,MAAM,GAAG,kBAAkB,CAAC,MAAM,CAAC;CAChD;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,2BAAqB,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.CloudSearch = exports.CloudSearchServiceConfig = exports.CloudSearchClientInstance = void 0;
|
|
30
|
+
/**
|
|
31
|
+
* @since 1.0.0
|
|
32
|
+
*/
|
|
33
|
+
const CloudSearchService_js_1 = require("./CloudSearchService.js");
|
|
34
|
+
/**
|
|
35
|
+
* @since 1.0.0
|
|
36
|
+
*/
|
|
37
|
+
__exportStar(require("./Errors.js"), exports);
|
|
38
|
+
/**
|
|
39
|
+
* @since 1.0.0
|
|
40
|
+
*/
|
|
41
|
+
exports.CloudSearchClientInstance = __importStar(require("./CloudSearchClientInstance.js"));
|
|
42
|
+
/**
|
|
43
|
+
* @since 1.0.0
|
|
44
|
+
*/
|
|
45
|
+
exports.CloudSearchServiceConfig = __importStar(require("./CloudSearchServiceConfig.js"));
|
|
46
|
+
/**
|
|
47
|
+
* @since 1.0.0
|
|
48
|
+
*/
|
|
49
|
+
__exportStar(require("./CloudSearchService.js"), exports);
|
|
50
|
+
/**
|
|
51
|
+
* @since 1.0.0
|
|
52
|
+
* @category exports
|
|
53
|
+
* @alias CloudSearchService
|
|
54
|
+
*/
|
|
55
|
+
exports.CloudSearch = CloudSearchService_js_1.CloudSearchService;
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,mEAA6D;AAE7D;;GAEG;AACH,8CAA4B;AAE5B;;GAEG;AACH,4FAA4E;AAE5E;;GAEG;AACH,0FAA0E;AAE1E;;GAEG;AACH,0DAAwC;AAexC;;;;GAIG;AACU,QAAA,WAAW,GAAG,0CAAkB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { CloudSearchClient } from "@aws-sdk/client-cloudsearch";
|
|
5
|
+
import { Context, Effect, Layer } from "effect";
|
|
6
|
+
declare const CloudSearchClientInstance_base: Context.TagClass<CloudSearchClientInstance, "@effect-aws/client-cloudsearch/CloudSearchClientInstance", CloudSearchClient>;
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category tags
|
|
10
|
+
*/
|
|
11
|
+
export declare class CloudSearchClientInstance extends CloudSearchClientInstance_base {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category constructors
|
|
16
|
+
*/
|
|
17
|
+
export declare const make: Effect.Effect<CloudSearchClient, never, import("effect/Scope").Scope>;
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category layers
|
|
21
|
+
*/
|
|
22
|
+
export declare const layer: Layer.Layer<CloudSearchClientInstance, never, never>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=CloudSearchClientInstance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudSearchClientInstance.d.ts","sourceRoot":"","sources":["../../src/CloudSearchClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,yBAA0B,SAAQ,8BAEE;CAAG;AAEpD;;;GAGG;AACH,eAAO,MAAM,IAAI,uEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,sDAAgD,CAAC"}
|