@aws-sdk/client-iot-jobs-data-plane 3.33.0 → 3.36.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/IoTJobsDataPlane.js +1 -15
  3. package/dist-cjs/IoTJobsDataPlaneClient.js +35 -0
  4. package/{dist/cjs → dist-cjs}/commands/DescribeJobExecutionCommand.js +2 -27
  5. package/{dist/cjs → dist-cjs}/commands/GetPendingJobExecutionsCommand.js +2 -27
  6. package/{dist/cjs → dist-cjs}/commands/StartNextPendingJobExecutionCommand.js +2 -27
  7. package/{dist/cjs → dist-cjs}/commands/UpdateJobExecutionCommand.js +2 -27
  8. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  9. package/{dist/cjs → dist-cjs}/index.js +0 -1
  10. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  11. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -55
  12. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +0 -6
  13. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  14. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  15. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  16. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  17. package/{dist/es → dist-es}/IoTJobsDataPlane.js +2 -16
  18. package/{dist/es → dist-es}/IoTJobsDataPlaneClient.js +2 -21
  19. package/{dist/es → dist-es}/commands/DescribeJobExecutionCommand.js +4 -30
  20. package/{dist/es → dist-es}/commands/GetPendingJobExecutionsCommand.js +4 -30
  21. package/{dist/es → dist-es}/commands/StartNextPendingJobExecutionCommand.js +4 -30
  22. package/{dist/es → dist-es}/commands/UpdateJobExecutionCommand.js +4 -30
  23. package/{dist/es → dist-es}/endpoints.js +1 -2
  24. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  25. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  26. package/{dist/es → dist-es}/models/models_0.js +0 -55
  27. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +127 -133
  28. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  29. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  30. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  31. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  32. package/{dist/types → dist-types}/IoTJobsDataPlane.d.ts +2 -2
  33. package/{dist/types → dist-types}/IoTJobsDataPlaneClient.d.ts +5 -5
  34. package/{dist/types → dist-types}/commands/DescribeJobExecutionCommand.d.ts +2 -2
  35. package/{dist/types → dist-types}/commands/GetPendingJobExecutionsCommand.d.ts +2 -2
  36. package/{dist/types → dist-types}/commands/StartNextPendingJobExecutionCommand.d.ts +2 -2
  37. package/{dist/types → dist-types}/commands/UpdateJobExecutionCommand.d.ts +2 -2
  38. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  39. package/{index.ts → dist-types/index.d.ts} +0 -0
  40. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  41. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  42. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  43. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  44. package/{dist/types → dist-types}/runtimeConfig.d.ts +2 -4
  45. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  46. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  47. package/{dist/types → dist-types}/ts3.4/IoTJobsDataPlane.d.ts +7 -27
  48. package/dist-types/ts3.4/IoTJobsDataPlaneClient.d.ts +71 -0
  49. package/{dist/types → dist-types}/ts3.4/commands/DescribeJobExecutionCommand.d.ts +4 -22
  50. package/{dist/types → dist-types}/ts3.4/commands/GetPendingJobExecutionsCommand.d.ts +4 -22
  51. package/{dist/types → dist-types}/ts3.4/commands/StartNextPendingJobExecutionCommand.d.ts +4 -22
  52. package/{dist/types → dist-types}/ts3.4/commands/UpdateJobExecutionCommand.d.ts +4 -22
  53. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  54. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  55. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  56. package/dist-types/ts3.4/models/models_0.d.ts +251 -0
  57. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  58. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  59. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +3 -7
  60. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  61. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  62. package/package.json +52 -49
  63. package/IoTJobsDataPlane.ts +0 -165
  64. package/IoTJobsDataPlaneClient.ts +0 -266
  65. package/commands/DescribeJobExecutionCommand.ts +0 -94
  66. package/commands/GetPendingJobExecutionsCommand.ts +0 -94
  67. package/commands/StartNextPendingJobExecutionCommand.ts +0 -99
  68. package/commands/UpdateJobExecutionCommand.ts +0 -94
  69. package/dist/cjs/IoTJobsDataPlane.js.map +0 -1
  70. package/dist/cjs/IoTJobsDataPlaneClient.js +0 -54
  71. package/dist/cjs/IoTJobsDataPlaneClient.js.map +0 -1
  72. package/dist/cjs/commands/DescribeJobExecutionCommand.js.map +0 -1
  73. package/dist/cjs/commands/GetPendingJobExecutionsCommand.js.map +0 -1
  74. package/dist/cjs/commands/StartNextPendingJobExecutionCommand.js.map +0 -1
  75. package/dist/cjs/commands/UpdateJobExecutionCommand.js.map +0 -1
  76. package/dist/cjs/endpoints.js.map +0 -1
  77. package/dist/cjs/index.js.map +0 -1
  78. package/dist/cjs/models/index.js.map +0 -1
  79. package/dist/cjs/models/models_0.js.map +0 -1
  80. package/dist/cjs/package.json +0 -91
  81. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  82. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  83. package/dist/cjs/runtimeConfig.js.map +0 -1
  84. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  85. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  86. package/dist/es/IoTJobsDataPlane.js.map +0 -1
  87. package/dist/es/IoTJobsDataPlaneClient.js.map +0 -1
  88. package/dist/es/commands/DescribeJobExecutionCommand.js.map +0 -1
  89. package/dist/es/commands/GetPendingJobExecutionsCommand.js.map +0 -1
  90. package/dist/es/commands/StartNextPendingJobExecutionCommand.js.map +0 -1
  91. package/dist/es/commands/UpdateJobExecutionCommand.js.map +0 -1
  92. package/dist/es/endpoints.js.map +0 -1
  93. package/dist/es/index.js +0 -8
  94. package/dist/es/index.js.map +0 -1
  95. package/dist/es/models/index.js +0 -2
  96. package/dist/es/models/index.js.map +0 -1
  97. package/dist/es/models/models_0.js.map +0 -1
  98. package/dist/es/package.json +0 -91
  99. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  100. package/dist/es/runtimeConfig.browser.js.map +0 -1
  101. package/dist/es/runtimeConfig.js.map +0 -1
  102. package/dist/es/runtimeConfig.native.js.map +0 -1
  103. package/dist/es/runtimeConfig.shared.js.map +0 -1
  104. package/dist/types/ts3.4/IoTJobsDataPlaneClient.d.ts +0 -146
  105. package/dist/types/ts3.4/models/models_0.d.ts +0 -435
  106. package/endpoints.ts +0 -91
  107. package/jest.config.js +0 -4
  108. package/models/models_0.ts +0 -533
  109. package/protocols/Aws_restJson1.ts +0 -848
  110. package/runtimeConfig.browser.ts +0 -40
  111. package/runtimeConfig.native.ts +0 -16
  112. package/runtimeConfig.shared.ts +0 -16
  113. package/runtimeConfig.ts +0 -45
  114. package/tsconfig.es.json +0 -12
  115. package/tsconfig.json +0 -32
