@epilot/pricing-client 3.18.5 → 3.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/definition.js +1 -1
- package/dist/openapi-runtime.json +11 -0
- package/dist/openapi.d.ts +74 -22
- package/dist/openapi.json +54 -5
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={914:function(e,r
|
|
1
|
+
(()=>{"use strict";var e={914:function(e,t,r){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(r(240));t.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/order":{"post":{"operationId":"createOrder","requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/order/{id}":{"put":{"operationId":"putOrder","parameters":[{"in":"path","name":"id","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/public/cart:checkout":{"post":{"operationId":"$checkoutCart","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/public/catalog":{"post":{"operationId":"$searchCatalog","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/catalog":{"post":{"operationId":"$privateSearchCatalog","requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/public/availability:check":{"post":{"operationId":"$availabilityCheck","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/validate-availability/{id}":{"get":{"operationId":"$validateAvailabilityFile","parameters":[{"in":"path","name":"id","required":true},{"in":"header","name":"X-Epilot-Org-ID","required":true}]}},"/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":{}}}}},"/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":{}}}}},"/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":{}}}}},"/v1/integration/{integrationId}/credentials":{"get":{"operationId":"$getCredentials","parameters":[{"in":"path","name":"integrationId","required":true}]}},"/v1/integration/{integrationId}/credentials:save":{"put":{"operationId":"$saveCredentials","parameters":[{"in":"path","name":"integrationId","required":true}],"requestBody":{"content":{"application/json":{}}}}},"/v1/integration/{integrationId}/credentials:delete":{"delete":{"operationId":"$deleteCredentials","parameters":[{"in":"path","name":"integrationId","required":true}]}},"/v1/public/opportunity":{"post":{"deprecated":true,"operationId":"$createOpportunity","parameters":[{"in":"header","name":"X-Ivy-Org-ID","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}}},"components":{}}')}},t={},r=function r(i){var a=t[i];if(void 0!==a)return a.exports;var n=t[i]={exports:{}};return e[i].call(n.exports,n,n.exports,r),n.exports}(914),i=exports;for(var a in r)i[a]=r[a];r.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
|
|
@@ -75,6 +75,17 @@
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
|
+
"/v1/catalog": {
|
|
79
|
+
"post": {
|
|
80
|
+
"operationId": "$privateSearchCatalog",
|
|
81
|
+
"requestBody": {
|
|
82
|
+
"required": true,
|
|
83
|
+
"content": {
|
|
84
|
+
"application/json": {}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
78
89
|
"/v1/public/availability:check": {
|
|
79
90
|
"post": {
|
|
80
91
|
"operationId": "$availabilityCheck",
|
package/dist/openapi.d.ts
CHANGED
|
@@ -2692,7 +2692,12 @@ declare namespace Components {
|
|
|
2692
2692
|
* Total tax amount of items with same recurrence.
|
|
2693
2693
|
*/
|
|
2694
2694
|
amount_tax?: number;
|
|
2695
|
-
|
|
2695
|
+
/**
|
|
2696
|
+
* The taxes applied to the price item.
|
|
2697
|
+
*/
|
|
2698
|
+
tax?: {
|
|
2699
|
+
[key: string]: any;
|
|
2700
|
+
};
|
|
2696
2701
|
}
|
|
2697
2702
|
export type SalesTax = "nontaxable" | "reduced" | "standard";
|
|
2698
2703
|
export type SaveIntegrationCredentialsParams = /* The basic auth credentials */ BasicAuthCredentials;
|
|
@@ -2854,27 +2859,7 @@ declare namespace Components {
|
|
|
2854
2859
|
* The tax rate value applied. With the release of the tax manager feature this field is being deprecated in favor of the tax field.
|
|
2855
2860
|
*/
|
|
2856
2861
|
rateValue?: number;
|
|
2857
|
-
tax?:
|
|
2858
|
-
* the tax configuration
|
|
2859
|
-
* example:
|
|
2860
|
-
* {
|
|
2861
|
-
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
2862
|
-
* "type": "VAT",
|
|
2863
|
-
* "description": "Tax description",
|
|
2864
|
-
* "active": "true",
|
|
2865
|
-
* "region": "DE",
|
|
2866
|
-
* "region_label": "Germany",
|
|
2867
|
-
* "_org": "123",
|
|
2868
|
-
* "_schema": "tax",
|
|
2869
|
-
* "_tags": [
|
|
2870
|
-
* "example",
|
|
2871
|
-
* "mock"
|
|
2872
|
-
* ],
|
|
2873
|
-
* "_created_at": "2021-02-09T12:41:43.662Z",
|
|
2874
|
-
* "_updated_at": "2021-02-09T12:41:43.662Z"
|
|
2875
|
-
* }
|
|
2876
|
-
*/
|
|
2877
|
-
Tax;
|
|
2862
|
+
tax?: TaxBreakdownInfo;
|
|
2878
2863
|
}
|
|
2879
2864
|
/**
|
|
2880
2865
|
* A valid tax rate from a client.
|
|
@@ -3103,6 +3088,51 @@ declare namespace Paths {
|
|
|
3103
3088
|
export type $404 = Components.Schemas.Error;
|
|
3104
3089
|
}
|
|
3105
3090
|
}
|
|
3091
|
+
namespace $PrivateSearchCatalog {
|
|
3092
|
+
export type RequestBody = /**
|
|
3093
|
+
* A catalog search payload
|
|
3094
|
+
* example:
|
|
3095
|
+
* {
|
|
3096
|
+
* "q": "_id:1233432 OR _id:123432454 OR _id:23445433",
|
|
3097
|
+
* "sort": "description ASC",
|
|
3098
|
+
* "from": 0,
|
|
3099
|
+
* "size": 200,
|
|
3100
|
+
* "availability": {
|
|
3101
|
+
* "location": {
|
|
3102
|
+
* "postal_code": "57008,",
|
|
3103
|
+
* "city": "Cologne,",
|
|
3104
|
+
* "street": "Media Park,",
|
|
3105
|
+
* "street_number": "8a"
|
|
3106
|
+
* },
|
|
3107
|
+
* "available_date": {
|
|
3108
|
+
* "value": "2022-05-01"
|
|
3109
|
+
* }
|
|
3110
|
+
* }
|
|
3111
|
+
* }
|
|
3112
|
+
*/
|
|
3113
|
+
Components.Schemas.CatalogSearch;
|
|
3114
|
+
namespace Responses {
|
|
3115
|
+
export type $200 = /**
|
|
3116
|
+
* The query result payload
|
|
3117
|
+
* example:
|
|
3118
|
+
* {
|
|
3119
|
+
* "hits": 2,
|
|
3120
|
+
* "results": [
|
|
3121
|
+
* {
|
|
3122
|
+
* "schema": "product",
|
|
3123
|
+
* "description": "product a"
|
|
3124
|
+
* },
|
|
3125
|
+
* {
|
|
3126
|
+
* "schema": "price",
|
|
3127
|
+
* "unit_amount_decimal": "124.342343434"
|
|
3128
|
+
* }
|
|
3129
|
+
* ]
|
|
3130
|
+
* }
|
|
3131
|
+
*/
|
|
3132
|
+
Components.Schemas.CatalogSearchResult;
|
|
3133
|
+
export type $400 = Components.Schemas.Error;
|
|
3134
|
+
}
|
|
3135
|
+
}
|
|
3106
3136
|
namespace $SaveCredentials {
|
|
3107
3137
|
namespace Parameters {
|
|
3108
3138
|
export type IntegrationId = Components.Schemas.IntegrationId;
|
|
@@ -3320,6 +3350,16 @@ export interface OperationMethods {
|
|
|
3320
3350
|
data?: Paths.$SearchCatalog.RequestBody,
|
|
3321
3351
|
config?: AxiosRequestConfig
|
|
3322
3352
|
): OperationResponse<Paths.$SearchCatalog.Responses.$200>
|
|
3353
|
+
/**
|
|
3354
|
+
* $privateSearchCatalog - privateSearchCatalog
|
|
3355
|
+
*
|
|
3356
|
+
* Provides a querying functionalities over products and prices of the Catalog for a given organization.
|
|
3357
|
+
*/
|
|
3358
|
+
'$privateSearchCatalog'(
|
|
3359
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
3360
|
+
data?: Paths.$PrivateSearchCatalog.RequestBody,
|
|
3361
|
+
config?: AxiosRequestConfig
|
|
3362
|
+
): OperationResponse<Paths.$PrivateSearchCatalog.Responses.$200>
|
|
3323
3363
|
/**
|
|
3324
3364
|
* $availabilityCheck - availabilityCheck
|
|
3325
3365
|
*
|
|
@@ -3476,6 +3516,18 @@ export interface PathsDictionary {
|
|
|
3476
3516
|
config?: AxiosRequestConfig
|
|
3477
3517
|
): OperationResponse<Paths.$SearchCatalog.Responses.$200>
|
|
3478
3518
|
}
|
|
3519
|
+
['/v1/catalog']: {
|
|
3520
|
+
/**
|
|
3521
|
+
* $privateSearchCatalog - privateSearchCatalog
|
|
3522
|
+
*
|
|
3523
|
+
* Provides a querying functionalities over products and prices of the Catalog for a given organization.
|
|
3524
|
+
*/
|
|
3525
|
+
'post'(
|
|
3526
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
3527
|
+
data?: Paths.$PrivateSearchCatalog.RequestBody,
|
|
3528
|
+
config?: AxiosRequestConfig
|
|
3529
|
+
): OperationResponse<Paths.$PrivateSearchCatalog.Responses.$200>
|
|
3530
|
+
}
|
|
3479
3531
|
['/v1/public/availability:check']: {
|
|
3480
3532
|
/**
|
|
3481
3533
|
* $availabilityCheck - availabilityCheck
|
package/dist/openapi.json
CHANGED
|
@@ -608,6 +608,48 @@
|
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
},
|
|
611
|
+
"/v1/catalog": {
|
|
612
|
+
"post": {
|
|
613
|
+
"description": "Provides a querying functionalities over products and prices of the Catalog for a given organization.",
|
|
614
|
+
"operationId": "$privateSearchCatalog",
|
|
615
|
+
"summary": "privateSearchCatalog",
|
|
616
|
+
"tags": [
|
|
617
|
+
"Catalog API"
|
|
618
|
+
],
|
|
619
|
+
"requestBody": {
|
|
620
|
+
"required": true,
|
|
621
|
+
"content": {
|
|
622
|
+
"application/json": {
|
|
623
|
+
"schema": {
|
|
624
|
+
"$ref": "#/components/schemas/CatalogSearch"
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
"responses": {
|
|
630
|
+
"200": {
|
|
631
|
+
"description": "The search result",
|
|
632
|
+
"content": {
|
|
633
|
+
"application/json": {
|
|
634
|
+
"schema": {
|
|
635
|
+
"$ref": "#/components/schemas/CatalogSearchResult"
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
"400": {
|
|
641
|
+
"description": "Invalid payload",
|
|
642
|
+
"content": {
|
|
643
|
+
"application/json": {
|
|
644
|
+
"schema": {
|
|
645
|
+
"$ref": "#/components/schemas/Error"
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
},
|
|
611
653
|
"/v1/public/availability:check": {
|
|
612
654
|
"post": {
|
|
613
655
|
"description": "The availability check endpoint",
|
|
@@ -3605,7 +3647,7 @@
|
|
|
3605
3647
|
"deprecated": true
|
|
3606
3648
|
},
|
|
3607
3649
|
"tax": {
|
|
3608
|
-
"$ref": "#/components/schemas/
|
|
3650
|
+
"$ref": "#/components/schemas/TaxBreakdownInfo"
|
|
3609
3651
|
}
|
|
3610
3652
|
}
|
|
3611
3653
|
},
|
|
@@ -3686,13 +3728,20 @@
|
|
|
3686
3728
|
"description": "Total tax amount of items with same recurrence."
|
|
3687
3729
|
},
|
|
3688
3730
|
"tax": {
|
|
3689
|
-
"type": "
|
|
3690
|
-
"
|
|
3731
|
+
"type": "object",
|
|
3732
|
+
"description": "The taxes applied to the price item.",
|
|
3733
|
+
"items": {
|
|
3734
|
+
"oneOf": [
|
|
3735
|
+
{
|
|
3736
|
+
"$ref": "#/components/schemas/TaxAmountBreakdown"
|
|
3737
|
+
}
|
|
3738
|
+
]
|
|
3739
|
+
}
|
|
3691
3740
|
}
|
|
3692
3741
|
},
|
|
3693
3742
|
"required": [
|
|
3694
|
-
"
|
|
3695
|
-
"
|
|
3743
|
+
"amount_subtotal",
|
|
3744
|
+
"amount_total"
|
|
3696
3745
|
]
|
|
3697
3746
|
},
|
|
3698
3747
|
"TotalDetails": {
|