@aws-sdk/client-iottwinmaker 3.454.0 → 3.458.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 (76) hide show
  1. package/README.md +83 -36
  2. package/dist-cjs/IoTTwinMaker.js +12 -0
  3. package/dist-cjs/commands/CancelMetadataTransferJobCommand.js +51 -0
  4. package/dist-cjs/commands/CreateMetadataTransferJobCommand.js +51 -0
  5. package/dist-cjs/commands/GetMetadataTransferJobCommand.js +51 -0
  6. package/dist-cjs/commands/ListComponentsCommand.js +51 -0
  7. package/dist-cjs/commands/ListMetadataTransferJobsCommand.js +51 -0
  8. package/dist-cjs/commands/ListPropertiesCommand.js +51 -0
  9. package/dist-cjs/commands/index.js +6 -0
  10. package/dist-cjs/models/models_0.js +60 -8
  11. package/dist-cjs/pagination/ListComponentsPaginator.js +29 -0
  12. package/dist-cjs/pagination/ListMetadataTransferJobsPaginator.js +29 -0
  13. package/dist-cjs/pagination/ListPropertiesPaginator.js +29 -0
  14. package/dist-cjs/pagination/index.js +3 -0
  15. package/dist-cjs/protocols/Aws_restJson1.js +570 -3
  16. package/dist-es/IoTTwinMaker.js +12 -0
  17. package/dist-es/commands/CancelMetadataTransferJobCommand.js +47 -0
  18. package/dist-es/commands/CreateMetadataTransferJobCommand.js +47 -0
  19. package/dist-es/commands/GetMetadataTransferJobCommand.js +47 -0
  20. package/dist-es/commands/ListComponentsCommand.js +47 -0
  21. package/dist-es/commands/ListMetadataTransferJobsCommand.js +47 -0
  22. package/dist-es/commands/ListPropertiesCommand.js +47 -0
  23. package/dist-es/commands/index.js +6 -0
  24. package/dist-es/models/models_0.js +59 -7
  25. package/dist-es/pagination/ListComponentsPaginator.js +25 -0
  26. package/dist-es/pagination/ListMetadataTransferJobsPaginator.js +25 -0
  27. package/dist-es/pagination/ListPropertiesPaginator.js +25 -0
  28. package/dist-es/pagination/index.js +3 -0
  29. package/dist-es/protocols/Aws_restJson1.js +556 -1
  30. package/dist-types/IoTTwinMaker.d.ts +43 -2
  31. package/dist-types/IoTTwinMakerClient.d.ts +9 -4
  32. package/dist-types/commands/BatchPutPropertyValuesCommand.d.ts +2 -0
  33. package/dist-types/commands/CancelMetadataTransferJobCommand.d.ts +107 -0
  34. package/dist-types/commands/CreateComponentTypeCommand.d.ts +5 -0
  35. package/dist-types/commands/CreateEntityCommand.d.ts +32 -0
  36. package/dist-types/commands/CreateMetadataTransferJobCommand.d.ts +153 -0
  37. package/dist-types/commands/CreateWorkspaceCommand.d.ts +2 -2
  38. package/dist-types/commands/DeleteWorkspaceCommand.d.ts +3 -1
  39. package/dist-types/commands/ExecuteQueryCommand.d.ts +4 -0
  40. package/dist-types/commands/GetComponentTypeCommand.d.ts +6 -0
  41. package/dist-types/commands/GetEntityCommand.d.ts +24 -0
  42. package/dist-types/commands/GetMetadataTransferJobCommand.d.ts +156 -0
  43. package/dist-types/commands/GetPropertyValueCommand.d.ts +2 -0
  44. package/dist-types/commands/GetPropertyValueHistoryCommand.d.ts +2 -0
  45. package/dist-types/commands/GetWorkspaceCommand.d.ts +5 -2
  46. package/dist-types/commands/ListComponentsCommand.d.ts +118 -0
  47. package/dist-types/commands/ListMetadataTransferJobsCommand.d.ts +116 -0
  48. package/dist-types/commands/ListPropertiesCommand.d.ts +167 -0
  49. package/dist-types/commands/ListWorkspacesCommand.d.ts +3 -0
  50. package/dist-types/commands/UpdateComponentTypeCommand.d.ts +5 -0
  51. package/dist-types/commands/UpdateEntityCommand.d.ts +33 -0
  52. package/dist-types/commands/UpdateWorkspaceCommand.d.ts +1 -0
  53. package/dist-types/commands/index.d.ts +6 -0
  54. package/dist-types/index.d.ts +1 -2
  55. package/dist-types/models/models_0.d.ts +1118 -143
  56. package/dist-types/pagination/ListComponentsPaginator.d.ts +7 -0
  57. package/dist-types/pagination/ListMetadataTransferJobsPaginator.d.ts +7 -0
  58. package/dist-types/pagination/ListPropertiesPaginator.d.ts +7 -0
  59. package/dist-types/pagination/index.d.ts +3 -0
  60. package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
  61. package/dist-types/ts3.4/IoTTwinMaker.d.ts +102 -0
  62. package/dist-types/ts3.4/IoTTwinMakerClient.d.ts +36 -0
  63. package/dist-types/ts3.4/commands/CancelMetadataTransferJobCommand.d.ts +42 -0
  64. package/dist-types/ts3.4/commands/CreateMetadataTransferJobCommand.d.ts +42 -0
  65. package/dist-types/ts3.4/commands/GetMetadataTransferJobCommand.d.ts +42 -0
  66. package/dist-types/ts3.4/commands/ListComponentsCommand.d.ts +38 -0
  67. package/dist-types/ts3.4/commands/ListMetadataTransferJobsCommand.d.ts +42 -0
  68. package/dist-types/ts3.4/commands/ListPropertiesCommand.d.ts +38 -0
  69. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  70. package/dist-types/ts3.4/models/models_0.d.ts +329 -24
  71. package/dist-types/ts3.4/pagination/ListComponentsPaginator.d.ts +11 -0
  72. package/dist-types/ts3.4/pagination/ListMetadataTransferJobsPaginator.d.ts +11 -0
  73. package/dist-types/ts3.4/pagination/ListPropertiesPaginator.d.ts +11 -0
  74. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  75. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
  76. package/package.json +3 -3
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListComponentsCommand = 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 types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class ListComponentsCommand 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, ListComponentsCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "IoTTwinMakerClient";
29
+ const commandName = "ListComponentsCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSIoTTwinMaker",
38
+ operation: "ListComponents",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_ListComponentsCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_ListComponentsCommand)(output, context);
49
+ }
50
+ }
51
+ exports.ListComponentsCommand = ListComponentsCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListMetadataTransferJobsCommand = 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 types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class ListMetadataTransferJobsCommand 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, ListMetadataTransferJobsCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "IoTTwinMakerClient";
29
+ const commandName = "ListMetadataTransferJobsCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSIoTTwinMaker",
38
+ operation: "ListMetadataTransferJobs",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_ListMetadataTransferJobsCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_ListMetadataTransferJobsCommand)(output, context);
49
+ }
50
+ }
51
+ exports.ListMetadataTransferJobsCommand = ListMetadataTransferJobsCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListPropertiesCommand = 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 types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class ListPropertiesCommand 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, ListPropertiesCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "IoTTwinMakerClient";
29
+ const commandName = "ListPropertiesCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSIoTTwinMaker",
38
+ operation: "ListProperties",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_ListPropertiesCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_ListPropertiesCommand)(output, context);
49
+ }
50
+ }
51
+ exports.ListPropertiesCommand = ListPropertiesCommand;
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./BatchPutPropertyValuesCommand"), exports);
5
+ tslib_1.__exportStar(require("./CancelMetadataTransferJobCommand"), exports);
5
6
  tslib_1.__exportStar(require("./CreateComponentTypeCommand"), exports);
