vayu-ts 0.2.13 → 0.2.15

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.
Files changed (82) hide show
  1. package/dist/openapi/apis/CustomersApi.d.ts +15 -0
  2. package/dist/openapi/apis/CustomersApi.js +64 -0
  3. package/dist/openapi/apis/MeasurementsApi.d.ts +72 -0
  4. package/dist/openapi/apis/{PlansApi.js → MeasurementsApi.js} +106 -39
  5. package/dist/openapi/index.d.ts +1 -1
  6. package/dist/openapi/index.js +2 -4
  7. package/dist/openapi/models/CreateMeasurementRequest.d.ts +44 -0
  8. package/dist/openapi/models/{NetSuiteExportSalesOrderRequest.js → CreateMeasurementRequest.js} +21 -15
  9. package/dist/openapi/models/{NetSuiteSyncInvoicesRequestDataEntity.d.ts → CreateMeasurementRequestUsageDate.d.ts} +7 -2
  10. package/dist/openapi/models/{NetSuiteSyncInvoicesResponse.js → CreateMeasurementRequestUsageDate.js} +22 -13
  11. package/dist/openapi/models/{GetPlanResponse.d.ts → CreateMeasurementResponse.d.ts} +3 -3
  12. package/dist/openapi/models/{DeletePlanResponse.js → CreateMeasurementResponse.js} +10 -10
  13. package/dist/openapi/models/{GetPlanResponsePlan.d.ts → CreateMeasurementResponseMeasurement.d.ts} +13 -7
  14. package/dist/openapi/models/{DeletePlanResponsePlan.js → CreateMeasurementResponseMeasurement.js} +21 -21
  15. package/dist/openapi/models/CreditLedgerEntry.d.ts +5 -1
  16. package/dist/openapi/models/CreditLedgerEntry.js +27 -3
  17. package/dist/openapi/models/DeleteMeasurementResponse.d.ts +32 -0
  18. package/dist/openapi/models/{NetSuiteSyncInvoicesRequestDataEntity.js → DeleteMeasurementResponse.js} +10 -10
  19. package/dist/openapi/models/{DeletePlanResponsePlan.d.ts → DeleteMeasurementResponseMeasurement.d.ts} +13 -7
  20. package/dist/openapi/models/{GetPlanResponsePlan.js → DeleteMeasurementResponseMeasurement.js} +27 -15
  21. package/dist/openapi/models/{NetSuiteExportSalesOrderRequest.d.ts → GetCustomerProductsConsumptionsByAliasResponse.d.ts} +3 -4
  22. package/dist/openapi/models/{NetSuiteSyncInvoicesRequestDataItem.js → GetCustomerProductsConsumptionsByAliasResponse.js} +10 -10
  23. package/dist/openapi/models/{DeletePlanResponse.d.ts → GetMeasurementResponse.d.ts} +3 -3
  24. package/dist/openapi/models/{GetPlanResponse.js → GetMeasurementResponse.js} +10 -10
  25. package/dist/openapi/models/{ListPlansResponse.d.ts → ListMeasurementsResponse.d.ts} +3 -3
  26. package/dist/openapi/models/{ListPlansResponse.js → ListMeasurementsResponse.js} +10 -10
  27. package/dist/openapi/models/NotificationEventType.d.ts +4 -0
  28. package/dist/openapi/models/NotificationEventType.js +4 -0
  29. package/dist/openapi/models/ObjectSerializer.d.ts +9 -22
  30. package/dist/openapi/models/ObjectSerializer.js +27 -61
  31. package/dist/openapi/models/all.d.ts +9 -22
  32. package/dist/openapi/models/all.js +9 -22
  33. package/dist/openapi/types/ObservableAPI.d.ts +75 -117
  34. package/dist/openapi/types/ObservableAPI.js +142 -220
  35. package/dist/openapi/types/PromiseAPI.d.ts +73 -111
  36. package/dist/openapi/types/PromiseAPI.js +104 -156
  37. package/dist/sdk/clients/CustomersClient.d.ts +1 -0
  38. package/dist/sdk/clients/CustomersClient.js +3 -0
  39. package/dist/sdk/clients/index.d.ts +0 -1
  40. package/dist/sdk/clients/index.js +0 -1
  41. package/dist/sdk/index.d.ts +1 -2
  42. package/dist/sdk/index.js +0 -3
  43. package/dist/sdk/types/index.d.ts +0 -1
  44. package/dist/sdk/types/index.js +0 -1
  45. package/package.json +1 -1
  46. package/dist/openapi/apis/IntegrationsApi.d.ts +0 -41
  47. package/dist/openapi/apis/IntegrationsApi.js +0 -151
  48. package/dist/openapi/apis/PlansApi.d.ts +0 -56
  49. package/dist/openapi/apis/ReportsApi.d.ts +0 -41
  50. package/dist/openapi/apis/ReportsApi.js +0 -147
  51. package/dist/openapi/models/BillingInterval.d.ts +0 -18
  52. package/dist/openapi/models/BillingInterval.js +0 -22
  53. package/dist/openapi/models/ContractStatus.d.ts +0 -19
  54. package/dist/openapi/models/ContractStatus.js +0 -23
  55. package/dist/openapi/models/Currency.d.ts +0 -17
  56. package/dist/openapi/models/Currency.js +0 -21
  57. package/dist/openapi/models/GetCommitmentReportResponse.d.ts +0 -49
  58. package/dist/openapi/models/GetCommitmentReportResponse.js +0 -128
  59. package/dist/openapi/models/GetProductsUsageReportResponse.d.ts +0 -49
  60. package/dist/openapi/models/GetProductsUsageReportResponse.js +0 -128
  61. package/dist/openapi/models/NetSuiteSyncInvoicesRequest.d.ts +0 -37
  62. package/dist/openapi/models/NetSuiteSyncInvoicesRequest.js +0 -48
  63. package/dist/openapi/models/NetSuiteSyncInvoicesRequestData.d.ts +0 -42
  64. package/dist/openapi/models/NetSuiteSyncInvoicesRequestData.js +0 -86
  65. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItem.d.ts +0 -32
  66. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItemItemsInner.d.ts +0 -36
  67. package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItemItemsInner.js +0 -56
  68. package/dist/openapi/models/NetSuiteSyncInvoicesResponse.d.ts +0 -32
  69. package/dist/openapi/models/PaymentTerm.d.ts +0 -18
  70. package/dist/openapi/models/PaymentTerm.js +0 -22
  71. package/dist/openapi/models/PlanBillingData.d.ts +0 -41
  72. package/dist/openapi/models/PlanBillingData.js +0 -59
  73. package/dist/openapi/models/PlanDuration.d.ts +0 -30
  74. package/dist/openapi/models/PlanDuration.js +0 -25
  75. package/dist/openapi/models/PlanStatus.d.ts +0 -19
  76. package/dist/openapi/models/PlanStatus.js +0 -23
  77. package/dist/openapi/models/UnlimitedDuration.d.ts +0 -14
  78. package/dist/openapi/models/UnlimitedDuration.js +0 -18
  79. package/dist/sdk/clients/PlansClient.d.ts +0 -8
  80. package/dist/sdk/clients/PlansClient.js +0 -22
  81. package/dist/sdk/types/Plans.d.ts +0 -1
  82. package/dist/sdk/types/Plans.js +0 -2
