vayu-ts 0.3.4 → 0.3.7

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 (172) hide show
  1. package/dist/openapi/apis/AuthApi.js +8 -4
  2. package/dist/openapi/apis/CatalogProductsApi.js +46 -23
  3. package/dist/openapi/apis/CloudUsageSubmissionApi.js +8 -4
  4. package/dist/openapi/apis/ContractsApi.js +48 -22
  5. package/dist/openapi/apis/CreditsApi.js +24 -12
  6. package/dist/openapi/apis/CustomFieldsApi.d.ts +89 -0
  7. package/dist/openapi/apis/CustomFieldsApi.js +377 -0
  8. package/dist/openapi/apis/CustomersApi.js +124 -52
  9. package/dist/openapi/apis/EventsApi.d.ts +116 -1
  10. package/dist/openapi/apis/EventsApi.js +605 -25
  11. package/dist/openapi/apis/InvoicesApi.js +26 -13
  12. package/dist/openapi/apis/MeasurementsApi.js +36 -18
  13. package/dist/openapi/apis/MetersApi.js +38 -19
  14. package/dist/openapi/apis/PlansApi.d.ts +56 -0
  15. package/dist/openapi/apis/PlansApi.js +225 -0
  16. package/dist/openapi/apis/ProductConsumptionsApi.js +12 -4
  17. package/dist/openapi/apis/WebhooksApi.js +12 -4
  18. package/dist/openapi/index.d.ts +1 -1
  19. package/dist/openapi/index.js +3 -1
  20. package/dist/openapi/models/BillingInterval.d.ts +18 -0
  21. package/dist/openapi/models/BillingInterval.js +22 -0
  22. package/dist/openapi/models/ConflictErrorResponse.d.ts +42 -0
  23. package/dist/openapi/models/ConflictErrorResponse.js +52 -0
  24. package/dist/openapi/models/Contact.js +1 -1
  25. package/dist/openapi/models/CreateContractRequest.d.ts +6 -0
  26. package/dist/openapi/models/CreateContractRequest.js +12 -0
  27. package/dist/openapi/models/CreateCustomFieldRequest.d.ts +71 -0
  28. package/dist/openapi/models/CreateCustomFieldRequest.js +90 -0
  29. package/dist/openapi/models/CreateCustomFieldResponse.d.ts +32 -0
  30. package/dist/openapi/models/CreateCustomFieldResponse.js +32 -0
  31. package/dist/openapi/models/CreateCustomFieldResponseCustomField.d.ts +74 -0
  32. package/dist/openapi/models/CreateCustomFieldResponseCustomField.js +108 -0
  33. package/dist/openapi/models/CreateCustomerRequest.d.ts +20 -0
  34. package/dist/openapi/models/CreateCustomerRequest.js +30 -0
  35. package/dist/openapi/models/CreateCustomerResponseCustomer.d.ts +20 -0
  36. package/dist/openapi/models/CreateCustomerResponseCustomer.js +30 -0
  37. package/dist/openapi/models/CustomFieldEntities.d.ts +20 -0
  38. package/dist/openapi/models/CustomFieldEntities.js +24 -0
  39. package/dist/openapi/models/CustomFieldValueTypes.d.ts +2 -1
  40. package/dist/openapi/models/CustomFieldValueTypes.js +1 -0
  41. package/dist/openapi/models/DeleteContractResponseContract.d.ts +6 -0
  42. package/dist/openapi/models/DeleteContractResponseContract.js +12 -0
  43. package/dist/openapi/models/DeleteCustomFieldResponse.d.ts +32 -0
  44. package/dist/openapi/models/DeleteCustomFieldResponse.js +32 -0
  45. package/dist/openapi/models/DeleteCustomFieldResponseCustomField.d.ts +75 -0
  46. package/dist/openapi/models/DeleteCustomFieldResponseCustomField.js +114 -0
  47. package/dist/openapi/models/DeleteCustomerResponseCustomer.d.ts +20 -0
  48. package/dist/openapi/models/DeleteCustomerResponseCustomer.js +30 -0
  49. package/dist/openapi/models/DeletePlanResponse.d.ts +32 -0
  50. package/dist/openapi/models/DeletePlanResponse.js +32 -0
  51. package/dist/openapi/models/DeletePlanResponsePlan.d.ts +42 -0
  52. package/dist/openapi/models/DeletePlanResponsePlan.js +68 -0
  53. package/dist/openapi/models/EventsDryRunResponseObjectMeterWithValuesInner.d.ts +1 -1
  54. package/dist/openapi/models/GetContractResponseContract.d.ts +6 -0
  55. package/dist/openapi/models/GetContractResponseContract.js +12 -0
  56. package/dist/openapi/models/GetCustomFieldResponse.d.ts +32 -0
  57. package/dist/openapi/models/GetCustomFieldResponse.js +32 -0
  58. package/dist/openapi/models/GetCustomerByNameResponseCustomer.d.ts +20 -0
  59. package/dist/openapi/models/GetCustomerByNameResponseCustomer.js +30 -0
  60. package/dist/openapi/models/GetPlanResponse.d.ts +32 -0
  61. package/dist/openapi/models/GetPlanResponse.js +32 -0
  62. package/dist/openapi/models/GetPlanResponsePlan.d.ts +41 -0
  63. package/dist/openapi/models/GetPlanResponsePlan.js +62 -0
  64. package/dist/openapi/models/InternalServerErrorResponse.d.ts +42 -0
  65. package/dist/openapi/models/InternalServerErrorResponse.js +52 -0
  66. package/dist/openapi/models/ListCustomFieldsResponse.d.ts +35 -0
  67. package/dist/openapi/models/ListCustomFieldsResponse.js +50 -0
  68. package/dist/openapi/models/ListPlansResponse.d.ts +35 -0
  69. package/dist/openapi/models/ListPlansResponse.js +50 -0
  70. package/dist/openapi/models/NotFoundErrorResponse.d.ts +42 -0
  71. package/dist/openapi/models/NotFoundErrorResponse.js +52 -0
  72. package/dist/openapi/models/NotificationEventType.d.ts +5 -1
  73. package/dist/openapi/models/NotificationEventType.js +4 -0
  74. package/dist/openapi/models/ObjectSerializer.d.ts +51 -0
  75. package/dist/openapi/models/ObjectSerializer.js +176 -0
  76. package/dist/openapi/models/PlanBillingData.d.ts +41 -0
  77. package/dist/openapi/models/PlanBillingData.js +59 -0
  78. package/dist/openapi/models/PlanDuration.d.ts +30 -0
  79. package/dist/openapi/models/PlanDuration.js +25 -0
  80. package/dist/openapi/models/PlanStatus.d.ts +19 -0
  81. package/dist/openapi/models/PlanStatus.js +23 -0
  82. package/dist/openapi/models/ProductGroupCommitment.d.ts +8 -0
  83. package/dist/openapi/models/ProductGroupCommitment.js +12 -1
  84. package/dist/openapi/models/ProductGroupProductsInnerCommitment.d.ts +8 -0
  85. package/dist/openapi/models/ProductGroupProductsInnerCommitment.js +12 -1
  86. package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.d.ts +4 -4
  87. package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.js +2 -2
  88. package/dist/openapi/models/ProductGroupProductsInnerCommitmentSchedulingDuration.d.ts +41 -0
  89. package/dist/openapi/models/ProductGroupProductsInnerCommitmentSchedulingDuration.js +48 -0
  90. package/dist/openapi/models/ProductGroupProductsInnerPricing.d.ts +3 -1
  91. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.d.ts +6 -0
  92. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.js +12 -0
  93. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.d.ts +2 -0
  94. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.js +6 -0
  95. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.d.ts +2 -0
  96. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.js +6 -0
  97. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf5.d.ts +42 -0
  98. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf5.js +48 -0
  99. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf6.d.ts +42 -0
  100. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf6.js +48 -0
  101. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOfDiscount.d.ts +53 -0
  102. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOfDiscount.js +58 -0
  103. package/dist/openapi/models/QueryEventsResponse.d.ts +3 -3
  104. package/dist/openapi/models/QueryEventsResponse.js +18 -0
  105. package/dist/openapi/models/RateLimitErrorResponse.d.ts +42 -0
  106. package/dist/openapi/models/RateLimitErrorResponse.js +52 -0
  107. package/dist/openapi/models/RequestTooLongErrorResponse.d.ts +42 -0
  108. package/dist/openapi/models/RequestTooLongErrorResponse.js +52 -0
  109. package/dist/openapi/models/UnauthorizedErrorResponse.d.ts +42 -0
  110. package/dist/openapi/models/UnauthorizedErrorResponse.js +52 -0
  111. package/dist/openapi/models/UnlimitedDuration.d.ts +14 -0
  112. package/dist/openapi/models/UnlimitedDuration.js +18 -0
  113. package/dist/openapi/models/UpdateCustomFieldRequest.d.ts +71 -0
  114. package/dist/openapi/models/UpdateCustomFieldRequest.js +90 -0
  115. package/dist/openapi/models/UpdateCustomFieldResponse.d.ts +32 -0
  116. package/dist/openapi/models/UpdateCustomFieldResponse.js +32 -0
  117. package/dist/openapi/models/UpdateCustomerRequest.d.ts +20 -0
  118. package/dist/openapi/models/UpdateCustomerRequest.js +30 -0
  119. package/dist/openapi/models/V2DeleteEventResponse.d.ts +32 -0
  120. package/dist/openapi/models/V2DeleteEventResponse.js +32 -0
  121. package/dist/openapi/models/V2DeleteEventsByRefsRequest.d.ts +31 -0
  122. package/dist/openapi/models/V2DeleteEventsByRefsRequest.js +32 -0
  123. package/dist/openapi/models/V2DeleteEventsByRefsResponse.d.ts +35 -0
  124. package/dist/openapi/models/V2DeleteEventsByRefsResponse.js +32 -0
  125. package/dist/openapi/models/V2EventsDryRunRequest.d.ts +32 -0
  126. package/dist/openapi/models/V2EventsDryRunRequest.js +32 -0
  127. package/dist/openapi/models/V2EventsDryRunResponse.d.ts +32 -0
  128. package/dist/openapi/models/V2EventsDryRunResponse.js +32 -0
  129. package/dist/openapi/models/V2GetEventResponse.d.ts +32 -0
  130. package/dist/openapi/models/V2GetEventResponse.js +32 -0
  131. package/dist/openapi/models/V2QueryEventsAggregationRequest.d.ts +45 -0
  132. package/dist/openapi/models/V2QueryEventsAggregationRequest.js +70 -0
  133. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInner.d.ts +39 -0
  134. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInner.js +62 -0
  135. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregation.d.ts +35 -0
  136. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregation.js +44 -0
  137. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregationFieldArithmetic.d.ts +38 -0
  138. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerAggregationFieldArithmetic.js +45 -0
  139. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInner.d.ts +43 -0
  140. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInner.js +54 -0
  141. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInnerValue.d.ts +30 -0
  142. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerFiltersInnerValue.js +25 -0
  143. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerSqlFullQuery.d.ts +34 -0
  144. package/dist/openapi/models/V2QueryEventsAggregationRequestMetersInnerSqlFullQuery.js +38 -0
  145. package/dist/openapi/models/V2QueryEventsAggregationRequestPeriod.d.ts +32 -0
  146. package/dist/openapi/models/V2QueryEventsAggregationRequestPeriod.js +38 -0
  147. package/dist/openapi/models/V2QueryEventsAggregationResponse.d.ts +42 -0
  148. package/dist/openapi/models/V2QueryEventsAggregationResponse.js +52 -0
  149. package/dist/openapi/models/V2QueryEventsAggregationResponseDataPointsInner.d.ts +34 -0
  150. package/dist/openapi/models/V2QueryEventsAggregationResponseDataPointsInner.js +38 -0
  151. package/dist/openapi/models/V2QueryEventsResponse.d.ts +35 -0
  152. package/dist/openapi/models/V2QueryEventsResponse.js +50 -0
  153. package/dist/openapi/models/V2SendEventsRequest.d.ts +32 -0
  154. package/dist/openapi/models/V2SendEventsRequest.js +32 -0
  155. package/dist/openapi/models/V2SendEventsResponse.d.ts +40 -0
  156. package/dist/openapi/models/V2SendEventsResponse.js +38 -0
  157. package/dist/openapi/models/ValidationErrorResponse.d.ts +51 -0
  158. package/dist/openapi/models/ValidationErrorResponse.js +60 -0
  159. package/dist/openapi/models/ValidationErrorResponseParamsInner.d.ts +38 -0
  160. package/dist/openapi/models/ValidationErrorResponseParamsInner.js +38 -0
  161. package/dist/openapi/models/WebhookSubscribeRequest.d.ts +1 -0
  162. package/dist/openapi/models/WebhookSubscribeRequest.js +6 -0
  163. package/dist/openapi/models/all.d.ts +51 -0
  164. package/dist/openapi/models/all.js +51 -0
  165. package/dist/openapi/types/ObservableAPI.d.ts +235 -2
  166. package/dist/openapi/types/ObservableAPI.js +476 -5
  167. package/dist/openapi/types/PromiseAPI.d.ts +231 -2
  168. package/dist/openapi/types/PromiseAPI.js +320 -18
  169. package/dist/sdk/clients/EventsClient.js +1 -1
  170. package/dist/sdk/clients/WebhooksClient.d.ts +2 -0
  171. package/dist/sdk/clients/WebhooksClient.js +14 -0
  172. package/package.json +1 -1