@@ -0,0 +1,251 @@
1
+ import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
+
3
+ export interface CertificateValidationException extends __SmithyException, $MetadataBearer {
4
+ name: "CertificateValidationException";
5
+ $fault: "client";
6
+
7
+ message?: string;
8
+ }
9
+ export declare namespace CertificateValidationException {
10
+
11
+ const filterSensitiveLog: (obj: CertificateValidationException) => any;
12
+ }
13
+ export interface DescribeJobExecutionRequest {
14
+
15
+ jobId: string | undefined;
16
+
17
+ thingName: string | undefined;
18
+
19
+ includeJobDocument?: boolean;
20
+
21
+ executionNumber?: number;
22
+ }
23
+ export declare namespace DescribeJobExecutionRequest {
24
+
25
+ const filterSensitiveLog: (obj: DescribeJobExecutionRequest) => any;
26
+ }
27
+ export declare enum JobExecutionStatus {
28
+ CANCELED = "CANCELED",
29
+ FAILED = "FAILED",
30
+ IN_PROGRESS = "IN_PROGRESS",
31
+ QUEUED = "QUEUED",
32
+ REJECTED = "REJECTED",
33
+ REMOVED = "REMOVED",
34
+ SUCCEEDED = "SUCCEEDED",
35
+ TIMED_OUT = "TIMED_OUT"
36
+ }
37
+
38
+ export interface JobExecution {
39
+
40
+ jobId?: string;
41
+
42
+ thingName?: string;
43
+
44
+ status?: JobExecutionStatus | string;
45
+
46
+ statusDetails?: {
47
+ [key: string]: string;
48
+ };
49
+
50
+ queuedAt?: number;
51
+
52
+ startedAt?: number;
53
+
54
+ lastUpdatedAt?: number;
55
+
56
+ approximateSecondsBeforeTimedOut?: number;
57
+
58
+ versionNumber?: number;
59
+
60
+ executionNumber?: number;
61
+
62
+ jobDocument?: string;
63
+ }
64
+ export declare namespace JobExecution {
65
+
66
+ const filterSensitiveLog: (obj: JobExecution) => any;
67
+ }
68
+ export interface DescribeJobExecutionResponse {
69
+
70
+ execution?: JobExecution;
71
+ }
72
+ export declare namespace DescribeJobExecutionResponse {
73
+
74
+ const filterSensitiveLog: (obj: DescribeJobExecutionResponse) => any;
75
+ }
76
+
77
+ export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
78
+ name: "InvalidRequestException";
79
+ $fault: "client";
80
+
81
+ message?: string;
82
+ }
83
+ export declare namespace InvalidRequestException {
84
+
85
+ const filterSensitiveLog: (obj: InvalidRequestException) => any;
86
+ }
87
+
88
+ export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
89
+ name: "ResourceNotFoundException";
90
+ $fault: "client";
91
+
92
+ message?: string;
93
+ }
94
+ export declare namespace ResourceNotFoundException {
95
+
96
+ const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
97
+ }
98
+
99
+ export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
100
+ name: "ServiceUnavailableException";
101
+ $fault: "server";
102
+
103
+ message?: string;
104
+ }
105
+ export declare namespace ServiceUnavailableException {
106
+
107
+ const filterSensitiveLog: (obj: ServiceUnavailableException) => any;
108
+ }
109
+
110
+ export interface TerminalStateException extends __SmithyException, $MetadataBearer {
111
+ name: "TerminalStateException";
112
+ $fault: "client";
113
+ message?: string;
114
+ }
115
+ export declare namespace TerminalStateException {
116
+
117
+ const filterSensitiveLog: (obj: TerminalStateException) => any;
118
+ }
119
+
120
+ export interface ThrottlingException extends __SmithyException, $MetadataBearer {
121
+ name: "ThrottlingException";
122
+ $fault: "client";
123
+
124
+ message?: string;
125
+
126
+ payload?: Uint8Array;
127
+ }
128
+ export declare namespace ThrottlingException {
129
+
130
+ const filterSensitiveLog: (obj: ThrottlingException) => any;
131
+ }
132
+ export interface GetPendingJobExecutionsRequest {
133
+
134
+ thingName: string | undefined;
135
+ }
136
+ export declare namespace GetPendingJobExecutionsRequest {
137
+
138
+ const filterSensitiveLog: (obj: GetPendingJobExecutionsRequest) => any;
139
+ }
140
+
141
+ export interface JobExecutionSummary {
142
+
143
+ jobId?: string;
144
+
145
+ queuedAt?: number;
146
+
147
+ startedAt?: number;
148
+
149
+ lastUpdatedAt?: number;
150
+
151
+ versionNumber?: number;
152
+
153
+ executionNumber?: number;
154
+ }
155
+ export declare namespace JobExecutionSummary {
156
+
157
+ const filterSensitiveLog: (obj: JobExecutionSummary) => any;
158
+ }
159
+ export interface GetPendingJobExecutionsResponse {
160
+
161
+ inProgressJobs?: JobExecutionSummary[];
162
+
163
+ queuedJobs?: JobExecutionSummary[];
164
+ }
165
+ export declare namespace GetPendingJobExecutionsResponse {
166
+
167
+ const filterSensitiveLog: (obj: GetPendingJobExecutionsResponse) => any;
168
+ }
169
+
170
+ export interface InvalidStateTransitionException extends __SmithyException, $MetadataBearer {
171
+ name: "InvalidStateTransitionException";
172
+ $fault: "client";
173
+ message?: string;
174
+ }
175
+ export declare namespace InvalidStateTransitionException {
176
+
177
+ const filterSensitiveLog: (obj: InvalidStateTransitionException) => any;
178
+ }
179
+ export interface StartNextPendingJobExecutionRequest {
180
+
181
+ thingName: string | undefined;
182
+
183
+ statusDetails?: {
184
+ [key: string]: string;
185
+ };
186
+
187
+ stepTimeoutInMinutes?: number;
188
+ }
189
+ export declare namespace StartNextPendingJobExecutionRequest {
190
+
191
+ const filterSensitiveLog: (obj: StartNextPendingJobExecutionRequest) => any;
192
+ }
193
+ export interface StartNextPendingJobExecutionResponse {
194
+
195
+ execution?: JobExecution;
196
+ }
197
+ export declare namespace StartNextPendingJobExecutionResponse {
198
+
199
+ const filterSensitiveLog: (obj: StartNextPendingJobExecutionResponse) => any;
200
+ }
201
+ export interface UpdateJobExecutionRequest {
202
+
203
+ jobId: string | undefined;
204
+
205
+ thingName: string | undefined;
206
+
207
+ status: JobExecutionStatus | string | undefined;
208
+
209
+ statusDetails?: {
210
+ [key: string]: string;
211
+ };
212
+
213
+ stepTimeoutInMinutes?: number;
214
+
215
+ expectedVersion?: number;
216
+
217
+ includeJobExecutionState?: boolean;
218
+
219
+ includeJobDocument?: boolean;
220
+
221
+ executionNumber?: number;
222
+ }
223
+ export declare namespace UpdateJobExecutionRequest {
224
+
225
+ const filterSensitiveLog: (obj: UpdateJobExecutionRequest) => any;
226
+ }
227
+
228
+ export interface JobExecutionState {
229
+
230
+ status?: JobExecutionStatus | string;
231
+
232
+ statusDetails?: {
233
+ [key: string]: string;
234
+ };
235
+
236
+ versionNumber?: number;
237
+ }
238
+ export declare namespace JobExecutionState {
239
+
240
+ const filterSensitiveLog: (obj: JobExecutionState) => any;
241
+ }
242
+ export interface UpdateJobExecutionResponse {
243
+
244
+ executionState?: JobExecutionState;
245
+
246
+ jobDocument?: string;
247
+ }
248
+ export declare namespace UpdateJobExecutionResponse {
249
+
250
+ const filterSensitiveLog: (obj: UpdateJobExecutionResponse) => any;
251
+ }
@@ -1,9 +1,9 @@
1
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
+ import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
1
3
  import { DescribeJobExecutionCommandInput, DescribeJobExecutionCommandOutput } from "../commands/DescribeJobExecutionCommand";
