@aws-sdk/client-iotthingsgraph 3.121.0 → 3.130.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.
@@ -2641,61 +2641,51 @@ var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput,
2641
2641
  });
2642
2642
  }); };
2643
2643
  var serializeAws_json1_1AssociateEntityToThingRequest = function (input, context) {
2644
- return __assign(__assign(__assign({}, (input.entityId !== undefined && input.entityId !== null && { entityId: input.entityId })), (input.namespaceVersion !== undefined &&
2645
- input.namespaceVersion !== null && { namespaceVersion: input.namespaceVersion })), (input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName }));
2644
+ return __assign(__assign(__assign({}, (input.entityId != null && { entityId: input.entityId })), (input.namespaceVersion != null && { namespaceVersion: input.namespaceVersion })), (input.thingName != null && { thingName: input.thingName }));
2646
2645
  };
2647
2646
  var serializeAws_json1_1CreateFlowTemplateRequest = function (input, context) {
2648
- return __assign(__assign({}, (input.compatibleNamespaceVersion !== undefined &&
2649
- input.compatibleNamespaceVersion !== null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion })), (input.definition !== undefined &&
2650
- input.definition !== null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }));
2647
+ return __assign(__assign({}, (input.compatibleNamespaceVersion != null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion })), (input.definition != null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }));
2651
2648
  };
2652
2649
  var serializeAws_json1_1CreateSystemInstanceRequest = function (input, context) {
2653
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.definition !== undefined &&
2654
- input.definition !== null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) })), (input.flowActionsRoleArn !== undefined &&
2655
- input.flowActionsRoleArn !== null && { flowActionsRoleArn: input.flowActionsRoleArn })), (input.greengrassGroupName !== undefined &&
2656
- input.greengrassGroupName !== null && { greengrassGroupName: input.greengrassGroupName })), (input.metricsConfiguration !== undefined &&
2657
- input.metricsConfiguration !== null && {
2650
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.definition != null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) })), (input.flowActionsRoleArn != null && { flowActionsRoleArn: input.flowActionsRoleArn })), (input.greengrassGroupName != null && { greengrassGroupName: input.greengrassGroupName })), (input.metricsConfiguration != null && {
2658
2651
  metricsConfiguration: serializeAws_json1_1MetricsConfiguration(input.metricsConfiguration, context),
2659
- })), (input.s3BucketName !== undefined && input.s3BucketName !== null && { s3BucketName: input.s3BucketName })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.target !== undefined && input.target !== null && { target: input.target }));
2652
+ })), (input.s3BucketName != null && { s3BucketName: input.s3BucketName })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.target != null && { target: input.target }));
2660
2653
  };
2661
2654
  var serializeAws_json1_1CreateSystemTemplateRequest = function (input, context) {
2662
- return __assign(__assign({}, (input.compatibleNamespaceVersion !== undefined &&
2663
- input.compatibleNamespaceVersion !== null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion })), (input.definition !== undefined &&
2664
- input.definition !== null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }));
2655
+ return __assign(__assign({}, (input.compatibleNamespaceVersion != null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion })), (input.definition != null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }));
2665
2656
  };
2666
2657
  var serializeAws_json1_1DefinitionDocument = function (input, context) {
2667
- return __assign(__assign({}, (input.language !== undefined && input.language !== null && { language: input.language })), (input.text !== undefined && input.text !== null && { text: input.text }));
2658
+ return __assign(__assign({}, (input.language != null && { language: input.language })), (input.text != null && { text: input.text }));
2668
2659
  };
2669
2660
  var serializeAws_json1_1DeleteFlowTemplateRequest = function (input, context) {
2670
- return __assign({}, (input.id !== undefined && input.id !== null && { id: input.id }));
2661
+ return __assign({}, (input.id != null && { id: input.id }));
2671
2662
  };
2672
2663
  var serializeAws_json1_1DeleteNamespaceRequest = function (input, context) {
2673
2664
  return {};
2674
2665
  };
2675
2666
  var serializeAws_json1_1DeleteSystemInstanceRequest = function (input, context) {
2676
- return __assign({}, (input.id !== undefined && input.id !== null && { id: input.id }));
2667
+ return __assign({}, (input.id != null && { id: input.id }));
2677
2668
  };
2678
2669
  var serializeAws_json1_1DeleteSystemTemplateRequest = function (input, context) {
2679
- return __assign({}, (input.id !== undefined && input.id !== null && { id: input.id }));
2670
+ return __assign({}, (input.id != null && { id: input.id }));
2680
2671
  };
2681
2672
  var serializeAws_json1_1DeploySystemInstanceRequest = function (input, context) {
2682
- return __assign({}, (input.id !== undefined && input.id !== null && { id: input.id }));
2673
+ return __assign({}, (input.id != null && { id: input.id }));
2683
2674
  };
2684
2675
  var serializeAws_json1_1DeprecateFlowTemplateRequest = function (input, context) {
2685
- return __assign({}, (input.id !== undefined && input.id !== null && { id: input.id }));
2676
+ return __assign({}, (input.id != null && { id: input.id }));
2686
2677
  };