6
7
  tslib_1.__exportStar(require("./CreateEntityCommand"), exports);
8
+ tslib_1.__exportStar(require("./CreateMetadataTransferJobCommand"), exports);
7
9
  tslib_1.__exportStar(require("./CreateSceneCommand"), exports);
8
10
  tslib_1.__exportStar(require("./CreateSyncJobCommand"), exports);
9
11
  tslib_1.__exportStar(require("./CreateWorkspaceCommand"), exports);
@@ -15,6 +17,7 @@ tslib_1.__exportStar(require("./DeleteWorkspaceCommand"), exports);
15
17
  tslib_1.__exportStar(require("./ExecuteQueryCommand"), exports);
16
18
  tslib_1.__exportStar(require("./GetComponentTypeCommand"), exports);
17
19
  tslib_1.__exportStar(require("./GetEntityCommand"), exports);
20
+ tslib_1.__exportStar(require("./GetMetadataTransferJobCommand"), exports);
18
21
  tslib_1.__exportStar(require("./GetPricingPlanCommand"), exports);
19
22
  tslib_1.__exportStar(require("./GetPropertyValueCommand"), exports);
20
23
  tslib_1.__exportStar(require("./GetPropertyValueHistoryCommand"), exports);
@@ -22,7 +25,10 @@ tslib_1.__exportStar(require("./GetSceneCommand"), exports);
22
25
  tslib_1.__exportStar(require("./GetSyncJobCommand"), exports);
