@epilot/pricing-client 3.47.10 → 3.47.12
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.d.ts +26 -22
- package/dist/openapi.json +136 -127
- package/package.json +1 -1
package/dist/openapi.d.ts
CHANGED
|
@@ -4979,6 +4979,10 @@ declare namespace Components {
|
|
|
4979
4979
|
*/
|
|
4980
4980
|
price_id?: string;
|
|
4981
4981
|
};
|
|
4982
|
+
/**
|
|
4983
|
+
* The contract id to be used as source for the recommendation
|
|
4984
|
+
*/
|
|
4985
|
+
contract_id?: string;
|
|
4982
4986
|
}
|
|
4983
4987
|
/**
|
|
4984
4988
|
* example:
|
|
@@ -5959,6 +5963,16 @@ export interface OperationMethods {
|
|
|
5959
5963
|
data?: Paths.$CheckoutCart.RequestBody,
|
|
5960
5964
|
config?: AxiosRequestConfig
|
|
5961
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>
|
|
5962
5976
|
/**
|
|
5963
5977
|
* $searchCatalog - searchCatalog
|
|
5964
5978
|
*
|
|
@@ -6099,16 +6113,6 @@ export interface OperationMethods {
|
|
|
6099
6113
|
data?: any,
|
|
6100
6114
|
config?: AxiosRequestConfig
|
|
6101
6115
|
): OperationResponse<Paths.$DeleteCredentials.Responses.$204>
|
|
6102
|
-
/**
|
|
6103
|
-
* $productRecommendations - productRecommendations
|
|
6104
|
-
*
|
|
6105
|
-
* Get a list of product recommendations based on the search parameters.
|
|
6106
|
-
*/
|
|
6107
|
-
'$productRecommendations'(
|
|
6108
|
-
parameters?: Parameters<Paths.$ProductRecommendations.HeaderParameters> | null,
|
|
6109
|
-
data?: Paths.$ProductRecommendations.RequestBody,
|
|
6110
|
-
config?: AxiosRequestConfig
|
|
6111
|
-
): OperationResponse<Paths.$ProductRecommendations.Responses.$200>
|
|
6112
6116
|
}
|
|
6113
6117
|
|
|
6114
6118
|
export interface PathsDictionary {
|
|
@@ -6171,6 +6175,18 @@ export interface PathsDictionary {
|
|
|
6171
6175
|
config?: AxiosRequestConfig
|
|
6172
6176
|
): OperationResponse<Paths.$CheckoutCart.Responses.$200>
|
|
6173
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
|
+
}
|
|
6174
6190
|
['/v1/public/catalog']: {
|
|
6175
6191
|
/**
|
|
6176
6192
|
* $searchCatalog - searchCatalog
|
|
@@ -6339,18 +6355,6 @@ export interface PathsDictionary {
|
|
|
6339
6355
|
config?: AxiosRequestConfig
|
|
6340
6356
|
): OperationResponse<Paths.$DeleteCredentials.Responses.$204>
|
|
6341
6357
|
}
|
|
6342
|
-
['/v1/public/product-recommendations']: {
|
|
6343
|
-
/**
|
|
6344
|
-
* $productRecommendations - productRecommendations
|
|
6345
|
-
*
|
|
6346
|
-
* Get a list of product recommendations based on the search parameters.
|
|
6347
|
-
*/
|
|
6348
|
-
'post'(
|
|
6349
|
-
parameters?: Parameters<Paths.$ProductRecommendations.HeaderParameters> | null,
|
|
6350
|
-
data?: Paths.$ProductRecommendations.RequestBody,
|
|
6351
|
-
config?: AxiosRequestConfig
|
|
6352
|
-
): OperationResponse<Paths.$ProductRecommendations.Responses.$200>
|
|
6353
|
-
}
|
|
6354
6358
|
}
|
|
6355
6359
|
|
|
6356
6360
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
package/dist/openapi.json
CHANGED
|
@@ -1037,6 +1037,138 @@
|
|
|
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
|
+
},
|
|
1040
1172
|
"/v1/public/catalog": {
|
|
1041
1173
|
"post": {
|
|
1042
1174
|
"description": "Provides a querying functionalities over products and prices of the Catalog for a given organization.",
|
|
@@ -2211,133 +2343,6 @@
|
|
|
2211
2343
|
}
|
|
2212
2344
|
}
|
|
2213
2345
|
}
|
|
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 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
|
-
}
|
|
2263
|
-
}
|
|
2264
|
-
}
|
|
2265
|
-
},
|
|
2266
|
-
"responses": {
|
|
2267
|
-
"200": {
|
|
2268
|
-
"description": "The product recommendations result",
|
|
2269
|
-
"content": {
|
|
2270
|
-
"application/json": {
|
|
2271
|
-
"schema": {
|
|
2272
|
-
"$ref": "#/components/schemas/ProductRecommendationResponse"
|
|
2273
|
-
},
|
|
2274
|
-
"examples": {
|
|
2275
|
-
"Product recommendations": {
|
|
2276
|
-
"value": {
|
|
2277
|
-
"hits": 1,
|
|
2278
|
-
"results": [
|
|
2279
|
-
{
|
|
2280
|
-
"_title": "Tarifwechsel 2025",
|
|
2281
|
-
"_created_at": "2025-01-29T15:46:41.014Z",
|
|
2282
|
-
"_updated_at": "2025-01-29T15:46:41.014Z",
|
|
2283
|
-
"name": "Tarifwechsel 2025",
|
|
2284
|
-
"type": "change",
|
|
2285
|
-
"source_product": {
|
|
2286
|
-
"$relation": [
|
|
2287
|
-
{
|
|
2288
|
-
"entity_id": "e2b12b54-d904-42b7-ac44-802d8ebaadf4"
|
|
2289
|
-
}
|
|
2290
|
-
]
|
|
2291
|
-
},
|
|
2292
|
-
"source_price": {
|
|
2293
|
-
"$relation": [
|
|
2294
|
-
{
|
|
2295
|
-
"entity_id": "255877f3-f9c2-483e-9c71-89088c142bfc"
|
|
2296
|
-
}
|
|
2297
|
-
]
|
|
2298
|
-
},
|
|
2299
|
-
"_schema": "product_recommendation",
|
|
2300
|
-
"offers": [
|
|
2301
|
-
{
|
|
2302
|
-
"target_id": "f9aa8757-505b-46bd-9310-605d64849565",
|
|
2303
|
-
"items": [
|
|
2304
|
-
{
|
|
2305
|
-
"product_id": "70ad8a08-46c2-473b-b1c5-8bccfb85e452",
|
|
2306
|
-
"price_id": "26c9c39d-db4a-4132-af2e-86ab5c7b156c"
|
|
2307
|
-
},
|
|
2308
|
-
{
|
|
2309
|
-
"product_id": "dd97a2a4-e48b-43c5-8717-7ac563c67e05",
|
|
2310
|
-
"price_id": "4ecf9a61-a974-4594-bae2-bcb798f54d76"
|
|
2311
|
-
},
|
|
2312
|
-
{
|
|
2313
|
-
"product_id": "aa1ebf85-f36e-46ff-978c-ed948c646f12",
|
|
2314
|
-
"price_id": "4ecf9a61-a974-4594-bae2-bcb798f54d76"
|
|
2315
|
-
}
|
|
2316
|
-
]
|
|
2317
|
-
}
|
|
2318
|
-
],
|
|
2319
|
-
"_id": "6d872912-ef8a-4815-b9db-01744c0828ac",
|
|
2320
|
-
"_org": "739224"
|
|
2321
|
-
}
|
|
2322
|
-
]
|
|
2323
|
-
}
|
|
2324
|
-
}
|
|
2325
|
-
}
|
|
2326
|
-
}
|
|
2327
|
-
}
|
|
2328
|
-
},
|
|
2329
|
-
"400": {
|
|
2330
|
-
"description": "Invalid payload",
|
|
2331
|
-
"content": {
|
|
2332
|
-
"application/json": {
|
|
2333
|
-
"schema": {
|
|
2334
|
-
"$ref": "#/components/schemas/Error"
|
|
2335
|
-
}
|
|
2336
|
-
}
|
|
2337
|
-
}
|
|
2338
|
-
}
|
|
2339
|
-
}
|
|
2340
|
-
}
|
|
2341
2346
|
}
|
|
2342
2347
|
},
|
|
2343
2348
|
"components": {
|
|
@@ -6807,6 +6812,10 @@
|
|
|
6807
6812
|
"description": "Product id"
|
|
6808
6813
|
}
|
|
6809
6814
|
}
|
|
6815
|
+
},
|
|
6816
|
+
"contract_id": {
|
|
6817
|
+
"type": "string",
|
|
6818
|
+
"description": "The contract id to be used as source for the recommendation"
|
|
6810
6819
|
}
|
|
6811
6820
|
}
|
|
6812
6821
|
},
|