@@ -0,0 +1,58 @@
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.ProductGroupProductsInnerPricingOneOfDiscountTypeEnum = exports.ProductGroupProductsInnerPricingOneOfDiscount = void 0;
15
+ /**
16
+ * An optional discount to apply to this product
17
+ */
18
+ class ProductGroupProductsInnerPricingOneOfDiscount {
19
+ static getAttributeTypeMap() {
20
+ return ProductGroupProductsInnerPricingOneOfDiscount.attributeTypeMap;
21
+ }
22
+ constructor() {
23
+ }
24
+ }
25
+ exports.ProductGroupProductsInnerPricingOneOfDiscount = ProductGroupProductsInnerPricingOneOfDiscount;
26
+ ProductGroupProductsInnerPricingOneOfDiscount.discriminator = undefined;
27
+ ProductGroupProductsInnerPricingOneOfDiscount.mapping = undefined;
28
+ ProductGroupProductsInnerPricingOneOfDiscount.attributeTypeMap = [
29
+ {
30
+ "name": "name",
31
+ "baseName": "name",
32
+ "type": "string",
33
+ "format": ""
34
+ },
35
+ {
36
+ "name": "type",
37
+ "baseName": "type",
38
+ "type": "ProductGroupProductsInnerPricingOneOfDiscountTypeEnum",
39
+ "format": ""
40
+ },
41
+ {
42
+ "name": "amount",
43
+ "baseName": "amount",
44
+ "type": "number",
45
+ "format": ""
46
+ },
47
+ {
48
+ "name": "recurring",
49
+ "baseName": "recurring",
50
+ "type": "number",
51
+ "format": ""
52
+ }
53
+ ];
54
+ var ProductGroupProductsInnerPricingOneOfDiscountTypeEnum;
55
+ (function (ProductGroupProductsInnerPricingOneOfDiscountTypeEnum) {
56
+ ProductGroupProductsInnerPricingOneOfDiscountTypeEnum["Fixed"] = "FIXED";
57
+ ProductGroupProductsInnerPricingOneOfDiscountTypeEnum["Percentage"] = "PERCENTAGE";
58
+ })(ProductGroupProductsInnerPricingOneOfDiscountTypeEnum = exports.ProductGroupProductsInnerPricingOneOfDiscountTypeEnum || (exports.ProductGroupProductsInnerPricingOneOfDiscountTypeEnum = {}));
@@ -11,10 +11,10 @@
11
11
  */
