@gemina/sdk 0.3.2 → 0.4.1

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
@@ -601,6 +601,10 @@ __export(index_exports, {
601
601
  ValidationSchemaModelFromJSONTyped: () => ValidationSchemaModelFromJSONTyped,
602
602
  ValidationSchemaModelToJSON: () => ValidationSchemaModelToJSON,
603
603
  ValidationSchemaModelToJSONTyped: () => ValidationSchemaModelToJSONTyped,
604
+ ValueAnyOfInnerFromJSON: () => ValueAnyOfInnerFromJSON,
605
+ ValueAnyOfInnerFromJSONTyped: () => ValueAnyOfInnerFromJSONTyped,
606
+ ValueAnyOfInnerToJSON: () => ValueAnyOfInnerToJSON,
607
+ ValueAnyOfInnerToJSONTyped: () => ValueAnyOfInnerToJSONTyped,
604
608
  ValueFromJSON: () => ValueFromJSON,
605
609
  ValueFromJSONTyped: () => ValueFromJSONTyped,
606
610
  ValueToJSON: () => ValueToJSON,
@@ -757,6 +761,7 @@ __export(index_exports, {
757
761
  instanceOfValidationError: () => instanceOfValidationError,
758
762
  instanceOfValidationSchemaModel: () => instanceOfValidationSchemaModel,
759
763
  instanceOfValue: () => instanceOfValue,
764
+ instanceOfValueAnyOfInner: () => instanceOfValueAnyOfInner,
760
765
  instanceOfValuesValue: () => instanceOfValuesValue,
761
766
  instanceOfViewMetaOutDTO: () => instanceOfViewMetaOutDTO,
762
767
  instanceOfVolumeDiscountTierOutDTO: () => instanceOfVolumeDiscountTierOutDTO,
@@ -6623,11 +6628,71 @@ function RetrievalFiltersDTOToJSONTyped(value, ignoreDiscriminator = false) {
6623
6628
  };
6624
6629
  }
6625
6630
 
6631
+ // src/generated/models/Value.ts
6632
+ function instanceOfValue(value) {
6633
+ return true;
6634
+ }
6635
+ function ValueFromJSON(json) {
6636
+ return ValueFromJSONTyped(json, false);
6637
+ }
6638
+ function ValueFromJSONTyped(json, ignoreDiscriminator) {
6639
+ return json;
6640
+ }
6641
+ function ValueToJSON(json) {
6642
+ return ValueToJSONTyped(json, false);
6643
+ }
6644
+ function ValueToJSONTyped(value, ignoreDiscriminator = false) {
6645
+ return value;
6646
+ }
6647
+
6648
+ // src/generated/models/StructuredFilterDTO.ts
6649
+ var StructuredFilterDTOOpEnum = {
6650
+ Eq: "eq",
6651
+ Neq: "neq",
6652
+ Gt: "gt",
6653
+ Lt: "lt",
6654
+ Contains: "contains",
6655
+ Exists: "exists",
6656
+ In: "in"
6657
+ };
6658
+ function instanceOfStructuredFilterDTO(value) {
6659
+ if (!("op" in value) || value["op"] === void 0) return false;
6660
+ if (!("path" in value) || value["path"] === void 0) return false;
6661
+ return true;
6662
+ }
6663
+ function StructuredFilterDTOFromJSON(json) {
6664
+ return StructuredFilterDTOFromJSONTyped(json, false);
6665
+ }
6666
+ function StructuredFilterDTOFromJSONTyped(json, ignoreDiscriminator) {
6667
+ if (json == null) {
6668
+ return json;
6669
+ }
6670
+ return {
6671
+ "op": json["op"],
6672
+ "path": json["path"],
6673
+ "value": json["value"] == null ? void 0 : ValueFromJSON(json["value"])
6674
+ };
6675
+ }
6676
+ function StructuredFilterDTOToJSON(json) {
6677
+ return StructuredFilterDTOToJSONTyped(json, false);
6678
+ }
6679
+ function StructuredFilterDTOToJSONTyped(value, ignoreDiscriminator = false) {
6680
+ if (value == null) {
6681
+ return value;
6682
+ }
6683
+ return {
6684
+ "op": value["op"],
6685
+ "path": value["path"],
6686
+ "value": ValueToJSON(value["value"])
6687
+ };
6688
+ }
6689
+
6626
6690
  // src/generated/models/AggregateMetricDTO.ts
6627
6691
  var AggregateMetricDTOFieldEnum = {
6628
6692
  TotalAmount: "total_amount",
6629
6693
  NetAmount: "net_amount",
6630
- VatAmount: "vat_amount"
6694
+ VatAmount: "vat_amount",
6695
+ MeasurableQuantity: "measurable_quantity"
6631
6696
  };
6632
6697
  var AggregateMetricDTOOpEnum = {
6633
6698
  Sum: "sum",
@@ -6676,7 +6741,9 @@ var RetrievalAggregateInDTOGroupByEnum = {
6676
6741
  PaymentMethod: "payment_method",
6677
6742
  EndUserId: "end_user_id",
6678
6743
  Month: "month",
6679
- Year: "year"
6744
+ Year: "year",
6745
+ MeasurableUom: "measurable_uom",
6746
+ Description: "description"
6680
6747
  };
6681
6748
  function instanceOfRetrievalAggregateInDTO(value) {
6682
6749
  if (!("metrics" in value) || value["metrics"] === void 0) return false;
@@ -6693,6 +6760,7 @@ function RetrievalAggregateInDTOFromJSONTyped(json, ignoreDiscriminator) {
6693
6760
  "filters": json["filters"] == null ? void 0 : RetrievalFiltersDTOFromJSON(json["filters"]),
6694
6761
  "groupBy": json["groupBy"] == null ? void 0 : json["groupBy"],
6695
6762
  "limit": json["limit"] == null ? void 0 : json["limit"],
6763
+ "lineFilters": json["lineFilters"] == null ? void 0 : json["lineFilters"].map(StructuredFilterDTOFromJSON),
6696
6764
  "metrics": json["metrics"].map(AggregateMetricDTOFromJSON)
6697
6765
  };
6698
6766
  }
@@ -6707,6 +6775,7 @@ function RetrievalAggregateInDTOToJSONTyped(value, ignoreDiscriminator = false)
6707
6775
  "filters": RetrievalFiltersDTOToJSON(value["filters"]),
6708
6776
  "groupBy": value["groupBy"],
6709
6777
  "limit": value["limit"],
6778
+ "lineFilters": value["lineFilters"] == null ? void 0 : value["lineFilters"].map(StructuredFilterDTOToJSON),
6710
6779
  "metrics": value["metrics"].map(AggregateMetricDTOToJSON)
6711
6780
  };
6712
6781
  }
@@ -6772,7 +6841,9 @@ function AggregateMetaDTOFromJSONTyped(json, ignoreDiscriminator) {
6772
6841
  return {
6773
6842
  "count": json["count"],
6774
6843
  "currencyGroupingAdded": json["currencyGroupingAdded"] == null ? void 0 : json["currencyGroupingAdded"],
6775
- "duplicatesIgnored": json["duplicatesIgnored"] == null ? void 0 : json["duplicatesIgnored"]
6844
+ "duplicatesIgnored": json["duplicatesIgnored"] == null ? void 0 : json["duplicatesIgnored"],
6845
+ "linesWithoutUnitData": json["linesWithoutUnitData"] == null ? void 0 : json["linesWithoutUnitData"],
6846
+ "uomGroupingAdded": json["uomGroupingAdded"] == null ? void 0 : json["uomGroupingAdded"]
6776
6847
  };
6777
6848
  }
6778
6849
  function AggregateMetaDTOToJSON(json) {
@@ -6785,7 +6856,9 @@ function AggregateMetaDTOToJSONTyped(value, ignoreDiscriminator = false) {
6785
6856
  return {
6786
6857
  "count": value["count"],
6787
6858
  "currencyGroupingAdded": value["currencyGroupingAdded"],
6788
- "duplicatesIgnored": value["duplicatesIgnored"]
6859
+ "duplicatesIgnored": value["duplicatesIgnored"],
6860
+ "linesWithoutUnitData": value["linesWithoutUnitData"],
6861
+ "uomGroupingAdded": value["uomGroupingAdded"]
6789
6862
  };
6790
6863
  }
6791
6864
 
@@ -6894,64 +6967,6 @@ function RetrievalFieldsOutDTOToJSONTyped(value, ignoreDiscriminator = false) {
6894
6967
  };
6895
6968
  }
6896
6969
 
6897
- // src/generated/models/Value.ts
6898
- function instanceOfValue(value) {
6899
- return true;
6900
- }
6901
- function ValueFromJSON(json) {
6902
- return ValueFromJSONTyped(json, false);
6903
- }
6904
- function ValueFromJSONTyped(json, ignoreDiscriminator) {
6905
- return json;
6906
- }
6907
- function ValueToJSON(json) {
6908
- return ValueToJSONTyped(json, false);
6909
- }
6910
- function ValueToJSONTyped(value, ignoreDiscriminator = false) {
6911
- return value;
6912
- }
6913
-
6914
- // src/generated/models/StructuredFilterDTO.ts
6915
- var StructuredFilterDTOOpEnum = {
6916
- Eq: "eq",
6917
- Neq: "neq",
6918
- Gt: "gt",
6919
- Lt: "lt",
6920
- Contains: "contains",
6921
- Exists: "exists"
6922
- };
6923
- function instanceOfStructuredFilterDTO(value) {
6924
- if (!("op" in value) || value["op"] === void 0) return false;
6925
- if (!("path" in value) || value["path"] === void 0) return false;
6926
- return true;
6927
- }
6928
- function StructuredFilterDTOFromJSON(json) {
6929
- return StructuredFilterDTOFromJSONTyped(json, false);
6930
- }
6931
- function StructuredFilterDTOFromJSONTyped(json, ignoreDiscriminator) {
6932
- if (json == null) {
6933
- return json;
6934
- }
6935
- return {
6936
- "op": json["op"],
6937
- "path": json["path"],
6938
- "value": json["value"] == null ? void 0 : ValueFromJSON(json["value"])
6939
- };
6940
- }
6941
- function StructuredFilterDTOToJSON(json) {
6942
- return StructuredFilterDTOToJSONTyped(json, false);
6943
- }
6944
- function StructuredFilterDTOToJSONTyped(value, ignoreDiscriminator = false) {
6945
- if (value == null) {
6946
- return value;
6947
- }
6948
- return {
6949
- "op": value["op"],
6950
- "path": value["path"],
6951
- "value": ValueToJSON(value["value"])
6952
- };
6953
- }
6954
-
6955
6970
  // src/generated/models/RetrievalQueryInDTO.ts
6956
6971
  var RetrievalQueryInDTOModeEnum = {
6957
6972
  Structured: "structured",
@@ -10026,6 +10041,23 @@ function PurgeDocumentsWithEndUserId422ResponseToJSONTyped(value, ignoreDiscrimi
10026
10041
  return {};
10027
10042
  }
10028
10043
 
10044
+ // src/generated/models/ValueAnyOfInner.ts
10045
+ function instanceOfValueAnyOfInner(value) {
10046
+ return true;
10047
+ }
10048
+ function ValueAnyOfInnerFromJSON(json) {
10049
+ return ValueAnyOfInnerFromJSONTyped(json, false);
10050
+ }
10051
+ function ValueAnyOfInnerFromJSONTyped(json, ignoreDiscriminator) {
10052
+ return json;
10053
+ }
10054
+ function ValueAnyOfInnerToJSON(json) {
10055
+ return ValueAnyOfInnerToJSONTyped(json, false);
10056
+ }
10057
+ function ValueAnyOfInnerToJSONTyped(value, ignoreDiscriminator = false) {
10058
+ return value;
10059
+ }
10060
+
10029
10061
  // src/errors.ts
10030
10062
  var GeminaError = class extends Error {
10031
10063
  constructor(message) {
@@ -10397,7 +10429,7 @@ async function asProcessingErrorIfFailedResult(error) {
10397
10429
  }
10398
10430
 
10399
10431
  // src/version.ts
10400
- var VERSION = "0.3.2";
10432
+ var VERSION = "0.4.1";
10401
10433
  // Annotate the CommonJS export names for ESM import in node:
10402
10434
  0 && (module.exports = {
10403
10435
  AggregateMetaDTOFromJSON,
@@ -10981,6 +11013,10 @@ var VERSION = "0.3.2";
10981
11013
  ValidationSchemaModelFromJSONTyped,
10982
11014
  ValidationSchemaModelToJSON,
10983
11015
  ValidationSchemaModelToJSONTyped,
11016
+ ValueAnyOfInnerFromJSON,
11017
+ ValueAnyOfInnerFromJSONTyped,
11018
+ ValueAnyOfInnerToJSON,
11019
+ ValueAnyOfInnerToJSONTyped,
10984
11020
  ValueFromJSON,
10985
11021
  ValueFromJSONTyped,
10986
11022
  ValueToJSON,
@@ -11137,6 +11173,7 @@ var VERSION = "0.3.2";
11137
11173
  instanceOfValidationError,
11138
11174
  instanceOfValidationSchemaModel,
11139
11175
  instanceOfValue,
11176
+ instanceOfValueAnyOfInner,
11140
11177
  instanceOfValuesValue,
11141
11178
  instanceOfViewMetaOutDTO,
11142
11179
  instanceOfVolumeDiscountTierOutDTO,