@aws-sdk/client-omics 3.388.0 → 3.391.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 (91) hide show
  1. package/README.md +80 -0
  2. package/dist-cjs/Omics.js +20 -0
  3. package/dist-cjs/commands/AcceptShareCommand.js +46 -0
  4. package/dist-cjs/commands/CreateAnnotationStoreVersionCommand.js +46 -0
  5. package/dist-cjs/commands/CreateShareCommand.js +46 -0
  6. package/dist-cjs/commands/DeleteAnnotationStoreVersionsCommand.js +46 -0
  7. package/dist-cjs/commands/DeleteShareCommand.js +46 -0
  8. package/dist-cjs/commands/GetAnnotationStoreVersionCommand.js +46 -0
  9. package/dist-cjs/commands/GetShareCommand.js +46 -0
  10. package/dist-cjs/commands/ListAnnotationStoreVersionsCommand.js +46 -0
  11. package/dist-cjs/commands/ListSharesCommand.js +46 -0
  12. package/dist-cjs/commands/UpdateAnnotationStoreVersionCommand.js +46 -0
  13. package/dist-cjs/commands/index.js +10 -0
  14. package/dist-cjs/models/models_0.js +42 -14
  15. package/dist-cjs/pagination/ListAnnotationStoreVersionsPaginator.js +29 -0
  16. package/dist-cjs/pagination/ListSharesPaginator.js +29 -0
  17. package/dist-cjs/pagination/index.js +2 -0
  18. package/dist-cjs/protocols/Aws_restJson1.js +911 -38
  19. package/dist-cjs/waiters/index.js +2 -0
  20. package/dist-cjs/waiters/waitForAnnotationStoreVersionCreated.js +63 -0
  21. package/dist-cjs/waiters/waitForAnnotationStoreVersionDeleted.js +48 -0
  22. package/dist-es/Omics.js +20 -0
  23. package/dist-es/commands/AcceptShareCommand.js +42 -0
  24. package/dist-es/commands/CreateAnnotationStoreVersionCommand.js +42 -0
  25. package/dist-es/commands/CreateShareCommand.js +42 -0
  26. package/dist-es/commands/DeleteAnnotationStoreVersionsCommand.js +42 -0
  27. package/dist-es/commands/DeleteShareCommand.js +42 -0
  28. package/dist-es/commands/GetAnnotationStoreVersionCommand.js +42 -0
  29. package/dist-es/commands/GetShareCommand.js +42 -0
  30. package/dist-es/commands/ListAnnotationStoreVersionsCommand.js +42 -0
  31. package/dist-es/commands/ListSharesCommand.js +42 -0
  32. package/dist-es/commands/UpdateAnnotationStoreVersionCommand.js +42 -0
  33. package/dist-es/commands/index.js +10 -0
  34. package/dist-es/models/models_0.js +39 -12
  35. package/dist-es/pagination/ListAnnotationStoreVersionsPaginator.js +25 -0
  36. package/dist-es/pagination/ListSharesPaginator.js +25 -0
  37. package/dist-es/pagination/index.js +2 -0
  38. package/dist-es/protocols/Aws_restJson1.js +886 -34
  39. package/dist-es/waiters/index.js +2 -0
  40. package/dist-es/waiters/waitForAnnotationStoreVersionCreated.js +58 -0
  41. package/dist-es/waiters/waitForAnnotationStoreVersionDeleted.js +43 -0
  42. package/dist-types/Omics.d.ts +70 -0
  43. package/dist-types/OmicsClient.d.ts +12 -2
  44. package/dist-types/commands/AcceptShareCommand.d.ts +96 -0
  45. package/dist-types/commands/CreateAnnotationStoreCommand.d.ts +2 -0
  46. package/dist-types/commands/CreateAnnotationStoreVersionCommand.d.ts +132 -0
  47. package/dist-types/commands/CreateShareCommand.d.ts +100 -0
  48. package/dist-types/commands/DeleteAnnotationStoreVersionsCommand.d.ts +102 -0
  49. package/dist-types/commands/DeleteShareCommand.d.ts +96 -0
  50. package/dist-types/commands/GetAnnotationImportJobCommand.d.ts +1 -0
  51. package/dist-types/commands/GetAnnotationStoreCommand.d.ts +1 -0
  52. package/dist-types/commands/GetAnnotationStoreVersionCommand.d.ts +117 -0
  53. package/dist-types/commands/GetRunTaskCommand.d.ts +1 -0
  54. package/dist-types/commands/GetShareCommand.d.ts +106 -0
  55. package/dist-types/commands/ListAnnotationImportJobsCommand.d.ts +1 -0
  56. package/dist-types/commands/ListAnnotationStoreVersionsCommand.d.ts +110 -0
  57. package/dist-types/commands/ListRunTasksCommand.d.ts +1 -0
  58. package/dist-types/commands/ListSharesCommand.d.ts +119 -0
  59. package/dist-types/commands/StartAnnotationImportJobCommand.d.ts +1 -0
  60. package/dist-types/commands/UpdateAnnotationStoreVersionCommand.d.ts +99 -0
  61. package/dist-types/commands/index.d.ts +10 -0
  62. package/dist-types/models/models_0.d.ts +1021 -44
  63. package/dist-types/pagination/ListAnnotationStoreVersionsPaginator.d.ts +7 -0
  64. package/dist-types/pagination/ListSharesPaginator.d.ts +7 -0
  65. package/dist-types/pagination/index.d.ts +2 -0
  66. package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
  67. package/dist-types/ts3.4/Omics.d.ts +170 -0
  68. package/dist-types/ts3.4/OmicsClient.d.ts +60 -0
  69. package/dist-types/ts3.4/commands/AcceptShareCommand.d.ts +35 -0
  70. package/dist-types/ts3.4/commands/CreateAnnotationStoreVersionCommand.d.ts +42 -0
  71. package/dist-types/ts3.4/commands/CreateShareCommand.d.ts +35 -0
  72. package/dist-types/ts3.4/commands/DeleteAnnotationStoreVersionsCommand.d.ts +42 -0
  73. package/dist-types/ts3.4/commands/DeleteShareCommand.d.ts +35 -0
  74. package/dist-types/ts3.4/commands/GetAnnotationStoreVersionCommand.d.ts +42 -0
  75. package/dist-types/ts3.4/commands/GetShareCommand.d.ts +35 -0
  76. package/dist-types/ts3.4/commands/ListAnnotationStoreVersionsCommand.d.ts +42 -0
  77. package/dist-types/ts3.4/commands/ListSharesCommand.d.ts +35 -0
  78. package/dist-types/ts3.4/commands/UpdateAnnotationStoreVersionCommand.d.ts +42 -0
  79. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  80. package/dist-types/ts3.4/models/models_0.d.ts +199 -5
  81. package/dist-types/ts3.4/pagination/ListAnnotationStoreVersionsPaginator.d.ts +11 -0
  82. package/dist-types/ts3.4/pagination/ListSharesPaginator.d.ts +11 -0
  83. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  84. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +120 -0
  85. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  86. package/dist-types/ts3.4/waiters/waitForAnnotationStoreVersionCreated.d.ts +11 -0
  87. package/dist-types/ts3.4/waiters/waitForAnnotationStoreVersionDeleted.d.ts +11 -0
  88. package/dist-types/waiters/index.d.ts +2 -0
  89. package/dist-types/waiters/waitForAnnotationStoreVersionCreated.d.ts +14 -0
  90. package/dist-types/waiters/waitForAnnotationStoreVersionDeleted.d.ts +14 -0
  91. package/package.json +30 -30
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { de_UpdateAnnotationStoreVersionCommand, se_UpdateAnnotationStoreVersionCommand, } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class UpdateAnnotationStoreVersionCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateAnnotationStoreVersionCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "OmicsClient";
25
+ const commandName = "UpdateAnnotationStoreVersionCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_UpdateAnnotationStoreVersionCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_UpdateAnnotationStoreVersionCommand(output, context);
41
+ }
42
+ }
@@ -1,26 +1,32 @@
1
1
  export * from "./AbortMultipartReadSetUploadCommand";
