@epilot/pricing-client 3.51.2 → 3.51.3
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 +12 -0
- package/dist/openapi.d.ts +266 -1
- package/dist/openapi.json +315 -4
- 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 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})})();
|
|
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/external-catalog/products":{"post":{"operationId":"$getExternalCatalogProducts","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}(390),i=exports;for(var n in t)i[n]=t[n];t.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
|
|
@@ -376,6 +376,18 @@
|
|
|
376
376
|
"responses": {}
|
|
377
377
|
}
|
|
378
378
|
},
|
|
379
|
+
"/v1/public/external-catalog/products": {
|
|
380
|
+
"post": {
|
|
381
|
+
"operationId": "$getExternalCatalogProducts",
|
|
382
|
+
"requestBody": {
|
|
383
|
+
"required": true,
|
|
384
|
+
"content": {
|
|
385
|
+
"application/json": {}
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
"responses": {}
|
|
389
|
+
}
|
|
390
|
+
},
|
|
379
391
|
"/v1/public/product-recommendations": {
|
|
380
392
|
"post": {
|
|
381
393
|
"operationId": "$productRecommendations",
|
package/dist/openapi.d.ts
CHANGED
|
@@ -4356,6 +4356,16 @@ declare namespace Components {
|
|
|
4356
4356
|
* EUR
|
|
4357
4357
|
*/
|
|
4358
4358
|
export type Currency = string;
|
|
4359
|
+
/**
|
|
4360
|
+
* A custom context object. E.g. for Portal context.
|
|
4361
|
+
* example:
|
|
4362
|
+
* {
|
|
4363
|
+
* "custom_context_key": "custom_context_value"
|
|
4364
|
+
* }
|
|
4365
|
+
*/
|
|
4366
|
+
export interface CustomContext {
|
|
4367
|
+
[name: string]: any;
|
|
4368
|
+
}
|
|
4359
4369
|
export interface Customer {
|
|
4360
4370
|
first_name?: string;
|
|
4361
4371
|
last_name?: string;
|
|
@@ -4506,6 +4516,92 @@ declare namespace Components {
|
|
|
4506
4516
|
*/
|
|
4507
4517
|
cause?: string;
|
|
4508
4518
|
}
|
|
4519
|
+
/**
|
|
4520
|
+
* The request payload for the external catalog configuration service.
|
|
4521
|
+
* example:
|
|
4522
|
+
* {
|
|
4523
|
+
* "config": {
|
|
4524
|
+
* "appId": "1234567890",
|
|
4525
|
+
* "componentId": "1234567890",
|
|
4526
|
+
* "hookId": "1234567890"
|
|
4527
|
+
* }
|
|
4528
|
+
* }
|
|
4529
|
+
*/
|
|
4530
|
+
export interface ExternalCatalogConfigurationRequest {
|
|
4531
|
+
config?: {
|
|
4532
|
+
/**
|
|
4533
|
+
* The app id.
|
|
4534
|
+
* example:
|
|
4535
|
+
* 1234567890
|
|
4536
|
+
*/
|
|
4537
|
+
appId?: string;
|
|
4538
|
+
/**
|
|
4539
|
+
* The component id.
|
|
4540
|
+
* example:
|
|
4541
|
+
* 1234567890
|
|
4542
|
+
*/
|
|
4543
|
+
componentId?: string;
|
|
4544
|
+
/**
|
|
4545
|
+
* The hook id.
|
|
4546
|
+
* example:
|
|
4547
|
+
* 1234567890
|
|
4548
|
+
*/
|
|
4549
|
+
hookId?: string;
|
|
4550
|
+
};
|
|
4551
|
+
}
|
|
4552
|
+
/**
|
|
4553
|
+
* The request payload for the external catalog service with a custom context. E.g. for requests from the Portal.
|
|
4554
|
+
* example:
|
|
4555
|
+
* {
|
|
4556
|
+
* "config": {
|
|
4557
|
+
* "appId": "1234567890",
|
|
4558
|
+
* "componentId": "1234567890",
|
|
4559
|
+
* "hookId": "1234567890"
|
|
4560
|
+
* },
|
|
4561
|
+
* "origin": "custom",
|
|
4562
|
+
* "context": {
|
|
4563
|
+
* "user_id": "user-12345",
|
|
4564
|
+
* "session_id": "session-67890",
|
|
4565
|
+
* "custom_context_key": "custom_context_value"
|
|
4566
|
+
* }
|
|
4567
|
+
* }
|
|
4568
|
+
*/
|
|
4569
|
+
export interface ExternalCatalogCustomRequest {
|
|
4570
|
+
config?: {
|
|
4571
|
+
/**
|
|
4572
|
+
* The app id.
|
|
4573
|
+
* example:
|
|
4574
|
+
* 1234567890
|
|
4575
|
+
*/
|
|
4576
|
+
appId?: string;
|
|
4577
|
+
/**
|
|
4578
|
+
* The component id.
|
|
4579
|
+
* example:
|
|
4580
|
+
* 1234567890
|
|
4581
|
+
*/
|
|
4582
|
+
componentId?: string;
|
|
4583
|
+
/**
|
|
4584
|
+
* The hook id.
|
|
4585
|
+
* example:
|
|
4586
|
+
* 1234567890
|
|
4587
|
+
*/
|
|
4588
|
+
hookId?: string;
|
|
4589
|
+
};
|
|
4590
|
+
/**
|
|
4591
|
+
* The origin of the request.
|
|
4592
|
+
* example:
|
|
4593
|
+
* custom
|
|
4594
|
+
*/
|
|
4595
|
+
origin: "custom";
|
|
4596
|
+
context: /**
|
|
4597
|
+
* A custom context object. E.g. for Portal context.
|
|
4598
|
+
* example:
|
|
4599
|
+
* {
|
|
4600
|
+
* "custom_context_key": "custom_context_value"
|
|
4601
|
+
* }
|
|
4602
|
+
*/
|
|
4603
|
+
CustomContext;
|
|
4604
|
+
}
|
|
4509
4605
|
/**
|
|
4510
4606
|
* An external product & price information (already computed) from an external catalog.
|
|
4511
4607
|
*/
|
|
@@ -4513,6 +4609,140 @@ declare namespace Components {
|
|
|
4513
4609
|
pricing_details: /* The result from the calculation of a set of price items. */ PricingDetails;
|
|
4514
4610
|
_meta: /* Signature meta data payload */ SignatureMeta;
|
|
4515
4611
|
}
|
|
4612
|
+
/**
|
|
4613
|
+
* The request payload for the external catalog service with a journey context.
|
|
4614
|
+
* example:
|
|
4615
|
+
* {
|
|
4616
|
+
* "config": {
|
|
4617
|
+
* "appId": "1234567890",
|
|
4618
|
+
* "componentId": "1234567890",
|
|
4619
|
+
* "hookId": "1234567890"
|
|
4620
|
+
* },
|
|
4621
|
+
* "origin": "journey",
|
|
4622
|
+
* "context": {
|
|
4623
|
+
* "journey_id": "8d0a2235-97ce-42d0-88a3-e374634ca44e",
|
|
4624
|
+
* "entity_id": "9e1b3346-a8df-53e1-99b4-f485745db55f",
|
|
4625
|
+
* "journey_name": "Product Selection Journey",
|
|
4626
|
+
* "journey_tags": [
|
|
4627
|
+
* "electricity",
|
|
4628
|
+
* "residential"
|
|
4629
|
+
* ],
|
|
4630
|
+
* "journey_url_params": {
|
|
4631
|
+
* "utm_source": "google",
|
|
4632
|
+
* "utm_campaign": "spring2024"
|
|
4633
|
+
* },
|
|
4634
|
+
* "current_step_name": "Product Selection",
|
|
4635
|
+
* "current_block_name": "Energy Products",
|
|
4636
|
+
* "steps_data": [
|
|
4637
|
+
* {
|
|
4638
|
+
* "step_name": "Address Information",
|
|
4639
|
+
* "step_index": 0,
|
|
4640
|
+
* "blocks": {
|
|
4641
|
+
* "Adresse": {
|
|
4642
|
+
* "countryCode": "DE",
|
|
4643
|
+
* "city": "Koblenz",
|
|
4644
|
+
* "zipCode": "56068",
|
|
4645
|
+
* "streetName": "Am Alten Hospital",
|
|
4646
|
+
* "houseNumber": "123"
|
|
4647
|
+
* }
|
|
4648
|
+
* }
|
|
4649
|
+
* }
|
|
4650
|
+
* ]
|
|
4651
|
+
* }
|
|
4652
|
+
* }
|
|
4653
|
+
*/
|
|
4654
|
+
export interface ExternalCatalogJourneyRequest {
|
|
4655
|
+
config?: {
|
|
4656
|
+
/**
|
|
4657
|
+
* The app id.
|
|
4658
|
+
* example:
|
|
4659
|
+
* 1234567890
|
|
4660
|
+
*/
|
|
4661
|
+
appId?: string;
|
|
4662
|
+
/**
|
|
4663
|
+
* The component id.
|
|
4664
|
+
* example:
|
|
4665
|
+
* 1234567890
|
|
4666
|
+
*/
|
|
4667
|
+
componentId?: string;
|
|
4668
|
+
/**
|
|
4669
|
+
* The hook id.
|
|
4670
|
+
* example:
|
|
4671
|
+
* 1234567890
|
|
4672
|
+
*/
|
|
4673
|
+
hookId?: string;
|
|
4674
|
+
};
|
|
4675
|
+
/**
|
|
4676
|
+
* The origin of the request.
|
|
4677
|
+
* example:
|
|
4678
|
+
* journey
|
|
4679
|
+
*/
|
|
4680
|
+
origin: "journey";
|
|
4681
|
+
context: JourneyContext;
|
|
4682
|
+
}
|
|
4683
|
+
/**
|
|
4684
|
+
* The request payload for the external catalog service.
|
|
4685
|
+
*/
|
|
4686
|
+
export type ExternalCatalogRequest = /* The request payload for the external catalog service. */ /**
|
|
4687
|
+
* The request payload for the external catalog service with a journey context.
|
|
4688
|
+
* example:
|
|
4689
|
+
* {
|
|
4690
|
+
* "config": {
|
|
4691
|
+
* "appId": "1234567890",
|
|
4692
|
+
* "componentId": "1234567890",
|
|
4693
|
+
* "hookId": "1234567890"
|
|
4694
|
+
* },
|
|
4695
|
+
* "origin": "journey",
|
|
4696
|
+
* "context": {
|
|
4697
|
+
* "journey_id": "8d0a2235-97ce-42d0-88a3-e374634ca44e",
|
|
4698
|
+
* "entity_id": "9e1b3346-a8df-53e1-99b4-f485745db55f",
|
|
4699
|
+
* "journey_name": "Product Selection Journey",
|
|
4700
|
+
* "journey_tags": [
|
|
4701
|
+
* "electricity",
|
|
4702
|
+
* "residential"
|
|
4703
|
+
* ],
|
|
4704
|
+
* "journey_url_params": {
|
|
4705
|
+
* "utm_source": "google",
|
|
4706
|
+
* "utm_campaign": "spring2024"
|
|
4707
|
+
* },
|
|
4708
|
+
* "current_step_name": "Product Selection",
|
|
4709
|
+
* "current_block_name": "Energy Products",
|
|
4710
|
+
* "steps_data": [
|
|
4711
|
+
* {
|
|
4712
|
+
* "step_name": "Address Information",
|
|
4713
|
+
* "step_index": 0,
|
|
4714
|
+
* "blocks": {
|
|
4715
|
+
* "Adresse": {
|
|
4716
|
+
* "countryCode": "DE",
|
|
4717
|
+
* "city": "Koblenz",
|
|
4718
|
+
* "zipCode": "56068",
|
|
4719
|
+
* "streetName": "Am Alten Hospital",
|
|
4720
|
+
* "houseNumber": "123"
|
|
4721
|
+
* }
|
|
4722
|
+
* }
|
|
4723
|
+
* }
|
|
4724
|
+
* ]
|
|
4725
|
+
* }
|
|
4726
|
+
* }
|
|
4727
|
+
*/
|
|
4728
|
+
ExternalCatalogJourneyRequest | /**
|
|
4729
|
+
* The request payload for the external catalog service with a custom context. E.g. for requests from the Portal.
|
|
4730
|
+
* example:
|
|
4731
|
+
* {
|
|
4732
|
+
* "config": {
|
|
4733
|
+
* "appId": "1234567890",
|
|
4734
|
+
* "componentId": "1234567890",
|
|
4735
|
+
* "hookId": "1234567890"
|
|
4736
|
+
* },
|
|
4737
|
+
* "origin": "custom",
|
|
4738
|
+
* "context": {
|
|
4739
|
+
* "user_id": "user-12345",
|
|
4740
|
+
* "session_id": "session-67890",
|
|
4741
|
+
* "custom_context_key": "custom_context_value"
|
|
4742
|
+
* }
|
|
4743
|
+
* }
|
|
4744
|
+
*/
|
|
4745
|
+
ExternalCatalogCustomRequest;
|
|
4516
4746
|
/**
|
|
4517
4747
|
* example:
|
|
4518
4748
|
* {
|
|
@@ -4923,7 +5153,7 @@ declare namespace Components {
|
|
|
4923
5153
|
*/
|
|
4924
5154
|
export type IntegrationAuthCredentials = /* The auth credentials for external integrations */ BasicAuthIntegration | OAuthIntegration;
|
|
4925
5155
|
export type IntegrationCredentialsResult = /* The auth credentials for external integrations */ IntegrationAuthCredentials;
|
|
4926
|
-
export type IntegrationId = "getag" | "
|
|
5156
|
+
export type IntegrationId = "getag" | "external-catalog";
|
|
4927
5157
|
export interface JourneyContext {
|
|
4928
5158
|
/**
|
|
4929
5159
|
* The ID of the journey.
|
|
@@ -9514,6 +9744,14 @@ declare namespace Paths {
|
|
|
9514
9744
|
export type $404 = Components.Schemas.Error;
|
|
9515
9745
|
}
|
|
9516
9746
|
}
|
|
9747
|
+
namespace $GetExternalCatalogProducts {
|
|
9748
|
+
export type RequestBody = /* The request payload for the external catalog service. */ Components.Schemas.ExternalCatalogRequest;
|
|
9749
|
+
namespace Responses {
|
|
9750
|
+
export type $200 = Components.Schemas.SearchExternalCatalogResult;
|
|
9751
|
+
export type $400 = Components.Schemas.Error;
|
|
9752
|
+
export type $403 = Components.Schemas.Error;
|
|
9753
|
+
}
|
|
9754
|
+
}
|
|
9517
9755
|
namespace $HistoricMarketPrices {
|
|
9518
9756
|
namespace Parameters {
|
|
9519
9757
|
export type BiddingZone = /* The bidding zone for a spot market price. */ Components.Schemas.SpotMarketBiddingZone;
|
|
@@ -11095,6 +11333,16 @@ export interface OperationMethods {
|
|
|
11095
11333
|
data?: any,
|
|
11096
11334
|
config?: AxiosRequestConfig
|
|
11097
11335
|
): OperationResponse<Paths.$DeleteCredentials.Responses.$204>
|
|
11336
|
+
/**
|
|
11337
|
+
* $getExternalCatalogProducts - getExternalCatalogProducts
|
|
11338
|
+
*
|
|
11339
|
+
* Returns the list of available external catalog products with computed prices based on a given context
|
|
11340
|
+
*/
|
|
11341
|
+
'$getExternalCatalogProducts'(
|
|
11342
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
11343
|
+
data?: Paths.$GetExternalCatalogProducts.RequestBody,
|
|
11344
|
+
config?: AxiosRequestConfig
|
|
11345
|
+
): OperationResponse<Paths.$GetExternalCatalogProducts.Responses.$200>
|
|
11098
11346
|
/**
|
|
11099
11347
|
* $productRecommendations - productRecommendations
|
|
11100
11348
|
*
|
|
@@ -11347,6 +11595,18 @@ export interface PathsDictionary {
|
|
|
11347
11595
|
config?: AxiosRequestConfig
|
|
11348
11596
|
): OperationResponse<Paths.$DeleteCredentials.Responses.$204>
|
|
11349
11597
|
}
|
|
11598
|
+
['/v1/public/external-catalog/products']: {
|
|
11599
|
+
/**
|
|
11600
|
+
* $getExternalCatalogProducts - getExternalCatalogProducts
|
|
11601
|
+
*
|
|
11602
|
+
* Returns the list of available external catalog products with computed prices based on a given context
|
|
11603
|
+
*/
|
|
11604
|
+
'post'(
|
|
11605
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
11606
|
+
data?: Paths.$GetExternalCatalogProducts.RequestBody,
|
|
11607
|
+
config?: AxiosRequestConfig
|
|
11608
|
+
): OperationResponse<Paths.$GetExternalCatalogProducts.Responses.$200>
|
|
11609
|
+
}
|
|
11350
11610
|
['/v1/public/product-recommendations']: {
|
|
11351
11611
|
/**
|
|
11352
11612
|
* $productRecommendations - productRecommendations
|
|
@@ -11406,6 +11666,7 @@ export type Coupon = Components.Schemas.Coupon;
|
|
|
11406
11666
|
export type CouponItem = Components.Schemas.CouponItem;
|
|
11407
11667
|
export type CouponWithoutPromoCodes = Components.Schemas.CouponWithoutPromoCodes;
|
|
11408
11668
|
export type Currency = Components.Schemas.Currency;
|
|
11669
|
+
export type CustomContext = Components.Schemas.CustomContext;
|
|
11409
11670
|
export type Customer = Components.Schemas.Customer;
|
|
11410
11671
|
export type DiscountAmounts = Components.Schemas.DiscountAmounts;
|
|
11411
11672
|
export type DynamicTariffInterval = Components.Schemas.DynamicTariffInterval;
|
|
@@ -11414,7 +11675,11 @@ export type EntityId = Components.Schemas.EntityId;
|
|
|
11414
11675
|
export type EntityItem = Components.Schemas.EntityItem;
|
|
11415
11676
|
export type EntityRelation = Components.Schemas.EntityRelation;
|
|
11416
11677
|
export type Error = Components.Schemas.Error;
|
|
11678
|
+
export type ExternalCatalogConfigurationRequest = Components.Schemas.ExternalCatalogConfigurationRequest;
|
|
11679
|
+
export type ExternalCatalogCustomRequest = Components.Schemas.ExternalCatalogCustomRequest;
|
|
11417
11680
|
export type ExternalCatalogItem = Components.Schemas.ExternalCatalogItem;
|
|
11681
|
+
export type ExternalCatalogJourneyRequest = Components.Schemas.ExternalCatalogJourneyRequest;
|
|
11682
|
+
export type ExternalCatalogRequest = Components.Schemas.ExternalCatalogRequest;
|
|
11418
11683
|
export type ExternalFeeMapping = Components.Schemas.ExternalFeeMapping;
|
|
11419
11684
|
export type ExternalFeeMappings = Components.Schemas.ExternalFeeMappings;
|
|
11420
11685
|
export type ExternalFeeMetadata = Components.Schemas.ExternalFeeMetadata;
|
package/dist/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Pricing API",
|
|
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",
|
|
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. E.g. GetAG.\n\n### External Catalog API\nProvides endpoints for external catalog.\n\n### Product Recommendations API\nProvides endpoints for product recommendations.\n",
|
|
6
6
|
"version": "1.1.0",
|
|
7
7
|
"termsOfService": "https://epilot.cloud/agb",
|
|
8
8
|
"contact": {
|
|
@@ -38,7 +38,11 @@
|
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"name": "External Integrations API",
|
|
41
|
-
"description": "Provides endpoints for external integrations.\n"
|
|
41
|
+
"description": "Provides endpoints for external integrations. E.g. GetAG.\n"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "External Catalog API",
|
|
45
|
+
"description": "Provides endpoints for external catalog.\n"
|
|
42
46
|
},
|
|
43
47
|
{
|
|
44
48
|
"name": "Product Recommendations API",
|
|
@@ -1701,7 +1705,7 @@
|
|
|
1701
1705
|
"$ref": "#/components/schemas/IntegrationId"
|
|
1702
1706
|
},
|
|
1703
1707
|
"required": true,
|
|
1704
|
-
"example": "
|
|
1708
|
+
"example": "external-catalog"
|
|
1705
1709
|
}
|
|
1706
1710
|
],
|
|
1707
1711
|
"summary": "searchExternalProducts",
|
|
@@ -2700,6 +2704,156 @@
|
|
|
2700
2704
|
}
|
|
2701
2705
|
}
|
|
2702
2706
|
},
|
|
2707
|
+
"/v1/public/external-catalog/products": {
|
|
2708
|
+
"post": {
|
|
2709
|
+
"description": "Returns the list of available external catalog products with computed prices based on a given context",
|
|
2710
|
+
"operationId": "$getExternalCatalogProducts",
|
|
2711
|
+
"security": [
|
|
2712
|
+
{},
|
|
2713
|
+
{
|
|
2714
|
+
"EpilotPublicAuth": []
|
|
2715
|
+
}
|
|
2716
|
+
],
|
|
2717
|
+
"summary": "getExternalCatalogProducts",
|
|
2718
|
+
"tags": [
|
|
2719
|
+
"External Catalog API"
|
|
2720
|
+
],
|
|
2721
|
+
"requestBody": {
|
|
2722
|
+
"required": true,
|
|
2723
|
+
"content": {
|
|
2724
|
+
"application/json": {
|
|
2725
|
+
"schema": {
|
|
2726
|
+
"$ref": "#/components/schemas/ExternalCatalogRequest"
|
|
2727
|
+
}
|
|
2728
|
+
}
|
|
2729
|
+
}
|
|
2730
|
+
},
|
|
2731
|
+
"responses": {
|
|
2732
|
+
"200": {
|
|
2733
|
+
"description": "The available external catalog products response payload",
|
|
2734
|
+
"content": {
|
|
2735
|
+
"application/json": {
|
|
2736
|
+
"schema": {
|
|
2737
|
+
"$ref": "#/components/schemas/SearchExternalCatalogResult"
|
|
2738
|
+
},
|
|
2739
|
+
"examples": {
|
|
2740
|
+
"External products": {
|
|
2741
|
+
"value": {
|
|
2742
|
+
"hits": 1,
|
|
2743
|
+
"results": [
|
|
2744
|
+
{
|
|
2745
|
+
"pricing_details": {
|
|
2746
|
+
"items": [
|
|
2747
|
+
{
|
|
2748
|
+
"_id": "price-12312414",
|
|
2749
|
+
"price_id": "price-12312414",
|
|
2750
|
+
"is_composite_price": true,
|
|
2751
|
+
"description": "Home Energy Package Composite",
|
|
2752
|
+
"item_components": [
|
|
2753
|
+
{
|
|
2754
|
+
"_id": "price-12312414-component-0",
|
|
2755
|
+
"price_id": "price-12312414-component-0",
|
|
2756
|
+
"description": "Working Price",
|
|
2757
|
+
"is_tax_inclusive": true,
|
|
2758
|
+
"amount_total_decimal": "100",
|
|
2759
|
+
"amount_total": 10000,
|
|
2760
|
+
"amount_subtotal_decimal": "100",
|
|
2761
|
+
"amount_subtotal": 10000,
|
|
2762
|
+
"unit_amount": 10,
|
|
2763
|
+
"unit_amount_gross": 10,
|
|
2764
|
+
"unit_amount_gross_decimal": "0.10",
|
|
2765
|
+
"unit_amount_net": 10,
|
|
2766
|
+
"unit_amount_net_decimal": "0.10",
|
|
2767
|
+
"billing_period": "monthly",
|
|
2768
|
+
"type": "recurring",
|
|
2769
|
+
"taxes": [],
|
|
2770
|
+
"pricing_model": "per_unit",
|
|
2771
|
+
"quantity": 1,
|
|
2772
|
+
"_price": {
|
|
2773
|
+
"_id": "price-12312414-component-0",
|
|
2774
|
+
"unit_amount_currency": "EUR",
|
|
2775
|
+
"description": "Working Price",
|
|
2776
|
+
"is_tax_inclusive": true,
|
|
2777
|
+
"unit_amount": 10,
|
|
2778
|
+
"unit_amount_decimal": "0.10",
|
|
2779
|
+
"unit": "kWh",
|
|
2780
|
+
"billing_period": "monthly",
|
|
2781
|
+
"type": "recurring",
|
|
2782
|
+
"billing_duration_amount": 24,
|
|
2783
|
+
"billing_duration_unit": "months",
|
|
2784
|
+
"notice_time_amount": 3,
|
|
2785
|
+
"notice_time_unit": "months",
|
|
2786
|
+
"termination_time_amount": 3,
|
|
2787
|
+
"termination_time_unit": "months",
|
|
2788
|
+
"renewal_duration_amount": 12,
|
|
2789
|
+
"renewal_duration_unit": "months",
|
|
2790
|
+
"active": true,
|
|
2791
|
+
"is_composite_price": false,
|
|
2792
|
+
"variable_price": true,
|
|
2793
|
+
"pricing_model": "per_unit",
|
|
2794
|
+
"price_display_in_journeys": "show_price"
|
|
2795
|
+
}
|
|
2796
|
+
}
|
|
2797
|
+
]
|
|
2798
|
+
}
|
|
2799
|
+
],
|
|
2800
|
+
"currency": "EUR",
|
|
2801
|
+
"amount_subtotal": 10000,
|
|
2802
|
+
"amount_total": 10000,
|
|
2803
|
+
"amount_tax": 0,
|
|
2804
|
+
"total_details": {
|
|
2805
|
+
"amount_tax": 0,
|
|
2806
|
+
"breakdown": {
|
|
2807
|
+
"taxes": [],
|
|
2808
|
+
"recurrences": [
|
|
2809
|
+
{
|
|
2810
|
+
"type": "recurring",
|
|
2811
|
+
"billing_period": "monthly",
|
|
2812
|
+
"amount_total": 10000,
|
|
2813
|
+
"amount_total_decimal": "100.00",
|
|
2814
|
+
"amount_subtotal": 10000,
|
|
2815
|
+
"amount_subtotal_decimal": "100.00",
|
|
2816
|
+
"amount_tax": 0
|
|
2817
|
+
}
|
|
2818
|
+
]
|
|
2819
|
+
}
|
|
2820
|
+
}
|
|
2821
|
+
},
|
|
2822
|
+
"_meta": {
|
|
2823
|
+
"signature": "abc123",
|
|
2824
|
+
"timestamp": 1712049221642
|
|
2825
|
+
}
|
|
2826
|
+
}
|
|
2827
|
+
]
|
|
2828
|
+
}
|
|
2829
|
+
}
|
|
2830
|
+
}
|
|
2831
|
+
}
|
|
2832
|
+
}
|
|
2833
|
+
},
|
|
2834
|
+
"400": {
|
|
2835
|
+
"description": "Invalid payload",
|
|
2836
|
+
"content": {
|
|
2837
|
+
"application/json": {
|
|
2838
|
+
"schema": {
|
|
2839
|
+
"$ref": "#/components/schemas/Error"
|
|
2840
|
+
}
|
|
2841
|
+
}
|
|
2842
|
+
}
|
|
2843
|
+
},
|
|
2844
|
+
"403": {
|
|
2845
|
+
"description": "Forbidden, no valid configuration found for the given integration / organization",
|
|
2846
|
+
"content": {
|
|
2847
|
+
"application/json": {
|
|
2848
|
+
"schema": {
|
|
2849
|
+
"$ref": "#/components/schemas/Error"
|
|
2850
|
+
}
|
|
2851
|
+
}
|
|
2852
|
+
}
|
|
2853
|
+
}
|
|
2854
|
+
}
|
|
2855
|
+
}
|
|
2856
|
+
},
|
|
2703
2857
|
"/v1/public/product-recommendations": {
|
|
2704
2858
|
"post": {
|
|
2705
2859
|
"description": "Get a list of product recommendations based on the search parameters.",
|
|
@@ -2852,7 +3006,6 @@
|
|
|
2852
3006
|
"type": "string",
|
|
2853
3007
|
"enum": [
|
|
2854
3008
|
"getag",
|
|
2855
|
-
"ikom",
|
|
2856
3009
|
"external-catalog"
|
|
2857
3010
|
]
|
|
2858
3011
|
},
|
|
@@ -8282,6 +8435,164 @@
|
|
|
8282
8435
|
"context"
|
|
8283
8436
|
]
|
|
8284
8437
|
},
|
|
8438
|
+
"ExternalCatalogRequest": {
|
|
8439
|
+
"description": "The request payload for the external catalog service.",
|
|
8440
|
+
"oneOf": [
|
|
8441
|
+
{
|
|
8442
|
+
"$ref": "#/components/schemas/ExternalCatalogJourneyRequest"
|
|
8443
|
+
},
|
|
8444
|
+
{
|
|
8445
|
+
"$ref": "#/components/schemas/ExternalCatalogCustomRequest"
|
|
8446
|
+
}
|
|
8447
|
+
],
|
|
8448
|
+
"discriminator": {
|
|
8449
|
+
"propertyName": "origin",
|
|
8450
|
+
"mapping": {
|
|
8451
|
+
"journey": "#/components/schemas/ExternalCatalogJourneyRequest",
|
|
8452
|
+
"custom": "#/components/schemas/ExternalCatalogCustomRequest"
|
|
8453
|
+
}
|
|
8454
|
+
}
|
|
8455
|
+
},
|
|
8456
|
+
"ExternalCatalogConfigurationRequest": {
|
|
8457
|
+
"type": "object",
|
|
8458
|
+
"description": "The request payload for the external catalog configuration service.",
|
|
8459
|
+
"properties": {
|
|
8460
|
+
"config": {
|
|
8461
|
+
"type": "object",
|
|
8462
|
+
"properties": {
|
|
8463
|
+
"appId": {
|
|
8464
|
+
"type": "string",
|
|
8465
|
+
"description": "The app id.",
|
|
8466
|
+
"example": "1234567890"
|
|
8467
|
+
},
|
|
8468
|
+
"componentId": {
|
|
8469
|
+
"type": "string",
|
|
8470
|
+
"description": "The component id.",
|
|
8471
|
+
"example": "1234567890"
|
|
8472
|
+
},
|
|
8473
|
+
"hookId": {
|
|
8474
|
+
"type": "string",
|
|
8475
|
+
"description": "The hook id.",
|
|
8476
|
+
"example": "1234567890"
|
|
8477
|
+
}
|
|
8478
|
+
}
|
|
8479
|
+
}
|
|
8480
|
+
},
|
|
8481
|
+
"example": {
|
|
8482
|
+
"config": {
|
|
8483
|
+
"appId": "1234567890",
|
|
8484
|
+
"componentId": "1234567890",
|
|
8485
|
+
"hookId": "1234567890"
|
|
8486
|
+
}
|
|
8487
|
+
}
|
|
8488
|
+
},
|
|
8489
|
+
"ExternalCatalogJourneyRequest": {
|
|
8490
|
+
"allOf": [
|
|
8491
|
+
{
|
|
8492
|
+
"$ref": "#/components/schemas/ExternalCatalogConfigurationRequest"
|
|
8493
|
+
},
|
|
8494
|
+
{
|
|
8495
|
+
"type": "object",
|
|
8496
|
+
"description": "The request payload for the external catalog service with a journey context.",
|
|
8497
|
+
"properties": {
|
|
8498
|
+
"origin": {
|
|
8499
|
+
"type": "string",
|
|
8500
|
+
"description": "The origin of the request.",
|
|
8501
|
+
"enum": [
|
|
8502
|
+
"journey"
|
|
8503
|
+
],
|
|
8504
|
+
"example": "journey"
|
|
8505
|
+
},
|
|
8506
|
+
"context": {
|
|
8507
|
+
"$ref": "#/components/schemas/JourneyContext"
|
|
8508
|
+
}
|
|
8509
|
+
},
|
|
8510
|
+
"additionalProperties": false,
|
|
8511
|
+
"required": [
|
|
8512
|
+
"origin",
|
|
8513
|
+
"context"
|
|
8514
|
+
],
|
|
8515
|
+
"example": {
|
|
8516
|
+
"origin": "journey",
|
|
8517
|
+
"context": {
|
|
8518
|
+
"journey_id": "8d0a2235-97ce-42d0-88a3-e374634ca44e",
|
|
8519
|
+
"entity_id": "9e1b3346-a8df-53e1-99b4-f485745db55f",
|
|
8520
|
+
"journey_name": "Product Selection Journey",
|
|
8521
|
+
"journey_tags": [
|
|
8522
|
+
"electricity",
|
|
8523
|
+
"residential"
|
|
8524
|
+
],
|
|
8525
|
+
"journey_url_params": {
|
|
8526
|
+
"utm_source": "google",
|
|
8527
|
+
"utm_campaign": "spring2024"
|
|
8528
|
+
},
|
|
8529
|
+
"current_step_name": "Product Selection",
|
|
8530
|
+
"current_block_name": "Energy Products",
|
|
8531
|
+
"steps_data": [
|
|
8532
|
+
{
|
|
8533
|
+
"step_name": "Address Information",
|
|
8534
|
+
"step_index": 0,
|
|
8535
|
+
"blocks": {
|
|
8536
|
+
"Adresse": {
|
|
8537
|
+
"countryCode": "DE",
|
|
8538
|
+
"city": "Koblenz",
|
|
8539
|
+
"zipCode": "56068",
|
|
8540
|
+
"streetName": "Am Alten Hospital",
|
|
8541
|
+
"houseNumber": "123"
|
|
8542
|
+
}
|
|
8543
|
+
}
|
|
8544
|
+
}
|
|
8545
|
+
]
|
|
8546
|
+
}
|
|
8547
|
+
}
|
|
8548
|
+
}
|
|
8549
|
+
]
|
|
8550
|
+
},
|
|
8551
|
+
"ExternalCatalogCustomRequest": {
|
|
8552
|
+
"allOf": [
|
|
8553
|
+
{
|
|
8554
|
+
"$ref": "#/components/schemas/ExternalCatalogConfigurationRequest"
|
|
8555
|
+
},
|
|
8556
|
+
{
|
|
8557
|
+
"type": "object",
|
|
8558
|
+
"description": "The request payload for the external catalog service with a custom context. E.g. for requests from the Portal.",
|
|
8559
|
+
"properties": {
|
|
8560
|
+
"origin": {
|
|
8561
|
+
"type": "string",
|
|
8562
|
+
"description": "The origin of the request.",
|
|
8563
|
+
"enum": [
|
|
8564
|
+
"custom"
|
|
8565
|
+
],
|
|
8566
|
+
"example": "custom"
|
|
8567
|
+
},
|
|
8568
|
+
"context": {
|
|
8569
|
+
"$ref": "#/components/schemas/CustomContext"
|
|
8570
|
+
}
|
|
8571
|
+
},
|
|
8572
|
+
"additionalProperties": false,
|
|
8573
|
+
"required": [
|
|
8574
|
+
"origin",
|
|
8575
|
+
"context"
|
|
8576
|
+
],
|
|
8577
|
+
"example": {
|
|
8578
|
+
"origin": "custom",
|
|
8579
|
+
"context": {
|
|
8580
|
+
"user_id": "user-12345",
|
|
8581
|
+
"session_id": "session-67890",
|
|
8582
|
+
"custom_context_key": "custom_context_value"
|
|
8583
|
+
}
|
|
8584
|
+
}
|
|
8585
|
+
}
|
|
8586
|
+
]
|
|
8587
|
+
},
|
|
8588
|
+
"CustomContext": {
|
|
8589
|
+
"type": "object",
|
|
8590
|
+
"description": "A custom context object. E.g. for Portal context.",
|
|
8591
|
+
"additionalProperties": true,
|
|
8592
|
+
"example": {
|
|
8593
|
+
"custom_context_key": "custom_context_value"
|
|
8594
|
+
}
|
|
8595
|
+
},
|
|
8285
8596
|
"JourneyContext": {
|
|
8286
8597
|
"type": "object",
|
|
8287
8598
|
"additionalProperties": false,
|