2687
2678
  var serializeAws_json1_1DeprecateSystemTemplateRequest = function (input, context) {
2688
- return __assign({}, (input.id !== undefined && input.id !== null && { id: input.id }));
2679
+ return __assign({}, (input.id != null && { id: input.id }));
2689
2680
  };
2690
2681
  var serializeAws_json1_1DescribeNamespaceRequest = function (input, context) {
2691
- return __assign({}, (input.namespaceName !== undefined && input.namespaceName !== null && { namespaceName: input.namespaceName }));
2682
+ return __assign({}, (input.namespaceName != null && { namespaceName: input.namespaceName }));
2692
2683
  };
2693
2684
  var serializeAws_json1_1DissociateEntityFromThingRequest = function (input, context) {
2694
- return __assign(__assign({}, (input.entityType !== undefined && input.entityType !== null && { entityType: input.entityType })), (input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName }));
2685
+ return __assign(__assign({}, (input.entityType != null && { entityType: input.entityType })), (input.thingName != null && { thingName: input.thingName }));
2695
2686
  };
2696
2687
  var serializeAws_json1_1EntityFilter = function (input, context) {
2697
- return __assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.value !== undefined &&
2698
- input.value !== null && { value: serializeAws_json1_1EntityFilterValues(input.value, context) }));
2688
+ return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: serializeAws_json1_1EntityFilterValues(input.value, context) }));
2699
2689
  };
2700
2690
  var serializeAws_json1_1EntityFilters = function (input, context) {
2701
2691
  return input
@@ -2728,8 +2718,7 @@ var serializeAws_json1_1EntityTypes = function (input, context) {
2728
2718
  });
2729
2719
  };
2730
2720
  var serializeAws_json1_1FlowTemplateFilter = function (input, context) {
2731
- return __assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.value !== undefined &&
2732
- input.value !== null && { value: serializeAws_json1_1FlowTemplateFilterValues(input.value, context) }));
2721
+ return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: serializeAws_json1_1FlowTemplateFilterValues(input.value, context) }));
2733
2722
  };
2734
2723
  var serializeAws_json1_1FlowTemplateFilters = function (input, context) {
2735
2724
  return input
@@ -2752,76 +2741,58 @@ var serializeAws_json1_1FlowTemplateFilterValues = function (input, context) {
2752
2741
  });
2753
2742
  };
2754
2743
  var serializeAws_json1_1GetEntitiesRequest = function (input, context) {
2755
- return __assign(__assign({}, (input.ids !== undefined && input.ids !== null && { ids: serializeAws_json1_1Urns(input.ids, context) })), (input.namespaceVersion !== undefined &&
2756
- input.namespaceVersion !== null && { namespaceVersion: input.namespaceVersion }));
2744
+ return __assign(__assign({}, (input.ids != null && { ids: serializeAws_json1_1Urns(input.ids, context) })), (input.namespaceVersion != null && { namespaceVersion: input.namespaceVersion }));
2757
2745
  };
2758
2746
  var serializeAws_json1_1GetFlowTemplateRequest = function (input, context) {
2759
- return __assign(__assign({}, (input.id !== undefined && input.id !== null && { id: input.id })), (input.revisionNumber !== undefined &&
2760
- input.revisionNumber !== null && { revisionNumber: input.revisionNumber }));
2747
+ return __assign(__assign({}, (input.id != null && { id: input.id })), (input.revisionNumber != null && { revisionNumber: input.revisionNumber }));
2761
2748
  };