2
+ export * from "./AcceptShareCommand";
2
3
  export * from "./BatchDeleteReadSetCommand";
3
4
  export * from "./CancelAnnotationImportJobCommand";
4
5
  export * from "./CancelRunCommand";
5
6
  export * from "./CancelVariantImportJobCommand";
6
7
  export * from "./CompleteMultipartReadSetUploadCommand";
7
8
  export * from "./CreateAnnotationStoreCommand";
9
+ export * from "./CreateAnnotationStoreVersionCommand";
8
10
  export * from "./CreateMultipartReadSetUploadCommand";
9
11
  export * from "./CreateReferenceStoreCommand";
10
12
  export * from "./CreateRunGroupCommand";
11
13
  export * from "./CreateSequenceStoreCommand";
14
+ export * from "./CreateShareCommand";
12
15
  export * from "./CreateVariantStoreCommand";
13
16
  export * from "./CreateWorkflowCommand";
14
17
  export * from "./DeleteAnnotationStoreCommand";
18
+ export * from "./DeleteAnnotationStoreVersionsCommand";
15
19
  export * from "./DeleteReferenceCommand";
16
20
  export * from "./DeleteReferenceStoreCommand";
17
21
  export * from "./DeleteRunCommand";
18
22
  export * from "./DeleteRunGroupCommand";