23
26
  tslib_1.__exportStar(require("./GetWorkspaceCommand"), exports);
24
27
  tslib_1.__exportStar(require("./ListComponentTypesCommand"), exports);
28
+ tslib_1.__exportStar(require("./ListComponentsCommand"), exports);
25
29
  tslib_1.__exportStar(require("./ListEntitiesCommand"), exports);
30
+ tslib_1.__exportStar(require("./ListMetadataTransferJobsCommand"), exports);
31
+ tslib_1.__exportStar(require("./ListPropertiesCommand"), exports);
26
32
  tslib_1.__exportStar(require("./ListScenesCommand"), exports);
27
33
  tslib_1.__exportStar(require("./ListSyncJobsCommand"), exports);
28
34
  tslib_1.__exportStar(require("./ListSyncResourcesCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ParentEntityUpdateType = exports.ComponentUpdateType = exports.TooManyTagsException = exports.SyncResourceFilter = exports.SyncResourceState = exports.SyncResourceType = exports.ListEntitiesFilter = exports.ListComponentTypesFilter = exports.SceneErrorCode = exports.OrderByTime = exports.InterpolationType = exports.Order = exports.ConnectorTimeoutException = exports.ConnectorFailureException = exports.UpdateReason = exports.PricingMode = exports.PricingTier = exports.ErrorCode = exports.QueryTimeoutException = exports.ColumnType = exports.SyncJobState = exports.PropertyGroupUpdateType = exports.PropertyUpdateType = exports.ServiceQuotaExceededException = exports.State = exports.GroupType = exports.Type = exports.Scope = exports.ConflictException = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.AccessDeniedException = void 0;
3
+ exports.ParentEntityUpdateType = exports.ComponentUpdateType = exports.TooManyTagsException = exports.SyncResourceFilter = exports.SyncResourceState = exports.SyncResourceType = exports.ListMetadataTransferJobsFilter = exports.ListEntitiesFilter = exports.ListComponentTypesFilter = exports.SceneErrorCode = exports.OrderByTime = exports.InterpolationType = exports.Order = exports.ConnectorTimeoutException = exports.ConnectorFailureException = exports.UpdateReason = exports.PricingMode = exports.PricingTier = exports.QueryTimeoutException = exports.ColumnType = exports.SyncJobState = exports.SourceType = exports.IotTwinMakerSourceConfigurationFilter = exports.IotSiteWiseSourceConfigurationFilter = exports.DestinationType = exports.PropertyGroupUpdateType = exports.PropertyUpdateType = exports.ServiceQuotaExceededException = exports.State = exports.GroupType = exports.Type = exports.Scope = exports.ConflictException = exports.MetadataTransferJobState = exports.ErrorCode = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.AccessDeniedException = void 0;
4
4
  const IoTTwinMakerServiceException_1 = require("./IoTTwinMakerServiceException");
5
5
  class AccessDeniedException extends IoTTwinMakerServiceException_1.IoTTwinMakerServiceException {
6
6
  constructor(opts) {
@@ -67,6 +67,25 @@ class ValidationException extends IoTTwinMakerServiceException_1.IoTTwinMakerSer
67
67
  }
68
68
  }
69
69
  exports.ValidationException = ValidationException;
70
+ exports.ErrorCode = {
71
+ COMPOSITE_COMPONENT_FAILURE: "COMPOSITE_COMPONENT_FAILURE",
72
+ INTERNAL_FAILURE: "INTERNAL_FAILURE",
73
+ PROCESSING_ERROR: "PROCESSING_ERROR",
74
+ SYNC_CREATING_ERROR: "SYNC_CREATING_ERROR",
75
+ SYNC_DELETING_ERROR: "SYNC_DELETING_ERROR",
76
+ SYNC_INITIALIZING_ERROR: "SYNC_INITIALIZING_ERROR",
77
+ SYNC_PROCESSING_ERROR: "SYNC_PROCESSING_ERROR",
78
+ VALIDATION_ERROR: "VALIDATION_ERROR",
79
+ };
80
+ exports.MetadataTransferJobState = {
81
+ CANCELLED: "CANCELLED",
82
+ CANCELLING: "CANCELLING",
83
+ COMPLETED: "COMPLETED",
84
+ ERROR: "ERROR",
85
+ PENDING: "PENDING",
86
+ RUNNING: "RUNNING",
87
+ VALIDATING: "VALIDATING",
88
+ };
70
89
  class ConflictException extends IoTTwinMakerServiceException_1.IoTTwinMakerServiceException {
71
90
  constructor(opts) {
72
91
  super({
@@ -127,6 +146,36 @@ exports.PropertyGroupUpdateType = {
127
146
  DELETE: "DELETE",
128
147
  UPDATE: "UPDATE",
129
148
  };
149
+ exports.DestinationType = {
150
+ IOTSITEWISE: "iotsitewise",
151
+ IOTTWINMAKER: "iottwinmaker",
152
+ S3: "s3",
153
+ };
154
+ var IotSiteWiseSourceConfigurationFilter;
155
+ (function (IotSiteWiseSourceConfigurationFilter) {
156
+ IotSiteWiseSourceConfigurationFilter.visit = (value, visitor) => {
157
+ if (value.filterByAssetModel !== undefined)
158
+ return visitor.filterByAssetModel(value.filterByAssetModel);
159
+ if (value.filterByAsset !== undefined)
160
+ return visitor.filterByAsset(value.filterByAsset);
161
+ return visitor._(value.$unknown[0], value.$unknown[1]);
162
+ };
163
+ })(IotSiteWiseSourceConfigurationFilter = exports.IotSiteWiseSourceConfigurationFilter || (exports.IotSiteWiseSourceConfigurationFilter = {}));
164
+ var IotTwinMakerSourceConfigurationFilter;
165
+ (function (IotTwinMakerSourceConfigurationFilter) {
166
+ IotTwinMakerSourceConfigurationFilter.visit = (value, visitor) => {
167
+ if (value.filterByComponentType !== undefined)
168
+ return visitor.filterByComponentType(value.filterByComponentType);
169
+ if (value.filterByEntity !== undefined)
170
+ return visitor.filterByEntity(value.filterByEntity);
171
+ return visitor._(value.$unknown[0], value.$unknown[1]);
172
+ };
173
+ })(IotTwinMakerSourceConfigurationFilter = exports.IotTwinMakerSourceConfigurationFilter || (exports.IotTwinMakerSourceConfigurationFilter = {}));
174
+ exports.SourceType = {
175
+ IOTSITEWISE: "iotsitewise",
176
+ IOTTWINMAKER: "iottwinmaker",
177
+ S3: "s3",
178
+ };
130
179
  exports.SyncJobState = {
131
180
  ACTIVE: "ACTIVE",
132
181
  CREATING: "CREATING",
@@ -153,13 +202,6 @@ class QueryTimeoutException extends IoTTwinMakerServiceException_1.IoTTwinMakerS
153
202
  }
154
203
  }
155
204
  exports.QueryTimeoutException = QueryTimeoutException;
156
- exports.ErrorCode = {
157
- INTERNAL_FAILURE: "INTERNAL_FAILURE",
158
- SYNC_CREATING_ERROR: "SYNC_CREATING_ERROR",
159
- SYNC_INITIALIZING_ERROR: "SYNC_INITIALIZING_ERROR",
160
- SYNC_PROCESSING_ERROR: "SYNC_PROCESSING_ERROR",
161
- VALIDATION_ERROR: "VALIDATION_ERROR",
162
- };
163
205
  exports.PricingTier = {
164
206
  TIER_1: "TIER_1",
165
207
  TIER_2: "TIER_2",
@@ -242,6 +284,16 @@ var ListEntitiesFilter;
242
284
  return visitor._(value.$unknown[0], value.$unknown[1]);
243
285
  };
244
286
  })(ListEntitiesFilter = exports.ListEntitiesFilter || (exports.ListEntitiesFilter = {}));
287
+ var ListMetadataTransferJobsFilter;
288
+ (function (ListMetadataTransferJobsFilter) {
289
+ ListMetadataTransferJobsFilter.visit = (value, visitor) => {
290
+ if (value.workspaceId !== undefined)
291
+ return visitor.workspaceId(value.workspaceId);
292
+ if (value.state !== undefined)
293
+ return visitor.state(value.state);
294
+ return visitor._(value.$unknown[0], value.$unknown[1]);
295
+ };
296
+ })(ListMetadataTransferJobsFilter = exports.ListMetadataTransferJobsFilter || (exports.ListMetadataTransferJobsFilter = {}));
245
297
  exports.SyncResourceType = {
246
298
  COMPONENT_TYPE: "COMPONENT_TYPE",
247
299
  ENTITY: "ENTITY",
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListComponents = void 0;
4
+ const ListComponentsCommand_1 = require("../commands/ListComponentsCommand");
5
+ const IoTTwinMakerClient_1 = require("../IoTTwinMakerClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListComponentsCommand_1.ListComponentsCommand(input), ...args);
8
+ };
9
+ async function* paginateListComponents(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 IoTTwinMakerClient_1.IoTTwinMakerClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
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.paginateListComponents = paginateListComponents;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListMetadataTransferJobs = void 0;
4
+ const ListMetadataTransferJobsCommand_1 = require("../commands/ListMetadataTransferJobsCommand");
5
+ const IoTTwinMakerClient_1 = require("../IoTTwinMakerClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListMetadataTransferJobsCommand_1.ListMetadataTransferJobsCommand(input), ...args);
8
+ };
9
+ async function* paginateListMetadataTransferJobs(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 IoTTwinMakerClient_1.IoTTwinMakerClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
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.paginateListMetadataTransferJobs = paginateListMetadataTransferJobs;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListProperties = void 0;
4
+ const ListPropertiesCommand_1 = require("../commands/ListPropertiesCommand");
5
+ const IoTTwinMakerClient_1 = require("../IoTTwinMakerClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListPropertiesCommand_1.ListPropertiesCommand(input), ...args);
8
+ };
9
+ async function* paginateListProperties(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 IoTTwinMakerClient_1.IoTTwinMakerClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
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.paginateListProperties = paginateListProperties;
@@ -6,7 +6,10 @@ tslib_1.__exportStar(require("./GetPropertyValueHistoryPaginator"), exports);
6
6
  tslib_1.__exportStar(require("./GetPropertyValuePaginator"), exports);
7
7
  tslib_1.__exportStar(require("./Interfaces"), exports);
8
8
  tslib_1.__exportStar(require("./ListComponentTypesPaginator"), exports);
9
+ tslib_1.__exportStar(require("./ListComponentsPaginator"), exports);
9
10
  tslib_1.__exportStar(require("./ListEntitiesPaginator"), exports);
11
+ tslib_1.__exportStar(require("./ListMetadataTransferJobsPaginator"), exports);
12
+ tslib_1.__exportStar(require("./ListPropertiesPaginator"), exports);
10
13
  tslib_1.__exportStar(require("./ListScenesPaginator"), exports);
11
14
  tslib_1.__exportStar(require("./ListSyncJobsPaginator"), exports);
12
15
  tslib_1.__exportStar(require("./ListSyncResourcesPaginator"), exports);