@aws-sdk/client-medical-imaging 3.476.0 → 3.477.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/dist-cjs/protocols/Aws_restJson1.js +136 -258
- package/dist-es/protocols/Aws_restJson1.js +138 -260
- package/package.json +5 -4
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_UpdateImageSetMetadataCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartDICOMImportJobCommand = exports.de_SearchImageSetsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListImageSetVersionsCommand = exports.de_ListDICOMImportJobsCommand = exports.de_ListDatastoresCommand = exports.de_GetImageSetMetadataCommand = exports.de_GetImageSetCommand = exports.de_GetImageFrameCommand = exports.de_GetDICOMImportJobCommand = exports.de_GetDatastoreCommand = exports.de_DeleteImageSetCommand = exports.de_DeleteDatastoreCommand = exports.de_CreateDatastoreCommand = exports.de_CopyImageSetCommand = exports.se_UpdateImageSetMetadataCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartDICOMImportJobCommand = exports.se_SearchImageSetsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListImageSetVersionsCommand = exports.se_ListDICOMImportJobsCommand = exports.se_ListDatastoresCommand = exports.se_GetImageSetMetadataCommand = exports.se_GetImageSetCommand = exports.se_GetImageFrameCommand = exports.se_GetDICOMImportJobCommand = exports.se_GetDatastoreCommand = exports.se_DeleteImageSetCommand = exports.se_DeleteDatastoreCommand = exports.se_CreateDatastoreCommand = exports.se_CopyImageSetCommand = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
7
|
const uuid_1 = require("uuid");
|
|
7
8
|
const MedicalImagingServiceException_1 = require("../models/MedicalImagingServiceException");
|
|
8
9
|
const models_0_1 = require("../models/models_0");
|
|
9
10
|
const se_CopyImageSetCommand = async (input, context) => {
|
|
10
|
-
const
|
|
11
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
12
|
const headers = {
|
|
12
13
|
"content-type": "application/json",
|
|
13
14
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sourceImageSetId", () => input.sourceImageSetId, "{sourceImageSetId}", false);
|
|
15
|
+
b.bp("/datastore/{datastoreId}/imageSet/{sourceImageSetId}/copyImageSet");
|
|
16
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
17
|
+
b.p("sourceImageSetId", () => input.sourceImageSetId, "{sourceImageSetId}", false);
|
|
18
18
|
let body;
|
|
19
19
|
if (input.copyImageSetInformation !== undefined) {
|
|
20
20
|
body = (0, smithy_client_1._json)(input.copyImageSetInformation);
|
|
@@ -30,23 +30,17 @@ const se_CopyImageSetCommand = async (input, context) => {
|
|
|
30
30
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
port,
|
|
37
|
-
method: "POST",
|
|
38
|
-
headers,
|
|
39
|
-
path: resolvedPath,
|
|
40
|
-
body,
|
|
41
|
-
});
|
|
33
|
+
b.hn(resolvedHostname);
|
|
34
|
+
b.m("POST").h(headers).b(body);
|
|
35
|
+
return b.build();
|
|
42
36
|
};
|
|
43
37
|
exports.se_CopyImageSetCommand = se_CopyImageSetCommand;
|
|
44
38
|
const se_CreateDatastoreCommand = async (input, context) => {
|
|
45
|
-
const
|
|
39
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
46
40
|
const headers = {
|
|
47
41
|
"content-type": "application/json",
|
|
48
42
|
};
|
|
49
|
-
|
|
43
|
+
b.bp("/datastore");
|
|
50
44
|
let body;
|
|
51
45
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
52
46
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -54,41 +48,26 @@ const se_CreateDatastoreCommand = async (input, context) => {
|
|
|
54
48
|
kmsKeyArn: [],
|
|
55
49
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
56
50
|
}));
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
hostname,
|
|
60
|
-
port,
|
|
61
|
-
method: "POST",
|
|
62
|
-
headers,
|
|
63
|
-
path: resolvedPath,
|
|
64
|
-
body,
|
|
65
|
-
});
|
|
51
|
+
b.m("POST").h(headers).b(body);
|
|
52
|
+
return b.build();
|
|
66
53
|
};
|
|
67
54
|
exports.se_CreateDatastoreCommand = se_CreateDatastoreCommand;
|
|
68
55
|
const se_DeleteDatastoreCommand = async (input, context) => {
|
|
69
|
-
const
|
|
56
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
70
57
|
const headers = {};
|
|
71
|
-
|
|
72
|
-
|
|
58
|
+
b.bp("/datastore/{datastoreId}");
|
|
59
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
73
60
|
let body;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
hostname,
|
|
77
|
-
port,
|
|
78
|
-
method: "DELETE",
|
|
79
|
-
headers,
|
|
80
|
-
path: resolvedPath,
|
|
81
|
-
body,
|
|
82
|
-
});
|
|
61
|
+
b.m("DELETE").h(headers).b(body);
|
|
62
|
+
return b.build();
|
|
83
63
|
};
|
|
84
64
|
exports.se_DeleteDatastoreCommand = se_DeleteDatastoreCommand;
|
|
85
65
|
const se_DeleteImageSetCommand = async (input, context) => {
|
|
86
|
-
const
|
|
66
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
87
67
|
const headers = {};
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
68
|
+
b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/deleteImageSet");
|
|
69
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
70
|
+
b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
92
71
|
let body;
|
|
93
72
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
94
73
|
if (context.disableHostPrefix !== true) {
|
|
@@ -97,62 +76,40 @@ const se_DeleteImageSetCommand = async (input, context) => {
|
|
|
97
76
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
98
77
|
}
|
|
99
78
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
port,
|
|
104
|
-
method: "POST",
|
|
105
|
-
headers,
|
|
106
|
-
path: resolvedPath,
|
|
107
|
-
body,
|
|
108
|
-
});
|
|
79
|
+
b.hn(resolvedHostname);
|
|
80
|
+
b.m("POST").h(headers).b(body);
|
|
81
|
+
return b.build();
|
|
109
82
|
};
|
|
110
83
|
exports.se_DeleteImageSetCommand = se_DeleteImageSetCommand;
|
|
111
84
|
const se_GetDatastoreCommand = async (input, context) => {
|
|
112
|
-
const
|
|
85
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
113
86
|
const headers = {};
|
|
114
|
-
|
|
115
|
-
|
|
87
|
+
b.bp("/datastore/{datastoreId}");
|
|
88
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
116
89
|
let body;
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
hostname,
|
|
120
|
-
port,
|
|
121
|
-
method: "GET",
|
|
122
|
-
headers,
|
|
123
|
-
path: resolvedPath,
|
|
124
|
-
body,
|
|
125
|
-
});
|
|
90
|
+
b.m("GET").h(headers).b(body);
|
|
91
|
+
return b.build();
|
|
126
92
|
};
|
|
127
93
|
exports.se_GetDatastoreCommand = se_GetDatastoreCommand;
|
|
128
94
|
const se_GetDICOMImportJobCommand = async (input, context) => {
|
|
129
|
-
const
|
|
95
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
130
96
|
const headers = {};
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
|
|
97
|
+
b.bp("/getDICOMImportJob/datastore/{datastoreId}/job/{jobId}");
|
|
98
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
99
|
+
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
135
100
|
let body;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
hostname,
|
|
139
|
-
port,
|
|
140
|
-
method: "GET",
|
|
141
|
-
headers,
|
|
142
|
-
path: resolvedPath,
|
|
143
|
-
body,
|
|
144
|
-
});
|
|
101
|
+
b.m("GET").h(headers).b(body);
|
|
102
|
+
return b.build();
|
|
145
103
|
};
|
|
146
104
|
exports.se_GetDICOMImportJobCommand = se_GetDICOMImportJobCommand;
|
|
147
105
|
const se_GetImageFrameCommand = async (input, context) => {
|
|
148
|
-
const
|
|
106
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
149
107
|
const headers = {
|
|
150
108
|
"content-type": "application/json",
|
|
151
109
|
};
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
110
|
+
b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/getImageFrame");
|
|
111
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
112
|
+
b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
156
113
|
let body;
|
|
157
114
|
if (input.imageFrameInformation !== undefined) {
|
|
158
115
|
body = (0, smithy_client_1._json)(input.imageFrameInformation);
|
|
@@ -168,26 +125,19 @@ const se_GetImageFrameCommand = async (input, context) => {
|
|
|
168
125
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
169
126
|
}
|
|
170
127
|
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
port,
|
|
175
|
-
method: "POST",
|
|
176
|
-
headers,
|
|
177
|
-
path: resolvedPath,
|
|
178
|
-
body,
|
|
179
|
-
});
|
|
128
|
+
b.hn(resolvedHostname);
|
|
129
|
+
b.m("POST").h(headers).b(body);
|
|
130
|
+
return b.build();
|
|
180
131
|
};
|
|
181
132
|
exports.se_GetImageFrameCommand = se_GetImageFrameCommand;
|
|
182
133
|
const se_GetImageSetCommand = async (input, context) => {
|
|
183
|
-
const
|
|
134
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
184
135
|
const headers = {};
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
136
|
+
b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/getImageSet");
|
|
137
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
138
|
+
b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
189
139
|
const query = (0, smithy_client_1.map)({
|
|
190
|
-
|
|
140
|
+
[_v]: [, input[_vI]],
|
|
191
141
|
});
|
|
192
142
|
let body;
|
|
193
143
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -197,27 +147,19 @@ const se_GetImageSetCommand = async (input, context) => {
|
|
|
197
147
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
198
148
|
}
|
|
199
149
|
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
port,
|
|
204
|
-
method: "POST",
|
|
205
|
-
headers,
|
|
206
|
-
path: resolvedPath,
|
|
207
|
-
query,
|
|
208
|
-
body,
|
|
209
|
-
});
|
|
150
|
+
b.hn(resolvedHostname);
|
|
151
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
152
|
+
return b.build();
|
|
210
153
|
};
|
|
211
154
|
exports.se_GetImageSetCommand = se_GetImageSetCommand;
|
|
212
155
|
const se_GetImageSetMetadataCommand = async (input, context) => {
|
|
213
|
-
const
|
|
156
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
214
157
|
const headers = {};
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
158
|
+
b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/getImageSetMetadata");
|
|
159
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
160
|
+
b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
219
161
|
const query = (0, smithy_client_1.map)({
|
|
220
|
-
|
|
162
|
+
[_v]: [, input[_vI]],
|
|
221
163
|
});
|
|
222
164
|
let body;
|
|
223
165
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -227,74 +169,49 @@ const se_GetImageSetMetadataCommand = async (input, context) => {
|
|
|
227
169
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
228
170
|
}
|
|
229
171
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
port,
|
|
234
|
-
method: "POST",
|
|
235
|
-
headers,
|
|
236
|
-
path: resolvedPath,
|
|
237
|
-
query,
|
|
238
|
-
body,
|
|
239
|
-
});
|
|
172
|
+
b.hn(resolvedHostname);
|
|
173
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
174
|
+
return b.build();
|
|
240
175
|
};
|
|
241
176
|
exports.se_GetImageSetMetadataCommand = se_GetImageSetMetadataCommand;
|
|
242
177
|
const se_ListDatastoresCommand = async (input, context) => {
|
|
243
|
-
const
|
|
178
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
244
179
|
const headers = {};
|
|
245
|
-
|
|
180
|
+
b.bp("/datastore");
|
|
246
181
|
const query = (0, smithy_client_1.map)({
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
182
|
+
[_dS]: [, input[_dS]],
|
|
183
|
+
[_nT]: [, input[_nT]],
|
|
184
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
250
185
|
});
|
|
251
186
|
let body;
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
hostname,
|
|
255
|
-
port,
|
|
256
|
-
method: "GET",
|
|
257
|
-
headers,
|
|
258
|
-
path: resolvedPath,
|
|
259
|
-
query,
|
|
260
|
-
body,
|
|
261
|
-
});
|
|
187
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
188
|
+
return b.build();
|
|
262
189
|
};
|
|
263
190
|
exports.se_ListDatastoresCommand = se_ListDatastoresCommand;
|
|
264
191
|
const se_ListDICOMImportJobsCommand = async (input, context) => {
|
|
265
|
-
const
|
|
192
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
266
193
|
const headers = {};
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
194
|
+
b.bp("/listDICOMImportJobs/datastore/{datastoreId}");
|
|
195
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
270
196
|
const query = (0, smithy_client_1.map)({
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
197
|
+
[_jS]: [, input[_jS]],
|
|
198
|
+
[_nT]: [, input[_nT]],
|
|
199
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
274
200
|
});
|
|
275
201
|
let body;
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
hostname,
|
|
279
|
-
port,
|
|
280
|
-
method: "GET",
|
|
281
|
-
headers,
|
|
282
|
-
path: resolvedPath,
|
|
283
|
-
query,
|
|
284
|
-
body,
|
|
285
|
-
});
|
|
202
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
203
|
+
return b.build();
|
|
286
204
|
};
|
|
287
205
|
exports.se_ListDICOMImportJobsCommand = se_ListDICOMImportJobsCommand;
|
|
288
206
|
const se_ListImageSetVersionsCommand = async (input, context) => {
|
|
289
|
-
const
|
|
207
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
290
208
|
const headers = {};
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
209
|
+
b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/listImageSetVersions");
|
|
210
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
211
|
+
b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
295
212
|
const query = (0, smithy_client_1.map)({
|
|
296
|
-
|
|
297
|
-
|
|
213
|
+
[_nT]: [, input[_nT]],
|
|
214
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
298
215
|
});
|
|
299
216
|
let body;
|
|
300
217
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -304,45 +221,31 @@ const se_ListImageSetVersionsCommand = async (input, context) => {
|
|
|
304
221
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
305
222
|
}
|
|
306
223
|
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
port,
|
|
311
|
-
method: "POST",
|
|
312
|
-
headers,
|
|
313
|
-
path: resolvedPath,
|
|
314
|
-
query,
|
|
315
|
-
body,
|
|
316
|
-
});
|
|
224
|
+
b.hn(resolvedHostname);
|
|
225
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
226
|
+
return b.build();
|
|
317
227
|
};
|
|
318
228
|
exports.se_ListImageSetVersionsCommand = se_ListImageSetVersionsCommand;
|
|
319
229
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
320
|
-
const
|
|
230
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
321
231
|
const headers = {};
|
|
322
|
-
|
|
323
|
-
|
|
232
|
+
b.bp("/tags/{resourceArn}");
|
|
233
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
324
234
|
let body;
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
hostname,
|
|
328
|
-
port,
|
|
329
|
-
method: "GET",
|
|
330
|
-
headers,
|
|
331
|
-
path: resolvedPath,
|
|
332
|
-
body,
|
|
333
|
-
});
|
|
235
|
+
b.m("GET").h(headers).b(body);
|
|
236
|
+
return b.build();
|
|
334
237
|
};
|
|
335
238
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
336
239
|
const se_SearchImageSetsCommand = async (input, context) => {
|
|
337
|
-
const
|
|
240
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
338
241
|
const headers = {
|
|
339
242
|
"content-type": "application/json",
|
|
340
243
|
};
|
|
341
|
-
|
|
342
|
-
|
|
244
|
+
b.bp("/datastore/{datastoreId}/searchImageSets");
|
|
245
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
343
246
|
const query = (0, smithy_client_1.map)({
|
|
344
|
-
|
|
345
|
-
|
|
247
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
248
|
+
[_nT]: [, input[_nT]],
|
|
346
249
|
});
|
|
347
250
|
let body;
|
|
348
251
|
if (input.searchCriteria !== undefined) {
|
|
@@ -359,26 +262,18 @@ const se_SearchImageSetsCommand = async (input, context) => {
|
|
|
359
262
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
360
263
|
}
|
|
361
264
|
}
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
port,
|
|
366
|
-
method: "POST",
|
|
367
|
-
headers,
|
|
368
|
-
path: resolvedPath,
|
|
369
|
-
query,
|
|
370
|
-
body,
|
|
371
|
-
});
|
|
265
|
+
b.hn(resolvedHostname);
|
|
266
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
267
|
+
return b.build();
|
|
372
268
|
};
|
|
373
269
|
exports.se_SearchImageSetsCommand = se_SearchImageSetsCommand;
|
|
374
270
|
const se_StartDICOMImportJobCommand = async (input, context) => {
|
|
375
|
-
const
|
|
271
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
376
272
|
const headers = {
|
|
377
273
|
"content-type": "application/json",
|
|
378
274
|
};
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
275
|
+
b.bp("/startDICOMImportJob/datastore/{datastoreId}");
|
|
276
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
382
277
|
let body;
|
|
383
278
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
384
279
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -387,74 +282,51 @@ const se_StartDICOMImportJobCommand = async (input, context) => {
|
|
|
387
282
|
jobName: [],
|
|
388
283
|
outputS3Uri: [],
|
|
389
284
|
}));
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
hostname,
|
|
393
|
-
port,
|
|
394
|
-
method: "POST",
|
|
395
|
-
headers,
|
|
396
|
-
path: resolvedPath,
|
|
397
|
-
body,
|
|
398
|
-
});
|
|
285
|
+
b.m("POST").h(headers).b(body);
|
|
286
|
+
return b.build();
|
|
399
287
|
};
|
|
400
288
|
exports.se_StartDICOMImportJobCommand = se_StartDICOMImportJobCommand;
|
|
401
289
|
const se_TagResourceCommand = async (input, context) => {
|
|
402
|
-
const
|
|
290
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
403
291
|
const headers = {
|
|
404
292
|
"content-type": "application/json",
|
|
405
293
|
};
|
|
406
|
-
|
|
407
|
-
|
|
294
|
+
b.bp("/tags/{resourceArn}");
|
|
295
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
408
296
|
let body;
|
|
409
297
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
410
298
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
411
299
|
}));
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
hostname,
|
|
415
|
-
port,
|
|
416
|
-
method: "POST",
|
|
417
|
-
headers,
|
|
418
|
-
path: resolvedPath,
|
|
419
|
-
body,
|
|
420
|
-
});
|
|
300
|
+
b.m("POST").h(headers).b(body);
|
|
301
|
+
return b.build();
|
|
421
302
|
};
|
|
422
303
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
423
304
|
const se_UntagResourceCommand = async (input, context) => {
|
|
424
|
-
const
|
|
305
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
425
306
|
const headers = {};
|
|
426
|
-
|
|
427
|
-
|
|
307
|
+
b.bp("/tags/{resourceArn}");
|
|
308
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
428
309
|
const query = (0, smithy_client_1.map)({
|
|
429
|
-
|
|
310
|
+
[_tK]: [
|
|
430
311
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
431
|
-
() => (input
|
|
312
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
432
313
|
],
|
|
433
314
|
});
|
|
434
315
|
let body;
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
hostname,
|
|
438
|
-
port,
|
|
439
|
-
method: "DELETE",
|
|
440
|
-
headers,
|
|
441
|
-
path: resolvedPath,
|
|
442
|
-
query,
|
|
443
|
-
body,
|
|
444
|
-
});
|
|
316
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
317
|
+
return b.build();
|
|
445
318
|
};
|
|
446
319
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
447
320
|
const se_UpdateImageSetMetadataCommand = async (input, context) => {
|
|
448
|
-
const
|
|
321
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
449
322
|
const headers = {
|
|
450
323
|
"content-type": "application/json",
|
|
451
324
|
};
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
325
|
+
b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/updateImageSetMetadata");
|
|
326
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
327
|
+
b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
456
328
|
const query = (0, smithy_client_1.map)({
|
|
457
|
-
|
|
329
|
+
[_lV]: [, (0, smithy_client_1.expectNonNull)(input[_lVI], `latestVersionId`)],
|
|
458
330
|
});
|
|
459
331
|
let body;
|
|
460
332
|
if (input.updateImageSetMetadataUpdates !== undefined) {
|
|
@@ -471,16 +343,9 @@ const se_UpdateImageSetMetadataCommand = async (input, context) => {
|
|
|
471
343
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
472
344
|
}
|
|
473
345
|
}
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
port,
|
|
478
|
-
method: "POST",
|
|
479
|
-
headers,
|
|
480
|
-
path: resolvedPath,
|
|
481
|
-
query,
|
|
482
|
-
body,
|
|
483
|
-
});
|
|
346
|
+
b.hn(resolvedHostname);
|
|
347
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
348
|
+
return b.build();
|
|
484
349
|
};
|
|
485
350
|
exports.se_UpdateImageSetMetadataCommand = se_UpdateImageSetMetadataCommand;
|
|
486
351
|
const de_CopyImageSetCommand = async (output, context) => {
|
|
@@ -790,7 +655,7 @@ const de_GetImageFrameCommand = async (output, context) => {
|
|
|
790
655
|
}
|
|
791
656
|
const contents = (0, smithy_client_1.map)({
|
|
792
657
|
$metadata: deserializeMetadata(output),
|
|
793
|
-
|
|
658
|
+
[_cT]: [, output.headers[_ct]],
|
|
794
659
|
});
|
|
795
660
|
const data = output.body;
|
|
796
661
|
context.sdkStreamMixin(data);
|
|
@@ -896,8 +761,8 @@ const de_GetImageSetMetadataCommand = async (output, context) => {
|
|
|
896
761
|
}
|
|
897
762
|
const contents = (0, smithy_client_1.map)({
|
|
898
763
|
$metadata: deserializeMetadata(output),
|
|
899
|
-
|
|
900
|
-
|
|
764
|
+
[_cT]: [, output.headers[_ct]],
|
|
765
|
+
[_cE]: [, output.headers[_ce]],
|
|
901
766
|
});
|
|
902
767
|
const data = output.body;
|
|
903
768
|
context.sdkStreamMixin(data);
|
|
@@ -1651,6 +1516,19 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1651
1516
|
value !== "" &&
|
|
1652
1517
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1653
1518
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1519
|
+
const _cE = "contentEncoding";
|
|
1520
|
+
const _cT = "contentType";
|
|
1521
|
+
const _ce = "content-encoding";
|
|
1522
|
+
const _ct = "content-type";
|
|
1523
|
+
const _dS = "datastoreStatus";
|
|
1524
|
+
const _jS = "jobStatus";
|
|
1525
|
+
const _lV = "latestVersion";
|
|
1526
|
+
const _lVI = "latestVersionId";
|
|
1527
|
+
const _mR = "maxResults";
|
|
1528
|
+
const _nT = "nextToken";
|
|
1529
|
+
const _tK = "tagKeys";
|
|
1530
|
+
const _v = "version";
|
|
1531
|
+
const _vI = "versionId";
|
|
1654
1532
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1655
1533
|
if (encoded.length) {
|
|
1656
1534
|
return JSON.parse(encoded);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
import { isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
5
|
import { MedicalImagingServiceException as __BaseException } from "../models/MedicalImagingServiceException";
|
|
5
6
|
import { AccessDeniedException, ConflictException, InternalServerException, MetadataUpdates, ResourceNotFoundException, SearchByAttributeValue, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
7
|
export const se_CopyImageSetCommand = async (input, context) => {
|
|
7
|
-
const
|
|
8
|
+
const b = rb(input, context);
|
|
8
9
|
const headers = {
|
|
9
10
|
"content-type": "application/json",
|
|
10
11
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "sourceImageSetId", () => input.sourceImageSetId, "{sourceImageSetId}", false);
|
|
12
|
+
b.bp("/datastore/{datastoreId}/imageSet/{sourceImageSetId}/copyImageSet");
|
|
13
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
14
|
+
b.p("sourceImageSetId", () => input.sourceImageSetId, "{sourceImageSetId}", false);
|
|
15
15
|
let body;
|
|
16
16
|
if (input.copyImageSetInformation !== undefined) {
|
|
17
17
|
body = _json(input.copyImageSetInformation);
|
|
@@ -27,22 +27,16 @@ export const se_CopyImageSetCommand = async (input, context) => {
|
|
|
27
27
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
port,
|
|
34
|
-
method: "POST",
|
|
35
|
-
headers,
|
|
36
|
-
path: resolvedPath,
|
|
37
|
-
body,
|
|
38
|
-
});
|
|
30
|
+
b.hn(resolvedHostname);
|
|
31
|
+
b.m("POST").h(headers).b(body);
|
|
32
|
+
return b.build();
|
|
39
33
|
};
|
|
40
34
|
export const se_CreateDatastoreCommand = async (input, context) => {
|
|
41
|
-
const
|
|
35
|
+
const b = rb(input, context);
|
|
42
36
|
const headers = {
|
|
43
37
|
"content-type": "application/json",
|
|
44
38
|
};
|
|
45
|
-
|
|
39
|
+
b.bp("/datastore");
|
|
46
40
|
let body;
|
|
47
41
|
body = JSON.stringify(take(input, {
|
|
48
42
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
@@ -50,39 +44,24 @@ export const se_CreateDatastoreCommand = async (input, context) => {
|
|
|
50
44
|
kmsKeyArn: [],
|
|
51
45
|
tags: (_) => _json(_),
|
|
52
46
|
}));
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
hostname,
|
|
56
|
-
port,
|
|
57
|
-
method: "POST",
|
|
58
|
-
headers,
|
|
59
|
-
path: resolvedPath,
|
|
60
|
-
body,
|
|
61
|
-
});
|
|
47
|
+
b.m("POST").h(headers).b(body);
|
|
48
|
+
return b.build();
|
|
62
49
|
};
|
|
63
50
|
export const se_DeleteDatastoreCommand = async (input, context) => {
|
|
64
|
-
const
|
|
51
|
+
const b = rb(input, context);
|
|
65
52
|
const headers = {};
|
|
66
|
-
|
|
67
|
-
|
|
53
|
+
b.bp("/datastore/{datastoreId}");
|
|
54
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
68
55
|
let body;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
hostname,
|
|
72
|
-
port,
|
|
73
|
-
method: "DELETE",
|
|
74
|
-
headers,
|
|
75
|
-
path: resolvedPath,
|
|
76
|
-
body,
|
|
77
|
-
});
|
|
56
|
+
b.m("DELETE").h(headers).b(body);
|
|
57
|
+
return b.build();
|
|
78
58
|
};
|
|
79
59
|
export const se_DeleteImageSetCommand = async (input, context) => {
|
|
80
|
-
const
|
|
60
|
+
const b = rb(input, context);
|
|
81
61
|
const headers = {};
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
62
|
+
b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/deleteImageSet");
|
|
63
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
64
|
+
b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
86
65
|
let body;
|
|
87
66
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
88
67
|
if (context.disableHostPrefix !== true) {
|
|
@@ -91,59 +70,37 @@ export const se_DeleteImageSetCommand = async (input, context) => {
|
|
|
91
70
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
92
71
|
}
|
|
93
72
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
port,
|
|
98
|
-
method: "POST",
|
|
99
|
-
headers,
|
|
100
|
-
path: resolvedPath,
|
|
101
|
-
body,
|
|
102
|
-
});
|
|
73
|
+
b.hn(resolvedHostname);
|
|
74
|
+
b.m("POST").h(headers).b(body);
|
|
75
|
+
return b.build();
|
|
103
76
|
};
|
|
104
77
|
export const se_GetDatastoreCommand = async (input, context) => {
|
|
105
|
-
const
|
|
78
|
+
const b = rb(input, context);
|
|
106
79
|
const headers = {};
|
|
107
|
-
|
|
108
|
-
|
|
80
|
+
b.bp("/datastore/{datastoreId}");
|
|
81
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
109
82
|
let body;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
hostname,
|
|
113
|
-
port,
|
|
114
|
-
method: "GET",
|
|
115
|
-
headers,
|
|
116
|
-
path: resolvedPath,
|
|
117
|
-
body,
|
|
118
|
-
});
|
|
83
|
+
b.m("GET").h(headers).b(body);
|
|
84
|
+
return b.build();
|
|
119
85
|
};
|
|
120
86
|
export const se_GetDICOMImportJobCommand = async (input, context) => {
|
|
121
|
-
const
|
|
87
|
+
const b = rb(input, context);
|
|
122
88
|
const headers = {};
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
|
|
89
|
+
b.bp("/getDICOMImportJob/datastore/{datastoreId}/job/{jobId}");
|
|
90
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
91
|
+
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
127
92
|
let body;
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
hostname,
|
|
131
|
-
port,
|
|
132
|
-
method: "GET",
|
|
133
|
-
headers,
|
|
134
|
-
path: resolvedPath,
|
|
135
|
-
body,
|
|
136
|
-
});
|
|
93
|
+
b.m("GET").h(headers).b(body);
|
|
94
|
+
return b.build();
|
|
137
95
|
};
|
|
138
96
|
export const se_GetImageFrameCommand = async (input, context) => {
|
|
139
|
-
const
|
|
97
|
+
const b = rb(input, context);
|
|
140
98
|
const headers = {
|
|
141
99
|
"content-type": "application/json",
|
|
142
100
|
};
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
101
|
+
b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/getImageFrame");
|
|
102
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
103
|
+
b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
147
104
|
let body;
|
|
148
105
|
if (input.imageFrameInformation !== undefined) {
|
|
149
106
|
body = _json(input.imageFrameInformation);
|
|
@@ -159,25 +116,18 @@ export const se_GetImageFrameCommand = async (input, context) => {
|
|
|
159
116
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
160
117
|
}
|
|
161
118
|
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
port,
|
|
166
|
-
method: "POST",
|
|
167
|
-
headers,
|
|
168
|
-
path: resolvedPath,
|
|
169
|
-
body,
|
|
170
|
-
});
|
|
119
|
+
b.hn(resolvedHostname);
|
|
120
|
+
b.m("POST").h(headers).b(body);
|
|
121
|
+
return b.build();
|
|
171
122
|
};
|
|
172
123
|
export const se_GetImageSetCommand = async (input, context) => {
|
|
173
|
-
const
|
|
124
|
+
const b = rb(input, context);
|
|
174
125
|
const headers = {};
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
126
|
+
b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/getImageSet");
|
|
127
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
128
|
+
b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
179
129
|
const query = map({
|
|
180
|
-
|
|
130
|
+
[_v]: [, input[_vI]],
|
|
181
131
|
});
|
|
182
132
|
let body;
|
|
183
133
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -187,26 +137,18 @@ export const se_GetImageSetCommand = async (input, context) => {
|
|
|
187
137
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
188
138
|
}
|
|
189
139
|
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
port,
|
|
194
|
-
method: "POST",
|
|
195
|
-
headers,
|
|
196
|
-
path: resolvedPath,
|
|
197
|
-
query,
|
|
198
|
-
body,
|
|
199
|
-
});
|
|
140
|
+
b.hn(resolvedHostname);
|
|
141
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
142
|
+
return b.build();
|
|
200
143
|
};
|
|
201
144
|
export const se_GetImageSetMetadataCommand = async (input, context) => {
|
|
202
|
-
const
|
|
145
|
+
const b = rb(input, context);
|
|
203
146
|
const headers = {};
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
147
|
+
b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/getImageSetMetadata");
|
|
148
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
149
|
+
b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
208
150
|
const query = map({
|
|
209
|
-
|
|
151
|
+
[_v]: [, input[_vI]],
|
|
210
152
|
});
|
|
211
153
|
let body;
|
|
212
154
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -216,71 +158,46 @@ export const se_GetImageSetMetadataCommand = async (input, context) => {
|
|
|
216
158
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
217
159
|
}
|
|
218
160
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
port,
|
|
223
|
-
method: "POST",
|
|
224
|
-
headers,
|
|
225
|
-
path: resolvedPath,
|
|
226
|
-
query,
|
|
227
|
-
body,
|
|
228
|
-
});
|
|
161
|
+
b.hn(resolvedHostname);
|
|
162
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
163
|
+
return b.build();
|
|
229
164
|
};
|
|
230
165
|
export const se_ListDatastoresCommand = async (input, context) => {
|
|
231
|
-
const
|
|
166
|
+
const b = rb(input, context);
|
|
232
167
|
const headers = {};
|
|
233
|
-
|
|
168
|
+
b.bp("/datastore");
|
|
234
169
|
const query = map({
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
170
|
+
[_dS]: [, input[_dS]],
|
|
171
|
+
[_nT]: [, input[_nT]],
|
|
172
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
238
173
|
});
|
|
239
174
|
let body;
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
hostname,
|
|
243
|
-
port,
|
|
244
|
-
method: "GET",
|
|
245
|
-
headers,
|
|
246
|
-
path: resolvedPath,
|
|
247
|
-
query,
|
|
248
|
-
body,
|
|
249
|
-
});
|
|
175
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
176
|
+
return b.build();
|
|
250
177
|
};
|
|
251
178
|
export const se_ListDICOMImportJobsCommand = async (input, context) => {
|
|
252
|
-
const
|
|
179
|
+
const b = rb(input, context);
|
|
253
180
|
const headers = {};
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
181
|
+
b.bp("/listDICOMImportJobs/datastore/{datastoreId}");
|
|
182
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
257
183
|
const query = map({
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
184
|
+
[_jS]: [, input[_jS]],
|
|
185
|
+
[_nT]: [, input[_nT]],
|
|
186
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
261
187
|
});
|
|
262
188
|
let body;
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
hostname,
|
|
266
|
-
port,
|
|
267
|
-
method: "GET",
|
|
268
|
-
headers,
|
|
269
|
-
path: resolvedPath,
|
|
270
|
-
query,
|
|
271
|
-
body,
|
|
272
|
-
});
|
|
189
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
190
|
+
return b.build();
|
|
273
191
|
};
|
|
274
192
|
export const se_ListImageSetVersionsCommand = async (input, context) => {
|
|
275
|
-
const
|
|
193
|
+
const b = rb(input, context);
|
|
276
194
|
const headers = {};
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
195
|
+
b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/listImageSetVersions");
|
|
196
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
197
|
+
b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
281
198
|
const query = map({
|
|
282
|
-
|
|
283
|
-
|
|
199
|
+
[_nT]: [, input[_nT]],
|
|
200
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
284
201
|
});
|
|
285
202
|
let body;
|
|
286
203
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -290,43 +207,29 @@ export const se_ListImageSetVersionsCommand = async (input, context) => {
|
|
|
290
207
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
291
208
|
}
|
|
292
209
|
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
port,
|
|
297
|
-
method: "POST",
|
|
298
|
-
headers,
|
|
299
|
-
path: resolvedPath,
|
|
300
|
-
query,
|
|
301
|
-
body,
|
|
302
|
-
});
|
|
210
|
+
b.hn(resolvedHostname);
|
|
211
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
212
|
+
return b.build();
|
|
303
213
|
};
|
|
304
214
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
305
|
-
const
|
|
215
|
+
const b = rb(input, context);
|
|
306
216
|
const headers = {};
|
|
307
|
-
|
|
308
|
-
|
|
217
|
+
b.bp("/tags/{resourceArn}");
|
|
218
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
309
219
|
let body;
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
hostname,
|
|
313
|
-
port,
|
|
314
|
-
method: "GET",
|
|
315
|
-
headers,
|
|
316
|
-
path: resolvedPath,
|
|
317
|
-
body,
|
|
318
|
-
});
|
|
220
|
+
b.m("GET").h(headers).b(body);
|
|
221
|
+
return b.build();
|
|
319
222
|
};
|
|
320
223
|
export const se_SearchImageSetsCommand = async (input, context) => {
|
|
321
|
-
const
|
|
224
|
+
const b = rb(input, context);
|
|
322
225
|
const headers = {
|
|
323
226
|
"content-type": "application/json",
|
|
324
227
|
};
|
|
325
|
-
|
|
326
|
-
|
|
228
|
+
b.bp("/datastore/{datastoreId}/searchImageSets");
|
|
229
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
327
230
|
const query = map({
|
|
328
|
-
|
|
329
|
-
|
|
231
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
232
|
+
[_nT]: [, input[_nT]],
|
|
330
233
|
});
|
|
331
234
|
let body;
|
|
332
235
|
if (input.searchCriteria !== undefined) {
|
|
@@ -343,25 +246,17 @@ export const se_SearchImageSetsCommand = async (input, context) => {
|
|
|
343
246
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
344
247
|
}
|
|
345
248
|
}
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
port,
|
|
350
|
-
method: "POST",
|
|
351
|
-
headers,
|
|
352
|
-
path: resolvedPath,
|
|
353
|
-
query,
|
|
354
|
-
body,
|
|
355
|
-
});
|
|
249
|
+
b.hn(resolvedHostname);
|
|
250
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
251
|
+
return b.build();
|
|
356
252
|
};
|
|
357
253
|
export const se_StartDICOMImportJobCommand = async (input, context) => {
|
|
358
|
-
const
|
|
254
|
+
const b = rb(input, context);
|
|
359
255
|
const headers = {
|
|
360
256
|
"content-type": "application/json",
|
|
361
257
|
};
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
258
|
+
b.bp("/startDICOMImportJob/datastore/{datastoreId}");
|
|
259
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
365
260
|
let body;
|
|
366
261
|
body = JSON.stringify(take(input, {
|
|
367
262
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
@@ -370,71 +265,48 @@ export const se_StartDICOMImportJobCommand = async (input, context) => {
|
|
|
370
265
|
jobName: [],
|
|
371
266
|
outputS3Uri: [],
|
|
372
267
|
}));
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
hostname,
|
|
376
|
-
port,
|
|
377
|
-
method: "POST",
|
|
378
|
-
headers,
|
|
379
|
-
path: resolvedPath,
|
|
380
|
-
body,
|
|
381
|
-
});
|
|
268
|
+
b.m("POST").h(headers).b(body);
|
|
269
|
+
return b.build();
|
|
382
270
|
};
|
|
383
271
|
export const se_TagResourceCommand = async (input, context) => {
|
|
384
|
-
const
|
|
272
|
+
const b = rb(input, context);
|
|
385
273
|
const headers = {
|
|
386
274
|
"content-type": "application/json",
|
|
387
275
|
};
|
|
388
|
-
|
|
389
|
-
|
|
276
|
+
b.bp("/tags/{resourceArn}");
|
|
277
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
390
278
|
let body;
|
|
391
279
|
body = JSON.stringify(take(input, {
|
|
392
280
|
tags: (_) => _json(_),
|
|
393
281
|
}));
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
hostname,
|
|
397
|
-
port,
|
|
398
|
-
method: "POST",
|
|
399
|
-
headers,
|
|
400
|
-
path: resolvedPath,
|
|
401
|
-
body,
|
|
402
|
-
});
|
|
282
|
+
b.m("POST").h(headers).b(body);
|
|
283
|
+
return b.build();
|
|
403
284
|
};
|
|
404
285
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
405
|
-
const
|
|
286
|
+
const b = rb(input, context);
|
|
406
287
|
const headers = {};
|
|
407
|
-
|
|
408
|
-
|
|
288
|
+
b.bp("/tags/{resourceArn}");
|
|
289
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
409
290
|
const query = map({
|
|
410
|
-
|
|
291
|
+
[_tK]: [
|
|
411
292
|
__expectNonNull(input.tagKeys, `tagKeys`) != null,
|
|
412
|
-
() => (input
|
|
293
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
413
294
|
],
|
|
414
295
|
});
|
|
415
296
|
let body;
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
hostname,
|
|
419
|
-
port,
|
|
420
|
-
method: "DELETE",
|
|
421
|
-
headers,
|
|
422
|
-
path: resolvedPath,
|
|
423
|
-
query,
|
|
424
|
-
body,
|
|
425
|
-
});
|
|
297
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
298
|
+
return b.build();
|
|
426
299
|
};
|
|
427
300
|
export const se_UpdateImageSetMetadataCommand = async (input, context) => {
|
|
428
|
-
const
|
|
301
|
+
const b = rb(input, context);
|
|
429
302
|
const headers = {
|
|
430
303
|
"content-type": "application/json",
|
|
431
304
|
};
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
305
|
+
b.bp("/datastore/{datastoreId}/imageSet/{imageSetId}/updateImageSetMetadata");
|
|
306
|
+
b.p("datastoreId", () => input.datastoreId, "{datastoreId}", false);
|
|
307
|
+
b.p("imageSetId", () => input.imageSetId, "{imageSetId}", false);
|
|
436
308
|
const query = map({
|
|
437
|
-
|
|
309
|
+
[_lV]: [, __expectNonNull(input[_lVI], `latestVersionId`)],
|
|
438
310
|
});
|
|
439
311
|
let body;
|
|
440
312
|
if (input.updateImageSetMetadataUpdates !== undefined) {
|
|
@@ -451,16 +323,9 @@ export const se_UpdateImageSetMetadataCommand = async (input, context) => {
|
|
|
451
323
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
452
324
|
}
|
|
453
325
|
}
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
port,
|
|
458
|
-
method: "POST",
|
|
459
|
-
headers,
|
|
460
|
-
path: resolvedPath,
|
|
461
|
-
query,
|
|
462
|
-
body,
|
|
463
|
-
});
|
|
326
|
+
b.hn(resolvedHostname);
|
|
327
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
328
|
+
return b.build();
|
|
464
329
|
};
|
|
465
330
|
export const de_CopyImageSetCommand = async (output, context) => {
|
|
466
331
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -763,7 +628,7 @@ export const de_GetImageFrameCommand = async (output, context) => {
|
|
|
763
628
|
}
|
|
764
629
|
const contents = map({
|
|
765
630
|
$metadata: deserializeMetadata(output),
|
|
766
|
-
|
|
631
|
+
[_cT]: [, output.headers[_ct]],
|
|
767
632
|
});
|
|
768
633
|
const data = output.body;
|
|
769
634
|
context.sdkStreamMixin(data);
|
|
@@ -867,8 +732,8 @@ export const de_GetImageSetMetadataCommand = async (output, context) => {
|
|
|
867
732
|
}
|
|
868
733
|
const contents = map({
|
|
869
734
|
$metadata: deserializeMetadata(output),
|
|
870
|
-
|
|
871
|
-
|
|
735
|
+
[_cT]: [, output.headers[_ct]],
|
|
736
|
+
[_cE]: [, output.headers[_ce]],
|
|
872
737
|
});
|
|
873
738
|
const data = output.body;
|
|
874
739
|
context.sdkStreamMixin(data);
|
|
@@ -1612,6 +1477,19 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1612
1477
|
value !== "" &&
|
|
1613
1478
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1614
1479
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1480
|
+
const _cE = "contentEncoding";
|
|
1481
|
+
const _cT = "contentType";
|
|
1482
|
+
const _ce = "content-encoding";
|
|
1483
|
+
const _ct = "content-type";
|
|
1484
|
+
const _dS = "datastoreStatus";
|
|
1485
|
+
const _jS = "jobStatus";
|
|
1486
|
+
const _lV = "latestVersion";
|
|
1487
|
+
const _lVI = "latestVersionId";
|
|
1488
|
+
const _mR = "maxResults";
|
|
1489
|
+
const _nT = "nextToken";
|
|
1490
|
+
const _tK = "tagKeys";
|
|
1491
|
+
const _v = "version";
|
|
1492
|
+
const _vI = "versionId";
|
|
1615
1493
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1616
1494
|
if (encoded.length) {
|
|
1617
1495
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-medical-imaging",
|
|
3
3
|
"description": "AWS SDK for JavaScript Medical Imaging Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.477.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.477.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.477.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|