19
23
  export * from "./DeleteSequenceStoreCommand";
24
+ export * from "./DeleteShareCommand";
20
25
  export * from "./DeleteVariantStoreCommand";
21
26
  export * from "./DeleteWorkflowCommand";
22
27
  export * from "./GetAnnotationImportJobCommand";
23
28
  export * from "./GetAnnotationStoreCommand";
29
+ export * from "./GetAnnotationStoreVersionCommand";
24
30
  export * from "./GetReadSetActivationJobCommand";
25
31
  export * from "./GetReadSetCommand";
26
32
  export * from "./GetReadSetExportJobCommand";
@@ -34,10 +40,12 @@ export * from "./GetRunCommand";
34
40
  export * from "./GetRunGroupCommand";
35
41
  export * from "./GetRunTaskCommand";
36
42
  export * from "./GetSequenceStoreCommand";
43
+ export * from "./GetShareCommand";
37
44
  export * from "./GetVariantImportJobCommand";
38
45
  export * from "./GetVariantStoreCommand";
39
46
  export * from "./GetWorkflowCommand";
40
47
  export * from "./ListAnnotationImportJobsCommand";
48
+ export * from "./ListAnnotationStoreVersionsCommand";
41
49
  export * from "./ListAnnotationStoresCommand";
42
50
  export * from "./ListMultipartReadSetUploadsCommand";
43
51
  export * from "./ListReadSetActivationJobsCommand";
@@ -52,6 +60,7 @@ export * from "./ListRunGroupsCommand";
52
60
  export * from "./ListRunTasksCommand";
53
61
  export * from "./ListRunsCommand";
54
62
  export * from "./ListSequenceStoresCommand";
63
+ export * from "./ListSharesCommand";
55
64
  export * from "./ListTagsForResourceCommand";
56
65
  export * from "./ListVariantImportJobsCommand";
57
66
  export * from "./ListVariantStoresCommand";
@@ -66,6 +75,7 @@ export * from "./StartVariantImportJobCommand";
66
75
  export * from "./TagResourceCommand";
67
76
  export * from "./UntagResourceCommand";
68
77
  export * from "./UpdateAnnotationStoreCommand";
78
+ export * from "./UpdateAnnotationStoreVersionCommand";
69
79
  export * from "./UpdateRunGroupCommand";
70
80
  export * from "./UpdateVariantStoreCommand";
71
81
  export * from "./UpdateWorkflowCommand";
