@epilot/pricing-client 3.31.0 → 3.33.0
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/LICENSE +21 -0
- package/dist/client.d.ts +0 -0
- package/dist/client.js +0 -0
- package/dist/definition.d.ts +0 -0
- package/dist/definition.js +0 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -0
- package/dist/openapi-runtime.json +0 -0
- package/dist/openapi.d.ts +111 -14
- package/dist/openapi.json +1 -1
- package/package.json +4 -5
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 epilot GmbH
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/dist/client.d.ts
CHANGED
|
File without changes
|
package/dist/client.js
CHANGED
|
File without changes
|
package/dist/definition.d.ts
CHANGED
|
File without changes
|
package/dist/definition.js
CHANGED
|
File without changes
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./client"), exports);
|
|
18
|
+
__exportStar(require("./openapi"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
File without changes
|
package/dist/openapi.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
+
|
|
2
3
|
import type {
|
|
3
4
|
OpenAPIClient,
|
|
4
5
|
Parameters,
|
|
5
6
|
UnknownParamsObject,
|
|
6
7
|
OperationResponse,
|
|
7
8
|
AxiosRequestConfig,
|
|
8
|
-
} from 'openapi-client-axios';
|
|
9
|
+
} from 'openapi-client-axios';
|
|
9
10
|
|
|
10
11
|
declare namespace Components {
|
|
11
12
|
namespace Schemas {
|
|
@@ -524,7 +525,7 @@ declare namespace Components {
|
|
|
524
525
|
/**
|
|
525
526
|
* The coupons applicable to the price item
|
|
526
527
|
*/
|
|
527
|
-
|
|
528
|
+
_coupons?: (/**
|
|
528
529
|
* The coupon configuration
|
|
529
530
|
* example:
|
|
530
531
|
* {
|
|
@@ -1222,7 +1223,7 @@ declare namespace Components {
|
|
|
1222
1223
|
/**
|
|
1223
1224
|
* The coupons applicable to the price item
|
|
1224
1225
|
*/
|
|
1225
|
-
|
|
1226
|
+
_coupons?: (/**
|
|
1226
1227
|
* The coupon configuration
|
|
1227
1228
|
* example:
|
|
1228
1229
|
* {
|
|
@@ -2813,7 +2814,7 @@ declare namespace Components {
|
|
|
2813
2814
|
/**
|
|
2814
2815
|
* The coupons applicable to the price item
|
|
2815
2816
|
*/
|
|
2816
|
-
|
|
2817
|
+
_coupons?: (/**
|
|
2817
2818
|
* The coupon configuration
|
|
2818
2819
|
* example:
|
|
2819
2820
|
* {
|
|
@@ -3873,7 +3874,7 @@ declare namespace Paths {
|
|
|
3873
3874
|
integrationId: Parameters.IntegrationId;
|
|
3874
3875
|
}
|
|
3875
3876
|
namespace Responses {
|
|
3876
|
-
export type $200 =
|
|
3877
|
+
export type $200 = Components.Schemas.IntegrationCredentialsResult;
|
|
3877
3878
|
export type $400 = Components.Schemas.Error;
|
|
3878
3879
|
export type $404 = Components.Schemas.Error;
|
|
3879
3880
|
}
|
|
@@ -3919,7 +3920,7 @@ declare namespace Paths {
|
|
|
3919
3920
|
export interface PathParameters {
|
|
3920
3921
|
integrationId: Parameters.IntegrationId;
|
|
3921
3922
|
}
|
|
3922
|
-
export type RequestBody =
|
|
3923
|
+
export type RequestBody = Components.Schemas.SaveIntegrationCredentialsParams;
|
|
3923
3924
|
namespace Responses {
|
|
3924
3925
|
export interface $204 {
|
|
3925
3926
|
}
|
|
@@ -4156,7 +4157,7 @@ export interface OperationMethods {
|
|
|
4156
4157
|
* Validates an availability file, it returns an array of errors if the file is invalid
|
|
4157
4158
|
*/
|
|
4158
4159
|
'$validateAvailabilityFile'(
|
|
4159
|
-
parameters?: Parameters<Paths.$ValidateAvailabilityFile.
|
|
4160
|
+
parameters?: Parameters<Paths.$ValidateAvailabilityFile.HeaderParameters & Paths.$ValidateAvailabilityFile.PathParameters> | null,
|
|
4160
4161
|
data?: any,
|
|
4161
4162
|
config?: AxiosRequestConfig
|
|
4162
4163
|
): OperationResponse<Paths.$ValidateAvailabilityFile.Responses.$200>
|
|
@@ -4166,7 +4167,7 @@ export interface OperationMethods {
|
|
|
4166
4167
|
* Returns the list of providers available based on a given location
|
|
4167
4168
|
*/
|
|
4168
4169
|
'$searchProviders'(
|
|
4169
|
-
parameters?: Parameters<Paths.$SearchProviders.
|
|
4170
|
+
parameters?: Parameters<Paths.$SearchProviders.HeaderParameters & Paths.$SearchProviders.PathParameters> | null,
|
|
4170
4171
|
data?: Paths.$SearchProviders.RequestBody,
|
|
4171
4172
|
config?: AxiosRequestConfig
|
|
4172
4173
|
): OperationResponse<Paths.$SearchProviders.Responses.$200>
|
|
@@ -4176,7 +4177,7 @@ export interface OperationMethods {
|
|
|
4176
4177
|
* Returns the list of streets available for a given postal code and city
|
|
4177
4178
|
*/
|
|
4178
4179
|
'$searchStreets'(
|
|
4179
|
-
parameters?: Parameters<Paths.$SearchStreets.
|
|
4180
|
+
parameters?: Parameters<Paths.$SearchStreets.HeaderParameters & Paths.$SearchStreets.PathParameters> | null,
|
|
4180
4181
|
data?: Paths.$SearchStreets.RequestBody,
|
|
4181
4182
|
config?: AxiosRequestConfig
|
|
4182
4183
|
): OperationResponse<Paths.$SearchStreets.Responses.$200>
|
|
@@ -4186,7 +4187,7 @@ export interface OperationMethods {
|
|
|
4186
4187
|
* Returns the price for a given product type based on location and consumption
|
|
4187
4188
|
*/
|
|
4188
4189
|
'$computePrice'(
|
|
4189
|
-
parameters?: Parameters<Paths.$ComputePrice.
|
|
4190
|
+
parameters?: Parameters<Paths.$ComputePrice.HeaderParameters & Paths.$ComputePrice.PathParameters> | null,
|
|
4190
4191
|
data?: Paths.$ComputePrice.RequestBody,
|
|
4191
4192
|
config?: AxiosRequestConfig
|
|
4192
4193
|
): OperationResponse<Paths.$ComputePrice.Responses.$200>
|
|
@@ -4325,7 +4326,7 @@ export interface PathsDictionary {
|
|
|
4325
4326
|
* Validates an availability file, it returns an array of errors if the file is invalid
|
|
4326
4327
|
*/
|
|
4327
4328
|
'get'(
|
|
4328
|
-
parameters?: Parameters<Paths.$ValidateAvailabilityFile.
|
|
4329
|
+
parameters?: Parameters<Paths.$ValidateAvailabilityFile.HeaderParameters & Paths.$ValidateAvailabilityFile.PathParameters> | null,
|
|
4329
4330
|
data?: any,
|
|
4330
4331
|
config?: AxiosRequestConfig
|
|
4331
4332
|
): OperationResponse<Paths.$ValidateAvailabilityFile.Responses.$200>
|
|
@@ -4337,7 +4338,7 @@ export interface PathsDictionary {
|
|
|
4337
4338
|
* Returns the list of providers available based on a given location
|
|
4338
4339
|
*/
|
|
4339
4340
|
'post'(
|
|
4340
|
-
parameters?: Parameters<Paths.$SearchProviders.
|
|
4341
|
+
parameters?: Parameters<Paths.$SearchProviders.HeaderParameters & Paths.$SearchProviders.PathParameters> | null,
|
|
4341
4342
|
data?: Paths.$SearchProviders.RequestBody,
|
|
4342
4343
|
config?: AxiosRequestConfig
|
|
4343
4344
|
): OperationResponse<Paths.$SearchProviders.Responses.$200>
|
|
@@ -4349,7 +4350,7 @@ export interface PathsDictionary {
|
|
|
4349
4350
|
* Returns the list of streets available for a given postal code and city
|
|
4350
4351
|
*/
|
|
4351
4352
|
'post'(
|
|
4352
|
-
parameters?: Parameters<Paths.$SearchStreets.
|
|
4353
|
+
parameters?: Parameters<Paths.$SearchStreets.HeaderParameters & Paths.$SearchStreets.PathParameters> | null,
|
|
4353
4354
|
data?: Paths.$SearchStreets.RequestBody,
|
|
4354
4355
|
config?: AxiosRequestConfig
|
|
4355
4356
|
): OperationResponse<Paths.$SearchStreets.Responses.$200>
|
|
@@ -4361,7 +4362,7 @@ export interface PathsDictionary {
|
|
|
4361
4362
|
* Returns the price for a given product type based on location and consumption
|
|
4362
4363
|
*/
|
|
4363
4364
|
'post'(
|
|
4364
|
-
parameters?: Parameters<Paths.$ComputePrice.
|
|
4365
|
+
parameters?: Parameters<Paths.$ComputePrice.HeaderParameters & Paths.$ComputePrice.PathParameters> | null,
|
|
4365
4366
|
data?: Paths.$ComputePrice.RequestBody,
|
|
4366
4367
|
config?: AxiosRequestConfig
|
|
4367
4368
|
): OperationResponse<Paths.$ComputePrice.Responses.$200>
|
|
@@ -4405,3 +4406,99 @@ export interface PathsDictionary {
|
|
|
4405
4406
|
}
|
|
4406
4407
|
|
|
4407
4408
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
4409
|
+
|
|
4410
|
+
export type Address = Components.Schemas.Address;
|
|
4411
|
+
export type Amounts = Components.Schemas.Amounts;
|
|
4412
|
+
export type AvailabilityCheckParams = Components.Schemas.AvailabilityCheckParams;
|
|
4413
|
+
export type AvailabilityDate = Components.Schemas.AvailabilityDate;
|
|
4414
|
+
export type AvailabilityFilters = Components.Schemas.AvailabilityFilters;
|
|
4415
|
+
export type AvailabilityLocation = Components.Schemas.AvailabilityLocation;
|
|
4416
|
+
export type AvailabilityResult = Components.Schemas.AvailabilityResult;
|
|
4417
|
+
export type BasePriceItem = Components.Schemas.BasePriceItem;
|
|
4418
|
+
export type BasePriceItemDto = Components.Schemas.BasePriceItemDto;
|
|
4419
|
+
export type BasicAuthCredentials = Components.Schemas.BasicAuthCredentials;
|
|
4420
|
+
export type BillingPeriod = Components.Schemas.BillingPeriod;
|
|
4421
|
+
export type Cart = Components.Schemas.Cart;
|
|
4422
|
+
export type CartDto = Components.Schemas.CartDto;
|
|
4423
|
+
export type CatalogSearch = Components.Schemas.CatalogSearch;
|
|
4424
|
+
export type CatalogSearchResult = Components.Schemas.CatalogSearchResult;
|
|
4425
|
+
export type CheckoutCart = Components.Schemas.CheckoutCart;
|
|
4426
|
+
export type CheckoutCartResult = Components.Schemas.CheckoutCartResult;
|
|
4427
|
+
export type CheckoutMode = Components.Schemas.CheckoutMode;
|
|
4428
|
+
export type CompositePrice = Components.Schemas.CompositePrice;
|
|
4429
|
+
export type CompositePriceItem = Components.Schemas.CompositePriceItem;
|
|
4430
|
+
export type CompositePriceItemDto = Components.Schemas.CompositePriceItemDto;
|
|
4431
|
+
export type ComputePriceParams = Components.Schemas.ComputePriceParams;
|
|
4432
|
+
export type ComputePriceParamsBase = Components.Schemas.ComputePriceParamsBase;
|
|
4433
|
+
export type ComputePriceParamsGas = Components.Schemas.ComputePriceParamsGas;
|
|
4434
|
+
export type ComputePriceParamsPower = Components.Schemas.ComputePriceParamsPower;
|
|
4435
|
+
export type ComputePriceResult = Components.Schemas.ComputePriceResult;
|
|
4436
|
+
export type ComputedBasePrice = Components.Schemas.ComputedBasePrice;
|
|
4437
|
+
export type ComputedPriceBreakdown = Components.Schemas.ComputedPriceBreakdown;
|
|
4438
|
+
export type ComputedPriceComponents = Components.Schemas.ComputedPriceComponents;
|
|
4439
|
+
export type ConsumptionTypeGetAg = Components.Schemas.ConsumptionTypeGetAg;
|
|
4440
|
+
export type Coupon = Components.Schemas.Coupon;
|
|
4441
|
+
export type Currency = Components.Schemas.Currency;
|
|
4442
|
+
export type Customer = Components.Schemas.Customer;
|
|
4443
|
+
export type EntityId = Components.Schemas.EntityId;
|
|
4444
|
+
export type EntityItem = Components.Schemas.EntityItem;
|
|
4445
|
+
export type EntityRelation = Components.Schemas.EntityRelation;
|
|
4446
|
+
export type Error = Components.Schemas.Error;
|
|
4447
|
+
export type ExternalFeeMapping = Components.Schemas.ExternalFeeMapping;
|
|
4448
|
+
export type ExternalFeeMappings = Components.Schemas.ExternalFeeMappings;
|
|
4449
|
+
export type ExternalFeeMetadata = Components.Schemas.ExternalFeeMetadata;
|
|
4450
|
+
export type File = Components.Schemas.File;
|
|
4451
|
+
export type GasConcessionType = Components.Schemas.GasConcessionType;
|
|
4452
|
+
export type IntegrationCredentialsResult = Components.Schemas.IntegrationCredentialsResult;
|
|
4453
|
+
export type IntegrationId = Components.Schemas.IntegrationId;
|
|
4454
|
+
export type MarkupPricingModel = Components.Schemas.MarkupPricingModel;
|
|
4455
|
+
export type MetaData = Components.Schemas.MetaData;
|
|
4456
|
+
export type Opportunity = Components.Schemas.Opportunity;
|
|
4457
|
+
export type OpportunitySource = Components.Schemas.OpportunitySource;
|
|
4458
|
+
export type Order = Components.Schemas.Order;
|
|
4459
|
+
export type OrderPayload = Components.Schemas.OrderPayload;
|
|
4460
|
+
export type OrderRelation = Components.Schemas.OrderRelation;
|
|
4461
|
+
export type OrderSource = Components.Schemas.OrderSource;
|
|
4462
|
+
export type OrderStatus = Components.Schemas.OrderStatus;
|
|
4463
|
+
export type PaymentMethod = Components.Schemas.PaymentMethod;
|
|
4464
|
+
export type PowerMeterType = Components.Schemas.PowerMeterType;
|
|
4465
|
+
export type Price = Components.Schemas.Price;
|
|
4466
|
+
export type PriceComponentRelation = Components.Schemas.PriceComponentRelation;
|
|
4467
|
+
export type PriceGetAg = Components.Schemas.PriceGetAg;
|
|
4468
|
+
export type PriceInputMapping = Components.Schemas.PriceInputMapping;
|
|
4469
|
+
export type PriceInputMappings = Components.Schemas.PriceInputMappings;
|
|
4470
|
+
export type PriceItem = Components.Schemas.PriceItem;
|
|
4471
|
+
export type PriceItemDto = Components.Schemas.PriceItemDto;
|
|
4472
|
+
export type PriceItems = Components.Schemas.PriceItems;
|
|
4473
|
+
export type PriceItemsDto = Components.Schemas.PriceItemsDto;
|
|
4474
|
+
export type PriceTier = Components.Schemas.PriceTier;
|
|
4475
|
+
export type PriceTierDisplayMode = Components.Schemas.PriceTierDisplayMode;
|
|
4476
|
+
export type PriceTierEnhanced = Components.Schemas.PriceTierEnhanced;
|
|
4477
|
+
export type PricingDetails = Components.Schemas.PricingDetails;
|
|
4478
|
+
export type PricingDetailsResponse = Components.Schemas.PricingDetailsResponse;
|
|
4479
|
+
export type PricingModel = Components.Schemas.PricingModel;
|
|
4480
|
+
export type Product = Components.Schemas.Product;
|
|
4481
|
+
export type ProductCategory = Components.Schemas.ProductCategory;
|
|
4482
|
+
export type Provider = Components.Schemas.Provider;
|
|
4483
|
+
export type RecurrenceAmount = Components.Schemas.RecurrenceAmount;
|
|
4484
|
+
export type RecurrenceAmountDto = Components.Schemas.RecurrenceAmountDto;
|
|
4485
|
+
export type RecurrenceAmountWithTax = Components.Schemas.RecurrenceAmountWithTax;
|
|
4486
|
+
export type SalesTax = Components.Schemas.SalesTax;
|
|
4487
|
+
export type SaveIntegrationCredentialsParams = Components.Schemas.SaveIntegrationCredentialsParams;
|
|
4488
|
+
export type SearchProvidersParams = Components.Schemas.SearchProvidersParams;
|
|
4489
|
+
export type SearchProvidersResult = Components.Schemas.SearchProvidersResult;
|
|
4490
|
+
export type SearchStreetsParams = Components.Schemas.SearchStreetsParams;
|
|
4491
|
+
export type SearchStreetsResult = Components.Schemas.SearchStreetsResult;
|
|
4492
|
+
export type SignatureMeta = Components.Schemas.SignatureMeta;
|
|
4493
|
+
export type Street = Components.Schemas.Street;
|
|
4494
|
+
export type TariffTypeGetAg = Components.Schemas.TariffTypeGetAg;
|
|
4495
|
+
export type Tax = Components.Schemas.Tax;
|
|
4496
|
+
export type TaxAmount = Components.Schemas.TaxAmount;
|
|
4497
|
+
export type TaxAmountBreakdown = Components.Schemas.TaxAmountBreakdown;
|
|
4498
|
+
export type TaxAmountDto = Components.Schemas.TaxAmountDto;
|
|
4499
|
+
export type TaxBreakdownInfo = Components.Schemas.TaxBreakdownInfo;
|
|
4500
|
+
export type TierDetails = Components.Schemas.TierDetails;
|
|
4501
|
+
export type TotalDetails = Components.Schemas.TotalDetails;
|
|
4502
|
+
export type TypeGetAg = Components.Schemas.TypeGetAg;
|
|
4503
|
+
export type ValidateAvailabilityFileError = Components.Schemas.ValidateAvailabilityFileError;
|
|
4504
|
+
export type ValidateAvailabilityFileResult = Components.Schemas.ValidateAvailabilityFileResult;
|
package/dist/openapi.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/pricing-client",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.33.0",
|
|
4
4
|
"description": "Client for epilot Pricing APIs",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"bundle-definition": "webpack",
|
|
26
26
|
"openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/pricing-api.yaml",
|
|
27
27
|
"openapi:local": "npx openapicmd read --json ../../../pricing-api/lambda/ApiHandlerFunction/openapi.yml > ./src/openapi.json",
|
|
28
|
-
"typegen": "
|
|
28
|
+
"typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
|
|
29
29
|
"build": "tsc && npm run bundle-definition",
|
|
30
30
|
"build:watch": "npm run build && tsc -w",
|
|
31
31
|
"prepublishOnly": "npm run typegen && npm run build",
|
|
@@ -62,8 +62,7 @@
|
|
|
62
62
|
"copy-webpack-plugin": "^7.0.0",
|
|
63
63
|
"jest": "^26.6.3",
|
|
64
64
|
"json-loader": "^0.5.7",
|
|
65
|
-
"
|
|
66
|
-
"openapicmd": "^2.1.0",
|
|
65
|
+
"openapicmd": "^2.6.0",
|
|
67
66
|
"ts-jest": "^26.5.0",
|
|
68
67
|
"ts-loader": "^8.0.14",
|
|
69
68
|
"ts-node": "^10.9.1",
|
|
@@ -71,5 +70,5 @@
|
|
|
71
70
|
"webpack": "^5.18.0",
|
|
72
71
|
"webpack-cli": "^4.4.0"
|
|
73
72
|
},
|
|
74
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "6c12dc4aaf7ddf60ad11c6f596fb478559fa3052"
|
|
75
74
|
}
|