@gemina/sdk 0.3.2 → 0.4.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.js CHANGED
@@ -5854,11 +5854,70 @@ function RetrievalFiltersDTOToJSONTyped(value, ignoreDiscriminator = false) {
5854
5854
  };
5855
5855
  }
5856
5856
 
5857
+ // src/generated/models/Value.ts
5858
+ function instanceOfValue(value) {
5859
+ return true;
5860
+ }
5861
+ function ValueFromJSON(json) {
5862
+ return ValueFromJSONTyped(json, false);
5863
+ }
5864
+ function ValueFromJSONTyped(json, ignoreDiscriminator) {
5865
+ return json;
5866
+ }
5867
+ function ValueToJSON(json) {
5868
+ return ValueToJSONTyped(json, false);
5869
+ }
5870
+ function ValueToJSONTyped(value, ignoreDiscriminator = false) {
5871
+ return value;
5872
+ }
5873
+
5874
+ // src/generated/models/StructuredFilterDTO.ts
5875
+ var StructuredFilterDTOOpEnum = {
5876
+ Eq: "eq",
5877
+ Neq: "neq",
5878
+ Gt: "gt",
5879
+ Lt: "lt",
5880
+ Contains: "contains",
5881
+ Exists: "exists"
5882
+ };
5883
+ function instanceOfStructuredFilterDTO(value) {
5884
+ if (!("op" in value) || value["op"] === void 0) return false;
5885
+ if (!("path" in value) || value["path"] === void 0) return false;
5886
+ return true;
5887
+ }
5888
+ function StructuredFilterDTOFromJSON(json) {
5889
+ return StructuredFilterDTOFromJSONTyped(json, false);
5890
+ }
5891
+ function StructuredFilterDTOFromJSONTyped(json, ignoreDiscriminator) {
5892
+ if (json == null) {
5893
+ return json;
5894
+ }
5895
+ return {
5896
+ "op": json["op"],
5897
+ "path": json["path"],
5898
+ "value": json["value"] == null ? void 0 : ValueFromJSON(json["value"])
5899
+ };
5900
+ }
5901
+ function StructuredFilterDTOToJSON(json) {
5902
+ return StructuredFilterDTOToJSONTyped(json, false);
5903
+ }
5904
+ function StructuredFilterDTOToJSONTyped(value, ignoreDiscriminator = false) {
5905
+ if (value == null) {
5906
+ return value;
5907
+ }
5908
+ return {
5909
+ "op": value["op"],
5910
+ "path": value["path"],
5911
+ "value": ValueToJSON(value["value"])
5912
+ };
5913
+ }
5914
+
5857
5915
  // src/generated/models/AggregateMetricDTO.ts
5858
5916
  var AggregateMetricDTOFieldEnum = {
5859
5917
  TotalAmount: "total_amount",
5860
5918
  NetAmount: "net_amount",
5861
- VatAmount: "vat_amount"
5919
+ VatAmount: "vat_amount",
5920
+ MeasurableQuantity: "measurable_quantity"
5862
5921
  };
5863
5922
  var AggregateMetricDTOOpEnum = {
5864
5923
  Sum: "sum",
@@ -5907,7 +5966,8 @@ var RetrievalAggregateInDTOGroupByEnum = {
5907
5966
  PaymentMethod: "payment_method",
5908
5967
  EndUserId: "end_user_id",
5909
5968
  Month: "month",
5910
- Year: "year"
5969
+ Year: "year",
5970
+ MeasurableUom: "measurable_uom"
5911
5971
  };
5912
5972
  function instanceOfRetrievalAggregateInDTO(value) {
5913
5973
  if (!("metrics" in value) || value["metrics"] === void 0) return false;
@@ -5924,6 +5984,7 @@ function RetrievalAggregateInDTOFromJSONTyped(json, ignoreDiscriminator) {
5924
5984
  "filters": json["filters"] == null ? void 0 : RetrievalFiltersDTOFromJSON(json["filters"]),
5925
5985
  "groupBy": json["groupBy"] == null ? void 0 : json["groupBy"],
5926
5986
  "limit": json["limit"] == null ? void 0 : json["limit"],
5987
+ "lineFilters": json["lineFilters"] == null ? void 0 : json["lineFilters"].map(StructuredFilterDTOFromJSON),
5927
5988
  "metrics": json["metrics"].map(AggregateMetricDTOFromJSON)
5928
5989
  };
5929
5990
  }
@@ -5938,6 +5999,7 @@ function RetrievalAggregateInDTOToJSONTyped(value, ignoreDiscriminator = false)
5938
5999
  "filters": RetrievalFiltersDTOToJSON(value["filters"]),
5939
6000
  "groupBy": value["groupBy"],
5940
6001
  "limit": value["limit"],
6002
+ "lineFilters": value["lineFilters"] == null ? void 0 : value["lineFilters"].map(StructuredFilterDTOToJSON),
5941
6003
  "metrics": value["metrics"].map(AggregateMetricDTOToJSON)
5942
6004
  };
