@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.js CHANGED
@@ -5854,11 +5854,71 @@ 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
+ In: "in"
5883
+ };
5884
+ function instanceOfStructuredFilterDTO(value) {
5885
+ if (!("op" in value) || value["op"] === void 0) return false;
5886
+ if (!("path" in value) || value["path"] === void 0) return false;
5887
+ return true;
5888
+ }
5889
+ function StructuredFilterDTOFromJSON(json) {
5890
+ return StructuredFilterDTOFromJSONTyped(json, false);
5891
+ }
5892
+ function StructuredFilterDTOFromJSONTyped(json, ignoreDiscriminator) {
5893
+ if (json == null) {
5894
+ return json;
5895
+ }
5896
+ return {
5897
+ "op": json["op"],
5898
+ "path": json["path"],
5899
+ "value": json["value"] == null ? void 0 : ValueFromJSON(json["value"])
5900
+ };
5901
+ }
5902
+ function StructuredFilterDTOToJSON(json) {
5903
+ return StructuredFilterDTOToJSONTyped(json, false);
5904
+ }
5905
+ function StructuredFilterDTOToJSONTyped(value, ignoreDiscriminator = false) {
5906
+ if (value == null) {
5907
+ return value;
5908
+ }
5909
+ return {
5910
+ "op": value["op"],
5911
+ "path": value["path"],
5912
+ "value": ValueToJSON(value["value"])
5913
+ };
5914
+ }
5915
+
5857
5916
  // src/generated/models/AggregateMetricDTO.ts
5858
5917
  var AggregateMetricDTOFieldEnum = {
5859
5918
  TotalAmount: "total_amount",
5860
5919
  NetAmount: "net_amount",
5861
- VatAmount: "vat_amount"
5920
+ VatAmount: "vat_amount",
5921
+ MeasurableQuantity: "measurable_quantity"
5862
5922
  };
5863
5923
  var AggregateMetricDTOOpEnum = {
5864
5924
  Sum: "sum",
@@ -5907,7 +5967,9 @@ var RetrievalAggregateInDTOGroupByEnum = {
5907
5967
  PaymentMethod: "payment_method",
5908
5968
  EndUserId: "end_user_id",
5909
5969
  Month: "month",
5910
- Year: "year"
5970
+ Year: "year",
5971
+ MeasurableUom: "measurable_uom",
5972
+ Description: "description"
5911
5973
  };
5912
5974
  function instanceOfRetrievalAggregateInDTO(value) {
5913
5975
  if (!("metrics" in value) || value["metrics"] === void 0) return false;
@@ -5924,6 +5986,7 @@ function RetrievalAggregateInDTOFromJSONTyped(json, ignoreDiscriminator) {
5924
5986
  "filters": json["filters"] == null ? void 0 : RetrievalFiltersDTOFromJSON(json["filters"]),
5925
5987
  "groupBy": json["groupBy"] == null ? void 0 : json["groupBy"],
5926
5988
  "limit": json["limit"] == null ? void 0 : json["limit"],
5989
+ "lineFilters": json["lineFilters"] == null ? void 0 : json["lineFilters"].map(StructuredFilterDTOFromJSON),
5927
5990
  "metrics": json["metrics"].map(AggregateMetricDTOFromJSON)
5928
5991
  };
5929
5992
  }
@@ -5938,6 +6001,7 @@ function RetrievalAggregateInDTOToJSONTyped(value, ignoreDiscriminator = false)
5938
6001
  "filters": RetrievalFiltersDTOToJSON(value["filters"]),
5939
6002
  "groupBy": value["groupBy"],
5940
6003
  "limit": value["limit"],
6004
+ "lineFilters": value["lineFilters"] == null ? void 0 : value["lineFilters"].map(StructuredFilterDTOToJSON),
5941
6005
  "metrics": value["metrics"].map(AggregateMetricDTOToJSON)
5942
6006
  };
5943
6007
  }
