vayu-ts 0.2.3 → 0.2.5

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.
@@ -2,3 +2,4 @@ export * from './CustomersClient';
2
2
  export * from './EventsClient';
3
3
  export * from './InvoicesClient';
4
4
  export * from './ProductsClient';
5
+ export * from './EntitlementsClient';
@@ -18,3 +18,4 @@ __exportStar(require("./CustomersClient"), exports);
18
18
  __exportStar(require("./EventsClient"), exports);
19
19
  __exportStar(require("./InvoicesClient"), exports);
20
20
  __exportStar(require("./ProductsClient"), exports);
21
+ __exportStar(require("./EntitlementsClient"), exports);
@@ -1,4 +1,4 @@
1
- import { CustomersClient, EventsClient, InvoicesClient, ProductsClient } from './clients';
1
+ import { CustomersClient, EntitlementsClient, EventsClient, InvoicesClient, ProductsClient } from './clients';
2
2
  export declare class Vayu {
3
3
  private configurationManager;
4
4
  constructor(apiKey: string, _baseUrl?: string);
@@ -7,5 +7,6 @@ export declare class Vayu {
7
7
  get customers(): CustomersClient;
8
8
  get products(): ProductsClient;
9
9
  get invoices(): InvoicesClient;
10
+ get entitlements(): EntitlementsClient;
10
11
  }
11
12
  export * from './types';
@@ -28,7 +28,7 @@ const clients_1 = require("./clients");
28
28
  const services_1 = require("./services");
29
29
  class Vayu {
30
30
  constructor(apiKey, _baseUrl) {
31
- const baseServer = services_1.ConfigurationService.generateServerConfiguration('http://connect.v2.dev.withvayu.com');
31
+ const baseServer = services_1.ConfigurationService.generateServerConfiguration('https://connect.v2.dev.withvayu.com');
32
32
  this.configurationManager = services_1.ConfigurationService.initialize(apiKey, baseServer);
33
33
  }
34
34
  login() {
@@ -48,6 +48,9 @@ class Vayu {
48
48
  get invoices() {
49
49
  return new clients_1.InvoicesClient();
50
50
  }
51
+ get entitlements() {
52
+ return new clients_1.EntitlementsClient();
53
+ }
51
54
  }
52
55
  exports.Vayu = Vayu;
53
56
  __exportStar(require("./types"), exports);
@@ -2,5 +2,6 @@ export * from './Customers';
2
2
  export * from './Events';
3
3
  export * from './Invoices';
4
4
  export * from './Products';
5
+ export * from './Entitlements';
5
6
  export { AggregationMethods, CriterionOperators, } from '../../openapi-v2';
6
7
  export type { Aggregation, Criterion, Condition, CriterionValue, Pricing, PricingTiersInner as PricingTiers, } from '../../openapi-v2';
@@ -19,6 +19,7 @@ __exportStar(require("./Customers"), exports);
19
19
  __exportStar(require("./Events"), exports);
20
20
  __exportStar(require("./Invoices"), exports);
21
21
  __exportStar(require("./Products"), exports);
22
+ __exportStar(require("./Entitlements"), exports);
22
23
  var openapi_v2_1 = require("../../openapi-v2");
23
24
  Object.defineProperty(exports, "AggregationMethods", { enumerable: true, get: function () { return openapi_v2_1.AggregationMethods; } });
24
25
  Object.defineProperty(exports, "CriterionOperators", { enumerable: true, get: function () { return openapi_v2_1.CriterionOperators; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vayu-ts",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Simple and easy to use typescript package for utilizing vayu billing system",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",