@epilot/pricing-client 3.51.0 → 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.
@@ -1 +1 @@
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 a=i(t(466));r.default=a.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}/external-catalog":{"post":{"deprecated":true,"operationId":"$searchExternalCatalog","parameters":[{"in":"path","name":"integrationId","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"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}/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}(330),i=exports;for(var a in t)i[a]=t[a];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/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}/external-catalog": {
226
+ "/v1/public/integration/{integrationId}/products": {
227
227
  "post": {
228
- "deprecated": true,
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": "$searchExternalProducts",
247
+ "operationId": "$searchExternalProductsRecommendation",
249
248
  "parameters": [
250
249
  {
251
250
  "in": "path",
package/dist/openapi.d.ts CHANGED
@@ -336,7 +336,7 @@ declare namespace Components {
336
336
  /**
337
337
  * The billing period duration unit
338
338
  */
339
- billing_duration_unit?: "weeks" | "months" | "years";
339
+ billing_duration_unit?: "days" | "weeks" | "months" | "years";
340
340
  /**
341
341
  * The notice period duration
342
342
  */
@@ -344,7 +344,7 @@ declare namespace Components {
344
344
  /**
345
345
  * The notice period duration unit
346
346
  */
347
- notice_time_unit?: "weeks" | "months" | "years";
347
+ notice_time_unit?: "days" | "weeks" | "months" | "years";
348
348
  /**
349
349
  * The termination period duration
350
350
  */
@@ -352,7 +352,7 @@ declare namespace Components {
352
352
  /**
353
353
  * The termination period duration unit
354
354
  */
355
- termination_time_unit?: "weeks" | "months" | "years";
355
+ termination_time_unit?: "days" | "weeks" | "months" | "years";
356
356
  /**
357
357
  * The renewal period duration
358
358
  */
@@ -360,7 +360,7 @@ declare namespace Components {
360
360
  /**
361
361
  * The renewal period duration unit
362
362
  */
363
- renewal_duration_unit?: "weeks" | "months" | "years";
363
+ renewal_duration_unit?: "days" | "weeks" | "months" | "years";
364
364
  /**
365
365
  * Whether the price can be used for new purchases.
366
366
  */
@@ -4785,7 +4785,7 @@ declare namespace Components {
4785
4785
  /**
4786
4786
  * The billing period duration unit
4787
4787
  */
4788
- billing_duration_unit?: "weeks" | "months" | "years";
4788
+ billing_duration_unit?: "days" | "weeks" | "months" | "years";
4789
4789
  /**
4790
4790
  * The notice period duration
4791
4791
  */
@@ -4793,7 +4793,7 @@ declare namespace Components {
4793
4793
  /**
4794
4794
  * The notice period duration unit
4795
4795
  */
4796
- notice_time_unit?: "weeks" | "months" | "years";
4796
+ notice_time_unit?: "days" | "weeks" | "months" | "years";
4797
4797
  /**
4798
4798
  * The termination period duration
4799
4799
  */
@@ -4801,7 +4801,7 @@ declare namespace Components {
4801
4801
  /**
4802
4802
  * The termination period duration unit
4803
4803
  */
4804
- termination_time_unit?: "weeks" | "months" | "years";
4804
+ termination_time_unit?: "days" | "weeks" | "months" | "years";
4805
4805
  /**
4806
4806
  * The renewal period duration
4807
4807
  */
@@ -4809,7 +4809,7 @@ declare namespace Components {
4809
4809
  /**
4810
4810
  * The renewal period duration unit
4811
4811
  */
4812
- renewal_duration_unit?: "weeks" | "months" | "years";
4812
+ renewal_duration_unit?: "days" | "weeks" | "months" | "years";
4813
4813
  /**
4814
4814
  * Whether the price can be used for new purchases.
4815
4815
  */
@@ -5116,7 +5116,7 @@ declare namespace Components {
5116
5116
  /**
5117
5117
  * The billing period duration unit
5118
5118
  */
5119
- billing_duration_unit?: "weeks" | "months" | "years";
5119
+ billing_duration_unit?: "days" | "weeks" | "months" | "years";
5120
5120
  /**
5121
5121
  * The notice period duration
5122
5122
  */
@@ -5124,7 +5124,7 @@ declare namespace Components {
5124
5124
  /**
5125
5125
  * The notice period duration unit
5126
5126
  */
5127
- notice_time_unit?: "weeks" | "months" | "years";
5127
+ notice_time_unit?: "days" | "weeks" | "months" | "years";
5128
5128
  /**
5129
5129
  * The termination period duration
5130
5130
  */
@@ -5132,7 +5132,7 @@ declare namespace Components {
5132
5132
  /**
5133
5133
  * The termination period duration unit
5134
5134
  */
5135
- termination_time_unit?: "weeks" | "months" | "years";
5135
+ termination_time_unit?: "days" | "weeks" | "months" | "years";
5136
5136
  /**
5137
5137
  * The renewal period duration
5138
5138
  */
@@ -5140,7 +5140,7 @@ declare namespace Components {
5140
5140
  /**
5141
5141
  * The renewal period duration unit
5142
5142
  */
5143
- renewal_duration_unit?: "weeks" | "months" | "years";
5143
+ renewal_duration_unit?: "days" | "weeks" | "months" | "years";
5144
5144
  /**
5145
5145
  * Whether the price can be used for new purchases.
5146
5146
  */
@@ -5281,10 +5281,10 @@ declare namespace Components {
5281
5281
  * "token": "9e1758a3-2a32-4a5f-b034-a8ab883f8fb9",
5282
5282
  * "image_uri": "https://dummy-image.jpg",
5283
5283
  * "organization_id": "728",
5284
- * "department": null,
5284
+ * "department": "Engineering",
5285
5285
  * "preferred_language": "en",
5286
5286
  * "status": "Active",
5287
- * "phone": null,
5287
+ * "phone": "+49123456789",
5288
5288
  * "email_notification_setting": {
5289
5289
  * "added_participant_opportunity": true,
5290
5290
  * "assigned_opportunity": true,
@@ -6385,7 +6385,7 @@ declare namespace Components {
6385
6385
  /**
6386
6386
  * The billing period duration unit
6387
6387
  */
6388
- billing_duration_unit?: "weeks" | "months" | "years";
6388
+ billing_duration_unit?: "days" | "weeks" | "months" | "years";
6389
6389
  /**
6390
6390
  * The notice period duration
6391
6391
  */
@@ -6393,7 +6393,7 @@ declare namespace Components {
6393
6393
  /**
6394
6394
  * The notice period duration unit
6395
6395
  */
6396
- notice_time_unit?: "weeks" | "months" | "years";
6396
+ notice_time_unit?: "days" | "weeks" | "months" | "years";
6397
6397
  /**
6398
6398
  * The termination period duration
6399
6399
  */
@@ -6401,7 +6401,7 @@ declare namespace Components {
6401
6401
  /**
6402
6402
  * The termination period duration unit
6403
6403
  */
6404
- termination_time_unit?: "weeks" | "months" | "years";
6404
+ termination_time_unit?: "days" | "weeks" | "months" | "years";
6405
6405
  /**
6406
6406
  * The renewal period duration
6407
6407
  */
@@ -6409,7 +6409,7 @@ declare namespace Components {
6409
6409
  /**
6410
6410
  * The renewal period duration unit
6411
6411
  */
6412
- renewal_duration_unit?: "weeks" | "months" | "years";
6412
+ renewal_duration_unit?: "days" | "weeks" | "months" | "years";
6413
6413
  /**
6414
6414
  * Whether the price can be used for new purchases.
6415
6415
  */
@@ -6593,7 +6593,7 @@ declare namespace Components {
6593
6593
  /**
6594
6594
  * The billing period duration unit
6595
6595
  */
6596
- billing_duration_unit?: "weeks" | "months" | "years";
6596
+ billing_duration_unit?: "days" | "weeks" | "months" | "years";
6597
6597
  /**
6598
6598
  * The notice period duration
6599
6599
  */
@@ -6601,7 +6601,7 @@ declare namespace Components {
6601
6601
  /**
6602
6602
  * The notice period duration unit
6603
6603
  */
6604
- notice_time_unit?: "weeks" | "months" | "years";
6604
+ notice_time_unit?: "days" | "weeks" | "months" | "years";
6605
6605
  /**
6606
6606
  * The termination period duration
6607
6607
  */
@@ -6609,7 +6609,7 @@ declare namespace Components {
6609
6609
  /**
6610
6610
  * The termination period duration unit
6611
6611
  */
6612
- termination_time_unit?: "weeks" | "months" | "years";
6612
+ termination_time_unit?: "days" | "weeks" | "months" | "years";
6613
6613
  /**
6614
6614
  * The renewal period duration
6615
6615
  */
@@ -6617,7 +6617,7 @@ declare namespace Components {
6617
6617
  /**
6618
6618
  * The renewal period duration unit
6619
6619
  */
6620
- renewal_duration_unit?: "weeks" | "months" | "years";
6620
+ renewal_duration_unit?: "days" | "weeks" | "months" | "years";
6621
6621
  }
6622
6622
  export interface PriceDynamicTariff {
6623
6623
  mode: /* The mode of the dynamic tariff. `day_ahead_market` uses the Day-Ahead spot market price as base. */ DynamicTariffMode;
@@ -7631,7 +7631,7 @@ declare namespace Components {
7631
7631
  /**
7632
7632
  * The billing period duration unit
7633
7633
  */
7634
- billing_duration_unit?: "weeks" | "months" | "years";
7634
+ billing_duration_unit?: "days" | "weeks" | "months" | "years";
7635
7635
  /**
7636
7636
  * The notice period duration
7637
7637
  */
@@ -7639,7 +7639,7 @@ declare namespace Components {
7639
7639
  /**
7640
7640
  * The notice period duration unit
7641
7641
  */
7642
- notice_time_unit?: "weeks" | "months" | "years";
7642
+ notice_time_unit?: "days" | "weeks" | "months" | "years";
7643
7643
  /**
7644
7644
  * The termination period duration
7645
7645
  */
@@ -7647,7 +7647,7 @@ declare namespace Components {
7647
7647
  /**
7648
7648
  * The termination period duration unit
7649
7649
  */
7650
- termination_time_unit?: "weeks" | "months" | "years";
7650
+ termination_time_unit?: "days" | "weeks" | "months" | "years";
7651
7651
  /**
7652
7652
  * The renewal period duration
7653
7653
  */
@@ -7655,7 +7655,7 @@ declare namespace Components {
7655
7655
  /**
7656
7656
  * The renewal period duration unit
7657
7657
  */
7658
- renewal_duration_unit?: "weeks" | "months" | "years";
7658
+ renewal_duration_unit?: "days" | "weeks" | "months" | "years";
7659
7659
  /**
7660
7660
  * Whether the price can be used for new purchases.
7661
7661
  */
@@ -9023,9 +9023,6 @@ declare namespace Components {
9023
9023
  * Total tax amount of items with same recurrence.
9024
9024
  */
9025
9025
  amount_tax?: number;
9026
- /**
9027
- * The taxes applied to the price item.
9028
- */
9029
9026
  tax?: /* A tax amount associated with a specific tax rate. */ TaxAmountBreakdown;
9030
9027
  }
9031
9028
  export interface RedeemedPromo {
@@ -9074,6 +9071,10 @@ declare namespace Components {
9074
9071
  export interface SearchExternalCatalogParams {
9075
9072
  context: JourneyContext;
9076
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
+ }
9077
9078
  export interface SearchExternalCatalogResult {
9078
9079
  /**
9079
9080
  * The number of results returned.
@@ -9636,7 +9637,7 @@ declare namespace Paths {
9636
9637
  export type $400 = Components.Schemas.Error;
9637
9638
  }
9638
9639
  }
9639
- namespace $SearchExternalCatalog {
9640
+ namespace $SearchExternalProducts {
9640
9641
  namespace Parameters {
9641
9642
  export type IntegrationId = Components.Schemas.IntegrationId;
9642
9643
  }
@@ -9650,7 +9651,7 @@ declare namespace Paths {
9650
9651
  export type $403 = Components.Schemas.Error;
9651
9652
  }
9652
9653
  }
9653
- namespace $SearchExternalProducts {
9654
+ namespace $SearchExternalProductsRecommendation {
9654
9655
  namespace Parameters {
9655
9656
  export type IntegrationId = Components.Schemas.IntegrationId;
9656
9657
  }
@@ -9659,7 +9660,7 @@ declare namespace Paths {
9659
9660
  }
9660
9661
  export type RequestBody = Components.Schemas.SearchExternalCatalogParams;
9661
9662
  namespace Responses {
9662
- export type $200 = Components.Schemas.SearchExternalCatalogResult;
9663
+ export type $200 = Components.Schemas.SearchExternalCatalogRecommendationsResult;
9663
9664
  export type $400 = Components.Schemas.Error;
9664
9665
  export type $403 = Components.Schemas.Error;
9665
9666
  }
@@ -11014,16 +11015,6 @@ export interface OperationMethods {
11014
11015
  data?: any,
11015
11016
  config?: AxiosRequestConfig
11016
11017
  ): OperationResponse<Paths.$AverageMarketPrice.Responses.$200>
11017
- /**
11018
- * $searchExternalCatalog - searchExternalCatalog
11019
- *
11020
- * Returns the list of available products (including computed prices) based on a given context.
11021
- */
11022
- '$searchExternalCatalog'(
11023
- parameters?: Parameters<Paths.$SearchExternalCatalog.PathParameters> | null,
11024
- data?: Paths.$SearchExternalCatalog.RequestBody,
11025
- config?: AxiosRequestConfig
11026
- ): OperationResponse<Paths.$SearchExternalCatalog.Responses.$200>
11027
11018
  /**
11028
11019
  * $searchExternalProducts - searchExternalProducts
11029
11020
  *
@@ -11034,6 +11025,16 @@ export interface OperationMethods {
11034
11025
  data?: Paths.$SearchExternalProducts.RequestBody,
11035
11026
  config?: AxiosRequestConfig
11036
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>
11037
11038
  /**
11038
11039
  * $searchProviders - searchProviders
11039
11040
  *
@@ -11250,18 +11251,6 @@ export interface PathsDictionary {
11250
11251
  config?: AxiosRequestConfig
11251
11252
  ): OperationResponse<Paths.$AverageMarketPrice.Responses.$200>
11252
11253
  }
11253
- ['/v1/public/integration/{integrationId}/external-catalog']: {
11254
- /**
11255
- * $searchExternalCatalog - searchExternalCatalog
11256
- *
11257
- * Returns the list of available products (including computed prices) based on a given context.
11258
- */
11259
- 'post'(
11260
- parameters?: Parameters<Paths.$SearchExternalCatalog.PathParameters> | null,
11261
- data?: Paths.$SearchExternalCatalog.RequestBody,
11262
- config?: AxiosRequestConfig
11263
- ): OperationResponse<Paths.$SearchExternalCatalog.Responses.$200>
11264
- }
11265
11254
  ['/v1/public/integration/{integrationId}/products']: {
11266
11255
  /**
11267
11256
  * $searchExternalProducts - searchExternalProducts
@@ -11274,6 +11263,18 @@ export interface PathsDictionary {
11274
11263
  config?: AxiosRequestConfig
11275
11264
  ): OperationResponse<Paths.$SearchExternalProducts.Responses.$200>
11276
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
+ }
11277
11278
  ['/v1/public/integration/{integrationId}/providers:search']: {
11278
11279
  /**
11279
11280
  * $searchProviders - searchProviders
@@ -11475,6 +11476,7 @@ export type RedeemedPromo = Components.Schemas.RedeemedPromo;
11475
11476
  export type SalesTax = Components.Schemas.SalesTax;
11476
11477
  export type SaveIntegrationCredentialsParams = Components.Schemas.SaveIntegrationCredentialsParams;
11477
11478
  export type SearchExternalCatalogParams = Components.Schemas.SearchExternalCatalogParams;
11479
+ export type SearchExternalCatalogRecommendationsResult = Components.Schemas.SearchExternalCatalogRecommendationsResult;
11478
11480
  export type SearchExternalCatalogResult = Components.Schemas.SearchExternalCatalogResult;
11479
11481
  export type SearchProvidersParams = Components.Schemas.SearchProvidersParams;
11480
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}/external-catalog": {
1685
+ "/v1/public/integration/{integrationId}/products": {
1686
1686
  "post": {
1687
- "deprecated": true,
1688
- "description": "Returns the list of available products (including computed prices) based on a given context.",
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": "searchExternalCatalog",
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": "$searchExternalProducts",
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": "ikom"
1866
+ "example": "external-catalog"
1868
1867
  }
1869
1868
  ],
1870
- "summary": "searchExternalProducts",
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/SearchExternalCatalogResult"
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
  }
@@ -2911,10 +2818,10 @@
2911
2818
  "token": "9e1758a3-2a32-4a5f-b034-a8ab883f8fb9",
2912
2819
  "image_uri": "https://dummy-image.jpg",
2913
2820
  "organization_id": "728",
2914
- "department": null,
2821
+ "department": "Engineering",
2915
2822
  "preferred_language": "en",
2916
2823
  "status": "Active",
2917
- "phone": null,
2824
+ "phone": "+49123456789",
2918
2825
  "email_notification_setting": {
2919
2826
  "added_participant_opportunity": true,
2920
2827
  "assigned_opportunity": true,
@@ -4605,6 +4512,7 @@
4605
4512
  "description": "The billing period duration unit",
4606
4513
  "type": "string",
4607
4514
  "enum": [
4515
+ "days",
4608
4516
  "weeks",
4609
4517
  "months",
4610
4518
  "years"
@@ -4620,6 +4528,7 @@
4620
4528
  "description": "The notice period duration unit",
4621
4529
  "type": "string",
4622
4530
  "enum": [
4531
+ "days",
4623
4532
  "weeks",
4624
4533
  "months",
4625
4534
  "years"
@@ -4635,6 +4544,7 @@
4635
4544
  "description": "The termination period duration unit",
4636
4545
  "type": "string",
4637
4546
  "enum": [
4547
+ "days",
4638
4548
  "weeks",
4639
4549
  "months",
4640
4550
  "years"
@@ -4650,6 +4560,7 @@
4650
4560
  "description": "The renewal period duration unit",
4651
4561
  "type": "string",
4652
4562
  "enum": [
4563
+ "days",
4653
4564
  "weeks",
4654
4565
  "months",
4655
4566
  "years"
@@ -6856,8 +6767,6 @@
6856
6767
  "description": "Total tax amount of items with same recurrence."
6857
6768
  },
6858
6769
  "tax": {
6859
- "type": "object",
6860
- "description": "The taxes applied to the price item.",
6861
6770
  "$ref": "#/components/schemas/TaxAmountBreakdown"
6862
6771
  }
6863
6772
  },
@@ -8177,6 +8086,24 @@
8177
8086
  "hits"
8178
8087
  ]
8179
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
+ },
8180
8107
  "ExternalCatalogItem": {
8181
8108
  "type": "object",
8182
8109
  "description": "An external product & price information (already computed) from an external catalog.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.51.0",
3
+ "version": "3.51.2-alpha.0",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,6 +21,18 @@
21
21
  "cart",
22
22
  "pricing"
23
23
  ],
24
+ "scripts": {
25
+ "test": "jest",
26
+ "bundle-definition": "webpack",
27
+ "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/pricing-api.yaml",
28
+ "openapi:local": "node ../../scripts/update-openapi.js ../../../pricing-api/lambda/ApiHandlerFunction/openapi.yml",
29
+ "typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
30
+ "build": "tsc && npm run build:patch && npm run bundle-definition",
31
+ "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
32
+ "build:watch": "npm run build && tsc -w",
33
+ "prepublishOnly": "npm run typegen && npm run build",
34
+ "lint": "pnpm exec eslint src"
35
+ },
24
36
  "files": [
25
37
  "*.js",
26
38
  "*.d.ts",
@@ -60,16 +72,5 @@
60
72
  "webpack": "^5.18.0",
61
73
  "webpack-cli": "^4.4.0"
62
74
  },
63
- "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7",
64
- "scripts": {
65
- "test": "jest",
66
- "bundle-definition": "webpack",
67
- "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/pricing-api.yaml",
68
- "openapi:local": "node ../../scripts/update-openapi.js ../../../pricing-api/lambda/ApiHandlerFunction/openapi.yml",
69
- "typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
70
- "build": "tsc && npm run build:patch && npm run bundle-definition",
71
- "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
72
- "build:watch": "npm run build && tsc -w",
73
- "lint": "pnpm exec eslint src"
74
- }
75
- }
75
+ "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
76
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2025 epilot GmbH
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.