vayu-ts 0.2.14 → 0.3.4

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 (217) hide show
  1. package/dist/example/index.d.ts +1 -0
  2. package/dist/example/index.js +74 -0
  3. package/dist/openapi/apis/CatalogProductsApi.d.ts +89 -0
  4. package/dist/openapi/apis/CatalogProductsApi.js +354 -0
  5. package/dist/openapi/apis/CloudUsageSubmissionApi.d.ts +25 -0
  6. package/dist/openapi/apis/CloudUsageSubmissionApi.js +85 -0
  7. package/dist/openapi/apis/ContractsApi.d.ts +21 -3
  8. package/dist/openapi/apis/ContractsApi.js +75 -3
  9. package/dist/openapi/apis/CustomersApi.d.ts +63 -0
  10. package/dist/openapi/apis/CustomersApi.js +257 -7
  11. package/dist/openapi/apis/EventsApi.d.ts +16 -0
  12. package/dist/openapi/apis/EventsApi.js +67 -12
  13. package/dist/openapi/apis/InvoicesApi.d.ts +19 -3
  14. package/dist/openapi/apis/InvoicesApi.js +69 -3
  15. package/dist/openapi/apis/ProductConsumptionsApi.js +0 -3
  16. package/dist/openapi/apis/WebhooksApi.js +0 -3
  17. package/dist/openapi/http/http.d.ts +6 -18
  18. package/dist/openapi/http/http.js +25 -13
  19. package/dist/openapi/http/isomorphic-fetch.d.ts +1 -0
  20. package/dist/openapi/http/isomorphic-fetch.js +4 -7
  21. package/dist/openapi/index.d.ts +1 -1
  22. package/dist/openapi/index.js +3 -1
  23. package/dist/openapi/models/Address.d.ts +5 -5
  24. package/dist/openapi/models/CloudUsageResult.d.ts +83 -0
  25. package/dist/openapi/models/CloudUsageResult.js +103 -0
  26. package/dist/openapi/models/Contact.d.ts +3 -1
  27. package/dist/openapi/models/Contact.js +12 -0
  28. package/dist/openapi/models/ContractStatus.d.ts +23 -0
  29. package/dist/openapi/models/ContractStatus.js +27 -0
  30. package/dist/openapi/models/CreateCatalogProductRequest.d.ts +42 -0
  31. package/dist/openapi/models/CreateCatalogProductRequest.js +44 -0
  32. package/dist/openapi/models/CreateCatalogProductResponse.d.ts +32 -0
  33. package/dist/openapi/models/CreateCatalogProductResponse.js +32 -0
  34. package/dist/openapi/models/CreateCatalogProductResponseCatalogProduct.d.ts +45 -0
  35. package/dist/openapi/models/CreateCatalogProductResponseCatalogProduct.js +62 -0
  36. package/dist/openapi/models/CreateContractRequest.d.ts +47 -5
  37. package/dist/openapi/models/CreateContractRequest.js +65 -5
  38. package/dist/openapi/models/CreateCustomerRelationRequest.d.ts +38 -0
  39. package/dist/openapi/models/CreateCustomerRelationRequest.js +38 -0
  40. package/dist/openapi/models/CreateCustomerRelationResponse.d.ts +32 -0
  41. package/dist/openapi/models/CreateCustomerRelationResponse.js +32 -0
  42. package/dist/openapi/models/CreateCustomerRelationResponseCustomerRelation.d.ts +41 -0
  43. package/dist/openapi/models/CreateCustomerRelationResponseCustomerRelation.js +56 -0
  44. package/dist/openapi/models/CreateCustomerRequest.d.ts +50 -2
  45. package/dist/openapi/models/CreateCustomerRequest.js +82 -6
  46. package/dist/openapi/models/CreateCustomerResponseCustomer.d.ts +50 -2
  47. package/dist/openapi/models/CreateCustomerResponseCustomer.js +82 -6
  48. package/dist/openapi/models/CreditLedgerEntry.d.ts +3 -1
  49. package/dist/openapi/models/CreditLedgerEntry.js +8 -2
  50. package/dist/openapi/models/Currency.d.ts +24 -0
  51. package/dist/openapi/models/Currency.js +28 -0
  52. package/dist/openapi/models/CustomField.d.ts +65 -0
  53. package/dist/openapi/models/CustomField.js +78 -0
  54. package/dist/openapi/models/CustomFieldValue.d.ts +33 -0
  55. package/dist/openapi/models/CustomFieldValue.js +44 -0
  56. package/dist/openapi/models/CustomFieldValueTypes.d.ts +19 -0
  57. package/dist/openapi/models/CustomFieldValueTypes.js +23 -0
  58. package/dist/openapi/models/CustomerCloudProviderSettings.d.ts +39 -0
  59. package/dist/openapi/models/CustomerCloudProviderSettings.js +51 -0
  60. package/dist/openapi/models/CustomerSource.d.ts +21 -0
  61. package/dist/openapi/models/CustomerSource.js +25 -0
  62. package/dist/openapi/models/DeleteCatalogProductResponse.d.ts +32 -0
  63. package/dist/openapi/models/DeleteCatalogProductResponse.js +32 -0
  64. package/dist/openapi/models/DeleteCatalogProductResponseCatalogProduct.d.ts +46 -0
  65. package/dist/openapi/models/DeleteCatalogProductResponseCatalogProduct.js +68 -0
  66. package/dist/openapi/models/DeleteContractResponseContract.d.ts +47 -5
  67. package/dist/openapi/models/DeleteContractResponseContract.js +65 -5
  68. package/dist/openapi/models/DeleteCustomerResponseCustomer.d.ts +50 -2
  69. package/dist/openapi/models/DeleteCustomerResponseCustomer.js +82 -6
  70. package/dist/openapi/models/DeleteEventsByRefsRequest.d.ts +31 -0
  71. package/dist/openapi/models/DeleteEventsByRefsRequest.js +32 -0
  72. package/dist/openapi/models/DeleteEventsByRefsResponse.d.ts +35 -0
  73. package/dist/openapi/models/DeleteEventsByRefsResponse.js +32 -0
  74. package/dist/openapi/models/DeleteEventsByRefsResponseEventsInner.d.ts +56 -0
  75. package/dist/openapi/models/DeleteEventsByRefsResponseEventsInner.js +80 -0
  76. package/dist/openapi/models/ExternalOverageStrategy.d.ts +20 -0
  77. package/dist/openapi/models/ExternalOverageStrategy.js +24 -0
  78. package/dist/openapi/models/GetCatalogProductResponse.d.ts +32 -0
  79. package/dist/openapi/models/GetCatalogProductResponse.js +32 -0
  80. package/dist/openapi/models/GetContractByIntegrationIdResponse.d.ts +32 -0
  81. package/dist/openapi/models/GetContractByIntegrationIdResponse.js +32 -0
  82. package/dist/openapi/models/GetContractResponseContract.d.ts +47 -5
  83. package/dist/openapi/models/GetContractResponseContract.js +65 -5
  84. package/dist/openapi/models/GetCustomerByIntegrationIdResponse.d.ts +32 -0
  85. package/dist/openapi/models/GetCustomerByIntegrationIdResponse.js +32 -0
  86. package/dist/openapi/models/GetCustomerByNameResponse.d.ts +32 -0
  87. package/dist/openapi/models/GetCustomerByNameResponse.js +32 -0
  88. package/dist/openapi/models/GetCustomerByNameResponseCustomer.d.ts +103 -0
  89. package/dist/openapi/models/GetCustomerByNameResponseCustomer.js +153 -0
  90. package/dist/openapi/models/GetCustomerRelationResponse.d.ts +32 -0
  91. package/dist/openapi/models/GetCustomerRelationResponse.js +32 -0
  92. package/dist/openapi/models/GetInvoiceResponseInvoice.d.ts +14 -0
  93. package/dist/openapi/models/GetInvoiceResponseInvoice.js +30 -0
  94. package/dist/openapi/models/GetInvoiceResponseInvoiceRevenueBreakdown.d.ts +39 -0
  95. package/dist/openapi/models/GetInvoiceResponseInvoiceRevenueBreakdown.js +65 -0
  96. package/dist/openapi/models/IntegrationEntity.d.ts +42 -0
  97. package/dist/openapi/models/IntegrationEntity.js +62 -0
  98. package/dist/openapi/models/IntegrationEntityTypes.d.ts +23 -0
  99. package/dist/openapi/models/IntegrationEntityTypes.js +27 -0
  100. package/dist/openapi/models/IntegrationProviders.d.ts +26 -0
  101. package/dist/openapi/models/IntegrationProviders.js +30 -0
  102. package/dist/openapi/models/IntegrationType.d.ts +26 -0
  103. package/dist/openapi/models/IntegrationType.js +30 -0
  104. package/dist/openapi/models/InvoiceBillingStatus.d.ts +21 -0
  105. package/dist/openapi/models/InvoiceBillingStatus.js +25 -0
  106. package/dist/openapi/models/InvoicePaymentStatusResponse.d.ts +39 -0
  107. package/dist/openapi/models/InvoicePaymentStatusResponse.js +74 -0
  108. package/dist/openapi/models/ListCatalogProductsResponse.d.ts +35 -0
  109. package/dist/openapi/models/ListCatalogProductsResponse.js +50 -0
  110. package/dist/openapi/models/NotificationEventType.d.ts +3 -1
  111. package/dist/openapi/models/NotificationEventType.js +2 -0
  112. package/dist/openapi/models/ObjectSerializer.d.ts +61 -0
  113. package/dist/openapi/models/ObjectSerializer.js +191 -0
  114. package/dist/openapi/models/PartnerSubmissionDetail.d.ts +46 -0
  115. package/dist/openapi/models/PartnerSubmissionDetail.js +49 -0
  116. package/dist/openapi/models/PaymentInfo.d.ts +45 -0
  117. package/dist/openapi/models/PaymentInfo.js +89 -0
  118. package/dist/openapi/models/PaymentInfoDepositTo.d.ts +32 -0
  119. package/dist/openapi/models/PaymentInfoDepositTo.js +38 -0
  120. package/dist/openapi/models/PaymentTerm.d.ts +18 -0
  121. package/dist/openapi/models/PaymentTerm.js +22 -0
  122. package/dist/openapi/models/ProductCloudProviderSettings.d.ts +39 -0
  123. package/dist/openapi/models/ProductCloudProviderSettings.js +51 -0
  124. package/dist/openapi/models/ProductGroup.d.ts +65 -0
  125. package/dist/openapi/models/ProductGroup.js +80 -0
  126. package/dist/openapi/models/ProductGroupCommitment.d.ts +45 -0
  127. package/dist/openapi/models/ProductGroupCommitment.js +53 -0
  128. package/dist/openapi/models/ProductGroupProductsInner.d.ts +68 -0
  129. package/dist/openapi/models/ProductGroupProductsInner.js +98 -0
  130. package/dist/openapi/models/ProductGroupProductsInnerCommitment.d.ts +45 -0
  131. package/dist/openapi/models/ProductGroupProductsInnerCommitment.js +53 -0
  132. package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.d.ts +39 -0
  133. package/dist/openapi/models/ProductGroupProductsInnerCommitmentScheduling.js +41 -0
  134. package/dist/openapi/models/ProductGroupProductsInnerPricing.d.ts +36 -0
  135. package/dist/openapi/models/ProductGroupProductsInnerPricing.js +24 -0
  136. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.d.ts +35 -0
  137. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf.js +42 -0
  138. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.d.ts +37 -0
  139. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1.js +48 -0
  140. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1InstallmentsInner.d.ts +32 -0
  141. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf1InstallmentsInner.js +38 -0
  142. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.d.ts +37 -0
  143. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2.js +48 -0
  144. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2SubscriptionCadence.d.ts +38 -0
  145. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf2SubscriptionCadence.js +45 -0
  146. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3.d.ts +46 -0
  147. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3.js +78 -0
  148. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3SubscriptionCadence.d.ts +38 -0
  149. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3SubscriptionCadence.js +45 -0
  150. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3TiersInner.d.ts +35 -0
  151. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf3TiersInner.js +56 -0
  152. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf4.d.ts +41 -0
  153. package/dist/openapi/models/ProductGroupProductsInnerPricingOneOf4.js +60 -0
  154. package/dist/openapi/models/ProductGroupProductsInnerScheduling.d.ts +39 -0
  155. package/dist/openapi/models/ProductGroupProductsInnerScheduling.js +41 -0
  156. package/dist/openapi/models/ProductGroupProductsInnerSchedulingDuration.d.ts +41 -0
  157. package/dist/openapi/models/ProductGroupProductsInnerSchedulingDuration.js +48 -0
  158. package/dist/openapi/models/SubmitCloudUsageRequest.d.ts +39 -0
  159. package/dist/openapi/models/SubmitCloudUsageRequest.js +38 -0
  160. package/dist/openapi/models/SyncStatus.d.ts +16 -0
  161. package/dist/openapi/models/SyncStatus.js +20 -0
  162. package/dist/openapi/models/UpdateCatalogProductRequest.d.ts +42 -0
  163. package/dist/openapi/models/UpdateCatalogProductRequest.js +44 -0
  164. package/dist/openapi/models/UpdateCatalogProductResponse.d.ts +32 -0
  165. package/dist/openapi/models/UpdateCatalogProductResponse.js +32 -0
  166. package/dist/openapi/models/UpdateCustomerRequest.d.ts +50 -2
  167. package/dist/openapi/models/UpdateCustomerRequest.js +82 -6
  168. package/dist/openapi/models/UsageWindow.d.ts +41 -0
  169. package/dist/openapi/models/UsageWindow.js +41 -0
  170. package/dist/openapi/models/all.d.ts +61 -0
  171. package/dist/openapi/models/all.js +61 -0
  172. package/dist/openapi/types/ObservableAPI.d.ts +212 -12
  173. package/dist/openapi/types/ObservableAPI.js +424 -17
  174. package/dist/openapi/types/PromiseAPI.d.ts +208 -12
  175. package/dist/openapi/types/PromiseAPI.js +294 -34
  176. package/dist/sdk/clients/CatalogProductsClient.d.ts +11 -0
  177. package/dist/sdk/clients/CatalogProductsClient.js +28 -0
  178. package/dist/sdk/clients/CloudUsageSubmissionClient.d.ts +6 -0
  179. package/dist/sdk/clients/CloudUsageSubmissionClient.js +14 -0
  180. package/dist/sdk/clients/ContractsClient.d.ts +2 -1
  181. package/dist/sdk/clients/ContractsClient.js +3 -0
  182. package/dist/sdk/clients/CreditsClient.d.ts +9 -0
  183. package/dist/sdk/clients/CreditsClient.js +22 -0
  184. package/dist/sdk/clients/CustomersClient.d.ts +6 -1
  185. package/dist/sdk/clients/CustomersClient.js +15 -0
  186. package/dist/sdk/clients/EventsClient.d.ts +2 -1
  187. package/dist/sdk/clients/EventsClient.js +3 -0
  188. package/dist/sdk/clients/InvoicesClient.d.ts +1 -0
  189. package/dist/sdk/clients/InvoicesClient.js +3 -0
  190. package/dist/sdk/clients/MeasurementsClient.d.ts +10 -0
  191. package/dist/sdk/clients/MeasurementsClient.js +25 -0
  192. package/dist/sdk/clients/index.d.ts +4 -0
  193. package/dist/sdk/clients/index.js +4 -0
  194. package/dist/sdk/index.d.ts +6 -1
  195. package/dist/sdk/index.js +13 -0
  196. package/dist/sdk/services/authenticated-http-library.d.ts +11 -0
  197. package/dist/sdk/services/authenticated-http-library.js +29 -0
  198. package/dist/sdk/services/authenticator.d.ts +11 -0
  199. package/dist/sdk/services/authenticator.js +57 -0
  200. package/dist/sdk/services/configuration.service.d.ts +7 -6
  201. package/dist/sdk/services/configuration.service.js +12 -44
  202. package/dist/sdk/types/CatalogProducts.d.ts +1 -0
  203. package/dist/sdk/types/CatalogProducts.js +2 -0
  204. package/dist/sdk/types/CloudUsageSubmission.d.ts +1 -0
  205. package/dist/sdk/types/CloudUsageSubmission.js +2 -0
  206. package/dist/sdk/types/Contracts.d.ts +1 -1
  207. package/dist/sdk/types/Credits.d.ts +1 -0
  208. package/dist/sdk/types/Credits.js +2 -0
  209. package/dist/sdk/types/Customers.d.ts +1 -1
  210. package/dist/sdk/types/Events.d.ts +1 -1
  211. package/dist/sdk/types/Invoices.d.ts +1 -1
  212. package/dist/sdk/types/Measurements.d.ts +1 -0
  213. package/dist/sdk/types/Measurements.js +2 -0
  214. package/dist/sdk/types/index.d.ts +4 -0
  215. package/dist/sdk/types/index.js +4 -0
  216. package/dist/sdk-v2/services/configuration.service.js +16 -8
  217. package/package.json +3 -4