2
4
  import { GetPendingJobExecutionsCommandInput, GetPendingJobExecutionsCommandOutput } from "../commands/GetPendingJobExecutionsCommand";
3
5
  import { StartNextPendingJobExecutionCommandInput, StartNextPendingJobExecutionCommandOutput } from "../commands/StartNextPendingJobExecutionCommand";
4
6
  import { UpdateJobExecutionCommandInput, UpdateJobExecutionCommandOutput } from "../commands/UpdateJobExecutionCommand";
5
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
6
- import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
7
7
  export declare const serializeAws_restJson1DescribeJobExecutionCommand: (input: DescribeJobExecutionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
8
8
  export declare const serializeAws_restJson1GetPendingJobExecutionsCommand: (input: GetPendingJobExecutionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
9
9
  export declare const serializeAws_restJson1StartNextPendingJobExecutionCommand: (input: StartNextPendingJobExecutionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -1,8 +1,6 @@
1
1
  import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { IoTJobsDataPlaneClientConfig } from "./IoTJobsDataPlaneClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: IoTJobsDataPlaneClientConfig) => {
7
5
  runtime: string;
8
6
  base64Decoder: import("@aws-sdk/types").Decoder;
@@ -1,14 +1,12 @@
1
1
  import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
2
2
  import { IoTJobsDataPlaneClientConfig } from "./IoTJobsDataPlaneClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: IoTJobsDataPlaneClientConfig) => {
7
5
  runtime: string;
8
6
  base64Decoder: import("@aws-sdk/types").Decoder;
9
7
  base64Encoder: import("@aws-sdk/types").Encoder;
10
8
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist/types/defaultStsRoleAssumers").DefaultCredentialProvider;
9
+ credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
10
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
11
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
12
  region: string | import("@aws-sdk/types").Provider<string>;
@@ -32,8 +30,6 @@ export declare const getRuntimeConfig: (config: IoTJobsDataPlaneClientConfig) =>
32
30
  signingEscapePath?: boolean | undefined;
33
31
  systemClockOffset?: number | undefined;
34
32
  signingRegion?: string | undefined;
35
- signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined; /**
36
- * @internal
37
- */
33
+ signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
38
34
  customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
39
35
  };
@@ -1,7 +1,5 @@
1
1
  import { IoTJobsDataPlaneClientConfig } from "./IoTJobsDataPlaneClient";
2
- /**
3
- * @internal
4
- */
2
+
5
3
  export declare const getRuntimeConfig: (config: IoTJobsDataPlaneClientConfig) => {
6
4
  runtime: string;
7
5
  sha256: import("@aws-sdk/types").HashConstructor;
@@ -1,8 +1,6 @@
1
1
  import { Logger as __Logger } from "@aws-sdk/types";
2
2
  import { IoTJobsDataPlaneClientConfig } from "./IoTJobsDataPlaneClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: IoTJobsDataPlaneClientConfig) => {
7
5
  apiVersion: string;
8
6
  disableHostPrefix: boolean;
package/package.json CHANGED
@@ -1,64 +1,58 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iot-jobs-data-plane",
3
3
  "description": "AWS SDK for JavaScript Iot Jobs Data Plane Client for Node.js, Browser and React Native",
4
- "version": "3.33.0",
4
+ "version": "3.36.1",
5
5
  "scripts": {
6
- "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
7
- "build-documentation": "yarn remove-documentation && typedoc ./",
8
- "remove-definitions": "rimraf ./types",
9
- "remove-dist": "rimraf ./dist",
10
- "remove-documentation": "rimraf ./docs",
11
- "test": "exit 0",
6
+ "build": "yarn build:cjs && yarn build:es && yarn build:types",
12
7
  "build:cjs": "tsc -p tsconfig.json",
8
+ "build:docs": "yarn clean:docs && typedoc ./",
13
9
  "build:es": "tsc -p tsconfig.es.json",
14
- "build": "yarn build:cjs && yarn build:es",
15
- "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
16
- },
17
- "main": "./dist/cjs/index.js",
18
- "types": "./dist/types/index.d.ts",
19
- "module": "./dist/es/index.js",
20
- "browser": {
21
- "./runtimeConfig": "./runtimeConfig.browser"
22
- },
23
- "react-native": {
24
- "./runtimeConfig": "./runtimeConfig.native"
10
+ "build:types": "tsc -p tsconfig.types.json",
11
+ "clean": "yarn clean:dist && yarn clean:docs",
12
+ "clean:dist": "rimraf ./dist",
13
+ "clean:docs": "rimraf ./docs",
14
+ "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
15
+ "test": "exit 0"
25
16
  },
17
+ "main": "./dist-cjs/index.js",
18
+ "types": "./dist-types/index.d.ts",
19
+ "module": "./dist-es/index.js",
26
20
  "sideEffects": false,
27
21
  "dependencies": {
28
22
  "@aws-crypto/sha256-browser": "^1.0.0",
29
23
  "@aws-crypto/sha256-js": "^1.0.0",
30
- "@aws-sdk/client-sts": "3.33.0",
31
- "@aws-sdk/config-resolver": "3.33.0",
32
- "@aws-sdk/credential-provider-node": "3.33.0",
33
- "@aws-sdk/fetch-http-handler": "3.32.0",
34
- "@aws-sdk/hash-node": "3.32.0",
35
- "@aws-sdk/invalid-dependency": "3.32.0",
36
- "@aws-sdk/middleware-content-length": "3.32.0",
37
- "@aws-sdk/middleware-host-header": "3.32.0",
38
- "@aws-sdk/middleware-logger": "3.32.0",
39
- "@aws-sdk/middleware-retry": "3.32.0",
40
- "@aws-sdk/middleware-serde": "3.32.0",
41
- "@aws-sdk/middleware-signing": "3.33.0",
42
- "@aws-sdk/middleware-stack": "3.32.0",
43
- "@aws-sdk/middleware-user-agent": "3.32.0",
44
- "@aws-sdk/node-config-provider": "3.32.0",
45
- "@aws-sdk/node-http-handler": "3.32.0",
46
- "@aws-sdk/protocol-http": "3.32.0",
47
- "@aws-sdk/smithy-client": "3.32.0",
48
- "@aws-sdk/types": "3.32.0",
49
- "@aws-sdk/url-parser": "3.32.0",
50
- "@aws-sdk/util-base64-browser": "3.32.0",
51
- "@aws-sdk/util-base64-node": "3.32.0",
52
- "@aws-sdk/util-body-length-browser": "3.32.0",
53
- "@aws-sdk/util-body-length-node": "3.32.0",
54
- "@aws-sdk/util-user-agent-browser": "3.32.0",
55
- "@aws-sdk/util-user-agent-node": "3.33.0",
56
- "@aws-sdk/util-utf8-browser": "3.32.0",
57
- "@aws-sdk/util-utf8-node": "3.32.0",
24
+ "@aws-sdk/client-sts": "3.36.1",
25
+ "@aws-sdk/config-resolver": "3.36.0",
26
+ "@aws-sdk/credential-provider-node": "3.36.1",
27
+ "@aws-sdk/fetch-http-handler": "3.36.0",
28
+ "@aws-sdk/hash-node": "3.36.0",
29
+ "@aws-sdk/invalid-dependency": "3.36.0",
30
+ "@aws-sdk/middleware-content-length": "3.36.0",
31
+ "@aws-sdk/middleware-host-header": "3.36.0",
32
+ "@aws-sdk/middleware-logger": "3.36.0",
33
+ "@aws-sdk/middleware-retry": "3.36.0",
34
+ "@aws-sdk/middleware-serde": "3.36.0",
35
+ "@aws-sdk/middleware-signing": "3.36.0",
36
+ "@aws-sdk/middleware-stack": "3.36.0",
37
+ "@aws-sdk/middleware-user-agent": "3.36.0",
38
+ "@aws-sdk/node-config-provider": "3.36.0",
39
+ "@aws-sdk/node-http-handler": "3.36.0",
40
+ "@aws-sdk/protocol-http": "3.36.0",
41
+ "@aws-sdk/smithy-client": "3.36.0",
42
+ "@aws-sdk/types": "3.36.0",
43
+ "@aws-sdk/url-parser": "3.36.0",
44
+ "@aws-sdk/util-base64-browser": "3.36.0",
45
+ "@aws-sdk/util-base64-node": "3.36.0",
46
+ "@aws-sdk/util-body-length-browser": "3.36.0",
47
+ "@aws-sdk/util-body-length-node": "3.36.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.36.0",
49
+ "@aws-sdk/util-user-agent-node": "3.36.0",
50
+ "@aws-sdk/util-utf8-browser": "3.36.0",
51
+ "@aws-sdk/util-utf8-node": "3.36.0",
58
52
  "tslib": "^2.3.0"
59
53
  },
60
54
  "devDependencies": {
61
- "@aws-sdk/client-documentation-generator": "3.32.0",
55
+ "@aws-sdk/client-documentation-generator": "3.36.0",
62
56
  "@types/node": "^12.7.5",
63
57
  "downlevel-dts": "0.7.0",
64
58
  "jest": "^26.1.0",
@@ -72,16 +66,25 @@
72
66
  },
73
67
  "typesVersions": {
74
68
  "<4.0": {
75
- "dist/types/*": [
76
- "dist/types/ts3.4/*"
69
+ "dist-types/*": [
70
+ "dist-types/ts3.4/*"
77
71
  ]
78
72
  }
79
73
  },
74
+ "files": [
75
+ "dist-*"
76
+ ],
80
77
  "author": {
81
78
  "name": "AWS SDK for JavaScript Team",
82
79
  "url": "https://aws.amazon.com/javascript/"
83
80
  },
84
81
  "license": "Apache-2.0",
82
+ "browser": {
83
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
84
+ },
85
+ "react-native": {
86
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
87
+ },
85
88
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-iot-jobs-data-plane",
86
89
  "repository": {
87
90
  "type": "git",
@@ -1,165 +0,0 @@
1
- import { IoTJobsDataPlaneClient } from "./IoTJobsDataPlaneClient";
2
- import {
3
- DescribeJobExecutionCommand,
4
- DescribeJobExecutionCommandInput,
5
- DescribeJobExecutionCommandOutput,
6
- } from "./commands/DescribeJobExecutionCommand";
7
- import {
8
- GetPendingJobExecutionsCommand,
9
- GetPendingJobExecutionsCommandInput,
10
- GetPendingJobExecutionsCommandOutput,
11
- } from "./commands/GetPendingJobExecutionsCommand";
12
- import {
13
- StartNextPendingJobExecutionCommand,
14
- StartNextPendingJobExecutionCommandInput,
15
- StartNextPendingJobExecutionCommandOutput,
16
- } from "./commands/StartNextPendingJobExecutionCommand";
17
- import {
18
- UpdateJobExecutionCommand,
19
- UpdateJobExecutionCommandInput,
20
- UpdateJobExecutionCommandOutput,
21
- } from "./commands/UpdateJobExecutionCommand";
22
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
23
-
24
- /**
25
- * <p>AWS IoT Jobs is a service that allows you to define a set of jobs — remote operations that are sent to
26
- * and executed on one or more devices connected to AWS IoT. For example, you can define a job that instructs a
27
- * set of devices to download and install application or firmware updates, reboot, rotate certificates, or perform
28
- * remote troubleshooting operations.</p>
29
- * <p> To create a job, you make a job document which is a description of the remote operations to be
30
- * performed, and you specify a list of targets that should perform the operations. The targets can be individual
31
- * things, thing groups or both.</p>
32
- * <p> AWS IoT Jobs sends a message to inform the targets that a job is available. The target starts the
33
- * execution of the job by downloading the job document, performing the operations it specifies, and reporting its
34
- * progress to AWS IoT. The Jobs service provides commands to track the progress of a job on a specific target and
35
- * for all the targets of the job</p>
36
- */
37
- export class IoTJobsDataPlane extends IoTJobsDataPlaneClient {
38
- /**
39
- * <p>Gets details of a job execution.</p>
40
- */
41
- public describeJobExecution(
42
- args: DescribeJobExecutionCommandInput,
43
- options?: __HttpHandlerOptions
44
- ): Promise<DescribeJobExecutionCommandOutput>;
45
- public describeJobExecution(
46
- args: DescribeJobExecutionCommandInput,
47
- cb: (err: any, data?: DescribeJobExecutionCommandOutput) => void
48
- ): void;
49
- public describeJobExecution(
50
- args: DescribeJobExecutionCommandInput,
51
- options: __HttpHandlerOptions,
52
- cb: (err: any, data?: DescribeJobExecutionCommandOutput) => void
53
- ): void;
54
- public describeJobExecution(
55
- args: DescribeJobExecutionCommandInput,
56
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeJobExecutionCommandOutput) => void),
57
- cb?: (err: any, data?: DescribeJobExecutionCommandOutput) => void
58
- ): Promise<DescribeJobExecutionCommandOutput> | void {
59
- const command = new DescribeJobExecutionCommand(args);
60
- if (typeof optionsOrCb === "function") {
61
- this.send(command, optionsOrCb);
62
- } else if (typeof cb === "function") {
63
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
64
- this.send(command, optionsOrCb || {}, cb);
65
- } else {
66
- return this.send(command, optionsOrCb);
67
- }
68
- }
69
-
70
- /**
71
- * <p>Gets the list of all jobs for a thing that are not in a terminal status.</p>
72
- */
73
- public getPendingJobExecutions(
74
- args: GetPendingJobExecutionsCommandInput,
75
- options?: __HttpHandlerOptions
76
- ): Promise<GetPendingJobExecutionsCommandOutput>;
77
- public getPendingJobExecutions(
78
- args: GetPendingJobExecutionsCommandInput,
79
- cb: (err: any, data?: GetPendingJobExecutionsCommandOutput) => void
80
- ): void;
81
- public getPendingJobExecutions(
82
- args: GetPendingJobExecutionsCommandInput,
83
- options: __HttpHandlerOptions,
84
- cb: (err: any, data?: GetPendingJobExecutionsCommandOutput) => void
85
- ): void;
86
- public getPendingJobExecutions(
87
- args: GetPendingJobExecutionsCommandInput,
88
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetPendingJobExecutionsCommandOutput) => void),
89
- cb?: (err: any, data?: GetPendingJobExecutionsCommandOutput) => void
90
- ): Promise<GetPendingJobExecutionsCommandOutput> | void {
91
- const command = new GetPendingJobExecutionsCommand(args);
92
- if (typeof optionsOrCb === "function") {
93
- this.send(command, optionsOrCb);
94
- } else if (typeof cb === "function") {
95
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
96
- this.send(command, optionsOrCb || {}, cb);
97
- } else {
98
- return this.send(command, optionsOrCb);
99
- }
100
- }
101
-
102
- /**
103
- * <p>Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing.</p>
104
- */
105
- public startNextPendingJobExecution(
106
- args: StartNextPendingJobExecutionCommandInput,
107
- options?: __HttpHandlerOptions
108
- ): Promise<StartNextPendingJobExecutionCommandOutput>;
109
- public startNextPendingJobExecution(
110
- args: StartNextPendingJobExecutionCommandInput,
111
- cb: (err: any, data?: StartNextPendingJobExecutionCommandOutput) => void
112
- ): void;
113
- public startNextPendingJobExecution(
114
- args: StartNextPendingJobExecutionCommandInput,
115
- options: __HttpHandlerOptions,
116
- cb: (err: any, data?: StartNextPendingJobExecutionCommandOutput) => void
117
- ): void;
118
- public startNextPendingJobExecution(
119
- args: StartNextPendingJobExecutionCommandInput,
120
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartNextPendingJobExecutionCommandOutput) => void),
121
- cb?: (err: any, data?: StartNextPendingJobExecutionCommandOutput) => void
122
- ): Promise<StartNextPendingJobExecutionCommandOutput> | void {
123
- const command = new StartNextPendingJobExecutionCommand(args);
124
- if (typeof optionsOrCb === "function") {
125
- this.send(command, optionsOrCb);
126
- } else if (typeof cb === "function") {
127
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
128
- this.send(command, optionsOrCb || {}, cb);
129
- } else {
130
- return this.send(command, optionsOrCb);
131
- }
132
- }
133
-
134
- /**
135
- * <p>Updates the status of a job execution.</p>
136
- */
137
- public updateJobExecution(
138
- args: UpdateJobExecutionCommandInput,
139
- options?: __HttpHandlerOptions
140
- ): Promise<UpdateJobExecutionCommandOutput>;
141
- public updateJobExecution(
142
- args: UpdateJobExecutionCommandInput,
143
- cb: (err: any, data?: UpdateJobExecutionCommandOutput) => void
144
- ): void;
145
- public updateJobExecution(
146
- args: UpdateJobExecutionCommandInput,
147
- options: __HttpHandlerOptions,
148
- cb: (err: any, data?: UpdateJobExecutionCommandOutput) => void
149
- ): void;
150
- public updateJobExecution(
151
- args: UpdateJobExecutionCommandInput,
152
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateJobExecutionCommandOutput) => void),
153
- cb?: (err: any, data?: UpdateJobExecutionCommandOutput) => void
154
- ): Promise<UpdateJobExecutionCommandOutput> | void {
155
- const command = new UpdateJobExecutionCommand(args);
156
- if (typeof optionsOrCb === "function") {
157
- this.send(command, optionsOrCb);
158
- } else if (typeof cb === "function") {
159
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
160
- this.send(command, optionsOrCb || {}, cb);
161
- } else {
162
- return this.send(command, optionsOrCb);
163
- }
164
- }
165
- }