@aws-sdk/client-medical-imaging 3.373.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.
Files changed (159) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +498 -0
  3. package/dist-cjs/MedicalImaging.js +47 -0
  4. package/dist-cjs/MedicalImagingClient.js +41 -0
  5. package/dist-cjs/commands/CopyImageSetCommand.js +46 -0
  6. package/dist-cjs/commands/CreateDatastoreCommand.js +46 -0
  7. package/dist-cjs/commands/DeleteDatastoreCommand.js +46 -0
  8. package/dist-cjs/commands/DeleteImageSetCommand.js +46 -0
  9. package/dist-cjs/commands/GetDICOMImportJobCommand.js +46 -0
  10. package/dist-cjs/commands/GetDatastoreCommand.js +46 -0
  11. package/dist-cjs/commands/GetImageFrameCommand.js +47 -0
  12. package/dist-cjs/commands/GetImageSetCommand.js +46 -0
  13. package/dist-cjs/commands/GetImageSetMetadataCommand.js +47 -0
  14. package/dist-cjs/commands/ListDICOMImportJobsCommand.js +46 -0
  15. package/dist-cjs/commands/ListDatastoresCommand.js +46 -0
  16. package/dist-cjs/commands/ListImageSetVersionsCommand.js +46 -0
  17. package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
  18. package/dist-cjs/commands/SearchImageSetsCommand.js +47 -0
  19. package/dist-cjs/commands/StartDICOMImportJobCommand.js +46 -0
  20. package/dist-cjs/commands/TagResourceCommand.js +46 -0
  21. package/dist-cjs/commands/UntagResourceCommand.js +46 -0
  22. package/dist-cjs/commands/UpdateImageSetMetadataCommand.js +47 -0
  23. package/dist-cjs/commands/index.js +21 -0
  24. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  25. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  26. package/dist-cjs/endpoint/ruleset.js +7 -0
  27. package/dist-cjs/index.js +11 -0
  28. package/dist-cjs/models/MedicalImagingServiceException.js +12 -0
  29. package/dist-cjs/models/index.js +4 -0
  30. package/dist-cjs/models/models_0.js +248 -0
  31. package/dist-cjs/pagination/Interfaces.js +2 -0
  32. package/dist-cjs/pagination/ListDICOMImportJobsPaginator.js +29 -0
  33. package/dist-cjs/pagination/ListDatastoresPaginator.js +29 -0
  34. package/dist-cjs/pagination/ListImageSetVersionsPaginator.js +29 -0
  35. package/dist-cjs/pagination/SearchImageSetsPaginator.js +29 -0
  36. package/dist-cjs/pagination/index.js +8 -0
  37. package/dist-cjs/protocols/Aws_restJson1.js +1693 -0
  38. package/dist-cjs/runtimeConfig.browser.js +39 -0
  39. package/dist-cjs/runtimeConfig.js +48 -0
  40. package/dist-cjs/runtimeConfig.native.js +15 -0
  41. package/dist-cjs/runtimeConfig.shared.js +23 -0
  42. package/dist-es/MedicalImaging.js +43 -0
  43. package/dist-es/MedicalImagingClient.js +37 -0
  44. package/dist-es/commands/CopyImageSetCommand.js +42 -0
  45. package/dist-es/commands/CreateDatastoreCommand.js +42 -0
  46. package/dist-es/commands/DeleteDatastoreCommand.js +42 -0
  47. package/dist-es/commands/DeleteImageSetCommand.js +42 -0
  48. package/dist-es/commands/GetDICOMImportJobCommand.js +42 -0
  49. package/dist-es/commands/GetDatastoreCommand.js +42 -0
  50. package/dist-es/commands/GetImageFrameCommand.js +43 -0
  51. package/dist-es/commands/GetImageSetCommand.js +42 -0
  52. package/dist-es/commands/GetImageSetMetadataCommand.js +43 -0
  53. package/dist-es/commands/ListDICOMImportJobsCommand.js +42 -0
  54. package/dist-es/commands/ListDatastoresCommand.js +42 -0
  55. package/dist-es/commands/ListImageSetVersionsCommand.js +42 -0
  56. package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
  57. package/dist-es/commands/SearchImageSetsCommand.js +43 -0
  58. package/dist-es/commands/StartDICOMImportJobCommand.js +42 -0
  59. package/dist-es/commands/TagResourceCommand.js +42 -0
  60. package/dist-es/commands/UntagResourceCommand.js +42 -0
  61. package/dist-es/commands/UpdateImageSetMetadataCommand.js +43 -0
  62. package/dist-es/commands/index.js +18 -0
  63. package/dist-es/endpoint/EndpointParameters.js +8 -0
  64. package/dist-es/endpoint/endpointResolver.js +8 -0
  65. package/dist-es/endpoint/ruleset.js +4 -0
  66. package/dist-es/index.js +6 -0
  67. package/dist-es/models/MedicalImagingServiceException.js +8 -0
  68. package/dist-es/models/index.js +1 -0
  69. package/dist-es/models/models_0.js +225 -0
  70. package/dist-es/pagination/Interfaces.js +1 -0
  71. package/dist-es/pagination/ListDICOMImportJobsPaginator.js +25 -0
  72. package/dist-es/pagination/ListDatastoresPaginator.js +25 -0
  73. package/dist-es/pagination/ListImageSetVersionsPaginator.js +25 -0
  74. package/dist-es/pagination/SearchImageSetsPaginator.js +25 -0
  75. package/dist-es/pagination/index.js +5 -0
  76. package/dist-es/protocols/Aws_restJson1.js +1654 -0
  77. package/dist-es/runtimeConfig.browser.js +34 -0
  78. package/dist-es/runtimeConfig.js +43 -0
  79. package/dist-es/runtimeConfig.native.js +11 -0
  80. package/dist-es/runtimeConfig.shared.js +19 -0
  81. package/dist-types/MedicalImaging.d.ts +285 -0
  82. package/dist-types/MedicalImagingClient.d.ts +334 -0
  83. package/dist-types/commands/CopyImageSetCommand.d.ts +122 -0
  84. package/dist-types/commands/CreateDatastoreCommand.d.ts +97 -0
  85. package/dist-types/commands/DeleteDatastoreCommand.d.ts +95 -0
  86. package/dist-types/commands/DeleteImageSetCommand.d.ts +95 -0
  87. package/dist-types/commands/GetDICOMImportJobCommand.d.ts +103 -0
  88. package/dist-types/commands/GetDatastoreCommand.d.ts +96 -0
  89. package/dist-types/commands/GetImageFrameCommand.d.ts +96 -0
  90. package/dist-types/commands/GetImageSetCommand.d.ts +102 -0
  91. package/dist-types/commands/GetImageSetMetadataCommand.d.ts +95 -0
  92. package/dist-types/commands/ListDICOMImportJobsCommand.d.ts +106 -0
  93. package/dist-types/commands/ListDatastoresCommand.d.ts +97 -0
  94. package/dist-types/commands/ListImageSetVersionsCommand.d.ts +106 -0
  95. package/dist-types/commands/ListTagsForResourceCommand.d.ts +90 -0
  96. package/dist-types/commands/SearchImageSetsCommand.d.ts +135 -0
  97. package/dist-types/commands/StartDICOMImportJobCommand.d.ts +104 -0
  98. package/dist-types/commands/TagResourceCommand.d.ts +89 -0
  99. package/dist-types/commands/UntagResourceCommand.d.ts +89 -0
  100. package/dist-types/commands/UpdateImageSetMetadataCommand.d.ts +109 -0
  101. package/dist-types/commands/index.d.ts +18 -0
  102. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  103. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  104. package/dist-types/endpoint/ruleset.d.ts +2 -0
  105. package/dist-types/index.d.ts +160 -0
  106. package/dist-types/models/MedicalImagingServiceException.d.ts +13 -0
  107. package/dist-types/models/index.d.ts +1 -0
  108. package/dist-types/models/models_0.d.ts +1363 -0
  109. package/dist-types/pagination/Interfaces.d.ts +8 -0
  110. package/dist-types/pagination/ListDICOMImportJobsPaginator.d.ts +7 -0
  111. package/dist-types/pagination/ListDatastoresPaginator.d.ts +7 -0
  112. package/dist-types/pagination/ListImageSetVersionsPaginator.d.ts +7 -0
  113. package/dist-types/pagination/SearchImageSetsPaginator.d.ts +7 -0
  114. package/dist-types/pagination/index.d.ts +5 -0
  115. package/dist-types/protocols/Aws_restJson1.d.ts +164 -0
  116. package/dist-types/runtimeConfig.browser.d.ts +43 -0
  117. package/dist-types/runtimeConfig.d.ts +43 -0
  118. package/dist-types/runtimeConfig.native.d.ts +42 -0
  119. package/dist-types/runtimeConfig.shared.d.ts +19 -0
  120. package/dist-types/ts3.4/MedicalImaging.d.ts +313 -0
  121. package/dist-types/ts3.4/MedicalImagingClient.d.ts +223 -0
  122. package/dist-types/ts3.4/commands/CopyImageSetCommand.d.ts +35 -0
  123. package/dist-types/ts3.4/commands/CreateDatastoreCommand.d.ts +38 -0
  124. package/dist-types/ts3.4/commands/DeleteDatastoreCommand.d.ts +38 -0
  125. package/dist-types/ts3.4/commands/DeleteImageSetCommand.d.ts +38 -0
  126. package/dist-types/ts3.4/commands/GetDICOMImportJobCommand.d.ts +39 -0
  127. package/dist-types/ts3.4/commands/GetDatastoreCommand.d.ts +35 -0
  128. package/dist-types/ts3.4/commands/GetImageFrameCommand.d.ts +39 -0
  129. package/dist-types/ts3.4/commands/GetImageSetCommand.d.ts +35 -0
  130. package/dist-types/ts3.4/commands/GetImageSetMetadataCommand.d.ts +43 -0
  131. package/dist-types/ts3.4/commands/ListDICOMImportJobsCommand.d.ts +39 -0
  132. package/dist-types/ts3.4/commands/ListDatastoresCommand.d.ts +38 -0
  133. package/dist-types/ts3.4/commands/ListImageSetVersionsCommand.d.ts +42 -0
  134. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  135. package/dist-types/ts3.4/commands/SearchImageSetsCommand.d.ts +38 -0
  136. package/dist-types/ts3.4/commands/StartDICOMImportJobCommand.d.ts +39 -0
  137. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
  138. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  139. package/dist-types/ts3.4/commands/UpdateImageSetMetadataCommand.d.ts +42 -0
  140. package/dist-types/ts3.4/commands/index.d.ts +18 -0
  141. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
  142. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  143. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  144. package/dist-types/ts3.4/index.d.ts +6 -0
  145. package/dist-types/ts3.4/models/MedicalImagingServiceException.d.ts +8 -0
  146. package/dist-types/ts3.4/models/index.d.ts +1 -0
  147. package/dist-types/ts3.4/models/models_0.d.ts +513 -0
  148. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  149. package/dist-types/ts3.4/pagination/ListDICOMImportJobsPaginator.d.ts +11 -0
  150. package/dist-types/ts3.4/pagination/ListDatastoresPaginator.d.ts +11 -0
  151. package/dist-types/ts3.4/pagination/ListImageSetVersionsPaginator.d.ts +11 -0
  152. package/dist-types/ts3.4/pagination/SearchImageSetsPaginator.d.ts +11 -0
  153. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  154. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +224 -0
  155. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +90 -0
  156. package/dist-types/ts3.4/runtimeConfig.d.ts +90 -0
  157. package/dist-types/ts3.4/runtimeConfig.native.d.ts +81 -0
  158. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
  159. package/package.json +102 -0
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StartDICOMImportJobCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class StartDICOMImportJobCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartDICOMImportJobCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "MedicalImagingClient";
28
+ const commandName = "StartDICOMImportJobCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_StartDICOMImportJobCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_StartDICOMImportJobCommand)(output, context);
44
+ }
45
+ }
46
+ exports.StartDICOMImportJobCommand = StartDICOMImportJobCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TagResourceCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class TagResourceCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, TagResourceCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "MedicalImagingClient";
28
+ const commandName = "TagResourceCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_TagResourceCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_TagResourceCommand)(output, context);
44
+ }
45
+ }
46
+ exports.TagResourceCommand = TagResourceCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UntagResourceCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class UntagResourceCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "MedicalImagingClient";
28
+ const commandName = "UntagResourceCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_UntagResourceCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_UntagResourceCommand)(output, context);
44
+ }
45
+ }
46
+ exports.UntagResourceCommand = UntagResourceCommand;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateImageSetMetadataCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const models_0_1 = require("../models/models_0");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class UpdateImageSetMetadataCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateImageSetMetadataCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "MedicalImagingClient";
29
+ const commandName = "UpdateImageSetMetadataCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: models_0_1.UpdateImageSetMetadataRequestFilterSensitiveLog,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ };
37
+ const { requestHandler } = configuration;
38
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
39
+ }
40
+ serialize(input, context) {
41
+ return (0, Aws_restJson1_1.se_UpdateImageSetMetadataCommand)(input, context);
42
+ }
43
+ deserialize(output, context) {
44
+ return (0, Aws_restJson1_1.de_UpdateImageSetMetadataCommand)(output, context);
45
+ }
46
+ }
47
+ exports.UpdateImageSetMetadataCommand = UpdateImageSetMetadataCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./CopyImageSetCommand"), exports);
5
+ tslib_1.__exportStar(require("./CreateDatastoreCommand"), exports);
6
+ tslib_1.__exportStar(require("./DeleteDatastoreCommand"), exports);
7
+ tslib_1.__exportStar(require("./DeleteImageSetCommand"), exports);
8
+ tslib_1.__exportStar(require("./GetDICOMImportJobCommand"), exports);
9
+ tslib_1.__exportStar(require("./GetDatastoreCommand"), exports);
10
+ tslib_1.__exportStar(require("./GetImageFrameCommand"), exports);
11
+ tslib_1.__exportStar(require("./GetImageSetCommand"), exports);
12
+ tslib_1.__exportStar(require("./GetImageSetMetadataCommand"), exports);
13
+ tslib_1.__exportStar(require("./ListDICOMImportJobsCommand"), exports);
14
+ tslib_1.__exportStar(require("./ListDatastoresCommand"), exports);
15
+ tslib_1.__exportStar(require("./ListImageSetVersionsCommand"), exports);
16
+ tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
17
+ tslib_1.__exportStar(require("./SearchImageSetsCommand"), exports);
18
+ tslib_1.__exportStar(require("./StartDICOMImportJobCommand"), exports);
19
+ tslib_1.__exportStar(require("./TagResourceCommand"), exports);
20
+ tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
21
+ tslib_1.__exportStar(require("./UpdateImageSetMetadataCommand"), exports);
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveClientEndpointParameters = void 0;
4
+ const resolveClientEndpointParameters = (options) => {
5
+ return {
6
+ ...options,
7
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
8
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
9
+ defaultSigningName: "medical-imaging",
10
+ };
11
+ };
12
+ exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultEndpointResolver = void 0;
4
+ const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
+ const ruleset_1 = require("./ruleset");
6
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
7
+ return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
8
+ endpointParams: endpointParams,
9
+ logger: context.logger,
10
+ });
11
+ };
12
+ exports.defaultEndpointResolver = defaultEndpointResolver;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ruleSet = void 0;
4
+ const q = "required", r = "fn", s = "argv", t = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://medical-imaging-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://medical-imaging-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://medical-imaging.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://medical-imaging.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
7
+ exports.ruleSet = _data;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MedicalImagingServiceException = void 0;
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./MedicalImagingClient"), exports);
6
+ tslib_1.__exportStar(require("./MedicalImaging"), exports);
7
+ tslib_1.__exportStar(require("./commands"), exports);
8
+ tslib_1.__exportStar(require("./pagination"), exports);
9
+ tslib_1.__exportStar(require("./models"), exports);
10
+ var MedicalImagingServiceException_1 = require("./models/MedicalImagingServiceException");
11
+ Object.defineProperty(exports, "MedicalImagingServiceException", { enumerable: true, get: function () { return MedicalImagingServiceException_1.MedicalImagingServiceException; } });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MedicalImagingServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class MedicalImagingServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, MedicalImagingServiceException.prototype);
10
+ }
11
+ }
12
+ exports.MedicalImagingServiceException = MedicalImagingServiceException;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./models_0"), exports);
@@ -0,0 +1,248 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateImageSetMetadataRequestFilterSensitiveLog = exports.MetadataUpdatesFilterSensitiveLog = exports.DICOMUpdatesFilterSensitiveLog = exports.SearchImageSetsResponseFilterSensitiveLog = exports.ImageSetsMetadataSummaryFilterSensitiveLog = exports.DICOMTagsFilterSensitiveLog = exports.SearchImageSetsRequestFilterSensitiveLog = exports.SearchCriteriaFilterSensitiveLog = exports.SearchFilterFilterSensitiveLog = exports.SearchByAttributeValueFilterSensitiveLog = exports.DICOMStudyDateAndTimeFilterSensitiveLog = exports.GetImageSetMetadataResponseFilterSensitiveLog = exports.GetImageFrameResponseFilterSensitiveLog = exports.MetadataUpdates = exports.SearchByAttributeValue = exports.Operator = exports.JobStatus = exports.DatastoreStatus = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ImageSetWorkflowStatus = exports.ImageSetState = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ const MedicalImagingServiceException_1 = require("./MedicalImagingServiceException");
6
+ class AccessDeniedException extends MedicalImagingServiceException_1.MedicalImagingServiceException {
7
+ constructor(opts) {
8
+ super({
9
+ name: "AccessDeniedException",
10
+ $fault: "client",
11
+ ...opts,
12
+ });
13
+ this.name = "AccessDeniedException";
14
+ this.$fault = "client";
15
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
+ }
17
+ }
18
+ exports.AccessDeniedException = AccessDeniedException;
19
+ class ConflictException extends MedicalImagingServiceException_1.MedicalImagingServiceException {
20
+ constructor(opts) {
21
+ super({
22
+ name: "ConflictException",
23
+ $fault: "client",
24
+ ...opts,
25
+ });
26
+ this.name = "ConflictException";
27
+ this.$fault = "client";
28
+ Object.setPrototypeOf(this, ConflictException.prototype);
29
+ }
30
+ }
31
+ exports.ConflictException = ConflictException;
32
+ exports.ImageSetState = {
33
+ ACTIVE: "ACTIVE",
34
+ DELETED: "DELETED",
35
+ LOCKED: "LOCKED",
36
+ };
37
+ exports.ImageSetWorkflowStatus = {
38
+ COPIED: "COPIED",
39
+ COPYING: "COPYING",
40
+ COPYING_WITH_READ_ONLY_ACCESS: "COPYING_WITH_READ_ONLY_ACCESS",
41
+ COPY_FAILED: "COPY_FAILED",
42
+ CREATED: "CREATED",
43
+ DELETED: "DELETED",
44
+ DELETING: "DELETING",
45
+ UPDATED: "UPDATED",
46
+ UPDATE_FAILED: "UPDATE_FAILED",
47
+ UPDATING: "UPDATING",
48
+ };
49
+ class InternalServerException extends MedicalImagingServiceException_1.MedicalImagingServiceException {
50
+ constructor(opts) {
51
+ super({
52
+ name: "InternalServerException",
53
+ $fault: "server",
54
+ ...opts,
55
+ });
56
+ this.name = "InternalServerException";
57
+ this.$fault = "server";
58
+ Object.setPrototypeOf(this, InternalServerException.prototype);
59
+ }
60
+ }
61
+ exports.InternalServerException = InternalServerException;
62
+ class ResourceNotFoundException extends MedicalImagingServiceException_1.MedicalImagingServiceException {
63
+ constructor(opts) {
64
+ super({
65
+ name: "ResourceNotFoundException",
66
+ $fault: "client",
67
+ ...opts,
68
+ });
69
+ this.name = "ResourceNotFoundException";
70
+ this.$fault = "client";
71
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
72
+ }
73
+ }
74
+ exports.ResourceNotFoundException = ResourceNotFoundException;
75
+ class ServiceQuotaExceededException extends MedicalImagingServiceException_1.MedicalImagingServiceException {
76
+ constructor(opts) {
77
+ super({
78
+ name: "ServiceQuotaExceededException",
79
+ $fault: "client",
80
+ ...opts,
81
+ });
82
+ this.name = "ServiceQuotaExceededException";
83
+ this.$fault = "client";
84
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
85
+ }
86
+ }
87
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
88
+ class ThrottlingException extends MedicalImagingServiceException_1.MedicalImagingServiceException {
89
+ constructor(opts) {
90
+ super({
91
+ name: "ThrottlingException",
92
+ $fault: "client",
93
+ ...opts,
94
+ });
95
+ this.name = "ThrottlingException";
96
+ this.$fault = "client";
97
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
98
+ }
99
+ }
100
+ exports.ThrottlingException = ThrottlingException;
101
+ class ValidationException extends MedicalImagingServiceException_1.MedicalImagingServiceException {
102
+ constructor(opts) {
103
+ super({
104
+ name: "ValidationException",
105
+ $fault: "client",
106
+ ...opts,
107
+ });
108
+ this.name = "ValidationException";
109
+ this.$fault = "client";
110
+ Object.setPrototypeOf(this, ValidationException.prototype);
111
+ }
112
+ }
113
+ exports.ValidationException = ValidationException;
114
+ exports.DatastoreStatus = {
115
+ ACTIVE: "ACTIVE",
116
+ CREATE_FAILED: "CREATE_FAILED",
117
+ CREATING: "CREATING",
118
+ DELETED: "DELETED",
119
+ DELETING: "DELETING",
120
+ };
121
+ exports.JobStatus = {
122
+ COMPLETED: "COMPLETED",
123
+ FAILED: "FAILED",
124
+ IN_PROGRESS: "IN_PROGRESS",
125
+ SUBMITTED: "SUBMITTED",
126
+ };
127
+ exports.Operator = {
128
+ BETWEEN: "BETWEEN",
129
+ EQUAL: "EQUAL",
130
+ };
131
+ var SearchByAttributeValue;
132
+ (function (SearchByAttributeValue) {
133
+ SearchByAttributeValue.visit = (value, visitor) => {
134
+ if (value.DICOMPatientId !== undefined)
135
+ return visitor.DICOMPatientId(value.DICOMPatientId);
136
+ if (value.DICOMAccessionNumber !== undefined)
137
+ return visitor.DICOMAccessionNumber(value.DICOMAccessionNumber);
138
+ if (value.DICOMStudyId !== undefined)
139
+ return visitor.DICOMStudyId(value.DICOMStudyId);
140
+ if (value.DICOMStudyInstanceUID !== undefined)
141
+ return visitor.DICOMStudyInstanceUID(value.DICOMStudyInstanceUID);
142
+ if (value.createdAt !== undefined)
143
+ return visitor.createdAt(value.createdAt);
144
+ if (value.DICOMStudyDateAndTime !== undefined)
145
+ return visitor.DICOMStudyDateAndTime(value.DICOMStudyDateAndTime);
146
+ return visitor._(value.$unknown[0], value.$unknown[1]);
147
+ };
148
+ })(SearchByAttributeValue = exports.SearchByAttributeValue || (exports.SearchByAttributeValue = {}));
149
+ var MetadataUpdates;
150
+ (function (MetadataUpdates) {
151
+ MetadataUpdates.visit = (value, visitor) => {
152
+ if (value.DICOMUpdates !== undefined)
153
+ return visitor.DICOMUpdates(value.DICOMUpdates);
154
+ return visitor._(value.$unknown[0], value.$unknown[1]);
155
+ };
156
+ })(MetadataUpdates = exports.MetadataUpdates || (exports.MetadataUpdates = {}));
157
+ const GetImageFrameResponseFilterSensitiveLog = (obj) => ({
158
+ ...obj,
159
+ });
160
+ exports.GetImageFrameResponseFilterSensitiveLog = GetImageFrameResponseFilterSensitiveLog;
161
+ const GetImageSetMetadataResponseFilterSensitiveLog = (obj) => ({
162
+ ...obj,
163
+ });
164
+ exports.GetImageSetMetadataResponseFilterSensitiveLog = GetImageSetMetadataResponseFilterSensitiveLog;
165
+ const DICOMStudyDateAndTimeFilterSensitiveLog = (obj) => ({
166
+ ...obj,
167
+ ...(obj.DICOMStudyDate && { DICOMStudyDate: smithy_client_1.SENSITIVE_STRING }),
168
+ ...(obj.DICOMStudyTime && { DICOMStudyTime: smithy_client_1.SENSITIVE_STRING }),
169
+ });
170
+ exports.DICOMStudyDateAndTimeFilterSensitiveLog = DICOMStudyDateAndTimeFilterSensitiveLog;
171
+ const SearchByAttributeValueFilterSensitiveLog = (obj) => {
172
+ if (obj.DICOMPatientId !== undefined)
173
+ return { DICOMPatientId: smithy_client_1.SENSITIVE_STRING };
174
+ if (obj.DICOMAccessionNumber !== undefined)
175
+ return { DICOMAccessionNumber: smithy_client_1.SENSITIVE_STRING };
176
+ if (obj.DICOMStudyId !== undefined)
177
+ return { DICOMStudyId: smithy_client_1.SENSITIVE_STRING };
178
+ if (obj.DICOMStudyInstanceUID !== undefined)
179
+ return { DICOMStudyInstanceUID: smithy_client_1.SENSITIVE_STRING };
180
+ if (obj.createdAt !== undefined)
181
+ return { createdAt: obj.createdAt };
182
+ if (obj.DICOMStudyDateAndTime !== undefined)
183
+ return { DICOMStudyDateAndTime: (0, exports.DICOMStudyDateAndTimeFilterSensitiveLog)(obj.DICOMStudyDateAndTime) };
184
+ if (obj.$unknown !== undefined)
185
+ return { [obj.$unknown[0]]: "UNKNOWN" };
186
+ };
187
+ exports.SearchByAttributeValueFilterSensitiveLog = SearchByAttributeValueFilterSensitiveLog;
188
+ const SearchFilterFilterSensitiveLog = (obj) => ({
189
+ ...obj,
190
+ ...(obj.values && { values: obj.values.map((item) => (0, exports.SearchByAttributeValueFilterSensitiveLog)(item)) }),
191
+ });
192
+ exports.SearchFilterFilterSensitiveLog = SearchFilterFilterSensitiveLog;
193
+ const SearchCriteriaFilterSensitiveLog = (obj) => ({
194
+ ...obj,
195
+ ...(obj.filters && { filters: obj.filters.map((item) => (0, exports.SearchFilterFilterSensitiveLog)(item)) }),
196
+ });
197
+ exports.SearchCriteriaFilterSensitiveLog = SearchCriteriaFilterSensitiveLog;
198
+ const SearchImageSetsRequestFilterSensitiveLog = (obj) => ({
199
+ ...obj,
200
+ ...(obj.searchCriteria && { searchCriteria: smithy_client_1.SENSITIVE_STRING }),
201
+ });
202
+ exports.SearchImageSetsRequestFilterSensitiveLog = SearchImageSetsRequestFilterSensitiveLog;
203
+ const DICOMTagsFilterSensitiveLog = (obj) => ({
204
+ ...obj,
205
+ ...(obj.DICOMPatientId && { DICOMPatientId: smithy_client_1.SENSITIVE_STRING }),
206
+ ...(obj.DICOMPatientName && { DICOMPatientName: smithy_client_1.SENSITIVE_STRING }),
207
+ ...(obj.DICOMPatientBirthDate && { DICOMPatientBirthDate: smithy_client_1.SENSITIVE_STRING }),
208
+ ...(obj.DICOMPatientSex && { DICOMPatientSex: smithy_client_1.SENSITIVE_STRING }),
209
+ ...(obj.DICOMStudyInstanceUID && { DICOMStudyInstanceUID: smithy_client_1.SENSITIVE_STRING }),
210
+ ...(obj.DICOMStudyId && { DICOMStudyId: smithy_client_1.SENSITIVE_STRING }),
211
+ ...(obj.DICOMStudyDescription && { DICOMStudyDescription: smithy_client_1.SENSITIVE_STRING }),
212
+ ...(obj.DICOMAccessionNumber && { DICOMAccessionNumber: smithy_client_1.SENSITIVE_STRING }),
213
+ ...(obj.DICOMStudyDate && { DICOMStudyDate: smithy_client_1.SENSITIVE_STRING }),
214
+ ...(obj.DICOMStudyTime && { DICOMStudyTime: smithy_client_1.SENSITIVE_STRING }),
215
+ });
216
+ exports.DICOMTagsFilterSensitiveLog = DICOMTagsFilterSensitiveLog;
217
+ const ImageSetsMetadataSummaryFilterSensitiveLog = (obj) => ({
218
+ ...obj,
219
+ ...(obj.DICOMTags && { DICOMTags: (0, exports.DICOMTagsFilterSensitiveLog)(obj.DICOMTags) }),
220
+ });
221
+ exports.ImageSetsMetadataSummaryFilterSensitiveLog = ImageSetsMetadataSummaryFilterSensitiveLog;
222
+ const SearchImageSetsResponseFilterSensitiveLog = (obj) => ({
223
+ ...obj,
224
+ ...(obj.imageSetsMetadataSummaries && {
225
+ imageSetsMetadataSummaries: obj.imageSetsMetadataSummaries.map((item) => (0, exports.ImageSetsMetadataSummaryFilterSensitiveLog)(item)),
226
+ }),
227
+ });
228
+ exports.SearchImageSetsResponseFilterSensitiveLog = SearchImageSetsResponseFilterSensitiveLog;
229
+ const DICOMUpdatesFilterSensitiveLog = (obj) => ({
230
+ ...obj,
231
+ ...(obj.removableAttributes && { removableAttributes: smithy_client_1.SENSITIVE_STRING }),
232
+ ...(obj.updatableAttributes && { updatableAttributes: smithy_client_1.SENSITIVE_STRING }),
233
+ });
234
+ exports.DICOMUpdatesFilterSensitiveLog = DICOMUpdatesFilterSensitiveLog;
235
+ const MetadataUpdatesFilterSensitiveLog = (obj) => {
236
+ if (obj.DICOMUpdates !== undefined)
237
+ return { DICOMUpdates: (0, exports.DICOMUpdatesFilterSensitiveLog)(obj.DICOMUpdates) };
238
+ if (obj.$unknown !== undefined)
239
+ return { [obj.$unknown[0]]: "UNKNOWN" };
240
+ };
241
+ exports.MetadataUpdatesFilterSensitiveLog = MetadataUpdatesFilterSensitiveLog;
242
+ const UpdateImageSetMetadataRequestFilterSensitiveLog = (obj) => ({
243
+ ...obj,
244
+ ...(obj.updateImageSetMetadataUpdates && {
245
+ updateImageSetMetadataUpdates: (0, exports.MetadataUpdatesFilterSensitiveLog)(obj.updateImageSetMetadataUpdates),
246
+ }),
247
+ });
248
+ exports.UpdateImageSetMetadataRequestFilterSensitiveLog = UpdateImageSetMetadataRequestFilterSensitiveLog;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListDICOMImportJobs = void 0;
4
+ const ListDICOMImportJobsCommand_1 = require("../commands/ListDICOMImportJobsCommand");
5
+ const MedicalImagingClient_1 = require("../MedicalImagingClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListDICOMImportJobsCommand_1.ListDICOMImportJobsCommand(input), ...args);
8
+ };
9
+ async function* paginateListDICOMImportJobs(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof MedicalImagingClient_1.MedicalImagingClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected MedicalImaging | MedicalImagingClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListDICOMImportJobs = paginateListDICOMImportJobs;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListDatastores = void 0;
4
+ const ListDatastoresCommand_1 = require("../commands/ListDatastoresCommand");
5
+ const MedicalImagingClient_1 = require("../MedicalImagingClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListDatastoresCommand_1.ListDatastoresCommand(input), ...args);
8
+ };
9
+ async function* paginateListDatastores(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof MedicalImagingClient_1.MedicalImagingClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected MedicalImaging | MedicalImagingClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListDatastores = paginateListDatastores;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListImageSetVersions = void 0;
4
+ const ListImageSetVersionsCommand_1 = require("../commands/ListImageSetVersionsCommand");
5
+ const MedicalImagingClient_1 = require("../MedicalImagingClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListImageSetVersionsCommand_1.ListImageSetVersionsCommand(input), ...args);
8
+ };
9
+ async function* paginateListImageSetVersions(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof MedicalImagingClient_1.MedicalImagingClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected MedicalImaging | MedicalImagingClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListImageSetVersions = paginateListImageSetVersions;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateSearchImageSets = void 0;
4
+ const SearchImageSetsCommand_1 = require("../commands/SearchImageSetsCommand");
5
+ const MedicalImagingClient_1 = require("../MedicalImagingClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new SearchImageSetsCommand_1.SearchImageSetsCommand(input), ...args);
8
+ };
9
+ async function* paginateSearchImageSets(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof MedicalImagingClient_1.MedicalImagingClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected MedicalImaging | MedicalImagingClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateSearchImageSets = paginateSearchImageSets;