5943
6005
  }
@@ -6003,7 +6065,9 @@ function AggregateMetaDTOFromJSONTyped(json, ignoreDiscriminator) {
6003
6065
  return {
6004
6066
  "count": json["count"],
6005
6067
  "currencyGroupingAdded": json["currencyGroupingAdded"] == null ? void 0 : json["currencyGroupingAdded"],
6006
- "duplicatesIgnored": json["duplicatesIgnored"] == null ? void 0 : json["duplicatesIgnored"]
6068
+ "duplicatesIgnored": json["duplicatesIgnored"] == null ? void 0 : json["duplicatesIgnored"],
6069
+ "linesWithoutUnitData": json["linesWithoutUnitData"] == null ? void 0 : json["linesWithoutUnitData"],
6070
+ "uomGroupingAdded": json["uomGroupingAdded"] == null ? void 0 : json["uomGroupingAdded"]
6007
6071
  };
6008
6072
  }
6009
6073
  function AggregateMetaDTOToJSON(json) {
@@ -6016,7 +6080,9 @@ function AggregateMetaDTOToJSONTyped(value, ignoreDiscriminator = false) {
6016
6080
  return {
6017
6081
  "count": value["count"],
6018
6082
  "currencyGroupingAdded": value["currencyGroupingAdded"],
6019
- "duplicatesIgnored": value["duplicatesIgnored"]
6083
+ "duplicatesIgnored": value["duplicatesIgnored"],
6084
+ "linesWithoutUnitData": value["linesWithoutUnitData"],
6085
+ "uomGroupingAdded": value["uomGroupingAdded"]
6020
6086
  };
6021
6087
  }
6022
6088
 
@@ -6125,64 +6191,6 @@ function RetrievalFieldsOutDTOToJSONTyped(value, ignoreDiscriminator = false) {
6125
6191
  };
6126
6192
  }
6127
6193
 
6128
- // src/generated/models/Value.ts
6129
- function instanceOfValue(value) {
6130
- return true;
6131
- }
6132
- function ValueFromJSON(json) {
6133
- return ValueFromJSONTyped(json, false);
6134
- }
6135
- function ValueFromJSONTyped(json, ignoreDiscriminator) {
6136
- return json;
6137
- }
6138
- function ValueToJSON(json) {
6139
- return ValueToJSONTyped(json, false);
6140
- }
6141
- function ValueToJSONTyped(value, ignoreDiscriminator = false) {
6142
- return value;
6143
- }
6144
-
6145
- // src/generated/models/StructuredFilterDTO.ts
6146
- var StructuredFilterDTOOpEnum = {
6147
- Eq: "eq",
6148
- Neq: "neq",
6149
- Gt: "gt",
6150
- Lt: "lt",
6151
- Contains: "contains",
6152
- Exists: "exists"
6153
- };
6154
- function instanceOfStructuredFilterDTO(value) {
6155
- if (!("op" in value) || value["op"] === void 0) return false;
6156
- if (!("path" in value) || value["path"] === void 0) return false;
6157
- return true;
6158
- }
6159
- function StructuredFilterDTOFromJSON(json) {
6160
- return StructuredFilterDTOFromJSONTyped(json, false);
6161
- }
6162
- function StructuredFilterDTOFromJSONTyped(json, ignoreDiscriminator) {
6163
- if (json == null) {
6164
- return json;
6165
- }
6166
- return {
6167
- "op": json["op"],
6168
- "path": json["path"],
6169
- "value": json["value"] == null ? void 0 : ValueFromJSON(json["value"])
6170
- };
6171
- }
6172
- function StructuredFilterDTOToJSON(json) {
6173
- return StructuredFilterDTOToJSONTyped(json, false);
6174
- }
6175
- function StructuredFilterDTOToJSONTyped(value, ignoreDiscriminator = false) {
6176
- if (value == null) {
6177
- return value;
6178
- }
6179
- return {
6180
- "op": value["op"],
6181
- "path": value["path"],
6182
- "value": ValueToJSON(value["value"])
6183
- };
6184
- }
6185
-
6186
6194
  // src/generated/models/RetrievalQueryInDTO.ts
6187
6195
  var RetrievalQueryInDTOModeEnum = {
6188
6196
  Structured: "structured",
@@ -9628,7 +9636,7 @@ async function asProcessingErrorIfFailedResult(error) {
9628
9636
  }
9629
9637
 
9630
9638
  // src/version.ts
9631
- var VERSION = "0.3.2";
9639
+ var VERSION = "0.4.0";
9632
9640
  export {
9633
9641
  AggregateMetaDTOFromJSON,
9634
9642
  AggregateMetaDTOFromJSONTyped,