@epilot/pricing-client 3.51.4 → 3.52.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 +7 -4
- package/dist/openapi.json +36 -24
- package/package.json +1 -1
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 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/external-catalog/products":{"post":{"operationId":"$getExternalCatalogProducts","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/public/external-catalog/products-recommendation":{"post":{"operationId":"$getExternalCatalogProductsRecommendation","requestBody":{"required":true,"content":{"application/json":{}}},"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}(330),i=exports;for(var n in t)i[n]=t[n];t.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
|
package/dist/openapi.d.ts
CHANGED
|
@@ -164,7 +164,7 @@ declare namespace Components {
|
|
|
164
164
|
country?: string;
|
|
165
165
|
}
|
|
166
166
|
/**
|
|
167
|
-
* The availability check result payload
|
|
167
|
+
* The product availability check result payload
|
|
168
168
|
* example:
|
|
169
169
|
* {
|
|
170
170
|
* "available_products": [],
|
|
@@ -5436,9 +5436,11 @@ declare namespace Components {
|
|
|
5436
5436
|
base_url?: string;
|
|
5437
5437
|
}
|
|
5438
5438
|
export interface Offer {
|
|
5439
|
-
product_id?: string;
|
|
5440
|
-
price_id?: string;
|
|
5441
5439
|
target_id?: string;
|
|
5440
|
+
items?: {
|
|
5441
|
+
price_id: string;
|
|
5442
|
+
product_id: string;
|
|
5443
|
+
}[];
|
|
5442
5444
|
}
|
|
5443
5445
|
/**
|
|
5444
5446
|
* The opportunity entity
|
|
@@ -8933,6 +8935,7 @@ declare namespace Components {
|
|
|
8933
8935
|
* The contract id to be used as source for the recommendation
|
|
8934
8936
|
*/
|
|
8935
8937
|
contract_id?: string;
|
|
8938
|
+
filters?: /* Availability filters dimensions */ AvailabilityFilters;
|
|
8936
8939
|
}
|
|
8937
8940
|
/**
|
|
8938
8941
|
* example:
|
|
@@ -9589,7 +9592,7 @@ declare namespace Paths {
|
|
|
9589
9592
|
export type RequestBody = /* Availability check request payload */ Components.Schemas.AvailabilityCheckParams;
|
|
9590
9593
|
namespace Responses {
|
|
9591
9594
|
export type $200 = /**
|
|
9592
|
-
* The availability check result payload
|
|
9595
|
+
* The product availability check result payload
|
|
9593
9596
|
* example:
|
|
9594
9597
|
* {
|
|
9595
9598
|
* "available_products": [],
|
package/dist/openapi.json
CHANGED
|
@@ -1330,22 +1330,6 @@
|
|
|
1330
1330
|
}
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
|
-
},
|
|
1334
|
-
"Check availability with location & available date dimension": {
|
|
1335
|
-
"value": {
|
|
1336
|
-
"products": [
|
|
1337
|
-
"cd75456a-30e4-4912-95be-e743d5ea175b"
|
|
1338
|
-
],
|
|
1339
|
-
"filters": {
|
|
1340
|
-
"location": {
|
|
1341
|
-
"postal_code": "57008",
|
|
1342
|
-
"city": "Cologne",
|
|
1343
|
-
"street": "Media Park",
|
|
1344
|
-
"street_number": "8a"
|
|
1345
|
-
},
|
|
1346
|
-
"available_date": "2022-05-01"
|
|
1347
|
-
}
|
|
1348
|
-
}
|
|
1349
1333
|
}
|
|
1350
1334
|
}
|
|
1351
1335
|
}
|
|
@@ -3222,10 +3206,23 @@
|
|
|
3222
3206
|
"Search product recommendations by id": {
|
|
3223
3207
|
"value": {
|
|
3224
3208
|
"product_recommendation_ids": [
|
|
3225
|
-
"
|
|
3209
|
+
"22c134b7-8dd8-4872-a5c1-8fc6dd4ac2ee"
|
|
3226
3210
|
]
|
|
3227
3211
|
}
|
|
3228
3212
|
},
|
|
3213
|
+
"Search product recommendations by id with location filter": {
|
|
3214
|
+
"value": {
|
|
3215
|
+
"product_recommendation_ids": [
|
|
3216
|
+
"22c134b7-8dd8-4872-a5c1-8fc6dd4ac2ee"
|
|
3217
|
+
],
|
|
3218
|
+
"filters": {
|
|
3219
|
+
"location": {
|
|
3220
|
+
"postal_code": "50670",
|
|
3221
|
+
"city": "Köln"
|
|
3222
|
+
}
|
|
3223
|
+
}
|
|
3224
|
+
}
|
|
3225
|
+
},
|
|
3229
3226
|
"Search product recommendations by source product and price": {
|
|
3230
3227
|
"value": {
|
|
3231
3228
|
"catalog_item": {
|
|
@@ -5586,7 +5583,7 @@
|
|
|
5586
5583
|
]
|
|
5587
5584
|
},
|
|
5588
5585
|
"AvailabilityResult": {
|
|
5589
|
-
"description": "The availability check result payload",
|
|
5586
|
+
"description": "The product availability check result payload",
|
|
5590
5587
|
"type": "object",
|
|
5591
5588
|
"properties": {
|
|
5592
5589
|
"available_products": {
|
|
@@ -9086,6 +9083,9 @@
|
|
|
9086
9083
|
"contract_id": {
|
|
9087
9084
|
"type": "string",
|
|
9088
9085
|
"description": "The contract id to be used as source for the recommendation"
|
|
9086
|
+
},
|
|
9087
|
+
"filters": {
|
|
9088
|
+
"$ref": "#/components/schemas/AvailabilityFilters"
|
|
9089
9089
|
}
|
|
9090
9090
|
}
|
|
9091
9091
|
},
|
|
@@ -9112,14 +9112,26 @@
|
|
|
9112
9112
|
"Offer": {
|
|
9113
9113
|
"type": "object",
|
|
9114
9114
|
"properties": {
|
|
9115
|
-
"product_id": {
|
|
9116
|
-
"type": "string"
|
|
9117
|
-
},
|
|
9118
|
-
"price_id": {
|
|
9119
|
-
"type": "string"
|
|
9120
|
-
},
|
|
9121
9115
|
"target_id": {
|
|
9122
9116
|
"type": "string"
|
|
9117
|
+
},
|
|
9118
|
+
"items": {
|
|
9119
|
+
"type": "array",
|
|
9120
|
+
"items": {
|
|
9121
|
+
"type": "object",
|
|
9122
|
+
"properties": {
|
|
9123
|
+
"price_id": {
|
|
9124
|
+
"type": "string"
|
|
9125
|
+
},
|
|
9126
|
+
"product_id": {
|
|
9127
|
+
"type": "string"
|
|
9128
|
+
}
|
|
9129
|
+
},
|
|
9130
|
+
"required": [
|
|
9131
|
+
"price_id",
|
|
9132
|
+
"product_id"
|
|
9133
|
+
]
|
|
9134
|
+
}
|
|
9123
9135
|
}
|
|
9124
9136
|
}
|
|
9125
9137
|
},
|