@epilot/pricing-client 3.50.1 → 3.50.3-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/dist/definition.js +1 -1
- package/dist/openapi.d.ts +12 -0
- package/dist/openapi.json +6 -1
- package/package.json +4 -4
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={
|
|
1
|
+
(()=>{"use strict";var e={330:function(e,r,t){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var a=i(t(466));r.default=a.default},466:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"servers":[{"url":"https://pricing-api.sls.epilot.io"}],"paths":{"/v1/pricing:compute":{"post":{"operationId":"$calculatePricingDetails","requestBody":{"required":false,"content":{"application/json":{}}},"responses":{}}},"/v1/order":{"post":{"operationId":"createOrder","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/order/{id}":{"put":{"operationId":"putOrder","parameters":[{"in":"path","name":"id","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/public/cart:checkout":{"post":{"operationId":"$checkoutCart","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/public/catalog":{"post":{"operationId":"$searchCatalog","parameters":[{"in":"header","name":"X-Ivy-Org-ID"},{"in":"header","name":"Authorization"}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/catalog":{"post":{"operationId":"$privateSearchCatalog","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/public/validate-promo-codes":{"post":{"operationId":"$validatePromoCodes","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/public/availability:check":{"post":{"operationId":"$availabilityCheck","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/validate-availability/{id}":{"get":{"operationId":"$validateAvailabilityFile","parameters":[{"in":"path","name":"id","required":true},{"in":"header","name":"X-Epilot-Org-ID","required":true}],"responses":{}}},"/v1/public/historicMarketPrices":{"get":{"operationId":"$historicMarketPrices","parameters":[{"in":"query","name":"market","required":true},{"in":"query","name":"bidding_zone","required":true},{"in":"query","name":"frequency","required":true},{"in":"query","name":"from","required":true},{"in":"query","name":"to","required":true}],"responses":{}}},"/v1/public/averageMarketPrice":{"get":{"operationId":"$averageMarketPrice","parameters":[{"in":"query","name":"market","required":true},{"in":"query","name":"bidding_zone","required":true},{"in":"query","name":"from","required":true},{"in":"query","name":"to","required":true}],"responses":{}}},"/v1/public/integration/{integrationId}/external-catalog":{"post":{"deprecated":true,"operationId":"$searchExternalCatalog","parameters":[{"in":"path","name":"integrationId","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/public/integration/{integrationId}/products":{"post":{"operationId":"$searchExternalProducts","parameters":[{"in":"path","name":"integrationId","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/public/integration/{integrationId}/providers:search":{"post":{"operationId":"$searchProviders","parameters":[{"in":"header","name":"X-Epilot-Org-ID","required":true},{"in":"path","name":"integrationId","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/public/integration/{integrationId}/streets:search":{"post":{"operationId":"$searchStreets","parameters":[{"in":"header","name":"X-Epilot-Org-ID","required":true},{"in":"path","name":"integrationId","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/public/integration/{integrationId}/compute-price":{"post":{"operationId":"$computePrice","parameters":[{"in":"header","name":"X-Epilot-Org-ID","required":true},{"in":"path","name":"integrationId","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/integration/{integrationId}/credentials":{"get":{"operationId":"$getCredentials","parameters":[{"in":"path","name":"integrationId","required":true}],"responses":{}}},"/v1/integration/{integrationId}/credentials:save":{"put":{"operationId":"$saveCredentials","parameters":[{"in":"path","name":"integrationId","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/integration/{integrationId}/credentials:delete":{"delete":{"operationId":"$deleteCredentials","parameters":[{"in":"path","name":"integrationId","required":true}],"responses":{}}},"/v1/public/product-recommendations":{"post":{"operationId":"$productRecommendations","parameters":[{"in":"header","name":"X-Ivy-Org-ID"}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}}},"components":{}}')}},r={},t=function t(i){var a=r[i];if(void 0!==a)return a.exports;var n=r[i]={exports:{}};return e[i].call(n.exports,n,n.exports,t),n.exports}(330),i=exports;for(var a in t)i[a]=t[a];t.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
|
package/dist/openapi.d.ts
CHANGED
|
@@ -3832,6 +3832,10 @@ declare namespace Components {
|
|
|
3832
3832
|
* The billing period (defaults to monthly)
|
|
3833
3833
|
*/
|
|
3834
3834
|
billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly" | "one_time";
|
|
3835
|
+
/**
|
|
3836
|
+
* The optional reference date for the price computation (ISO 8601 format)
|
|
3837
|
+
*/
|
|
3838
|
+
reference_date?: string; // date
|
|
3835
3839
|
}
|
|
3836
3840
|
/**
|
|
3837
3841
|
* The compute price payload for gas
|
|
@@ -3865,6 +3869,10 @@ declare namespace Components {
|
|
|
3865
3869
|
* The billing period (defaults to monthly)
|
|
3866
3870
|
*/
|
|
3867
3871
|
billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly" | "one_time";
|
|
3872
|
+
/**
|
|
3873
|
+
* The optional reference date for the price computation (ISO 8601 format)
|
|
3874
|
+
*/
|
|
3875
|
+
reference_date?: string; // date
|
|
3868
3876
|
/**
|
|
3869
3877
|
* The type of energy to compute the price
|
|
3870
3878
|
*/
|
|
@@ -3903,6 +3911,10 @@ declare namespace Components {
|
|
|
3903
3911
|
* The billing period (defaults to monthly)
|
|
3904
3912
|
*/
|
|
3905
3913
|
billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly" | "one_time";
|
|
3914
|
+
/**
|
|
3915
|
+
* The optional reference date for the price computation (ISO 8601 format)
|
|
3916
|
+
*/
|
|
3917
|
+
reference_date?: string; // date
|
|
3906
3918
|
/**
|
|
3907
3919
|
* The type of energy to compute the price
|
|
3908
3920
|
*/
|
package/dist/openapi.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Pricing API",
|
|
5
5
|
"description": "The `pricing-api` hub sets the foundations for the following Pricing APIs:\n\n### Order API\nThis api enables the management of orders in epilot 360, providing features such as:\n - Automatic calculation of totals and price breakdowns for taxes on the Order entity\n - Product and pricing data validation\n\n### Shopping Cart API\nUsed to interact with a cart during a customer's checkout session, providing:\n - An unified data model to model a Shopping Cart\n - Product and pricing data validation\n - Checkout a cart into an order or quote\n\n### Catalog API\nProvides a way to query the entire catalog of products and prices.\n\n### Availability API\nProvides endpoints for querying products availability by a set of predefined dimensions.\n\n### Spot Market API\nProvides endpoints to fetch (historic) spot market price data.\n\n### External Integrations API\nProvides endpoints for external integrations.\n\n### Product Recommendations API\nProvides endpoints for product recommendations.\n",
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.1.0",
|
|
7
7
|
"termsOfService": "https://epilot.cloud/agb",
|
|
8
8
|
"contact": {
|
|
9
9
|
"name": "Support",
|
|
@@ -5004,6 +5004,11 @@
|
|
|
5004
5004
|
"one_time"
|
|
5005
5005
|
],
|
|
5006
5006
|
"default": "monthly"
|
|
5007
|
+
},
|
|
5008
|
+
"reference_date": {
|
|
5009
|
+
"description": "The optional reference date for the price computation (ISO 8601 format)",
|
|
5010
|
+
"type": "string",
|
|
5011
|
+
"format": "date"
|
|
5007
5012
|
}
|
|
5008
5013
|
},
|
|
5009
5014
|
"required": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/pricing-client",
|
|
3
|
-
"version": "3.50.
|
|
3
|
+
"version": "3.50.3-0",
|
|
4
4
|
"description": "Client for epilot Pricing APIs",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@dazn/lambda-powertools-correlation-ids": "^1.28.1",
|
|
42
42
|
"buffer": "^6.0.3",
|
|
43
43
|
"https-browserify": "^1.0.0",
|
|
44
|
-
"openapi-client-axios": "^7.
|
|
44
|
+
"openapi-client-axios": "^7.8.0",
|
|
45
45
|
"stream-http": "^3.1.1",
|
|
46
46
|
"url": "^0.11.0",
|
|
47
47
|
"util": "^0.12.3"
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"@types/jest": "^26.0.20",
|
|
51
51
|
"axios": "^1.11.0",
|
|
52
52
|
"copy-webpack-plugin": "^7.0.0",
|
|
53
|
-
"jest": "^
|
|
53
|
+
"jest": "^29.6.2",
|
|
54
54
|
"json-loader": "^0.5.7",
|
|
55
55
|
"openapicmd": "^2.7.0",
|
|
56
|
-
"ts-jest": "^
|
|
56
|
+
"ts-jest": "^29.4.1",
|
|
57
57
|
"ts-loader": "^8.0.14",
|
|
58
58
|
"ts-node": "^10.9.1",
|
|
59
59
|
"typescript": "^4.1.3",
|