@epilot/pricing-client 3.48.2 → 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.
@@ -1 +1 @@
1
- (()=>{"use strict";var e={914: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(240));r.default=a.default},240: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":{}}')}},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}(914),i=exports;for(var a in t)i[a]=t[a];t.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
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 cents to be discounted, represented as a decimal string with at most 12 decimal places.
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 cents to be charged, represented as a decimal string with at most 12 decimal places.
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
  /**
@@ -1630,7 +1630,7 @@ declare namespace Components {
1630
1630
  */
1631
1631
  unit_amount?: number;
1632
1632
  /**
1633
- * The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.
1633
+ * The unit amount in eur to be charged, represented as a decimal string with at most 12 decimal places.
1634
1634
  */
1635
1635
  unit_amount_decimal?: string;
1636
1636
  /**
@@ -1773,7 +1773,7 @@ declare namespace Components {
1773
1773
  */
1774
1774
  fixed_value?: number;
1775
1775
  /**
1776
- * Use if type is set to fixed. The unit amount in cents to be discounted, represented as a decimal string with at most 12 decimal places.
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.
1777
1777
  */
1778
1778
  fixed_value_decimal?: string;
1779
1779
  /**
@@ -2300,7 +2300,7 @@ declare namespace Components {
2300
2300
  */
2301
2301
  fixed_value?: number;
2302
2302
  /**
2303
- * Use if type is set to fixed. The unit amount in cents to be discounted, represented as a decimal string with at most 12 decimal places.
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.
2304
2304
  */
2305
2305
  fixed_value_decimal?: string;
2306
2306
  /**
@@ -2387,7 +2387,7 @@ declare namespace Components {
2387
2387
  */
2388
2388
  fixed_value?: number;
2389
2389
  /**
2390
- * Use if type is set to fixed. The unit amount in cents to be discounted, represented as a decimal string with at most 12 decimal places.
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.
2391
2391
  */
2392
2392
  fixed_value_decimal?: string;
2393
2393
  /**
@@ -2452,7 +2452,7 @@ declare namespace Components {
2452
2452
  */
2453
2453
  fixed_value?: number;
2454
2454
  /**
2455
- * Use if type is set to fixed. The unit amount in cents to be discounted, represented as a decimal string with at most 12 decimal places.
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.
2456
2456
  */
2457
2457
  fixed_value_decimal?: string;
2458
2458
  /**
@@ -2856,7 +2856,7 @@ declare namespace Components {
2856
2856
  */
2857
2857
  export type IntegrationAuthCredentials = /* The auth credentials for external integrations */ BasicAuthIntegration | OAuthIntegration;
2858
2858
  export type IntegrationCredentialsResult = /* The auth credentials for external integrations */ IntegrationAuthCredentials;
2859
- export type IntegrationId = "getag" | "ikom";
2859
+ export type IntegrationId = "getag" | "ikom" | "external-catalog";
2860
2860
  export interface JourneyContext {
2861
2861
  /**
2862
2862
  * The ID of the journey.
@@ -3650,7 +3650,7 @@ declare namespace Components {
3650
3650
  */
3651
3651
  unit_amount?: number;
3652
3652
  /**
3653
- * The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.
3653
+ * The unit amount in eur to be charged, represented as a decimal string with at most 12 decimal places.
3654
3654
  */
3655
3655
  unit_amount_decimal?: string;
3656
3656
  /**
@@ -4098,7 +4098,7 @@ declare namespace Components {
4098
4098
  */
4099
4099
  unit_amount?: number;
4100
4100
  /**
4101
- * The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.
4101
+ * The unit amount in eur to be charged, represented as a decimal string with at most 12 decimal places.
4102
4102
  */
4103
4103
  unit_amount_decimal?: string;
4104
4104
  /**
@@ -4447,7 +4447,7 @@ declare namespace Components {
4447
4447
  */
4448
4448
  Currency;
4449
4449
  /**
4450
- * The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.
4450
+ * The unit amount in eur to be charged, represented as a decimal string with at most 12 decimal places.
4451
4451
  */
4452
4452
  unit_amount_decimal?: string;
4453
4453
  /**
@@ -4579,7 +4579,7 @@ declare namespace Components {
4579
4579
  */
4580
4580
  unit_amount?: number;
4581
4581
  /**
4582
- * The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.
4582
+ * The unit amount in eur to be charged, represented as a decimal string with at most 12 decimal places.
4583
4583
  */
4584
4584
  unit_amount_decimal?: string;
4585
4585
  /**
@@ -5893,6 +5893,7 @@ declare namespace Paths {
5893
5893
  }
5894
5894
  }
5895
5895
 
5896
+
5896
5897
  export interface OperationMethods {
5897
5898
  /**
5898
5899
  * $calculatePricingDetails - calculatePricingDetails
@@ -6341,6 +6342,7 @@ export interface PathsDictionary {
6341
6342
 
6342
6343
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
6343
6344
 
6345
+
6344
6346
  export type Address = Components.Schemas.Address;
6345
6347
  export type Amounts = Components.Schemas.Amounts;
6346
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 cents to be charged, represented as a decimal string with at most 12 decimal places.",
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": {
@@ -4698,7 +4699,7 @@
4698
4699
  "$ref": "#/components/schemas/Currency"
4699
4700
  },
4700
4701
  "unit_amount_decimal": {
4701
- "description": "The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.",
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": {
@@ -5119,7 +5120,7 @@
5119
5120
  "readOnly": true
5120
5121
  },
5121
5122
  "unit_amount_decimal": {
5122
- "description": "The unit amount in cents to be charged, represented as a decimal string with at most 12 decimal places.",
5123
+ "description": "The unit amount in eur to be charged, represented as a decimal string with at most 12 decimal places.",
5123
5124
  "type": "string",
5124
5125
  "readOnly": true
5125
5126
  },
@@ -6241,7 +6242,7 @@
6241
6242
  "type": "number"
6242
6243
  },
6243
6244
  "fixed_value_decimal": {
6244
- "description": "Use if type is set to fixed. The unit amount in cents to be discounted, represented as a decimal string with at most 12 decimal places.",
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.",
6245
6246
  "type": "string"
6246
6247
  },
6247
6248
  "fixed_value_currency": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.48.2",
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": "../../node_modules/eslint/bin/eslint.js src"
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.5.1",
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.6.0",
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",