vayu-ts 0.2.13 → 0.2.14
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.
- package/dist/openapi/apis/CustomersApi.d.ts +15 -0
- package/dist/openapi/apis/CustomersApi.js +64 -0
- package/dist/openapi/apis/MeasurementsApi.d.ts +72 -0
- package/dist/openapi/apis/{PlansApi.js → MeasurementsApi.js} +106 -39
- package/dist/openapi/index.d.ts +1 -1
- package/dist/openapi/index.js +2 -4
- package/dist/openapi/models/CreateMeasurementRequest.d.ts +44 -0
- package/dist/openapi/models/{NetSuiteExportSalesOrderRequest.js → CreateMeasurementRequest.js} +21 -15
- package/dist/openapi/models/{NetSuiteSyncInvoicesRequestDataEntity.d.ts → CreateMeasurementRequestUsageDate.d.ts} +7 -2
- package/dist/openapi/models/{NetSuiteSyncInvoicesResponse.js → CreateMeasurementRequestUsageDate.js} +22 -13
- package/dist/openapi/models/{GetPlanResponse.d.ts → CreateMeasurementResponse.d.ts} +3 -3
- package/dist/openapi/models/{DeletePlanResponse.js → CreateMeasurementResponse.js} +10 -10
- package/dist/openapi/models/{GetPlanResponsePlan.d.ts → CreateMeasurementResponseMeasurement.d.ts} +13 -7
- package/dist/openapi/models/{DeletePlanResponsePlan.js → CreateMeasurementResponseMeasurement.js} +21 -21
- package/dist/openapi/models/CreditLedgerEntry.d.ts +5 -1
- package/dist/openapi/models/CreditLedgerEntry.js +27 -3
- package/dist/openapi/models/DeleteMeasurementResponse.d.ts +32 -0
- package/dist/openapi/models/{NetSuiteSyncInvoicesRequestDataEntity.js → DeleteMeasurementResponse.js} +10 -10
- package/dist/openapi/models/{DeletePlanResponsePlan.d.ts → DeleteMeasurementResponseMeasurement.d.ts} +13 -7
- package/dist/openapi/models/{GetPlanResponsePlan.js → DeleteMeasurementResponseMeasurement.js} +27 -15
- package/dist/openapi/models/{NetSuiteExportSalesOrderRequest.d.ts → GetCustomerProductsConsumptionsByAliasResponse.d.ts} +3 -4
- package/dist/openapi/models/{NetSuiteSyncInvoicesRequestDataItem.js → GetCustomerProductsConsumptionsByAliasResponse.js} +10 -10
- package/dist/openapi/models/{DeletePlanResponse.d.ts → GetMeasurementResponse.d.ts} +3 -3
- package/dist/openapi/models/{GetPlanResponse.js → GetMeasurementResponse.js} +10 -10
- package/dist/openapi/models/{ListPlansResponse.d.ts → ListMeasurementsResponse.d.ts} +3 -3
- package/dist/openapi/models/{ListPlansResponse.js → ListMeasurementsResponse.js} +10 -10
- package/dist/openapi/models/NotificationEventType.d.ts +4 -0
- package/dist/openapi/models/NotificationEventType.js +4 -0
- package/dist/openapi/models/ObjectSerializer.d.ts +9 -22
- package/dist/openapi/models/ObjectSerializer.js +27 -61
- package/dist/openapi/models/all.d.ts +9 -22
- package/dist/openapi/models/all.js +9 -22
- package/dist/openapi/types/ObservableAPI.d.ts +75 -117
- package/dist/openapi/types/ObservableAPI.js +142 -220
- package/dist/openapi/types/PromiseAPI.d.ts +73 -111
- package/dist/openapi/types/PromiseAPI.js +104 -156
- package/dist/sdk/clients/index.d.ts +0 -1
- package/dist/sdk/clients/index.js +0 -1
- package/dist/sdk/index.d.ts +1 -2
- package/dist/sdk/index.js +0 -3
- package/dist/sdk/types/index.d.ts +0 -1
- package/dist/sdk/types/index.js +0 -1
- package/package.json +1 -1
- package/dist/openapi/apis/IntegrationsApi.d.ts +0 -41
- package/dist/openapi/apis/IntegrationsApi.js +0 -151
- package/dist/openapi/apis/PlansApi.d.ts +0 -56
- package/dist/openapi/apis/ReportsApi.d.ts +0 -41
- package/dist/openapi/apis/ReportsApi.js +0 -147
- package/dist/openapi/models/BillingInterval.d.ts +0 -18
- package/dist/openapi/models/BillingInterval.js +0 -22
- package/dist/openapi/models/ContractStatus.d.ts +0 -19
- package/dist/openapi/models/ContractStatus.js +0 -23
- package/dist/openapi/models/Currency.d.ts +0 -17
- package/dist/openapi/models/Currency.js +0 -21
- package/dist/openapi/models/GetCommitmentReportResponse.d.ts +0 -49
- package/dist/openapi/models/GetCommitmentReportResponse.js +0 -128
- package/dist/openapi/models/GetProductsUsageReportResponse.d.ts +0 -49
- package/dist/openapi/models/GetProductsUsageReportResponse.js +0 -128
- package/dist/openapi/models/NetSuiteSyncInvoicesRequest.d.ts +0 -37
- package/dist/openapi/models/NetSuiteSyncInvoicesRequest.js +0 -48
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestData.d.ts +0 -42
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestData.js +0 -86
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItem.d.ts +0 -32
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItemItemsInner.d.ts +0 -36
- package/dist/openapi/models/NetSuiteSyncInvoicesRequestDataItemItemsInner.js +0 -56
- package/dist/openapi/models/NetSuiteSyncInvoicesResponse.d.ts +0 -32
- package/dist/openapi/models/PaymentTerm.d.ts +0 -18
- package/dist/openapi/models/PaymentTerm.js +0 -22
- package/dist/openapi/models/PlanBillingData.d.ts +0 -41
- package/dist/openapi/models/PlanBillingData.js +0 -59
- package/dist/openapi/models/PlanDuration.d.ts +0 -30
- package/dist/openapi/models/PlanDuration.js +0 -25
- package/dist/openapi/models/PlanStatus.d.ts +0 -19
- package/dist/openapi/models/PlanStatus.js +0 -23
- package/dist/openapi/models/UnlimitedDuration.d.ts +0 -14
- package/dist/openapi/models/UnlimitedDuration.js +0 -18
- package/dist/sdk/clients/PlansClient.d.ts +0 -8
- package/dist/sdk/clients/PlansClient.js +0 -22
- package/dist/sdk/types/Plans.d.ts +0 -1
- package/dist/sdk/types/Plans.js +0 -2
|
@@ -4,6 +4,7 @@ import { RequestContext, ResponseContext, HttpInfo } from '../http/http';
|
|
|
4
4
|
import { CreateCustomerRequest } from '../models/CreateCustomerRequest';
|
|
5
5
|
import { CreateCustomerResponse } from '../models/CreateCustomerResponse';
|
|
6
6
|
import { DeleteCustomerResponse } from '../models/DeleteCustomerResponse';
|
|
7
|
+
import { GetCustomerProductsConsumptionsByAliasResponse } from '../models/GetCustomerProductsConsumptionsByAliasResponse';
|
|
7
8
|
import { GetCustomerProductsConsumptionsResponse } from '../models/GetCustomerProductsConsumptionsResponse';
|
|
8
9
|
import { GetCustomerResponse } from '../models/GetCustomerResponse';
|
|
9
10
|
import { ListCustomersResponse } from '../models/ListCustomersResponse';
|
|
@@ -43,6 +44,12 @@ export declare class CustomersApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
43
44
|
* @param customerId
|
|
44
45
|
*/
|
|
45
46
|
getCustomerProductsConsumptions(customerId: string, _options?: Configuration): Promise<RequestContext>;
|
|
47
|
+
/**
|
|
48
|
+
* Use this endpoint to get the products consumptions by the customer alias.
|
|
49
|
+
* Get products consumptions by customer alias
|
|
50
|
+
* @param alias
|
|
51
|
+
*/
|
|
52
|
+
getCustomerProductsConsumptionsByAlias(alias: string, _options?: Configuration): Promise<RequestContext>;
|
|
46
53
|
/**
|
|
47
54
|
* Get a list of Customers.
|
|
48
55
|
* List Customers
|
|
@@ -99,6 +106,14 @@ export declare class CustomersApiResponseProcessor {
|
|
|
99
106
|
* @throws ApiException if the response code was not in [200, 299]
|
|
100
107
|
*/
|
|
101
108
|
getCustomerProductsConsumptionsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<GetCustomerProductsConsumptionsResponse>>;
|
|
109
|
+
/**
|
|
110
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
111
|
+
* to the expected objects
|
|
112
|
+
*
|
|
113
|
+
* @params response Response returned by the server for a request to getCustomerProductsConsumptionsByAlias
|
|
114
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
115
|
+
*/
|
|
116
|
+
getCustomerProductsConsumptionsByAliasWithHttpInfo(response: ResponseContext): Promise<HttpInfo<GetCustomerProductsConsumptionsByAliasResponse>>;
|
|
102
117
|
/**
|
|
103
118
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
104
119
|
* to the expected objects
|
|
@@ -162,6 +162,35 @@ class CustomersApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
162
162
|
}
|
|
163
163
|
return requestContext;
|
|
164
164
|
}
|
|
165
|
+
/**
|
|
166
|
+
* Use this endpoint to get the products consumptions by the customer alias.
|
|
167
|
+
* Get products consumptions by customer alias
|
|
168
|
+
* @param alias
|
|
169
|
+
*/
|
|
170
|
+
async getCustomerProductsConsumptionsByAlias(alias, _options) {
|
|
171
|
+
let _config = _options || this.configuration;
|
|
172
|
+
// verify required parameter 'alias' is not null or undefined
|
|
173
|
+
if (alias === null || alias === undefined) {
|
|
174
|
+
throw new baseapi_1.RequiredError("CustomersApi", "getCustomerProductsConsumptionsByAlias", "alias");
|
|
175
|
+
}
|
|
176
|
+
// Path Params
|
|
177
|
+
const localVarPath = '/customers/products-consumptions/alias/{alias}'
|
|
178
|
+
.replace('{' + 'alias' + '}', encodeURIComponent(String(alias)));
|
|
179
|
+
// Make Request Context
|
|
180
|
+
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
181
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
182
|
+
let authMethod;
|
|
183
|
+
// Apply auth methods
|
|
184
|
+
authMethod = _config.authMethods["BearerAuthorizer"];
|
|
185
|
+
if (authMethod?.applySecurityAuthentication) {
|
|
186
|
+
await authMethod?.applySecurityAuthentication(requestContext);
|
|
187
|
+
}
|
|
188
|
+
const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
|
|
189
|
+
if (defaultAuth?.applySecurityAuthentication) {
|
|
190
|
+
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
191
|
+
}
|
|
192
|
+
return requestContext;
|
|
193
|
+
}
|
|
165
194
|
/**
|
|
166
195
|
* Get a list of Customers.
|
|
167
196
|
* List Customers
|
|
@@ -411,6 +440,41 @@ class CustomersApiResponseProcessor {
|
|
|
411
440
|
}
|
|
412
441
|
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
413
442
|
}
|
|
443
|
+
/**
|
|
444
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
445
|
+
* to the expected objects
|
|
446
|
+
*
|
|
447
|
+
* @params response Response returned by the server for a request to getCustomerProductsConsumptionsByAlias
|
|
448
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
449
|
+
*/
|
|
450
|
+
async getCustomerProductsConsumptionsByAliasWithHttpInfo(response) {
|
|
451
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
452
|
+
if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
|
|
453
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "GetCustomerProductsConsumptionsByAliasResponse", "");
|
|
454
|
+
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
455
|
+
}
|
|
456
|
+
if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
|
|
457
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
|
|
458
|
+
}
|
|
459
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
460
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
461
|
+
}
|
|
462
|
+
if ((0, util_1.isCodeInRange)("404", response.httpStatusCode)) {
|
|
463
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Not Found", undefined, response.headers);
|
|
464
|
+
}
|
|
465
|
+
if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
|
|
466
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
|
|
467
|
+
}
|
|
468
|
+
if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
|
|
469
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
|
|
470
|
+
}
|
|
471
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
472
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
473
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "GetCustomerProductsConsumptionsByAliasResponse", "");
|
|
474
|
+
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
475
|
+
}
|
|
476
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
477
|
+
}
|
|
414
478
|
/**
|
|
415
479
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
416
480
|
* to the expected objects
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { BaseAPIRequestFactory } from './baseapi';
|
|
2
|
+
import { Configuration } from '../configuration';
|
|
3
|
+
import { RequestContext, ResponseContext, HttpInfo } from '../http/http';
|
|
4
|
+
import { CreateMeasurementRequest } from '../models/CreateMeasurementRequest';
|
|
5
|
+
import { CreateMeasurementResponse } from '../models/CreateMeasurementResponse';
|
|
6
|
+
import { DeleteMeasurementResponse } from '../models/DeleteMeasurementResponse';
|
|
7
|
+
import { GetMeasurementResponse } from '../models/GetMeasurementResponse';
|
|
8
|
+
import { ListMeasurementsResponse } from '../models/ListMeasurementsResponse';
|
|
9
|
+
/**
|
|
10
|
+
* no description
|
|
11
|
+
*/
|
|
12
|
+
export declare class MeasurementsApiRequestFactory extends BaseAPIRequestFactory {
|
|
13
|
+
/**
|
|
14
|
+
* Create a new Measurement.
|
|
15
|
+
* Create Measurement
|
|
16
|
+
* @param createMeasurementRequest
|
|
17
|
+
*/
|
|
18
|
+
createMeasurement(createMeasurementRequest: CreateMeasurementRequest, _options?: Configuration): Promise<RequestContext>;
|
|
19
|
+
/**
|
|
20
|
+
* Delete a Measurement by id.
|
|
21
|
+
* Delete Measurement
|
|
22
|
+
* @param measurementId
|
|
23
|
+
*/
|
|
24
|
+
deleteMeasurement(measurementId: string, _options?: Configuration): Promise<RequestContext>;
|
|
25
|
+
/**
|
|
26
|
+
* Get a Measurement by id.
|
|
27
|
+
* Get Measurement
|
|
28
|
+
* @param measurementId
|
|
29
|
+
*/
|
|
30
|
+
getMeasurement(measurementId: string, _options?: Configuration): Promise<RequestContext>;
|
|
31
|
+
/**
|
|
32
|
+
* Get a list of Measurements.
|
|
33
|
+
* List Measurements
|
|
34
|
+
* @param limit
|
|
35
|
+
* @param cursor
|
|
36
|
+
*/
|
|
37
|
+
listMeasurements(limit?: number, cursor?: string, _options?: Configuration): Promise<RequestContext>;
|
|
38
|
+
}
|
|
39
|
+
export declare class MeasurementsApiResponseProcessor {
|
|
40
|
+
/**
|
|
41
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
42
|
+
* to the expected objects
|
|
43
|
+
*
|
|
44
|
+
* @params response Response returned by the server for a request to createMeasurement
|
|
45
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
46
|
+
*/
|
|
47
|
+
createMeasurementWithHttpInfo(response: ResponseContext): Promise<HttpInfo<CreateMeasurementResponse>>;
|
|
48
|
+
/**
|
|
49
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
50
|
+
* to the expected objects
|
|
51
|
+
*
|
|
52
|
+
* @params response Response returned by the server for a request to deleteMeasurement
|
|
53
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
54
|
+
*/
|
|
55
|
+
deleteMeasurementWithHttpInfo(response: ResponseContext): Promise<HttpInfo<DeleteMeasurementResponse>>;
|
|
56
|
+
/**
|
|
57
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
58
|
+
* to the expected objects
|
|
59
|
+
*
|
|
60
|
+
* @params response Response returned by the server for a request to getMeasurement
|
|
61
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
62
|
+
*/
|
|
63
|
+
getMeasurementWithHttpInfo(response: ResponseContext): Promise<HttpInfo<GetMeasurementResponse>>;
|
|
64
|
+
/**
|
|
65
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
66
|
+
* to the expected objects
|
|
67
|
+
*
|
|
68
|
+
* @params response Response returned by the server for a request to listMeasurements
|
|
69
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
70
|
+
*/
|
|
71
|
+
listMeasurementsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<ListMeasurementsResponse>>;
|
|
72
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MeasurementsApiResponseProcessor = exports.MeasurementsApiRequestFactory = void 0;
|
|
4
4
|
// TODO: better import syntax?
|
|
5
5
|
const baseapi_1 = require("./baseapi");
|
|
6
6
|
const http_1 = require("../http/http");
|
|
@@ -10,21 +10,56 @@ const util_1 = require("../util");
|
|
|
10
10
|
/**
|
|
11
11
|
* no description
|
|
12
12
|
*/
|
|
13
|
-
class
|
|
13
|
+
class MeasurementsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* @param
|
|
15
|
+
* Create a new Measurement.
|
|
16
|
+
* Create Measurement
|
|
17
|
+
* @param createMeasurementRequest
|
|
18
18
|
*/
|
|
19
|
-
async
|
|
19
|
+
async createMeasurement(createMeasurementRequest, _options) {
|
|
20
20
|
let _config = _options || this.configuration;
|
|
21
|
-
// verify required parameter '
|
|
22
|
-
if (
|
|
23
|
-
throw new baseapi_1.RequiredError("
|
|
21
|
+
// verify required parameter 'createMeasurementRequest' is not null or undefined
|
|
22
|
+
if (createMeasurementRequest === null || createMeasurementRequest === undefined) {
|
|
23
|
+
throw new baseapi_1.RequiredError("MeasurementsApi", "createMeasurement", "createMeasurementRequest");
|
|
24
24
|
}
|
|
25
25
|
// Path Params
|
|
26
|
-
const localVarPath = '/
|
|
27
|
-
|
|
26
|
+
const localVarPath = '/measurements';
|
|
27
|
+
// Make Request Context
|
|
28
|
+
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
29
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
30
|
+
// Body Params
|
|
31
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
32
|
+
"application/json"
|
|
33
|
+
]);
|
|
34
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
35
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(createMeasurementRequest, "CreateMeasurementRequest", ""), contentType);
|
|
36
|
+
requestContext.setBody(serializedBody);
|
|
37
|
+
let authMethod;
|
|
38
|
+
// Apply auth methods
|
|
39
|
+
authMethod = _config.authMethods["BearerAuthorizer"];
|
|
40
|
+
if (authMethod?.applySecurityAuthentication) {
|
|
41
|
+
await authMethod?.applySecurityAuthentication(requestContext);
|
|
42
|
+
}
|
|
43
|
+
const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;
|
|
44
|
+
if (defaultAuth?.applySecurityAuthentication) {
|
|
45
|
+
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
46
|
+
}
|
|
47
|
+
return requestContext;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Delete a Measurement by id.
|
|
51
|
+
* Delete Measurement
|
|
52
|
+
* @param measurementId
|
|
53
|
+
*/
|
|
54
|
+
async deleteMeasurement(measurementId, _options) {
|
|
55
|
+
let _config = _options || this.configuration;
|
|
56
|
+
// verify required parameter 'measurementId' is not null or undefined
|
|
57
|
+
if (measurementId === null || measurementId === undefined) {
|
|
58
|
+
throw new baseapi_1.RequiredError("MeasurementsApi", "deleteMeasurement", "measurementId");
|
|
59
|
+
}
|
|
60
|
+
// Path Params
|
|
61
|
+
const localVarPath = '/measurements/{measurementId}'
|
|
62
|
+
.replace('{' + 'measurementId' + '}', encodeURIComponent(String(measurementId)));
|
|
28
63
|
// Make Request Context
|
|
29
64
|
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
30
65
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
@@ -41,19 +76,19 @@ class PlansApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
41
76
|
return requestContext;
|
|
42
77
|
}
|
|
43
78
|
/**
|
|
44
|
-
* Get a
|
|
45
|
-
* Get
|
|
46
|
-
* @param
|
|
79
|
+
* Get a Measurement by id.
|
|
80
|
+
* Get Measurement
|
|
81
|
+
* @param measurementId
|
|
47
82
|
*/
|
|
48
|
-
async
|
|
83
|
+
async getMeasurement(measurementId, _options) {
|
|
49
84
|
let _config = _options || this.configuration;
|
|
50
|
-
// verify required parameter '
|
|
51
|
-
if (
|
|
52
|
-
throw new baseapi_1.RequiredError("
|
|
85
|
+
// verify required parameter 'measurementId' is not null or undefined
|
|
86
|
+
if (measurementId === null || measurementId === undefined) {
|
|
87
|
+
throw new baseapi_1.RequiredError("MeasurementsApi", "getMeasurement", "measurementId");
|
|
53
88
|
}
|
|
54
89
|
// Path Params
|
|
55
|
-
const localVarPath = '/
|
|
56
|
-
.replace('{' + '
|
|
90
|
+
const localVarPath = '/measurements/{measurementId}'
|
|
91
|
+
.replace('{' + 'measurementId' + '}', encodeURIComponent(String(measurementId)));
|
|
57
92
|
// Make Request Context
|
|
58
93
|
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
59
94
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
@@ -70,15 +105,15 @@ class PlansApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
70
105
|
return requestContext;
|
|
71
106
|
}
|
|
72
107
|
/**
|
|
73
|
-
* Get a list of
|
|
74
|
-
* List
|
|
108
|
+
* Get a list of Measurements.
|
|
109
|
+
* List Measurements
|
|
75
110
|
* @param limit
|
|
76
111
|
* @param cursor
|
|
77
112
|
*/
|
|
78
|
-
async
|
|
113
|
+
async listMeasurements(limit, cursor, _options) {
|
|
79
114
|
let _config = _options || this.configuration;
|
|
80
115
|
// Path Params
|
|
81
|
-
const localVarPath = '/
|
|
116
|
+
const localVarPath = '/measurements';
|
|
82
117
|
// Make Request Context
|
|
83
118
|
const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
84
119
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
@@ -103,19 +138,51 @@ class PlansApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
103
138
|
return requestContext;
|
|
104
139
|
}
|
|
105
140
|
}
|
|
106
|
-
exports.
|
|
107
|
-
class
|
|
141
|
+
exports.MeasurementsApiRequestFactory = MeasurementsApiRequestFactory;
|
|
142
|
+
class MeasurementsApiResponseProcessor {
|
|
143
|
+
/**
|
|
144
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
145
|
+
* to the expected objects
|
|
146
|
+
*
|
|
147
|
+
* @params response Response returned by the server for a request to createMeasurement
|
|
148
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
149
|
+
*/
|
|
150
|
+
async createMeasurementWithHttpInfo(response) {
|
|
151
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
152
|
+
if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
|
|
153
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "CreateMeasurementResponse", "");
|
|
154
|
+
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
155
|
+
}
|
|
156
|
+
if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
|
|
157
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Bad Request", undefined, response.headers);
|
|
158
|
+
}
|
|
159
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
160
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
161
|
+
}
|
|
162
|
+
if ((0, util_1.isCodeInRange)("429", response.httpStatusCode)) {
|
|
163
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Too Many Requests", undefined, response.headers);
|
|
164
|
+
}
|
|
165
|
+
if ((0, util_1.isCodeInRange)("500", response.httpStatusCode)) {
|
|
166
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", undefined, response.headers);
|
|
167
|
+
}
|
|
168
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
169
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
170
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "CreateMeasurementResponse", "");
|
|
171
|
+
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
172
|
+
}
|
|
173
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
174
|
+
}
|
|
108
175
|
/**
|
|
109
176
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
110
177
|
* to the expected objects
|
|
111
178
|
*
|
|
112
|
-
* @params response Response returned by the server for a request to
|
|
179
|
+
* @params response Response returned by the server for a request to deleteMeasurement
|
|
113
180
|
* @throws ApiException if the response code was not in [200, 299]
|
|
114
181
|
*/
|
|
115
|
-
async
|
|
182
|
+
async deleteMeasurementWithHttpInfo(response) {
|
|
116
183
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
117
184
|
if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
|
|
118
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "
|
|
185
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "DeleteMeasurementResponse", "");
|
|
119
186
|
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
120
187
|
}
|
|
121
188
|
if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
|
|
@@ -135,7 +202,7 @@ class PlansApiResponseProcessor {
|
|
|
135
202
|
}
|
|
136
203
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
137
204
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
138
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "
|
|
205
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "DeleteMeasurementResponse", "");
|
|
139
206
|
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
140
207
|
}
|
|
141
208
|
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
@@ -144,13 +211,13 @@ class PlansApiResponseProcessor {
|
|
|
144
211
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
145
212
|
* to the expected objects
|
|
146
213
|
*
|
|
147
|
-
* @params response Response returned by the server for a request to
|
|
214
|
+
* @params response Response returned by the server for a request to getMeasurement
|
|
148
215
|
* @throws ApiException if the response code was not in [200, 299]
|
|
149
216
|
*/
|
|
150
|
-
async
|
|
217
|
+
async getMeasurementWithHttpInfo(response) {
|
|
151
218
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
152
219
|
if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
|
|
153
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "
|
|
220
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "GetMeasurementResponse", "");
|
|
154
221
|
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
155
222
|
}
|
|
156
223
|
if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
|
|
@@ -170,7 +237,7 @@ class PlansApiResponseProcessor {
|
|
|
170
237
|
}
|
|
171
238
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
172
239
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
173
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "
|
|
240
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "GetMeasurementResponse", "");
|
|
174
241
|
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
175
242
|
}
|
|
176
243
|
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
@@ -179,13 +246,13 @@ class PlansApiResponseProcessor {
|
|
|
179
246
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
180
247
|
* to the expected objects
|
|
181
248
|
*
|
|
182
|
-
* @params response Response returned by the server for a request to
|
|
249
|
+
* @params response Response returned by the server for a request to listMeasurements
|
|
183
250
|
* @throws ApiException if the response code was not in [200, 299]
|
|
184
251
|
*/
|
|
185
|
-
async
|
|
252
|
+
async listMeasurementsWithHttpInfo(response) {
|
|
186
253
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
187
254
|
if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
|
|
188
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "
|
|
255
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ListMeasurementsResponse", "");
|
|
189
256
|
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
190
257
|
}
|
|
191
258
|
if ((0, util_1.isCodeInRange)("400", response.httpStatusCode)) {
|
|
@@ -202,10 +269,10 @@ class PlansApiResponseProcessor {
|
|
|
202
269
|
}
|
|
203
270
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
204
271
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
205
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "
|
|
272
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), "ListMeasurementsResponse", "");
|
|
206
273
|
return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
207
274
|
}
|
|
208
275
|
throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
209
276
|
}
|
|
210
277
|
}
|
|
211
|
-
exports.
|
|
278
|
+
exports.MeasurementsApiResponseProcessor = MeasurementsApiResponseProcessor;
|
package/dist/openapi/index.d.ts
CHANGED
|
@@ -7,4 +7,4 @@ export * from "./apis/exception";
|
|
|
7
7
|
export * from "./servers";
|
|
8
8
|
export { RequiredError } from "./apis/baseapi";
|
|
9
9
|
export type { PromiseMiddleware as Middleware } from './middleware';
|
|
10
|
-
export { PromiseAuthApi as AuthApi, PromiseContractsApi as ContractsApi, PromiseCreditsApi as CreditsApi, PromiseCustomersApi as CustomersApi, PromiseEventsApi as EventsApi,
|
|
10
|
+
export { PromiseAuthApi as AuthApi, PromiseContractsApi as ContractsApi, PromiseCreditsApi as CreditsApi, PromiseCustomersApi as CustomersApi, PromiseEventsApi as EventsApi, PromiseInvoicesApi as InvoicesApi, PromiseMeasurementsApi as MeasurementsApi, PromiseMetersApi as MetersApi, PromiseProductConsumptionsApi as ProductConsumptionsApi, PromiseWebhooksApi as WebhooksApi } from './types/PromiseAPI';
|
package/dist/openapi/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.WebhooksApi = exports.
|
|
17
|
+
exports.WebhooksApi = exports.ProductConsumptionsApi = exports.MetersApi = exports.MeasurementsApi = exports.InvoicesApi = exports.EventsApi = exports.CustomersApi = exports.CreditsApi = exports.ContractsApi = exports.AuthApi = exports.RequiredError = exports.createConfiguration = void 0;
|
|
18
18
|
__exportStar(require("./http/http"), exports);
|
|
19
19
|
__exportStar(require("./auth/auth"), exports);
|
|
20
20
|
__exportStar(require("./models/all"), exports);
|
|
@@ -30,10 +30,8 @@ Object.defineProperty(exports, "ContractsApi", { enumerable: true, get: function
|
|
|
30
30
|
Object.defineProperty(exports, "CreditsApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseCreditsApi; } });
|
|
31
31
|
Object.defineProperty(exports, "CustomersApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseCustomersApi; } });
|
|
32
32
|
Object.defineProperty(exports, "EventsApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseEventsApi; } });
|
|
33
|
-
Object.defineProperty(exports, "IntegrationsApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseIntegrationsApi; } });
|
|
34
33
|
Object.defineProperty(exports, "InvoicesApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseInvoicesApi; } });
|
|
34
|
+
Object.defineProperty(exports, "MeasurementsApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseMeasurementsApi; } });
|
|
35
35
|
Object.defineProperty(exports, "MetersApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseMetersApi; } });
|
|
36
|
-
Object.defineProperty(exports, "PlansApi", { enumerable: true, get: function () { return PromiseAPI_1.PromisePlansApi; } });
|
|
37
36
|
Object.defineProperty(exports, "ProductConsumptionsApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseProductConsumptionsApi; } });
|
|
38
|
-
Object.defineProperty(exports, "ReportsApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseReportsApi; } });
|
|
39
37
|
Object.defineProperty(exports, "WebhooksApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseWebhooksApi; } });
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { CreateMeasurementRequestUsageDate } from '../models/CreateMeasurementRequestUsageDate';
|
|
13
|
+
export declare class CreateMeasurementRequest {
|
|
14
|
+
/**
|
|
15
|
+
* The customer for whom usage will be attributed
|
|
16
|
+
*/
|
|
17
|
+
'customerId': string;
|
|
18
|
+
/**
|
|
19
|
+
* The meter/product that is being measured
|
|
20
|
+
*/
|
|
21
|
+
'meterId': string;
|
|
22
|
+
'usageDate': CreateMeasurementRequestUsageDate;
|
|
23
|
+
/**
|
|
24
|
+
* The updated value of product units consumed by the customer, for the product for given day
|
|
25
|
+
*/
|
|
26
|
+
'value': number;
|
|
27
|
+
static readonly discriminator: string | undefined;
|
|
28
|
+
static readonly mapping: {
|
|
29
|
+
[index: string]: string;
|
|
30
|
+
} | undefined;
|
|
31
|
+
static readonly attributeTypeMap: Array<{
|
|
32
|
+
name: string;
|
|
33
|
+
baseName: string;
|
|
34
|
+
type: string;
|
|
35
|
+
format: string;
|
|
36
|
+
}>;
|
|
37
|
+
static getAttributeTypeMap(): {
|
|
38
|
+
name: string;
|
|
39
|
+
baseName: string;
|
|
40
|
+
type: string;
|
|
41
|
+
format: string;
|
|
42
|
+
}[];
|
|
43
|
+
constructor();
|
|
44
|
+
}
|
package/dist/openapi/models/{NetSuiteExportSalesOrderRequest.js → CreateMeasurementRequest.js}
RENAMED
|
@@ -11,34 +11,40 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
15
|
-
class
|
|
14
|
+
exports.CreateMeasurementRequest = void 0;
|
|
15
|
+
class CreateMeasurementRequest {
|
|
16
16
|
static getAttributeTypeMap() {
|
|
17
|
-
return
|
|
17
|
+
return CreateMeasurementRequest.attributeTypeMap;
|
|
18
18
|
}
|
|
19
19
|
constructor() {
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
exports.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
exports.CreateMeasurementRequest = CreateMeasurementRequest;
|
|
23
|
+
CreateMeasurementRequest.discriminator = undefined;
|
|
24
|
+
CreateMeasurementRequest.mapping = undefined;
|
|
25
|
+
CreateMeasurementRequest.attributeTypeMap = [
|
|
26
26
|
{
|
|
27
|
-
"name": "
|
|
28
|
-
"baseName": "
|
|
27
|
+
"name": "customerId",
|
|
28
|
+
"baseName": "customerId",
|
|
29
29
|
"type": "string",
|
|
30
30
|
"format": ""
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
"name": "
|
|
34
|
-
"baseName": "
|
|
35
|
-
"type": "
|
|
33
|
+
"name": "meterId",
|
|
34
|
+
"baseName": "meterId",
|
|
35
|
+
"type": "string",
|
|
36
36
|
"format": ""
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
|
-
"name": "
|
|
40
|
-
"baseName": "
|
|
41
|
-
"type": "
|
|
39
|
+
"name": "usageDate",
|
|
40
|
+
"baseName": "usageDate",
|
|
41
|
+
"type": "CreateMeasurementRequestUsageDate",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "value",
|
|
46
|
+
"baseName": "value",
|
|
47
|
+
"type": "number",
|
|
42
48
|
"format": ""
|
|
43
49
|
}
|
|
44
50
|
];
|
|
@@ -9,8 +9,13 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
/**
|
|
13
|
+
* The day the usage took place
|
|
14
|
+
*/
|
|
15
|
+
export declare class CreateMeasurementRequestUsageDate {
|
|
16
|
+
'year': number;
|
|
17
|
+
'month': number;
|
|
18
|
+
'day': number;
|
|
14
19
|
static readonly discriminator: string | undefined;
|
|
15
20
|
static readonly mapping: {
|
|
16
21
|
[index: string]: string;
|
package/dist/openapi/models/{NetSuiteSyncInvoicesResponse.js → CreateMeasurementRequestUsageDate.js}
RENAMED
|
@@ -11,28 +11,37 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
15
|
-
|
|
14
|
+
exports.CreateMeasurementRequestUsageDate = void 0;
|
|
15
|
+
/**
|
|
16
|
+
* The day the usage took place
|
|
17
|
+
*/
|
|
18
|
+
class CreateMeasurementRequestUsageDate {
|
|
16
19
|
static getAttributeTypeMap() {
|
|
17
|
-
return
|
|
20
|
+
return CreateMeasurementRequestUsageDate.attributeTypeMap;
|
|
18
21
|
}
|
|
19
22
|
constructor() {
|
|
20
23
|
}
|
|
21
24
|
}
|
|
22
|
-
exports.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
exports.CreateMeasurementRequestUsageDate = CreateMeasurementRequestUsageDate;
|
|
26
|
+
CreateMeasurementRequestUsageDate.discriminator = undefined;
|
|
27
|
+
CreateMeasurementRequestUsageDate.mapping = undefined;
|
|
28
|
+
CreateMeasurementRequestUsageDate.attributeTypeMap = [
|
|
29
|
+
{
|
|
30
|
+
"name": "year",
|
|
31
|
+
"baseName": "year",
|
|
32
|
+
"type": "number",
|
|
33
|
+
"format": ""
|
|
34
|
+
},
|
|
26
35
|
{
|
|
27
|
-
"name": "
|
|
28
|
-
"baseName": "
|
|
29
|
-
"type": "
|
|
36
|
+
"name": "month",
|
|
37
|
+
"baseName": "month",
|
|
38
|
+
"type": "number",
|
|
30
39
|
"format": ""
|
|
31
40
|
},
|
|
32
41
|
{
|
|
33
|
-
"name": "
|
|
34
|
-
"baseName": "
|
|
35
|
-
"type": "
|
|
42
|
+
"name": "day",
|
|
43
|
+
"baseName": "day",
|
|
44
|
+
"type": "number",
|
|
36
45
|
"format": ""
|
|
37
46
|
}
|
|
38
47
|
];
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
export declare class
|
|
14
|
-
'
|
|
12
|
+
import { CreateMeasurementResponseMeasurement } from '../models/CreateMeasurementResponseMeasurement';
|
|
13
|
+
export declare class CreateMeasurementResponse {
|
|
14
|
+
'measurement': CreateMeasurementResponseMeasurement;
|
|
15
15
|
static readonly discriminator: string | undefined;
|
|
16
16
|
static readonly mapping: {
|
|
17
17
|
[index: string]: string;
|