@@ -1,18 +0,0 @@
1
- /**
2
- * Vayu API
3
- * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
4
- *
5
- * OpenAPI spec version: 1.0.0
6
- * Contact: dev@withvayu.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- * flag to indicate if the payment is postpayment or prepayment
14
- */
15
- export declare enum PaymentTerm {
16
- Prepayment = "Prepayment",
17
- Postpayment = "Postpayment"
18
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- /**
3
- * Vayu API
4
- * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
5
- *
6
- * OpenAPI spec version: 1.0.0
7
- * Contact: dev@withvayu.com
8
- *
9
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
- * https://openapi-generator.tech
11
- * Do not edit the class manually.
12
- */
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.PaymentTerm = void 0;
15
- /**
16
- * flag to indicate if the payment is postpayment or prepayment
17
- */
18
- var PaymentTerm;
19
- (function (PaymentTerm) {
20
- PaymentTerm["Prepayment"] = "Prepayment";
21
- PaymentTerm["Postpayment"] = "Postpayment";
22
- })(PaymentTerm = exports.PaymentTerm || (exports.PaymentTerm = {}));
@@ -1,41 +0,0 @@
1
- /**
2
- * Vayu API
3
- * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
4
- *
5
- * OpenAPI spec version: 1.0.0
6
- * Contact: dev@withvayu.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { BillingInterval } from '../models/BillingInterval';
13
- import { PaymentTerm } from '../models/PaymentTerm';
14
- import { PlanDuration } from '../models/PlanDuration';
15
- /**
16
- * The billing data of the plan. The billing data contains the billing interval, the plan duration the payment terms and auto renewal, and the billing method.
17
- */
18
- export declare class PlanBillingData {
19
- 'billingInterval': BillingInterval;
20
- 'duration': PlanDuration;
21
- 'paymentTerm': PaymentTerm;
22
- 'autoRenewal': boolean;
23
- 'proRated': boolean;
24
- static readonly discriminator: string | undefined;
25
- static readonly mapping: {
26
- [index: string]: string;
27
- } | undefined;
28
- static readonly attributeTypeMap: Array<{
29
- name: string;
30
- baseName: string;
31
- type: string;
32
- format: string;
33
- }>;
34
- static getAttributeTypeMap(): {
35
- name: string;
36
- baseName: string;
37
- type: string;
38
- format: string;
39
- }[];
40
- constructor();
41
- }
@@ -1,59 +0,0 @@
1
- "use strict";
2
- /**
3
- * Vayu API
4
- * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
5
- *
6
- * OpenAPI spec version: 1.0.0
7
- * Contact: dev@withvayu.com
8
- *
9
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
- * https://openapi-generator.tech
11
- * Do not edit the class manually.
12
- */
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.PlanBillingData = void 0;
15
- /**
16
- * The billing data of the plan. The billing data contains the billing interval, the plan duration the payment terms and auto renewal, and the billing method.
17
- */
18
- class PlanBillingData {
19
- static getAttributeTypeMap() {
20
- return PlanBillingData.attributeTypeMap;
21
- }
22
- constructor() {
23
- }
24
- }
25
- exports.PlanBillingData = PlanBillingData;
26
- PlanBillingData.discriminator = undefined;
27
- PlanBillingData.mapping = undefined;
28
- PlanBillingData.attributeTypeMap = [
29
- {
30
- "name": "billingInterval",
31
- "baseName": "billingInterval",
32
- "type": "BillingInterval",
33
- "format": ""
34
- },
35
- {
36
- "name": "duration",
37
- "baseName": "duration",
38
- "type": "PlanDuration",
39
- "format": ""
40
- },
41
- {
42
- "name": "paymentTerm",
43
- "baseName": "paymentTerm",
44
- "type": "PaymentTerm",
45
- "format": ""
46
- },
47
- {
48
- "name": "autoRenewal",
49
- "baseName": "autoRenewal",
50
- "type": "boolean",
51
- "format": ""
52
- },
53
- {
54
- "name": "proRated",
55
- "baseName": "proRated",
56
- "type": "boolean",
57
- "format": ""
58
- }
59
- ];
@@ -1,30 +0,0 @@
1
- /**
2
- * Vayu API
3
- * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
4
- *
5
- * OpenAPI spec version: 1.0.0
6
- * Contact: dev@withvayu.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- export declare class PlanDuration {
13
- static readonly discriminator: string | undefined;
14
- static readonly mapping: {
15
- [index: string]: string;
16
- } | undefined;
17
- static readonly attributeTypeMap: Array<{
18
- name: string;
19
- baseName: string;
20
- type: string;
21
- format: string;
22
- }>;
23
- static getAttributeTypeMap(): {
24
- name: string;
25
- baseName: string;
26
- type: string;
27
- format: string;
28
- }[];
29
- constructor();
30
- }
@@ -1,25 +0,0 @@
1
- "use strict";
2
- /**
3
- * Vayu API
4
- * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
5
- *
6
- * OpenAPI spec version: 1.0.0
7
- * Contact: dev@withvayu.com
8
- *
9
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
- * https://openapi-generator.tech
11
- * Do not edit the class manually.
12
- */
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.PlanDuration = void 0;
15
- class PlanDuration {
16
- static getAttributeTypeMap() {
17
- return PlanDuration.attributeTypeMap;
18
- }
19
- constructor() {
20
- }
21
- }
22
- exports.PlanDuration = PlanDuration;
23
- PlanDuration.discriminator = undefined;
24
- PlanDuration.mapping = undefined;
25
- PlanDuration.attributeTypeMap = [];
@@ -1,19 +0,0 @@
1
- /**
2
- * Vayu API
3
- * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
4
- *
5
- * OpenAPI spec version: 1.0.0
6
- * Contact: dev@withvayu.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- * The status of the plan. plan statuses are active, inactive
14
- */
15
- export declare enum PlanStatus {
16
- Active = "Active",
17
- Inactive = "Inactive",
18
- Error = "Error"
19
- }
@@ -1,23 +0,0 @@
1
- "use strict";
2
- /**
3
- * Vayu API
4
- * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
5
- *
6
- * OpenAPI spec version: 1.0.0
7
- * Contact: dev@withvayu.com
8
- *
9
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
- * https://openapi-generator.tech
11
- * Do not edit the class manually.
12
- */
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.PlanStatus = void 0;
15
- /**
16
- * The status of the plan. plan statuses are active, inactive
17
- */
18
- var PlanStatus;
19
- (function (PlanStatus) {
20
- PlanStatus["Active"] = "Active";
21
- PlanStatus["Inactive"] = "Inactive";
22
- PlanStatus["Error"] = "Error";
23
- })(PlanStatus = exports.PlanStatus || (exports.PlanStatus = {}));
@@ -1,14 +0,0 @@
1
- /**
2
- * Vayu API
3
- * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
4
- *
5
- * OpenAPI spec version: 1.0.0
6
- * Contact: dev@withvayu.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- export declare enum UnlimitedDuration {
13
- NUMBER_MINUS_1 = -1
14
- }
@@ -1,18 +0,0 @@
1
- "use strict";
2
- /**
3
- * Vayu API
4
- * The Vayu API is a RESTful API that allows you to submit events for processing and storage & manage billing related entities. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
5
- *
6
- * OpenAPI spec version: 1.0.0
7
- * Contact: dev@withvayu.com
8
- *
9
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
- * https://openapi-generator.tech
11
- * Do not edit the class manually.
12
- */
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.UnlimitedDuration = void 0;
15
- var UnlimitedDuration;
16
- (function (UnlimitedDuration) {
17
- UnlimitedDuration[UnlimitedDuration["NUMBER_MINUS_1"] = -1] = "NUMBER_MINUS_1";
18
- })(UnlimitedDuration = exports.UnlimitedDuration || (exports.UnlimitedDuration = {}));
@@ -1,8 +0,0 @@
1
- import type { PaginationOptions } from '../types';
2
- export declare class PlansClient {
3
- private client;
4
- constructor();
5
- list(pagination?: PaginationOptions): Promise<import("../types").ListPlansResponse>;
6
- get(id: string): Promise<import("../types").GetPlanResponse>;
7
- delete(id: string): Promise<import("../types").DeletePlanResponse>;
8
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PlansClient = void 0;
4
- const openapi_1 = require("../../openapi");
5
- const services_1 = require("../services");
6
- class PlansClient {
7
- constructor() {
8
- this.client = services_1.ConfigurationService.instance.generateNewClient(openapi_1.PlansApi);
9
- }
10
- async list(pagination) {
11
- const cursor = pagination?.cursor;
12
- const limit = pagination?.limit;
13
- return this.client.listPlans(limit, cursor);
14
- }
15
- async get(id) {
16
- return this.client.getPlan(id);
17
- }
18
- async delete(id) {
19
- return this.client.deletePlan(id);
20
- }
21
- }
22
- exports.PlansClient = PlansClient;
@@ -1 +0,0 @@
1
- export type { GetPlanResponsePlan as Plan, ListPlansResponse, GetPlanResponse, DeletePlanResponse, } from '../../openapi';
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });