@epilot/pricing-client 3.47.12 → 3.48.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 +18 -0
- package/dist/openapi.d.ts +22 -22
- package/dist/openapi.json +132 -132
- package/package.json +2 -2
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={914: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(240));r.default=a.default},240: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":{"operationId":"$searchExternalCatalog","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":{}}}},"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}(914),i=exports;for(var a in t)i[a]=t[a];t.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{"use strict";var e={914: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(240));r.default=a.default},240: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":{"operationId":"$searchExternalCatalog","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}(914),i=exports;for(var a in t)i[a]=t[a];t.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
|
|
@@ -356,6 +356,24 @@
|
|
|
356
356
|
],
|
|
357
357
|
"responses": {}
|
|
358
358
|
}
|
|
359
|
+
},
|
|
360
|
+
"/v1/public/product-recommendations": {
|
|
361
|
+
"post": {
|
|
362
|
+
"operationId": "$productRecommendations",
|
|
363
|
+
"parameters": [
|
|
364
|
+
{
|
|
365
|
+
"in": "header",
|
|
366
|
+
"name": "X-Ivy-Org-ID"
|
|
367
|
+
}
|
|
368
|
+
],
|
|
369
|
+
"requestBody": {
|
|
370
|
+
"required": true,
|
|
371
|
+
"content": {
|
|
372
|
+
"application/json": {}
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
"responses": {}
|
|
376
|
+
}
|
|
359
377
|
}
|
|
360
378
|
},
|
|
361
379
|
"components": {}
|
package/dist/openapi.d.ts
CHANGED
|
@@ -5963,16 +5963,6 @@ export interface OperationMethods {
|
|
|
5963
5963
|
data?: Paths.$CheckoutCart.RequestBody,
|
|
5964
5964
|
config?: AxiosRequestConfig
|
|
5965
5965
|
): OperationResponse<Paths.$CheckoutCart.Responses.$200>
|
|
5966
|
-
/**
|
|
5967
|
-
* $productRecommendations - productRecommendations
|
|
5968
|
-
*
|
|
5969
|
-
* Get a list of product recommendations based on the search parameters.
|
|
5970
|
-
*/
|
|
5971
|
-
'$productRecommendations'(
|
|
5972
|
-
parameters?: Parameters<Paths.$ProductRecommendations.HeaderParameters> | null,
|
|
5973
|
-
data?: Paths.$ProductRecommendations.RequestBody,
|
|
5974
|
-
config?: AxiosRequestConfig
|
|
5975
|
-
): OperationResponse<Paths.$ProductRecommendations.Responses.$200>
|
|
5976
5966
|
/**
|
|
5977
5967
|
* $searchCatalog - searchCatalog
|
|
5978
5968
|
*
|
|
@@ -6113,6 +6103,16 @@ export interface OperationMethods {
|
|
|
6113
6103
|
data?: any,
|
|
6114
6104
|
config?: AxiosRequestConfig
|
|
6115
6105
|
): OperationResponse<Paths.$DeleteCredentials.Responses.$204>
|
|
6106
|
+
/**
|
|
6107
|
+
* $productRecommendations - productRecommendations
|
|
6108
|
+
*
|
|
6109
|
+
* Get a list of product recommendations based on the search parameters.
|
|
6110
|
+
*/
|
|
6111
|
+
'$productRecommendations'(
|
|
6112
|
+
parameters?: Parameters<Paths.$ProductRecommendations.HeaderParameters> | null,
|
|
6113
|
+
data?: Paths.$ProductRecommendations.RequestBody,
|
|
6114
|
+
config?: AxiosRequestConfig
|
|
6115
|
+
): OperationResponse<Paths.$ProductRecommendations.Responses.$200>
|
|
6116
6116
|
}
|
|
6117
6117
|
|
|
6118
6118
|
export interface PathsDictionary {
|
|
@@ -6175,18 +6175,6 @@ export interface PathsDictionary {
|
|
|
6175
6175
|
config?: AxiosRequestConfig
|
|
6176
6176
|
): OperationResponse<Paths.$CheckoutCart.Responses.$200>
|
|
6177
6177
|
}
|
|
6178
|
-
['/v1/public/product-recommendations']: {
|
|
6179
|
-
/**
|
|
6180
|
-
* $productRecommendations - productRecommendations
|
|
6181
|
-
*
|
|
6182
|
-
* Get a list of product recommendations based on the search parameters.
|
|
6183
|
-
*/
|
|
6184
|
-
'post'(
|
|
6185
|
-
parameters?: Parameters<Paths.$ProductRecommendations.HeaderParameters> | null,
|
|
6186
|
-
data?: Paths.$ProductRecommendations.RequestBody,
|
|
6187
|
-
config?: AxiosRequestConfig
|
|
6188
|
-
): OperationResponse<Paths.$ProductRecommendations.Responses.$200>
|
|
6189
|
-
}
|
|
6190
6178
|
['/v1/public/catalog']: {
|
|
6191
6179
|
/**
|
|
6192
6180
|
* $searchCatalog - searchCatalog
|
|
@@ -6355,6 +6343,18 @@ export interface PathsDictionary {
|
|
|
6355
6343
|
config?: AxiosRequestConfig
|
|
6356
6344
|
): OperationResponse<Paths.$DeleteCredentials.Responses.$204>
|
|
6357
6345
|
}
|
|
6346
|
+
['/v1/public/product-recommendations']: {
|
|
6347
|
+
/**
|
|
6348
|
+
* $productRecommendations - productRecommendations
|
|
6349
|
+
*
|
|
6350
|
+
* Get a list of product recommendations based on the search parameters.
|
|
6351
|
+
*/
|
|
6352
|
+
'post'(
|
|
6353
|
+
parameters?: Parameters<Paths.$ProductRecommendations.HeaderParameters> | null,
|
|
6354
|
+
data?: Paths.$ProductRecommendations.RequestBody,
|
|
6355
|
+
config?: AxiosRequestConfig
|
|
6356
|
+
): OperationResponse<Paths.$ProductRecommendations.Responses.$200>
|
|
6357
|
+
}
|
|
6358
6358
|
}
|
|
6359
6359
|
|
|
6360
6360
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
package/dist/openapi.json
CHANGED
|
@@ -1037,138 +1037,6 @@
|
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
1039
|
},
|
|
1040
|
-
"/v1/public/product-recommendations": {
|
|
1041
|
-
"post": {
|
|
1042
|
-
"description": "Get a list of product recommendations based on the search parameters.",
|
|
1043
|
-
"operationId": "$productRecommendations",
|
|
1044
|
-
"summary": "productRecommendations",
|
|
1045
|
-
"security": [
|
|
1046
|
-
{
|
|
1047
|
-
"EpilotPublicAuth": []
|
|
1048
|
-
}
|
|
1049
|
-
],
|
|
1050
|
-
"tags": [
|
|
1051
|
-
"Product Recommendations API"
|
|
1052
|
-
],
|
|
1053
|
-
"parameters": [
|
|
1054
|
-
{
|
|
1055
|
-
"in": "header",
|
|
1056
|
-
"name": "X-Ivy-Org-ID",
|
|
1057
|
-
"description": "The target Organization Id represented by the caller",
|
|
1058
|
-
"example": 739224,
|
|
1059
|
-
"schema": {
|
|
1060
|
-
"type": "string"
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
1063
|
-
],
|
|
1064
|
-
"requestBody": {
|
|
1065
|
-
"required": true,
|
|
1066
|
-
"content": {
|
|
1067
|
-
"application/json": {
|
|
1068
|
-
"schema": {
|
|
1069
|
-
"$ref": "#/components/schemas/ProductRecommendationSearch"
|
|
1070
|
-
},
|
|
1071
|
-
"examples": {
|
|
1072
|
-
"Search product recommendations by id": {
|
|
1073
|
-
"value": {
|
|
1074
|
-
"product_recommendation_ids": [
|
|
1075
|
-
"bae8d40a-0093-483a-b4f9-3653800b6781"
|
|
1076
|
-
]
|
|
1077
|
-
}
|
|
1078
|
-
},
|
|
1079
|
-
"Search product recommendations by source product and price": {
|
|
1080
|
-
"value": {
|
|
1081
|
-
"catalog_item": {
|
|
1082
|
-
"product_id": "aa1ebf85-f36e-46ff-978c-ed948c646f12",
|
|
1083
|
-
"price_id": "4ecf9a61-a974-4594-bae2-bcb798f54d76"
|
|
1084
|
-
}
|
|
1085
|
-
}
|
|
1086
|
-
},
|
|
1087
|
-
"Search product recommendations by contract": {
|
|
1088
|
-
"value": {
|
|
1089
|
-
"contract_id": "98ffca40-46ab-4288-af10-a478893b2aa2"
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
}
|
|
1095
|
-
},
|
|
1096
|
-
"responses": {
|
|
1097
|
-
"200": {
|
|
1098
|
-
"description": "The product recommendations result",
|
|
1099
|
-
"content": {
|
|
1100
|
-
"application/json": {
|
|
1101
|
-
"schema": {
|
|
1102
|
-
"$ref": "#/components/schemas/ProductRecommendationResponse"
|
|
1103
|
-
},
|
|
1104
|
-
"examples": {
|
|
1105
|
-
"Product recommendations": {
|
|
1106
|
-
"value": {
|
|
1107
|
-
"hits": 1,
|
|
1108
|
-
"results": [
|
|
1109
|
-
{
|
|
1110
|
-
"_title": "Tarifwechsel 2025",
|
|
1111
|
-
"_created_at": "2025-01-29T15:46:41.014Z",
|
|
1112
|
-
"_updated_at": "2025-01-29T15:46:41.014Z",
|
|
1113
|
-
"name": "Tarifwechsel 2025",
|
|
1114
|
-
"type": "change",
|
|
1115
|
-
"source_product": {
|
|
1116
|
-
"$relation": [
|
|
1117
|
-
{
|
|
1118
|
-
"entity_id": "e2b12b54-d904-42b7-ac44-802d8ebaadf4"
|
|
1119
|
-
}
|
|
1120
|
-
]
|
|
1121
|
-
},
|
|
1122
|
-
"source_price": {
|
|
1123
|
-
"$relation": [
|
|
1124
|
-
{
|
|
1125
|
-
"entity_id": "255877f3-f9c2-483e-9c71-89088c142bfc"
|
|
1126
|
-
}
|
|
1127
|
-
]
|
|
1128
|
-
},
|
|
1129
|
-
"_schema": "product_recommendation",
|
|
1130
|
-
"offers": [
|
|
1131
|
-
{
|
|
1132
|
-
"target_id": "f9aa8757-505b-46bd-9310-605d64849565",
|
|
1133
|
-
"items": [
|
|
1134
|
-
{
|
|
1135
|
-
"product_id": "70ad8a08-46c2-473b-b1c5-8bccfb85e452",
|
|
1136
|
-
"price_id": "26c9c39d-db4a-4132-af2e-86ab5c7b156c"
|
|
1137
|
-
},
|
|
1138
|
-
{
|
|
1139
|
-
"product_id": "dd97a2a4-e48b-43c5-8717-7ac563c67e05",
|
|
1140
|
-
"price_id": "4ecf9a61-a974-4594-bae2-bcb798f54d76"
|
|
1141
|
-
},
|
|
1142
|
-
{
|
|
1143
|
-
"product_id": "aa1ebf85-f36e-46ff-978c-ed948c646f12",
|
|
1144
|
-
"price_id": "4ecf9a61-a974-4594-bae2-bcb798f54d76"
|
|
1145
|
-
}
|
|
1146
|
-
]
|
|
1147
|
-
}
|
|
1148
|
-
],
|
|
1149
|
-
"_id": "6d872912-ef8a-4815-b9db-01744c0828ac",
|
|
1150
|
-
"_org": "739224"
|
|
1151
|
-
}
|
|
1152
|
-
]
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
}
|
|
1158
|
-
},
|
|
1159
|
-
"400": {
|
|
1160
|
-
"description": "Invalid payload",
|
|
1161
|
-
"content": {
|
|
1162
|
-
"application/json": {
|
|
1163
|
-
"schema": {
|
|
1164
|
-
"$ref": "#/components/schemas/Error"
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
}
|
|
1170
|
-
}
|
|
1171
|
-
},
|
|
1172
1040
|
"/v1/public/catalog": {
|
|
1173
1041
|
"post": {
|
|
1174
1042
|
"description": "Provides a querying functionalities over products and prices of the Catalog for a given organization.",
|
|
@@ -2343,6 +2211,138 @@
|
|
|
2343
2211
|
}
|
|
2344
2212
|
}
|
|
2345
2213
|
}
|
|
2214
|
+
},
|
|
2215
|
+
"/v1/public/product-recommendations": {
|
|
2216
|
+
"post": {
|
|
2217
|
+
"description": "Get a list of product recommendations based on the search parameters.",
|
|
2218
|
+
"operationId": "$productRecommendations",
|
|
2219
|
+
"summary": "productRecommendations",
|
|
2220
|
+
"security": [
|
|
2221
|
+
{
|
|
2222
|
+
"EpilotPublicAuth": []
|
|
2223
|
+
}
|
|
2224
|
+
],
|
|
2225
|
+
"tags": [
|
|
2226
|
+
"Product Recommendations API"
|
|
2227
|
+
],
|
|
2228
|
+
"parameters": [
|
|
2229
|
+
{
|
|
2230
|
+
"in": "header",
|
|
2231
|
+
"name": "X-Ivy-Org-ID",
|
|
2232
|
+
"description": "The target Organization Id represented by the caller",
|
|
2233
|
+
"example": 739224,
|
|
2234
|
+
"schema": {
|
|
2235
|
+
"type": "string"
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2238
|
+
],
|
|
2239
|
+
"requestBody": {
|
|
2240
|
+
"required": true,
|
|
2241
|
+
"content": {
|
|
2242
|
+
"application/json": {
|
|
2243
|
+
"schema": {
|
|
2244
|
+
"$ref": "#/components/schemas/ProductRecommendationSearch"
|
|
2245
|
+
},
|
|
2246
|
+
"examples": {
|
|
2247
|
+
"Search product recommendations by id": {
|
|
2248
|
+
"value": {
|
|
2249
|
+
"product_recommendation_ids": [
|
|
2250
|
+
"bae8d40a-0093-483a-b4f9-3653800b6781"
|
|
2251
|
+
]
|
|
2252
|
+
}
|
|
2253
|
+
},
|
|
2254
|
+
"Search product recommendations by source product and price": {
|
|
2255
|
+
"value": {
|
|
2256
|
+
"catalog_item": {
|
|
2257
|
+
"product_id": "aa1ebf85-f36e-46ff-978c-ed948c646f12",
|
|
2258
|
+
"price_id": "4ecf9a61-a974-4594-bae2-bcb798f54d76"
|
|
2259
|
+
}
|
|
2260
|
+
}
|
|
2261
|
+
},
|
|
2262
|
+
"Search product recommendations by contract": {
|
|
2263
|
+
"value": {
|
|
2264
|
+
"contract_id": "98ffca40-46ab-4288-af10-a478893b2aa2"
|
|
2265
|
+
}
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2268
|
+
}
|
|
2269
|
+
}
|
|
2270
|
+
},
|
|
2271
|
+
"responses": {
|
|
2272
|
+
"200": {
|
|
2273
|
+
"description": "The product recommendations result",
|
|
2274
|
+
"content": {
|
|
2275
|
+
"application/json": {
|
|
2276
|
+
"schema": {
|
|
2277
|
+
"$ref": "#/components/schemas/ProductRecommendationResponse"
|
|
2278
|
+
},
|
|
2279
|
+
"examples": {
|
|
2280
|
+
"Product recommendations": {
|
|
2281
|
+
"value": {
|
|
2282
|
+
"hits": 1,
|
|
2283
|
+
"results": [
|
|
2284
|
+
{
|
|
2285
|
+
"_title": "Tarifwechsel 2025",
|
|
2286
|
+
"_created_at": "2025-01-29T15:46:41.014Z",
|
|
2287
|
+
"_updated_at": "2025-01-29T15:46:41.014Z",
|
|
2288
|
+
"name": "Tarifwechsel 2025",
|
|
2289
|
+
"type": "change",
|
|
2290
|
+
"source_product": {
|
|
2291
|
+
"$relation": [
|
|
2292
|
+
{
|
|
2293
|
+
"entity_id": "e2b12b54-d904-42b7-ac44-802d8ebaadf4"
|
|
2294
|
+
}
|
|
2295
|
+
]
|
|
2296
|
+
},
|
|
2297
|
+
"source_price": {
|
|
2298
|
+
"$relation": [
|
|
2299
|
+
{
|
|
2300
|
+
"entity_id": "255877f3-f9c2-483e-9c71-89088c142bfc"
|
|
2301
|
+
}
|
|
2302
|
+
]
|
|
2303
|
+
},
|
|
2304
|
+
"_schema": "product_recommendation",
|
|
2305
|
+
"offers": [
|
|
2306
|
+
{
|
|
2307
|
+
"target_id": "f9aa8757-505b-46bd-9310-605d64849565",
|
|
2308
|
+
"items": [
|
|
2309
|
+
{
|
|
2310
|
+
"product_id": "70ad8a08-46c2-473b-b1c5-8bccfb85e452",
|
|
2311
|
+
"price_id": "26c9c39d-db4a-4132-af2e-86ab5c7b156c"
|
|
2312
|
+
},
|
|
2313
|
+
{
|
|
2314
|
+
"product_id": "dd97a2a4-e48b-43c5-8717-7ac563c67e05",
|
|
2315
|
+
"price_id": "4ecf9a61-a974-4594-bae2-bcb798f54d76"
|
|
2316
|
+
},
|
|
2317
|
+
{
|
|
2318
|
+
"product_id": "aa1ebf85-f36e-46ff-978c-ed948c646f12",
|
|
2319
|
+
"price_id": "4ecf9a61-a974-4594-bae2-bcb798f54d76"
|
|
2320
|
+
}
|
|
2321
|
+
]
|
|
2322
|
+
}
|
|
2323
|
+
],
|
|
2324
|
+
"_id": "6d872912-ef8a-4815-b9db-01744c0828ac",
|
|
2325
|
+
"_org": "739224"
|
|
2326
|
+
}
|
|
2327
|
+
]
|
|
2328
|
+
}
|
|
2329
|
+
}
|
|
2330
|
+
}
|
|
2331
|
+
}
|
|
2332
|
+
}
|
|
2333
|
+
},
|
|
2334
|
+
"400": {
|
|
2335
|
+
"description": "Invalid payload",
|
|
2336
|
+
"content": {
|
|
2337
|
+
"application/json": {
|
|
2338
|
+
"schema": {
|
|
2339
|
+
"$ref": "#/components/schemas/Error"
|
|
2340
|
+
}
|
|
2341
|
+
}
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
}
|
|
2346
2346
|
}
|
|
2347
2347
|
},
|
|
2348
2348
|
"components": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/pricing-client",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.48.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
|
"test": "jest",
|
|
26
26
|
"bundle-definition": "webpack",
|
|
27
27
|
"openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/pricing-api.yaml",
|
|
28
|
-
"openapi:local": "
|
|
28
|
+
"openapi:local": "node ../../scripts/update-openapi.js ../../../pricing-api/lambda/ApiHandlerFunction/openapi.yml",
|
|
29
29
|
"typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
|
|
30
30
|
"build": "tsc && npm run build:patch && npm run bundle-definition",
|
|
31
31
|
"build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
|