@@ -102,6 +102,26 @@ export class ValidationException extends __BaseException {
102
102
  export const Accelerators = {
103
103
  GPU: "GPU",
104
104
  };
105
+ export const ShareStatus = {
106
+ ACTIVATING: "ACTIVATING",
107
+ ACTIVE: "ACTIVE",
108
+ DELETED: "DELETED",
109
+ DELETING: "DELETING",
110
+ FAILED: "FAILED",
111
+ PENDING: "PENDING",
112
+ };
113
+ export class ConflictException extends __BaseException {
114
+ constructor(opts) {
115
+ super({
116
+ name: "ConflictException",
117
+ $fault: "client",
118
+ ...opts,
119
+ });
120
+ this.name = "ConflictException";
121
+ this.$fault = "client";
122
+ Object.setPrototypeOf(this, ConflictException.prototype);
123
+ }
124
+ }
105
125
  export const ReadSetActivationJobStatus = {
106
126
  CANCELLED: "CANCELLED",
107
127
  CANCELLING: "CANCELLING",
@@ -135,18 +155,6 @@ export var FormatOptions;
135
155
  return visitor._(value.$unknown[0], value.$unknown[1]);
136
156
  };
137
157
  })(FormatOptions || (FormatOptions = {}));
138
- export class ConflictException extends __BaseException {
139
- constructor(opts) {
140
- super({
141
- name: "ConflictException",
142
- $fault: "client",
143
- ...opts,
144
- });
145
- this.name = "ConflictException";
146
- this.$fault = "client";
147
- Object.setPrototypeOf(this, ConflictException.prototype);
148
- }
149
- }
150
158
  export var ReferenceItem;
151
159
  (function (ReferenceItem) {
152
160
  ReferenceItem.visit = (value, visitor) => {
@@ -203,6 +211,21 @@ export const StoreStatus = {
203
211
  FAILED: "FAILED",
204
212
  UPDATING: "UPDATING",
205
213
  };
214
+ export var VersionOptions;
215
+ (function (VersionOptions) {
216
+ VersionOptions.visit = (value, visitor) => {
217
+ if (value.tsvVersionOptions !== undefined)
218
+ return visitor.tsvVersionOptions(value.tsvVersionOptions);
219
+ return visitor._(value.$unknown[0], value.$unknown[1]);
220
+ };
221
+ })(VersionOptions || (VersionOptions = {}));
222
+ export const VersionStatus = {
223
+ ACTIVE: "ACTIVE",
224
+ CREATING: "CREATING",
225
+ DELETING: "DELETING",
226
+ FAILED: "FAILED",
227
+ UPDATING: "UPDATING",
228
+ };
206
229
  export const ReadSetPartSource = {
207
230
  SOURCE1: "SOURCE1",
208
231
  SOURCE2: "SOURCE2",
@@ -345,6 +368,10 @@ export const TaskStatus = {
345
368
  export const WorkflowExport = {
346
369
  DEFINITION: "DEFINITION",
347
370
  };
371
+ export const ResourceOwner = {
372
+ OTHER: "OTHER",
373
+ SELF: "SELF",
374
+ };
348
375
  export const GetReadSetResponseFilterSensitiveLog = (obj) => ({
349
376
  ...obj,
350
377
  });
@@ -0,0 +1,25 @@
1
+ import { ListAnnotationStoreVersionsCommand, } from "../commands/ListAnnotationStoreVersionsCommand";
2
+ import { OmicsClient } from "../OmicsClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListAnnotationStoreVersionsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListAnnotationStoreVersions(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 OmicsClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected Omics | OmicsClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.nextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { ListSharesCommand } from "../commands/ListSharesCommand";
2
+ import { OmicsClient } from "../OmicsClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListSharesCommand(input), ...args);
5
+ };
6
+ export async function* paginateListShares(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 OmicsClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected Omics | OmicsClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.nextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -1,5 +1,6 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListAnnotationImportJobsPaginator";
3
+ export * from "./ListAnnotationStoreVersionsPaginator";
3
4
  export * from "./ListAnnotationStoresPaginator";
4
5
  export * from "./ListMultipartReadSetUploadsPaginator";
5
6
  export * from "./ListReadSetActivationJobsPaginator";
@@ -14,6 +15,7 @@ export * from "./ListRunGroupsPaginator";
14
15
  export * from "./ListRunTasksPaginator";
15
16
  export * from "./ListRunsPaginator";
16
17
  export * from "./ListSequenceStoresPaginator";
18
+ export * from "./ListSharesPaginator";
17
19
  export * from "./ListVariantImportJobsPaginator";
18
20
  export * from "./ListVariantStoresPaginator";
19
21
  export * from "./ListWorkflowsPaginator";