@@ -0,0 +1,65 @@
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 { CustomFieldValueTypes } from '../models/CustomFieldValueTypes';
13
+ import { IntegrationEntityTypes } from '../models/IntegrationEntityTypes';
14
+ export declare class CustomField {
15
+ /**
16
+ * The integration provider (e.g., \"Salesforce\", \"HubSpot\")
17
+ */
18
+ 'integrationSource'?: CustomFieldIntegrationSourceEnum;
19
+ 'integrationEntityType'?: IntegrationEntityTypes;
20
+ /**
21
+ * The path to the field in the integration (e.g., \"root.path.field\")
22
+ */
23
+ 'fieldPath'?: string;
24
+ /**
25
+ * The name of the field in Vayu (e.g., \"AE Name\")
26
+ */
27
+ 'vayuCustomFieldName': string;
28
+ 'valueType': CustomFieldValueTypes;
29
+ /**
30
+ * The actual value of the custom field
31
+ */
32
+ 'value'?: any | null;
33
+ static readonly discriminator: string | undefined;
34
+ static readonly mapping: {
35
+ [index: string]: string;
36
+ } | undefined;
37
+ static readonly attributeTypeMap: Array<{
38
+ name: string;
39
+ baseName: string;
40
+ type: string;
41
+ format: string;
42
+ }>;
43
+ static getAttributeTypeMap(): {
44
+ name: string;
45
+ baseName: string;
46
+ type: string;
47
+ format: string;
48
+ }[];
49
+ constructor();
50
+ }
51
+ export declare enum CustomFieldIntegrationSourceEnum {
52
+ NetSuite = "NetSuite",
53
+ QuickBooks = "QuickBooks",
54
+ Stripe = "Stripe",
55
+ Salesforce = "Salesforce",
56
+ Hubspot = "Hubspot",
57
+ Vayu = "Vayu",
58
+ Slack = "Slack",
59
+ S3 = "S3",
60
+ Morning = "Morning",
61
+ Snowflake = "Snowflake",
62
+ Anrok = "Anrok",
63
+ Connact = "Connact",
64
+ Xero = "Xero"
65
+ }
@@ -0,0 +1,78 @@
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.CustomFieldIntegrationSourceEnum = exports.CustomField = void 0;
15
+ class CustomField {
16
+ static getAttributeTypeMap() {
17
+ return CustomField.attributeTypeMap;
18
+ }
19
+ constructor() {
20
+ }
21
+ }
22
+ exports.CustomField = CustomField;
23
+ CustomField.discriminator = undefined;
24
+ CustomField.mapping = undefined;
25
+ CustomField.attributeTypeMap = [
26
+ {
27
+ "name": "integrationSource",
28
+ "baseName": "integrationSource",
29
+ "type": "CustomFieldIntegrationSourceEnum",
30
+ "format": ""
31
+ },
32
+ {
33
+ "name": "integrationEntityType",
34
+ "baseName": "integrationEntityType",
35
+ "type": "IntegrationEntityTypes",
36
+ "format": ""
37
+ },
38
+ {
39
+ "name": "fieldPath",
40
+ "baseName": "fieldPath",
41
+ "type": "string",
42
+ "format": ""
43
+ },
44
+ {
45
+ "name": "vayuCustomFieldName",
46
+ "baseName": "vayuCustomFieldName",
47
+ "type": "string",
48
+ "format": ""
49
+ },
50
+ {
51
+ "name": "valueType",
52
+ "baseName": "valueType",
53
+ "type": "CustomFieldValueTypes",
54
+ "format": ""
55
+ },
56
+ {
57
+ "name": "value",
58
+ "baseName": "value",
59
+ "type": "any",
60
+ "format": ""
61
+ }
62
+ ];
63
+ var CustomFieldIntegrationSourceEnum;
64
+ (function (CustomFieldIntegrationSourceEnum) {
65
+ CustomFieldIntegrationSourceEnum["NetSuite"] = "NetSuite";
66
+ CustomFieldIntegrationSourceEnum["QuickBooks"] = "QuickBooks";
67
+ CustomFieldIntegrationSourceEnum["Stripe"] = "Stripe";
68
+ CustomFieldIntegrationSourceEnum["Salesforce"] = "Salesforce";
69
+ CustomFieldIntegrationSourceEnum["Hubspot"] = "Hubspot";
70
+ CustomFieldIntegrationSourceEnum["Vayu"] = "Vayu";
71
+ CustomFieldIntegrationSourceEnum["Slack"] = "Slack";
72
+ CustomFieldIntegrationSourceEnum["S3"] = "S3";
73
+ CustomFieldIntegrationSourceEnum["Morning"] = "Morning";
74
+ CustomFieldIntegrationSourceEnum["Snowflake"] = "Snowflake";
75
+ CustomFieldIntegrationSourceEnum["Anrok"] = "Anrok";
76
+ CustomFieldIntegrationSourceEnum["Connact"] = "Connact";
77
+ CustomFieldIntegrationSourceEnum["Xero"] = "Xero";
78
+ })(CustomFieldIntegrationSourceEnum = exports.CustomFieldIntegrationSourceEnum || (exports.CustomFieldIntegrationSourceEnum = {}));
@@ -0,0 +1,33 @@
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 CustomFieldValue {
13
+ 'customFieldDefinitionId': string;
14
+ 'value'?: string;
15
+ 'fieldName'?: string;
16
+ static readonly discriminator: string | undefined;
17
+ static readonly mapping: {
18
+ [index: string]: string;
19
+ } | undefined;
20
+ static readonly attributeTypeMap: Array<{
21
+ name: string;
22
+ baseName: string;
23
+ type: string;
24
+ format: string;
25
+ }>;
26
+ static getAttributeTypeMap(): {
27
+ name: string;
28
+ baseName: string;
29
+ type: string;
30
+ format: string;
31
+ }[];
32
+ constructor();
33
+ }
@@ -0,0 +1,44 @@
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.CustomFieldValue = void 0;
15
+ class CustomFieldValue {
16
+ static getAttributeTypeMap() {
17
+ return CustomFieldValue.attributeTypeMap;
18
+ }
19
+ constructor() {
20
+ }
21
+ }
22
+ exports.CustomFieldValue = CustomFieldValue;
23
+ CustomFieldValue.discriminator = undefined;
24
+ CustomFieldValue.mapping = undefined;
25
+ CustomFieldValue.attributeTypeMap = [
26
+ {
27
+ "name": "customFieldDefinitionId",
28
+ "baseName": "customFieldDefinitionId",
29
+ "type": "string",
30
+ "format": ""
31
+ },
32
+ {
33
+ "name": "value",
34
+ "baseName": "value",
35
+ "type": "string",
36
+ "format": ""
37
+ },
38
+ {
39
+ "name": "fieldName",
40
+ "baseName": "fieldName",
41
+ "type": "string",
42
+ "format": ""
43
+ }
44
+ ];
@@ -0,0 +1,19 @@
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 type of the value: \"String\", \"Number\", or \"Boolean\"
14
+ */
15
+ export declare enum CustomFieldValueTypes {
16
+ String = "String",
17
+ Number = "Number",
18
+ Boolean = "Boolean"
19
+ }
@@ -0,0 +1,23 @@
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.CustomFieldValueTypes = void 0;
15
+ /**
16
+ * The type of the value: \"String\", \"Number\", or \"Boolean\"
17
+ */
18
+ var CustomFieldValueTypes;
19
+ (function (CustomFieldValueTypes) {
20
+ CustomFieldValueTypes["String"] = "String";
21
+ CustomFieldValueTypes["Number"] = "Number";
22
+ CustomFieldValueTypes["Boolean"] = "Boolean";
23
+ })(CustomFieldValueTypes = exports.CustomFieldValueTypes || (exports.CustomFieldValueTypes = {}));
@@ -0,0 +1,39 @@
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
+ * Cloud provider settings for the customer
14
+ */
15
+ export declare class CustomerCloudProviderSettings {
16
+ 'cloudProvider'?: CustomerCloudProviderSettingsCloudProviderEnum;
17
+ 'cloudProviderMarketplaceId'?: string;
18
+ 'customerIdentifier'?: 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 CustomerCloudProviderSettingsCloudProviderEnum {
38
+ Aws = "AWS"
39
+ }
@@ -0,0 +1,51 @@
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.CustomerCloudProviderSettingsCloudProviderEnum = exports.CustomerCloudProviderSettings = void 0;
15
+ /**
16
+ * Cloud provider settings for the customer
17
+ */
18
+ class CustomerCloudProviderSettings {
19
+ static getAttributeTypeMap() {
20
+ return CustomerCloudProviderSettings.attributeTypeMap;
21
+ }
22
+ constructor() {
23
+ }
24
+ }
25
+ exports.CustomerCloudProviderSettings = CustomerCloudProviderSettings;
26
+ CustomerCloudProviderSettings.discriminator = undefined;
27
+ CustomerCloudProviderSettings.mapping = undefined;
28
+ CustomerCloudProviderSettings.attributeTypeMap = [
29
+ {
30
+ "name": "cloudProvider",
31
+ "baseName": "cloudProvider",
32
+ "type": "CustomerCloudProviderSettingsCloudProviderEnum",
33
+ "format": ""
34
+ },
35
+ {
36
+ "name": "cloudProviderMarketplaceId",
37
+ "baseName": "cloudProviderMarketplaceId",
38
+ "type": "string",
39
+ "format": ""
40
+ },
41
+ {
42
+ "name": "customerIdentifier",
43
+ "baseName": "customerIdentifier",
44
+ "type": "string",
45
+ "format": ""
46
+ }
47
+ ];
48
+ var CustomerCloudProviderSettingsCloudProviderEnum;
49
+ (function (CustomerCloudProviderSettingsCloudProviderEnum) {
50
+ CustomerCloudProviderSettingsCloudProviderEnum["Aws"] = "AWS";
51
+ })(CustomerCloudProviderSettingsCloudProviderEnum = exports.CustomerCloudProviderSettingsCloudProviderEnum || (exports.CustomerCloudProviderSettingsCloudProviderEnum = {}));
@@ -0,0 +1,21 @@
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 source of the customer
14
+ */
15
+ export declare enum CustomerSource {
16
+ Stripe = "Stripe",
17
+ VayuEventsApi = "VayuEventsApi",
18
+ Api = "Api",
19
+ Salesforce = "Salesforce",
20
+ HubSpot = "HubSpot"
21
+ }
@@ -0,0 +1,25 @@
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.CustomerSource = void 0;
15
+ /**
16
+ * The source of the customer
17
+ */
18
+ var CustomerSource;
19
+ (function (CustomerSource) {
20
+ CustomerSource["Stripe"] = "Stripe";
21
+ CustomerSource["VayuEventsApi"] = "VayuEventsApi";
22
+ CustomerSource["Api"] = "Api";
23
+ CustomerSource["Salesforce"] = "Salesforce";
24
+ CustomerSource["HubSpot"] = "HubSpot";
25
+ })(CustomerSource = exports.CustomerSource || (exports.CustomerSource = {}));
@@ -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 { DeleteCatalogProductResponseCatalogProduct } from '../models/DeleteCatalogProductResponseCatalogProduct';
13
+ export declare class DeleteCatalogProductResponse {
14
+ 'catalogProduct': DeleteCatalogProductResponseCatalogProduct;
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.DeleteCatalogProductResponse = void 0;
15
+ class DeleteCatalogProductResponse {
16
+ static getAttributeTypeMap() {
17
+ return DeleteCatalogProductResponse.attributeTypeMap;
18
+ }
19
+ constructor() {
20
+ }
21
+ }
22
+ exports.DeleteCatalogProductResponse = DeleteCatalogProductResponse;
23
+ DeleteCatalogProductResponse.discriminator = undefined;
24
+ DeleteCatalogProductResponse.mapping = undefined;
25
+ DeleteCatalogProductResponse.attributeTypeMap = [
26
+ {
27
+ "name": "catalogProduct",
28
+ "baseName": "catalogProduct",
29
+ "type": "DeleteCatalogProductResponseCatalogProduct",
30
+ "format": ""
31
+ }
32
+ ];
@@ -0,0 +1,46 @@
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 DeleteCatalogProductResponseCatalogProduct {
13
+ /**
14
+ * The name of the catalog product
15
+ */
16
+ 'name': string;
17
+ /**
18
+ * The description of the catalog product
19
+ */
20
+ 'description'?: string;
21
+ /**
22
+ * The external ID of the catalog product
23
+ */
24
+ 'externalId'?: string;
25
+ 'id': string;
26
+ 'createdAt': Date;
27
+ 'updatedAt': Date;
28
+ 'deletedAt': string;
29
+ static readonly discriminator: string | undefined;
30
+ static readonly mapping: {
31
+ [index: string]: string;
32
+ } | undefined;
33
+ static readonly attributeTypeMap: Array<{
34
+ name: string;
35
+ baseName: string;
36
+ type: string;
37
+ format: string;
38
+ }>;
39
+ static getAttributeTypeMap(): {
40
+ name: string;
41
+ baseName: string;
42
+ type: string;
43
+ format: string;
44
+ }[];
45
+ constructor();
46
+ }
@@ -0,0 +1,68 @@
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.DeleteCatalogProductResponseCatalogProduct = void 0;
15
+ class DeleteCatalogProductResponseCatalogProduct {
16
+ static getAttributeTypeMap() {
17
+ return DeleteCatalogProductResponseCatalogProduct.attributeTypeMap;
18
+ }
19
+ constructor() {
20
+ }
21
+ }
22
+ exports.DeleteCatalogProductResponseCatalogProduct = DeleteCatalogProductResponseCatalogProduct;
23
+ DeleteCatalogProductResponseCatalogProduct.discriminator = undefined;
24
+ DeleteCatalogProductResponseCatalogProduct.mapping = undefined;
25
+ DeleteCatalogProductResponseCatalogProduct.attributeTypeMap = [
26
+ {
27
+ "name": "name",
28
+ "baseName": "name",
29
+ "type": "string",
30
+ "format": ""
31
+ },
32
+ {
33
+ "name": "description",
34
+ "baseName": "description",
35
+ "type": "string",
36
+ "format": ""
37
+ },
38
+ {
39
+ "name": "externalId",
40
+ "baseName": "externalId",
41
+ "type": "string",
42
+ "format": ""
43
+ },
44
+ {
45
+ "name": "id",
46
+ "baseName": "id",
47
+ "type": "string",
48
+ "format": ""
49
+ },
50
+ {
51
+ "name": "createdAt",
52
+ "baseName": "createdAt",
53
+ "type": "Date",
54
+ "format": "date-time"
55
+ },
56
+ {
57
+ "name": "updatedAt",
58
+ "baseName": "updatedAt",
59
+ "type": "Date",
60
+ "format": "date-time"
61
+ },
62
+ {
63
+ "name": "deletedAt",
64
+ "baseName": "deletedAt",
65
+ "type": "string",
66
+ "format": ""
67
+ }
68
+ ];
@@ -9,23 +9,65 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ContractStatus } from '../models/ContractStatus';
13
+ import { CustomField } from '../models/CustomField';
14
+ import { CustomFieldValue } from '../models/CustomFieldValue';
15
+ import { ProductGroup } from '../models/ProductGroup';
16
+ import { ProductGroupProductsInner } from '../models/ProductGroupProductsInner';
12
17
  export declare class DeleteContractResponseContract {
13
18
  /**
14
19
  * The start date of the contract
15
20
  */
16
21
  'startDate': Date;
17
22
  /**
23
+ * The id of the customer that the contract is associated with
24
+ */
25
+ 'customerId': string;
26
+ /**
27
+ * The name of the contract
28
+ */
29
+ 'name': string;
30
+ /**
31
+ * The id of the sales force opportunity that the contract is associated with
32
+ */
33
+ 'salesForceOpportunityId'?: string | null;
34
+ /**
18
35
  * The end date of the contract
19
36
  */
20
- 'endDate'?: Date;
37
+ 'endDate'?: Date | null;
21
38
  /**
22
- * The id of the customer that the contract is associated with
39
+ * The signature date of the contract
23
40
  */
24
- 'customerId': string;
41
+ 'signatureDate'?: Date | null;
42
+ /**
43
+ * The products that the contract is associated with
44
+ */
45
+ 'products'?: Array<ProductGroupProductsInner>;
46
+ /**
47
+ * Product groups are list of products that can be grouped as a single line item with shared settings like ERP settings, commitment settings, etc.
48
+ */
49
+ 'productGroups'?: Array<ProductGroup>;
50
+ /**
51
+ * The name of the account manager of the contract
52
+ */
53
+ 'accountManager'?: string | null;
54
+ /**
55
+ * Whether to pro rate the invoices for the contract. If not provided, it will default to false
56
+ */
57
+ 'shouldProRateInvoices'?: boolean;
58
+ /**
59
+ * Whether the contract is set to auto renew. If not provided, it will be treated as true
60
+ */
61
+ 'autoRenewContract'?: boolean;
62
+ /**
63
+ * Custom fields from CRM systems (Salesforce, HubSpot, etc.)
64
+ */
65
+ 'customFields'?: Array<CustomField> | null;
25
66
  /**
26
- * The id of the plan that the contract is associated with
67
+ * The stored custom field values associated with the contract
27
68
  */
28
- 'planId': string;
69
+ 'customFieldValues'?: Array<CustomFieldValue> | null;
70
+ 'status'?: ContractStatus;
29
71
  'id': string;
30
72
  'createdAt': Date;
31
73
  'updatedAt': Date;