2762
2749
  var serializeAws_json1_1GetFlowTemplateRevisionsRequest = function (input, context) {
2763
- return __assign(__assign(__assign({}, (input.id !== undefined && input.id !== null && { id: input.id })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
2750
+ return __assign(__assign(__assign({}, (input.id != null && { id: input.id })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
2764
2751
  };
2765
2752
  var serializeAws_json1_1GetNamespaceDeletionStatusRequest = function (input, context) {
2766
2753
  return {};
2767
2754
  };
2768
2755
  var serializeAws_json1_1GetSystemInstanceRequest = function (input, context) {
2769
- return __assign({}, (input.id !== undefined && input.id !== null && { id: input.id }));
2756
+ return __assign({}, (input.id != null && { id: input.id }));
2770
2757
  };
2771
2758
  var serializeAws_json1_1GetSystemTemplateRequest = function (input, context) {
2772
- return __assign(__assign({}, (input.id !== undefined && input.id !== null && { id: input.id })), (input.revisionNumber !== undefined &&
2773
- input.revisionNumber !== null && { revisionNumber: input.revisionNumber }));
2759
+ return __assign(__assign({}, (input.id != null && { id: input.id })), (input.revisionNumber != null && { revisionNumber: input.revisionNumber }));
2774
2760
  };
2775
2761
  var serializeAws_json1_1GetSystemTemplateRevisionsRequest = function (input, context) {
2776
- return __assign(__assign(__assign({}, (input.id !== undefined && input.id !== null && { id: input.id })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
2762
+ return __assign(__assign(__assign({}, (input.id != null && { id: input.id })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
2777
2763
  };
2778
2764
  var serializeAws_json1_1GetUploadStatusRequest = function (input, context) {
2779
- return __assign({}, (input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }));
2765
+ return __assign({}, (input.uploadId != null && { uploadId: input.uploadId }));
2780
2766
  };
2781
2767
  var serializeAws_json1_1ListFlowExecutionMessagesRequest = function (input, context) {
2782
- return __assign(__assign(__assign({}, (input.flowExecutionId !== undefined &&
2783
- input.flowExecutionId !== null && { flowExecutionId: input.flowExecutionId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
2768
+ return __assign(__assign(__assign({}, (input.flowExecutionId != null && { flowExecutionId: input.flowExecutionId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
2784
2769
  };
2785
2770
  var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
2786
- return __assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }));
2771
+ return __assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.resourceArn != null && { resourceArn: input.resourceArn }));
2787
2772
  };
2788
2773
  var serializeAws_json1_1MetricsConfiguration = function (input, context) {
2789
- return __assign(__assign({}, (input.cloudMetricEnabled !== undefined &&
2790
- input.cloudMetricEnabled !== null && { cloudMetricEnabled: input.cloudMetricEnabled })), (input.metricRuleRoleArn !== undefined &&
2791
- input.metricRuleRoleArn !== null && { metricRuleRoleArn: input.metricRuleRoleArn }));
2774
+ return __assign(__assign({}, (input.cloudMetricEnabled != null && { cloudMetricEnabled: input.cloudMetricEnabled })), (input.metricRuleRoleArn != null && { metricRuleRoleArn: input.metricRuleRoleArn }));
2792
2775
  };
2793
2776
  var serializeAws_json1_1SearchEntitiesRequest = function (input, context) {
2794
- return __assign(__assign(__assign(__assign(__assign({}, (input.entityTypes !== undefined &&
2795
- input.entityTypes !== null && { entityTypes: serializeAws_json1_1EntityTypes(input.entityTypes, context) })), (input.filters !== undefined &&
2796
- input.filters !== null && { filters: serializeAws_json1_1EntityFilters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.namespaceVersion !== undefined &&
2797
- input.namespaceVersion !== null && { namespaceVersion: input.namespaceVersion })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
2777
+ return __assign(__assign(__assign(__assign(__assign({}, (input.entityTypes != null && { entityTypes: serializeAws_json1_1EntityTypes(input.entityTypes, context) })), (input.filters != null && { filters: serializeAws_json1_1EntityFilters(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.namespaceVersion != null && { namespaceVersion: input.namespaceVersion })), (input.nextToken != null && { nextToken: input.nextToken }));
2798
2778
  };
2799
2779
  var serializeAws_json1_1SearchFlowExecutionsRequest = function (input, context) {
2800
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.endTime !== undefined &&
2801
- input.endTime !== null && { endTime: Math.round(input.endTime.getTime() / 1000) })), (input.flowExecutionId !== undefined &&
2802
- input.flowExecutionId !== null && { flowExecutionId: input.flowExecutionId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.startTime !== undefined &&
2803
- input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) })), (input.systemInstanceId !== undefined &&
2804
- input.systemInstanceId !== null && { systemInstanceId: input.systemInstanceId }));
2780
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) })), (input.flowExecutionId != null && { flowExecutionId: input.flowExecutionId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) })), (input.systemInstanceId != null && { systemInstanceId: input.systemInstanceId }));
2805
2781
  };
2806
2782
  var serializeAws_json1_1SearchFlowTemplatesRequest = function (input, context) {
2807
- return __assign(__assign(__assign({}, (input.filters !== undefined &&
2808
- input.filters !== null && { filters: serializeAws_json1_1FlowTemplateFilters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
2783
+ return __assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_json1_1FlowTemplateFilters(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
2809
2784
  };
2810
2785
  var serializeAws_json1_1SearchSystemInstancesRequest = function (input, context) {
2811
- return __assign(__assign(__assign({}, (input.filters !== undefined &&
2812
- input.filters !== null && { filters: serializeAws_json1_1SystemInstanceFilters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
2786
+ return __assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_json1_1SystemInstanceFilters(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
2813
2787
  };
2814
2788
  var serializeAws_json1_1SearchSystemTemplatesRequest = function (input, context) {
2815
- return __assign(__assign(__assign({}, (input.filters !== undefined &&
2816
- input.filters !== null && { filters: serializeAws_json1_1SystemTemplateFilters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
2789
+ return __assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_json1_1SystemTemplateFilters(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
2817
2790
  };
2818
2791
  var serializeAws_json1_1SearchThingsRequest = function (input, context) {
2819
- return __assign(__assign(__assign(__assign({}, (input.entityId !== undefined && input.entityId !== null && { entityId: input.entityId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.namespaceVersion !== undefined &&
2820
- input.namespaceVersion !== null && { namespaceVersion: input.namespaceVersion })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
2792
+ return __assign(__assign(__assign(__assign({}, (input.entityId != null && { entityId: input.entityId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.namespaceVersion != null && { namespaceVersion: input.namespaceVersion })), (input.nextToken != null && { nextToken: input.nextToken }));
2821
2793
  };
2822
2794
  var serializeAws_json1_1SystemInstanceFilter = function (input, context) {
2823
- return __assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.value !== undefined &&
2824
- input.value !== null && { value: serializeAws_json1_1SystemInstanceFilterValues(input.value, context) }));
2795
+ return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: serializeAws_json1_1SystemInstanceFilterValues(input.value, context) }));
2825
2796
  };
2826
2797
  var serializeAws_json1_1SystemInstanceFilters = function (input, context) {
2827
2798
  return input
@@ -2844,8 +2815,7 @@ var serializeAws_json1_1SystemInstanceFilterValues = function (input, context) {
2844
2815
  });
2845
2816
  };
2846
2817
  var serializeAws_json1_1SystemTemplateFilter = function (input, context) {
2847
- return __assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.value !== undefined &&
2848
- input.value !== null && { value: serializeAws_json1_1SystemTemplateFilterValues(input.value, context) }));
2818
+ return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: serializeAws_json1_1SystemTemplateFilterValues(input.value, context) }));
2849
2819
  };
2850
2820
  var serializeAws_json1_1SystemTemplateFilters = function (input, context) {
2851
2821
  return input
@@ -2868,7 +2838,7 @@ var serializeAws_json1_1SystemTemplateFilterValues = function (input, context) {
2868
2838
  });
2869
2839
  };
2870
2840
  var serializeAws_json1_1Tag = function (input, context) {
2871
- return __assign(__assign({}, (input.key !== undefined && input.key !== null && { key: input.key })), (input.value !== undefined && input.value !== null && { value: input.value }));
2841
+ return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
2872
2842
  };
2873
2843
  var serializeAws_json1_1TagKeyList = function (input, context) {
2874
2844
  return input
@@ -2891,30 +2861,22 @@ var serializeAws_json1_1TagList = function (input, context) {
2891
2861
  });
2892
2862
  };
2893
2863
  var serializeAws_json1_1TagResourceRequest = function (input, context) {
2894
- return __assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
2864
+ return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
2895
2865
  };
2896
2866
  var serializeAws_json1_1UndeploySystemInstanceRequest = function (input, context) {
2897
- return __assign({}, (input.id !== undefined && input.id !== null && { id: input.id }));
2867
+ return __assign({}, (input.id != null && { id: input.id }));
2898
2868
  };
2899
2869
  var serializeAws_json1_1UntagResourceRequest = function (input, context) {
2900
- return __assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tagKeys !== undefined &&
2901
- input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }));
2870
+ return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }));
2902
2871
  };
2903
2872
  var serializeAws_json1_1UpdateFlowTemplateRequest = function (input, context) {
2904
- return __assign(__assign(__assign({}, (input.compatibleNamespaceVersion !== undefined &&
2905
- input.compatibleNamespaceVersion !== null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion })), (input.definition !== undefined &&
2906
- input.definition !== null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) })), (input.id !== undefined && input.id !== null && { id: input.id }));
2873
+ return __assign(__assign(__assign({}, (input.compatibleNamespaceVersion != null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion })), (input.definition != null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) })), (input.id != null && { id: input.id }));
2907
2874
  };
2908
2875
  var serializeAws_json1_1UpdateSystemTemplateRequest = function (input, context) {
2909
- return __assign(__assign(__assign({}, (input.compatibleNamespaceVersion !== undefined &&
2910
- input.compatibleNamespaceVersion !== null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion })), (input.definition !== undefined &&
2911
- input.definition !== null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) })), (input.id !== undefined && input.id !== null && { id: input.id }));
2876
+ return __assign(__assign(__assign({}, (input.compatibleNamespaceVersion != null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion })), (input.definition != null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) })), (input.id != null && { id: input.id }));
2912
2877
  };
2913
2878
  var serializeAws_json1_1UploadEntityDefinitionsRequest = function (input, context) {
2914
- return __assign(__assign(__assign({}, (input.deprecateExistingEntities !== undefined &&
2915
- input.deprecateExistingEntities !== null && { deprecateExistingEntities: input.deprecateExistingEntities })), (input.document !== undefined &&
2916
- input.document !== null && { document: serializeAws_json1_1DefinitionDocument(input.document, context) })), (input.syncWithPublicNamespace !== undefined &&
2917
- input.syncWithPublicNamespace !== null && { syncWithPublicNamespace: input.syncWithPublicNamespace }));
2879
+ return __assign(__assign(__assign({}, (input.deprecateExistingEntities != null && { deprecateExistingEntities: input.deprecateExistingEntities })), (input.document != null && { document: serializeAws_json1_1DefinitionDocument(input.document, context) })), (input.syncWithPublicNamespace != null && { syncWithPublicNamespace: input.syncWithPublicNamespace }));
2918
2880
  };
2919
2881
  var serializeAws_json1_1Urns = function (input, context) {
2920
2882
  return input
@@ -2931,23 +2893,17 @@ var deserializeAws_json1_1AssociateEntityToThingResponse = function (output, con
2931
2893
  };
2932
2894
  var deserializeAws_json1_1CreateFlowTemplateResponse = function (output, context) {
2933
2895
  return {
2934
- summary: output.summary !== undefined && output.summary !== null
2935
- ? deserializeAws_json1_1FlowTemplateSummary(output.summary, context)
2936
- : undefined,
2896
+ summary: output.summary != null ? deserializeAws_json1_1FlowTemplateSummary(output.summary, context) : undefined,
2937
2897
  };
2938
2898
  };
2939
2899
  var deserializeAws_json1_1CreateSystemInstanceResponse = function (output, context) {
2940
2900
  return {
2941
- summary: output.summary !== undefined && output.summary !== null
2942
- ? deserializeAws_json1_1SystemInstanceSummary(output.summary, context)
2943
- : undefined,
2901
+ summary: output.summary != null ? deserializeAws_json1_1SystemInstanceSummary(output.summary, context) : undefined,
2944
2902
  };
2945
2903
  };
2946
2904
  var deserializeAws_json1_1CreateSystemTemplateResponse = function (output, context) {
2947
2905
  return {
2948
- summary: output.summary !== undefined && output.summary !== null
2949
- ? deserializeAws_json1_1SystemTemplateSummary(output.summary, context)
2950
- : undefined,
2906
+ summary: output.summary != null ? deserializeAws_json1_1SystemTemplateSummary(output.summary, context) : undefined,
2951
2907
  };
2952
2908
  };
2953
2909
  var deserializeAws_json1_1DefinitionDocument = function (output, context) {
@@ -2991,9 +2947,7 @@ var deserializeAws_json1_1DependencyRevisions = function (output, context) {
2991
2947
  var deserializeAws_json1_1DeploySystemInstanceResponse = function (output, context) {
2992
2948
  return {
2993
2949
  greengrassDeploymentId: __expectString(output.greengrassDeploymentId),
2994
- summary: output.summary !== undefined && output.summary !== null
2995
- ? deserializeAws_json1_1SystemInstanceSummary(output.summary, context)
2996
- : undefined,
2950
+ summary: output.summary != null ? deserializeAws_json1_1SystemInstanceSummary(output.summary, context) : undefined,
2997
2951
  };
2998
2952
  };
2999
2953
  var deserializeAws_json1_1DeprecateFlowTemplateResponse = function (output, context) {
@@ -3017,12 +2971,8 @@ var deserializeAws_json1_1DissociateEntityFromThingResponse = function (output,
3017
2971
  var deserializeAws_json1_1EntityDescription = function (output, context) {
3018
2972
  return {
3019
2973
  arn: __expectString(output.arn),
3020
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3021
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
3022
- : undefined,
3023
- definition: output.definition !== undefined && output.definition !== null
3024
- ? deserializeAws_json1_1DefinitionDocument(output.definition, context)
3025
- : undefined,
2974
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
2975
+ definition: output.definition != null ? deserializeAws_json1_1DefinitionDocument(output.definition, context) : undefined,
3026
2976
  id: __expectString(output.id),
3027
2977
  type: __expectString(output.type),
3028
2978
  };
@@ -3043,9 +2993,7 @@ var deserializeAws_json1_1FlowExecutionMessage = function (output, context) {
3043
2993
  eventType: __expectString(output.eventType),
3044
2994
  messageId: __expectString(output.messageId),
3045
2995
  payload: __expectString(output.payload),
3046
- timestamp: output.timestamp !== undefined && output.timestamp !== null
3047
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timestamp)))
3048
- : undefined,
2996
+ timestamp: output.timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timestamp))) : undefined,
3049
2997
  };
3050
2998
  };
3051
2999
  var deserializeAws_json1_1FlowExecutionMessages = function (output, context) {
@@ -3072,26 +3020,18 @@ var deserializeAws_json1_1FlowExecutionSummaries = function (output, context) {
3072
3020
  };
3073
3021
  var deserializeAws_json1_1FlowExecutionSummary = function (output, context) {
3074
3022
  return {
3075
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3076
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
3077
- : undefined,
3023
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
3078
3024
  flowExecutionId: __expectString(output.flowExecutionId),
3079
3025
  flowTemplateId: __expectString(output.flowTemplateId),
3080
3026
  status: __expectString(output.status),
3081
3027
  systemInstanceId: __expectString(output.systemInstanceId),
3082
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
3083
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
3084
- : undefined,
3028
+ updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
3085
3029
  };
3086
3030
  };
3087
3031
  var deserializeAws_json1_1FlowTemplateDescription = function (output, context) {
3088
3032
  return {
3089
- definition: output.definition !== undefined && output.definition !== null
3090
- ? deserializeAws_json1_1DefinitionDocument(output.definition, context)
3091
- : undefined,
3092
- summary: output.summary !== undefined && output.summary !== null
3093
- ? deserializeAws_json1_1FlowTemplateSummary(output.summary, context)
3094
- : undefined,
3033
+ definition: output.definition != null ? deserializeAws_json1_1DefinitionDocument(output.definition, context) : undefined,
3034
+ summary: output.summary != null ? deserializeAws_json1_1FlowTemplateSummary(output.summary, context) : undefined,
3095
3035
  validatedNamespaceVersion: __expectLong(output.validatedNamespaceVersion),
3096
3036
  };
3097
3037
  };
@@ -3109,23 +3049,19 @@ var deserializeAws_json1_1FlowTemplateSummaries = function (output, context) {
3109
3049
  var deserializeAws_json1_1FlowTemplateSummary = function (output, context) {
3110
3050
  return {
3111
3051
  arn: __expectString(output.arn),
3112
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3113
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
3114
- : undefined,
3052
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
3115
3053
  id: __expectString(output.id),
3116
3054
  revisionNumber: __expectLong(output.revisionNumber),
3117
3055
  };
3118
3056
  };
3119
3057
  var deserializeAws_json1_1GetEntitiesResponse = function (output, context) {
3120
3058
  return {
3121
- descriptions: output.descriptions !== undefined && output.descriptions !== null
3122
- ? deserializeAws_json1_1EntityDescriptions(output.descriptions, context)
3123
- : undefined,
3059
+ descriptions: output.descriptions != null ? deserializeAws_json1_1EntityDescriptions(output.descriptions, context) : undefined,
3124
3060
  };
3125
3061
  };
3126
3062
  var deserializeAws_json1_1GetFlowTemplateResponse = function (output, context) {
3127
3063
  return {
3128
- description: output.description !== undefined && output.description !== null
3064
+ description: output.description != null
3129
3065
  ? deserializeAws_json1_1FlowTemplateDescription(output.description, context)
3130
3066
  : undefined,
3131
3067
  };
@@ -3133,9 +3069,7 @@ var deserializeAws_json1_1GetFlowTemplateResponse = function (output, context) {
3133
3069
  var deserializeAws_json1_1GetFlowTemplateRevisionsResponse = function (output, context) {
3134
3070
  return {
3135
3071
  nextToken: __expectString(output.nextToken),
3136
- summaries: output.summaries !== undefined && output.summaries !== null
3137
- ? deserializeAws_json1_1FlowTemplateSummaries(output.summaries, context)
3138
- : undefined,
3072
+ summaries: output.summaries != null ? deserializeAws_json1_1FlowTemplateSummaries(output.summaries, context) : undefined,
3139
3073
  };
3140
3074
  };
3141
3075
  var deserializeAws_json1_1GetNamespaceDeletionStatusResponse = function (output, context) {
@@ -3149,14 +3083,14 @@ var deserializeAws_json1_1GetNamespaceDeletionStatusResponse = function (output,
3149
3083
  };
3150
3084
  var deserializeAws_json1_1GetSystemInstanceResponse = function (output, context) {
3151
3085
  return {
3152
- description: output.description !== undefined && output.description !== null
3086
+ description: output.description != null
3153
3087
  ? deserializeAws_json1_1SystemInstanceDescription(output.description, context)
3154
3088
  : undefined,
3155
3089
  };
3156
3090
  };
3157
3091
  var deserializeAws_json1_1GetSystemTemplateResponse = function (output, context) {
3158
3092
  return {
3159
- description: output.description !== undefined && output.description !== null
3093
+ description: output.description != null
3160
3094
  ? deserializeAws_json1_1SystemTemplateDescription(output.description, context)
3161
3095
  : undefined,
3162
3096
  };
@@ -3164,19 +3098,15 @@ var deserializeAws_json1_1GetSystemTemplateResponse = function (output, context)
3164
3098
  var deserializeAws_json1_1GetSystemTemplateRevisionsResponse = function (output, context) {
3165
3099
  return {
3166
3100
  nextToken: __expectString(output.nextToken),
3167
- summaries: output.summaries !== undefined && output.summaries !== null
3168
- ? deserializeAws_json1_1SystemTemplateSummaries(output.summaries, context)
3169
- : undefined,
3101
+ summaries: output.summaries != null ? deserializeAws_json1_1SystemTemplateSummaries(output.summaries, context) : undefined,
3170
3102
  };
3171
3103
  };
3172
3104
  var deserializeAws_json1_1GetUploadStatusResponse = function (output, context) {
3173
3105
  return {
3174
- createdDate: output.createdDate !== undefined && output.createdDate !== null
3106
+ createdDate: output.createdDate != null
3175
3107
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdDate)))
3176
3108
  : undefined,
3177
- failureReason: output.failureReason !== undefined && output.failureReason !== null
3178
- ? deserializeAws_json1_1StringList(output.failureReason, context)
3179
- : undefined,
3109
+ failureReason: output.failureReason != null ? deserializeAws_json1_1StringList(output.failureReason, context) : undefined,
3180
3110
  namespaceArn: __expectString(output.namespaceArn),
3181
3111
  namespaceName: __expectString(output.namespaceName),
3182
3112
  namespaceVersion: __expectLong(output.namespaceVersion),
@@ -3201,18 +3131,14 @@ var deserializeAws_json1_1LimitExceededException = function (output, context) {
3201
3131
  };
3202
3132
  var deserializeAws_json1_1ListFlowExecutionMessagesResponse = function (output, context) {
3203
3133
  return {
3204
- messages: output.messages !== undefined && output.messages !== null
3205
- ? deserializeAws_json1_1FlowExecutionMessages(output.messages, context)
3206
- : undefined,
3134
+ messages: output.messages != null ? deserializeAws_json1_1FlowExecutionMessages(output.messages, context) : undefined,
3207
3135
  nextToken: __expectString(output.nextToken),
3208
3136
  };
3209
3137
  };
3210
3138
  var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
3211
3139
  return {
3212
3140
  nextToken: __expectString(output.nextToken),
3213
- tags: output.tags !== undefined && output.tags !== null
3214
- ? deserializeAws_json1_1TagList(output.tags, context)
3215
- : undefined,
3141
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
3216
3142
  };
3217
3143
  };
3218
3144
  var deserializeAws_json1_1MetricsConfiguration = function (output, context) {
@@ -3238,50 +3164,38 @@ var deserializeAws_json1_1ResourceNotFoundException = function (output, context)
3238
3164
  };
3239
3165
  var deserializeAws_json1_1SearchEntitiesResponse = function (output, context) {
3240
3166
  return {
3241
- descriptions: output.descriptions !== undefined && output.descriptions !== null
3242
- ? deserializeAws_json1_1EntityDescriptions(output.descriptions, context)
3243
- : undefined,
3167
+ descriptions: output.descriptions != null ? deserializeAws_json1_1EntityDescriptions(output.descriptions, context) : undefined,
3244
3168
  nextToken: __expectString(output.nextToken),
3245
3169
  };
3246
3170
  };
3247
3171
  var deserializeAws_json1_1SearchFlowExecutionsResponse = function (output, context) {
3248
3172
  return {
3249
3173
  nextToken: __expectString(output.nextToken),
3250
- summaries: output.summaries !== undefined && output.summaries !== null
3251
- ? deserializeAws_json1_1FlowExecutionSummaries(output.summaries, context)
3252
- : undefined,
3174
+ summaries: output.summaries != null ? deserializeAws_json1_1FlowExecutionSummaries(output.summaries, context) : undefined,
3253
3175
  };
3254
3176
  };
3255
3177
  var deserializeAws_json1_1SearchFlowTemplatesResponse = function (output, context) {
3256
3178
  return {
3257
3179
  nextToken: __expectString(output.nextToken),
3258
- summaries: output.summaries !== undefined && output.summaries !== null
3259
- ? deserializeAws_json1_1FlowTemplateSummaries(output.summaries, context)
3260
- : undefined,
3180
+ summaries: output.summaries != null ? deserializeAws_json1_1FlowTemplateSummaries(output.summaries, context) : undefined,
3261
3181
  };
3262
3182
  };
3263
3183
  var deserializeAws_json1_1SearchSystemInstancesResponse = function (output, context) {
3264
3184
  return {
3265
3185
  nextToken: __expectString(output.nextToken),
3266
- summaries: output.summaries !== undefined && output.summaries !== null
3267
- ? deserializeAws_json1_1SystemInstanceSummaries(output.summaries, context)
3268
- : undefined,
3186
+ summaries: output.summaries != null ? deserializeAws_json1_1SystemInstanceSummaries(output.summaries, context) : undefined,
3269
3187
  };
3270
3188
  };
3271
3189
  var deserializeAws_json1_1SearchSystemTemplatesResponse = function (output, context) {
3272
3190
  return {
3273
3191
  nextToken: __expectString(output.nextToken),
3274
- summaries: output.summaries !== undefined && output.summaries !== null
3275
- ? deserializeAws_json1_1SystemTemplateSummaries(output.summaries, context)
3276
- : undefined,
3192
+ summaries: output.summaries != null ? deserializeAws_json1_1SystemTemplateSummaries(output.summaries, context) : undefined,
3277
3193
  };
3278
3194
  };
3279
3195
  var deserializeAws_json1_1SearchThingsResponse = function (output, context) {
3280
3196
  return {
3281
3197
  nextToken: __expectString(output.nextToken),
3282
- things: output.things !== undefined && output.things !== null
3283
- ? deserializeAws_json1_1Things(output.things, context)
3284
- : undefined,
3198
+ things: output.things != null ? deserializeAws_json1_1Things(output.things, context) : undefined,
3285
3199
  };
3286
3200
  };
3287
3201
  var deserializeAws_json1_1StringList = function (output, context) {
@@ -3297,18 +3211,14 @@ var deserializeAws_json1_1StringList = function (output, context) {
3297
3211
  };
3298
3212
  var deserializeAws_json1_1SystemInstanceDescription = function (output, context) {
3299
3213
  return {
3300
- definition: output.definition !== undefined && output.definition !== null
3301
- ? deserializeAws_json1_1DefinitionDocument(output.definition, context)
3302
- : undefined,
3214
+ definition: output.definition != null ? deserializeAws_json1_1DefinitionDocument(output.definition, context) : undefined,
3303
3215
  flowActionsRoleArn: __expectString(output.flowActionsRoleArn),
3304
- metricsConfiguration: output.metricsConfiguration !== undefined && output.metricsConfiguration !== null
3216
+ metricsConfiguration: output.metricsConfiguration != null
3305
3217
  ? deserializeAws_json1_1MetricsConfiguration(output.metricsConfiguration, context)
3306
3218
  : undefined,
3307
3219
  s3BucketName: __expectString(output.s3BucketName),
3308
- summary: output.summary !== undefined && output.summary !== null
3309
- ? deserializeAws_json1_1SystemInstanceSummary(output.summary, context)
3310
- : undefined,
3311
- validatedDependencyRevisions: output.validatedDependencyRevisions !== undefined && output.validatedDependencyRevisions !== null
3220
+ summary: output.summary != null ? deserializeAws_json1_1SystemInstanceSummary(output.summary, context) : undefined,
3221
+ validatedDependencyRevisions: output.validatedDependencyRevisions != null
3312
3222
  ? deserializeAws_json1_1DependencyRevisions(output.validatedDependencyRevisions, context)
3313
3223
  : undefined,
3314
3224
  validatedNamespaceVersion: __expectLong(output.validatedNamespaceVersion),
@@ -3328,28 +3238,20 @@ var deserializeAws_json1_1SystemInstanceSummaries = function (output, context) {
3328
3238
  var deserializeAws_json1_1SystemInstanceSummary = function (output, context) {
3329
3239
  return {
3330
3240
  arn: __expectString(output.arn),
3331
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3332
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
3333
- : undefined,
3241
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
3334
3242
  greengrassGroupId: __expectString(output.greengrassGroupId),
3335
3243
  greengrassGroupName: __expectString(output.greengrassGroupName),
3336
3244
  greengrassGroupVersionId: __expectString(output.greengrassGroupVersionId),
3337
3245
  id: __expectString(output.id),
3338
3246
  status: __expectString(output.status),
3339
3247
  target: __expectString(output.target),
3340
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
3341
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
3342
- : undefined,
3248
+ updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
3343
3249
  };
3344
3250
  };
3345
3251
  var deserializeAws_json1_1SystemTemplateDescription = function (output, context) {
3346
3252
  return {
3347
- definition: output.definition !== undefined && output.definition !== null
3348
- ? deserializeAws_json1_1DefinitionDocument(output.definition, context)
3349
- : undefined,
3350
- summary: output.summary !== undefined && output.summary !== null
3351
- ? deserializeAws_json1_1SystemTemplateSummary(output.summary, context)
3352
- : undefined,
3253
+ definition: output.definition != null ? deserializeAws_json1_1DefinitionDocument(output.definition, context) : undefined,
3254
+ summary: output.summary != null ? deserializeAws_json1_1SystemTemplateSummary(output.summary, context) : undefined,
3353
3255
  validatedNamespaceVersion: __expectLong(output.validatedNamespaceVersion),
3354
3256
  };
3355
3257
  };
@@ -3367,9 +3269,7 @@ var deserializeAws_json1_1SystemTemplateSummaries = function (output, context) {
3367
3269
  var deserializeAws_json1_1SystemTemplateSummary = function (output, context) {
3368
3270
  return {
3369
3271
  arn: __expectString(output.arn),
3370
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3371
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
3372
- : undefined,
3272
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
3373
3273
  id: __expectString(output.id),
3374
3274
  revisionNumber: __expectLong(output.revisionNumber),
3375
3275
  };
@@ -3418,9 +3318,7 @@ var deserializeAws_json1_1ThrottlingException = function (output, context) {
3418
3318
  };
3419
3319
  var deserializeAws_json1_1UndeploySystemInstanceResponse = function (output, context) {
3420
3320
  return {
3421
- summary: output.summary !== undefined && output.summary !== null
3422
- ? deserializeAws_json1_1SystemInstanceSummary(output.summary, context)
3423
- : undefined,
3321
+ summary: output.summary != null ? deserializeAws_json1_1SystemInstanceSummary(output.summary, context) : undefined,
3424
3322
  };
3425
3323
  };
3426
3324
  var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
@@ -3428,16 +3326,12 @@ var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
3428
3326
  };
3429
3327
  var deserializeAws_json1_1UpdateFlowTemplateResponse = function (output, context) {
3430
3328
  return {
3431
- summary: output.summary !== undefined && output.summary !== null
3432
- ? deserializeAws_json1_1FlowTemplateSummary(output.summary, context)
3433
- : undefined,
3329
+ summary: output.summary != null ? deserializeAws_json1_1FlowTemplateSummary(output.summary, context) : undefined,
3434
3330
  };
3435
3331
  };
3436
3332
  var deserializeAws_json1_1UpdateSystemTemplateResponse = function (output, context) {
3437
3333
  return {
3438
- summary: output.summary !== undefined && output.summary !== null
3439
- ? deserializeAws_json1_1SystemTemplateSummary(output.summary, context)
3440
- : undefined,
3334
+ summary: output.summary != null ? deserializeAws_json1_1SystemTemplateSummary(output.summary, context) : undefined,
3441
3335
  };
3442
3336
  };
3443
3337
  var deserializeAws_json1_1UploadEntityDefinitionsResponse = function (output, context) {
@@ -3501,6 +3395,9 @@ var loadRestJsonErrorCode = function (output, data) {
3501
3395
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
3502
3396
  var sanitizeErrorCode = function (rawValue) {
3503
3397
  var cleanValue = rawValue;
3398
+ if (typeof cleanValue === "number") {
3399
+ cleanValue = cleanValue.toString();
3400
+ }
3504
3401
  if (cleanValue.indexOf(":") >= 0) {
3505
3402
  cleanValue = cleanValue.split(":")[0];
3506
3403
  }