@aws-sdk/client-iot-wireless 3.45.0 → 3.46.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/CHANGELOG.md +18 -0
- package/README.md +11 -1
- package/dist-cjs/IoTWireless.js +30 -0
- package/dist-cjs/commands/DeleteQueuedMessagesCommand.js +36 -0
- package/dist-cjs/commands/ListQueuedMessagesCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +41 -11
- package/dist-cjs/pagination/ListQueuedMessagesPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +252 -4
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-es/IoTWireless.js +30 -0
- package/dist-es/commands/DeleteQueuedMessagesCommand.js +39 -0
- package/dist-es/commands/ListQueuedMessagesCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +24 -4
- package/dist-es/pagination/ListQueuedMessagesPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +277 -0
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/IoTWireless.d.ts +25 -1
- package/dist-types/IoTWirelessClient.d.ts +15 -3
- package/dist-types/commands/DeleteQueuedMessagesCommand.d.ts +35 -0
- package/dist-types/commands/ListQueuedMessagesCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +110 -15
- package/dist-types/pagination/ListQueuedMessagesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/IoTWireless.d.ts +10 -0
- package/dist-types/ts3.4/IoTWirelessClient.d.ts +4 -2
- package/dist-types/ts3.4/commands/DeleteQueuedMessagesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListQueuedMessagesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +66 -9
- package/dist-types/ts3.4/pagination/ListQueuedMessagesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
- package/package.json +36 -43
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.deserializeAws_restJson1UpdateWirelessGatewayCommand = exports.deserializeAws_restJson1UpdateWirelessDeviceCommand = exports.deserializeAws_restJson1UpdateResourceEventConfigurationCommand = exports.deserializeAws_restJson1UpdatePartnerAccountCommand = exports.deserializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand = exports.deserializeAws_restJson1UpdateMulticastGroupCommand = exports.deserializeAws_restJson1UpdateLogLevelsByResourceTypesCommand = exports.deserializeAws_restJson1UpdateFuotaTaskCommand = exports.deserializeAws_restJson1UpdateDestinationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TestWirelessDeviceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartMulticastGroupSessionCommand = exports.deserializeAws_restJson1StartFuotaTaskCommand = exports.deserializeAws_restJson1StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand = exports.deserializeAws_restJson1StartBulkAssociateWirelessDeviceWithMulticastGroupCommand = exports.deserializeAws_restJson1SendDataToWirelessDeviceCommand = exports.deserializeAws_restJson1SendDataToMulticastGroupCommand = exports.deserializeAws_restJson1ResetResourceLogLevelCommand = exports.deserializeAws_restJson1ResetAllResourceLogLevelsCommand = void 0;
|
|
3
|
+
exports.serializeAws_restJson1GetWirelessGatewayCertificateCommand = exports.serializeAws_restJson1GetWirelessGatewayCommand = exports.serializeAws_restJson1GetWirelessDeviceStatisticsCommand = exports.serializeAws_restJson1GetWirelessDeviceCommand = exports.serializeAws_restJson1GetServiceProfileCommand = exports.serializeAws_restJson1GetServiceEndpointCommand = exports.serializeAws_restJson1GetResourceLogLevelCommand = exports.serializeAws_restJson1GetResourceEventConfigurationCommand = exports.serializeAws_restJson1GetPartnerAccountCommand = exports.serializeAws_restJson1GetNetworkAnalyzerConfigurationCommand = exports.serializeAws_restJson1GetMulticastGroupSessionCommand = exports.serializeAws_restJson1GetMulticastGroupCommand = exports.serializeAws_restJson1GetLogLevelsByResourceTypesCommand = exports.serializeAws_restJson1GetFuotaTaskCommand = exports.serializeAws_restJson1GetDeviceProfileCommand = exports.serializeAws_restJson1GetDestinationCommand = exports.serializeAws_restJson1DisassociateWirelessGatewayFromThingCommand = exports.serializeAws_restJson1DisassociateWirelessGatewayFromCertificateCommand = exports.serializeAws_restJson1DisassociateWirelessDeviceFromThingCommand = exports.serializeAws_restJson1DisassociateWirelessDeviceFromMulticastGroupCommand = exports.serializeAws_restJson1DisassociateWirelessDeviceFromFuotaTaskCommand = exports.serializeAws_restJson1DisassociateMulticastGroupFromFuotaTaskCommand = exports.serializeAws_restJson1DisassociateAwsAccountFromPartnerAccountCommand = exports.serializeAws_restJson1DeleteWirelessGatewayTaskDefinitionCommand = exports.serializeAws_restJson1DeleteWirelessGatewayTaskCommand = exports.serializeAws_restJson1DeleteWirelessGatewayCommand = exports.serializeAws_restJson1DeleteWirelessDeviceCommand = exports.serializeAws_restJson1DeleteServiceProfileCommand = exports.serializeAws_restJson1DeleteQueuedMessagesCommand = exports.serializeAws_restJson1DeleteMulticastGroupCommand = exports.serializeAws_restJson1DeleteFuotaTaskCommand = exports.serializeAws_restJson1DeleteDeviceProfileCommand = exports.serializeAws_restJson1DeleteDestinationCommand = exports.serializeAws_restJson1CreateWirelessGatewayTaskDefinitionCommand = exports.serializeAws_restJson1CreateWirelessGatewayTaskCommand = exports.serializeAws_restJson1CreateWirelessGatewayCommand = exports.serializeAws_restJson1CreateWirelessDeviceCommand = exports.serializeAws_restJson1CreateServiceProfileCommand = exports.serializeAws_restJson1CreateMulticastGroupCommand = exports.serializeAws_restJson1CreateFuotaTaskCommand = exports.serializeAws_restJson1CreateDeviceProfileCommand = exports.serializeAws_restJson1CreateDestinationCommand = exports.serializeAws_restJson1CancelMulticastGroupSessionCommand = exports.serializeAws_restJson1AssociateWirelessGatewayWithThingCommand = exports.serializeAws_restJson1AssociateWirelessGatewayWithCertificateCommand = exports.serializeAws_restJson1AssociateWirelessDeviceWithThingCommand = exports.serializeAws_restJson1AssociateWirelessDeviceWithMulticastGroupCommand = exports.serializeAws_restJson1AssociateWirelessDeviceWithFuotaTaskCommand = exports.serializeAws_restJson1AssociateMulticastGroupWithFuotaTaskCommand = exports.serializeAws_restJson1AssociateAwsAccountWithPartnerAccountCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1CreateServiceProfileCommand = exports.deserializeAws_restJson1CreateMulticastGroupCommand = exports.deserializeAws_restJson1CreateFuotaTaskCommand = exports.deserializeAws_restJson1CreateDeviceProfileCommand = exports.deserializeAws_restJson1CreateDestinationCommand = exports.deserializeAws_restJson1CancelMulticastGroupSessionCommand = exports.deserializeAws_restJson1AssociateWirelessGatewayWithThingCommand = exports.deserializeAws_restJson1AssociateWirelessGatewayWithCertificateCommand = exports.deserializeAws_restJson1AssociateWirelessDeviceWithThingCommand = exports.deserializeAws_restJson1AssociateWirelessDeviceWithMulticastGroupCommand = exports.deserializeAws_restJson1AssociateWirelessDeviceWithFuotaTaskCommand = exports.deserializeAws_restJson1AssociateMulticastGroupWithFuotaTaskCommand = exports.deserializeAws_restJson1AssociateAwsAccountWithPartnerAccountCommand = exports.serializeAws_restJson1UpdateWirelessGatewayCommand = exports.serializeAws_restJson1UpdateWirelessDeviceCommand = exports.serializeAws_restJson1UpdateResourceEventConfigurationCommand = exports.serializeAws_restJson1UpdatePartnerAccountCommand = exports.serializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand = exports.serializeAws_restJson1UpdateMulticastGroupCommand = exports.serializeAws_restJson1UpdateLogLevelsByResourceTypesCommand = exports.serializeAws_restJson1UpdateFuotaTaskCommand = exports.serializeAws_restJson1UpdateDestinationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TestWirelessDeviceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartMulticastGroupSessionCommand = exports.serializeAws_restJson1StartFuotaTaskCommand = exports.serializeAws_restJson1StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand = exports.serializeAws_restJson1StartBulkAssociateWirelessDeviceWithMulticastGroupCommand = exports.serializeAws_restJson1SendDataToWirelessDeviceCommand = exports.serializeAws_restJson1SendDataToMulticastGroupCommand = exports.serializeAws_restJson1ResetResourceLogLevelCommand = exports.serializeAws_restJson1ResetAllResourceLogLevelsCommand = exports.serializeAws_restJson1PutResourceLogLevelCommand = exports.serializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommand = exports.serializeAws_restJson1ListWirelessGatewaysCommand = exports.serializeAws_restJson1ListWirelessDevicesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListServiceProfilesCommand = exports.serializeAws_restJson1ListQueuedMessagesCommand = exports.serializeAws_restJson1ListPartnerAccountsCommand = exports.serializeAws_restJson1ListMulticastGroupsByFuotaTaskCommand = exports.serializeAws_restJson1ListMulticastGroupsCommand = exports.serializeAws_restJson1ListFuotaTasksCommand = exports.serializeAws_restJson1ListDeviceProfilesCommand = exports.serializeAws_restJson1ListDestinationsCommand = exports.serializeAws_restJson1GetWirelessGatewayTaskDefinitionCommand = exports.serializeAws_restJson1GetWirelessGatewayTaskCommand = exports.serializeAws_restJson1GetWirelessGatewayStatisticsCommand = exports.serializeAws_restJson1GetWirelessGatewayFirmwareInformationCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListServiceProfilesCommand = exports.deserializeAws_restJson1ListQueuedMessagesCommand = exports.deserializeAws_restJson1ListPartnerAccountsCommand = exports.deserializeAws_restJson1ListMulticastGroupsByFuotaTaskCommand = exports.deserializeAws_restJson1ListMulticastGroupsCommand = exports.deserializeAws_restJson1ListFuotaTasksCommand = exports.deserializeAws_restJson1ListDeviceProfilesCommand = exports.deserializeAws_restJson1ListDestinationsCommand = exports.deserializeAws_restJson1GetWirelessGatewayTaskDefinitionCommand = exports.deserializeAws_restJson1GetWirelessGatewayTaskCommand = exports.deserializeAws_restJson1GetWirelessGatewayStatisticsCommand = exports.deserializeAws_restJson1GetWirelessGatewayFirmwareInformationCommand = exports.deserializeAws_restJson1GetWirelessGatewayCertificateCommand = exports.deserializeAws_restJson1GetWirelessGatewayCommand = exports.deserializeAws_restJson1GetWirelessDeviceStatisticsCommand = exports.deserializeAws_restJson1GetWirelessDeviceCommand = exports.deserializeAws_restJson1GetServiceProfileCommand = exports.deserializeAws_restJson1GetServiceEndpointCommand = exports.deserializeAws_restJson1GetResourceLogLevelCommand = exports.deserializeAws_restJson1GetResourceEventConfigurationCommand = exports.deserializeAws_restJson1GetPartnerAccountCommand = exports.deserializeAws_restJson1GetNetworkAnalyzerConfigurationCommand = exports.deserializeAws_restJson1GetMulticastGroupSessionCommand = exports.deserializeAws_restJson1GetMulticastGroupCommand = exports.deserializeAws_restJson1GetLogLevelsByResourceTypesCommand = exports.deserializeAws_restJson1GetFuotaTaskCommand = exports.deserializeAws_restJson1GetDeviceProfileCommand = exports.deserializeAws_restJson1GetDestinationCommand = exports.deserializeAws_restJson1DisassociateWirelessGatewayFromThingCommand = exports.deserializeAws_restJson1DisassociateWirelessGatewayFromCertificateCommand = exports.deserializeAws_restJson1DisassociateWirelessDeviceFromThingCommand = exports.deserializeAws_restJson1DisassociateWirelessDeviceFromMulticastGroupCommand = exports.deserializeAws_restJson1DisassociateWirelessDeviceFromFuotaTaskCommand = exports.deserializeAws_restJson1DisassociateMulticastGroupFromFuotaTaskCommand = exports.deserializeAws_restJson1DisassociateAwsAccountFromPartnerAccountCommand = exports.deserializeAws_restJson1DeleteWirelessGatewayTaskDefinitionCommand = exports.deserializeAws_restJson1DeleteWirelessGatewayTaskCommand = exports.deserializeAws_restJson1DeleteWirelessGatewayCommand = exports.deserializeAws_restJson1DeleteWirelessDeviceCommand = exports.deserializeAws_restJson1DeleteServiceProfileCommand = exports.deserializeAws_restJson1DeleteQueuedMessagesCommand = exports.deserializeAws_restJson1DeleteMulticastGroupCommand = exports.deserializeAws_restJson1DeleteFuotaTaskCommand = exports.deserializeAws_restJson1DeleteDeviceProfileCommand = exports.deserializeAws_restJson1DeleteDestinationCommand = exports.deserializeAws_restJson1CreateWirelessGatewayTaskDefinitionCommand = exports.deserializeAws_restJson1CreateWirelessGatewayTaskCommand = exports.deserializeAws_restJson1CreateWirelessGatewayCommand = exports.deserializeAws_restJson1CreateWirelessDeviceCommand = void 0;
|
|
6
|
+
exports.deserializeAws_restJson1UpdateWirelessGatewayCommand = exports.deserializeAws_restJson1UpdateWirelessDeviceCommand = exports.deserializeAws_restJson1UpdateResourceEventConfigurationCommand = exports.deserializeAws_restJson1UpdatePartnerAccountCommand = exports.deserializeAws_restJson1UpdateNetworkAnalyzerConfigurationCommand = exports.deserializeAws_restJson1UpdateMulticastGroupCommand = exports.deserializeAws_restJson1UpdateLogLevelsByResourceTypesCommand = exports.deserializeAws_restJson1UpdateFuotaTaskCommand = exports.deserializeAws_restJson1UpdateDestinationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TestWirelessDeviceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartMulticastGroupSessionCommand = exports.deserializeAws_restJson1StartFuotaTaskCommand = exports.deserializeAws_restJson1StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand = exports.deserializeAws_restJson1StartBulkAssociateWirelessDeviceWithMulticastGroupCommand = exports.deserializeAws_restJson1SendDataToWirelessDeviceCommand = exports.deserializeAws_restJson1SendDataToMulticastGroupCommand = exports.deserializeAws_restJson1ResetResourceLogLevelCommand = exports.deserializeAws_restJson1ResetAllResourceLogLevelsCommand = exports.deserializeAws_restJson1PutResourceLogLevelCommand = exports.deserializeAws_restJson1ListWirelessGatewayTaskDefinitionsCommand = exports.deserializeAws_restJson1ListWirelessGatewaysCommand = exports.deserializeAws_restJson1ListWirelessDevicesCommand = void 0;
|
|
7
7
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
8
8
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
9
9
|
const uuid_1 = require("uuid");
|
|
@@ -621,6 +621,37 @@ const serializeAws_restJson1DeleteMulticastGroupCommand = async (input, context)
|
|
|
621
621
|
});
|
|
622
622
|
};
|
|
623
623
|
exports.serializeAws_restJson1DeleteMulticastGroupCommand = serializeAws_restJson1DeleteMulticastGroupCommand;
|
|
624
|
+
const serializeAws_restJson1DeleteQueuedMessagesCommand = async (input, context) => {
|
|
625
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
626
|
+
const headers = {};
|
|
627
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}/data";
|
|
628
|
+
if (input.Id !== undefined) {
|
|
629
|
+
const labelValue = input.Id;
|
|
630
|
+
if (labelValue.length <= 0) {
|
|
631
|
+
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
632
|
+
}
|
|
633
|
+
resolvedPath = resolvedPath.replace("{Id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
634
|
+
}
|
|
635
|
+
else {
|
|
636
|
+
throw new Error("No value provided for input HTTP label: Id.");
|
|
637
|
+
}
|
|
638
|
+
const query = {
|
|
639
|
+
...(input.MessageId !== undefined && { messageId: input.MessageId }),
|
|
640
|
+
...(input.WirelessDeviceType !== undefined && { WirelessDeviceType: input.WirelessDeviceType }),
|
|
641
|
+
};
|
|
642
|
+
let body;
|
|
643
|
+
return new protocol_http_1.HttpRequest({
|
|
644
|
+
protocol,
|
|
645
|
+
hostname,
|
|
646
|
+
port,
|
|
647
|
+
method: "DELETE",
|
|
648
|
+
headers,
|
|
649
|
+
path: resolvedPath,
|
|
650
|
+
query,
|
|
651
|
+
body,
|
|
652
|
+
});
|
|
653
|
+
};
|
|
654
|
+
exports.serializeAws_restJson1DeleteQueuedMessagesCommand = serializeAws_restJson1DeleteQueuedMessagesCommand;
|
|
624
655
|
const serializeAws_restJson1DeleteServiceProfileCommand = async (input, context) => {
|
|
625
656
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
626
657
|
const headers = {};
|
|
@@ -1638,6 +1669,38 @@ const serializeAws_restJson1ListPartnerAccountsCommand = async (input, context)
|
|
|
1638
1669
|
});
|
|
1639
1670
|
};
|
|
1640
1671
|
exports.serializeAws_restJson1ListPartnerAccountsCommand = serializeAws_restJson1ListPartnerAccountsCommand;
|
|
1672
|
+
const serializeAws_restJson1ListQueuedMessagesCommand = async (input, context) => {
|
|
1673
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1674
|
+
const headers = {};
|
|
1675
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}/data";
|
|
1676
|
+
if (input.Id !== undefined) {
|
|
1677
|
+
const labelValue = input.Id;
|
|
1678
|
+
if (labelValue.length <= 0) {
|
|
1679
|
+
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
1680
|
+
}
|
|
1681
|
+
resolvedPath = resolvedPath.replace("{Id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1682
|
+
}
|
|
1683
|
+
else {
|
|
1684
|
+
throw new Error("No value provided for input HTTP label: Id.");
|
|
1685
|
+
}
|
|
1686
|
+
const query = {
|
|
1687
|
+
...(input.NextToken !== undefined && { nextToken: input.NextToken }),
|
|
1688
|
+
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
1689
|
+
...(input.WirelessDeviceType !== undefined && { WirelessDeviceType: input.WirelessDeviceType }),
|
|
1690
|
+
};
|
|
1691
|
+
let body;
|
|
1692
|
+
return new protocol_http_1.HttpRequest({
|
|
1693
|
+
protocol,
|
|
1694
|
+
hostname,
|
|
1695
|
+
port,
|
|
1696
|
+
method: "GET",
|
|
1697
|
+
headers,
|
|
1698
|
+
path: resolvedPath,
|
|
1699
|
+
query,
|
|
1700
|
+
body,
|
|
1701
|
+
});
|
|
1702
|
+
};
|
|
1703
|
+
exports.serializeAws_restJson1ListQueuedMessagesCommand = serializeAws_restJson1ListQueuedMessagesCommand;
|
|
1641
1704
|
const serializeAws_restJson1ListServiceProfilesCommand = async (input, context) => {
|
|
1642
1705
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1643
1706
|
const headers = {};
|
|
@@ -4262,6 +4325,82 @@ const deserializeAws_restJson1DeleteMulticastGroupCommandError = async (output,
|
|
|
4262
4325
|
delete response.Message;
|
|
4263
4326
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
4264
4327
|
};
|
|
4328
|
+
const deserializeAws_restJson1DeleteQueuedMessagesCommand = async (output, context) => {
|
|
4329
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
4330
|
+
return deserializeAws_restJson1DeleteQueuedMessagesCommandError(output, context);
|
|
4331
|
+
}
|
|
4332
|
+
const contents = {
|
|
4333
|
+
$metadata: deserializeMetadata(output),
|
|
4334
|
+
};
|
|
4335
|
+
await collectBody(output.body, context);
|
|
4336
|
+
return Promise.resolve(contents);
|
|
4337
|
+
};
|
|
4338
|
+
exports.deserializeAws_restJson1DeleteQueuedMessagesCommand = deserializeAws_restJson1DeleteQueuedMessagesCommand;
|
|
4339
|
+
const deserializeAws_restJson1DeleteQueuedMessagesCommandError = async (output, context) => {
|
|
4340
|
+
const parsedOutput = {
|
|
4341
|
+
...output,
|
|
4342
|
+
body: await parseBody(output.body, context),
|
|
4343
|
+
};
|
|
4344
|
+
let response;
|
|
4345
|
+
let errorCode = "UnknownError";
|
|
4346
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4347
|
+
switch (errorCode) {
|
|
4348
|
+
case "AccessDeniedException":
|
|
4349
|
+
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
4350
|
+
response = {
|
|
4351
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4352
|
+
name: errorCode,
|
|
4353
|
+
$metadata: deserializeMetadata(output),
|
|
4354
|
+
};
|
|
4355
|
+
break;
|
|
4356
|
+
case "InternalServerException":
|
|
4357
|
+
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4358
|
+
response = {
|
|
4359
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4360
|
+
name: errorCode,
|
|
4361
|
+
$metadata: deserializeMetadata(output),
|
|
4362
|
+
};
|
|
4363
|
+
break;
|
|
4364
|
+
case "ResourceNotFoundException":
|
|
4365
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
4366
|
+
response = {
|
|
4367
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4368
|
+
name: errorCode,
|
|
4369
|
+
$metadata: deserializeMetadata(output),
|
|
4370
|
+
};
|
|
4371
|
+
break;
|
|
4372
|
+
case "ThrottlingException":
|
|
4373
|
+
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4374
|
+
response = {
|
|
4375
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4376
|
+
name: errorCode,
|
|
4377
|
+
$metadata: deserializeMetadata(output),
|
|
4378
|
+
};
|
|
4379
|
+
break;
|
|
4380
|
+
case "ValidationException":
|
|
4381
|
+
case "com.amazonaws.iotwireless#ValidationException":
|
|
4382
|
+
response = {
|
|
4383
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4384
|
+
name: errorCode,
|
|
4385
|
+
$metadata: deserializeMetadata(output),
|
|
4386
|
+
};
|
|
4387
|
+
break;
|
|
4388
|
+
default:
|
|
4389
|
+
const parsedBody = parsedOutput.body;
|
|
4390
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4391
|
+
response = {
|
|
4392
|
+
...parsedBody,
|
|
4393
|
+
name: `${errorCode}`,
|
|
4394
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4395
|
+
$fault: "client",
|
|
4396
|
+
$metadata: deserializeMetadata(output),
|
|
4397
|
+
};
|
|
4398
|
+
}
|
|
4399
|
+
const message = response.message || response.Message || errorCode;
|
|
4400
|
+
response.message = message;
|
|
4401
|
+
delete response.Message;
|
|
4402
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4403
|
+
};
|
|
4265
4404
|
const deserializeAws_restJson1DeleteServiceProfileCommand = async (output, context) => {
|
|
4266
4405
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
4267
4406
|
return deserializeAws_restJson1DeleteServiceProfileCommandError(output, context);
|
|
@@ -7490,6 +7629,90 @@ const deserializeAws_restJson1ListPartnerAccountsCommandError = async (output, c
|
|
|
7490
7629
|
delete response.Message;
|
|
7491
7630
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
7492
7631
|
};
|
|
7632
|
+
const deserializeAws_restJson1ListQueuedMessagesCommand = async (output, context) => {
|
|
7633
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7634
|
+
return deserializeAws_restJson1ListQueuedMessagesCommandError(output, context);
|
|
7635
|
+
}
|
|
7636
|
+
const contents = {
|
|
7637
|
+
$metadata: deserializeMetadata(output),
|
|
7638
|
+
DownlinkQueueMessagesList: undefined,
|
|
7639
|
+
NextToken: undefined,
|
|
7640
|
+
};
|
|
7641
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7642
|
+
if (data.DownlinkQueueMessagesList !== undefined && data.DownlinkQueueMessagesList !== null) {
|
|
7643
|
+
contents.DownlinkQueueMessagesList = deserializeAws_restJson1DownlinkQueueMessagesList(data.DownlinkQueueMessagesList, context);
|
|
7644
|
+
}
|
|
7645
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
7646
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
7647
|
+
}
|
|
7648
|
+
return Promise.resolve(contents);
|
|
7649
|
+
};
|
|
7650
|
+
exports.deserializeAws_restJson1ListQueuedMessagesCommand = deserializeAws_restJson1ListQueuedMessagesCommand;
|
|
7651
|
+
const deserializeAws_restJson1ListQueuedMessagesCommandError = async (output, context) => {
|
|
7652
|
+
const parsedOutput = {
|
|
7653
|
+
...output,
|
|
7654
|
+
body: await parseBody(output.body, context),
|
|
7655
|
+
};
|
|
7656
|
+
let response;
|
|
7657
|
+
let errorCode = "UnknownError";
|
|
7658
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7659
|
+
switch (errorCode) {
|
|
7660
|
+
case "AccessDeniedException":
|
|
7661
|
+
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
7662
|
+
response = {
|
|
7663
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
7664
|
+
name: errorCode,
|
|
7665
|
+
$metadata: deserializeMetadata(output),
|
|
7666
|
+
};
|
|
7667
|
+
break;
|
|
7668
|
+
case "InternalServerException":
|
|
7669
|
+
case "com.amazonaws.iotwireless#InternalServerException":
|
|
7670
|
+
response = {
|
|
7671
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
7672
|
+
name: errorCode,
|
|
7673
|
+
$metadata: deserializeMetadata(output),
|
|
7674
|
+
};
|
|
7675
|
+
break;
|
|
7676
|
+
case "ResourceNotFoundException":
|
|
7677
|
+
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
7678
|
+
response = {
|
|
7679
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
7680
|
+
name: errorCode,
|
|
7681
|
+
$metadata: deserializeMetadata(output),
|
|
7682
|
+
};
|
|
7683
|
+
break;
|
|
7684
|
+
case "ThrottlingException":
|
|
7685
|
+
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
7686
|
+
response = {
|
|
7687
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
7688
|
+
name: errorCode,
|
|
7689
|
+
$metadata: deserializeMetadata(output),
|
|
7690
|
+
};
|
|
7691
|
+
break;
|
|
7692
|
+
case "ValidationException":
|
|
7693
|
+
case "com.amazonaws.iotwireless#ValidationException":
|
|
7694
|
+
response = {
|
|
7695
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
7696
|
+
name: errorCode,
|
|
7697
|
+
$metadata: deserializeMetadata(output),
|
|
7698
|
+
};
|
|
7699
|
+
break;
|
|
7700
|
+
default:
|
|
7701
|
+
const parsedBody = parsedOutput.body;
|
|
7702
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
7703
|
+
response = {
|
|
7704
|
+
...parsedBody,
|
|
7705
|
+
name: `${errorCode}`,
|
|
7706
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
7707
|
+
$fault: "client",
|
|
7708
|
+
$metadata: deserializeMetadata(output),
|
|
7709
|
+
};
|
|
7710
|
+
}
|
|
7711
|
+
const message = response.message || response.Message || errorCode;
|
|
7712
|
+
response.message = message;
|
|
7713
|
+
delete response.Message;
|
|
7714
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
7715
|
+
};
|
|
7493
7716
|
const deserializeAws_restJson1ListServiceProfilesCommand = async (output, context) => {
|
|
7494
7717
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7495
7718
|
return deserializeAws_restJson1ListServiceProfilesCommandError(output, context);
|
|
@@ -10133,6 +10356,26 @@ const deserializeAws_restJson1DeviceRegistrationStateEventConfiguration = (outpu
|
|
|
10133
10356
|
: undefined,
|
|
10134
10357
|
};
|
|
10135
10358
|
};
|
|
10359
|
+
const deserializeAws_restJson1DownlinkQueueMessage = (output, context) => {
|
|
10360
|
+
return {
|
|
10361
|
+
LoRaWAN: output.LoRaWAN !== undefined && output.LoRaWAN !== null
|
|
10362
|
+
? deserializeAws_restJson1LoRaWANSendDataToDevice(output.LoRaWAN, context)
|
|
10363
|
+
: undefined,
|
|
10364
|
+
MessageId: smithy_client_1.expectString(output.MessageId),
|
|
10365
|
+
ReceivedAt: smithy_client_1.expectString(output.ReceivedAt),
|
|
10366
|
+
TransmitMode: smithy_client_1.expectInt32(output.TransmitMode),
|
|
10367
|
+
};
|
|
10368
|
+
};
|
|
10369
|
+
const deserializeAws_restJson1DownlinkQueueMessagesList = (output, context) => {
|
|
10370
|
+
return (output || [])
|
|
10371
|
+
.filter((e) => e != null)
|
|
10372
|
+
.map((entry) => {
|
|
10373
|
+
if (entry === null) {
|
|
10374
|
+
return null;
|
|
10375
|
+
}
|
|
10376
|
+
return deserializeAws_restJson1DownlinkQueueMessage(entry, context);
|
|
10377
|
+
});
|
|
10378
|
+
};
|
|
10136
10379
|
const deserializeAws_restJson1FactoryPresetFreqsList = (output, context) => {
|
|
10137
10380
|
return (output || [])
|
|
10138
10381
|
.filter((e) => e != null)
|
|
@@ -10346,6 +10589,11 @@ const deserializeAws_restJson1LoRaWANMulticastSession = (output, context) => {
|
|
|
10346
10589
|
SessionTimeout: smithy_client_1.expectInt32(output.SessionTimeout),
|
|
10347
10590
|
};
|
|
10348
10591
|
};
|
|
10592
|
+
const deserializeAws_restJson1LoRaWANSendDataToDevice = (output, context) => {
|
|
10593
|
+
return {
|
|
10594
|
+
FPort: smithy_client_1.expectInt32(output.FPort),
|
|
10595
|
+
};
|
|
10596
|
+
};
|
|
10349
10597
|
const deserializeAws_restJson1LoRaWANUpdateGatewayTaskCreate = (output, context) => {
|
|
10350
10598
|
return {
|
|
10351
10599
|
CurrentVersion: output.CurrentVersion !== undefined && output.CurrentVersion !== null
|
|
@@ -15,10 +15,8 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
-
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
18
|
const getRuntimeConfig = (config) => {
|
|
20
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
22
20
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
21
|
return {
|
|
24
22
|
...clientSharedValues,
|
package/dist-es/IoTWireless.js
CHANGED
|
@@ -20,6 +20,7 @@ import { DeleteDestinationCommand, } from "./commands/DeleteDestinationCommand";
|
|
|
20
20
|
import { DeleteDeviceProfileCommand, } from "./commands/DeleteDeviceProfileCommand";
|
|
21
21
|
import { DeleteFuotaTaskCommand, } from "./commands/DeleteFuotaTaskCommand";
|
|
22
22
|
import { DeleteMulticastGroupCommand, } from "./commands/DeleteMulticastGroupCommand";
|
|
23
|
+
import { DeleteQueuedMessagesCommand, } from "./commands/DeleteQueuedMessagesCommand";
|
|
23
24
|
import { DeleteServiceProfileCommand, } from "./commands/DeleteServiceProfileCommand";
|
|
24
25
|
import { DeleteWirelessDeviceCommand, } from "./commands/DeleteWirelessDeviceCommand";
|
|
25
26
|
import { DeleteWirelessGatewayCommand, } from "./commands/DeleteWirelessGatewayCommand";
|
|
@@ -58,6 +59,7 @@ import { ListFuotaTasksCommand, } from "./commands/ListFuotaTasksCommand";
|
|
|
58
59
|
import { ListMulticastGroupsByFuotaTaskCommand, } from "./commands/ListMulticastGroupsByFuotaTaskCommand";
|
|
59
60
|
import { ListMulticastGroupsCommand, } from "./commands/ListMulticastGroupsCommand";
|
|
60
61
|
import { ListPartnerAccountsCommand, } from "./commands/ListPartnerAccountsCommand";
|
|
62
|
+
import { ListQueuedMessagesCommand, } from "./commands/ListQueuedMessagesCommand";
|
|
61
63
|
import { ListServiceProfilesCommand, } from "./commands/ListServiceProfilesCommand";
|
|
62
64
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
63
65
|
import { ListWirelessDevicesCommand, } from "./commands/ListWirelessDevicesCommand";
|
|
@@ -384,6 +386,20 @@ var IoTWireless = (function (_super) {
|
|
|
384
386
|
return this.send(command, optionsOrCb);
|
|
385
387
|
}
|
|
386
388
|
};
|
|
389
|
+
IoTWireless.prototype.deleteQueuedMessages = function (args, optionsOrCb, cb) {
|
|
390
|
+
var command = new DeleteQueuedMessagesCommand(args);
|
|
391
|
+
if (typeof optionsOrCb === "function") {
|
|
392
|
+
this.send(command, optionsOrCb);
|
|
393
|
+
}
|
|
394
|
+
else if (typeof cb === "function") {
|
|
395
|
+
if (typeof optionsOrCb !== "object")
|
|
396
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
397
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
398
|
+
}
|
|
399
|
+
else {
|
|
400
|
+
return this.send(command, optionsOrCb);
|
|
401
|
+
}
|
|
402
|
+
};
|
|
387
403
|
IoTWireless.prototype.deleteServiceProfile = function (args, optionsOrCb, cb) {
|
|
388
404
|
var command = new DeleteServiceProfileCommand(args);
|
|
389
405
|
if (typeof optionsOrCb === "function") {
|
|
@@ -916,6 +932,20 @@ var IoTWireless = (function (_super) {
|
|
|
916
932
|
return this.send(command, optionsOrCb);
|
|
917
933
|
}
|
|
918
934
|
};
|
|
935
|
+
IoTWireless.prototype.listQueuedMessages = function (args, optionsOrCb, cb) {
|
|
936
|
+
var command = new ListQueuedMessagesCommand(args);
|
|
937
|
+
if (typeof optionsOrCb === "function") {
|
|
938
|
+
this.send(command, optionsOrCb);
|
|
939
|
+
}
|
|
940
|
+
else if (typeof cb === "function") {
|
|
941
|
+
if (typeof optionsOrCb !== "object")
|
|
942
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
943
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
944
|
+
}
|
|
945
|
+
else {
|
|
946
|
+
return this.send(command, optionsOrCb);
|
|
947
|
+
}
|
|
948
|
+
};
|
|
919
949
|
IoTWireless.prototype.listServiceProfiles = function (args, optionsOrCb, cb) {
|
|
920
950
|
var command = new ListServiceProfilesCommand(args);
|
|
921
951
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeleteQueuedMessagesRequest, DeleteQueuedMessagesResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DeleteQueuedMessagesCommand, serializeAws_restJson1DeleteQueuedMessagesCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var DeleteQueuedMessagesCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteQueuedMessagesCommand, _super);
|
|
8
|
+
function DeleteQueuedMessagesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DeleteQueuedMessagesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "IoTWirelessClient";
|
|
18
|
+
var commandName = "DeleteQueuedMessagesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DeleteQueuedMessagesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DeleteQueuedMessagesResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteQueuedMessagesCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1DeleteQueuedMessagesCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DeleteQueuedMessagesCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1DeleteQueuedMessagesCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DeleteQueuedMessagesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteQueuedMessagesCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListQueuedMessagesRequest, ListQueuedMessagesResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListQueuedMessagesCommand, serializeAws_restJson1ListQueuedMessagesCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var ListQueuedMessagesCommand = (function (_super) {
|
|
7
|
+
__extends(ListQueuedMessagesCommand, _super);
|
|
8
|
+
function ListQueuedMessagesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListQueuedMessagesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "IoTWirelessClient";
|
|
18
|
+
var commandName = "ListQueuedMessagesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListQueuedMessagesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListQueuedMessagesResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListQueuedMessagesCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1ListQueuedMessagesCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListQueuedMessagesCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1ListQueuedMessagesCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListQueuedMessagesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListQueuedMessagesCommand };
|
|
@@ -19,6 +19,7 @@ export * from "./DeleteDestinationCommand";
|
|
|
19
19
|
export * from "./DeleteDeviceProfileCommand";
|
|
20
20
|
export * from "./DeleteFuotaTaskCommand";
|
|
21
21
|
export * from "./DeleteMulticastGroupCommand";
|
|
22
|
+
export * from "./DeleteQueuedMessagesCommand";
|
|
22
23
|
export * from "./DeleteServiceProfileCommand";
|
|
23
24
|
export * from "./DeleteWirelessDeviceCommand";
|
|
24
25
|
export * from "./DeleteWirelessGatewayCommand";
|
|
@@ -57,6 +58,7 @@ export * from "./ListFuotaTasksCommand";
|
|
|
57
58
|
export * from "./ListMulticastGroupsByFuotaTaskCommand";
|
|
58
59
|
export * from "./ListMulticastGroupsCommand";
|
|
59
60
|
export * from "./ListPartnerAccountsCommand";
|
|
61
|
+
export * from "./ListQueuedMessagesCommand";
|
|
60
62
|
export * from "./ListServiceProfilesCommand";
|
|
61
63
|
export * from "./ListTagsForResourceCommand";
|
|
62
64
|
export * from "./ListWirelessDevicesCommand";
|
|
@@ -315,6 +315,14 @@ export var DeleteMulticastGroupResponse;
|
|
|
315
315
|
(function (DeleteMulticastGroupResponse) {
|
|
316
316
|
DeleteMulticastGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
317
317
|
})(DeleteMulticastGroupResponse || (DeleteMulticastGroupResponse = {}));
|
|
318
|
+
export var DeleteQueuedMessagesRequest;
|
|
319
|
+
(function (DeleteQueuedMessagesRequest) {
|
|
320
|
+
DeleteQueuedMessagesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
321
|
+
})(DeleteQueuedMessagesRequest || (DeleteQueuedMessagesRequest = {}));
|
|
322
|
+
export var DeleteQueuedMessagesResponse;
|
|
323
|
+
(function (DeleteQueuedMessagesResponse) {
|
|
324
|
+
DeleteQueuedMessagesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
325
|
+
})(DeleteQueuedMessagesResponse || (DeleteQueuedMessagesResponse = {}));
|
|
318
326
|
export var DeleteServiceProfileRequest;
|
|
319
327
|
(function (DeleteServiceProfileRequest) {
|
|
320
328
|
DeleteServiceProfileRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -443,6 +451,14 @@ export var DisassociateWirelessGatewayFromThingResponse;
|
|
|
443
451
|
(function (DisassociateWirelessGatewayFromThingResponse) {
|
|
444
452
|
DisassociateWirelessGatewayFromThingResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
445
453
|
})(DisassociateWirelessGatewayFromThingResponse || (DisassociateWirelessGatewayFromThingResponse = {}));
|
|
454
|
+
export var LoRaWANSendDataToDevice;
|
|
455
|
+
(function (LoRaWANSendDataToDevice) {
|
|
456
|
+
LoRaWANSendDataToDevice.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
457
|
+
})(LoRaWANSendDataToDevice || (LoRaWANSendDataToDevice = {}));
|
|
458
|
+
export var DownlinkQueueMessage;
|
|
459
|
+
(function (DownlinkQueueMessage) {
|
|
460
|
+
DownlinkQueueMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
461
|
+
})(DownlinkQueueMessage || (DownlinkQueueMessage = {}));
|
|
446
462
|
export var Event;
|
|
447
463
|
(function (Event) {
|
|
448
464
|
Event["ACK"] = "ack";
|
|
@@ -813,6 +829,14 @@ export var ListPartnerAccountsResponse;
|
|
|
813
829
|
Sidewalk: obj.Sidewalk.map(function (item) { return SidewalkAccountInfoWithFingerprint.filterSensitiveLog(item); }),
|
|
814
830
|
}))); };
|
|
815
831
|
})(ListPartnerAccountsResponse || (ListPartnerAccountsResponse = {}));
|
|
832
|
+
export var ListQueuedMessagesRequest;
|
|
833
|
+
(function (ListQueuedMessagesRequest) {
|
|
834
|
+
ListQueuedMessagesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
835
|
+
})(ListQueuedMessagesRequest || (ListQueuedMessagesRequest = {}));
|
|
836
|
+
export var ListQueuedMessagesResponse;
|
|
837
|
+
(function (ListQueuedMessagesResponse) {
|
|
838
|
+
ListQueuedMessagesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
839
|
+
})(ListQueuedMessagesResponse || (ListQueuedMessagesResponse = {}));
|
|
816
840
|
export var ListServiceProfilesRequest;
|
|
817
841
|
(function (ListServiceProfilesRequest) {
|
|
818
842
|
ListServiceProfilesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -925,10 +949,6 @@ export var SendDataToMulticastGroupResponse;
|
|
|
925
949
|
(function (SendDataToMulticastGroupResponse) {
|
|
926
950
|
SendDataToMulticastGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
927
951
|
})(SendDataToMulticastGroupResponse || (SendDataToMulticastGroupResponse = {}));
|
|
928
|
-
export var LoRaWANSendDataToDevice;
|
|
929
|
-
(function (LoRaWANSendDataToDevice) {
|
|
930
|
-
LoRaWANSendDataToDevice.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
931
|
-
})(LoRaWANSendDataToDevice || (LoRaWANSendDataToDevice = {}));
|
|
932
952
|
export var MessageType;
|
|
933
953
|
(function (MessageType) {
|
|
934
954
|
MessageType["CUSTOM_COMMAND_ID_GET"] = "CUSTOM_COMMAND_ID_GET";
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListQueuedMessagesCommand, } from "../commands/ListQueuedMessagesCommand";
|
|
3
|
+
import { IoTWireless } from "../IoTWireless";
|
|
4
|
+
import { IoTWirelessClient } from "../IoTWirelessClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListQueuedMessagesCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listQueuedMessages.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListQueuedMessages(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListQueuedMessages_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof IoTWireless)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof IoTWirelessClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected IoTWireless | IoTWirelessClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.NextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|
|
@@ -4,6 +4,7 @@ export * from "./ListDeviceProfilesPaginator";
|
|
|
4
4
|
export * from "./ListFuotaTasksPaginator";
|
|
5
5
|
export * from "./ListMulticastGroupsByFuotaTaskPaginator";
|
|
6
6
|
export * from "./ListMulticastGroupsPaginator";
|
|
7
|
+
export * from "./ListQueuedMessagesPaginator";
|
|
7
8
|
export * from "./ListServiceProfilesPaginator";
|
|
8
9
|
export * from "./ListWirelessDevicesPaginator";
|
|
9
10
|
export * from "./ListWirelessGatewaysPaginator";
|