@aws-sdk/client-dataexchange 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.
@@ -40,11 +40,10 @@ const serializeAws_restJson1CreateDataSetCommand = async (input, context) => {
40
40
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets";
41
41
  let body;
42
42
  body = JSON.stringify({
43
- ...(input.AssetType !== undefined && input.AssetType !== null && { AssetType: input.AssetType }),
44
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
45
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
46
- ...(input.Tags !== undefined &&
47
- input.Tags !== null && { Tags: serializeAws_restJson1MapOf__string(input.Tags, context) }),
43
+ ...(input.AssetType != null && { AssetType: input.AssetType }),
44
+ ...(input.Description != null && { Description: input.Description }),
45
+ ...(input.Name != null && { Name: input.Name }),
46
+ ...(input.Tags != null && { Tags: serializeAws_restJson1MapOf__string(input.Tags, context) }),
48
47
  });
49
48
  return new protocol_http_1.HttpRequest({
50
49
  protocol,
@@ -65,10 +64,8 @@ const serializeAws_restJson1CreateEventActionCommand = async (input, context) =>
65
64
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions";
66
65
  let body;
67
66
  body = JSON.stringify({
68
- ...(input.Action !== undefined &&
69
- input.Action !== null && { Action: serializeAws_restJson1Action(input.Action, context) }),
70
- ...(input.Event !== undefined &&
71
- input.Event !== null && { Event: serializeAws_restJson1Event(input.Event, context) }),
67
+ ...(input.Action != null && { Action: serializeAws_restJson1Action(input.Action, context) }),
68
+ ...(input.Event != null && { Event: serializeAws_restJson1Event(input.Event, context) }),
72
69
  });
73
70
  return new protocol_http_1.HttpRequest({
74
71
  protocol,
@@ -89,9 +86,8 @@ const serializeAws_restJson1CreateJobCommand = async (input, context) => {
89
86
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/jobs";
90
87
  let body;
91
88
  body = JSON.stringify({
92
- ...(input.Details !== undefined &&
93
- input.Details !== null && { Details: serializeAws_restJson1RequestDetails(input.Details, context) }),
94
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
89
+ ...(input.Details != null && { Details: serializeAws_restJson1RequestDetails(input.Details, context) }),
90
+ ...(input.Type != null && { Type: input.Type }),
95
91
  });
96
92
  return new protocol_http_1.HttpRequest({
97
93
  protocol,
@@ -122,9 +118,8 @@ const serializeAws_restJson1CreateRevisionCommand = async (input, context) => {
122
118
  }
123
119
  let body;
124
120
  body = JSON.stringify({
125
- ...(input.Comment !== undefined && input.Comment !== null && { Comment: input.Comment }),
126
- ...(input.Tags !== undefined &&
127
- input.Tags !== null && { Tags: serializeAws_restJson1MapOf__string(input.Tags, context) }),
121
+ ...(input.Comment != null && { Comment: input.Comment }),
122
+ ...(input.Tags != null && { Tags: serializeAws_restJson1MapOf__string(input.Tags, context) }),
128
123
  });
129
124
  return new protocol_http_1.HttpRequest({
130
125
  protocol,
@@ -630,8 +625,7 @@ const serializeAws_restJson1RevokeRevisionCommand = async (input, context) => {
630
625
  }
631
626
  let body;
632
627
  body = JSON.stringify({
633
- ...(input.RevocationComment !== undefined &&
634
- input.RevocationComment !== null && { RevocationComment: input.RevocationComment }),
628
+ ...(input.RevocationComment != null && { RevocationComment: input.RevocationComment }),
635
629
  });
636
630
  return new protocol_http_1.HttpRequest({
637
631
  protocol,
@@ -730,8 +724,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
730
724
  }
731
725
  let body;
732
726
  body = JSON.stringify({
733
- ...(input.Tags !== undefined &&
734
- input.Tags !== null && { tags: serializeAws_restJson1MapOf__string(input.Tags, context) }),
727
+ ...(input.Tags != null && { tags: serializeAws_restJson1MapOf__string(input.Tags, context) }),
735
728
  });
736
729
  return new protocol_http_1.HttpRequest({
737
730
  protocol,
@@ -813,7 +806,7 @@ const serializeAws_restJson1UpdateAssetCommand = async (input, context) => {
813
806
  }
814
807
  let body;
815
808
  body = JSON.stringify({
816
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
809
+ ...(input.Name != null && { Name: input.Name }),
817
810
  });
818
811
  return new protocol_http_1.HttpRequest({
819
812
  protocol,
@@ -844,8 +837,8 @@ const serializeAws_restJson1UpdateDataSetCommand = async (input, context) => {
844
837
  }
845
838
  let body;
846
839
  body = JSON.stringify({
847
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
848
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
840
+ ...(input.Description != null && { Description: input.Description }),
841
+ ...(input.Name != null && { Name: input.Name }),
849
842
  });
850
843
  return new protocol_http_1.HttpRequest({
851
844
  protocol,
@@ -876,8 +869,7 @@ const serializeAws_restJson1UpdateEventActionCommand = async (input, context) =>
876
869
  }
877
870
  let body;
878
871
  body = JSON.stringify({
879
- ...(input.Action !== undefined &&
880
- input.Action !== null && { Action: serializeAws_restJson1Action(input.Action, context) }),
872
+ ...(input.Action != null && { Action: serializeAws_restJson1Action(input.Action, context) }),
881
873
  });
882
874
  return new protocol_http_1.HttpRequest({
883
875
  protocol,
@@ -919,8 +911,8 @@ const serializeAws_restJson1UpdateRevisionCommand = async (input, context) => {
919
911
  }
920
912
  let body;
921
913
  body = JSON.stringify({
922
- ...(input.Comment !== undefined && input.Comment !== null && { Comment: input.Comment }),
923
- ...(input.Finalized !== undefined && input.Finalized !== null && { Finalized: input.Finalized }),
914
+ ...(input.Comment != null && { Comment: input.Comment }),
915
+ ...(input.Finalized != null && { Finalized: input.Finalized }),
924
916
  });
925
917
  return new protocol_http_1.HttpRequest({
926
918
  protocol,
@@ -2903,132 +2895,120 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
2903
2895
  };
2904
2896
  const serializeAws_restJson1Action = (input, context) => {
2905
2897
  return {
2906
- ...(input.ExportRevisionToS3 !== undefined &&
2907
- input.ExportRevisionToS3 !== null && {
2898
+ ...(input.ExportRevisionToS3 != null && {
2908
2899
  ExportRevisionToS3: serializeAws_restJson1AutoExportRevisionToS3RequestDetails(input.ExportRevisionToS3, context),
2909
2900
  }),
2910
2901
  };
2911
2902
  };
2912
2903
  const serializeAws_restJson1AssetDestinationEntry = (input, context) => {
2913
2904
  return {
2914
- ...(input.AssetId !== undefined && input.AssetId !== null && { AssetId: input.AssetId }),
2915
- ...(input.Bucket !== undefined && input.Bucket !== null && { Bucket: input.Bucket }),
2916
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
2905
+ ...(input.AssetId != null && { AssetId: input.AssetId }),
2906
+ ...(input.Bucket != null && { Bucket: input.Bucket }),
2907
+ ...(input.Key != null && { Key: input.Key }),
2917
2908
  };
2918
2909
  };
2919
2910
  const serializeAws_restJson1AssetSourceEntry = (input, context) => {
2920
2911
  return {
2921
- ...(input.Bucket !== undefined && input.Bucket !== null && { Bucket: input.Bucket }),
2922
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
2912
+ ...(input.Bucket != null && { Bucket: input.Bucket }),
2913
+ ...(input.Key != null && { Key: input.Key }),
2923
2914
  };
2924
2915
  };
2925
2916
  const serializeAws_restJson1AutoExportRevisionDestinationEntry = (input, context) => {
2926
2917
  return {
2927
- ...(input.Bucket !== undefined && input.Bucket !== null && { Bucket: input.Bucket }),
2928
- ...(input.KeyPattern !== undefined && input.KeyPattern !== null && { KeyPattern: input.KeyPattern }),
2918
+ ...(input.Bucket != null && { Bucket: input.Bucket }),
2919
+ ...(input.KeyPattern != null && { KeyPattern: input.KeyPattern }),
2929
2920
  };
2930
2921
  };
2931
2922
  const serializeAws_restJson1AutoExportRevisionToS3RequestDetails = (input, context) => {
2932
2923
  return {
2933
- ...(input.Encryption !== undefined &&
2934
- input.Encryption !== null && {
2924
+ ...(input.Encryption != null && {
2935
2925
  Encryption: serializeAws_restJson1ExportServerSideEncryption(input.Encryption, context),
2936
2926
  }),
2937
- ...(input.RevisionDestination !== undefined &&
2938
- input.RevisionDestination !== null && {
2927
+ ...(input.RevisionDestination != null && {
2939
2928
  RevisionDestination: serializeAws_restJson1AutoExportRevisionDestinationEntry(input.RevisionDestination, context),
2940
2929
  }),
2941
2930
  };
2942
2931
  };
2943
2932
  const serializeAws_restJson1Event = (input, context) => {
2944
2933
  return {
2945
- ...(input.RevisionPublished !== undefined &&
2946
- input.RevisionPublished !== null && {
2934
+ ...(input.RevisionPublished != null && {
2947
2935
  RevisionPublished: serializeAws_restJson1RevisionPublished(input.RevisionPublished, context),
2948
2936
  }),
2949
2937
  };
2950
2938
  };
2951
2939
  const serializeAws_restJson1ExportAssetsToS3RequestDetails = (input, context) => {
2952
2940
  return {
2953
- ...(input.AssetDestinations !== undefined &&
2954
- input.AssetDestinations !== null && {
2941
+ ...(input.AssetDestinations != null && {
2955
2942
  AssetDestinations: serializeAws_restJson1ListOfAssetDestinationEntry(input.AssetDestinations, context),
2956
2943
  }),
2957
- ...(input.DataSetId !== undefined && input.DataSetId !== null && { DataSetId: input.DataSetId }),
2958
- ...(input.Encryption !== undefined &&
2959
- input.Encryption !== null && {
2944
+ ...(input.DataSetId != null && { DataSetId: input.DataSetId }),
2945
+ ...(input.Encryption != null && {
2960
2946
  Encryption: serializeAws_restJson1ExportServerSideEncryption(input.Encryption, context),
2961
2947
  }),
2962
- ...(input.RevisionId !== undefined && input.RevisionId !== null && { RevisionId: input.RevisionId }),
2948
+ ...(input.RevisionId != null && { RevisionId: input.RevisionId }),
2963
2949
  };
2964
2950
  };
2965
2951
  const serializeAws_restJson1ExportAssetToSignedUrlRequestDetails = (input, context) => {
2966
2952
  return {
2967
- ...(input.AssetId !== undefined && input.AssetId !== null && { AssetId: input.AssetId }),
2968
- ...(input.DataSetId !== undefined && input.DataSetId !== null && { DataSetId: input.DataSetId }),
2969
- ...(input.RevisionId !== undefined && input.RevisionId !== null && { RevisionId: input.RevisionId }),
2953
+ ...(input.AssetId != null && { AssetId: input.AssetId }),
2954
+ ...(input.DataSetId != null && { DataSetId: input.DataSetId }),
2955
+ ...(input.RevisionId != null && { RevisionId: input.RevisionId }),
2970
2956
  };
2971
2957
  };
2972
2958
  const serializeAws_restJson1ExportRevisionsToS3RequestDetails = (input, context) => {
2973
2959
  return {
2974
- ...(input.DataSetId !== undefined && input.DataSetId !== null && { DataSetId: input.DataSetId }),
2975
- ...(input.Encryption !== undefined &&
2976
- input.Encryption !== null && {
2960
+ ...(input.DataSetId != null && { DataSetId: input.DataSetId }),
2961
+ ...(input.Encryption != null && {
2977
2962
  Encryption: serializeAws_restJson1ExportServerSideEncryption(input.Encryption, context),
2978
2963
  }),
2979
- ...(input.RevisionDestinations !== undefined &&
2980
- input.RevisionDestinations !== null && {
2964
+ ...(input.RevisionDestinations != null && {
2981
2965
  RevisionDestinations: serializeAws_restJson1ListOfRevisionDestinationEntry(input.RevisionDestinations, context),
2982
2966
  }),
2983
2967
  };
2984
2968
  };
2985
2969
  const serializeAws_restJson1ExportServerSideEncryption = (input, context) => {
2986
2970
  return {
2987
- ...(input.KmsKeyArn !== undefined && input.KmsKeyArn !== null && { KmsKeyArn: input.KmsKeyArn }),
2988
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
2971
+ ...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
2972
+ ...(input.Type != null && { Type: input.Type }),
2989
2973
  };
2990
2974
  };
2991
2975
  const serializeAws_restJson1ImportAssetFromApiGatewayApiRequestDetails = (input, context) => {
2992
2976
  return {
2993
- ...(input.ApiDescription !== undefined &&
2994
- input.ApiDescription !== null && { ApiDescription: input.ApiDescription }),
2995
- ...(input.ApiId !== undefined && input.ApiId !== null && { ApiId: input.ApiId }),
2996
- ...(input.ApiKey !== undefined && input.ApiKey !== null && { ApiKey: input.ApiKey }),
2997
- ...(input.ApiName !== undefined && input.ApiName !== null && { ApiName: input.ApiName }),
2998
- ...(input.ApiSpecificationMd5Hash !== undefined &&
2999
- input.ApiSpecificationMd5Hash !== null && { ApiSpecificationMd5Hash: input.ApiSpecificationMd5Hash }),
3000
- ...(input.DataSetId !== undefined && input.DataSetId !== null && { DataSetId: input.DataSetId }),
3001
- ...(input.ProtocolType !== undefined && input.ProtocolType !== null && { ProtocolType: input.ProtocolType }),
3002
- ...(input.RevisionId !== undefined && input.RevisionId !== null && { RevisionId: input.RevisionId }),
3003
- ...(input.Stage !== undefined && input.Stage !== null && { Stage: input.Stage }),
2977
+ ...(input.ApiDescription != null && { ApiDescription: input.ApiDescription }),
2978
+ ...(input.ApiId != null && { ApiId: input.ApiId }),
2979
+ ...(input.ApiKey != null && { ApiKey: input.ApiKey }),
2980
+ ...(input.ApiName != null && { ApiName: input.ApiName }),
2981
+ ...(input.ApiSpecificationMd5Hash != null && { ApiSpecificationMd5Hash: input.ApiSpecificationMd5Hash }),
2982
+ ...(input.DataSetId != null && { DataSetId: input.DataSetId }),
2983
+ ...(input.ProtocolType != null && { ProtocolType: input.ProtocolType }),
2984
+ ...(input.RevisionId != null && { RevisionId: input.RevisionId }),
2985
+ ...(input.Stage != null && { Stage: input.Stage }),
3004
2986
  };
3005
2987
  };
3006
2988
  const serializeAws_restJson1ImportAssetFromSignedUrlRequestDetails = (input, context) => {
3007
2989
  return {
3008
- ...(input.AssetName !== undefined && input.AssetName !== null && { AssetName: input.AssetName }),
3009
- ...(input.DataSetId !== undefined && input.DataSetId !== null && { DataSetId: input.DataSetId }),
3010
- ...(input.Md5Hash !== undefined && input.Md5Hash !== null && { Md5Hash: input.Md5Hash }),
3011
- ...(input.RevisionId !== undefined && input.RevisionId !== null && { RevisionId: input.RevisionId }),
2990
+ ...(input.AssetName != null && { AssetName: input.AssetName }),
2991
+ ...(input.DataSetId != null && { DataSetId: input.DataSetId }),
2992
+ ...(input.Md5Hash != null && { Md5Hash: input.Md5Hash }),
2993
+ ...(input.RevisionId != null && { RevisionId: input.RevisionId }),
3012
2994
  };
3013
2995
  };
3014
2996
  const serializeAws_restJson1ImportAssetsFromRedshiftDataSharesRequestDetails = (input, context) => {
3015
2997
  return {
3016
- ...(input.AssetSources !== undefined &&
3017
- input.AssetSources !== null && {
2998
+ ...(input.AssetSources != null && {
3018
2999
  AssetSources: serializeAws_restJson1ListOfRedshiftDataShareAssetSourceEntry(input.AssetSources, context),
3019
3000
  }),
3020
- ...(input.DataSetId !== undefined && input.DataSetId !== null && { DataSetId: input.DataSetId }),
3021
- ...(input.RevisionId !== undefined && input.RevisionId !== null && { RevisionId: input.RevisionId }),
3001
+ ...(input.DataSetId != null && { DataSetId: input.DataSetId }),
3002
+ ...(input.RevisionId != null && { RevisionId: input.RevisionId }),
3022
3003
  };
3023
3004
  };
3024
3005
  const serializeAws_restJson1ImportAssetsFromS3RequestDetails = (input, context) => {
3025
3006
  return {
3026
- ...(input.AssetSources !== undefined &&
3027
- input.AssetSources !== null && {
3007
+ ...(input.AssetSources != null && {
3028
3008
  AssetSources: serializeAws_restJson1ListOfAssetSourceEntry(input.AssetSources, context),
3029
3009
  }),
3030
- ...(input.DataSetId !== undefined && input.DataSetId !== null && { DataSetId: input.DataSetId }),
3031
- ...(input.RevisionId !== undefined && input.RevisionId !== null && { RevisionId: input.RevisionId }),
3010
+ ...(input.DataSetId != null && { DataSetId: input.DataSetId }),
3011
+ ...(input.RevisionId != null && { RevisionId: input.RevisionId }),
3032
3012
  };
3033
3013
  };
3034
3014
  const serializeAws_restJson1ListOfAssetDestinationEntry = (input, context) => {
@@ -3084,56 +3064,49 @@ const serializeAws_restJson1MapOf__string = (input, context) => {
3084
3064
  };
3085
3065
  const serializeAws_restJson1RedshiftDataShareAssetSourceEntry = (input, context) => {
3086
3066
  return {
3087
- ...(input.DataShareArn !== undefined && input.DataShareArn !== null && { DataShareArn: input.DataShareArn }),
3067
+ ...(input.DataShareArn != null && { DataShareArn: input.DataShareArn }),
3088
3068
  };
3089
3069
  };
3090
3070
  const serializeAws_restJson1RequestDetails = (input, context) => {
3091
3071
  return {
3092
- ...(input.ExportAssetToSignedUrl !== undefined &&
3093
- input.ExportAssetToSignedUrl !== null && {
3072
+ ...(input.ExportAssetToSignedUrl != null && {
3094
3073
  ExportAssetToSignedUrl: serializeAws_restJson1ExportAssetToSignedUrlRequestDetails(input.ExportAssetToSignedUrl, context),
3095
3074
  }),
3096
- ...(input.ExportAssetsToS3 !== undefined &&
3097
- input.ExportAssetsToS3 !== null && {
3075
+ ...(input.ExportAssetsToS3 != null && {
3098
3076
  ExportAssetsToS3: serializeAws_restJson1ExportAssetsToS3RequestDetails(input.ExportAssetsToS3, context),
3099
3077
  }),
3100
- ...(input.ExportRevisionsToS3 !== undefined &&
3101
- input.ExportRevisionsToS3 !== null && {
3078
+ ...(input.ExportRevisionsToS3 != null && {
3102
3079
  ExportRevisionsToS3: serializeAws_restJson1ExportRevisionsToS3RequestDetails(input.ExportRevisionsToS3, context),
3103
3080
  }),
3104
- ...(input.ImportAssetFromApiGatewayApi !== undefined &&
3105
- input.ImportAssetFromApiGatewayApi !== null && {
3081
+ ...(input.ImportAssetFromApiGatewayApi != null && {
3106
3082
  ImportAssetFromApiGatewayApi: serializeAws_restJson1ImportAssetFromApiGatewayApiRequestDetails(input.ImportAssetFromApiGatewayApi, context),
3107
3083
  }),
3108
- ...(input.ImportAssetFromSignedUrl !== undefined &&
3109
- input.ImportAssetFromSignedUrl !== null && {
3084
+ ...(input.ImportAssetFromSignedUrl != null && {
3110
3085
  ImportAssetFromSignedUrl: serializeAws_restJson1ImportAssetFromSignedUrlRequestDetails(input.ImportAssetFromSignedUrl, context),
3111
3086
  }),
3112
- ...(input.ImportAssetsFromRedshiftDataShares !== undefined &&
3113
- input.ImportAssetsFromRedshiftDataShares !== null && {
3087
+ ...(input.ImportAssetsFromRedshiftDataShares != null && {
3114
3088
  ImportAssetsFromRedshiftDataShares: serializeAws_restJson1ImportAssetsFromRedshiftDataSharesRequestDetails(input.ImportAssetsFromRedshiftDataShares, context),
3115
3089
  }),
3116
- ...(input.ImportAssetsFromS3 !== undefined &&
3117
- input.ImportAssetsFromS3 !== null && {
3090
+ ...(input.ImportAssetsFromS3 != null && {
3118
3091
  ImportAssetsFromS3: serializeAws_restJson1ImportAssetsFromS3RequestDetails(input.ImportAssetsFromS3, context),
3119
3092
  }),
3120
3093
  };
3121
3094
  };
3122
3095
  const serializeAws_restJson1RevisionDestinationEntry = (input, context) => {
3123
3096
  return {
3124
- ...(input.Bucket !== undefined && input.Bucket !== null && { Bucket: input.Bucket }),
3125
- ...(input.KeyPattern !== undefined && input.KeyPattern !== null && { KeyPattern: input.KeyPattern }),
3126
- ...(input.RevisionId !== undefined && input.RevisionId !== null && { RevisionId: input.RevisionId }),
3097
+ ...(input.Bucket != null && { Bucket: input.Bucket }),
3098
+ ...(input.KeyPattern != null && { KeyPattern: input.KeyPattern }),
3099
+ ...(input.RevisionId != null && { RevisionId: input.RevisionId }),
3127
3100
  };
3128
3101
  };
3129
3102
  const serializeAws_restJson1RevisionPublished = (input, context) => {
3130
3103
  return {
3131
- ...(input.DataSetId !== undefined && input.DataSetId !== null && { DataSetId: input.DataSetId }),
3104
+ ...(input.DataSetId != null && { DataSetId: input.DataSetId }),
3132
3105
  };
3133
3106
  };
3134
3107
  const deserializeAws_restJson1Action = (output, context) => {
3135
3108
  return {
3136
- ExportRevisionToS3: output.ExportRevisionToS3 !== undefined && output.ExportRevisionToS3 !== null
3109
+ ExportRevisionToS3: output.ExportRevisionToS3 != null
3137
3110
  ? deserializeAws_restJson1AutoExportRevisionToS3RequestDetails(output.ExportRevisionToS3, context)
3138
3111
  : undefined,
3139
3112
  };
@@ -3146,7 +3119,7 @@ const deserializeAws_restJson1ApiGatewayApiAsset = (output, context) => {
3146
3119
  ApiKey: (0, smithy_client_1.expectString)(output.ApiKey),
3147
3120
  ApiName: (0, smithy_client_1.expectString)(output.ApiName),
3148
3121
  ApiSpecificationDownloadUrl: (0, smithy_client_1.expectString)(output.ApiSpecificationDownloadUrl),
3149
- ApiSpecificationDownloadUrlExpiresAt: output.ApiSpecificationDownloadUrlExpiresAt !== undefined && output.ApiSpecificationDownloadUrlExpiresAt !== null
3122
+ ApiSpecificationDownloadUrlExpiresAt: output.ApiSpecificationDownloadUrlExpiresAt != null
3150
3123
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.ApiSpecificationDownloadUrlExpiresAt))
3151
3124
  : undefined,
3152
3125
  ProtocolType: (0, smithy_client_1.expectString)(output.ProtocolType),
@@ -3162,13 +3135,13 @@ const deserializeAws_restJson1AssetDestinationEntry = (output, context) => {
3162
3135
  };
3163
3136
  const deserializeAws_restJson1AssetDetails = (output, context) => {
3164
3137
  return {
3165
- ApiGatewayApiAsset: output.ApiGatewayApiAsset !== undefined && output.ApiGatewayApiAsset !== null
3138
+ ApiGatewayApiAsset: output.ApiGatewayApiAsset != null
3166
3139
  ? deserializeAws_restJson1ApiGatewayApiAsset(output.ApiGatewayApiAsset, context)
3167
3140
  : undefined,
3168
- RedshiftDataShareAsset: output.RedshiftDataShareAsset !== undefined && output.RedshiftDataShareAsset !== null
3141
+ RedshiftDataShareAsset: output.RedshiftDataShareAsset != null
3169
3142
  ? deserializeAws_restJson1RedshiftDataShareAsset(output.RedshiftDataShareAsset, context)
3170
3143
  : undefined,
3171
- S3SnapshotAsset: output.S3SnapshotAsset !== undefined && output.S3SnapshotAsset !== null
3144
+ S3SnapshotAsset: output.S3SnapshotAsset != null
3172
3145
  ? deserializeAws_restJson1S3SnapshotAsset(output.S3SnapshotAsset, context)
3173
3146
  : undefined,
3174
3147
  };
@@ -3176,21 +3149,15 @@ const deserializeAws_restJson1AssetDetails = (output, context) => {
3176
3149
  const deserializeAws_restJson1AssetEntry = (output, context) => {
3177
3150
  return {
3178
3151
  Arn: (0, smithy_client_1.expectString)(output.Arn),
3179
- AssetDetails: output.AssetDetails !== undefined && output.AssetDetails !== null
3180
- ? deserializeAws_restJson1AssetDetails(output.AssetDetails, context)
3181
- : undefined,
3152
+ AssetDetails: output.AssetDetails != null ? deserializeAws_restJson1AssetDetails(output.AssetDetails, context) : undefined,
3182
3153
  AssetType: (0, smithy_client_1.expectString)(output.AssetType),
3183
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
3184
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedAt))
3185
- : undefined,
3154
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedAt)) : undefined,
3186
3155
  DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
3187
3156
  Id: (0, smithy_client_1.expectString)(output.Id),
3188
3157
  Name: (0, smithy_client_1.expectString)(output.Name),
3189
3158
  RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
3190
3159
  SourceId: (0, smithy_client_1.expectString)(output.SourceId),
3191
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
3192
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedAt))
3193
- : undefined,
3160
+ UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedAt)) : undefined,
3194
3161
  };
3195
3162
  };
3196
3163
  const deserializeAws_restJson1AssetSourceEntry = (output, context) => {
@@ -3207,10 +3174,10 @@ const deserializeAws_restJson1AutoExportRevisionDestinationEntry = (output, cont
3207
3174
  };
3208
3175
  const deserializeAws_restJson1AutoExportRevisionToS3RequestDetails = (output, context) => {
3209
3176
  return {
3210
- Encryption: output.Encryption !== undefined && output.Encryption !== null
3177
+ Encryption: output.Encryption != null
3211
3178
  ? deserializeAws_restJson1ExportServerSideEncryption(output.Encryption, context)
3212
3179
  : undefined,
3213
- RevisionDestination: output.RevisionDestination !== undefined && output.RevisionDestination !== null
3180
+ RevisionDestination: output.RevisionDestination != null
3214
3181
  ? deserializeAws_restJson1AutoExportRevisionDestinationEntry(output.RevisionDestination, context)
3215
3182
  : undefined,
3216
3183
  };
@@ -3219,65 +3186,50 @@ const deserializeAws_restJson1DataSetEntry = (output, context) => {
3219
3186
  return {
3220
3187
  Arn: (0, smithy_client_1.expectString)(output.Arn),
3221
3188
  AssetType: (0, smithy_client_1.expectString)(output.AssetType),
3222
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
3223
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedAt))
3224
- : undefined,
3189
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedAt)) : undefined,
3225
3190
  Description: (0, smithy_client_1.expectString)(output.Description),
3226
3191
  Id: (0, smithy_client_1.expectString)(output.Id),
3227
3192
  Name: (0, smithy_client_1.expectString)(output.Name),
3228
3193
  Origin: (0, smithy_client_1.expectString)(output.Origin),
3229
- OriginDetails: output.OriginDetails !== undefined && output.OriginDetails !== null
3230
- ? deserializeAws_restJson1OriginDetails(output.OriginDetails, context)
3231
- : undefined,
3194
+ OriginDetails: output.OriginDetails != null ? deserializeAws_restJson1OriginDetails(output.OriginDetails, context) : undefined,
3232
3195
  SourceId: (0, smithy_client_1.expectString)(output.SourceId),
3233
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
3234
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedAt))
3235
- : undefined,
3196
+ UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedAt)) : undefined,
3236
3197
  };
3237
3198
  };
3238
3199
  const deserializeAws_restJson1Details = (output, context) => {
3239
3200
  return {
3240
- ImportAssetFromSignedUrlJobErrorDetails: output.ImportAssetFromSignedUrlJobErrorDetails !== undefined &&
3241
- output.ImportAssetFromSignedUrlJobErrorDetails !== null
3201
+ ImportAssetFromSignedUrlJobErrorDetails: output.ImportAssetFromSignedUrlJobErrorDetails != null
3242
3202
  ? deserializeAws_restJson1ImportAssetFromSignedUrlJobErrorDetails(output.ImportAssetFromSignedUrlJobErrorDetails, context)
3243
3203
  : undefined,
3244
- ImportAssetsFromS3JobErrorDetails: output.ImportAssetsFromS3JobErrorDetails !== undefined && output.ImportAssetsFromS3JobErrorDetails !== null
3204
+ ImportAssetsFromS3JobErrorDetails: output.ImportAssetsFromS3JobErrorDetails != null
3245
3205
  ? deserializeAws_restJson1ListOfAssetSourceEntry(output.ImportAssetsFromS3JobErrorDetails, context)
3246
3206
  : undefined,
3247
3207
  };
3248
3208
  };
3249
3209
  const deserializeAws_restJson1Event = (output, context) => {
3250
3210
  return {
3251
- RevisionPublished: output.RevisionPublished !== undefined && output.RevisionPublished !== null
3211
+ RevisionPublished: output.RevisionPublished != null
3252
3212
  ? deserializeAws_restJson1RevisionPublished(output.RevisionPublished, context)
3253
3213
  : undefined,
3254
3214
  };
3255
3215
  };
3256
3216
  const deserializeAws_restJson1EventActionEntry = (output, context) => {
3257
3217
  return {
3258
- Action: output.Action !== undefined && output.Action !== null
3259
- ? deserializeAws_restJson1Action(output.Action, context)
3260
- : undefined,
3218
+ Action: output.Action != null ? deserializeAws_restJson1Action(output.Action, context) : undefined,
3261
3219
  Arn: (0, smithy_client_1.expectString)(output.Arn),
3262
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
3263
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedAt))
3264
- : undefined,
3265
- Event: output.Event !== undefined && output.Event !== null
3266
- ? deserializeAws_restJson1Event(output.Event, context)
3267
- : undefined,
3220
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedAt)) : undefined,
3221
+ Event: output.Event != null ? deserializeAws_restJson1Event(output.Event, context) : undefined,
3268
3222
  Id: (0, smithy_client_1.expectString)(output.Id),
3269
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
3270
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedAt))
3271
- : undefined,
3223
+ UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedAt)) : undefined,
3272
3224
  };
3273
3225
  };
3274
3226
  const deserializeAws_restJson1ExportAssetsToS3ResponseDetails = (output, context) => {
3275
3227
  return {
3276
- AssetDestinations: output.AssetDestinations !== undefined && output.AssetDestinations !== null
3228
+ AssetDestinations: output.AssetDestinations != null
3277
3229
  ? deserializeAws_restJson1ListOfAssetDestinationEntry(output.AssetDestinations, context)
3278
3230
  : undefined,
3279
3231
  DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
3280
- Encryption: output.Encryption !== undefined && output.Encryption !== null
3232
+ Encryption: output.Encryption != null
3281
3233
  ? deserializeAws_restJson1ExportServerSideEncryption(output.Encryption, context)
3282
3234
  : undefined,
3283
3235
  RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
@@ -3289,7 +3241,7 @@ const deserializeAws_restJson1ExportAssetToSignedUrlResponseDetails = (output, c
3289
3241
  DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
3290
3242
  RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
3291
3243
  SignedUrl: (0, smithy_client_1.expectString)(output.SignedUrl),
3292
- SignedUrlExpiresAt: output.SignedUrlExpiresAt !== undefined && output.SignedUrlExpiresAt !== null
3244
+ SignedUrlExpiresAt: output.SignedUrlExpiresAt != null
3293
3245
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SignedUrlExpiresAt))
3294
3246
  : undefined,
3295
3247
  };
@@ -3297,11 +3249,11 @@ const deserializeAws_restJson1ExportAssetToSignedUrlResponseDetails = (output, c
3297
3249
  const deserializeAws_restJson1ExportRevisionsToS3ResponseDetails = (output, context) => {
3298
3250
  return {
3299
3251
  DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
3300
- Encryption: output.Encryption !== undefined && output.Encryption !== null
3252
+ Encryption: output.Encryption != null
3301
3253
  ? deserializeAws_restJson1ExportServerSideEncryption(output.Encryption, context)
3302
3254
  : undefined,
3303
3255
  EventActionArn: (0, smithy_client_1.expectString)(output.EventActionArn),
3304
- RevisionDestinations: output.RevisionDestinations !== undefined && output.RevisionDestinations !== null
3256
+ RevisionDestinations: output.RevisionDestinations != null
3305
3257
  ? deserializeAws_restJson1ListOfRevisionDestinationEntry(output.RevisionDestinations, context)
3306
3258
  : undefined,
3307
3259
  };
@@ -3320,7 +3272,7 @@ const deserializeAws_restJson1ImportAssetFromApiGatewayApiResponseDetails = (out
3320
3272
  ApiName: (0, smithy_client_1.expectString)(output.ApiName),
3321
3273
  ApiSpecificationMd5Hash: (0, smithy_client_1.expectString)(output.ApiSpecificationMd5Hash),
3322
3274
  ApiSpecificationUploadUrl: (0, smithy_client_1.expectString)(output.ApiSpecificationUploadUrl),
3323
- ApiSpecificationUploadUrlExpiresAt: output.ApiSpecificationUploadUrlExpiresAt !== undefined && output.ApiSpecificationUploadUrlExpiresAt !== null
3275
+ ApiSpecificationUploadUrlExpiresAt: output.ApiSpecificationUploadUrlExpiresAt != null
3324
3276
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.ApiSpecificationUploadUrlExpiresAt))
3325
3277
  : undefined,
3326
3278
  DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
@@ -3341,14 +3293,14 @@ const deserializeAws_restJson1ImportAssetFromSignedUrlResponseDetails = (output,
3341
3293
  Md5Hash: (0, smithy_client_1.expectString)(output.Md5Hash),
3342
3294
  RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
3343
3295
  SignedUrl: (0, smithy_client_1.expectString)(output.SignedUrl),
3344
- SignedUrlExpiresAt: output.SignedUrlExpiresAt !== undefined && output.SignedUrlExpiresAt !== null
3296
+ SignedUrlExpiresAt: output.SignedUrlExpiresAt != null
3345
3297
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SignedUrlExpiresAt))
3346
3298
  : undefined,
3347
3299
  };
3348
3300
  };
3349
3301
  const deserializeAws_restJson1ImportAssetsFromRedshiftDataSharesResponseDetails = (output, context) => {
3350
3302
  return {
3351
- AssetSources: output.AssetSources !== undefined && output.AssetSources !== null
3303
+ AssetSources: output.AssetSources != null
3352
3304
  ? deserializeAws_restJson1ListOfRedshiftDataShareAssetSourceEntry(output.AssetSources, context)
3353
3305
  : undefined,
3354
3306
  DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
@@ -3357,7 +3309,7 @@ const deserializeAws_restJson1ImportAssetsFromRedshiftDataSharesResponseDetails
3357
3309
  };
3358
3310
  const deserializeAws_restJson1ImportAssetsFromS3ResponseDetails = (output, context) => {
3359
3311
  return {
3360
- AssetSources: output.AssetSources !== undefined && output.AssetSources !== null
3312
+ AssetSources: output.AssetSources != null
3361
3313
  ? deserializeAws_restJson1ListOfAssetSourceEntry(output.AssetSources, context)
3362
3314
  : undefined,
3363
3315
  DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
@@ -3367,29 +3319,19 @@ const deserializeAws_restJson1ImportAssetsFromS3ResponseDetails = (output, conte
3367
3319
  const deserializeAws_restJson1JobEntry = (output, context) => {
3368
3320
  return {
3369
3321
  Arn: (0, smithy_client_1.expectString)(output.Arn),
3370
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
3371
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedAt))
3372
- : undefined,
3373
- Details: output.Details !== undefined && output.Details !== null
3374
- ? deserializeAws_restJson1ResponseDetails(output.Details, context)
3375
- : undefined,
3376
- Errors: output.Errors !== undefined && output.Errors !== null
3377
- ? deserializeAws_restJson1ListOfJobError(output.Errors, context)
3378
- : undefined,
3322
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedAt)) : undefined,
3323
+ Details: output.Details != null ? deserializeAws_restJson1ResponseDetails(output.Details, context) : undefined,
3324
+ Errors: output.Errors != null ? deserializeAws_restJson1ListOfJobError(output.Errors, context) : undefined,
3379
3325
  Id: (0, smithy_client_1.expectString)(output.Id),
3380
3326
  State: (0, smithy_client_1.expectString)(output.State),
3381
3327
  Type: (0, smithy_client_1.expectString)(output.Type),
3382
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
3383
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedAt))
3384
- : undefined,
3328
+ UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedAt)) : undefined,
3385
3329
  };
3386
3330
  };
3387
3331
  const deserializeAws_restJson1JobError = (output, context) => {
3388
3332
  return {
3389
3333
  Code: (0, smithy_client_1.expectString)(output.Code),
3390
- Details: output.Details !== undefined && output.Details !== null
3391
- ? deserializeAws_restJson1Details(output.Details, context)
3392
- : undefined,
3334
+ Details: output.Details != null ? deserializeAws_restJson1Details(output.Details, context) : undefined,
3393
3335
  LimitName: (0, smithy_client_1.expectString)(output.LimitName),
3394
3336
  LimitValue: (0, smithy_client_1.limitedParseDouble)(output.LimitValue),
3395
3337
  Message: (0, smithy_client_1.expectString)(output.Message),
@@ -3535,25 +3477,25 @@ const deserializeAws_restJson1RedshiftDataShareAssetSourceEntry = (output, conte
3535
3477
  };
3536
3478
  const deserializeAws_restJson1ResponseDetails = (output, context) => {
3537
3479
  return {
3538
- ExportAssetToSignedUrl: output.ExportAssetToSignedUrl !== undefined && output.ExportAssetToSignedUrl !== null
3480
+ ExportAssetToSignedUrl: output.ExportAssetToSignedUrl != null
3539
3481
  ? deserializeAws_restJson1ExportAssetToSignedUrlResponseDetails(output.ExportAssetToSignedUrl, context)
3540
3482
  : undefined,
3541
- ExportAssetsToS3: output.ExportAssetsToS3 !== undefined && output.ExportAssetsToS3 !== null
3483
+ ExportAssetsToS3: output.ExportAssetsToS3 != null
3542
3484
  ? deserializeAws_restJson1ExportAssetsToS3ResponseDetails(output.ExportAssetsToS3, context)
3543
3485
  : undefined,
3544
- ExportRevisionsToS3: output.ExportRevisionsToS3 !== undefined && output.ExportRevisionsToS3 !== null
3486
+ ExportRevisionsToS3: output.ExportRevisionsToS3 != null
3545
3487
  ? deserializeAws_restJson1ExportRevisionsToS3ResponseDetails(output.ExportRevisionsToS3, context)
3546
3488
  : undefined,
3547
- ImportAssetFromApiGatewayApi: output.ImportAssetFromApiGatewayApi !== undefined && output.ImportAssetFromApiGatewayApi !== null
3489
+ ImportAssetFromApiGatewayApi: output.ImportAssetFromApiGatewayApi != null
3548
3490
  ? deserializeAws_restJson1ImportAssetFromApiGatewayApiResponseDetails(output.ImportAssetFromApiGatewayApi, context)
3549
3491
  : undefined,
3550
- ImportAssetFromSignedUrl: output.ImportAssetFromSignedUrl !== undefined && output.ImportAssetFromSignedUrl !== null
3492
+ ImportAssetFromSignedUrl: output.ImportAssetFromSignedUrl != null
3551
3493
  ? deserializeAws_restJson1ImportAssetFromSignedUrlResponseDetails(output.ImportAssetFromSignedUrl, context)
3552
3494
  : undefined,
3553
- ImportAssetsFromRedshiftDataShares: output.ImportAssetsFromRedshiftDataShares !== undefined && output.ImportAssetsFromRedshiftDataShares !== null
3495
+ ImportAssetsFromRedshiftDataShares: output.ImportAssetsFromRedshiftDataShares != null
3554
3496
  ? deserializeAws_restJson1ImportAssetsFromRedshiftDataSharesResponseDetails(output.ImportAssetsFromRedshiftDataShares, context)
3555
3497
  : undefined,
3556
- ImportAssetsFromS3: output.ImportAssetsFromS3 !== undefined && output.ImportAssetsFromS3 !== null
3498
+ ImportAssetsFromS3: output.ImportAssetsFromS3 != null
3557
3499
  ? deserializeAws_restJson1ImportAssetsFromS3ResponseDetails(output.ImportAssetsFromS3, context)
3558
3500
  : undefined,
3559
3501
  };
@@ -3569,21 +3511,15 @@ const deserializeAws_restJson1RevisionEntry = (output, context) => {
3569
3511
  return {
3570
3512
  Arn: (0, smithy_client_1.expectString)(output.Arn),
3571
3513
  Comment: (0, smithy_client_1.expectString)(output.Comment),
3572
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
3573
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedAt))
3574
- : undefined,
3514
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedAt)) : undefined,
3575
3515
  DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
3576
3516
  Finalized: (0, smithy_client_1.expectBoolean)(output.Finalized),
3577
3517
  Id: (0, smithy_client_1.expectString)(output.Id),
3578
3518
  RevocationComment: (0, smithy_client_1.expectString)(output.RevocationComment),
3579
3519
  Revoked: (0, smithy_client_1.expectBoolean)(output.Revoked),
3580
- RevokedAt: output.RevokedAt !== undefined && output.RevokedAt !== null
3581
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.RevokedAt))
3582
- : undefined,
3520
+ RevokedAt: output.RevokedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.RevokedAt)) : undefined,
3583
3521
  SourceId: (0, smithy_client_1.expectString)(output.SourceId),
3584
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
3585
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedAt))
3586
- : undefined,
3522
+ UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedAt)) : undefined,
3587
3523
  };
3588
3524
  };
3589
3525
  const deserializeAws_restJson1RevisionPublished = (output, context) => {
@@ -3627,6 +3563,9 @@ const loadRestJsonErrorCode = (output, data) => {
3627
3563
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
3628
3564
  const sanitizeErrorCode = (rawValue) => {
3629
3565
  let cleanValue = rawValue;
3566
+ if (typeof cleanValue === "number") {
3567
+ cleanValue = cleanValue.toString();
3568
+ }
3630
3569
  if (cleanValue.indexOf(":") >= 0) {
3631
3570
  cleanValue = cleanValue.split(":")[0];
3632
3571
  }