lago-javascript-client 1.15.0 → 1.17.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.
@@ -148,7 +148,7 @@ export class HttpClient {
148
148
  }
149
149
  /**
150
150
  * @title Lago API documentation
151
- * @version 1.15.0
151
+ * @version 1.17.0
152
152
  * @license AGPLv3
153
153
  * @baseUrl https://api.getlago.com/api/v1
154
154
  * @externalDocs https://github.com/getlago
@@ -404,6 +404,24 @@ export class Api extends HttpClient {
404
404
  format: "json",
405
405
  ...params,
406
406
  }),
407
+ /**
408
+ * @description Evaluate an expression for a billable metric creation by providing the expression and test data
409
+ *
410
+ * @tags billable_metrics
411
+ * @name EvaluateBillableMetricExpression
412
+ * @summary Evaluate an expression for a billable metric
413
+ * @request POST:/billable_metrics/evaluate_expression
414
+ * @secure
415
+ */
416
+ evaluateBillableMetricExpression: (data, params = {}) => this.request({
417
+ path: `/billable_metrics/evaluate_expression`,
418
+ method: "POST",
419
+ body: data,
420
+ secure: true,
421
+ type: ContentType.Json,
422
+ format: "json",
423
+ ...params,
424
+ }),
407
425
  /**
408
426
  * @description This endpoint updates an existing billable metric representing a pricing component of your application.
409
427
  *
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "main": "./script/mod.js",
4
4
  "name": "lago-javascript-client",
5
5
  "sideEffects": false,
6
- "version": "v1.15.0",
6
+ "version": "v1.17.0",
7
7
  "description": "Lago JavaScript API Client",
8
8
  "repository": {
9
9
  "type": "git",