@jrojaspin/security-map-api-cli 9.8.0 → 9.9.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/index.cjs CHANGED
@@ -1319,19 +1319,19 @@ function ComputeRouteInputToJSONTyped(value, ignoreDiscriminator = false) {
1319
1319
  };
1320
1320
  }
1321
1321
 
1322
- function instanceOfDef227(value) {
1322
+ function instanceOfDef230(value) {
1323
1323
  return true;
1324
1324
  }
1325
- function Def227FromJSON(json) {
1326
- return Def227FromJSONTyped(json);
1325
+ function Def230FromJSON(json) {
1326
+ return Def230FromJSONTyped(json);
1327
1327
  }
1328
- function Def227FromJSONTyped(json, ignoreDiscriminator) {
1328
+ function Def230FromJSONTyped(json, ignoreDiscriminator) {
1329
1329
  return json;
1330
1330
  }
1331
- function Def227ToJSON(json) {
1332
- return Def227ToJSONTyped(json, false);
1331
+ function Def230ToJSON(json) {
1332
+ return Def230ToJSONTyped(json, false);
1333
1333
  }
1334
- function Def227ToJSONTyped(value, ignoreDiscriminator = false) {
1334
+ function Def230ToJSONTyped(value, ignoreDiscriminator = false) {
1335
1335
  return value;
1336
1336
  }
1337
1337
 
@@ -5967,7 +5967,7 @@ function ReportAllItemsListOutputFromJSONTyped(json, ignoreDiscriminator) {
5967
5967
  return json;
5968
5968
  }
5969
5969
  return {
5970
- 'data': (json['data'].map(Def227FromJSON)),
5970
+ 'data': (json['data'].map(Def230FromJSON)),
5971
5971
  'pageInfo': PageInfoFromJSON(json['pageInfo']),
5972
5972
  };
5973
5973
  }
@@ -5979,7 +5979,7 @@ function ReportAllItemsListOutputToJSONTyped(value, ignoreDiscriminator = false)
5979
5979
  return value;
5980
5980
  }
5981
5981
  return {
5982
- 'data': (value['data'].map(Def227ToJSON)),
5982
+ 'data': (value['data'].map(Def230ToJSON)),
5983
5983
  'pageInfo': PageInfoToJSON(value['pageInfo']),
5984
5984
  };
5985
5985
  }
@@ -6612,6 +6612,363 @@ function ReportOutputToJSONTyped(value, ignoreDiscriminator = false) {
6612
6612
  };
6613
6613
  }
6614
6614
 
6615
+ const ReportQueryMetricOpEnum = {
6616
+ Count: 'count',
6617
+ CountDistinct: 'count_distinct',
6618
+ Sum: 'sum',
6619
+ Avg: 'avg',
6620
+ Min: 'min',
6621
+ Max: 'max'
6622
+ };
6623
+ function instanceOfReportQueryMetric(value) {
6624
+ if (!('op' in value) || value['op'] === undefined)
6625
+ return false;
6626
+ return true;
6627
+ }
6628
+ function ReportQueryMetricFromJSON(json) {
6629
+ return ReportQueryMetricFromJSONTyped(json);
6630
+ }
6631
+ function ReportQueryMetricFromJSONTyped(json, ignoreDiscriminator) {
6632
+ if (json == null) {
6633
+ return json;
6634
+ }
6635
+ return {
6636
+ 'op': json['op'],
6637
+ 'field': json['field'] == null ? undefined : json['field'],
6638
+ 'label': json['label'] == null ? undefined : json['label'],
6639
+ };
6640
+ }
6641
+ function ReportQueryMetricToJSON(json) {
6642
+ return ReportQueryMetricToJSONTyped(json, false);
6643
+ }
6644
+ function ReportQueryMetricToJSONTyped(value, ignoreDiscriminator = false) {
6645
+ if (value == null) {
6646
+ return value;
6647
+ }
6648
+ return {
6649
+ 'op': value['op'],
6650
+ 'field': value['field'],
6651
+ 'label': value['label'],
6652
+ };
6653
+ }
6654
+
6655
+ const ReportQueryFilterOpEnum = {
6656
+ Contains: 'contains',
6657
+ NotContains: 'not_contains',
6658
+ Eq: 'eq',
6659
+ Neq: 'neq',
6660
+ In: 'in',
6661
+ NotIn: 'not_in',
6662
+ Gt: 'gt',
6663
+ Gte: 'gte',
6664
+ Lt: 'lt',
6665
+ Lte: 'lte',
6666
+ IsEmpty: 'is_empty',
6667
+ IsNotEmpty: 'is_not_empty'
6668
+ };
6669
+ function instanceOfReportQueryFilter(value) {
6670
+ if (!('field' in value) || value['field'] === undefined)
6671
+ return false;
6672
+ if (!('op' in value) || value['op'] === undefined)
6673
+ return false;
6674
+ if (!('values' in value) || value['values'] === undefined)
6675
+ return false;
6676
+ return true;
6677
+ }
6678
+ function ReportQueryFilterFromJSON(json) {
6679
+ return ReportQueryFilterFromJSONTyped(json);
6680
+ }
6681
+ function ReportQueryFilterFromJSONTyped(json, ignoreDiscriminator) {
6682
+ if (json == null) {
6683
+ return json;
6684
+ }
6685
+ return {
6686
+ 'field': json['field'],
6687
+ 'op': json['op'],
6688
+ 'values': json['values'],
6689
+ };
6690
+ }
6691
+ function ReportQueryFilterToJSON(json) {
6692
+ return ReportQueryFilterToJSONTyped(json, false);
6693
+ }
6694
+ function ReportQueryFilterToJSONTyped(value, ignoreDiscriminator = false) {
6695
+ if (value == null) {
6696
+ return value;
6697
+ }
6698
+ return {
6699
+ 'field': value['field'],
6700
+ 'op': value['op'],
6701
+ 'values': value['values'],
6702
+ };
6703
+ }
6704
+
6705
+ const ReportQueryDimensionBucketEnum = {
6706
+ Day: 'day',
6707
+ Week: 'week',
6708
+ Month: 'month',
6709
+ Quarter: 'quarter',
6710
+ Year: 'year'
6711
+ };
6712
+ const ReportQueryDimensionNormalizeEnum = {
6713
+ None: 'none',
6714
+ TrimCase: 'trim_case',
6715
+ Ipp: 'ipp'
6716
+ };
6717
+ function instanceOfReportQueryDimension(value) {
6718
+ if (!('field' in value) || value['field'] === undefined)
6719
+ return false;
6720
+ return true;
6721
+ }
6722
+ function ReportQueryDimensionFromJSON(json) {
6723
+ return ReportQueryDimensionFromJSONTyped(json);
6724
+ }
6725
+ function ReportQueryDimensionFromJSONTyped(json, ignoreDiscriminator) {
6726
+ if (json == null) {
6727
+ return json;
6728
+ }
6729
+ return {
6730
+ 'field': json['field'],
6731
+ 'bucket': json['bucket'] == null ? undefined : json['bucket'],
6732
+ 'normalize': json['normalize'] == null ? undefined : json['normalize'],
6733
+ 'includeEmpty': json['includeEmpty'] == null ? undefined : json['includeEmpty'],
6734
+ };
6735
+ }
6736
+ function ReportQueryDimensionToJSON(json) {
6737
+ return ReportQueryDimensionToJSONTyped(json, false);
6738
+ }
6739
+ function ReportQueryDimensionToJSONTyped(value, ignoreDiscriminator = false) {
6740
+ if (value == null) {
6741
+ return value;
6742
+ }
6743
+ return {
6744
+ 'field': value['field'],
6745
+ 'bucket': value['bucket'],
6746
+ 'normalize': value['normalize'],
6747
+ 'includeEmpty': value['includeEmpty'],
6748
+ };
6749
+ }
6750
+
6751
+ const ReportQuerySeriesSourceEnum = {
6752
+ Items: 'items',
6753
+ Articles: 'articles',
6754
+ StateHistory: 'state_history'
6755
+ };
6756
+ const ReportQuerySeriesChartEnum = {
6757
+ Bar: 'bar',
6758
+ Line: 'line'
6759
+ };
6760
+ const ReportQuerySeriesAxisEnum = {
6761
+ Y: 'y',
6762
+ Y2: 'y2'
6763
+ };
6764
+ function instanceOfReportQuerySeries(value) {
6765
+ if (!('source' in value) || value['source'] === undefined)
6766
+ return false;
6767
+ if (!('itemTypeIds' in value) || value['itemTypeIds'] === undefined)
6768
+ return false;
6769
+ if (!('filters' in value) || value['filters'] === undefined)
6770
+ return false;
6771
+ if (!('metric' in value) || value['metric'] === undefined)
6772
+ return false;
6773
+ return true;
6774
+ }
6775
+ function ReportQuerySeriesFromJSON(json) {
6776
+ return ReportQuerySeriesFromJSONTyped(json);
6777
+ }
6778
+ function ReportQuerySeriesFromJSONTyped(json, ignoreDiscriminator) {
6779
+ if (json == null) {
6780
+ return json;
6781
+ }
6782
+ return {
6783
+ 'label': json['label'] == null ? undefined : json['label'],
6784
+ 'source': json['source'],
6785
+ 'itemTypeIds': json['itemTypeIds'],
6786
+ 'filters': (json['filters'].map(ReportQueryFilterFromJSON)),
6787
+ 'metric': ReportQueryMetricFromJSON(json['metric']),
6788
+ 'splitBy': json['splitBy'] == null ? undefined : ReportQueryDimensionFromJSON(json['splitBy']),
6789
+ 'chart': json['chart'] == null ? undefined : json['chart'],
6790
+ 'color': json['color'] == null ? undefined : json['color'],
6791
+ 'axis': json['axis'] == null ? undefined : json['axis'],
6792
+ };
6793
+ }
6794
+ function ReportQuerySeriesToJSON(json) {
6795
+ return ReportQuerySeriesToJSONTyped(json, false);
6796
+ }
6797
+ function ReportQuerySeriesToJSONTyped(value, ignoreDiscriminator = false) {
6798
+ if (value == null) {
6799
+ return value;
6800
+ }
6801
+ return {
6802
+ 'label': value['label'],
6803
+ 'source': value['source'],
6804
+ 'itemTypeIds': value['itemTypeIds'],
6805
+ 'filters': (value['filters'].map(ReportQueryFilterToJSON)),
6806
+ 'metric': ReportQueryMetricToJSON(value['metric']),
6807
+ 'splitBy': ReportQueryDimensionToJSON(value['splitBy']),
6808
+ 'chart': value['chart'],
6809
+ 'color': value['color'],
6810
+ 'axis': value['axis'],
6811
+ };
6812
+ }
6813
+
6814
+ const ReportQueryDefinitionSourceEnum = {
6815
+ Items: 'items',
6816
+ Articles: 'articles',
6817
+ StateHistory: 'state_history'
6818
+ };
6819
+ const ReportQueryDefinitionChartEnum = {
6820
+ Bar: 'bar',
6821
+ Line: 'line',
6822
+ Pie: 'pie',
6823
+ StackedBar: 'stacked_bar',
6824
+ Table: 'table'
6825
+ };
6826
+ function instanceOfReportQueryDefinition(value) {
6827
+ return true;
6828
+ }
6829
+ function ReportQueryDefinitionFromJSON(json) {
6830
+ return ReportQueryDefinitionFromJSONTyped(json);
6831
+ }
6832
+ function ReportQueryDefinitionFromJSONTyped(json, ignoreDiscriminator) {
6833
+ if (json == null) {
6834
+ return json;
6835
+ }
6836
+ return {
6837
+ 'version': json['version'] == null ? undefined : json['version'],
6838
+ 'source': json['source'] == null ? undefined : json['source'],
6839
+ 'itemTypeIds': json['itemTypeIds'] == null ? undefined : json['itemTypeIds'],
6840
+ 'dimensions': json['dimensions'] == null ? undefined : (json['dimensions'].map(ReportQueryDimensionFromJSON)),
6841
+ 'metrics': json['metrics'] == null ? undefined : (json['metrics'].map(ReportQueryMetricFromJSON)),
6842
+ 'filters': json['filters'] == null ? undefined : (json['filters'].map(ReportQueryFilterFromJSON)),
6843
+ 'x': json['x'] == null ? undefined : ReportQueryDimensionFromJSON(json['x']),
6844
+ 'series': json['series'] == null ? undefined : (json['series'].map(ReportQuerySeriesFromJSON)),
6845
+ 'chart': json['chart'] == null ? undefined : json['chart'],
6846
+ 'labelX': json['labelX'] == null ? undefined : json['labelX'],
6847
+ 'labelY': json['labelY'] == null ? undefined : json['labelY'],
6848
+ 'labelY2': json['labelY2'] == null ? undefined : json['labelY2'],
6849
+ };
6850
+ }
6851
+ function ReportQueryDefinitionToJSON(json) {
6852
+ return ReportQueryDefinitionToJSONTyped(json, false);
6853
+ }
6854
+ function ReportQueryDefinitionToJSONTyped(value, ignoreDiscriminator = false) {
6855
+ if (value == null) {
6856
+ return value;
6857
+ }
6858
+ return {
6859
+ 'version': value['version'],
6860
+ 'source': value['source'],
6861
+ 'itemTypeIds': value['itemTypeIds'],
6862
+ 'dimensions': value['dimensions'] == null ? undefined : (value['dimensions'].map(ReportQueryDimensionToJSON)),
6863
+ 'metrics': value['metrics'] == null ? undefined : (value['metrics'].map(ReportQueryMetricToJSON)),
6864
+ 'filters': value['filters'] == null ? undefined : (value['filters'].map(ReportQueryFilterToJSON)),
6865
+ 'x': ReportQueryDimensionToJSON(value['x']),
6866
+ 'series': value['series'] == null ? undefined : (value['series'].map(ReportQuerySeriesToJSON)),
6867
+ 'chart': value['chart'],
6868
+ 'labelX': value['labelX'],
6869
+ 'labelY': value['labelY'],
6870
+ 'labelY2': value['labelY2'],
6871
+ };
6872
+ }
6873
+
6874
+ function instanceOfReportQueryAssistantDto(value) {
6875
+ if (!('title' in value) || value['title'] === undefined)
6876
+ return false;
6877
+ if (!('explanation' in value) || value['explanation'] === undefined)
6878
+ return false;
6879
+ if (!('definition' in value) || value['definition'] === undefined)
6880
+ return false;
6881
+ if (!('remainingToday' in value) || value['remainingToday'] === undefined)
6882
+ return false;
6883
+ return true;
6884
+ }
6885
+ function ReportQueryAssistantDtoFromJSON(json) {
6886
+ return ReportQueryAssistantDtoFromJSONTyped(json);
6887
+ }
6888
+ function ReportQueryAssistantDtoFromJSONTyped(json, ignoreDiscriminator) {
6889
+ if (json == null) {
6890
+ return json;
6891
+ }
6892
+ return {
6893
+ 'title': json['title'],
6894
+ 'explanation': json['explanation'],
6895
+ 'definition': ReportQueryDefinitionFromJSON(json['definition']),
6896
+ 'remainingToday': json['remainingToday'],
6897
+ };
6898
+ }
6899
+ function ReportQueryAssistantDtoToJSON(json) {
6900
+ return ReportQueryAssistantDtoToJSONTyped(json, false);
6901
+ }
6902
+ function ReportQueryAssistantDtoToJSONTyped(value, ignoreDiscriminator = false) {
6903
+ if (value == null) {
6904
+ return value;
6905
+ }
6906
+ return {
6907
+ 'title': value['title'],
6908
+ 'explanation': value['explanation'],
6909
+ 'definition': ReportQueryDefinitionToJSON(value['definition']),
6910
+ 'remainingToday': value['remainingToday'],
6911
+ };
6912
+ }
6913
+
6914
+ function instanceOfReportQueryAssistantInput(value) {
6915
+ if (!('prompt' in value) || value['prompt'] === undefined)
6916
+ return false;
6917
+ return true;
6918
+ }
6919
+ function ReportQueryAssistantInputFromJSON(json) {
6920
+ return ReportQueryAssistantInputFromJSONTyped(json);
6921
+ }
6922
+ function ReportQueryAssistantInputFromJSONTyped(json, ignoreDiscriminator) {
6923
+ if (json == null) {
6924
+ return json;
6925
+ }
6926
+ return {
6927
+ 'prompt': json['prompt'],
6928
+ 'definition': json['definition'] == null ? undefined : ReportQueryDefinitionFromJSON(json['definition']),
6929
+ };
6930
+ }
6931
+ function ReportQueryAssistantInputToJSON(json) {
6932
+ return ReportQueryAssistantInputToJSONTyped(json, false);
6933
+ }
6934
+ function ReportQueryAssistantInputToJSONTyped(value, ignoreDiscriminator = false) {
6935
+ if (value == null) {
6936
+ return value;
6937
+ }
6938
+ return {
6939
+ 'prompt': value['prompt'],
6940
+ 'definition': ReportQueryDefinitionToJSON(value['definition']),
6941
+ };
6942
+ }
6943
+
6944
+ function instanceOfReportQueryAssistantOutput(value) {
6945
+ if (!('data' in value) || value['data'] === undefined)
6946
+ return false;
6947
+ return true;
6948
+ }
6949
+ function ReportQueryAssistantOutputFromJSON(json) {
6950
+ return ReportQueryAssistantOutputFromJSONTyped(json);
6951
+ }
6952
+ function ReportQueryAssistantOutputFromJSONTyped(json, ignoreDiscriminator) {
6953
+ if (json == null) {
6954
+ return json;
6955
+ }
6956
+ return {
6957
+ 'data': ReportQueryAssistantDtoFromJSON(json['data']),
6958
+ };
6959
+ }
6960
+ function ReportQueryAssistantOutputToJSON(json) {
6961
+ return ReportQueryAssistantOutputToJSONTyped(json, false);
6962
+ }
6963
+ function ReportQueryAssistantOutputToJSONTyped(value, ignoreDiscriminator = false) {
6964
+ if (value == null) {
6965
+ return value;
6966
+ }
6967
+ return {
6968
+ 'data': ReportQueryAssistantDtoToJSON(value['data']),
6969
+ };
6970
+ }
6971
+
6615
6972
  const ReportQueryAxis = {
6616
6973
  Y: 'y',
6617
6974
  Y2: 'y2'
@@ -6823,437 +7180,178 @@ function ReportQueryResultRowFromJSONTyped(json, ignoreDiscriminator) {
6823
7180
  }
6824
7181
  return {
6825
7182
  'keys': json['keys'],
6826
- 'labels': json['labels'],
6827
- 'values': json['values'],
6828
- };
6829
- }
6830
- function ReportQueryResultRowToJSON(json) {
6831
- return ReportQueryResultRowToJSONTyped(json, false);
6832
- }
6833
- function ReportQueryResultRowToJSONTyped(value, ignoreDiscriminator = false) {
6834
- if (value == null) {
6835
- return value;
6836
- }
6837
- return {
6838
- 'keys': value['keys'],
6839
- 'labels': value['labels'],
6840
- 'values': value['values'],
6841
- };
6842
- }
6843
-
6844
- function instanceOfReportQueryResultColumn(value) {
6845
- if (!('label' in value) || value['label'] === undefined)
6846
- return false;
6847
- if (!('kind' in value) || value['kind'] === undefined)
6848
- return false;
6849
- return true;
6850
- }
6851
- function ReportQueryResultColumnFromJSON(json) {
6852
- return ReportQueryResultColumnFromJSONTyped(json);
6853
- }
6854
- function ReportQueryResultColumnFromJSONTyped(json, ignoreDiscriminator) {
6855
- if (json == null) {
6856
- return json;
6857
- }
6858
- return {
6859
- 'label': json['label'],
6860
- 'kind': json['kind'],
6861
- };
6862
- }
6863
- function ReportQueryResultColumnToJSON(json) {
6864
- return ReportQueryResultColumnToJSONTyped(json, false);
6865
- }
6866
- function ReportQueryResultColumnToJSONTyped(value, ignoreDiscriminator = false) {
6867
- if (value == null) {
6868
- return value;
6869
- }
6870
- return {
6871
- 'label': value['label'],
6872
- 'kind': value['kind'],
6873
- };
6874
- }
6875
-
6876
- function instanceOfReportQueryResult(value) {
6877
- if (!('columns' in value) || value['columns'] === undefined)
6878
- return false;
6879
- if (!('rows' in value) || value['rows'] === undefined)
6880
- return false;
6881
- return true;
6882
- }
6883
- function ReportQueryResultFromJSON(json) {
6884
- return ReportQueryResultFromJSONTyped(json);
6885
- }
6886
- function ReportQueryResultFromJSONTyped(json, ignoreDiscriminator) {
6887
- if (json == null) {
6888
- return json;
6889
- }
6890
- return {
6891
- 'columns': (json['columns'].map(ReportQueryResultColumnFromJSON)),
6892
- 'rows': (json['rows'].map(ReportQueryResultRowFromJSON)),
6893
- };
6894
- }
6895
- function ReportQueryResultToJSON(json) {
6896
- return ReportQueryResultToJSONTyped(json, false);
6897
- }
6898
- function ReportQueryResultToJSONTyped(value, ignoreDiscriminator = false) {
6899
- if (value == null) {
6900
- return value;
6901
- }
6902
- return {
6903
- 'columns': (value['columns'].map(ReportQueryResultColumnToJSON)),
6904
- 'rows': (value['rows'].map(ReportQueryResultRowToJSON)),
6905
- };
6906
- }
6907
-
6908
- function instanceOfReportQueryDataDto(value) {
6909
- if (!('table' in value) || value['table'] === undefined)
6910
- return false;
6911
- if (!('chart' in value) || value['chart'] === undefined)
6912
- return false;
6913
- return true;
6914
- }
6915
- function ReportQueryDataDtoFromJSON(json) {
6916
- return ReportQueryDataDtoFromJSONTyped(json);
6917
- }
6918
- function ReportQueryDataDtoFromJSONTyped(json, ignoreDiscriminator) {
6919
- if (json == null) {
6920
- return json;
6921
- }
6922
- return {
6923
- 'table': ReportQueryResultFromJSON(json['table']),
6924
- 'chart': ReportDataJSONDtoFromJSON(json['chart']),
6925
- };
6926
- }
6927
- function ReportQueryDataDtoToJSON(json) {
6928
- return ReportQueryDataDtoToJSONTyped(json, false);
6929
- }
6930
- function ReportQueryDataDtoToJSONTyped(value, ignoreDiscriminator = false) {
6931
- if (value == null) {
6932
- return value;
6933
- }
6934
- return {
6935
- 'table': ReportQueryResultToJSON(value['table']),
6936
- 'chart': ReportDataJSONDtoToJSON(value['chart']),
6937
- };
6938
- }
6939
-
6940
- function instanceOfReportQueryDataOutput(value) {
6941
- if (!('data' in value) || value['data'] === undefined)
6942
- return false;
6943
- return true;
6944
- }
6945
- function ReportQueryDataOutputFromJSON(json) {
6946
- return ReportQueryDataOutputFromJSONTyped(json);
6947
- }
6948
- function ReportQueryDataOutputFromJSONTyped(json, ignoreDiscriminator) {
6949
- if (json == null) {
6950
- return json;
6951
- }
6952
- return {
6953
- 'data': ReportQueryDataDtoFromJSON(json['data']),
6954
- };
6955
- }
6956
- function ReportQueryDataOutputToJSON(json) {
6957
- return ReportQueryDataOutputToJSONTyped(json, false);
6958
- }
6959
- function ReportQueryDataOutputToJSONTyped(value, ignoreDiscriminator = false) {
6960
- if (value == null) {
6961
- return value;
6962
- }
6963
- return {
6964
- 'data': ReportQueryDataDtoToJSON(value['data']),
6965
- };
6966
- }
6967
-
6968
- const ReportQueryDateBucket = {
6969
- Day: 'day',
6970
- Week: 'week',
6971
- Month: 'month',
6972
- Quarter: 'quarter',
6973
- Year: 'year'
6974
- };
6975
- function instanceOfReportQueryDateBucket(value) {
6976
- for (const key in ReportQueryDateBucket) {
6977
- if (Object.prototype.hasOwnProperty.call(ReportQueryDateBucket, key)) {
6978
- if (ReportQueryDateBucket[key] === value) {
6979
- return true;
6980
- }
6981
- }
6982
- }
6983
- return false;
6984
- }
6985
- function ReportQueryDateBucketFromJSON(json) {
6986
- return ReportQueryDateBucketFromJSONTyped(json);
6987
- }
6988
- function ReportQueryDateBucketFromJSONTyped(json, ignoreDiscriminator) {
6989
- return json;
6990
- }
6991
- function ReportQueryDateBucketToJSON(value) {
6992
- return value;
6993
- }
6994
- function ReportQueryDateBucketToJSONTyped(value, ignoreDiscriminator) {
6995
- return value;
6996
- }
6997
-
6998
- const ReportQueryMetricOpEnum = {
6999
- Count: 'count',
7000
- CountDistinct: 'count_distinct',
7001
- Sum: 'sum',
7002
- Avg: 'avg',
7003
- Min: 'min',
7004
- Max: 'max'
7005
- };
7006
- function instanceOfReportQueryMetric(value) {
7007
- if (!('op' in value) || value['op'] === undefined)
7008
- return false;
7009
- return true;
7010
- }
7011
- function ReportQueryMetricFromJSON(json) {
7012
- return ReportQueryMetricFromJSONTyped(json);
7013
- }
7014
- function ReportQueryMetricFromJSONTyped(json, ignoreDiscriminator) {
7015
- if (json == null) {
7016
- return json;
7017
- }
7018
- return {
7019
- 'op': json['op'],
7020
- 'field': json['field'] == null ? undefined : json['field'],
7021
- 'label': json['label'] == null ? undefined : json['label'],
7183
+ 'labels': json['labels'],
7184
+ 'values': json['values'],
7022
7185
  };
7023
7186
  }
7024
- function ReportQueryMetricToJSON(json) {
7025
- return ReportQueryMetricToJSONTyped(json, false);
7187
+ function ReportQueryResultRowToJSON(json) {
7188
+ return ReportQueryResultRowToJSONTyped(json, false);
7026
7189
  }
7027
- function ReportQueryMetricToJSONTyped(value, ignoreDiscriminator = false) {
7190
+ function ReportQueryResultRowToJSONTyped(value, ignoreDiscriminator = false) {
7028
7191
  if (value == null) {
7029
7192
  return value;
7030
7193
  }
7031
7194
  return {
7032
- 'op': value['op'],
7033
- 'field': value['field'],
7034
- 'label': value['label'],
7195
+ 'keys': value['keys'],
7196
+ 'labels': value['labels'],
7197
+ 'values': value['values'],
7035
7198
  };
7036
7199
  }
7037
7200
 
7038
- const ReportQueryFilterOpEnum = {
7039
- Contains: 'contains',
7040
- NotContains: 'not_contains',
7041
- Eq: 'eq',
7042
- Neq: 'neq',
7043
- In: 'in',
7044
- NotIn: 'not_in',
7045
- Gt: 'gt',
7046
- Gte: 'gte',
7047
- Lt: 'lt',
7048
- Lte: 'lte',
7049
- IsEmpty: 'is_empty',
7050
- IsNotEmpty: 'is_not_empty'
7051
- };
7052
- function instanceOfReportQueryFilter(value) {
7053
- if (!('field' in value) || value['field'] === undefined)
7054
- return false;
7055
- if (!('op' in value) || value['op'] === undefined)
7201
+ function instanceOfReportQueryResultColumn(value) {
7202
+ if (!('label' in value) || value['label'] === undefined)
7056
7203
  return false;
7057
- if (!('values' in value) || value['values'] === undefined)
7204
+ if (!('kind' in value) || value['kind'] === undefined)
7058
7205
  return false;
7059
7206
  return true;
7060
7207
  }
7061
- function ReportQueryFilterFromJSON(json) {
7062
- return ReportQueryFilterFromJSONTyped(json);
7208
+ function ReportQueryResultColumnFromJSON(json) {
7209
+ return ReportQueryResultColumnFromJSONTyped(json);
7063
7210
  }
7064
- function ReportQueryFilterFromJSONTyped(json, ignoreDiscriminator) {
7211
+ function ReportQueryResultColumnFromJSONTyped(json, ignoreDiscriminator) {
7065
7212
  if (json == null) {
7066
7213
  return json;
7067
7214
  }
7068
7215
  return {
7069
- 'field': json['field'],
7070
- 'op': json['op'],
7071
- 'values': json['values'],
7216
+ 'label': json['label'],
7217
+ 'kind': json['kind'],
7072
7218
  };
7073
7219
  }
7074
- function ReportQueryFilterToJSON(json) {
7075
- return ReportQueryFilterToJSONTyped(json, false);
7220
+ function ReportQueryResultColumnToJSON(json) {
7221
+ return ReportQueryResultColumnToJSONTyped(json, false);
7076
7222
  }
7077
- function ReportQueryFilterToJSONTyped(value, ignoreDiscriminator = false) {
7223
+ function ReportQueryResultColumnToJSONTyped(value, ignoreDiscriminator = false) {
7078
7224
  if (value == null) {
7079
7225
  return value;
7080
7226
  }
7081
7227
  return {
7082
- 'field': value['field'],
7083
- 'op': value['op'],
7084
- 'values': value['values'],
7228
+ 'label': value['label'],
7229
+ 'kind': value['kind'],
7085
7230
  };
7086
7231
  }
7087
7232
 
7088
- const ReportQueryDimensionBucketEnum = {
7089
- Day: 'day',
7090
- Week: 'week',
7091
- Month: 'month',
7092
- Quarter: 'quarter',
7093
- Year: 'year'
7094
- };
7095
- const ReportQueryDimensionNormalizeEnum = {
7096
- None: 'none',
7097
- TrimCase: 'trim_case',
7098
- Ipp: 'ipp'
7099
- };
7100
- function instanceOfReportQueryDimension(value) {
7101
- if (!('field' in value) || value['field'] === undefined)
7233
+ function instanceOfReportQueryResult(value) {
7234
+ if (!('columns' in value) || value['columns'] === undefined)
7235
+ return false;
7236
+ if (!('rows' in value) || value['rows'] === undefined)
7102
7237
  return false;
7103
7238
  return true;
7104
7239
  }
7105
- function ReportQueryDimensionFromJSON(json) {
7106
- return ReportQueryDimensionFromJSONTyped(json);
7240
+ function ReportQueryResultFromJSON(json) {
7241
+ return ReportQueryResultFromJSONTyped(json);
7107
7242
  }
7108
- function ReportQueryDimensionFromJSONTyped(json, ignoreDiscriminator) {
7243
+ function ReportQueryResultFromJSONTyped(json, ignoreDiscriminator) {
7109
7244
  if (json == null) {
7110
7245
  return json;
7111
7246
  }
7112
7247
  return {
7113
- 'field': json['field'],
7114
- 'bucket': json['bucket'] == null ? undefined : json['bucket'],
7115
- 'normalize': json['normalize'] == null ? undefined : json['normalize'],
7116
- 'includeEmpty': json['includeEmpty'] == null ? undefined : json['includeEmpty'],
7248
+ 'columns': (json['columns'].map(ReportQueryResultColumnFromJSON)),
7249
+ 'rows': (json['rows'].map(ReportQueryResultRowFromJSON)),
7117
7250
  };
7118
7251
  }
7119
- function ReportQueryDimensionToJSON(json) {
7120
- return ReportQueryDimensionToJSONTyped(json, false);
7252
+ function ReportQueryResultToJSON(json) {
7253
+ return ReportQueryResultToJSONTyped(json, false);
7121
7254
  }
7122
- function ReportQueryDimensionToJSONTyped(value, ignoreDiscriminator = false) {
7255
+ function ReportQueryResultToJSONTyped(value, ignoreDiscriminator = false) {
7123
7256
  if (value == null) {
7124
7257
  return value;
7125
7258
  }
7126
7259
  return {
7127
- 'field': value['field'],
7128
- 'bucket': value['bucket'],
7129
- 'normalize': value['normalize'],
7130
- 'includeEmpty': value['includeEmpty'],
7260
+ 'columns': (value['columns'].map(ReportQueryResultColumnToJSON)),
7261
+ 'rows': (value['rows'].map(ReportQueryResultRowToJSON)),
7131
7262
  };
7132
7263
  }
7133
7264
 
7134
- const ReportQuerySeriesSourceEnum = {
7135
- Items: 'items',
7136
- Articles: 'articles',
7137
- StateHistory: 'state_history'
7138
- };
7139
- const ReportQuerySeriesChartEnum = {
7140
- Bar: 'bar',
7141
- Line: 'line'
7142
- };
7143
- const ReportQuerySeriesAxisEnum = {
7144
- Y: 'y',
7145
- Y2: 'y2'
7146
- };
7147
- function instanceOfReportQuerySeries(value) {
7148
- if (!('source' in value) || value['source'] === undefined)
7149
- return false;
7150
- if (!('itemTypeIds' in value) || value['itemTypeIds'] === undefined)
7151
- return false;
7152
- if (!('filters' in value) || value['filters'] === undefined)
7265
+ function instanceOfReportQueryDataDto(value) {
7266
+ if (!('table' in value) || value['table'] === undefined)
7153
7267
  return false;
7154
- if (!('metric' in value) || value['metric'] === undefined)
7268
+ if (!('chart' in value) || value['chart'] === undefined)
7155
7269
  return false;
7156
7270
  return true;
7157
7271
  }
7158
- function ReportQuerySeriesFromJSON(json) {
7159
- return ReportQuerySeriesFromJSONTyped(json);
7272
+ function ReportQueryDataDtoFromJSON(json) {
7273
+ return ReportQueryDataDtoFromJSONTyped(json);
7160
7274
  }
7161
- function ReportQuerySeriesFromJSONTyped(json, ignoreDiscriminator) {
7275
+ function ReportQueryDataDtoFromJSONTyped(json, ignoreDiscriminator) {
7162
7276
  if (json == null) {
7163
7277
  return json;
7164
7278
  }
7165
7279
  return {
7166
- 'label': json['label'] == null ? undefined : json['label'],
7167
- 'source': json['source'],
7168
- 'itemTypeIds': json['itemTypeIds'],
7169
- 'filters': (json['filters'].map(ReportQueryFilterFromJSON)),
7170
- 'metric': ReportQueryMetricFromJSON(json['metric']),
7171
- 'splitBy': json['splitBy'] == null ? undefined : ReportQueryDimensionFromJSON(json['splitBy']),
7172
- 'chart': json['chart'] == null ? undefined : json['chart'],
7173
- 'color': json['color'] == null ? undefined : json['color'],
7174
- 'axis': json['axis'] == null ? undefined : json['axis'],
7280
+ 'table': ReportQueryResultFromJSON(json['table']),
7281
+ 'chart': ReportDataJSONDtoFromJSON(json['chart']),
7175
7282
  };
7176
7283
  }
7177
- function ReportQuerySeriesToJSON(json) {
7178
- return ReportQuerySeriesToJSONTyped(json, false);
7284
+ function ReportQueryDataDtoToJSON(json) {
7285
+ return ReportQueryDataDtoToJSONTyped(json, false);
7179
7286
  }
7180
- function ReportQuerySeriesToJSONTyped(value, ignoreDiscriminator = false) {
7287
+ function ReportQueryDataDtoToJSONTyped(value, ignoreDiscriminator = false) {
7181
7288
  if (value == null) {
7182
7289
  return value;
7183
7290
  }
7184
7291
  return {
7185
- 'label': value['label'],
7186
- 'source': value['source'],
7187
- 'itemTypeIds': value['itemTypeIds'],
7188
- 'filters': (value['filters'].map(ReportQueryFilterToJSON)),
7189
- 'metric': ReportQueryMetricToJSON(value['metric']),
7190
- 'splitBy': ReportQueryDimensionToJSON(value['splitBy']),
7191
- 'chart': value['chart'],
7192
- 'color': value['color'],
7193
- 'axis': value['axis'],
7292
+ 'table': ReportQueryResultToJSON(value['table']),
7293
+ 'chart': ReportDataJSONDtoToJSON(value['chart']),
7194
7294
  };
7195
7295
  }
7196
7296
 
7197
- const ReportQueryDefinitionSourceEnum = {
7198
- Items: 'items',
7199
- Articles: 'articles',
7200
- StateHistory: 'state_history'
7201
- };
7202
- const ReportQueryDefinitionChartEnum = {
7203
- Bar: 'bar',
7204
- Line: 'line',
7205
- Pie: 'pie',
7206
- StackedBar: 'stacked_bar',
7207
- Table: 'table'
7208
- };
7209
- function instanceOfReportQueryDefinition(value) {
7297
+ function instanceOfReportQueryDataOutput(value) {
7298
+ if (!('data' in value) || value['data'] === undefined)
7299
+ return false;
7210
7300
  return true;
7211
7301
  }
7212
- function ReportQueryDefinitionFromJSON(json) {
7213
- return ReportQueryDefinitionFromJSONTyped(json);
7302
+ function ReportQueryDataOutputFromJSON(json) {
7303
+ return ReportQueryDataOutputFromJSONTyped(json);
7214
7304
  }
7215
- function ReportQueryDefinitionFromJSONTyped(json, ignoreDiscriminator) {
7305
+ function ReportQueryDataOutputFromJSONTyped(json, ignoreDiscriminator) {
7216
7306
  if (json == null) {
7217
7307
  return json;
7218
7308
  }
7219
7309
  return {
7220
- 'version': json['version'] == null ? undefined : json['version'],
7221
- 'source': json['source'] == null ? undefined : json['source'],
7222
- 'itemTypeIds': json['itemTypeIds'] == null ? undefined : json['itemTypeIds'],
7223
- 'dimensions': json['dimensions'] == null ? undefined : (json['dimensions'].map(ReportQueryDimensionFromJSON)),
7224
- 'metrics': json['metrics'] == null ? undefined : (json['metrics'].map(ReportQueryMetricFromJSON)),
7225
- 'filters': json['filters'] == null ? undefined : (json['filters'].map(ReportQueryFilterFromJSON)),
7226
- 'x': json['x'] == null ? undefined : ReportQueryDimensionFromJSON(json['x']),
7227
- 'series': json['series'] == null ? undefined : (json['series'].map(ReportQuerySeriesFromJSON)),
7228
- 'chart': json['chart'] == null ? undefined : json['chart'],
7229
- 'labelX': json['labelX'] == null ? undefined : json['labelX'],
7230
- 'labelY': json['labelY'] == null ? undefined : json['labelY'],
7231
- 'labelY2': json['labelY2'] == null ? undefined : json['labelY2'],
7310
+ 'data': ReportQueryDataDtoFromJSON(json['data']),
7232
7311
  };
7233
7312
  }
7234
- function ReportQueryDefinitionToJSON(json) {
7235
- return ReportQueryDefinitionToJSONTyped(json, false);
7313
+ function ReportQueryDataOutputToJSON(json) {
7314
+ return ReportQueryDataOutputToJSONTyped(json, false);
7236
7315
  }
7237
- function ReportQueryDefinitionToJSONTyped(value, ignoreDiscriminator = false) {
7316
+ function ReportQueryDataOutputToJSONTyped(value, ignoreDiscriminator = false) {
7238
7317
  if (value == null) {
7239
7318
  return value;
7240
7319
  }
7241
7320
  return {
7242
- 'version': value['version'],
7243
- 'source': value['source'],
7244
- 'itemTypeIds': value['itemTypeIds'],
7245
- 'dimensions': value['dimensions'] == null ? undefined : (value['dimensions'].map(ReportQueryDimensionToJSON)),
7246
- 'metrics': value['metrics'] == null ? undefined : (value['metrics'].map(ReportQueryMetricToJSON)),
7247
- 'filters': value['filters'] == null ? undefined : (value['filters'].map(ReportQueryFilterToJSON)),
7248
- 'x': ReportQueryDimensionToJSON(value['x']),
7249
- 'series': value['series'] == null ? undefined : (value['series'].map(ReportQuerySeriesToJSON)),
7250
- 'chart': value['chart'],
7251
- 'labelX': value['labelX'],
7252
- 'labelY': value['labelY'],
7253
- 'labelY2': value['labelY2'],
7321
+ 'data': ReportQueryDataDtoToJSON(value['data']),
7254
7322
  };
7255
7323
  }
7256
7324
 
7325
+ const ReportQueryDateBucket = {
7326
+ Day: 'day',
7327
+ Week: 'week',
7328
+ Month: 'month',
7329
+ Quarter: 'quarter',
7330
+ Year: 'year'
7331
+ };
7332
+ function instanceOfReportQueryDateBucket(value) {
7333
+ for (const key in ReportQueryDateBucket) {
7334
+ if (Object.prototype.hasOwnProperty.call(ReportQueryDateBucket, key)) {
7335
+ if (ReportQueryDateBucket[key] === value) {
7336
+ return true;
7337
+ }
7338
+ }
7339
+ }
7340
+ return false;
7341
+ }
7342
+ function ReportQueryDateBucketFromJSON(json) {
7343
+ return ReportQueryDateBucketFromJSONTyped(json);
7344
+ }
7345
+ function ReportQueryDateBucketFromJSONTyped(json, ignoreDiscriminator) {
7346
+ return json;
7347
+ }
7348
+ function ReportQueryDateBucketToJSON(value) {
7349
+ return value;
7350
+ }
7351
+ function ReportQueryDateBucketToJSONTyped(value, ignoreDiscriminator) {
7352
+ return value;
7353
+ }
7354
+
7257
7355
  function instanceOfReportQueryDto(value) {
7258
7356
  if (!('id' in value) || value['id'] === undefined)
7259
7357
  return false;
@@ -11124,6 +11222,29 @@ class ReportApi extends BaseAPI {
11124
11222
  const response = await this.apiV1ReportReportIdGetRaw(requestParameters, initOverrides);
11125
11223
  return await response.value();
11126
11224
  }
11225
+ async apiV2ReportAssistantPostRaw(requestParameters, initOverrides) {
11226
+ if (requestParameters['reportQueryAssistantInput'] == null) {
11227
+ throw new RequiredError('reportQueryAssistantInput', 'Required parameter "reportQueryAssistantInput" was null or undefined when calling apiV2ReportAssistantPost().');
11228
+ }
11229
+ const queryParameters = {};
11230
+ const headerParameters = {};
11231
+ headerParameters['Content-Type'] = 'application/json';
11232
+ if (this.configuration && this.configuration.apiKey) {
11233
+ headerParameters["apiKey"] = await this.configuration.apiKey("apiKey");
11234
+ }
11235
+ const response = await this.request({
11236
+ path: `/api/v2/report/assistant`,
11237
+ method: 'POST',
11238
+ headers: headerParameters,
11239
+ query: queryParameters,
11240
+ body: ReportQueryAssistantInputToJSON(requestParameters['reportQueryAssistantInput']),
11241
+ }, initOverrides);
11242
+ return new JSONApiResponse(response, (jsonValue) => ReportQueryAssistantOutputFromJSON(jsonValue));
11243
+ }
11244
+ async apiV2ReportAssistantPost(requestParameters, initOverrides) {
11245
+ const response = await this.apiV2ReportAssistantPostRaw(requestParameters, initOverrides);
11246
+ return await response.value();
11247
+ }
11127
11248
  async apiV2ReportCatalogGetRaw(initOverrides) {
11128
11249
  const queryParameters = {};
11129
11250
  const headerParameters = {};
@@ -11669,10 +11790,10 @@ exports.DataPointFromJSON = DataPointFromJSON;
11669
11790
  exports.DataPointFromJSONTyped = DataPointFromJSONTyped;
11670
11791
  exports.DataPointToJSON = DataPointToJSON;
11671
11792
  exports.DataPointToJSONTyped = DataPointToJSONTyped;
11672
- exports.Def227FromJSON = Def227FromJSON;
11673
- exports.Def227FromJSONTyped = Def227FromJSONTyped;
11674
- exports.Def227ToJSON = Def227ToJSON;
11675
- exports.Def227ToJSONTyped = Def227ToJSONTyped;
11793
+ exports.Def230FromJSON = Def230FromJSON;
11794
+ exports.Def230FromJSONTyped = Def230FromJSONTyped;
11795
+ exports.Def230ToJSON = Def230ToJSON;
11796
+ exports.Def230ToJSONTyped = Def230ToJSONTyped;
11676
11797
  exports.DefaultApi = DefaultApi;
11677
11798
  exports.DefaultConfig = DefaultConfig;
11678
11799
  exports.FetchError = FetchError;
@@ -12257,6 +12378,18 @@ exports.ReportOutputFromJSON = ReportOutputFromJSON;
12257
12378
  exports.ReportOutputFromJSONTyped = ReportOutputFromJSONTyped;
12258
12379
  exports.ReportOutputToJSON = ReportOutputToJSON;
12259
12380
  exports.ReportOutputToJSONTyped = ReportOutputToJSONTyped;
12381
+ exports.ReportQueryAssistantDtoFromJSON = ReportQueryAssistantDtoFromJSON;
12382
+ exports.ReportQueryAssistantDtoFromJSONTyped = ReportQueryAssistantDtoFromJSONTyped;
12383
+ exports.ReportQueryAssistantDtoToJSON = ReportQueryAssistantDtoToJSON;
12384
+ exports.ReportQueryAssistantDtoToJSONTyped = ReportQueryAssistantDtoToJSONTyped;
12385
+ exports.ReportQueryAssistantInputFromJSON = ReportQueryAssistantInputFromJSON;
12386
+ exports.ReportQueryAssistantInputFromJSONTyped = ReportQueryAssistantInputFromJSONTyped;
12387
+ exports.ReportQueryAssistantInputToJSON = ReportQueryAssistantInputToJSON;
12388
+ exports.ReportQueryAssistantInputToJSONTyped = ReportQueryAssistantInputToJSONTyped;
12389
+ exports.ReportQueryAssistantOutputFromJSON = ReportQueryAssistantOutputFromJSON;
12390
+ exports.ReportQueryAssistantOutputFromJSONTyped = ReportQueryAssistantOutputFromJSONTyped;
12391
+ exports.ReportQueryAssistantOutputToJSON = ReportQueryAssistantOutputToJSON;
12392
+ exports.ReportQueryAssistantOutputToJSONTyped = ReportQueryAssistantOutputToJSONTyped;
12260
12393
  exports.ReportQueryAxis = ReportQueryAxis;
12261
12394
  exports.ReportQueryAxisFromJSON = ReportQueryAxisFromJSON;
12262
12395
  exports.ReportQueryAxisFromJSONTyped = ReportQueryAxisFromJSONTyped;
@@ -12579,7 +12712,7 @@ exports.instanceOfChartTitle = instanceOfChartTitle;
12579
12712
  exports.instanceOfComputeRouteInput = instanceOfComputeRouteInput;
12580
12713
  exports.instanceOfCoordDto = instanceOfCoordDto;
12581
12714
  exports.instanceOfDataPoint = instanceOfDataPoint;
12582
- exports.instanceOfDef227 = instanceOfDef227;
12715
+ exports.instanceOfDef230 = instanceOfDef230;
12583
12716
  exports.instanceOfHealthcheckStatusValue = instanceOfHealthcheckStatusValue;
12584
12717
  exports.instanceOfInternalMapItemSearchResultORM = instanceOfInternalMapItemSearchResultORM;
12585
12718
  exports.instanceOfItemDecorationDto = instanceOfItemDecorationDto;
@@ -12717,6 +12850,9 @@ exports.instanceOfReportDto = instanceOfReportDto;
12717
12850
  exports.instanceOfReportListOutput = instanceOfReportListOutput;
12718
12851
  exports.instanceOfReportORM = instanceOfReportORM;
12719
12852
  exports.instanceOfReportOutput = instanceOfReportOutput;
12853
+ exports.instanceOfReportQueryAssistantDto = instanceOfReportQueryAssistantDto;
12854
+ exports.instanceOfReportQueryAssistantInput = instanceOfReportQueryAssistantInput;
12855
+ exports.instanceOfReportQueryAssistantOutput = instanceOfReportQueryAssistantOutput;
12720
12856
  exports.instanceOfReportQueryAxis = instanceOfReportQueryAxis;
12721
12857
  exports.instanceOfReportQueryCatalogField = instanceOfReportQueryCatalogField;
12722
12858
  exports.instanceOfReportQueryCatalogOutput = instanceOfReportQueryCatalogOutput;