@@ -6003,7 +6067,9 @@ function AggregateMetaDTOFromJSONTyped(json, ignoreDiscriminator) {
6003
6067
  return {
6004
6068
  "count": json["count"],
6005
6069
  "currencyGroupingAdded": json["currencyGroupingAdded"] == null ? void 0 : json["currencyGroupingAdded"],
6006
- "duplicatesIgnored": json["duplicatesIgnored"] == null ? void 0 : json["duplicatesIgnored"]
6070
+ "duplicatesIgnored": json["duplicatesIgnored"] == null ? void 0 : json["duplicatesIgnored"],
6071
+ "linesWithoutUnitData": json["linesWithoutUnitData"] == null ? void 0 : json["linesWithoutUnitData"],
6072
+ "uomGroupingAdded": json["uomGroupingAdded"] == null ? void 0 : json["uomGroupingAdded"]
6007
6073
  };
6008
6074
  }
6009
6075
  function AggregateMetaDTOToJSON(json) {
@@ -6016,7 +6082,9 @@ function AggregateMetaDTOToJSONTyped(value, ignoreDiscriminator = false) {
6016
6082
  return {
6017
6083
  "count": value["count"],
6018
6084
  "currencyGroupingAdded": value["currencyGroupingAdded"],
6019
- "duplicatesIgnored": value["duplicatesIgnored"]
6085
+ "duplicatesIgnored": value["duplicatesIgnored"],
6086
+ "linesWithoutUnitData": value["linesWithoutUnitData"],
6087
+ "uomGroupingAdded": value["uomGroupingAdded"]
6020
6088
  };
6021
6089
  }
6022
6090
 
@@ -6125,64 +6193,6 @@ function RetrievalFieldsOutDTOToJSONTyped(value, ignoreDiscriminator = false) {
6125
6193
  };
6126
6194
  }
6127
6195
 
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
6196
  // src/generated/models/RetrievalQueryInDTO.ts
6187
6197
  var RetrievalQueryInDTOModeEnum = {
6188
6198
  Structured: "structured",
@@ -9257,6 +9267,23 @@ function PurgeDocumentsWithEndUserId422ResponseToJSONTyped(value, ignoreDiscrimi
9257
9267
  return {};
9258
9268
  }
9259
9269
 
9270
+ // src/generated/models/ValueAnyOfInner.ts
9271
+ function instanceOfValueAnyOfInner(value) {
9272
+ return true;
9273
+ }
9274
+ function ValueAnyOfInnerFromJSON(json) {
9275
+ return ValueAnyOfInnerFromJSONTyped(json, false);
9276
+ }
9277
+ function ValueAnyOfInnerFromJSONTyped(json, ignoreDiscriminator) {
9278
+ return json;
9279
+ }
9280
+ function ValueAnyOfInnerToJSON(json) {
9281
+ return ValueAnyOfInnerToJSONTyped(json, false);
9282
+ }
9283
+ function ValueAnyOfInnerToJSONTyped(value, ignoreDiscriminator = false) {
9284
+ return value;
9285
+ }
9286
+
9260
9287
  // src/errors.ts
9261
9288
  var GeminaError = class extends Error {
9262
9289
  constructor(message) {
@@ -9628,7 +9655,7 @@ async function asProcessingErrorIfFailedResult(error) {
9628
9655
  }
9629
9656
 
9630
9657
  // src/version.ts
9631
- var VERSION = "0.3.2";
9658
+ var VERSION = "0.4.1";
9632
9659
  export {
9633
9660
  AggregateMetaDTOFromJSON,
9634
9661
  AggregateMetaDTOFromJSONTyped,
@@ -10211,6 +10238,10 @@ export {
10211
10238
  ValidationSchemaModelFromJSONTyped,
10212
10239
  ValidationSchemaModelToJSON,
10213
10240
  ValidationSchemaModelToJSONTyped,
10241
+ ValueAnyOfInnerFromJSON,
10242
+ ValueAnyOfInnerFromJSONTyped,
10243
+ ValueAnyOfInnerToJSON,
10244
+ ValueAnyOfInnerToJSONTyped,
10214
10245
  ValueFromJSON,
10215
10246
  ValueFromJSONTyped,
10216
10247
  ValueToJSON,
@@ -10367,6 +10398,7 @@ export {
10367
10398
  instanceOfValidationError,
10368
10399
  instanceOfValidationSchemaModel,
10369
10400
  instanceOfValue,
10401
+ instanceOfValueAnyOfInner,
10370
10402
  instanceOfValuesValue,
10371
10403
  instanceOfViewMetaOutDTO,
10372
10404
  instanceOfVolumeDiscountTierOutDTO,