@aws-sdk/client-iotthingsgraph 3.523.0 → 3.529.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +38 -78
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/IoTThingsGraph.js +0 -1
- package/dist-cjs/IoTThingsGraphClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/AssociateEntityToThingCommand.js +0 -1
- package/dist-cjs/commands/CreateFlowTemplateCommand.js +0 -1
- package/dist-cjs/commands/CreateSystemInstanceCommand.js +0 -1
- package/dist-cjs/commands/CreateSystemTemplateCommand.js +0 -1
- package/dist-cjs/commands/DeleteFlowTemplateCommand.js +0 -1
- package/dist-cjs/commands/DeleteNamespaceCommand.js +0 -1
- package/dist-cjs/commands/DeleteSystemInstanceCommand.js +0 -1
- package/dist-cjs/commands/DeleteSystemTemplateCommand.js +0 -1
- package/dist-cjs/commands/DeploySystemInstanceCommand.js +0 -1
- package/dist-cjs/commands/DeprecateFlowTemplateCommand.js +0 -1
- package/dist-cjs/commands/DeprecateSystemTemplateCommand.js +0 -1
- package/dist-cjs/commands/DescribeNamespaceCommand.js +0 -1
- package/dist-cjs/commands/DissociateEntityFromThingCommand.js +0 -1
- package/dist-cjs/commands/GetEntitiesCommand.js +0 -1
- package/dist-cjs/commands/GetFlowTemplateCommand.js +0 -1
- package/dist-cjs/commands/GetFlowTemplateRevisionsCommand.js +0 -1
- package/dist-cjs/commands/GetNamespaceDeletionStatusCommand.js +0 -1
- package/dist-cjs/commands/GetSystemInstanceCommand.js +0 -1
- package/dist-cjs/commands/GetSystemTemplateCommand.js +0 -1
- package/dist-cjs/commands/GetSystemTemplateRevisionsCommand.js +0 -1
- package/dist-cjs/commands/GetUploadStatusCommand.js +0 -1
- package/dist-cjs/commands/ListFlowExecutionMessagesCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/SearchEntitiesCommand.js +0 -1
- package/dist-cjs/commands/SearchFlowExecutionsCommand.js +0 -1
- package/dist-cjs/commands/SearchFlowTemplatesCommand.js +0 -1
- package/dist-cjs/commands/SearchSystemInstancesCommand.js +0 -1
- package/dist-cjs/commands/SearchSystemTemplatesCommand.js +0 -1
- package/dist-cjs/commands/SearchThingsCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UndeploySystemInstanceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateFlowTemplateCommand.js +0 -1
- package/dist-cjs/commands/UpdateSystemTemplateCommand.js +0 -1
- package/dist-cjs/commands/UploadEntityDefinitionsCommand.js +0 -1
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/endpoint/EndpointParameters.js +0 -1
- package/dist-cjs/extensionConfiguration.js +0 -1
- package/dist-cjs/models/IoTThingsGraphServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/GetFlowTemplateRevisionsPaginator.js +0 -1
- package/dist-cjs/pagination/GetSystemTemplateRevisionsPaginator.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListFlowExecutionMessagesPaginator.js +0 -1
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +0 -1
- package/dist-cjs/pagination/SearchEntitiesPaginator.js +0 -1
- package/dist-cjs/pagination/SearchFlowExecutionsPaginator.js +0 -1
- package/dist-cjs/pagination/SearchFlowTemplatesPaginator.js +0 -1
- package/dist-cjs/pagination/SearchSystemInstancesPaginator.js +0 -1
- package/dist-cjs/pagination/SearchSystemTemplatesPaginator.js +0 -1
- package/dist-cjs/pagination/SearchThingsPaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -246,6 +246,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
246
246
|
var import_types = require("@smithy/types");
|
|
247
247
|
|
|
248
248
|
// src/protocols/Aws_json1_1.ts
|
|
249
|
+
var import_core2 = require("@aws-sdk/core");
|
|
249
250
|
|
|
250
251
|
|
|
251
252
|
|
|
@@ -683,7 +684,7 @@ var de_AssociateEntityToThingCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
683
684
|
if (output.statusCode >= 300) {
|
|
684
685
|
return de_CommandError(output, context);
|
|
685
686
|
}
|
|
686
|
-
const data = await
|
|
687
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
687
688
|
let contents = {};
|
|
688
689
|
contents = (0, import_smithy_client._json)(data);
|
|
689
690
|
const response = {
|
|
@@ -696,7 +697,7 @@ var de_CreateFlowTemplateCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
696
697
|
if (output.statusCode >= 300) {
|
|
697
698
|
return de_CommandError(output, context);
|
|
698
699
|
}
|
|
699
|
-
const data = await
|
|
700
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
700
701
|
let contents = {};
|
|
701
702
|
contents = de_CreateFlowTemplateResponse(data, context);
|
|
702
703
|
const response = {
|
|
@@ -709,7 +710,7 @@ var de_CreateSystemInstanceCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
709
710
|
if (output.statusCode >= 300) {
|
|
710
711
|
return de_CommandError(output, context);
|
|
711
712
|
}
|
|
712
|
-
const data = await
|
|
713
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
713
714
|
let contents = {};
|
|
714
715
|
contents = de_CreateSystemInstanceResponse(data, context);
|
|
715
716
|
const response = {
|
|
@@ -722,7 +723,7 @@ var de_CreateSystemTemplateCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
722
723
|
if (output.statusCode >= 300) {
|
|
723
724
|
return de_CommandError(output, context);
|
|
724
725
|
}
|
|
725
|
-
const data = await
|
|
726
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
726
727
|
let contents = {};
|
|
727
728
|
contents = de_CreateSystemTemplateResponse(data, context);
|
|
728
729
|
const response = {
|
|
@@ -735,7 +736,7 @@ var de_DeleteFlowTemplateCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
735
736
|
if (output.statusCode >= 300) {
|
|
736
737
|
return de_CommandError(output, context);
|
|
737
738
|
}
|
|
738
|
-
const data = await
|
|
739
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
739
740
|
let contents = {};
|
|
740
741
|
contents = (0, import_smithy_client._json)(data);
|
|
741
742
|
const response = {
|
|
@@ -748,7 +749,7 @@ var de_DeleteNamespaceCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
748
749
|
if (output.statusCode >= 300) {
|
|
749
750
|
return de_CommandError(output, context);
|
|
750
751
|
}
|
|
751
|
-
const data = await
|
|
752
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
752
753
|
let contents = {};
|
|
753
754
|
contents = (0, import_smithy_client._json)(data);
|
|
754
755
|
const response = {
|
|
@@ -761,7 +762,7 @@ var de_DeleteSystemInstanceCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
761
762
|
if (output.statusCode >= 300) {
|
|
762
763
|
return de_CommandError(output, context);
|
|
763
764
|
}
|
|
764
|
-
const data = await
|
|
765
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
765
766
|
let contents = {};
|
|
766
767
|
contents = (0, import_smithy_client._json)(data);
|
|
767
768
|
const response = {
|
|
@@ -774,7 +775,7 @@ var de_DeleteSystemTemplateCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
774
775
|
if (output.statusCode >= 300) {
|
|
775
776
|
return de_CommandError(output, context);
|
|
776
777
|
}
|
|
777
|
-
const data = await
|
|
778
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
778
779
|
let contents = {};
|
|
779
780
|
contents = (0, import_smithy_client._json)(data);
|
|
780
781
|
const response = {
|
|
@@ -787,7 +788,7 @@ var de_DeploySystemInstanceCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
787
788
|
if (output.statusCode >= 300) {
|
|
788
789
|
return de_CommandError(output, context);
|
|
789
790
|
}
|
|
790
|
-
const data = await
|
|
791
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
791
792
|
let contents = {};
|
|
792
793
|
contents = de_DeploySystemInstanceResponse(data, context);
|
|
793
794
|
const response = {
|
|
@@ -800,7 +801,7 @@ var de_DeprecateFlowTemplateCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
800
801
|
if (output.statusCode >= 300) {
|
|
801
802
|
return de_CommandError(output, context);
|
|
802
803
|
}
|
|
803
|
-
const data = await
|
|
804
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
804
805
|
let contents = {};
|
|
805
806
|
contents = (0, import_smithy_client._json)(data);
|
|
806
807
|
const response = {
|
|
@@ -813,7 +814,7 @@ var de_DeprecateSystemTemplateCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
813
814
|
if (output.statusCode >= 300) {
|
|
814
815
|
return de_CommandError(output, context);
|
|
815
816
|
}
|
|
816
|
-
const data = await
|
|
817
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
817
818
|
let contents = {};
|
|
818
819
|
contents = (0, import_smithy_client._json)(data);
|
|
819
820
|
const response = {
|
|
@@ -826,7 +827,7 @@ var de_DescribeNamespaceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
826
827
|
if (output.statusCode >= 300) {
|
|
827
828
|
return de_CommandError(output, context);
|
|
828
829
|
}
|
|
829
|
-
const data = await
|
|
830
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
830
831
|
let contents = {};
|
|
831
832
|
contents = (0, import_smithy_client._json)(data);
|
|
832
833
|
const response = {
|
|
@@ -839,7 +840,7 @@ var de_DissociateEntityFromThingCommand = /* @__PURE__ */ __name(async (output,
|
|
|
839
840
|
if (output.statusCode >= 300) {
|
|
840
841
|
return de_CommandError(output, context);
|
|
841
842
|
}
|
|
842
|
-
const data = await
|
|
843
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
843
844
|
let contents = {};
|
|
844
845
|
contents = (0, import_smithy_client._json)(data);
|
|
845
846
|
const response = {
|
|
@@ -852,7 +853,7 @@ var de_GetEntitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
852
853
|
if (output.statusCode >= 300) {
|
|
853
854
|
return de_CommandError(output, context);
|
|
854
855
|
}
|
|
855
|
-
const data = await
|
|
856
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
856
857
|
let contents = {};
|
|
857
858
|
contents = de_GetEntitiesResponse(data, context);
|
|
858
859
|
const response = {
|
|
@@ -865,7 +866,7 @@ var de_GetFlowTemplateCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
865
866
|
if (output.statusCode >= 300) {
|
|
866
867
|
return de_CommandError(output, context);
|
|
867
868
|
}
|
|
868
|
-
const data = await
|
|
869
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
869
870
|
let contents = {};
|
|
870
871
|
contents = de_GetFlowTemplateResponse(data, context);
|
|
871
872
|
const response = {
|
|
@@ -878,7 +879,7 @@ var de_GetFlowTemplateRevisionsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
878
879
|
if (output.statusCode >= 300) {
|
|
879
880
|
return de_CommandError(output, context);
|
|
880
881
|
}
|
|
881
|
-
const data = await
|
|
882
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
882
883
|
let contents = {};
|
|
883
884
|
contents = de_GetFlowTemplateRevisionsResponse(data, context);
|
|
884
885
|
const response = {
|
|
@@ -891,7 +892,7 @@ var de_GetNamespaceDeletionStatusCommand = /* @__PURE__ */ __name(async (output,
|
|
|
891
892
|
if (output.statusCode >= 300) {
|
|
892
893
|
return de_CommandError(output, context);
|
|
893
894
|
}
|
|
894
|
-
const data = await
|
|
895
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
895
896
|
let contents = {};
|
|
896
897
|
contents = (0, import_smithy_client._json)(data);
|
|
897
898
|
const response = {
|
|
@@ -904,7 +905,7 @@ var de_GetSystemInstanceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
904
905
|
if (output.statusCode >= 300) {
|
|
905
906
|
return de_CommandError(output, context);
|
|
906
907
|
}
|
|
907
|
-
const data = await
|
|
908
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
908
909
|
let contents = {};
|
|
909
910
|
contents = de_GetSystemInstanceResponse(data, context);
|
|
910
911
|
const response = {
|
|
@@ -917,7 +918,7 @@ var de_GetSystemTemplateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
917
918
|
if (output.statusCode >= 300) {
|
|
918
919
|
return de_CommandError(output, context);
|
|
919
920
|
}
|
|
920
|
-
const data = await
|
|
921
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
921
922
|
let contents = {};
|
|
922
923
|
contents = de_GetSystemTemplateResponse(data, context);
|
|
923
924
|
const response = {
|
|
@@ -930,7 +931,7 @@ var de_GetSystemTemplateRevisionsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
930
931
|
if (output.statusCode >= 300) {
|
|
931
932
|
return de_CommandError(output, context);
|
|
932
933
|
}
|
|
933
|
-
const data = await
|
|
934
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
934
935
|
let contents = {};
|
|
935
936
|
contents = de_GetSystemTemplateRevisionsResponse(data, context);
|
|
936
937
|
const response = {
|
|
@@ -943,7 +944,7 @@ var de_GetUploadStatusCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
943
944
|
if (output.statusCode >= 300) {
|
|
944
945
|
return de_CommandError(output, context);
|
|
945
946
|
}
|
|
946
|
-
const data = await
|
|
947
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
947
948
|
let contents = {};
|
|
948
949
|
contents = de_GetUploadStatusResponse(data, context);
|
|
949
950
|
const response = {
|
|
@@ -956,7 +957,7 @@ var de_ListFlowExecutionMessagesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
956
957
|
if (output.statusCode >= 300) {
|
|
957
958
|
return de_CommandError(output, context);
|
|
958
959
|
}
|
|
959
|
-
const data = await
|
|
960
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
960
961
|
let contents = {};
|
|
961
962
|
contents = de_ListFlowExecutionMessagesResponse(data, context);
|
|
962
963
|
const response = {
|
|
@@ -969,7 +970,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
969
970
|
if (output.statusCode >= 300) {
|
|
970
971
|
return de_CommandError(output, context);
|
|
971
972
|
}
|
|
972
|
-
const data = await
|
|
973
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
973
974
|
let contents = {};
|
|
974
975
|
contents = (0, import_smithy_client._json)(data);
|
|
975
976
|
const response = {
|
|
@@ -982,7 +983,7 @@ var de_SearchEntitiesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
982
983
|
if (output.statusCode >= 300) {
|
|
983
984
|
return de_CommandError(output, context);
|
|
984
985
|
}
|
|
985
|
-
const data = await
|
|
986
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
986
987
|
let contents = {};
|
|
987
988
|
contents = de_SearchEntitiesResponse(data, context);
|
|
988
989
|
const response = {
|
|
@@ -995,7 +996,7 @@ var de_SearchFlowExecutionsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
995
996
|
if (output.statusCode >= 300) {
|
|
996
997
|
return de_CommandError(output, context);
|
|
997
998
|
}
|
|
998
|
-
const data = await
|
|
999
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
999
1000
|
let contents = {};
|
|
1000
1001
|
contents = de_SearchFlowExecutionsResponse(data, context);
|
|
1001
1002
|
const response = {
|
|
@@ -1008,7 +1009,7 @@ var de_SearchFlowTemplatesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1008
1009
|
if (output.statusCode >= 300) {
|
|
1009
1010
|
return de_CommandError(output, context);
|
|
1010
1011
|
}
|
|
1011
|
-
const data = await
|
|
1012
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1012
1013
|
let contents = {};
|
|
1013
1014
|
contents = de_SearchFlowTemplatesResponse(data, context);
|
|
1014
1015
|
const response = {
|
|
@@ -1021,7 +1022,7 @@ var de_SearchSystemInstancesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1021
1022
|
if (output.statusCode >= 300) {
|
|
1022
1023
|
return de_CommandError(output, context);
|
|
1023
1024
|
}
|
|
1024
|
-
const data = await
|
|
1025
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1025
1026
|
let contents = {};
|
|
1026
1027
|
contents = de_SearchSystemInstancesResponse(data, context);
|
|
1027
1028
|
const response = {
|
|
@@ -1034,7 +1035,7 @@ var de_SearchSystemTemplatesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1034
1035
|
if (output.statusCode >= 300) {
|
|
1035
1036
|
return de_CommandError(output, context);
|
|
1036
1037
|
}
|
|
1037
|
-
const data = await
|
|
1038
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1038
1039
|
let contents = {};
|
|
1039
1040
|
contents = de_SearchSystemTemplatesResponse(data, context);
|
|
1040
1041
|
const response = {
|
|
@@ -1047,7 +1048,7 @@ var de_SearchThingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1047
1048
|
if (output.statusCode >= 300) {
|
|
1048
1049
|
return de_CommandError(output, context);
|
|
1049
1050
|
}
|
|
1050
|
-
const data = await
|
|
1051
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1051
1052
|
let contents = {};
|
|
1052
1053
|
contents = (0, import_smithy_client._json)(data);
|
|
1053
1054
|
const response = {
|
|
@@ -1060,7 +1061,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1060
1061
|
if (output.statusCode >= 300) {
|
|
1061
1062
|
return de_CommandError(output, context);
|
|
1062
1063
|
}
|
|
1063
|
-
const data = await
|
|
1064
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1064
1065
|
let contents = {};
|
|
1065
1066
|
contents = (0, import_smithy_client._json)(data);
|
|
1066
1067
|
const response = {
|
|
@@ -1073,7 +1074,7 @@ var de_UndeploySystemInstanceCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1073
1074
|
if (output.statusCode >= 300) {
|
|
1074
1075
|
return de_CommandError(output, context);
|
|
1075
1076
|
}
|
|
1076
|
-
const data = await
|
|
1077
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1077
1078
|
let contents = {};
|
|
1078
1079
|
contents = de_UndeploySystemInstanceResponse(data, context);
|
|
1079
1080
|
const response = {
|
|
@@ -1086,7 +1087,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1086
1087
|
if (output.statusCode >= 300) {
|
|
1087
1088
|
return de_CommandError(output, context);
|
|
1088
1089
|
}
|
|
1089
|
-
const data = await
|
|
1090
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1090
1091
|
let contents = {};
|
|
1091
1092
|
contents = (0, import_smithy_client._json)(data);
|
|
1092
1093
|
const response = {
|
|
@@ -1099,7 +1100,7 @@ var de_UpdateFlowTemplateCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1099
1100
|
if (output.statusCode >= 300) {
|
|
1100
1101
|
return de_CommandError(output, context);
|
|
1101
1102
|
}
|
|
1102
|
-
const data = await
|
|
1103
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1103
1104
|
let contents = {};
|
|
1104
1105
|
contents = de_UpdateFlowTemplateResponse(data, context);
|
|
1105
1106
|
const response = {
|
|
@@ -1112,7 +1113,7 @@ var de_UpdateSystemTemplateCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1112
1113
|
if (output.statusCode >= 300) {
|
|
1113
1114
|
return de_CommandError(output, context);
|
|
1114
1115
|
}
|
|
1115
|
-
const data = await
|
|
1116
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1116
1117
|
let contents = {};
|
|
1117
1118
|
contents = de_UpdateSystemTemplateResponse(data, context);
|
|
1118
1119
|
const response = {
|
|
@@ -1125,7 +1126,7 @@ var de_UploadEntityDefinitionsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1125
1126
|
if (output.statusCode >= 300) {
|
|
1126
1127
|
return de_CommandError(output, context);
|
|
1127
1128
|
}
|
|
1128
|
-
const data = await
|
|
1129
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1129
1130
|
let contents = {};
|
|
1130
1131
|
contents = (0, import_smithy_client._json)(data);
|
|
1131
1132
|
const response = {
|
|
@@ -1137,9 +1138,9 @@ var de_UploadEntityDefinitionsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1137
1138
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1138
1139
|
const parsedOutput = {
|
|
1139
1140
|
...output,
|
|
1140
|
-
body: await
|
|
1141
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1141
1142
|
};
|
|
1142
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1143
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1143
1144
|
switch (errorCode) {
|
|
1144
1145
|
case "InternalFailureException":
|
|
1145
1146
|
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
@@ -1482,7 +1483,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1482
1483
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1483
1484
|
cfId: output.headers["x-amz-cf-id"]
|
|
1484
1485
|
}), "deserializeMetadata");
|
|
1485
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1486
1486
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(IoTThingsGraphServiceException);
|
|
1487
1487
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1488
1488
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -1509,46 +1509,6 @@ function sharedHeaders(operation) {
|
|
|
1509
1509
|
};
|
|
1510
1510
|
}
|
|
1511
1511
|
__name(sharedHeaders, "sharedHeaders");
|
|
1512
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1513
|
-
if (encoded.length) {
|
|
1514
|
-
return JSON.parse(encoded);
|
|
1515
|
-
}
|
|
1516
|
-
return {};
|
|
1517
|
-
}), "parseBody");
|
|
1518
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1519
|
-
const value = await parseBody(errorBody, context);
|
|
1520
|
-
value.message = value.message ?? value.Message;
|
|
1521
|
-
return value;
|
|
1522
|
-
}, "parseErrorBody");
|
|
1523
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1524
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1525
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1526
|
-
let cleanValue = rawValue;
|
|
1527
|
-
if (typeof cleanValue === "number") {
|
|
1528
|
-
cleanValue = cleanValue.toString();
|
|
1529
|
-
}
|
|
1530
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1531
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1532
|
-
}
|
|
1533
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1534
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1535
|
-
}
|
|
1536
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1537
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1538
|
-
}
|
|
1539
|
-
return cleanValue;
|
|
1540
|
-
}, "sanitizeErrorCode");
|
|
1541
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1542
|
-
if (headerKey !== void 0) {
|
|
1543
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1544
|
-
}
|
|
1545
|
-
if (data.code !== void 0) {
|
|
1546
|
-
return sanitizeErrorCode(data.code);
|
|
1547
|
-
}
|
|
1548
|
-
if (data["__type"] !== void 0) {
|
|
1549
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1550
|
-
}
|
|
1551
|
-
}, "loadRestJsonErrorCode");
|
|
1552
1512
|
|
|
1553
1513
|
// src/commands/AssociateEntityToThingCommand.ts
|
|
1554
1514
|
var _AssociateEntityToThingCommand = class _AssociateEntityToThingCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { IoTThingsGraphServiceException as __BaseException } from "../models/IoTThingsGraphServiceException";
|
|
@@ -1053,43 +1054,3 @@ function sharedHeaders(operation) {
|
|
|
1053
1054
|
"x-amz-target": `IotThingsGraphFrontEndService.${operation}`,
|
|
1054
1055
|
};
|
|
1055
1056
|
}
|
|
1056
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1057
|
-
if (encoded.length) {
|
|
1058
|
-
return JSON.parse(encoded);
|
|
1059
|
-
}
|
|
1060
|
-
return {};
|
|
1061
|
-
});
|
|
1062
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1063
|
-
const value = await parseBody(errorBody, context);
|
|
1064
|
-
value.message = value.message ?? value.Message;
|
|
1065
|
-
return value;
|
|
1066
|
-
};
|
|
1067
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1068
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1069
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1070
|
-
let cleanValue = rawValue;
|
|
1071
|
-
if (typeof cleanValue === "number") {
|
|
1072
|
-
cleanValue = cleanValue.toString();
|
|
1073
|
-
}
|
|
1074
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1075
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1076
|
-
}
|
|
1077
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1078
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1079
|
-
}
|
|
1080
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1081
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1082
|
-
}
|
|
1083
|
-
return cleanValue;
|
|
1084
|
-
};
|
|
1085
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1086
|
-
if (headerKey !== undefined) {
|
|
1087
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1088
|
-
}
|
|
1089
|
-
if (data.code !== undefined) {
|
|
1090
|
-
return sanitizeErrorCode(data.code);
|
|
1091
|
-
}
|
|
1092
|
-
if (data["__type"] !== undefined) {
|
|
1093
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1094
|
-
}
|
|
1095
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-iotthingsgraph",
|
|
3
3
|
"description": "AWS SDK for JavaScript Iotthingsgraph Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-iotthingsgraph",
|
|
@@ -20,40 +20,40 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.525.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.525.0",
|
|
31
31
|
"@aws-sdk/types": "3.523.0",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.525.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.523.0",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.1.
|
|
36
|
-
"@smithy/core": "^1.3.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.525.0",
|
|
35
|
+
"@smithy/config-resolver": "^2.1.4",
|
|
36
|
+
"@smithy/core": "^1.3.5",
|
|
37
37
|
"@smithy/fetch-http-handler": "^2.4.3",
|
|
38
38
|
"@smithy/hash-node": "^2.1.3",
|
|
39
39
|
"@smithy/invalid-dependency": "^2.1.3",
|
|
40
40
|
"@smithy/middleware-content-length": "^2.1.3",
|
|
41
|
-
"@smithy/middleware-endpoint": "^2.4.
|
|
42
|
-
"@smithy/middleware-retry": "^2.1.
|
|
41
|
+
"@smithy/middleware-endpoint": "^2.4.4",
|
|
42
|
+
"@smithy/middleware-retry": "^2.1.4",
|
|
43
43
|
"@smithy/middleware-serde": "^2.1.3",
|
|
44
44
|
"@smithy/middleware-stack": "^2.1.3",
|
|
45
|
-
"@smithy/node-config-provider": "^2.2.
|
|
45
|
+
"@smithy/node-config-provider": "^2.2.4",
|
|
46
46
|
"@smithy/node-http-handler": "^2.4.1",
|
|
47
47
|
"@smithy/protocol-http": "^3.2.1",
|
|
48
|
-
"@smithy/smithy-client": "^2.4.
|
|
48
|
+
"@smithy/smithy-client": "^2.4.2",
|
|
49
49
|
"@smithy/types": "^2.10.1",
|
|
50
50
|
"@smithy/url-parser": "^2.1.3",
|
|
51
51
|
"@smithy/util-base64": "^2.1.1",
|
|
52
52
|
"@smithy/util-body-length-browser": "^2.1.1",
|
|
53
53
|
"@smithy/util-body-length-node": "^2.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^2.1.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.2.
|
|
56
|
-
"@smithy/util-endpoints": "^1.1.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^2.1.4",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^2.2.3",
|
|
56
|
+
"@smithy/util-endpoints": "^1.1.4",
|
|
57
57
|
"@smithy/util-middleware": "^2.1.3",
|
|
58
58
|
"@smithy/util-retry": "^2.1.3",
|
|
59
59
|
"@smithy/util-utf8": "^2.1.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|