@epilot/pricing-client 3.48.1 → 3.48.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.d.ts +29 -45
- package/dist/openapi.json +23 -17
- package/package.json +4 -4
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={
|
|
1
|
+
(()=>{"use strict";var e={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":{"operationId":"$searchExternalCatalog","parameters":[{"in":"path","name":"integrationId","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/public/integration/{integrationId}/providers:search":{"post":{"operationId":"$searchProviders","parameters":[{"in":"header","name":"X-Epilot-Org-ID","required":true},{"in":"path","name":"integrationId","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/public/integration/{integrationId}/streets:search":{"post":{"operationId":"$searchStreets","parameters":[{"in":"header","name":"X-Epilot-Org-ID","required":true},{"in":"path","name":"integrationId","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/public/integration/{integrationId}/compute-price":{"post":{"operationId":"$computePrice","parameters":[{"in":"header","name":"X-Epilot-Org-ID","required":true},{"in":"path","name":"integrationId","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/integration/{integrationId}/credentials":{"get":{"operationId":"$getCredentials","parameters":[{"in":"path","name":"integrationId","required":true}],"responses":{}}},"/v1/integration/{integrationId}/credentials:save":{"put":{"operationId":"$saveCredentials","parameters":[{"in":"path","name":"integrationId","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/integration/{integrationId}/credentials:delete":{"delete":{"operationId":"$deleteCredentials","parameters":[{"in":"path","name":"integrationId","required":true}],"responses":{}}},"/v1/public/product-recommendations":{"post":{"operationId":"$productRecommendations","parameters":[{"in":"header","name":"X-Ivy-Org-ID"}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}}},"components":{}}')},757: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}},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}(757),i=exports;for(var a in t)i[a]=t[a];t.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
|
package/dist/openapi.d.ts
CHANGED
|
@@ -392,7 +392,7 @@ declare namespace Components {
|
|
|
392
392
|
*/
|
|
393
393
|
fixed_value?: number;
|
|
394
394
|
/**
|
|
395
|
-
* Use if type is set to fixed. The unit amount in
|
|
395
|
+
* Use if type is set to fixed. The unit amount in eur to be discounted, represented as a decimal string with at most 12 decimal places.
|
|
396
396
|
*/
|
|
397
397
|
fixed_value_decimal?: string;
|
|
398
398
|
/**
|
|
@@ -650,7 +650,7 @@ declare namespace Components {
|
|
|
650
650
|
*/
|
|
651
651
|
unit_amount?: number;
|
|
652
652
|
/**
|
|
653
|
-
* The unit amount in
|
|
653
|
+
* The unit amount in eur to be charged, represented as a decimal string with at most 12 decimal places.
|
|
654
654
|
*/
|
|
655
655
|
unit_amount_decimal?: string;
|
|
656
656
|
/**
|
|
@@ -745,17 +745,6 @@ declare namespace Components {
|
|
|
745
745
|
* EUR
|
|
746
746
|
*/
|
|
747
747
|
Currency;
|
|
748
|
-
/**
|
|
749
|
-
* The price snapshot data.
|
|
750
|
-
*/
|
|
751
|
-
_price?: /* The price snapshot data. */ /**
|
|
752
|
-
* The price entity schema for simple pricing
|
|
753
|
-
* example:
|
|
754
|
-
* {
|
|
755
|
-
* "$ref": "#/components/examples/price"
|
|
756
|
-
* }
|
|
757
|
-
*/
|
|
758
|
-
Price | /* The composite price entity */ CompositePrice;
|
|
759
748
|
/**
|
|
760
749
|
* The taxes applied to the price item.
|
|
761
750
|
*/
|
|
@@ -1641,7 +1630,7 @@ declare namespace Components {
|
|
|
1641
1630
|
*/
|
|
1642
1631
|
unit_amount?: number;
|
|
1643
1632
|
/**
|
|
1644
|
-
* The unit amount in
|
|
1633
|
+
* The unit amount in eur to be charged, represented as a decimal string with at most 12 decimal places.
|
|
1645
1634
|
*/
|
|
1646
1635
|
unit_amount_decimal?: string;
|
|
1647
1636
|
/**
|
|
@@ -1736,17 +1725,6 @@ declare namespace Components {
|
|
|
1736
1725
|
* EUR
|
|
1737
1726
|
*/
|
|
1738
1727
|
Currency;
|
|
1739
|
-
/**
|
|
1740
|
-
* The price snapshot data.
|
|
1741
|
-
*/
|
|
1742
|
-
_price?: /* The price snapshot data. */ /**
|
|
1743
|
-
* The price entity schema for simple pricing
|
|
1744
|
-
* example:
|
|
1745
|
-
* {
|
|
1746
|
-
* "$ref": "#/components/examples/price"
|
|
1747
|
-
* }
|
|
1748
|
-
*/
|
|
1749
|
-
Price | /* The composite price entity */ CompositePrice;
|
|
1750
1728
|
/**
|
|
1751
1729
|
* The taxes applied to the price item.
|
|
1752
1730
|
*/
|
|
@@ -1795,7 +1773,7 @@ declare namespace Components {
|
|
|
1795
1773
|
*/
|
|
1796
1774
|
fixed_value?: number;
|
|
1797
1775
|
/**
|
|
1798
|
-
* Use if type is set to fixed. The unit amount in
|
|
1776
|
+
* Use if type is set to fixed. The unit amount in eur to be discounted, represented as a decimal string with at most 12 decimal places.
|
|
1799
1777
|
*/
|
|
1800
1778
|
fixed_value_decimal?: string;
|
|
1801
1779
|
/**
|
|
@@ -1852,6 +1830,10 @@ declare namespace Components {
|
|
|
1852
1830
|
*/
|
|
1853
1831
|
PriceItem[];
|
|
1854
1832
|
total_details?: /* The total details with tax (and discount) aggregated totals. */ TotalDetails;
|
|
1833
|
+
/**
|
|
1834
|
+
* The price snapshot data.
|
|
1835
|
+
*/
|
|
1836
|
+
_price?: /* The price snapshot data. */ /* The composite price entity */ CompositePrice;
|
|
1855
1837
|
}
|
|
1856
1838
|
/**
|
|
1857
1839
|
* Represents a composite price input to the pricing library.
|
|
@@ -2318,7 +2300,7 @@ declare namespace Components {
|
|
|
2318
2300
|
*/
|
|
2319
2301
|
fixed_value?: number;
|
|
2320
2302
|
/**
|
|
2321
|
-
* Use if type is set to fixed. The unit amount in
|
|
2303
|
+
* Use if type is set to fixed. The unit amount in eur to be discounted, represented as a decimal string with at most 12 decimal places.
|
|
2322
2304
|
*/
|
|
2323
2305
|
fixed_value_decimal?: string;
|
|
2324
2306
|
/**
|
|
@@ -2405,7 +2387,7 @@ declare namespace Components {
|
|
|
2405
2387
|
*/
|
|
2406
2388
|
fixed_value?: number;
|
|
2407
2389
|
/**
|
|
2408
|
-
* Use if type is set to fixed. The unit amount in
|
|
2390
|
+
* Use if type is set to fixed. The unit amount in eur to be discounted, represented as a decimal string with at most 12 decimal places.
|
|
2409
2391
|
*/
|
|
2410
2392
|
fixed_value_decimal?: string;
|
|
2411
2393
|
/**
|
|
@@ -2470,7 +2452,7 @@ declare namespace Components {
|
|
|
2470
2452
|
*/
|
|
2471
2453
|
fixed_value?: number;
|
|
2472
2454
|
/**
|
|
2473
|
-
* Use if type is set to fixed. The unit amount in
|
|
2455
|
+
* Use if type is set to fixed. The unit amount in eur to be discounted, represented as a decimal string with at most 12 decimal places.
|
|
2474
2456
|
*/
|
|
2475
2457
|
fixed_value_decimal?: string;
|
|
2476
2458
|
/**
|
|
@@ -2874,7 +2856,7 @@ declare namespace Components {
|
|
|
2874
2856
|
*/
|
|
2875
2857
|
export type IntegrationAuthCredentials = /* The auth credentials for external integrations */ BasicAuthIntegration | OAuthIntegration;
|
|
2876
2858
|
export type IntegrationCredentialsResult = /* The auth credentials for external integrations */ IntegrationAuthCredentials;
|
|
2877
|
-
export type IntegrationId = "getag" | "ikom";
|
|
2859
|
+
export type IntegrationId = "getag" | "ikom" | "external-catalog";
|
|
2878
2860
|
export interface JourneyContext {
|
|
2879
2861
|
/**
|
|
2880
2862
|
* The ID of the journey.
|
|
@@ -3668,7 +3650,7 @@ declare namespace Components {
|
|
|
3668
3650
|
*/
|
|
3669
3651
|
unit_amount?: number;
|
|
3670
3652
|
/**
|
|
3671
|
-
* The unit amount in
|
|
3653
|
+
* The unit amount in eur to be charged, represented as a decimal string with at most 12 decimal places.
|
|
3672
3654
|
*/
|
|
3673
3655
|
unit_amount_decimal?: string;
|
|
3674
3656
|
/**
|
|
@@ -4116,7 +4098,7 @@ declare namespace Components {
|
|
|
4116
4098
|
*/
|
|
4117
4099
|
unit_amount?: number;
|
|
4118
4100
|
/**
|
|
4119
|
-
* The unit amount in
|
|
4101
|
+
* The unit amount in eur to be charged, represented as a decimal string with at most 12 decimal places.
|
|
4120
4102
|
*/
|
|
4121
4103
|
unit_amount_decimal?: string;
|
|
4122
4104
|
/**
|
|
@@ -4211,17 +4193,6 @@ declare namespace Components {
|
|
|
4211
4193
|
* EUR
|
|
4212
4194
|
*/
|
|
4213
4195
|
Currency;
|
|
4214
|
-
/**
|
|
4215
|
-
* The price snapshot data.
|
|
4216
|
-
*/
|
|
4217
|
-
_price?: /* The price snapshot data. */ /**
|
|
4218
|
-
* The price entity schema for simple pricing
|
|
4219
|
-
* example:
|
|
4220
|
-
* {
|
|
4221
|
-
* "$ref": "#/components/examples/price"
|
|
4222
|
-
* }
|
|
4223
|
-
*/
|
|
4224
|
-
Price | /* The composite price entity */ CompositePrice;
|
|
4225
4196
|
/**
|
|
4226
4197
|
* The taxes applied to the price item.
|
|
4227
4198
|
*/
|
|
@@ -4264,6 +4235,17 @@ declare namespace Components {
|
|
|
4264
4235
|
tiers_details?: TierDetails[];
|
|
4265
4236
|
get_ag?: PriceGetAg;
|
|
4266
4237
|
dynamic_tariff?: PriceDynamicTariff;
|
|
4238
|
+
/**
|
|
4239
|
+
* The price snapshot data.
|
|
4240
|
+
*/
|
|
4241
|
+
_price?: /* The price snapshot data. */ /**
|
|
4242
|
+
* The price entity schema for simple pricing
|
|
4243
|
+
* example:
|
|
4244
|
+
* {
|
|
4245
|
+
* "$ref": "#/components/examples/price"
|
|
4246
|
+
* }
|
|
4247
|
+
*/
|
|
4248
|
+
Price;
|
|
4267
4249
|
}
|
|
4268
4250
|
/**
|
|
4269
4251
|
* Represents a price input to the pricing library.
|
|
@@ -4465,7 +4447,7 @@ declare namespace Components {
|
|
|
4465
4447
|
*/
|
|
4466
4448
|
Currency;
|
|
4467
4449
|
/**
|
|
4468
|
-
* The unit amount in
|
|
4450
|
+
* The unit amount in eur to be charged, represented as a decimal string with at most 12 decimal places.
|
|
4469
4451
|
*/
|
|
4470
4452
|
unit_amount_decimal?: string;
|
|
4471
4453
|
/**
|
|
@@ -4597,7 +4579,7 @@ declare namespace Components {
|
|
|
4597
4579
|
*/
|
|
4598
4580
|
unit_amount?: number;
|
|
4599
4581
|
/**
|
|
4600
|
-
* The unit amount in
|
|
4582
|
+
* The unit amount in eur to be charged, represented as a decimal string with at most 12 decimal places.
|
|
4601
4583
|
*/
|
|
4602
4584
|
unit_amount_decimal?: string;
|
|
4603
4585
|
/**
|
|
@@ -5911,6 +5893,7 @@ declare namespace Paths {
|
|
|
5911
5893
|
}
|
|
5912
5894
|
}
|
|
5913
5895
|
|
|
5896
|
+
|
|
5914
5897
|
export interface OperationMethods {
|
|
5915
5898
|
/**
|
|
5916
5899
|
* $calculatePricingDetails - calculatePricingDetails
|
|
@@ -6359,6 +6342,7 @@ export interface PathsDictionary {
|
|
|
6359
6342
|
|
|
6360
6343
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
6361
6344
|
|
|
6345
|
+
|
|
6362
6346
|
export type Address = Components.Schemas.Address;
|
|
6363
6347
|
export type Amounts = Components.Schemas.Amounts;
|
|
6364
6348
|
export type AvailabilityCheckParams = Components.Schemas.AvailabilityCheckParams;
|
package/dist/openapi.json
CHANGED
|
@@ -2364,7 +2364,8 @@
|
|
|
2364
2364
|
"type": "string",
|
|
2365
2365
|
"enum": [
|
|
2366
2366
|
"getag",
|
|
2367
|
-
"ikom"
|
|
2367
|
+
"ikom",
|
|
2368
|
+
"external-catalog"
|
|
2368
2369
|
]
|
|
2369
2370
|
},
|
|
2370
2371
|
"Error": {
|
|
@@ -3061,7 +3062,7 @@
|
|
|
3061
3062
|
"type": "number"
|
|
3062
3063
|
},
|
|
3063
3064
|
"unit_amount_decimal": {
|
|
3064
|
-
"description": "The unit amount in
|
|
3065
|
+
"description": "The unit amount in eur to be charged, represented as a decimal string with at most 12 decimal places.",
|
|
3065
3066
|
"type": "string"
|
|
3066
3067
|
},
|
|
3067
3068
|
"unit_amount_currency": {
|
|
@@ -3285,7 +3286,7 @@
|
|
|
3285
3286
|
}
|
|
3286
3287
|
},
|
|
3287
3288
|
"CompositePrice": {
|
|
3288
|
-
"
|
|
3289
|
+
"anyOf": [
|
|
3289
3290
|
{
|
|
3290
3291
|
"$ref": "#/components/schemas/NonHydratedCompositePrice"
|
|
3291
3292
|
},
|
|
@@ -4698,7 +4699,7 @@
|
|
|
4698
4699
|
"$ref": "#/components/schemas/Currency"
|
|
4699
4700
|
},
|
|
4700
4701
|
"unit_amount_decimal": {
|
|
4701
|
-
"description": "The unit amount in
|
|
4702
|
+
"description": "The unit amount in eur to be charged, represented as a decimal string with at most 12 decimal places.",
|
|
4702
4703
|
"type": "string"
|
|
4703
4704
|
},
|
|
4704
4705
|
"is_composite_price": {
|
|
@@ -5068,6 +5069,14 @@
|
|
|
5068
5069
|
"total_details": {
|
|
5069
5070
|
"$ref": "#/components/schemas/TotalDetails"
|
|
5070
5071
|
},
|
|
5072
|
+
"_price": {
|
|
5073
|
+
"description": "The price snapshot data.",
|
|
5074
|
+
"anyOf": [
|
|
5075
|
+
{
|
|
5076
|
+
"$ref": "#/components/schemas/CompositePrice"
|
|
5077
|
+
}
|
|
5078
|
+
]
|
|
5079
|
+
},
|
|
5071
5080
|
"_coupons": {
|
|
5072
5081
|
"type": "array",
|
|
5073
5082
|
"description": "The coupons applicable to the composite price item + related (cashback) amounts",
|
|
@@ -5111,7 +5120,7 @@
|
|
|
5111
5120
|
"readOnly": true
|
|
5112
5121
|
},
|
|
5113
5122
|
"unit_amount_decimal": {
|
|
5114
|
-
"description": "The unit amount in
|
|
5123
|
+
"description": "The unit amount in eur to be charged, represented as a decimal string with at most 12 decimal places.",
|
|
5115
5124
|
"type": "string",
|
|
5116
5125
|
"readOnly": true
|
|
5117
5126
|
},
|
|
@@ -5222,17 +5231,6 @@
|
|
|
5222
5231
|
"currency": {
|
|
5223
5232
|
"$ref": "#/components/schemas/Currency"
|
|
5224
5233
|
},
|
|
5225
|
-
"_price": {
|
|
5226
|
-
"description": "The price snapshot data.",
|
|
5227
|
-
"anyOf": [
|
|
5228
|
-
{
|
|
5229
|
-
"$ref": "#/components/schemas/Price"
|
|
5230
|
-
},
|
|
5231
|
-
{
|
|
5232
|
-
"$ref": "#/components/schemas/CompositePrice"
|
|
5233
|
-
}
|
|
5234
|
-
]
|
|
5235
|
-
},
|
|
5236
5234
|
"taxes": {
|
|
5237
5235
|
"type": "array",
|
|
5238
5236
|
"description": "The taxes applied to the price item.",
|
|
@@ -5416,6 +5414,14 @@
|
|
|
5416
5414
|
},
|
|
5417
5415
|
"dynamic_tariff": {
|
|
5418
5416
|
"$ref": "#/components/schemas/PriceDynamicTariff"
|
|
5417
|
+
},
|
|
5418
|
+
"_price": {
|
|
5419
|
+
"description": "The price snapshot data.",
|
|
5420
|
+
"anyOf": [
|
|
5421
|
+
{
|
|
5422
|
+
"$ref": "#/components/schemas/Price"
|
|
5423
|
+
}
|
|
5424
|
+
]
|
|
5419
5425
|
}
|
|
5420
5426
|
},
|
|
5421
5427
|
"required": [
|
|
@@ -6236,7 +6242,7 @@
|
|
|
6236
6242
|
"type": "number"
|
|
6237
6243
|
},
|
|
6238
6244
|
"fixed_value_decimal": {
|
|
6239
|
-
"description": "Use if type is set to fixed. The unit amount in
|
|
6245
|
+
"description": "Use if type is set to fixed. The unit amount in eur to be discounted, represented as a decimal string with at most 12 decimal places.",
|
|
6240
6246
|
"type": "string"
|
|
6241
6247
|
},
|
|
6242
6248
|
"fixed_value_currency": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/pricing-client",
|
|
3
|
-
"version": "3.48.
|
|
3
|
+
"version": "3.48.3",
|
|
4
4
|
"description": "Client for epilot Pricing APIs",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
|
|
32
32
|
"build:watch": "npm run build && tsc -w",
|
|
33
33
|
"prepublishOnly": "npm run typegen && npm run build",
|
|
34
|
-
"lint": "
|
|
34
|
+
"lint": "pnpm exec eslint src"
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
37
37
|
"*.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@dazn/lambda-powertools-correlation-ids": "^1.28.1",
|
|
54
54
|
"buffer": "^6.0.3",
|
|
55
55
|
"https-browserify": "^1.0.0",
|
|
56
|
-
"openapi-client-axios": "^7.
|
|
56
|
+
"openapi-client-axios": "^7.6.0",
|
|
57
57
|
"stream-http": "^3.1.1",
|
|
58
58
|
"url": "^0.11.0",
|
|
59
59
|
"util": "^0.12.3"
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"copy-webpack-plugin": "^7.0.0",
|
|
65
65
|
"jest": "^26.6.3",
|
|
66
66
|
"json-loader": "^0.5.7",
|
|
67
|
-
"openapicmd": "^2.
|
|
67
|
+
"openapicmd": "^2.7.0",
|
|
68
68
|
"ts-jest": "^26.5.0",
|
|
69
69
|
"ts-loader": "^8.0.14",
|
|
70
70
|
"ts-node": "^10.9.1",
|