@epilot/pricing-client 3.19.0 → 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 +67 -0
- package/dist/openapi.json +42 -0
- 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
|
@@ -3088,6 +3088,51 @@ declare namespace Paths {
|
|
|
3088
3088
|
export type $404 = Components.Schemas.Error;
|
|
3089
3089
|
}
|
|
3090
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
|
+
}
|
|
3091
3136
|
namespace $SaveCredentials {
|
|
3092
3137
|
namespace Parameters {
|
|
3093
3138
|
export type IntegrationId = Components.Schemas.IntegrationId;
|
|
@@ -3305,6 +3350,16 @@ export interface OperationMethods {
|
|
|
3305
3350
|
data?: Paths.$SearchCatalog.RequestBody,
|
|
3306
3351
|
config?: AxiosRequestConfig
|
|
3307
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>
|
|
3308
3363
|
/**
|
|
3309
3364
|
* $availabilityCheck - availabilityCheck
|
|
3310
3365
|
*
|
|
@@ -3461,6 +3516,18 @@ export interface PathsDictionary {
|
|
|
3461
3516
|
config?: AxiosRequestConfig
|
|
3462
3517
|
): OperationResponse<Paths.$SearchCatalog.Responses.$200>
|
|
3463
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
|
+
}
|
|
3464
3531
|
['/v1/public/availability:check']: {
|
|
3465
3532
|
/**
|
|
3466
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",
|