vayu-ts 0.1.4 → 0.2.3

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 (158) hide show
  1. package/dist/openapi-v2/apis/AuthenticationApi.d.ts +24 -0
  2. package/dist/openapi-v2/apis/AuthenticationApi.js +79 -0
  3. package/dist/openapi-v2/apis/CustomersApi.d.ts +92 -0
  4. package/dist/openapi-v2/apis/CustomersApi.js +362 -0
  5. package/dist/openapi-v2/apis/EntitlementsApi.d.ts +49 -0
  6. package/dist/openapi-v2/apis/EntitlementsApi.js +176 -0
  7. package/dist/openapi-v2/apis/EventsApi.d.ts +63 -0
  8. package/dist/openapi-v2/apis/EventsApi.js +231 -0
  9. package/dist/openapi-v2/apis/InvoicesApi.d.ts +88 -0
  10. package/dist/openapi-v2/apis/InvoicesApi.js +344 -0
  11. package/dist/openapi-v2/apis/ProductsApi.d.ts +76 -0
  12. package/dist/openapi-v2/apis/ProductsApi.js +295 -0
  13. package/dist/openapi-v2/apis/baseapi.d.ts +33 -0
  14. package/dist/openapi-v2/apis/baseapi.js +41 -0
  15. package/dist/openapi-v2/apis/exception.d.ts +19 -0
  16. package/dist/openapi-v2/apis/exception.js +22 -0
  17. package/dist/openapi-v2/auth/auth.d.ts +38 -0
  18. package/dist/openapi-v2/auth/auth.js +16 -0
  19. package/dist/openapi-v2/configuration.d.ts +63 -0
  20. package/dist/openapi-v2/configuration.js +34 -0
  21. package/dist/openapi-v2/http/http.d.ts +142 -0
  22. package/dist/openapi-v2/http/http.js +229 -0
  23. package/dist/openapi-v2/http/isomorphic-fetch.d.ts +5 -0
  24. package/dist/openapi-v2/http/isomorphic-fetch.js +33 -0
  25. package/dist/openapi-v2/index.d.ts +10 -0
  26. package/dist/openapi-v2/index.js +33 -0
  27. package/dist/openapi-v2/middleware.d.ts +54 -0
  28. package/dist/openapi-v2/middleware.js +16 -0
  29. package/dist/openapi-v2/models/APICreateCustomerPayload.d.ts +45 -0
  30. package/dist/openapi-v2/models/APICreateCustomerPayload.js +49 -0
  31. package/dist/openapi-v2/models/APICreateInvoicePayload.d.ts +41 -0
  32. package/dist/openapi-v2/models/APICreateInvoicePayload.js +49 -0
  33. package/dist/openapi-v2/models/APICreateProductPayload.d.ts +43 -0
  34. package/dist/openapi-v2/models/APICreateProductPayload.js +55 -0
  35. package/dist/openapi-v2/models/APICustomer.d.ts +64 -0
  36. package/dist/openapi-v2/models/APICustomer.js +76 -0
  37. package/dist/openapi-v2/models/APIEntitlement.d.ts +56 -0
  38. package/dist/openapi-v2/models/APIEntitlement.js +79 -0
  39. package/dist/openapi-v2/models/APIEvent.d.ts +72 -0
  40. package/dist/openapi-v2/models/APIEvent.js +88 -0
  41. package/dist/openapi-v2/models/APIIngestEventPayload.d.ts +49 -0
  42. package/dist/openapi-v2/models/APIIngestEventPayload.js +55 -0
  43. package/dist/openapi-v2/models/APIInvoice.d.ts +71 -0
  44. package/dist/openapi-v2/models/APIInvoice.js +88 -0
  45. package/dist/openapi-v2/models/APIInvoiceBillingPeriod.d.ts +38 -0
  46. package/dist/openapi-v2/models/APIInvoiceBillingPeriod.js +40 -0
  47. package/dist/openapi-v2/models/APIProduct.d.ts +62 -0
  48. package/dist/openapi-v2/models/APIProduct.js +82 -0
  49. package/dist/openapi-v2/models/APIQueryPayloadAPICustomer.d.ts +43 -0
  50. package/dist/openapi-v2/models/APIQueryPayloadAPICustomer.js +49 -0
  51. package/dist/openapi-v2/models/APIQueryPayloadAPIEntitlement.d.ts +43 -0
  52. package/dist/openapi-v2/models/APIQueryPayloadAPIEntitlement.js +49 -0
  53. package/dist/openapi-v2/models/APIQueryPayloadAPIEvent.d.ts +43 -0
  54. package/dist/openapi-v2/models/APIQueryPayloadAPIEvent.js +49 -0
  55. package/dist/openapi-v2/models/APIQueryPayloadAPIInvoice.d.ts +43 -0
  56. package/dist/openapi-v2/models/APIQueryPayloadAPIInvoice.js +49 -0
  57. package/dist/openapi-v2/models/APIQueryPayloadAPIProduct.d.ts +43 -0
  58. package/dist/openapi-v2/models/APIQueryPayloadAPIProduct.js +49 -0
  59. package/dist/openapi-v2/models/APIUpdateCustomerPayload.d.ts +45 -0
  60. package/dist/openapi-v2/models/APIUpdateCustomerPayload.js +49 -0
  61. package/dist/openapi-v2/models/APIUpdateInvoicePayload.d.ts +41 -0
  62. package/dist/openapi-v2/models/APIUpdateInvoicePayload.js +49 -0
  63. package/dist/openapi-v2/models/APIUpdateProductPayload.d.ts +43 -0
  64. package/dist/openapi-v2/models/APIUpdateProductPayload.js +55 -0
  65. package/dist/openapi-v2/models/Aggregation.d.ts +32 -0
  66. package/dist/openapi-v2/models/Aggregation.js +43 -0
  67. package/dist/openapi-v2/models/AggregationMethods.d.ts +18 -0
  68. package/dist/openapi-v2/models/AggregationMethods.js +22 -0
  69. package/dist/openapi-v2/models/Condition.d.ts +29 -0
  70. package/dist/openapi-v2/models/Condition.js +31 -0
  71. package/dist/openapi-v2/models/Criterion.d.ts +32 -0
  72. package/dist/openapi-v2/models/Criterion.js +43 -0
  73. package/dist/openapi-v2/models/CriterionOperators.d.ts +23 -0
  74. package/dist/openapi-v2/models/CriterionOperators.js +27 -0
  75. package/dist/openapi-v2/models/CriterionValue.d.ts +27 -0
  76. package/dist/openapi-v2/models/CriterionValue.js +24 -0
  77. package/dist/openapi-v2/models/EntitlementRevision.d.ts +36 -0
  78. package/dist/openapi-v2/models/EntitlementRevision.js +55 -0
  79. package/dist/openapi-v2/models/Event.d.ts +54 -0
  80. package/dist/openapi-v2/models/Event.js +85 -0
  81. package/dist/openapi-v2/models/IngestEventToTheSystem201Response.d.ts +31 -0
  82. package/dist/openapi-v2/models/IngestEventToTheSystem201Response.js +43 -0
  83. package/dist/openapi-v2/models/InvoiceProductBreakdown.d.ts +36 -0
  84. package/dist/openapi-v2/models/InvoiceProductBreakdown.js +46 -0
  85. package/dist/openapi-v2/models/Login200Response.d.ts +28 -0
  86. package/dist/openapi-v2/models/Login200Response.js +31 -0
  87. package/dist/openapi-v2/models/LoginRequest.d.ts +28 -0
  88. package/dist/openapi-v2/models/LoginRequest.js +31 -0
  89. package/dist/openapi-v2/models/ObjectSerializer.d.ts +67 -0
  90. package/dist/openapi-v2/models/ObjectSerializer.js +377 -0
  91. package/dist/openapi-v2/models/Pricing.d.ts +30 -0
  92. package/dist/openapi-v2/models/Pricing.js +37 -0
  93. package/dist/openapi-v2/models/PricingTiersInner.d.ts +31 -0
  94. package/dist/openapi-v2/models/PricingTiersInner.js +49 -0
  95. package/dist/openapi-v2/models/ProductBreakdown.d.ts +29 -0
  96. package/dist/openapi-v2/models/ProductBreakdown.js +37 -0
  97. package/dist/openapi-v2/models/QueryResultAPICustomer.d.ts +40 -0
  98. package/dist/openapi-v2/models/QueryResultAPICustomer.js +43 -0
  99. package/dist/openapi-v2/models/QueryResultAPIEntitlement.d.ts +40 -0
  100. package/dist/openapi-v2/models/QueryResultAPIEntitlement.js +43 -0
  101. package/dist/openapi-v2/models/QueryResultAPIEvent.d.ts +40 -0
  102. package/dist/openapi-v2/models/QueryResultAPIEvent.js +43 -0
  103. package/dist/openapi-v2/models/QueryResultAPIInvoice.d.ts +40 -0
  104. package/dist/openapi-v2/models/QueryResultAPIInvoice.js +43 -0
  105. package/dist/openapi-v2/models/QueryResultAPIProduct.d.ts +40 -0
  106. package/dist/openapi-v2/models/QueryResultAPIProduct.js +43 -0
  107. package/dist/openapi-v2/models/ReviseEntitlementPayload.d.ts +37 -0
  108. package/dist/openapi-v2/models/ReviseEntitlementPayload.js +43 -0
  109. package/dist/openapi-v2/models/UpdateEventPayload.d.ts +33 -0
  110. package/dist/openapi-v2/models/UpdateEventPayload.js +31 -0
  111. package/dist/openapi-v2/models/all.d.ts +40 -0
  112. package/dist/openapi-v2/models/all.js +56 -0
  113. package/dist/openapi-v2/rxjsStub.d.ts +10 -0
  114. package/dist/openapi-v2/rxjsStub.js +31 -0
  115. package/dist/openapi-v2/servers.d.ts +38 -0
  116. package/dist/openapi-v2/servers.js +51 -0
  117. package/dist/openapi-v2/types/ObservableAPI.d.ts +281 -0
  118. package/dist/openapi-v2/types/ObservableAPI.js +694 -0
  119. package/dist/openapi-v2/types/PromiseAPI.d.ts +268 -0
  120. package/dist/openapi-v2/types/PromiseAPI.js +405 -0
  121. package/dist/openapi-v2/util.d.ts +15 -0
  122. package/dist/openapi-v2/util.js +42 -0
  123. package/dist/sdk/services/configuration.service.js +1 -1
  124. package/dist/sdk-v2/clients/CustomersClient.d.ts +11 -0
  125. package/dist/sdk-v2/clients/CustomersClient.js +50 -0
  126. package/dist/sdk-v2/clients/EntitlementsClient.d.ts +8 -0
  127. package/dist/sdk-v2/clients/EntitlementsClient.js +35 -0
  128. package/dist/sdk-v2/clients/EventsClient.d.ts +9 -0
  129. package/dist/sdk-v2/clients/EventsClient.js +40 -0
  130. package/dist/sdk-v2/clients/InvoicesClient.d.ts +11 -0
  131. package/dist/sdk-v2/clients/InvoicesClient.js +50 -0
  132. package/dist/sdk-v2/clients/ProductsClient.d.ts +10 -0
  133. package/dist/sdk-v2/clients/ProductsClient.js +45 -0
  134. package/dist/sdk-v2/clients/index.d.ts +4 -0
  135. package/dist/sdk-v2/clients/index.js +20 -0
  136. package/dist/sdk-v2/index.d.ts +11 -0
  137. package/dist/sdk-v2/index.js +53 -0
  138. package/dist/sdk-v2/services/configuration.service.d.ts +21 -0
  139. package/dist/sdk-v2/services/configuration.service.js +98 -0
  140. package/dist/sdk-v2/services/index.d.ts +1 -0
  141. package/dist/sdk-v2/services/index.js +17 -0
  142. package/dist/sdk-v2/types/Customers.d.ts +1 -0
  143. package/dist/sdk-v2/types/Customers.js +2 -0
  144. package/dist/sdk-v2/types/Entitlements.d.ts +1 -0
  145. package/dist/sdk-v2/types/Entitlements.js +2 -0
  146. package/dist/sdk-v2/types/Events.d.ts +1 -0
  147. package/dist/sdk-v2/types/Events.js +2 -0
  148. package/dist/sdk-v2/types/Invoices.d.ts +1 -0
  149. package/dist/sdk-v2/types/Invoices.js +2 -0
  150. package/dist/sdk-v2/types/Products.d.ts +1 -0
  151. package/dist/sdk-v2/types/Products.js +2 -0
  152. package/dist/sdk-v2/types/index.d.ts +6 -0
  153. package/dist/sdk-v2/types/index.js +24 -0
  154. package/dist/v2.d.ts +1 -0
  155. package/dist/v2.js +17 -0
  156. package/package.json +17 -1
  157. package/dist/openapi/types/ObjectParamAPI.d.ts +0 -845
  158. package/dist/openapi/types/ObjectParamAPI.js +0 -606
