@effect-aws/client-iot-jobs-data-plane 1.9.5 → 1.10.2
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/dist/cjs/Errors.d.ts +3 -3
- package/dist/cjs/Errors.d.ts.map +1 -1
- package/dist/cjs/Errors.js +1 -3
- package/dist/cjs/Errors.js.map +1 -1
- package/dist/cjs/IoTJobsDataPlaneService.d.ts +9 -8
- package/dist/cjs/IoTJobsDataPlaneService.d.ts.map +1 -1
- package/dist/cjs/IoTJobsDataPlaneService.js +1 -1
- package/dist/cjs/IoTJobsDataPlaneService.js.map +1 -1
- package/dist/dts/Errors.d.ts +3 -3
- package/dist/dts/Errors.d.ts.map +1 -1
- package/dist/dts/IoTJobsDataPlaneService.d.ts +9 -8
- package/dist/dts/IoTJobsDataPlaneService.d.ts.map +1 -1
- package/dist/esm/Errors.js +0 -2
- package/dist/esm/Errors.js.map +1 -1
- package/dist/esm/IoTJobsDataPlaneService.js +1 -1
- package/dist/esm/IoTJobsDataPlaneService.js.map +1 -1
- package/package.json +2 -2
- package/src/Errors.ts +1 -4
- package/src/IoTJobsDataPlaneService.ts +9 -2
package/dist/cjs/Errors.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { CertificateValidationException, ConflictException, InternalServerException, InvalidRequestException, InvalidStateTransitionException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, TerminalStateException, ThrottlingException, ValidationException } from "@aws-sdk/client-iot-jobs-data-plane";
|
|
2
2
|
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
4
3
|
export declare const AllServiceErrors: readonly ["CertificateValidationException", "ConflictException", "InternalServerException", "InvalidRequestException", "InvalidStateTransitionException", "ResourceNotFoundException", "ServiceQuotaExceededException", "ServiceUnavailableException", "TerminalStateException", "ThrottlingException", "ValidationException"];
|
|
5
4
|
export type CertificateValidationError = TaggedException<CertificateValidationException>;
|
|
6
5
|
export type ConflictError = TaggedException<ConflictException>;
|
|
@@ -13,6 +12,7 @@ export type ServiceUnavailableError = TaggedException<ServiceUnavailableExceptio
|
|
|
13
12
|
export type TerminalStateError = TaggedException<TerminalStateException>;
|
|
14
13
|
export type ThrottlingError = TaggedException<ThrottlingException>;
|
|
15
14
|
export type ValidationError = TaggedException<ValidationException>;
|
|
16
|
-
export type SdkError =
|
|
17
|
-
|
|
15
|
+
export type SdkError = TaggedException<Error & {
|
|
16
|
+
name: "SdkError";
|
|
17
|
+
}>;
|
|
18
18
|
//# sourceMappingURL=Errors.d.ts.map
|
package/dist/cjs/Errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8BAA8B,EAC9B,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,EACvB,+BAA+B,EAC/B,yBAAyB,EACzB,6BAA6B,EAC7B,2BAA2B,EAC3B,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8BAA8B,EAC9B,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,EACvB,+BAA+B,EAC/B,yBAAyB,EACzB,6BAA6B,EAC7B,2BAA2B,EAC3B,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,gBAAgB,gUAYnB,CAAC;AAEX,MAAM,MAAM,0BAA0B,GAAG,eAAe,CAAC,8BAA8B,CAAC,CAAC;AACzF,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,2BAA2B,GAAG,eAAe,CAAC,+BAA+B,CAAC,CAAC;AAC3F,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,2BAA2B,CAAC,CAAC;AACnF,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
|
package/dist/cjs/Errors.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const commons_1 = require("@effect-aws/commons");
|
|
3
|
+
exports.AllServiceErrors = void 0;
|
|
5
4
|
exports.AllServiceErrors = [
|
|
6
5
|
"CertificateValidationException",
|
|
7
6
|
"ConflictException",
|
|
@@ -15,5 +14,4 @@ exports.AllServiceErrors = [
|
|
|
15
14
|
"ThrottlingException",
|
|
16
15
|
"ValidationException",
|
|
17
16
|
];
|
|
18
|
-
exports.SdkError = commons_1.SdkError;
|
|
19
17
|
//# sourceMappingURL=Errors.js.map
|
package/dist/cjs/Errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAea,QAAA,gBAAgB,GAAG;IAC9B,gCAAgC;IAChC,mBAAmB;IACnB,yBAAyB;IACzB,yBAAyB;IACzB,iCAAiC;IACjC,2BAA2B;IAC3B,+BAA+B;IAC/B,6BAA6B;IAC7B,wBAAwB;IACxB,qBAAqB;IACrB,qBAAqB;CACb,CAAC"}
|
|
@@ -2,32 +2,33 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { type DescribeJobExecutionCommandInput, type DescribeJobExecutionCommandOutput, type GetPendingJobExecutionsCommandInput, type GetPendingJobExecutionsCommandOutput, type IoTJobsDataPlaneClient, type IoTJobsDataPlaneClientConfig, type StartCommandExecutionCommandInput, type StartCommandExecutionCommandOutput, type StartNextPendingJobExecutionCommandInput, type StartNextPendingJobExecutionCommandOutput, type UpdateJobExecutionCommandInput, type UpdateJobExecutionCommandOutput } from "@aws-sdk/client-iot-jobs-data-plane";
|
|
5
|
-
import type { HttpHandlerOptions,
|
|
5
|
+
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
+
import type { Cause } from "effect";
|
|
6
7
|
import { Effect, Layer } from "effect";
|
|
7
|
-
import type { CertificateValidationError, ConflictError, InternalServerError, InvalidRequestError, InvalidStateTransitionError, ResourceNotFoundError, ServiceQuotaExceededError, ServiceUnavailableError, TerminalStateError, ThrottlingError, ValidationError } from "./Errors.js";
|
|
8
|
+
import type { CertificateValidationError, ConflictError, InternalServerError, InvalidRequestError, InvalidStateTransitionError, ResourceNotFoundError, SdkError, ServiceQuotaExceededError, ServiceUnavailableError, TerminalStateError, ThrottlingError, ValidationError } from "./Errors.js";
|
|
8
9
|
import * as Instance from "./IoTJobsDataPlaneClientInstance.js";
|
|
9
10
|
interface IoTJobsDataPlaneService$ {
|
|
10
11
|
readonly _: unique symbol;
|
|
11
12
|
/**
|
|
12
13
|
* @see {@link DescribeJobExecutionCommand}
|
|
13
14
|
*/
|
|
14
|
-
describeJobExecution(args: DescribeJobExecutionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeJobExecutionCommandOutput, SdkError | CertificateValidationError | InvalidRequestError | ResourceNotFoundError | ServiceUnavailableError | TerminalStateError | ThrottlingError>;
|
|
15
|
+
describeJobExecution(args: DescribeJobExecutionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeJobExecutionCommandOutput, Cause.TimeoutException | SdkError | CertificateValidationError | InvalidRequestError | ResourceNotFoundError | ServiceUnavailableError | TerminalStateError | ThrottlingError>;
|
|
15
16
|
/**
|
|
16
17
|
* @see {@link GetPendingJobExecutionsCommand}
|
|
17
18
|
*/
|
|
18
|
-
getPendingJobExecutions(args: GetPendingJobExecutionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetPendingJobExecutionsCommandOutput, SdkError | CertificateValidationError | InvalidRequestError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError>;
|
|
19
|
+
getPendingJobExecutions(args: GetPendingJobExecutionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetPendingJobExecutionsCommandOutput, Cause.TimeoutException | SdkError | CertificateValidationError | InvalidRequestError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError>;
|
|
19
20
|
/**
|
|
20
21
|
* @see {@link StartCommandExecutionCommand}
|
|
21
22
|
*/
|
|
22
|
-
startCommandExecution(args: StartCommandExecutionCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartCommandExecutionCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
23
|
+
startCommandExecution(args: StartCommandExecutionCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartCommandExecutionCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
23
24
|
/**
|
|
24
25
|
* @see {@link StartNextPendingJobExecutionCommand}
|
|
25
26
|
*/
|
|
26
|
-
startNextPendingJobExecution(args: StartNextPendingJobExecutionCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartNextPendingJobExecutionCommandOutput, SdkError | CertificateValidationError | InvalidRequestError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError>;
|
|
27
|
+
startNextPendingJobExecution(args: StartNextPendingJobExecutionCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartNextPendingJobExecutionCommandOutput, Cause.TimeoutException | SdkError | CertificateValidationError | InvalidRequestError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError>;
|
|
27
28
|
/**
|
|
28
29
|
* @see {@link UpdateJobExecutionCommand}
|
|
29
30
|
*/
|
|
30
|
-
updateJobExecution(args: UpdateJobExecutionCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateJobExecutionCommandOutput, SdkError | CertificateValidationError | InvalidRequestError | InvalidStateTransitionError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError>;
|
|
31
|
+
updateJobExecution(args: UpdateJobExecutionCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateJobExecutionCommandOutput, Cause.TimeoutException | SdkError | CertificateValidationError | InvalidRequestError | InvalidStateTransitionError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError>;
|
|
31
32
|
}
|
|
32
33
|
/**
|
|
33
34
|
* @since 1.0.0
|
|
@@ -35,7 +36,7 @@ interface IoTJobsDataPlaneService$ {
|
|
|
35
36
|
*/
|
|
36
37
|
export declare const makeIoTJobsDataPlaneService: Effect.Effect<IoTJobsDataPlaneService$, never, Instance.IoTJobsDataPlaneClientInstance>;
|
|
37
38
|
declare const IoTJobsDataPlaneService_base: import("effect/Context").TagClass<IoTJobsDataPlaneService, "@effect-aws/client-iot-jobs-data-plane/IoTJobsDataPlaneService", IoTJobsDataPlaneService$> & Effect.Tag.Proxy<IoTJobsDataPlaneService, IoTJobsDataPlaneService$> & {
|
|
38
|
-
use: <X>(body: (_: IoTJobsDataPlaneService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, IoTJobsDataPlaneService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1,
|
|
39
|
+
use: <X>(body: (_: IoTJobsDataPlaneService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, IoTJobsDataPlaneService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, IoTJobsDataPlaneService> : Effect.Effect<X, never, IoTJobsDataPlaneService>;
|
|
39
40
|
};
|
|
40
41
|
/**
|
|
41
42
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IoTJobsDataPlaneService.d.ts","sourceRoot":"","sources":["../../src/IoTJobsDataPlaneService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,4BAA4B,EAEjC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,wCAAwC,EAC7C,KAAK,yCAAyC,EAE9C,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACrC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"IoTJobsDataPlaneService.d.ts","sourceRoot":"","sources":["../../src/IoTJobsDataPlaneService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,4B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AAC;KACtE;CACF"}
|
|
@@ -46,7 +46,7 @@ const commands = {
|
|
|
46
46
|
*/
|
|
47
47
|
exports.makeIoTJobsDataPlaneService = effect_1.Effect.gen(function* () {
|
|
48
48
|
const client = yield* Instance.IoTJobsDataPlaneClientInstance;
|
|
49
|
-
return commons_1.Service.fromClientAndCommands(client, commands, {
|
|
49
|
+
return yield* commons_1.Service.fromClientAndCommands(client, commands, {
|
|
50
50
|
errorTags: Errors_js_1.AllServiceErrors,
|
|
51
51
|
resolveClientConfig: IoTJobsDataPlaneServiceConfig.toIoTJobsDataPlaneClientConfig,
|
|
52
52
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IoTJobsDataPlaneService.js","sourceRoot":"","sources":["../../src/IoTJobsDataPlaneService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oFAkB6C;AAE7C,iDAA8C;
|
|
1
|
+
{"version":3,"file":"IoTJobsDataPlaneService.js","sourceRoot":"","sources":["../../src/IoTJobsDataPlaneService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oFAkB6C;AAE7C,iDAA8C;AAE9C,mCAAuC;AAevC,2CAA+C;AAC/C,8EAAgE;AAChE,kGAAoF;AAEpF,MAAM,QAAQ,GAAG;IACf,2BAA2B,EAA3B,wDAA2B;IAC3B,8BAA8B,EAA9B,2DAA8B;IAC9B,4BAA4B,EAA5B,yDAA4B;IAC5B,mCAAmC,EAAnC,gEAAmC;IACnC,yBAAyB,EAAzB,sDAAyB;CAC1B,CAAC;AA8FF;;;GAGG;AACU,QAAA,2BAA2B,GAAG,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC7D,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IAE9D,OAAO,KAAK,CAAC,CAAC,iBAAO,CAAC,qBAAqB,CACzC,MAAM,EACN,QAAQ,EACR;QACE,SAAS,EAAE,4BAAgB;QAC3B,mBAAmB,EAAE,6BAA6B,CAAC,8BAA8B;KAClF,CACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAa,uBACX,SAAQ,eAAM,CAAC,GAAG,CAAC,gEAAgE,CAAC,EAGjF;IAEH,MAAM,CAAU,YAAY,GAAG,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,mCAA2B,CAAC,CAAC,IAAI,CAAC,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IACnH,MAAM,CAAU,KAAK,GAAG,CAAC,MAAsC,EAAE,EAAE,CACjE,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,mCAA2B,CAAC,CAAC,IAAI,CAClD,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,cAAK,CAAC,OAAO,CAAC,6BAA6B,CAAC,gCAAgC,CAAC,MAAM,CAAC,CAAC,CACtF,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAiF,EACjF,EAAE,CACF,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,mCAA2B,CAAC,CAAC,IAAI,CAClD,cAAK,CAAC,OAAO,CACX,cAAK,CAAC,MAAM,CACV,QAAQ,CAAC,8BAA8B,EACvC,eAAM,CAAC,GAAG,CAAC,6BAA6B,CAAC,8BAA8B,EAAE,QAAQ,CAAC,CACnF,CACF,CACF,CAAC;;AAtBN,0DAuBC"}
|
package/dist/dts/Errors.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { CertificateValidationException, ConflictException, InternalServerException, InvalidRequestException, InvalidStateTransitionException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, TerminalStateException, ThrottlingException, ValidationException } from "@aws-sdk/client-iot-jobs-data-plane";
|
|
2
2
|
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
4
3
|
export declare const AllServiceErrors: readonly ["CertificateValidationException", "ConflictException", "InternalServerException", "InvalidRequestException", "InvalidStateTransitionException", "ResourceNotFoundException", "ServiceQuotaExceededException", "ServiceUnavailableException", "TerminalStateException", "ThrottlingException", "ValidationException"];
|
|
5
4
|
export type CertificateValidationError = TaggedException<CertificateValidationException>;
|
|
6
5
|
export type ConflictError = TaggedException<ConflictException>;
|
|
@@ -13,6 +12,7 @@ export type ServiceUnavailableError = TaggedException<ServiceUnavailableExceptio
|
|
|
13
12
|
export type TerminalStateError = TaggedException<TerminalStateException>;
|
|
14
13
|
export type ThrottlingError = TaggedException<ThrottlingException>;
|
|
15
14
|
export type ValidationError = TaggedException<ValidationException>;
|
|
16
|
-
export type SdkError =
|
|
17
|
-
|
|
15
|
+
export type SdkError = TaggedException<Error & {
|
|
16
|
+
name: "SdkError";
|
|
17
|
+
}>;
|
|
18
18
|
//# sourceMappingURL=Errors.d.ts.map
|
package/dist/dts/Errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8BAA8B,EAC9B,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,EACvB,+BAA+B,EAC/B,yBAAyB,EACzB,6BAA6B,EAC7B,2BAA2B,EAC3B,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8BAA8B,EAC9B,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,EACvB,+BAA+B,EAC/B,yBAAyB,EACzB,6BAA6B,EAC7B,2BAA2B,EAC3B,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,gBAAgB,gUAYnB,CAAC;AAEX,MAAM,MAAM,0BAA0B,GAAG,eAAe,CAAC,8BAA8B,CAAC,CAAC;AACzF,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,2BAA2B,GAAG,eAAe,CAAC,+BAA+B,CAAC,CAAC;AAC3F,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,2BAA2B,CAAC,CAAC;AACnF,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
|
|
@@ -2,32 +2,33 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { type DescribeJobExecutionCommandInput, type DescribeJobExecutionCommandOutput, type GetPendingJobExecutionsCommandInput, type GetPendingJobExecutionsCommandOutput, type IoTJobsDataPlaneClient, type IoTJobsDataPlaneClientConfig, type StartCommandExecutionCommandInput, type StartCommandExecutionCommandOutput, type StartNextPendingJobExecutionCommandInput, type StartNextPendingJobExecutionCommandOutput, type UpdateJobExecutionCommandInput, type UpdateJobExecutionCommandOutput } from "@aws-sdk/client-iot-jobs-data-plane";
|
|
5
|
-
import type { HttpHandlerOptions,
|
|
5
|
+
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
+
import type { Cause } from "effect";
|
|
6
7
|
import { Effect, Layer } from "effect";
|
|
7
|
-
import type { CertificateValidationError, ConflictError, InternalServerError, InvalidRequestError, InvalidStateTransitionError, ResourceNotFoundError, ServiceQuotaExceededError, ServiceUnavailableError, TerminalStateError, ThrottlingError, ValidationError } from "./Errors.js";
|
|
8
|
+
import type { CertificateValidationError, ConflictError, InternalServerError, InvalidRequestError, InvalidStateTransitionError, ResourceNotFoundError, SdkError, ServiceQuotaExceededError, ServiceUnavailableError, TerminalStateError, ThrottlingError, ValidationError } from "./Errors.js";
|
|
8
9
|
import * as Instance from "./IoTJobsDataPlaneClientInstance.js";
|
|
9
10
|
interface IoTJobsDataPlaneService$ {
|
|
10
11
|
readonly _: unique symbol;
|
|
11
12
|
/**
|
|
12
13
|
* @see {@link DescribeJobExecutionCommand}
|
|
13
14
|
*/
|
|
14
|
-
describeJobExecution(args: DescribeJobExecutionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeJobExecutionCommandOutput, SdkError | CertificateValidationError | InvalidRequestError | ResourceNotFoundError | ServiceUnavailableError | TerminalStateError | ThrottlingError>;
|
|
15
|
+
describeJobExecution(args: DescribeJobExecutionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeJobExecutionCommandOutput, Cause.TimeoutException | SdkError | CertificateValidationError | InvalidRequestError | ResourceNotFoundError | ServiceUnavailableError | TerminalStateError | ThrottlingError>;
|
|
15
16
|
/**
|
|
16
17
|
* @see {@link GetPendingJobExecutionsCommand}
|
|
17
18
|
*/
|
|
18
|
-
getPendingJobExecutions(args: GetPendingJobExecutionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetPendingJobExecutionsCommandOutput, SdkError | CertificateValidationError | InvalidRequestError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError>;
|
|
19
|
+
getPendingJobExecutions(args: GetPendingJobExecutionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetPendingJobExecutionsCommandOutput, Cause.TimeoutException | SdkError | CertificateValidationError | InvalidRequestError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError>;
|
|
19
20
|
/**
|
|
20
21
|
* @see {@link StartCommandExecutionCommand}
|
|
21
22
|
*/
|
|
22
|
-
startCommandExecution(args: StartCommandExecutionCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartCommandExecutionCommandOutput, SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
23
|
+
startCommandExecution(args: StartCommandExecutionCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartCommandExecutionCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
23
24
|
/**
|
|
24
25
|
* @see {@link StartNextPendingJobExecutionCommand}
|
|
25
26
|
*/
|
|
26
|
-
startNextPendingJobExecution(args: StartNextPendingJobExecutionCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartNextPendingJobExecutionCommandOutput, SdkError | CertificateValidationError | InvalidRequestError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError>;
|
|
27
|
+
startNextPendingJobExecution(args: StartNextPendingJobExecutionCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartNextPendingJobExecutionCommandOutput, Cause.TimeoutException | SdkError | CertificateValidationError | InvalidRequestError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError>;
|
|
27
28
|
/**
|
|
28
29
|
* @see {@link UpdateJobExecutionCommand}
|
|
29
30
|
*/
|
|
30
|
-
updateJobExecution(args: UpdateJobExecutionCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateJobExecutionCommandOutput, SdkError | CertificateValidationError | InvalidRequestError | InvalidStateTransitionError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError>;
|
|
31
|
+
updateJobExecution(args: UpdateJobExecutionCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateJobExecutionCommandOutput, Cause.TimeoutException | SdkError | CertificateValidationError | InvalidRequestError | InvalidStateTransitionError | ResourceNotFoundError | ServiceUnavailableError | ThrottlingError>;
|
|
31
32
|
}
|
|
32
33
|
/**
|
|
33
34
|
* @since 1.0.0
|
|
@@ -35,7 +36,7 @@ interface IoTJobsDataPlaneService$ {
|
|
|
35
36
|
*/
|
|
36
37
|
export declare const makeIoTJobsDataPlaneService: Effect.Effect<IoTJobsDataPlaneService$, never, Instance.IoTJobsDataPlaneClientInstance>;
|
|
37
38
|
declare const IoTJobsDataPlaneService_base: import("effect/Context").TagClass<IoTJobsDataPlaneService, "@effect-aws/client-iot-jobs-data-plane/IoTJobsDataPlaneService", IoTJobsDataPlaneService$> & Effect.Tag.Proxy<IoTJobsDataPlaneService, IoTJobsDataPlaneService$> & {
|
|
38
|
-
use: <X>(body: (_: IoTJobsDataPlaneService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, IoTJobsDataPlaneService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1,
|
|
39
|
+
use: <X>(body: (_: IoTJobsDataPlaneService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, IoTJobsDataPlaneService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, IoTJobsDataPlaneService> : Effect.Effect<X, never, IoTJobsDataPlaneService>;
|
|
39
40
|
};
|
|
40
41
|
/**
|
|
41
42
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IoTJobsDataPlaneService.d.ts","sourceRoot":"","sources":["../../src/IoTJobsDataPlaneService.ts"],"names":[],"mappings":"AAAA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BAA2B,GAC3B,qBAAqB,GACrB,uBAAuB,GACvB,eAAe,CAClB,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,2BAA2B,yFAWtC,CAAC;;;;AAEH;;;GAGG;AACH,qBAAa,uBACX,SAAQ,4BAGL;IAEH,MAAM,CAAC,QAAQ,CAAC,YAAY,qDAAuF;IACnH,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,wBAAwB,MAAM,wDAI3D;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,4BAA4B,KAAK,sBAAsB,wDAS/E;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,uBAAuB,CAAC;IAC/C;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,4BAA4B,EAAE,QAAQ,CAAC;QAC1E,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
|
package/dist/esm/Errors.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
2
1
|
export const AllServiceErrors = [
|
|
3
2
|
"CertificateValidationException",
|
|
4
3
|
"ConflictException",
|
|
@@ -12,5 +11,4 @@ export const AllServiceErrors = [
|
|
|
12
11
|
"ThrottlingException",
|
|
13
12
|
"ValidationException",
|
|
14
13
|
];
|
|
15
|
-
export const SdkError = CommonSdkError;
|
|
16
14
|
//# sourceMappingURL=Errors.js.map
|
package/dist/esm/Errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAeA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,gCAAgC;IAChC,mBAAmB;IACnB,yBAAyB;IACzB,yBAAyB;IACzB,iCAAiC;IACjC,2BAA2B;IAC3B,+BAA+B;IAC/B,6BAA6B;IAC7B,wBAAwB;IACxB,qBAAqB;IACrB,qBAAqB;CACb,CAAC"}
|
|
@@ -20,7 +20,7 @@ const commands = {
|
|
|
20
20
|
*/
|
|
21
21
|
export const makeIoTJobsDataPlaneService = Effect.gen(function* () {
|
|
22
22
|
const client = yield* Instance.IoTJobsDataPlaneClientInstance;
|
|
23
|
-
return Service.fromClientAndCommands(client, commands, {
|
|
23
|
+
return yield* Service.fromClientAndCommands(client, commands, {
|
|
24
24
|
errorTags: AllServiceErrors,
|
|
25
25
|
resolveClientConfig: IoTJobsDataPlaneServiceConfig.toIoTJobsDataPlaneClientConfig,
|
|
26
26
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IoTJobsDataPlaneService.js","sourceRoot":"","sources":["../../src/IoTJobsDataPlaneService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,2BAA2B,EAG3B,8BAA8B,EAK9B,4BAA4B,EAG5B,mCAAmC,EAGnC,yBAAyB,GAG1B,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"IoTJobsDataPlaneService.js","sourceRoot":"","sources":["../../src/IoTJobsDataPlaneService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,2BAA2B,EAG3B,8BAA8B,EAK9B,4BAA4B,EAG5B,mCAAmC,EAGnC,yBAAyB,GAG1B,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAevC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,QAAQ,MAAM,qCAAqC,CAAC;AAChE,OAAO,KAAK,6BAA6B,MAAM,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A6B,CAAC,8BAA8B,EAAE,QAAQ,CAAC,CACnF,CACF,CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-aws/client-iot-jobs-data-plane",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.2",
|
|
4
4
|
"description": "Effectful AWS IoT Jobs Data Plane client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"homepage": "https://floydspace.github.io/effect-aws/docs/client-iot-jobs-data-plane",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@aws-sdk/client-iot-jobs-data-plane": "^3",
|
|
19
|
-
"@effect-aws/commons": "^0.
|
|
19
|
+
"@effect-aws/commons": "^0.3.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"effect": ">=3.0.4 <4.0.0"
|
package/src/Errors.ts
CHANGED
|
@@ -12,7 +12,6 @@ import type {
|
|
|
12
12
|
ValidationException,
|
|
13
13
|
} from "@aws-sdk/client-iot-jobs-data-plane";
|
|
14
14
|
import type { TaggedException } from "@effect-aws/commons";
|
|
15
|
-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
16
15
|
|
|
17
16
|
export const AllServiceErrors = [
|
|
18
17
|
"CertificateValidationException",
|
|
@@ -39,6 +38,4 @@ export type ServiceUnavailableError = TaggedException<ServiceUnavailableExceptio
|
|
|
39
38
|
export type TerminalStateError = TaggedException<TerminalStateException>;
|
|
40
39
|
export type ThrottlingError = TaggedException<ThrottlingException>;
|
|
41
40
|
export type ValidationError = TaggedException<ValidationException>;
|
|
42
|
-
|
|
43
|
-
export type SdkError = CommonSdkError;
|
|
44
|
-
export const SdkError = CommonSdkError;
|
|
41
|
+
export type SdkError = TaggedException<Error & { name: "SdkError" }>;
|
|
@@ -20,8 +20,9 @@ import {
|
|
|
20
20
|
type UpdateJobExecutionCommandInput,
|
|
21
21
|
type UpdateJobExecutionCommandOutput,
|
|
22
22
|
} from "@aws-sdk/client-iot-jobs-data-plane";
|
|
23
|
-
import type { HttpHandlerOptions,
|
|
23
|
+
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
24
24
|
import { Service } from "@effect-aws/commons";
|
|
25
|
+
import type { Cause } from "effect";
|
|
25
26
|
import { Effect, Layer } from "effect";
|
|
26
27
|
import type {
|
|
27
28
|
CertificateValidationError,
|
|
@@ -30,6 +31,7 @@ import type {
|
|
|
30
31
|
InvalidRequestError,
|
|
31
32
|
InvalidStateTransitionError,
|
|
32
33
|
ResourceNotFoundError,
|
|
34
|
+
SdkError,
|
|
33
35
|
ServiceQuotaExceededError,
|
|
34
36
|
ServiceUnavailableError,
|
|
35
37
|
TerminalStateError,
|
|
@@ -59,6 +61,7 @@ interface IoTJobsDataPlaneService$ {
|
|
|
59
61
|
options?: HttpHandlerOptions,
|
|
60
62
|
): Effect.Effect<
|
|
61
63
|
DescribeJobExecutionCommandOutput,
|
|
64
|
+
| Cause.TimeoutException
|
|
62
65
|
| SdkError
|
|
63
66
|
| CertificateValidationError
|
|
64
67
|
| InvalidRequestError
|
|
@@ -76,6 +79,7 @@ interface IoTJobsDataPlaneService$ {
|
|
|
76
79
|
options?: HttpHandlerOptions,
|
|
77
80
|
): Effect.Effect<
|
|
78
81
|
GetPendingJobExecutionsCommandOutput,
|
|
82
|
+
| Cause.TimeoutException
|
|
79
83
|
| SdkError
|
|
80
84
|
| CertificateValidationError
|
|
81
85
|
| InvalidRequestError
|
|
@@ -92,6 +96,7 @@ interface IoTJobsDataPlaneService$ {
|
|
|
92
96
|
options?: HttpHandlerOptions,
|
|
93
97
|
): Effect.Effect<
|
|
94
98
|
StartCommandExecutionCommandOutput,
|
|
99
|
+
| Cause.TimeoutException
|
|
95
100
|
| SdkError
|
|
96
101
|
| ConflictError
|
|
97
102
|
| InternalServerError
|
|
@@ -109,6 +114,7 @@ interface IoTJobsDataPlaneService$ {
|
|
|
109
114
|
options?: HttpHandlerOptions,
|
|
110
115
|
): Effect.Effect<
|
|
111
116
|
StartNextPendingJobExecutionCommandOutput,
|
|
117
|
+
| Cause.TimeoutException
|
|
112
118
|
| SdkError
|
|
113
119
|
| CertificateValidationError
|
|
114
120
|
| InvalidRequestError
|
|
@@ -125,6 +131,7 @@ interface IoTJobsDataPlaneService$ {
|
|
|
125
131
|
options?: HttpHandlerOptions,
|
|
126
132
|
): Effect.Effect<
|
|
127
133
|
UpdateJobExecutionCommandOutput,
|
|
134
|
+
| Cause.TimeoutException
|
|
128
135
|
| SdkError
|
|
129
136
|
| CertificateValidationError
|
|
130
137
|
| InvalidRequestError
|
|
@@ -142,7 +149,7 @@ interface IoTJobsDataPlaneService$ {
|
|
|
142
149
|
export const makeIoTJobsDataPlaneService = Effect.gen(function*() {
|
|
143
150
|
const client = yield* Instance.IoTJobsDataPlaneClientInstance;
|
|
144
151
|
|
|
145
|
-
return Service.fromClientAndCommands<IoTJobsDataPlaneService$>(
|
|
152
|
+
return yield* Service.fromClientAndCommands<IoTJobsDataPlaneService$>(
|
|
146
153
|
client,
|
|
147
154
|
commands,
|
|
148
155
|
{
|