@aws-sdk/client-medical-imaging 3.476.0 → 3.478.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/pagination/ListDICOMImportJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDatastoresPaginator.js +2 -24
- package/dist-cjs/pagination/ListImageSetVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/SearchImageSetsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +136 -258
- package/dist-es/pagination/ListDICOMImportJobsPaginator.js +2 -23
- package/dist-es/pagination/ListDatastoresPaginator.js +2 -23
- package/dist-es/pagination/ListImageSetVersionsPaginator.js +2 -23
- package/dist-es/pagination/SearchImageSetsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +138 -260
- package/dist-types/pagination/ListDICOMImportJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDatastoresPaginator.d.ts +1 -1
- package/dist-types/pagination/ListImageSetVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchImageSetsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListDICOMImportJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDatastoresPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListImageSetVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchImageSetsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -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,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDICOMImportJobsCommand, } from "../commands/ListDICOMImportJobsCommand";
|
|
2
3
|
import { MedicalImagingClient } from "../MedicalImagingClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDICOMImportJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDICOMImportJobs(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof MedicalImagingClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected MedicalImaging | MedicalImagingClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListDICOMImportJobs = createPaginator(MedicalImagingClient, ListDICOMImportJobsCommand, "nextToken", "nextToken", "maxResults");
|