@@ -1,606 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ObjectWebhooksApi = exports.ObjectReportsApi = exports.ObjectPlansApi = exports.ObjectMetersApi = exports.ObjectInvoicesApi = exports.ObjectIntegrationsApi = exports.ObjectEventsApi = exports.ObjectCustomersApi = exports.ObjectCreditsApi = exports.ObjectContractsApi = exports.ObjectAuthApi = void 0;
4
- const ObservableAPI_1 = require("./ObservableAPI");
5
- class ObjectAuthApi {
6
- constructor(configuration, requestFactory, responseProcessor) {
7
- this.api = new ObservableAPI_1.ObservableAuthApi(configuration, requestFactory, responseProcessor);
8
- }
9
- /**
10
- * This endpoint is designed to acquire a temporary access token. Submit the auth token in the request body to obtain a new access token. Use this new token for subsequent API calls. Token is set to expire every hour.
11
- * Login by obtaining a new access token
12
- * @param param the request object
13
- */
14
- loginWithHttpInfo(param, options) {
15
- return this.api.loginWithHttpInfo(param.loginRequest, options).toPromise();
16
- }
17
- /**
18
- * This endpoint is designed to acquire a temporary access token. Submit the auth token in the request body to obtain a new access token. Use this new token for subsequent API calls. Token is set to expire every hour.
19
- * Login by obtaining a new access token
20
- * @param param the request object
21
- */
22
- login(param, options) {
23
- return this.api.login(param.loginRequest, options).toPromise();
24
- }
25
- }
26
- exports.ObjectAuthApi = ObjectAuthApi;
27
- const ObservableAPI_2 = require("./ObservableAPI");
28
- class ObjectContractsApi {
29
- constructor(configuration, requestFactory, responseProcessor) {
30
- this.api = new ObservableAPI_2.ObservableContractsApi(configuration, requestFactory, responseProcessor);
31
- }
32
- /**
33
- * Create a new Contract.
34
- * Create Contract
35
- * @param param the request object
36
- */
37
- createContractWithHttpInfo(param, options) {
38
- return this.api.createContractWithHttpInfo(param.createContractRequest, options).toPromise();
39
- }
40
- /**
41
- * Create a new Contract.
42
- * Create Contract
43
- * @param param the request object
44
- */
45
- createContract(param, options) {
46
- return this.api.createContract(param.createContractRequest, options).toPromise();
47
- }
48
- /**
49
- * Delete a Contract by id.
50
- * Delete Contract
51
- * @param param the request object
52
- */
53
- deleteContractWithHttpInfo(param, options) {
54
- return this.api.deleteContractWithHttpInfo(param.contractId, options).toPromise();
55
- }
56
- /**
57
- * Delete a Contract by id.
58
- * Delete Contract
59
- * @param param the request object
60
- */
61
- deleteContract(param, options) {
62
- return this.api.deleteContract(param.contractId, options).toPromise();
63
- }
64
- /**
65
- * Get a Contract by id.
66
- * Get Contract
67
- * @param param the request object
68
- */
69
- getContractWithHttpInfo(param, options) {
70
- return this.api.getContractWithHttpInfo(param.contractId, options).toPromise();
71
- }
72
- /**
73
- * Get a Contract by id.
74
- * Get Contract
75
- * @param param the request object
76
- */
77
- getContract(param, options) {
78
- return this.api.getContract(param.contractId, options).toPromise();
79
- }
80
- /**
81
- * Get a list of Contracts.
82
- * List Contracts
83
- * @param param the request object
84
- */
85
- listContractsWithHttpInfo(param = {}, options) {
86
- return this.api.listContractsWithHttpInfo(param.limit, param.cursor, options).toPromise();
87
- }
88
- /**
89
- * Get a list of Contracts.
90
- * List Contracts
91
- * @param param the request object
92
- */
93
- listContracts(param = {}, options) {
94
- return this.api.listContracts(param.limit, param.cursor, options).toPromise();
95
- }
96
- }
97
- exports.ObjectContractsApi = ObjectContractsApi;
98
- const ObservableAPI_3 = require("./ObservableAPI");
99
- class ObjectCreditsApi {
100
- constructor(configuration, requestFactory, responseProcessor) {
101
- this.api = new ObservableAPI_3.ObservableCreditsApi(configuration, requestFactory, responseProcessor);
102
- }
103
- /**
104
- * This endpoint is used to deduct credits from the specified customer account. Submit the credit amount and customer ID in the request body to deduct the credits. The deducted credits will be subtracted from the customer\'s account.
105
- * Deduct credits from customer credit ledger
106
- * @param param the request object
107
- */
108
- deductCreditsWithHttpInfo(param, options) {
109
- return this.api.deductCreditsWithHttpInfo(param.deductCreditsRequest, options).toPromise();
110
- }
111
- /**
112
- * This endpoint is used to deduct credits from the specified customer account. Submit the credit amount and customer ID in the request body to deduct the credits. The deducted credits will be subtracted from the customer\'s account.
113
- * Deduct credits from customer credit ledger
114
- * @param param the request object
115
- */
116
- deductCredits(param, options) {
117
- return this.api.deductCredits(param.deductCreditsRequest, options).toPromise();
118
- }
119
- /**
120
- * This endpoint is used to grant credits to a customer. Submit the credit amount and customer ID in the request body to grant the credits. The granted credits will be added to the customer\'s account.
121
- * Grant credits to a customer credit ledger
122
- * @param param the request object
123
- */
124
- grantCreditsWithHttpInfo(param, options) {
125
- return this.api.grantCreditsWithHttpInfo(param.grantCreditsRequest, options).toPromise();
126
- }
127
- /**
128
- * This endpoint is used to grant credits to a customer. Submit the credit amount and customer ID in the request body to grant the credits. The granted credits will be added to the customer\'s account.
129
- * Grant credits to a customer credit ledger
130
- * @param param the request object
131
- */
132
- grantCredits(param, options) {
133
- return this.api.grantCredits(param.grantCreditsRequest, options).toPromise();
134
- }
135
- /**
136
- * This endpoint is used to retrieve the credit ledger entries for a specific customer.
137
- * Retrieve credit ledger entries for customer.
138
- * @param param the request object
139
- */
140
- listCreditLedgerEntriesWithHttpInfo(param, options) {
141
- return this.api.listCreditLedgerEntriesWithHttpInfo(param.customerId, param.limit, param.cursor, options).toPromise();
142
- }
143
- /**
144
- * This endpoint is used to retrieve the credit ledger entries for a specific customer.
145
- * Retrieve credit ledger entries for customer.
146
- * @param param the request object
147
- */
148
- listCreditLedgerEntries(param, options) {
149
- return this.api.listCreditLedgerEntries(param.customerId, param.limit, param.cursor, options).toPromise();
150
- }
151
- }
152
- exports.ObjectCreditsApi = ObjectCreditsApi;
153
- const ObservableAPI_4 = require("./ObservableAPI");
154
- class ObjectCustomersApi {
155
- constructor(configuration, requestFactory, responseProcessor) {
156
- this.api = new ObservableAPI_4.ObservableCustomersApi(configuration, requestFactory, responseProcessor);
157
- }
158
- /**
159
- * Create a new Customer.
160
- * Create Customer
161
- * @param param the request object
162
- */
163
- createCustomerWithHttpInfo(param, options) {
164
- return this.api.createCustomerWithHttpInfo(param.createCustomerRequest, options).toPromise();
165
- }
166
- /**
167
- * Create a new Customer.
168
- * Create Customer
169
- * @param param the request object
170
- */
171
- createCustomer(param, options) {
172
- return this.api.createCustomer(param.createCustomerRequest, options).toPromise();
173
- }
174
- /**
175
- * Delete a Customer by id.
176
- * Delete Customer
177
- * @param param the request object
178
- */
179
- deleteCustomerWithHttpInfo(param, options) {
180
- return this.api.deleteCustomerWithHttpInfo(param.customerId, options).toPromise();
181
- }
182
- /**
183
- * Delete a Customer by id.
184
- * Delete Customer
185
- * @param param the request object
186
- */
187
- deleteCustomer(param, options) {
188
- return this.api.deleteCustomer(param.customerId, options).toPromise();
189
- }
190
- /**
191
- * Get a Customer by id.
192
- * Get Customer
193
- * @param param the request object
194
- */
195
- getCustomerWithHttpInfo(param, options) {
196
- return this.api.getCustomerWithHttpInfo(param.customerId, options).toPromise();
197
- }
198
- /**
199
- * Get a Customer by id.
200
- * Get Customer
201
- * @param param the request object
202
- */
203
- getCustomer(param, options) {
204
- return this.api.getCustomer(param.customerId, options).toPromise();
205
- }
206
- /**
207
- * Use this endpoint to get a specific customer using its external Id.
208
- * Get customer by externalId
209
- * @param param the request object
210
- */
211
- getCustomerByExternalIdWithHttpInfo(param, options) {
212
- return this.api.getCustomerByExternalIdWithHttpInfo(param.externalId, options).toPromise();
213
- }
214
- /**
215
- * Use this endpoint to get a specific customer using its external Id.
216
- * Get customer by externalId
217
- * @param param the request object
218
- */
219
- getCustomerByExternalId(param, options) {
220
- return this.api.getCustomerByExternalId(param.externalId, options).toPromise();
221
- }
222
- /**
223
- * Get a list of Customers.
224
- * List Customers
225
- * @param param the request object
226
- */
227
- listCustomersWithHttpInfo(param = {}, options) {
228
- return this.api.listCustomersWithHttpInfo(param.limit, param.cursor, options).toPromise();
229
- }
230
- /**
231
- * Get a list of Customers.
232
- * List Customers
233
- * @param param the request object
234
- */
235
- listCustomers(param = {}, options) {
236
- return this.api.listCustomers(param.limit, param.cursor, options).toPromise();
237
- }
238
- /**
239
- * Update a Customer by id.
240
- * Update Customer
241
- * @param param the request object
242
- */
243
- updateCustomerWithHttpInfo(param, options) {
244
- return this.api.updateCustomerWithHttpInfo(param.updateCustomerRequest, param.customerId, options).toPromise();
245
- }
246
- /**
247
- * Update a Customer by id.
248
- * Update Customer
249
- * @param param the request object
250
- */
251
- updateCustomer(param, options) {
252
- return this.api.updateCustomer(param.updateCustomerRequest, param.customerId, options).toPromise();
253
- }
254
- }
255
- exports.ObjectCustomersApi = ObjectCustomersApi;
256
- const ObservableAPI_5 = require("./ObservableAPI");
257
- class ObjectEventsApi {
258
- constructor(configuration, requestFactory, responseProcessor) {
259
- this.api = new ObservableAPI_5.ObservableEventsApi(configuration, requestFactory, responseProcessor);
260
- }
261
- /**
262
- * Use this endpoint to remove a specific event using its reference ID.
263
- * Delete an event by refId
264
- * @param param the request object
265
- */
266
- deleteEventByRefIdWithHttpInfo(param, options) {
267
- return this.api.deleteEventByRefIdWithHttpInfo(param.refId, options).toPromise();
268
- }
269
- /**
270
- * Use this endpoint to remove a specific event using its reference ID.
271
- * Delete an event by refId
272
- * @param param the request object
273
- */
274
- deleteEventByRefId(param, options) {
275
- return this.api.deleteEventByRefId(param.refId, options).toPromise();
276
- }
277
- /**
278
- * Use this endpoint to get a specific event using its reference ID.
279
- * Get event by refId
280
- * @param param the request object
281
- */
282
- getEventByRefIdWithHttpInfo(param, options) {
283
- return this.api.getEventByRefIdWithHttpInfo(param.refId, options).toPromise();
284
- }
285
- /**
286
- * Use this endpoint to get a specific event using its reference ID.
287
- * Get event by refId
288
- * @param param the request object
289
- */
290
- getEventByRefId(param, options) {
291
- return this.api.getEventByRefId(param.refId, options).toPromise();
292
- }
293
- /**
294
- * Fetch events occurring within a specified timestamp range. An optional event name can be provided to further filter the events.
295
- * Query events by timestamp period and optional event name
296
- * @param param the request object
297
- */
298
- queryEventsWithHttpInfo(param, options) {
299
- return this.api.queryEventsWithHttpInfo(param.startTime, param.endTime, param.eventName, param.limit, param.cursor, options).toPromise();
300
- }
301
- /**
302
- * Fetch events occurring within a specified timestamp range. An optional event name can be provided to further filter the events.
303
- * Query events by timestamp period and optional event name
304
- * @param param the request object
305
- */
306
- queryEvents(param, options) {
307
- return this.api.queryEvents(param.startTime, param.endTime, param.eventName, param.limit, param.cursor, options).toPromise();
308
- }
309
- /**
310
- * Use this endpoint to send an array of events for processing and storage. Make sure to comply with the request schema for each event.
311
- * Submit a batch of events for ingestion
312
- * @param param the request object
313
- */
314
- sendEventsWithHttpInfo(param, options) {
315
- return this.api.sendEventsWithHttpInfo(param.sendEventsRequest, options).toPromise();
316
- }
317
- /**
318
- * Use this endpoint to send an array of events for processing and storage. Make sure to comply with the request schema for each event.
319
- * Submit a batch of events for ingestion
320
- * @param param the request object
321
- */
322
- sendEvents(param, options) {
323
- return this.api.sendEvents(param.sendEventsRequest, options).toPromise();
324
- }
325
- /**
326
- * Use this endpoint to send an array of events for processing. Make sure to comply with the request schema for each event. NOTE: this is a dry run and will not result in actual storage of the events.
327
- * Submit a batch of events for testing
328
- * @param param the request object
329
- */
330
- sendEventsDryRunWithHttpInfo(param, options) {
331
- return this.api.sendEventsDryRunWithHttpInfo(param.eventsDryRunRequest, options).toPromise();
332
- }
333
- /**
334
- * Use this endpoint to send an array of events for processing. Make sure to comply with the request schema for each event. NOTE: this is a dry run and will not result in actual storage of the events.
335
- * Submit a batch of events for testing
336
- * @param param the request object
337
- */
338
- sendEventsDryRun(param, options) {
339
- return this.api.sendEventsDryRun(param.eventsDryRunRequest, options).toPromise();
340
- }
341
- }
342
- exports.ObjectEventsApi = ObjectEventsApi;
343
- const ObservableAPI_6 = require("./ObservableAPI");
344
- class ObjectIntegrationsApi {
345
- constructor(configuration, requestFactory, responseProcessor) {
346
- this.api = new ObservableAPI_6.ObservableIntegrationsApi(configuration, requestFactory, responseProcessor);
347
- }
348
- /**
349
- * This endpoint is used to export sales order to NetSuite.
350
- * Export sales order to NetSuite
351
- * @param param the request object
352
- */
353
- exportNetSuiteSalesOrderWithHttpInfo(param, options) {
354
- return this.api.exportNetSuiteSalesOrderWithHttpInfo(param.netSuiteExportSalesOrderRequest, options).toPromise();
355
- }
356
- /**
357
- * This endpoint is used to export sales order to NetSuite.
358
- * Export sales order to NetSuite
359
- * @param param the request object
360
- */
361
- exportNetSuiteSalesOrder(param, options) {
362
- return this.api.exportNetSuiteSalesOrder(param.netSuiteExportSalesOrderRequest, options).toPromise();
363
- }
364
- /**
365
- * This endpoint is used to sync invoices to NetSuite.
366
- * Sync invoices to NetSuite
367
- * @param param the request object
368
- */
369
- netSuiteSyncInvoicesWithHttpInfo(param, options) {
370
- return this.api.netSuiteSyncInvoicesWithHttpInfo(param.netSuiteSyncInvoicesRequest, options).toPromise();
371
- }
372
- /**
373
- * This endpoint is used to sync invoices to NetSuite.
374
- * Sync invoices to NetSuite
375
- * @param param the request object
376
- */
377
- netSuiteSyncInvoices(param, options) {
378
- return this.api.netSuiteSyncInvoices(param.netSuiteSyncInvoicesRequest, options).toPromise();
379
- }
380
- }
381
- exports.ObjectIntegrationsApi = ObjectIntegrationsApi;
382
- const ObservableAPI_7 = require("./ObservableAPI");
383
- class ObjectInvoicesApi {
384
- constructor(configuration, requestFactory, responseProcessor) {
385
- this.api = new ObservableAPI_7.ObservableInvoicesApi(configuration, requestFactory, responseProcessor);
386
- }
387
- /**
388
- * Get a Invoice by id.
389
- * Get Invoice
390
- * @param param the request object
391
- */
392
- getInvoiceWithHttpInfo(param, options) {
393
- return this.api.getInvoiceWithHttpInfo(param.invoiceId, options).toPromise();
394
- }
395
- /**
396
- * Get a Invoice by id.
397
- * Get Invoice
398
- * @param param the request object
399
- */
400
- getInvoice(param, options) {
401
- return this.api.getInvoice(param.invoiceId, options).toPromise();
402
- }
403
- /**
404
- * Get a list of Invoices.
405
- * List Invoices
406
- * @param param the request object
407
- */
408
- listInvoicesWithHttpInfo(param = {}, options) {
409
- return this.api.listInvoicesWithHttpInfo(param.limit, param.cursor, options).toPromise();
410
- }
411
- /**
412
- * Get a list of Invoices.
413
- * List Invoices
414
- * @param param the request object
415
- */
416
- listInvoices(param = {}, options) {
417
- return this.api.listInvoices(param.limit, param.cursor, options).toPromise();
418
- }
419
- }
420
- exports.ObjectInvoicesApi = ObjectInvoicesApi;
421
- const ObservableAPI_8 = require("./ObservableAPI");
422
- class ObjectMetersApi {
423
- constructor(configuration, requestFactory, responseProcessor) {
424
- this.api = new ObservableAPI_8.ObservableMetersApi(configuration, requestFactory, responseProcessor);
425
- }
426
- /**
427
- * Delete a Meter by id.
428
- * Delete Meter
429
- * @param param the request object
430
- */
431
- deleteMeterWithHttpInfo(param, options) {
432
- return this.api.deleteMeterWithHttpInfo(param.meterId, options).toPromise();
433
- }
434
- /**
435
- * Delete a Meter by id.
436
- * Delete Meter
437
- * @param param the request object
438
- */
439
- deleteMeter(param, options) {
440
- return this.api.deleteMeter(param.meterId, options).toPromise();
441
- }
442
- /**
443
- * Get a Meter by id.
444
- * Get Meter
445
- * @param param the request object
446
- */
447
- getMeterWithHttpInfo(param, options) {
448
- return this.api.getMeterWithHttpInfo(param.meterId, options).toPromise();
449
- }
450
- /**
451
- * Get a Meter by id.
452
- * Get Meter
453
- * @param param the request object
454
- */
455
- getMeter(param, options) {
456
- return this.api.getMeter(param.meterId, options).toPromise();
457
- }
458
- /**
459
- * Get a list of Meters.
460
- * List Meters
461
- * @param param the request object
462
- */
463
- listMetersWithHttpInfo(param = {}, options) {
464
- return this.api.listMetersWithHttpInfo(param.limit, param.cursor, options).toPromise();
465
- }
466
- /**
467
- * Get a list of Meters.
468
- * List Meters
469
- * @param param the request object
470
- */
471
- listMeters(param = {}, options) {
472
- return this.api.listMeters(param.limit, param.cursor, options).toPromise();
473
- }
474
- /**
475
- * Update a Meter by id.
476
- * Update Meter
477
- * @param param the request object
478
- */
479
- updateMeterWithHttpInfo(param, options) {
480
- return this.api.updateMeterWithHttpInfo(param.updateMeterRequest, param.meterId, options).toPromise();
481
- }
482
- /**
483
- * Update a Meter by id.
484
- * Update Meter
485
- * @param param the request object
486
- */
487
- updateMeter(param, options) {
488
- return this.api.updateMeter(param.updateMeterRequest, param.meterId, options).toPromise();
489
- }
490
- }
491
- exports.ObjectMetersApi = ObjectMetersApi;
492
- const ObservableAPI_9 = require("./ObservableAPI");
493
- class ObjectPlansApi {
494
- constructor(configuration, requestFactory, responseProcessor) {
495
- this.api = new ObservableAPI_9.ObservablePlansApi(configuration, requestFactory, responseProcessor);
496
- }
497
- /**
498
- * Delete a Plan by id.
499
- * Delete Plan
500
- * @param param the request object
501
- */
502
- deletePlanWithHttpInfo(param, options) {
503
- return this.api.deletePlanWithHttpInfo(param.planId, options).toPromise();
504
- }
505
- /**
506
- * Delete a Plan by id.
507
- * Delete Plan
508
- * @param param the request object
509
- */
510
- deletePlan(param, options) {
511
- return this.api.deletePlan(param.planId, options).toPromise();
512
- }
513
- /**
514
- * Get a Plan by id.
515
- * Get Plan
516
- * @param param the request object
517
- */
518
- getPlanWithHttpInfo(param, options) {
519
- return this.api.getPlanWithHttpInfo(param.planId, options).toPromise();
520
- }
521
- /**
522
- * Get a Plan by id.
523
- * Get Plan
524
- * @param param the request object
525
- */
526
- getPlan(param, options) {
527
- return this.api.getPlan(param.planId, options).toPromise();
528
- }
529
- /**
530
- * Get a list of Plans.
531
- * List Plans
532
- * @param param the request object
533
- */
534
- listPlansWithHttpInfo(param = {}, options) {
535
- return this.api.listPlansWithHttpInfo(param.limit, param.cursor, options).toPromise();
536
- }
537
- /**
538
- * Get a list of Plans.
539
- * List Plans
540
- * @param param the request object
541
- */
542
- listPlans(param = {}, options) {
543
- return this.api.listPlans(param.limit, param.cursor, options).toPromise();
544
- }
545
- }
546
- exports.ObjectPlansApi = ObjectPlansApi;
547
- const ObservableAPI_10 = require("./ObservableAPI");
548
- class ObjectReportsApi {
549
- constructor(configuration, requestFactory, responseProcessor) {
550
- this.api = new ObservableAPI_10.ObservableReportsApi(configuration, requestFactory, responseProcessor);
551
- }
552
- /**
553
- * Get commitment report
554
- * @param param the request object
555
- */
556
- getCommitmentReportResponseWithHttpInfo(param = {}, options) {
557
- return this.api.getCommitmentReportResponseWithHttpInfo(param.reportId, options).toPromise();
558
- }
559
- /**
560
- * Get commitment report
561
- * @param param the request object
562
- */
563
- getCommitmentReportResponse(param = {}, options) {
564
- return this.api.getCommitmentReportResponse(param.reportId, options).toPromise();
565
- }
566
- /**
567
- * Use this endpoint to get the products usage report.
568
- * Get products usage report
569
- * @param param the request object
570
- */
571
- getProductsUsageReportWithHttpInfo(param = {}, options) {
572
- return this.api.getProductsUsageReportWithHttpInfo(param.reportId, param.limit, param.cursor, options).toPromise();
573
- }
574
- /**
575
- * Use this endpoint to get the products usage report.
576
- * Get products usage report
577
- * @param param the request object
578
- */
579
- getProductsUsageReport(param = {}, options) {
580
- return this.api.getProductsUsageReport(param.reportId, param.limit, param.cursor, options).toPromise();
581
- }
582
- }
583
- exports.ObjectReportsApi = ObjectReportsApi;
584
- const ObservableAPI_11 = require("./ObservableAPI");
585
- class ObjectWebhooksApi {
586
- constructor(configuration, requestFactory, responseProcessor) {
587
- this.api = new ObservableAPI_11.ObservableWebhooksApi(configuration, requestFactory, responseProcessor);
588
- }
589
- /**
590
- * Use this endpoint to subscribe to webhooks and receive event notifications.
591
- * Subscribe to webhooks
592
- * @param param the request object
593
- */
594
- webhookSubscribeWithHttpInfo(param, options) {
595
- return this.api.webhookSubscribeWithHttpInfo(param.webhookSubscribeRequest, options).toPromise();
596
- }
597
- /**
598
- * Use this endpoint to subscribe to webhooks and receive event notifications.
599
- * Subscribe to webhooks
600
- * @param param the request object
601
- */
602
- webhookSubscribe(param, options) {
603
- return this.api.webhookSubscribe(param.webhookSubscribeRequest, options).toPromise();
604
- }
605
- }
606
- exports.ObjectWebhooksApi = ObjectWebhooksApi;