@epilot/pricing-client 3.51.1 → 3.51.2-alpha.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-runtime.json +4 -5
- package/dist/openapi.d.ts +30 -25
- package/dist/openapi.json +28 -103
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={390: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
|
|
1
|
+
(()=>{"use strict";var e={390: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 n=i(t(466));r.default=n.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}/products":{"post":{"operationId":"$searchExternalProducts","parameters":[{"in":"path","name":"integrationId","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/public/integration/{integrationId}/products-recommendation":{"post":{"operationId":"$searchExternalProductsRecommendation","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 n=r[i];if(void 0!==n)return n.exports;var a=r[i]={exports:{}};return e[i].call(a.exports,a,a.exports,t),a.exports}(390),i=exports;for(var n in t)i[n]=t[n];t.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
|
|
@@ -223,10 +223,9 @@
|
|
|
223
223
|
"responses": {}
|
|
224
224
|
}
|
|
225
225
|
},
|
|
226
|
-
"/v1/public/integration/{integrationId}/
|
|
226
|
+
"/v1/public/integration/{integrationId}/products": {
|
|
227
227
|
"post": {
|
|
228
|
-
"
|
|
229
|
-
"operationId": "$searchExternalCatalog",
|
|
228
|
+
"operationId": "$searchExternalProducts",
|
|
230
229
|
"parameters": [
|
|
231
230
|
{
|
|
232
231
|
"in": "path",
|
|
@@ -243,9 +242,9 @@
|
|
|
243
242
|
"responses": {}
|
|
244
243
|
}
|
|
245
244
|
},
|
|
246
|
-
"/v1/public/integration/{integrationId}/products": {
|
|
245
|
+
"/v1/public/integration/{integrationId}/products-recommendation": {
|
|
247
246
|
"post": {
|
|
248
|
-
"operationId": "$
|
|
247
|
+
"operationId": "$searchExternalProductsRecommendation",
|
|
249
248
|
"parameters": [
|
|
250
249
|
{
|
|
251
250
|
"in": "path",
|
package/dist/openapi.d.ts
CHANGED
|
@@ -9071,6 +9071,10 @@ declare namespace Components {
|
|
|
9071
9071
|
export interface SearchExternalCatalogParams {
|
|
9072
9072
|
context: JourneyContext;
|
|
9073
9073
|
}
|
|
9074
|
+
export interface SearchExternalCatalogRecommendationsResult {
|
|
9075
|
+
source: /* An external product & price information (already computed) from an external catalog. */ ExternalCatalogItem;
|
|
9076
|
+
offers: /* An external product & price information (already computed) from an external catalog. */ ExternalCatalogItem[];
|
|
9077
|
+
}
|
|
9074
9078
|
export interface SearchExternalCatalogResult {
|
|
9075
9079
|
/**
|
|
9076
9080
|
* The number of results returned.
|
|
@@ -9633,7 +9637,7 @@ declare namespace Paths {
|
|
|
9633
9637
|
export type $400 = Components.Schemas.Error;
|
|
9634
9638
|
}
|
|
9635
9639
|
}
|
|
9636
|
-
namespace $
|
|
9640
|
+
namespace $SearchExternalProducts {
|
|
9637
9641
|
namespace Parameters {
|
|
9638
9642
|
export type IntegrationId = Components.Schemas.IntegrationId;
|
|
9639
9643
|
}
|
|
@@ -9647,7 +9651,7 @@ declare namespace Paths {
|
|
|
9647
9651
|
export type $403 = Components.Schemas.Error;
|
|
9648
9652
|
}
|
|
9649
9653
|
}
|
|
9650
|
-
namespace $
|
|
9654
|
+
namespace $SearchExternalProductsRecommendation {
|
|
9651
9655
|
namespace Parameters {
|
|
9652
9656
|
export type IntegrationId = Components.Schemas.IntegrationId;
|
|
9653
9657
|
}
|
|
@@ -9656,7 +9660,7 @@ declare namespace Paths {
|
|
|
9656
9660
|
}
|
|
9657
9661
|
export type RequestBody = Components.Schemas.SearchExternalCatalogParams;
|
|
9658
9662
|
namespace Responses {
|
|
9659
|
-
export type $200 = Components.Schemas.
|
|
9663
|
+
export type $200 = Components.Schemas.SearchExternalCatalogRecommendationsResult;
|
|
9660
9664
|
export type $400 = Components.Schemas.Error;
|
|
9661
9665
|
export type $403 = Components.Schemas.Error;
|
|
9662
9666
|
}
|
|
@@ -11011,16 +11015,6 @@ export interface OperationMethods {
|
|
|
11011
11015
|
data?: any,
|
|
11012
11016
|
config?: AxiosRequestConfig
|
|
11013
11017
|
): OperationResponse<Paths.$AverageMarketPrice.Responses.$200>
|
|
11014
|
-
/**
|
|
11015
|
-
* $searchExternalCatalog - searchExternalCatalog
|
|
11016
|
-
*
|
|
11017
|
-
* Returns the list of available products (including computed prices) based on a given context.
|
|
11018
|
-
*/
|
|
11019
|
-
'$searchExternalCatalog'(
|
|
11020
|
-
parameters?: Parameters<Paths.$SearchExternalCatalog.PathParameters> | null,
|
|
11021
|
-
data?: Paths.$SearchExternalCatalog.RequestBody,
|
|
11022
|
-
config?: AxiosRequestConfig
|
|
11023
|
-
): OperationResponse<Paths.$SearchExternalCatalog.Responses.$200>
|
|
11024
11018
|
/**
|
|
11025
11019
|
* $searchExternalProducts - searchExternalProducts
|
|
11026
11020
|
*
|
|
@@ -11031,6 +11025,16 @@ export interface OperationMethods {
|
|
|
11031
11025
|
data?: Paths.$SearchExternalProducts.RequestBody,
|
|
11032
11026
|
config?: AxiosRequestConfig
|
|
11033
11027
|
): OperationResponse<Paths.$SearchExternalProducts.Responses.$200>
|
|
11028
|
+
/**
|
|
11029
|
+
* $searchExternalProductsRecommendation - searchExternalProductsRecommendation
|
|
11030
|
+
*
|
|
11031
|
+
* Returns the list of available products recommendation with computed prices based on a given context and for a given org integration.
|
|
11032
|
+
*/
|
|
11033
|
+
'$searchExternalProductsRecommendation'(
|
|
11034
|
+
parameters?: Parameters<Paths.$SearchExternalProductsRecommendation.PathParameters> | null,
|
|
11035
|
+
data?: Paths.$SearchExternalProductsRecommendation.RequestBody,
|
|
11036
|
+
config?: AxiosRequestConfig
|
|
11037
|
+
): OperationResponse<Paths.$SearchExternalProductsRecommendation.Responses.$200>
|
|
11034
11038
|
/**
|
|
11035
11039
|
* $searchProviders - searchProviders
|
|
11036
11040
|
*
|
|
@@ -11247,18 +11251,6 @@ export interface PathsDictionary {
|
|
|
11247
11251
|
config?: AxiosRequestConfig
|
|
11248
11252
|
): OperationResponse<Paths.$AverageMarketPrice.Responses.$200>
|
|
11249
11253
|
}
|
|
11250
|
-
['/v1/public/integration/{integrationId}/external-catalog']: {
|
|
11251
|
-
/**
|
|
11252
|
-
* $searchExternalCatalog - searchExternalCatalog
|
|
11253
|
-
*
|
|
11254
|
-
* Returns the list of available products (including computed prices) based on a given context.
|
|
11255
|
-
*/
|
|
11256
|
-
'post'(
|
|
11257
|
-
parameters?: Parameters<Paths.$SearchExternalCatalog.PathParameters> | null,
|
|
11258
|
-
data?: Paths.$SearchExternalCatalog.RequestBody,
|
|
11259
|
-
config?: AxiosRequestConfig
|
|
11260
|
-
): OperationResponse<Paths.$SearchExternalCatalog.Responses.$200>
|
|
11261
|
-
}
|
|
11262
11254
|
['/v1/public/integration/{integrationId}/products']: {
|
|
11263
11255
|
/**
|
|
11264
11256
|
* $searchExternalProducts - searchExternalProducts
|
|
@@ -11271,6 +11263,18 @@ export interface PathsDictionary {
|
|
|
11271
11263
|
config?: AxiosRequestConfig
|
|
11272
11264
|
): OperationResponse<Paths.$SearchExternalProducts.Responses.$200>
|
|
11273
11265
|
}
|
|
11266
|
+
['/v1/public/integration/{integrationId}/products-recommendation']: {
|
|
11267
|
+
/**
|
|
11268
|
+
* $searchExternalProductsRecommendation - searchExternalProductsRecommendation
|
|
11269
|
+
*
|
|
11270
|
+
* Returns the list of available products recommendation with computed prices based on a given context and for a given org integration.
|
|
11271
|
+
*/
|
|
11272
|
+
'post'(
|
|
11273
|
+
parameters?: Parameters<Paths.$SearchExternalProductsRecommendation.PathParameters> | null,
|
|
11274
|
+
data?: Paths.$SearchExternalProductsRecommendation.RequestBody,
|
|
11275
|
+
config?: AxiosRequestConfig
|
|
11276
|
+
): OperationResponse<Paths.$SearchExternalProductsRecommendation.Responses.$200>
|
|
11277
|
+
}
|
|
11274
11278
|
['/v1/public/integration/{integrationId}/providers:search']: {
|
|
11275
11279
|
/**
|
|
11276
11280
|
* $searchProviders - searchProviders
|
|
@@ -11472,6 +11476,7 @@ export type RedeemedPromo = Components.Schemas.RedeemedPromo;
|
|
|
11472
11476
|
export type SalesTax = Components.Schemas.SalesTax;
|
|
11473
11477
|
export type SaveIntegrationCredentialsParams = Components.Schemas.SaveIntegrationCredentialsParams;
|
|
11474
11478
|
export type SearchExternalCatalogParams = Components.Schemas.SearchExternalCatalogParams;
|
|
11479
|
+
export type SearchExternalCatalogRecommendationsResult = Components.Schemas.SearchExternalCatalogRecommendationsResult;
|
|
11475
11480
|
export type SearchExternalCatalogResult = Components.Schemas.SearchExternalCatalogResult;
|
|
11476
11481
|
export type SearchProvidersParams = Components.Schemas.SearchProvidersParams;
|
|
11477
11482
|
export type SearchProvidersResult = Components.Schemas.SearchProvidersResult;
|
package/dist/openapi.json
CHANGED
|
@@ -1682,11 +1682,10 @@
|
|
|
1682
1682
|
}
|
|
1683
1683
|
}
|
|
1684
1684
|
},
|
|
1685
|
-
"/v1/public/integration/{integrationId}/
|
|
1685
|
+
"/v1/public/integration/{integrationId}/products": {
|
|
1686
1686
|
"post": {
|
|
1687
|
-
"
|
|
1688
|
-
"
|
|
1689
|
-
"operationId": "$searchExternalCatalog",
|
|
1687
|
+
"description": "Returns the list of available products with computed prices based on a given context and for a given org integration.",
|
|
1688
|
+
"operationId": "$searchExternalProducts",
|
|
1690
1689
|
"security": [
|
|
1691
1690
|
{},
|
|
1692
1691
|
{
|
|
@@ -1705,7 +1704,7 @@
|
|
|
1705
1704
|
"example": "ikom"
|
|
1706
1705
|
}
|
|
1707
1706
|
],
|
|
1708
|
-
"summary": "
|
|
1707
|
+
"summary": "searchExternalProducts",
|
|
1709
1708
|
"tags": [
|
|
1710
1709
|
"External Integrations API"
|
|
1711
1710
|
],
|
|
@@ -1845,10 +1844,10 @@
|
|
|
1845
1844
|
}
|
|
1846
1845
|
}
|
|
1847
1846
|
},
|
|
1848
|
-
"/v1/public/integration/{integrationId}/products": {
|
|
1847
|
+
"/v1/public/integration/{integrationId}/products-recommendation": {
|
|
1849
1848
|
"post": {
|
|
1850
|
-
"description": "Returns the list of available products with computed prices based on a given context and for a given org integration.",
|
|
1851
|
-
"operationId": "$
|
|
1849
|
+
"description": "Returns the list of available products recommendation with computed prices based on a given context and for a given org integration.",
|
|
1850
|
+
"operationId": "$searchExternalProductsRecommendation",
|
|
1852
1851
|
"security": [
|
|
1853
1852
|
{},
|
|
1854
1853
|
{
|
|
@@ -1864,10 +1863,10 @@
|
|
|
1864
1863
|
"$ref": "#/components/schemas/IntegrationId"
|
|
1865
1864
|
},
|
|
1866
1865
|
"required": true,
|
|
1867
|
-
"example": "
|
|
1866
|
+
"example": "external-catalog"
|
|
1868
1867
|
}
|
|
1869
1868
|
],
|
|
1870
|
-
"summary": "
|
|
1869
|
+
"summary": "searchExternalProductsRecommendation",
|
|
1871
1870
|
"tags": [
|
|
1872
1871
|
"External Integrations API"
|
|
1873
1872
|
],
|
|
@@ -1887,99 +1886,7 @@
|
|
|
1887
1886
|
"content": {
|
|
1888
1887
|
"application/json": {
|
|
1889
1888
|
"schema": {
|
|
1890
|
-
"$ref": "#/components/schemas/
|
|
1891
|
-
},
|
|
1892
|
-
"examples": {
|
|
1893
|
-
"External products": {
|
|
1894
|
-
"value": {
|
|
1895
|
-
"hits": 1,
|
|
1896
|
-
"results": [
|
|
1897
|
-
{
|
|
1898
|
-
"pricing_details": {
|
|
1899
|
-
"items": [
|
|
1900
|
-
{
|
|
1901
|
-
"_id": "price-12312414",
|
|
1902
|
-
"price_id": "price-12312414",
|
|
1903
|
-
"is_composite_price": true,
|
|
1904
|
-
"description": "Home Energy Package Composite",
|
|
1905
|
-
"item_components": [
|
|
1906
|
-
{
|
|
1907
|
-
"_id": "price-12312414-component-0",
|
|
1908
|
-
"price_id": "price-12312414-component-0",
|
|
1909
|
-
"description": "Working Price",
|
|
1910
|
-
"is_tax_inclusive": true,
|
|
1911
|
-
"amount_total_decimal": "100",
|
|
1912
|
-
"amount_total": 10000,
|
|
1913
|
-
"amount_subtotal_decimal": "100",
|
|
1914
|
-
"amount_subtotal": 10000,
|
|
1915
|
-
"unit_amount": 10,
|
|
1916
|
-
"unit_amount_gross": 10,
|
|
1917
|
-
"unit_amount_gross_decimal": "0.10",
|
|
1918
|
-
"unit_amount_net": 10,
|
|
1919
|
-
"unit_amount_net_decimal": "0.10",
|
|
1920
|
-
"billing_period": "monthly",
|
|
1921
|
-
"type": "recurring",
|
|
1922
|
-
"taxes": [],
|
|
1923
|
-
"pricing_model": "per_unit",
|
|
1924
|
-
"quantity": 1,
|
|
1925
|
-
"_price": {
|
|
1926
|
-
"_id": "price-12312414-component-0",
|
|
1927
|
-
"unit_amount_currency": "EUR",
|
|
1928
|
-
"description": "Working Price",
|
|
1929
|
-
"is_tax_inclusive": true,
|
|
1930
|
-
"unit_amount": 10,
|
|
1931
|
-
"unit_amount_decimal": "0.10",
|
|
1932
|
-
"unit": "kWh",
|
|
1933
|
-
"billing_period": "monthly",
|
|
1934
|
-
"type": "recurring",
|
|
1935
|
-
"billing_duration_amount": 24,
|
|
1936
|
-
"billing_duration_unit": "months",
|
|
1937
|
-
"notice_time_amount": 3,
|
|
1938
|
-
"notice_time_unit": "months",
|
|
1939
|
-
"termination_time_amount": 3,
|
|
1940
|
-
"termination_time_unit": "months",
|
|
1941
|
-
"renewal_duration_amount": 12,
|
|
1942
|
-
"renewal_duration_unit": "months",
|
|
1943
|
-
"active": true,
|
|
1944
|
-
"is_composite_price": false,
|
|
1945
|
-
"variable_price": true,
|
|
1946
|
-
"pricing_model": "per_unit",
|
|
1947
|
-
"price_display_in_journeys": "show_price"
|
|
1948
|
-
}
|
|
1949
|
-
}
|
|
1950
|
-
]
|
|
1951
|
-
}
|
|
1952
|
-
],
|
|
1953
|
-
"currency": "EUR",
|
|
1954
|
-
"amount_subtotal": 10000,
|
|
1955
|
-
"amount_total": 10000,
|
|
1956
|
-
"amount_tax": 0,
|
|
1957
|
-
"total_details": {
|
|
1958
|
-
"amount_tax": 0,
|
|
1959
|
-
"breakdown": {
|
|
1960
|
-
"taxes": [],
|
|
1961
|
-
"recurrences": [
|
|
1962
|
-
{
|
|
1963
|
-
"type": "recurring",
|
|
1964
|
-
"billing_period": "monthly",
|
|
1965
|
-
"amount_total": 10000,
|
|
1966
|
-
"amount_total_decimal": "100.00",
|
|
1967
|
-
"amount_subtotal": 10000,
|
|
1968
|
-
"amount_subtotal_decimal": "100.00",
|
|
1969
|
-
"amount_tax": 0
|
|
1970
|
-
}
|
|
1971
|
-
]
|
|
1972
|
-
}
|
|
1973
|
-
}
|
|
1974
|
-
},
|
|
1975
|
-
"_meta": {
|
|
1976
|
-
"signature": "abc123",
|
|
1977
|
-
"timestamp": 1712049221642
|
|
1978
|
-
}
|
|
1979
|
-
}
|
|
1980
|
-
]
|
|
1981
|
-
}
|
|
1982
|
-
}
|
|
1889
|
+
"$ref": "#/components/schemas/SearchExternalCatalogRecommendationsResult"
|
|
1983
1890
|
}
|
|
1984
1891
|
}
|
|
1985
1892
|
}
|
|
@@ -8179,6 +8086,24 @@
|
|
|
8179
8086
|
"hits"
|
|
8180
8087
|
]
|
|
8181
8088
|
},
|
|
8089
|
+
"SearchExternalCatalogRecommendationsResult": {
|
|
8090
|
+
"type": "object",
|
|
8091
|
+
"properties": {
|
|
8092
|
+
"source": {
|
|
8093
|
+
"$ref": "#/components/schemas/ExternalCatalogItem"
|
|
8094
|
+
},
|
|
8095
|
+
"offers": {
|
|
8096
|
+
"type": "array",
|
|
8097
|
+
"items": {
|
|
8098
|
+
"$ref": "#/components/schemas/ExternalCatalogItem"
|
|
8099
|
+
}
|
|
8100
|
+
}
|
|
8101
|
+
},
|
|
8102
|
+
"required": [
|
|
8103
|
+
"source",
|
|
8104
|
+
"offers"
|
|
8105
|
+
]
|
|
8106
|
+
},
|
|
8182
8107
|
"ExternalCatalogItem": {
|
|
8183
8108
|
"type": "object",
|
|
8184
8109
|
"description": "An external product & price information (already computed) from an external catalog.",
|