12
12
  import { QueryEventsResponseEventsInner } from '../models/QueryEventsResponseEventsInner';
13
13
  export declare class QueryEventsResponse {
14
- /**
15
- * An array of events matching the query criteria
16
- */
17
14
  'events': Array<QueryEventsResponseEventsInner>;
15
+ 'total': number;
16
+ 'hasMore': boolean;
17
+ 'nextCursor'?: string;
18
18
  static readonly discriminator: string | undefined;
19
19
  static readonly mapping: {
20
20
  [index: string]: string;
@@ -28,5 +28,23 @@ QueryEventsResponse.attributeTypeMap = [
28
28
  "baseName": "events",
29
29
  "type": "Array<QueryEventsResponseEventsInner>",
30
30
  "format": ""
31
+ },
32
+ {
33
+ "name": "total",
34
+ "baseName": "total",
35
+ "type": "number",
36
+ "format": ""
37
+ },
38
+ {
39
+ "name": "hasMore",
40
+ "baseName": "hasMore",
41
+ "type": "boolean",
42
+ "format": ""
43
+ },
44
+ {
45
+ "name": "nextCursor",
46
+ "baseName": "nextCursor",
47
+ "type": "string",
48
+ "format": ""
31
49
  }
32
50
  ];
@@ -0,0 +1,42 @@
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 RateLimitErrorResponse {
13
+ 'type': RateLimitErrorResponseTypeEnum;
14
+ 'code': RateLimitErrorResponseCodeEnum;
15
+ /**
16
+ * Human-readable error explanation
17
+ */
18
+ 'message': string;
19
+ static readonly discriminator: string | undefined;
20
+ static readonly mapping: {
21
+ [index: string]: string;
22
+ } | undefined;
23
+ static readonly attributeTypeMap: Array<{
24
+ name: string;
25
+ baseName: string;
26
+ type: string;
27
+ format: string;
28
+ }>;
29
+ static getAttributeTypeMap(): {
30
+ name: string;
31
+ baseName: string;
32
+ type: string;
33
+ format: string;
34
+ }[];
35
+ constructor();
36
+ }
37
+ export declare enum RateLimitErrorResponseTypeEnum {
38
+ RateLimitError = "rate_limit_error"
39
+ }
40
+ export declare enum RateLimitErrorResponseCodeEnum {
41
+ RateLimitExceeded = "rate_limit_exceeded"
42
+ }
@@ -0,0 +1,52 @@
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.RateLimitErrorResponseCodeEnum = exports.RateLimitErrorResponseTypeEnum = exports.RateLimitErrorResponse = void 0;
15
+ class RateLimitErrorResponse {
16
+ static getAttributeTypeMap() {
17
+ return RateLimitErrorResponse.attributeTypeMap;
18
+ }
19
+ constructor() {
20
+ }
21
+ }
22
+ exports.RateLimitErrorResponse = RateLimitErrorResponse;
23
+ RateLimitErrorResponse.discriminator = undefined;
24
+ RateLimitErrorResponse.mapping = undefined;
25
+ RateLimitErrorResponse.attributeTypeMap = [
26
+ {
27
+ "name": "type",
28
+ "baseName": "type",
29
+ "type": "RateLimitErrorResponseTypeEnum",
30
+ "format": ""
31
+ },
32
+ {
33
+ "name": "code",
34
+ "baseName": "code",
35
+ "type": "RateLimitErrorResponseCodeEnum",
36
+ "format": ""
37
+ },
38
+ {
39
+ "name": "message",
40
+ "baseName": "message",
41
+ "type": "string",
42
+ "format": ""
43
+ }
44
+ ];
45
+ var RateLimitErrorResponseTypeEnum;
46
+ (function (RateLimitErrorResponseTypeEnum) {
47
+ RateLimitErrorResponseTypeEnum["RateLimitError"] = "rate_limit_error";
48
+ })(RateLimitErrorResponseTypeEnum = exports.RateLimitErrorResponseTypeEnum || (exports.RateLimitErrorResponseTypeEnum = {}));
49
+ var RateLimitErrorResponseCodeEnum;
50
+ (function (RateLimitErrorResponseCodeEnum) {
51
+ RateLimitErrorResponseCodeEnum["RateLimitExceeded"] = "rate_limit_exceeded";
52
+ })(RateLimitErrorResponseCodeEnum = exports.RateLimitErrorResponseCodeEnum || (exports.RateLimitErrorResponseCodeEnum = {}));
@@ -0,0 +1,42 @@
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 RequestTooLongErrorResponse {
13
+ 'type': RequestTooLongErrorResponseTypeEnum;
14
+ 'code': RequestTooLongErrorResponseCodeEnum;
15
+ /**
16
+ * Human-readable error explanation
17
+ */
18
+ 'message': string;
19
+ static readonly discriminator: string | undefined;
20
+ static readonly mapping: {
21
+ [index: string]: string;
22
+ } | undefined;
23
+ static readonly attributeTypeMap: Array<{
24
+ name: string;
25
+ baseName: string;
26
+ type: string;
27
+ format: string;
28
+ }>;
29
+ static getAttributeTypeMap(): {
30
+ name: string;
31
+ baseName: string;
32
+ type: string;
33
+ format: string;
34
+ }[];
35
+ constructor();
36
+ }
37
+ export declare enum RequestTooLongErrorResponseTypeEnum {
38
+ InvalidRequestError = "invalid_request_error"
39
+ }
40
+ export declare enum RequestTooLongErrorResponseCodeEnum {
41
+ RequestTooLarge = "request_too_large"
42
+ }
@@ -0,0 +1,52 @@
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.RequestTooLongErrorResponseCodeEnum = exports.RequestTooLongErrorResponseTypeEnum = exports.RequestTooLongErrorResponse = void 0;
15
+ class RequestTooLongErrorResponse {
16
+ static getAttributeTypeMap() {
17
+ return RequestTooLongErrorResponse.attributeTypeMap;
18
+ }
19
+ constructor() {
20
+ }
21
+ }
22
+ exports.RequestTooLongErrorResponse = RequestTooLongErrorResponse;
23
+ RequestTooLongErrorResponse.discriminator = undefined;
24
+ RequestTooLongErrorResponse.mapping = undefined;
25
+ RequestTooLongErrorResponse.attributeTypeMap = [
26
+ {
27
+ "name": "type",
28
+ "baseName": "type",
29
+ "type": "RequestTooLongErrorResponseTypeEnum",
30
+ "format": ""
31
+ },
32
+ {
33
+ "name": "code",
34
+ "baseName": "code",
35
+ "type": "RequestTooLongErrorResponseCodeEnum",
36
+ "format": ""
37
+ },
38
+ {
39
+ "name": "message",
40
+ "baseName": "message",
41
+ "type": "string",
42
+ "format": ""
43
+ }
44
+ ];
45
+ var RequestTooLongErrorResponseTypeEnum;
46
+ (function (RequestTooLongErrorResponseTypeEnum) {
47
+ RequestTooLongErrorResponseTypeEnum["InvalidRequestError"] = "invalid_request_error";
48
+ })(RequestTooLongErrorResponseTypeEnum = exports.RequestTooLongErrorResponseTypeEnum || (exports.RequestTooLongErrorResponseTypeEnum = {}));
49
+ var RequestTooLongErrorResponseCodeEnum;
50
+ (function (RequestTooLongErrorResponseCodeEnum) {
51
+ RequestTooLongErrorResponseCodeEnum["RequestTooLarge"] = "request_too_large";
52
+ })(RequestTooLongErrorResponseCodeEnum = exports.RequestTooLongErrorResponseCodeEnum || (exports.RequestTooLongErrorResponseCodeEnum = {}));
@@ -0,0 +1,42 @@
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 UnauthorizedErrorResponse {
13
+ 'type': UnauthorizedErrorResponseTypeEnum;
14
+ 'code': UnauthorizedErrorResponseCodeEnum;
15
+ /**
16
+ * Human-readable error explanation
17
+ */
18
+ 'message': string;
19
+ static readonly discriminator: string | undefined;
20
+ static readonly mapping: {
21
+ [index: string]: string;
22
+ } | undefined;
23
+ static readonly attributeTypeMap: Array<{
24
+ name: string;
25
+ baseName: string;
26
+ type: string;
27
+ format: string;
28
+ }>;
29
+ static getAttributeTypeMap(): {
30
+ name: string;
31
+ baseName: string;
32
+ type: string;
33
+ format: string;
34
+ }[];
35
+ constructor();
36
+ }
37
+ export declare enum UnauthorizedErrorResponseTypeEnum {
38
+ AuthenticationError = "authentication_error"
39
+ }
40
+ export declare enum UnauthorizedErrorResponseCodeEnum {
41
+ AuthenticationFailed = "authentication_failed"
42
+ }
@@ -0,0 +1,52 @@
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.UnauthorizedErrorResponseCodeEnum = exports.UnauthorizedErrorResponseTypeEnum = exports.UnauthorizedErrorResponse = void 0;
15
+ class UnauthorizedErrorResponse {
16
+ static getAttributeTypeMap() {
17
+ return UnauthorizedErrorResponse.attributeTypeMap;
18
+ }
19
+ constructor() {
20
+ }
21
+ }
22
+ exports.UnauthorizedErrorResponse = UnauthorizedErrorResponse;
23
+ UnauthorizedErrorResponse.discriminator = undefined;
24
+ UnauthorizedErrorResponse.mapping = undefined;
25
+ UnauthorizedErrorResponse.attributeTypeMap = [
26
+ {
27
+ "name": "type",
28
+ "baseName": "type",
29
+ "type": "UnauthorizedErrorResponseTypeEnum",
30
+ "format": ""
31
+ },
32
+ {
33
+ "name": "code",
34
+ "baseName": "code",
35
+ "type": "UnauthorizedErrorResponseCodeEnum",
36
+ "format": ""
37
+ },
38
+ {
39
+ "name": "message",
40
+ "baseName": "message",
41
+ "type": "string",
42
+ "format": ""
43
+ }
44
+ ];
45
+ var UnauthorizedErrorResponseTypeEnum;
46
+ (function (UnauthorizedErrorResponseTypeEnum) {
47
+ UnauthorizedErrorResponseTypeEnum["AuthenticationError"] = "authentication_error";
48
+ })(UnauthorizedErrorResponseTypeEnum = exports.UnauthorizedErrorResponseTypeEnum || (exports.UnauthorizedErrorResponseTypeEnum = {}));
49
+ var UnauthorizedErrorResponseCodeEnum;
50
+ (function (UnauthorizedErrorResponseCodeEnum) {
51
+ UnauthorizedErrorResponseCodeEnum["AuthenticationFailed"] = "authentication_failed";
52
+ })(UnauthorizedErrorResponseCodeEnum = exports.UnauthorizedErrorResponseCodeEnum || (exports.UnauthorizedErrorResponseCodeEnum = {}));
@@ -0,0 +1,14 @@
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
+ }
@@ -0,0 +1,18 @@
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 = {}));
@@ -0,0 +1,71 @@
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 { CustomFieldEntities } from '../models/CustomFieldEntities';
13
+ import { CustomFieldValueTypes } from '../models/CustomFieldValueTypes';
14
+ import { IntegrationEntityTypes } from '../models/IntegrationEntityTypes';
15
+ export declare class UpdateCustomFieldRequest {
16
+ 'vayuEntity'?: CustomFieldEntities;
17
+ /**
18
+ * The name of the custom field in Vayu
19
+ */
20
+ 'vayuCustomFieldName'?: string;
21
+ 'valueType'?: CustomFieldValueTypes;
22
+ /**
23
+ * The integration provider (e.g., \"Salesforce\", \"HubSpot\")
24
+ */
25
+ 'integrationSource'?: UpdateCustomFieldRequestIntegrationSourceEnum;
26
+ 'integrationEntityType'?: IntegrationEntityTypes;
27
+ /**
28
+ * The path to the field in the integration
29
+ */
30
+ 'fieldPath'?: string;
31
+ /**
32
+ * Allowed values for Enum type fields
33
+ */
34
+ 'allowedValues'?: Array<string>;
35
+ /**
36
+ * Default value for Enum type fields. Must be one of allowedValues.
37
+ */
38
+ 'defaultValue'?: string;
39
+ static readonly discriminator: string | undefined;
40
+ static readonly mapping: {
41
+ [index: string]: string;
42
+ } | undefined;
43
+ static readonly attributeTypeMap: Array<{
44
+ name: string;
45
+ baseName: string;
46
+ type: string;
47
+ format: string;
48
+ }>;
49
+ static getAttributeTypeMap(): {
50
+ name: string;
51
+ baseName: string;
52
+ type: string;
53
+ format: string;
54
+ }[];
55
+ constructor();
56
+ }
57
+ export declare enum UpdateCustomFieldRequestIntegrationSourceEnum {
58
+ NetSuite = "NetSuite",
59
+ QuickBooks = "QuickBooks",
60
+ Stripe = "Stripe",
61
+ Salesforce = "Salesforce",
62
+ Hubspot = "Hubspot",
63
+ Vayu = "Vayu",
64
+ Slack = "Slack",
65
+ S3 = "S3",
66
+ Morning = "Morning",
67
+ Snowflake = "Snowflake",
68
+ Anrok = "Anrok",
69
+ Connact = "Connact",
70
+ Xero = "Xero"
71
+ }
@@ -0,0 +1,90 @@
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.UpdateCustomFieldRequestIntegrationSourceEnum = exports.UpdateCustomFieldRequest = void 0;
15
+ class UpdateCustomFieldRequest {
16
+ static getAttributeTypeMap() {
17
+ return UpdateCustomFieldRequest.attributeTypeMap;
18
+ }
19
+ constructor() {
20
+ }
21
+ }
22
+ exports.UpdateCustomFieldRequest = UpdateCustomFieldRequest;
23
+ UpdateCustomFieldRequest.discriminator = undefined;
24
+ UpdateCustomFieldRequest.mapping = undefined;
25
+ UpdateCustomFieldRequest.attributeTypeMap = [
26
+ {
27
+ "name": "vayuEntity",
28
+ "baseName": "vayuEntity",
29
+ "type": "CustomFieldEntities",
30
+ "format": ""
31
+ },
32
+ {
33
+ "name": "vayuCustomFieldName",
34
+ "baseName": "vayuCustomFieldName",
35
+ "type": "string",
36
+ "format": ""
37
+ },
38
+ {
39
+ "name": "valueType",
40
+ "baseName": "valueType",
41
+ "type": "CustomFieldValueTypes",
42
+ "format": ""
43
+ },
44
+ {
45
+ "name": "integrationSource",
46
+ "baseName": "integrationSource",
47
+ "type": "UpdateCustomFieldRequestIntegrationSourceEnum",
48
+ "format": ""
49
+ },
50
+ {
51
+ "name": "integrationEntityType",
52
+ "baseName": "integrationEntityType",
53
+ "type": "IntegrationEntityTypes",
54
+ "format": ""
55
+ },
56
+ {
57
+ "name": "fieldPath",
58
+ "baseName": "fieldPath",
59
+ "type": "string",
60
+ "format": ""
61
+ },
62
+ {
63
+ "name": "allowedValues",
64
+ "baseName": "allowedValues",
65
+ "type": "Array<string>",
66
+ "format": ""
67
+ },
68
+ {
69
+ "name": "defaultValue",
70
+ "baseName": "defaultValue",
71
+ "type": "string",
72
+ "format": ""
73
+ }
74
+ ];
75
+ var UpdateCustomFieldRequestIntegrationSourceEnum;
76
+ (function (UpdateCustomFieldRequestIntegrationSourceEnum) {
77
+ UpdateCustomFieldRequestIntegrationSourceEnum["NetSuite"] = "NetSuite";
78
+ UpdateCustomFieldRequestIntegrationSourceEnum["QuickBooks"] = "QuickBooks";
79
+ UpdateCustomFieldRequestIntegrationSourceEnum["Stripe"] = "Stripe";
80
+ UpdateCustomFieldRequestIntegrationSourceEnum["Salesforce"] = "Salesforce";
81
+ UpdateCustomFieldRequestIntegrationSourceEnum["Hubspot"] = "Hubspot";
82
+ UpdateCustomFieldRequestIntegrationSourceEnum["Vayu"] = "Vayu";
83
+ UpdateCustomFieldRequestIntegrationSourceEnum["Slack"] = "Slack";
84
+ UpdateCustomFieldRequestIntegrationSourceEnum["S3"] = "S3";
85
+ UpdateCustomFieldRequestIntegrationSourceEnum["Morning"] = "Morning";
86
+ UpdateCustomFieldRequestIntegrationSourceEnum["Snowflake"] = "Snowflake";
87
+ UpdateCustomFieldRequestIntegrationSourceEnum["Anrok"] = "Anrok";
88
+ UpdateCustomFieldRequestIntegrationSourceEnum["Connact"] = "Connact";
89
+ UpdateCustomFieldRequestIntegrationSourceEnum["Xero"] = "Xero";
90
+ })(UpdateCustomFieldRequestIntegrationSourceEnum = exports.UpdateCustomFieldRequestIntegrationSourceEnum || (exports.UpdateCustomFieldRequestIntegrationSourceEnum = {}));
@@ -0,0 +1,32 @@
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 { CreateCustomFieldResponseCustomField } from '../models/CreateCustomFieldResponseCustomField';
13
+ export declare class UpdateCustomFieldResponse {
14
+ 'customField': CreateCustomFieldResponseCustomField;
15
+ static readonly discriminator: string | undefined;
16
+ static readonly mapping: {
17
+ [index: string]: string;
18
+ } | undefined;
19
+ static readonly attributeTypeMap: Array<{
20
+ name: string;
21
+ baseName: string;
22
+ type: string;
23
+ format: string;
24
+ }>;
25
+ static getAttributeTypeMap(): {
26
+ name: string;
27
+ baseName: string;
28
+ type: string;
29
+ format: string;
30
+ }[];
31
+ constructor();
32
+ }
@@ -0,0 +1,32 @@
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.UpdateCustomFieldResponse = void 0;
15
+ class UpdateCustomFieldResponse {
16
+ static getAttributeTypeMap() {
17
+ return UpdateCustomFieldResponse.attributeTypeMap;
18
+ }
19
+ constructor() {
20
+ }
21
+ }
22
+ exports.UpdateCustomFieldResponse = UpdateCustomFieldResponse;
23
+ UpdateCustomFieldResponse.discriminator = undefined;
24
+ UpdateCustomFieldResponse.mapping = undefined;
25
+ UpdateCustomFieldResponse.attributeTypeMap = [
26
+ {
27
+ "name": "customField",
28
+ "baseName": "customField",
29
+ "type": "CreateCustomFieldResponseCustomField",
30
+ "format": ""
31
+ }
32
+ ];
@@ -68,6 +68,26 @@ export declare class UpdateCustomerRequest {
68
68
  * The name of the subsidiary of the customer
69
69
  */
70
70
  'subsidiary'?: string | null;
71
+ /**
72
+ * Total outstanding amount across all unpaid invoices (in USD)
73
+ */
74
+ 'totalOutstandingAmount'?: number;
75
+ /**
76
+ * Total amount of invoices with no billing status set (in USD)
77
+ */
78
+ 'openAmount'?: number;
79
+ /**
80
+ * Total amount of overdue invoices (in USD)
81
+ */
82
+ 'overdueAmount'?: number;
83
+ /**
84
+ * Total amount of invoices pending payment (in USD)
85
+ */
86
+ 'pendingPaymentAmount'?: number;
87
+ /**
88
+ * Total amount of paid invoices (in USD)
89
+ */
90
+ 'paidAmount'?: number;
71
91
  static readonly discriminator: string | undefined;
72
92
  static readonly mapping: {
73
93
  [index: string]: string;