@epilot/pricing-client 3.59.1 → 3.60.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 +122 -0
- package/dist/openapi.d.ts +407 -16
- package/dist/openapi.json +163 -35
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={438(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}/product-recommendations":{"post":{"operationId":"$searchExternalProductRecommendations","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/external-catalog/products":{"post":{"operationId":"$getExternalCatalogProducts","parameters":[{"in":"header","name":"x-epilot-org-id","required":false}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/public/external-catalog/product-recommendations":{"post":{"operationId":"$getExternalCatalogProductRecommendations","parameters":[{"in":"header","name":"x-epilot-org-id","required":false}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/public/product-recommendations":{"post":{"operationId":"$productRecommendations","parameters":[{"in":"header","name":"X-Ivy-Org-ID"}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/conditional-pricing/{slug}/condition-sets":{"get":{"operationId":"$getConditionSets","parameters":[{"in":"path","name":"slug","required":true}],"responses":{}}},"/v1/conditional-pricing:resolve":{"post":{"operationId":"$resolveConditionalEntity","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/conditional-pricing/{slug}/entities/{entity_id}/variants":{"post":{"operationId":"$createConditionalVariant","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}":{"get":{"operationId":"$getActiveConditionalVariantVersion","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true},{"in":"path","name":"variant_id","required":true}],"responses":{}},"put":{"operationId":"$replaceActiveConditionalVariantVersion","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true},{"in":"path","name":"variant_id","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}},"patch":{"operationId":"$patchActiveConditionalVariantVersion","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true},{"in":"path","name":"variant_id","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"$deleteConditionalVariant","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true},{"in":"path","name":"variant_id","required":true}],"responses":{}}},"/v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}/versions":{"post":{"operationId":"$appendConditionalVariantVersion","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true},{"in":"path","name":"variant_id","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}/versions/{valid_from}":{"get":{"operationId":"$getConditionalVariantVersion","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true},{"in":"path","name":"variant_id","required":true},{"in":"path","name":"valid_from","required":true}],"responses":{}},"put":{"operationId":"$replaceConditionalVariantVersion","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true},{"in":"path","name":"variant_id","required":true},{"in":"path","name":"valid_from","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}},"patch":{"operationId":"$patchConditionalVariantVersion","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true},{"in":"path","name":"variant_id","required":true},{"in":"path","name":"valid_from","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"$deleteConditionalVariantVersion","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true},{"in":"path","name":"variant_id","required":true},{"in":"path","name":"valid_from","required":true},{"in":"query","name":"_revision","required":true}],"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}(438),i=exports;for(var n in t)i[n]=t[n];t.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{"use strict";var e={438(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}/product-recommendations":{"post":{"operationId":"$searchExternalProductRecommendations","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/external-catalog/products":{"post":{"operationId":"$getExternalCatalogProducts","parameters":[{"in":"header","name":"x-epilot-org-id","required":false}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/public/external-catalog/product-recommendations":{"post":{"operationId":"$getExternalCatalogProductRecommendations","parameters":[{"in":"header","name":"x-epilot-org-id","required":false}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/public/product-recommendations":{"post":{"operationId":"$productRecommendations","parameters":[{"in":"header","name":"X-Ivy-Org-ID"}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/conditional-pricing/{slug}/condition-sets":{"get":{"operationId":"$getConditionSets","parameters":[{"in":"path","name":"slug","required":true}],"responses":{}}},"/v1/conditional-pricing:resolve":{"post":{"operationId":"$resolveConditionalEntity","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/conditional-pricing/{slug}/entities/{entity_id}/variants":{"post":{"operationId":"$createConditionalVariant","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/conditional-pricing/{slug}/entities/{entity_id}/variants:list":{"post":{"operationId":"$listConditionalVariants","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/conditional-pricing/{slug}/entities/{entity_id}/variants:tree":{"post":{"operationId":"$getConditionalVariantTree","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}":{"get":{"operationId":"$getActiveConditionalVariantVersion","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true},{"in":"path","name":"variant_id","required":true}],"responses":{}},"put":{"operationId":"$replaceActiveConditionalVariantVersion","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true},{"in":"path","name":"variant_id","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}},"patch":{"operationId":"$patchActiveConditionalVariantVersion","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true},{"in":"path","name":"variant_id","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"$deleteConditionalVariant","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true},{"in":"path","name":"variant_id","required":true}],"responses":{}}},"/v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}/versions":{"get":{"operationId":"$listConditionalVariantVersions","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true},{"in":"path","name":"variant_id","required":true},{"in":"query","name":"limit","required":false},{"in":"query","name":"order","required":false},{"in":"query","name":"cursor","required":false}],"responses":{}},"post":{"operationId":"$appendConditionalVariantVersion","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true},{"in":"path","name":"variant_id","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}/versions/{valid_from}":{"get":{"operationId":"$getConditionalVariantVersion","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true},{"in":"path","name":"variant_id","required":true},{"in":"path","name":"valid_from","required":true}],"responses":{}},"put":{"operationId":"$replaceConditionalVariantVersion","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true},{"in":"path","name":"variant_id","required":true},{"in":"path","name":"valid_from","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}},"patch":{"operationId":"$patchConditionalVariantVersion","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true},{"in":"path","name":"variant_id","required":true},{"in":"path","name":"valid_from","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"$deleteConditionalVariantVersion","parameters":[{"in":"path","name":"slug","required":true},{"in":"path","name":"entity_id","required":true},{"in":"path","name":"variant_id","required":true},{"in":"path","name":"valid_from","required":true},{"in":"query","name":"_revision","required":true}],"responses":{}}},"/v1/conditional-pricing/{slug}/variants:batchUpsert":{"post":{"operationId":"$batchUpsertConditionalVariants","parameters":[{"in":"path","name":"slug","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/conditional-pricing/{slug}/variants:batchDelete":{"post":{"operationId":"$batchDeleteConditionalVariants","parameters":[{"in":"path","name":"slug","required":true}],"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}(438),i=exports;for(var n in t)i[n]=t[n];t.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
|
|
@@ -481,6 +481,54 @@
|
|
|
481
481
|
"responses": {}
|
|
482
482
|
}
|
|
483
483
|
},
|
|
484
|
+
"/v1/conditional-pricing/{slug}/entities/{entity_id}/variants:list": {
|
|
485
|
+
"post": {
|
|
486
|
+
"operationId": "$listConditionalVariants",
|
|
487
|
+
"parameters": [
|
|
488
|
+
{
|
|
489
|
+
"in": "path",
|
|
490
|
+
"name": "slug",
|
|
491
|
+
"required": true
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"in": "path",
|
|
495
|
+
"name": "entity_id",
|
|
496
|
+
"required": true
|
|
497
|
+
}
|
|
498
|
+
],
|
|
499
|
+
"requestBody": {
|
|
500
|
+
"required": true,
|
|
501
|
+
"content": {
|
|
502
|
+
"application/json": {}
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
"responses": {}
|
|
506
|
+
}
|
|
507
|
+
},
|
|
508
|
+
"/v1/conditional-pricing/{slug}/entities/{entity_id}/variants:tree": {
|
|
509
|
+
"post": {
|
|
510
|
+
"operationId": "$getConditionalVariantTree",
|
|
511
|
+
"parameters": [
|
|
512
|
+
{
|
|
513
|
+
"in": "path",
|
|
514
|
+
"name": "slug",
|
|
515
|
+
"required": true
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"in": "path",
|
|
519
|
+
"name": "entity_id",
|
|
520
|
+
"required": true
|
|
521
|
+
}
|
|
522
|
+
],
|
|
523
|
+
"requestBody": {
|
|
524
|
+
"required": true,
|
|
525
|
+
"content": {
|
|
526
|
+
"application/json": {}
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
"responses": {}
|
|
530
|
+
}
|
|
531
|
+
},
|
|
484
532
|
"/v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}": {
|
|
485
533
|
"get": {
|
|
486
534
|
"operationId": "$getActiveConditionalVariantVersion",
|
|
@@ -580,6 +628,42 @@
|
|
|
580
628
|
}
|
|
581
629
|
},
|
|
582
630
|
"/v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}/versions": {
|
|
631
|
+
"get": {
|
|
632
|
+
"operationId": "$listConditionalVariantVersions",
|
|
633
|
+
"parameters": [
|
|
634
|
+
{
|
|
635
|
+
"in": "path",
|
|
636
|
+
"name": "slug",
|
|
637
|
+
"required": true
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"in": "path",
|
|
641
|
+
"name": "entity_id",
|
|
642
|
+
"required": true
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"in": "path",
|
|
646
|
+
"name": "variant_id",
|
|
647
|
+
"required": true
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"in": "query",
|
|
651
|
+
"name": "limit",
|
|
652
|
+
"required": false
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
"in": "query",
|
|
656
|
+
"name": "order",
|
|
657
|
+
"required": false
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"in": "query",
|
|
661
|
+
"name": "cursor",
|
|
662
|
+
"required": false
|
|
663
|
+
}
|
|
664
|
+
],
|
|
665
|
+
"responses": {}
|
|
666
|
+
},
|
|
583
667
|
"post": {
|
|
584
668
|
"operationId": "$appendConditionalVariantVersion",
|
|
585
669
|
"parameters": [
|
|
@@ -730,6 +814,44 @@
|
|
|
730
814
|
],
|
|
731
815
|
"responses": {}
|
|
732
816
|
}
|
|
817
|
+
},
|
|
818
|
+
"/v1/conditional-pricing/{slug}/variants:batchUpsert": {
|
|
819
|
+
"post": {
|
|
820
|
+
"operationId": "$batchUpsertConditionalVariants",
|
|
821
|
+
"parameters": [
|
|
822
|
+
{
|
|
823
|
+
"in": "path",
|
|
824
|
+
"name": "slug",
|
|
825
|
+
"required": true
|
|
826
|
+
}
|
|
827
|
+
],
|
|
828
|
+
"requestBody": {
|
|
829
|
+
"required": true,
|
|
830
|
+
"content": {
|
|
831
|
+
"application/json": {}
|
|
832
|
+
}
|
|
833
|
+
},
|
|
834
|
+
"responses": {}
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
"/v1/conditional-pricing/{slug}/variants:batchDelete": {
|
|
838
|
+
"post": {
|
|
839
|
+
"operationId": "$batchDeleteConditionalVariants",
|
|
840
|
+
"parameters": [
|
|
841
|
+
{
|
|
842
|
+
"in": "path",
|
|
843
|
+
"name": "slug",
|
|
844
|
+
"required": true
|
|
845
|
+
}
|
|
846
|
+
],
|
|
847
|
+
"requestBody": {
|
|
848
|
+
"required": true,
|
|
849
|
+
"content": {
|
|
850
|
+
"application/json": {}
|
|
851
|
+
}
|
|
852
|
+
},
|
|
853
|
+
"responses": {}
|
|
854
|
+
}
|
|
733
855
|
}
|
|
734
856
|
},
|
|
735
857
|
"components": {}
|
package/dist/openapi.d.ts
CHANGED
|
@@ -3263,6 +3263,66 @@ declare namespace Components {
|
|
|
3263
3263
|
string | {
|
|
3264
3264
|
[name: string]: any;
|
|
3265
3265
|
}[];
|
|
3266
|
+
} | {
|
|
3267
|
+
code: "CONDITIONAL_PRICING_NOT_ENABLED";
|
|
3268
|
+
details: {
|
|
3269
|
+
[key: string]: never;
|
|
3270
|
+
};
|
|
3271
|
+
/**
|
|
3272
|
+
* Error message
|
|
3273
|
+
*/
|
|
3274
|
+
message: string;
|
|
3275
|
+
/**
|
|
3276
|
+
* The HTTP status code
|
|
3277
|
+
*/
|
|
3278
|
+
status?: number;
|
|
3279
|
+
/**
|
|
3280
|
+
* The cause of the error (visible for bad requests - http 400)
|
|
3281
|
+
*/
|
|
3282
|
+
cause?: string;
|
|
3283
|
+
/**
|
|
3284
|
+
* What went wrong. The same string as `message`, except on a request-validation
|
|
3285
|
+
* failure, which puts the list of validation errors here instead.
|
|
3286
|
+
*
|
|
3287
|
+
*/
|
|
3288
|
+
error?: /**
|
|
3289
|
+
* What went wrong. The same string as `message`, except on a request-validation
|
|
3290
|
+
* failure, which puts the list of validation errors here instead.
|
|
3291
|
+
*
|
|
3292
|
+
*/
|
|
3293
|
+
string | {
|
|
3294
|
+
[name: string]: any;
|
|
3295
|
+
}[];
|
|
3296
|
+
} | {
|
|
3297
|
+
code: "CONDITIONAL_PRICING_NOT_READY";
|
|
3298
|
+
details: {
|
|
3299
|
+
[key: string]: never;
|
|
3300
|
+
};
|
|
3301
|
+
/**
|
|
3302
|
+
* Error message
|
|
3303
|
+
*/
|
|
3304
|
+
message: string;
|
|
3305
|
+
/**
|
|
3306
|
+
* The HTTP status code
|
|
3307
|
+
*/
|
|
3308
|
+
status?: number;
|
|
3309
|
+
/**
|
|
3310
|
+
* The cause of the error (visible for bad requests - http 400)
|
|
3311
|
+
*/
|
|
3312
|
+
cause?: string;
|
|
3313
|
+
/**
|
|
3314
|
+
* What went wrong. The same string as `message`, except on a request-validation
|
|
3315
|
+
* failure, which puts the list of validation errors here instead.
|
|
3316
|
+
*
|
|
3317
|
+
*/
|
|
3318
|
+
error?: /**
|
|
3319
|
+
* What went wrong. The same string as `message`, except on a request-validation
|
|
3320
|
+
* failure, which puts the list of validation errors here instead.
|
|
3321
|
+
*
|
|
3322
|
+
*/
|
|
3323
|
+
string | {
|
|
3324
|
+
[name: string]: any;
|
|
3325
|
+
}[];
|
|
3266
3326
|
} | {
|
|
3267
3327
|
/**
|
|
3268
3328
|
* Error message
|
|
@@ -5708,6 +5768,70 @@ declare namespace Components {
|
|
|
5708
5768
|
}[] | string | {
|
|
5709
5769
|
[name: string]: any;
|
|
5710
5770
|
}[];
|
|
5771
|
+
} | {
|
|
5772
|
+
code: "CONDITIONAL_PRICING_NOT_ENABLED";
|
|
5773
|
+
details: {
|
|
5774
|
+
[key: string]: never;
|
|
5775
|
+
};
|
|
5776
|
+
/**
|
|
5777
|
+
* Error message
|
|
5778
|
+
*/
|
|
5779
|
+
message: string;
|
|
5780
|
+
/**
|
|
5781
|
+
* The HTTP status code
|
|
5782
|
+
*/
|
|
5783
|
+
status?: number;
|
|
5784
|
+
/**
|
|
5785
|
+
* The cause of the error (visible for bad requests - http 400)
|
|
5786
|
+
*/
|
|
5787
|
+
cause?: string;
|
|
5788
|
+
/**
|
|
5789
|
+
* What went wrong. The same string as `message`, except on a request-validation
|
|
5790
|
+
* failure, which puts the list of validation errors here instead.
|
|
5791
|
+
*
|
|
5792
|
+
*/
|
|
5793
|
+
error?: /**
|
|
5794
|
+
* What went wrong. The same string as `message`, except on a request-validation
|
|
5795
|
+
* failure, which puts the list of validation errors here instead.
|
|
5796
|
+
*
|
|
5797
|
+
*/
|
|
5798
|
+
string | {
|
|
5799
|
+
[name: string]: any;
|
|
5800
|
+
}[] | string | {
|
|
5801
|
+
[name: string]: any;
|
|
5802
|
+
}[];
|
|
5803
|
+
} | {
|
|
5804
|
+
code: "CONDITIONAL_PRICING_NOT_READY";
|
|
5805
|
+
details: {
|
|
5806
|
+
[key: string]: never;
|
|
5807
|
+
};
|
|
5808
|
+
/**
|
|
5809
|
+
* Error message
|
|
5810
|
+
*/
|
|
5811
|
+
message: string;
|
|
5812
|
+
/**
|
|
5813
|
+
* The HTTP status code
|
|
5814
|
+
*/
|
|
5815
|
+
status?: number;
|
|
5816
|
+
/**
|
|
5817
|
+
* The cause of the error (visible for bad requests - http 400)
|
|
5818
|
+
*/
|
|
5819
|
+
cause?: string;
|
|
5820
|
+
/**
|
|
5821
|
+
* What went wrong. The same string as `message`, except on a request-validation
|
|
5822
|
+
* failure, which puts the list of validation errors here instead.
|
|
5823
|
+
*
|
|
5824
|
+
*/
|
|
5825
|
+
error?: /**
|
|
5826
|
+
* What went wrong. The same string as `message`, except on a request-validation
|
|
5827
|
+
* failure, which puts the list of validation errors here instead.
|
|
5828
|
+
*
|
|
5829
|
+
*/
|
|
5830
|
+
string | {
|
|
5831
|
+
[name: string]: any;
|
|
5832
|
+
}[] | string | {
|
|
5833
|
+
[name: string]: any;
|
|
5834
|
+
}[];
|
|
5711
5835
|
} | {
|
|
5712
5836
|
/**
|
|
5713
5837
|
* Error message
|
|
@@ -10689,6 +10813,74 @@ declare namespace Components {
|
|
|
10689
10813
|
}[] | string | {
|
|
10690
10814
|
[name: string]: any;
|
|
10691
10815
|
}[];
|
|
10816
|
+
} | {
|
|
10817
|
+
code: "CONDITIONAL_PRICING_NOT_ENABLED";
|
|
10818
|
+
details: {
|
|
10819
|
+
[key: string]: never;
|
|
10820
|
+
};
|
|
10821
|
+
/**
|
|
10822
|
+
* Error message
|
|
10823
|
+
*/
|
|
10824
|
+
message: string;
|
|
10825
|
+
/**
|
|
10826
|
+
* The HTTP status code
|
|
10827
|
+
*/
|
|
10828
|
+
status?: number;
|
|
10829
|
+
/**
|
|
10830
|
+
* The cause of the error (visible for bad requests - http 400)
|
|
10831
|
+
*/
|
|
10832
|
+
cause?: string;
|
|
10833
|
+
/**
|
|
10834
|
+
* What went wrong. The same string as `message`, except on a request-validation
|
|
10835
|
+
* failure, which puts the list of validation errors here instead.
|
|
10836
|
+
*
|
|
10837
|
+
*/
|
|
10838
|
+
error?: /**
|
|
10839
|
+
* What went wrong. The same string as `message`, except on a request-validation
|
|
10840
|
+
* failure, which puts the list of validation errors here instead.
|
|
10841
|
+
*
|
|
10842
|
+
*/
|
|
10843
|
+
string | {
|
|
10844
|
+
[name: string]: any;
|
|
10845
|
+
}[] | string | {
|
|
10846
|
+
[name: string]: any;
|
|
10847
|
+
}[] | string | {
|
|
10848
|
+
[name: string]: any;
|
|
10849
|
+
}[];
|
|
10850
|
+
} | {
|
|
10851
|
+
code: "CONDITIONAL_PRICING_NOT_READY";
|
|
10852
|
+
details: {
|
|
10853
|
+
[key: string]: never;
|
|
10854
|
+
};
|
|
10855
|
+
/**
|
|
10856
|
+
* Error message
|
|
10857
|
+
*/
|
|
10858
|
+
message: string;
|
|
10859
|
+
/**
|
|
10860
|
+
* The HTTP status code
|
|
10861
|
+
*/
|
|
10862
|
+
status?: number;
|
|
10863
|
+
/**
|
|
10864
|
+
* The cause of the error (visible for bad requests - http 400)
|
|
10865
|
+
*/
|
|
10866
|
+
cause?: string;
|
|
10867
|
+
/**
|
|
10868
|
+
* What went wrong. The same string as `message`, except on a request-validation
|
|
10869
|
+
* failure, which puts the list of validation errors here instead.
|
|
10870
|
+
*
|
|
10871
|
+
*/
|
|
10872
|
+
error?: /**
|
|
10873
|
+
* What went wrong. The same string as `message`, except on a request-validation
|
|
10874
|
+
* failure, which puts the list of validation errors here instead.
|
|
10875
|
+
*
|
|
10876
|
+
*/
|
|
10877
|
+
string | {
|
|
10878
|
+
[name: string]: any;
|
|
10879
|
+
}[] | string | {
|
|
10880
|
+
[name: string]: any;
|
|
10881
|
+
}[] | string | {
|
|
10882
|
+
[name: string]: any;
|
|
10883
|
+
}[];
|
|
10692
10884
|
} | {
|
|
10693
10885
|
/**
|
|
10694
10886
|
* Error message
|
|
@@ -10748,9 +10940,20 @@ declare namespace Components {
|
|
|
10748
10940
|
* - `IDENTIFIER_INVALID` (400): an id in the request cannot be used as a storage key — empty, carrying an unsupported character, or longer than 128 characters
|
|
10749
10941
|
* - `VALID_FROM_INVALID` (400): a `valid_from` is not one of the timestamp forms a version timeline can be sorted by
|
|
10750
10942
|
* - `VALUE_UNSTORABLE` (400): a write carries a value the store cannot hold, such as a non-finite number or one outside the table's numeric range
|
|
10943
|
+
* - `CONDITIONAL_PRICING_NOT_ENABLED` (403): the organization has not opted in to Conditional Pricing
|
|
10944
|
+
* - `CONDITIONAL_PRICING_NOT_READY` (409): the organization opted in minutes ago and a variant cannot be created until its setup finishes
|
|
10751
10945
|
*
|
|
10752
10946
|
*/
|
|
10753
|
-
export type ConditionalPricingErrorCode = "SCHEMA_NOT_FOUND" | "ENTITY_NOT_FOUND" | "ENTITY_TYPE_MISMATCH" | "ENTITY_NOT_CONDITIONAL" | "VARIANT_NOT_FOUND" | "VERSION_NOT_FOUND" | "NO_MATCHES" | "NO_ACTIVE_VERSION" | "AMBIGUOUS_RESOLUTION" | "TUPLE_CONFLICT" | "VERSION_CONFLICT" | "CONDITION_UNDEFINED" | "VARIANT_PIN_UNDECLARED" | "OPERATOR_UNSUPPORTED" | "CONTEXT_FORMAT_INVALID" | "CONDITION_VALUE_INVALID" | "CONDITION_UNCONFIGURED" | "TOO_MANY_MATCHES" | "WRITE_CONFLICT" | "OFFSET_WINDOW_EXCEEDED" | "CURSOR_INVALID" | "VARIANT_LIMIT_REACHED" | "PIN_FORMAT_INVALID" | "VARIANT_UNPINNED" | "LAST_VERSION_UNDELETABLE" | "CONDITION_UNREADABLE" | "SORT_INVALID" | "DEFAULT_MARKER_RESERVED" | "DEFAULT_VARIANT_PINS_CONDITIONS" | "VALID_FROM_IMMUTABLE" | "VARIANT_CONDITIONS_IMMUTABLE" | "IDENTIFIER_INVALID" | "VALID_FROM_INVALID" | "VALUE_UNSTORABLE";
|
|
10947
|
+
export type ConditionalPricingErrorCode = "SCHEMA_NOT_FOUND" | "ENTITY_NOT_FOUND" | "ENTITY_TYPE_MISMATCH" | "ENTITY_NOT_CONDITIONAL" | "VARIANT_NOT_FOUND" | "VERSION_NOT_FOUND" | "NO_MATCHES" | "NO_ACTIVE_VERSION" | "AMBIGUOUS_RESOLUTION" | "TUPLE_CONFLICT" | "VERSION_CONFLICT" | "CONDITION_UNDEFINED" | "VARIANT_PIN_UNDECLARED" | "OPERATOR_UNSUPPORTED" | "CONTEXT_FORMAT_INVALID" | "CONDITION_VALUE_INVALID" | "CONDITION_UNCONFIGURED" | "TOO_MANY_MATCHES" | "WRITE_CONFLICT" | "OFFSET_WINDOW_EXCEEDED" | "CURSOR_INVALID" | "VARIANT_LIMIT_REACHED" | "PIN_FORMAT_INVALID" | "VARIANT_UNPINNED" | "LAST_VERSION_UNDELETABLE" | "CONDITION_UNREADABLE" | "SORT_INVALID" | "DEFAULT_MARKER_RESERVED" | "DEFAULT_VARIANT_PINS_CONDITIONS" | "VALID_FROM_IMMUTABLE" | "VARIANT_CONDITIONS_IMMUTABLE" | "IDENTIFIER_INVALID" | "VALID_FROM_INVALID" | "VALUE_UNSTORABLE" | "CONDITIONAL_PRICING_NOT_ENABLED" | "CONDITIONAL_PRICING_NOT_READY";
|
|
10948
|
+
export interface ConditionalPricingOptIn {
|
|
10949
|
+
/**
|
|
10950
|
+
* - `PROVISIONING`: the organization's search collection is still being set up, and
|
|
10951
|
+
* creating a variant is refused with `CONDITIONAL_PRICING_NOT_READY`.
|
|
10952
|
+
* - `ACTIVE`: setup has finished.
|
|
10953
|
+
*
|
|
10954
|
+
*/
|
|
10955
|
+
status: "PROVISIONING" | "ACTIVE";
|
|
10956
|
+
}
|
|
10754
10957
|
export type ConsumptionTypeGetAg = "household" | "heating_pump" | "night_storage_heating" | "night_storage_heating_common_meter";
|
|
10755
10958
|
/**
|
|
10756
10959
|
* The coupon entity
|
|
@@ -18015,6 +18218,16 @@ declare namespace Components {
|
|
|
18015
18218
|
InertOverride[]
|
|
18016
18219
|
];
|
|
18017
18220
|
};
|
|
18221
|
+
} | {
|
|
18222
|
+
code: "VARIANT_NOT_INDEXED";
|
|
18223
|
+
message: string;
|
|
18224
|
+
details: {
|
|
18225
|
+
/**
|
|
18226
|
+
* - `INDEX_WRITE_FAILED`: the index write was attempted and did not succeed.
|
|
18227
|
+
*
|
|
18228
|
+
*/
|
|
18229
|
+
reason: "INDEX_WRITE_FAILED";
|
|
18230
|
+
};
|
|
18018
18231
|
};
|
|
18019
18232
|
/**
|
|
18020
18233
|
* A version as a write left it, together with anything the write moved.
|
|
@@ -18128,7 +18341,16 @@ declare namespace Paths {
|
|
|
18128
18341
|
*
|
|
18129
18342
|
*/
|
|
18130
18343
|
Components.Schemas.ConditionalPricingError;
|
|
18131
|
-
export type $403 =
|
|
18344
|
+
export type $403 = /**
|
|
18345
|
+
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18346
|
+
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
18347
|
+
* declares exactly the fields that code sends.
|
|
18348
|
+
*
|
|
18349
|
+
* A request these schemas reject is answered by the request validator with a message and
|
|
18350
|
+
* carries neither `code` nor `details` — the last member of the union.
|
|
18351
|
+
*
|
|
18352
|
+
*/
|
|
18353
|
+
Components.Schemas.ConditionalPricingError;
|
|
18132
18354
|
export type $404 = /**
|
|
18133
18355
|
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18134
18356
|
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
@@ -18220,7 +18442,16 @@ declare namespace Paths {
|
|
|
18220
18442
|
*
|
|
18221
18443
|
*/
|
|
18222
18444
|
Components.Schemas.ConditionalPricingError;
|
|
18223
|
-
export type $403 =
|
|
18445
|
+
export type $403 = /**
|
|
18446
|
+
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18447
|
+
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
18448
|
+
* declares exactly the fields that code sends.
|
|
18449
|
+
*
|
|
18450
|
+
* A request these schemas reject is answered by the request validator with a message and
|
|
18451
|
+
* carries neither `code` nor `details` — the last member of the union.
|
|
18452
|
+
*
|
|
18453
|
+
*/
|
|
18454
|
+
Components.Schemas.ConditionalPricingError;
|
|
18224
18455
|
export type $404 = /**
|
|
18225
18456
|
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18226
18457
|
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
@@ -18253,7 +18484,16 @@ declare namespace Paths {
|
|
|
18253
18484
|
*
|
|
18254
18485
|
*/
|
|
18255
18486
|
Components.Schemas.ConditionalPricingError;
|
|
18256
|
-
export type $403 =
|
|
18487
|
+
export type $403 = /**
|
|
18488
|
+
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18489
|
+
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
18490
|
+
* declares exactly the fields that code sends.
|
|
18491
|
+
*
|
|
18492
|
+
* A request these schemas reject is answered by the request validator with a message and
|
|
18493
|
+
* carries neither `code` nor `details` — the last member of the union.
|
|
18494
|
+
*
|
|
18495
|
+
*/
|
|
18496
|
+
Components.Schemas.ConditionalPricingError;
|
|
18257
18497
|
export type $404 = /**
|
|
18258
18498
|
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18259
18499
|
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
@@ -18264,6 +18504,16 @@ declare namespace Paths {
|
|
|
18264
18504
|
*
|
|
18265
18505
|
*/
|
|
18266
18506
|
Components.Schemas.ConditionalPricingError;
|
|
18507
|
+
export type $409 = /**
|
|
18508
|
+
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18509
|
+
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
18510
|
+
* declares exactly the fields that code sends.
|
|
18511
|
+
*
|
|
18512
|
+
* A request these schemas reject is answered by the request validator with a message and
|
|
18513
|
+
* carries neither `code` nor `details` — the last member of the union.
|
|
18514
|
+
*
|
|
18515
|
+
*/
|
|
18516
|
+
Components.Schemas.ConditionalPricingError;
|
|
18267
18517
|
}
|
|
18268
18518
|
}
|
|
18269
18519
|
namespace $CalculatePricingDetails {
|
|
@@ -18329,7 +18579,16 @@ declare namespace Paths {
|
|
|
18329
18579
|
*
|
|
18330
18580
|
*/
|
|
18331
18581
|
Components.Schemas.ConditionalPricingError;
|
|
18332
|
-
export type $403 =
|
|
18582
|
+
export type $403 = /**
|
|
18583
|
+
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18584
|
+
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
18585
|
+
* declares exactly the fields that code sends.
|
|
18586
|
+
*
|
|
18587
|
+
* A request these schemas reject is answered by the request validator with a message and
|
|
18588
|
+
* carries neither `code` nor `details` — the last member of the union.
|
|
18589
|
+
*
|
|
18590
|
+
*/
|
|
18591
|
+
Components.Schemas.ConditionalPricingError;
|
|
18333
18592
|
export type $404 = /**
|
|
18334
18593
|
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18335
18594
|
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
@@ -18375,7 +18634,16 @@ declare namespace Paths {
|
|
|
18375
18634
|
*
|
|
18376
18635
|
*/
|
|
18377
18636
|
Components.Schemas.ConditionalPricingError;
|
|
18378
|
-
export type $403 =
|
|
18637
|
+
export type $403 = /**
|
|
18638
|
+
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18639
|
+
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
18640
|
+
* declares exactly the fields that code sends.
|
|
18641
|
+
*
|
|
18642
|
+
* A request these schemas reject is answered by the request validator with a message and
|
|
18643
|
+
* carries neither `code` nor `details` — the last member of the union.
|
|
18644
|
+
*
|
|
18645
|
+
*/
|
|
18646
|
+
Components.Schemas.ConditionalPricingError;
|
|
18379
18647
|
export type $404 = /**
|
|
18380
18648
|
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18381
18649
|
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
@@ -18427,7 +18695,16 @@ declare namespace Paths {
|
|
|
18427
18695
|
*
|
|
18428
18696
|
*/
|
|
18429
18697
|
Components.Schemas.ConditionalPricingError;
|
|
18430
|
-
export type $403 =
|
|
18698
|
+
export type $403 = /**
|
|
18699
|
+
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18700
|
+
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
18701
|
+
* declares exactly the fields that code sends.
|
|
18702
|
+
*
|
|
18703
|
+
* A request these schemas reject is answered by the request validator with a message and
|
|
18704
|
+
* carries neither `code` nor `details` — the last member of the union.
|
|
18705
|
+
*
|
|
18706
|
+
*/
|
|
18707
|
+
Components.Schemas.ConditionalPricingError;
|
|
18431
18708
|
export type $404 = /**
|
|
18432
18709
|
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18433
18710
|
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
@@ -18492,7 +18769,16 @@ declare namespace Paths {
|
|
|
18492
18769
|
*
|
|
18493
18770
|
*/
|
|
18494
18771
|
Components.Schemas.ConditionalPricingError;
|
|
18495
|
-
export type $403 =
|
|
18772
|
+
export type $403 = /**
|
|
18773
|
+
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18774
|
+
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
18775
|
+
* declares exactly the fields that code sends.
|
|
18776
|
+
*
|
|
18777
|
+
* A request these schemas reject is answered by the request validator with a message and
|
|
18778
|
+
* carries neither `code` nor `details` — the last member of the union.
|
|
18779
|
+
*
|
|
18780
|
+
*/
|
|
18781
|
+
Components.Schemas.ConditionalPricingError;
|
|
18496
18782
|
export type $404 = /**
|
|
18497
18783
|
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18498
18784
|
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
@@ -18525,6 +18811,16 @@ declare namespace Paths {
|
|
|
18525
18811
|
namespace Responses {
|
|
18526
18812
|
export type $200 = Components.Schemas.ConditionSetCatalog;
|
|
18527
18813
|
export type $400 = Components.Schemas.Error;
|
|
18814
|
+
export type $403 = /**
|
|
18815
|
+
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18816
|
+
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
18817
|
+
* declares exactly the fields that code sends.
|
|
18818
|
+
*
|
|
18819
|
+
* A request these schemas reject is answered by the request validator with a message and
|
|
18820
|
+
* carries neither `code` nor `details` — the last member of the union.
|
|
18821
|
+
*
|
|
18822
|
+
*/
|
|
18823
|
+
Components.Schemas.ConditionalPricingError;
|
|
18528
18824
|
}
|
|
18529
18825
|
}
|
|
18530
18826
|
namespace $GetConditionalVariantTree {
|
|
@@ -18554,7 +18850,16 @@ declare namespace Paths {
|
|
|
18554
18850
|
*
|
|
18555
18851
|
*/
|
|
18556
18852
|
Components.Schemas.ConditionalPricingError;
|
|
18557
|
-
export type $403 =
|
|
18853
|
+
export type $403 = /**
|
|
18854
|
+
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18855
|
+
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
18856
|
+
* declares exactly the fields that code sends.
|
|
18857
|
+
*
|
|
18858
|
+
* A request these schemas reject is answered by the request validator with a message and
|
|
18859
|
+
* carries neither `code` nor `details` — the last member of the union.
|
|
18860
|
+
*
|
|
18861
|
+
*/
|
|
18862
|
+
Components.Schemas.ConditionalPricingError;
|
|
18558
18863
|
export type $404 = /**
|
|
18559
18864
|
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18560
18865
|
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
@@ -18608,7 +18913,16 @@ declare namespace Paths {
|
|
|
18608
18913
|
*
|
|
18609
18914
|
*/
|
|
18610
18915
|
Components.Schemas.ConditionalPricingError;
|
|
18611
|
-
export type $403 =
|
|
18916
|
+
export type $403 = /**
|
|
18917
|
+
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18918
|
+
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
18919
|
+
* declares exactly the fields that code sends.
|
|
18920
|
+
*
|
|
18921
|
+
* A request these schemas reject is answered by the request validator with a message and
|
|
18922
|
+
* carries neither `code` nor `details` — the last member of the union.
|
|
18923
|
+
*
|
|
18924
|
+
*/
|
|
18925
|
+
Components.Schemas.ConditionalPricingError;
|
|
18612
18926
|
export type $404 = /**
|
|
18613
18927
|
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18614
18928
|
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
@@ -18808,7 +19122,16 @@ declare namespace Paths {
|
|
|
18808
19122
|
*
|
|
18809
19123
|
*/
|
|
18810
19124
|
Components.Schemas.ConditionalPricingError;
|
|
18811
|
-
export type $403 =
|
|
19125
|
+
export type $403 = /**
|
|
19126
|
+
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
19127
|
+
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
19128
|
+
* declares exactly the fields that code sends.
|
|
19129
|
+
*
|
|
19130
|
+
* A request these schemas reject is answered by the request validator with a message and
|
|
19131
|
+
* carries neither `code` nor `details` — the last member of the union.
|
|
19132
|
+
*
|
|
19133
|
+
*/
|
|
19134
|
+
Components.Schemas.ConditionalPricingError;
|
|
18812
19135
|
export type $404 = /**
|
|
18813
19136
|
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18814
19137
|
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
@@ -18859,7 +19182,16 @@ declare namespace Paths {
|
|
|
18859
19182
|
*
|
|
18860
19183
|
*/
|
|
18861
19184
|
Components.Schemas.ConditionalPricingError;
|
|
18862
|
-
export type $403 =
|
|
19185
|
+
export type $403 = /**
|
|
19186
|
+
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
19187
|
+
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
19188
|
+
* declares exactly the fields that code sends.
|
|
19189
|
+
*
|
|
19190
|
+
* A request these schemas reject is answered by the request validator with a message and
|
|
19191
|
+
* carries neither `code` nor `details` — the last member of the union.
|
|
19192
|
+
*
|
|
19193
|
+
*/
|
|
19194
|
+
Components.Schemas.ConditionalPricingError;
|
|
18863
19195
|
export type $404 = /**
|
|
18864
19196
|
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18865
19197
|
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
@@ -18906,7 +19238,16 @@ declare namespace Paths {
|
|
|
18906
19238
|
*
|
|
18907
19239
|
*/
|
|
18908
19240
|
Components.Schemas.ConditionalPricingError;
|
|
18909
|
-
export type $403 =
|
|
19241
|
+
export type $403 = /**
|
|
19242
|
+
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
19243
|
+
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
19244
|
+
* declares exactly the fields that code sends.
|
|
19245
|
+
*
|
|
19246
|
+
* A request these schemas reject is answered by the request validator with a message and
|
|
19247
|
+
* carries neither `code` nor `details` — the last member of the union.
|
|
19248
|
+
*
|
|
19249
|
+
*/
|
|
19250
|
+
Components.Schemas.ConditionalPricingError;
|
|
18910
19251
|
export type $404 = /**
|
|
18911
19252
|
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18912
19253
|
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
@@ -18955,7 +19296,16 @@ declare namespace Paths {
|
|
|
18955
19296
|
*
|
|
18956
19297
|
*/
|
|
18957
19298
|
Components.Schemas.ConditionalPricingError;
|
|
18958
|
-
export type $403 =
|
|
19299
|
+
export type $403 = /**
|
|
19300
|
+
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
19301
|
+
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
19302
|
+
* declares exactly the fields that code sends.
|
|
19303
|
+
*
|
|
19304
|
+
* A request these schemas reject is answered by the request validator with a message and
|
|
19305
|
+
* carries neither `code` nor `details` — the last member of the union.
|
|
19306
|
+
*
|
|
19307
|
+
*/
|
|
19308
|
+
Components.Schemas.ConditionalPricingError;
|
|
18959
19309
|
export type $404 = /**
|
|
18960
19310
|
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
18961
19311
|
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
@@ -19049,7 +19399,16 @@ declare namespace Paths {
|
|
|
19049
19399
|
*
|
|
19050
19400
|
*/
|
|
19051
19401
|
Components.Schemas.ConditionalPricingError;
|
|
19052
|
-
export type $403 =
|
|
19402
|
+
export type $403 = /**
|
|
19403
|
+
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
19404
|
+
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
19405
|
+
* declares exactly the fields that code sends.
|
|
19406
|
+
*
|
|
19407
|
+
* A request these schemas reject is answered by the request validator with a message and
|
|
19408
|
+
* carries neither `code` nor `details` — the last member of the union.
|
|
19409
|
+
*
|
|
19410
|
+
*/
|
|
19411
|
+
Components.Schemas.ConditionalPricingError;
|
|
19053
19412
|
export type $404 = /**
|
|
19054
19413
|
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
19055
19414
|
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
@@ -19098,7 +19457,16 @@ declare namespace Paths {
|
|
|
19098
19457
|
*
|
|
19099
19458
|
*/
|
|
19100
19459
|
Components.Schemas.ConditionalPricingError;
|
|
19101
|
-
export type $403 =
|
|
19460
|
+
export type $403 = /**
|
|
19461
|
+
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
19462
|
+
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
19463
|
+
* declares exactly the fields that code sends.
|
|
19464
|
+
*
|
|
19465
|
+
* A request these schemas reject is answered by the request validator with a message and
|
|
19466
|
+
* carries neither `code` nor `details` — the last member of the union.
|
|
19467
|
+
*
|
|
19468
|
+
*/
|
|
19469
|
+
Components.Schemas.ConditionalPricingError;
|
|
19102
19470
|
export type $404 = /**
|
|
19103
19471
|
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
19104
19472
|
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
@@ -19141,6 +19509,16 @@ declare namespace Paths {
|
|
|
19141
19509
|
*
|
|
19142
19510
|
*/
|
|
19143
19511
|
Components.Schemas.ConditionalPricingError;
|
|
19512
|
+
export type $403 = /**
|
|
19513
|
+
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
19514
|
+
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
19515
|
+
* declares exactly the fields that code sends.
|
|
19516
|
+
*
|
|
19517
|
+
* A request these schemas reject is answered by the request validator with a message and
|
|
19518
|
+
* carries neither `code` nor `details` — the last member of the union.
|
|
19519
|
+
*
|
|
19520
|
+
*/
|
|
19521
|
+
Components.Schemas.ConditionalPricingError;
|
|
19144
19522
|
export type $404 = /**
|
|
19145
19523
|
* An error from a conditional-pricing operation, carrying a `code` plus the structured data
|
|
19146
19524
|
* that code explains. `details` is typed per code: narrow on `code` and the object under it
|
|
@@ -20730,6 +21108,12 @@ export interface OperationMethods {
|
|
|
20730
21108
|
* When no variant matches, the entity's `default` variant is returned, or `results` is empty.
|
|
20731
21109
|
* `options.hydrate` replaces relation references with the entities they reference.
|
|
20732
21110
|
*
|
|
21111
|
+
* Selection by `context` may lag a write by moments. For about ten seconds after a variant is
|
|
21112
|
+
* created, a context it matches can still resolve to the entity's `default` variant, or to no
|
|
21113
|
+
* result, rather than to the new variant; a variant just deleted can still be selected for as
|
|
21114
|
+
* long. Selection by `variant_id`, and the versions a resolve composes, are not subject to this
|
|
21115
|
+
* lag.
|
|
21116
|
+
*
|
|
20733
21117
|
*/
|
|
20734
21118
|
'$resolveConditionalEntity'(
|
|
20735
21119
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
@@ -21261,6 +21645,12 @@ export interface PathsDictionary {
|
|
|
21261
21645
|
* When no variant matches, the entity's `default` variant is returned, or `results` is empty.
|
|
21262
21646
|
* `options.hydrate` replaces relation references with the entities they reference.
|
|
21263
21647
|
*
|
|
21648
|
+
* Selection by `context` may lag a write by moments. For about ten seconds after a variant is
|
|
21649
|
+
* created, a context it matches can still resolve to the entity's `default` variant, or to no
|
|
21650
|
+
* result, rather than to the new variant; a variant just deleted can still be selected for as
|
|
21651
|
+
* long. Selection by `variant_id`, and the versions a resolve composes, are not subject to this
|
|
21652
|
+
* lag.
|
|
21653
|
+
*
|
|
21264
21654
|
*/
|
|
21265
21655
|
'post'(
|
|
21266
21656
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
@@ -21572,6 +21962,7 @@ export type ConditionType = Components.Schemas.ConditionType;
|
|
|
21572
21962
|
export type ConditionalEntitySlug = Components.Schemas.ConditionalEntitySlug;
|
|
21573
21963
|
export type ConditionalPricingError = Components.Schemas.ConditionalPricingError;
|
|
21574
21964
|
export type ConditionalPricingErrorCode = Components.Schemas.ConditionalPricingErrorCode;
|
|
21965
|
+
export type ConditionalPricingOptIn = Components.Schemas.ConditionalPricingOptIn;
|
|
21575
21966
|
export type ConsumptionTypeGetAg = Components.Schemas.ConsumptionTypeGetAg;
|
|
21576
21967
|
export type Coupon = Components.Schemas.Coupon;
|
|
21577
21968
|
export type CouponItem = Components.Schemas.CouponItem;
|
package/dist/openapi.json
CHANGED
|
@@ -3460,13 +3460,23 @@
|
|
|
3460
3460
|
}
|
|
3461
3461
|
}
|
|
3462
3462
|
}
|
|
3463
|
+
},
|
|
3464
|
+
"403": {
|
|
3465
|
+
"description": "`CONDITIONAL_PRICING_NOT_ENABLED`: the organization has not opted in to Conditional\nPricing. Without a `code`: the token names no organization this API can act for.\n",
|
|
3466
|
+
"content": {
|
|
3467
|
+
"application/json": {
|
|
3468
|
+
"schema": {
|
|
3469
|
+
"$ref": "#/components/schemas/ConditionalPricingError"
|
|
3470
|
+
}
|
|
3471
|
+
}
|
|
3472
|
+
}
|
|
3463
3473
|
}
|
|
3464
3474
|
}
|
|
3465
3475
|
}
|
|
3466
3476
|
},
|
|
3467
3477
|
"/v1/conditional-pricing:resolve": {
|
|
3468
3478
|
"post": {
|
|
3469
|
-
"description": "Returns the variants of one conditional entity that apply, each composed: the base entity\noverlaid with the version in effect at `as_of`.\n\nSelect the variant either by `context`, matched against the conditions each variant pins, or\nby `variant_id`. Exactly one of the two. A condition a variant leaves unpinned matches any\nvalue; a condition absent from `context` matches only variants that leave it unpinned.\n\nWhen no variant matches, the entity's `default` variant is returned, or `results` is empty.\n`options.hydrate` replaces relation references with the entities they reference.\n",
|
|
3479
|
+
"description": "Returns the variants of one conditional entity that apply, each composed: the base entity\noverlaid with the version in effect at `as_of`.\n\nSelect the variant either by `context`, matched against the conditions each variant pins, or\nby `variant_id`. Exactly one of the two. A condition a variant leaves unpinned matches any\nvalue; a condition absent from `context` matches only variants that leave it unpinned.\n\nWhen no variant matches, the entity's `default` variant is returned, or `results` is empty.\n`options.hydrate` replaces relation references with the entities they reference.\n\nSelection by `context` may lag a write by moments. For about ten seconds after a variant is\ncreated, a context it matches can still resolve to the entity's `default` variant, or to no\nresult, rather than to the new variant; a variant just deleted can still be selected for as\nlong. Selection by `variant_id`, and the versions a resolve composes, are not subject to this\nlag.\n",
|
|
3470
3480
|
"operationId": "$resolveConditionalEntity",
|
|
3471
3481
|
"summary": "$resolveConditionalEntity",
|
|
3472
3482
|
"tags": [
|
|
@@ -3607,6 +3617,16 @@
|
|
|
3607
3617
|
}
|
|
3608
3618
|
}
|
|
3609
3619
|
},
|
|
3620
|
+
"403": {
|
|
3621
|
+
"description": "`CONDITIONAL_PRICING_NOT_ENABLED`: the organization has not opted in to Conditional\nPricing. Without a `code`: the token names no organization this API can act for.\n",
|
|
3622
|
+
"content": {
|
|
3623
|
+
"application/json": {
|
|
3624
|
+
"schema": {
|
|
3625
|
+
"$ref": "#/components/schemas/ConditionalPricingError"
|
|
3626
|
+
}
|
|
3627
|
+
}
|
|
3628
|
+
}
|
|
3629
|
+
},
|
|
3610
3630
|
"404": {
|
|
3611
3631
|
"description": "`SCHEMA_NOT_FOUND`, `ENTITY_NOT_FOUND`, and on the pinned branch `VARIANT_NOT_FOUND` or\n`NO_ACTIVE_VERSION`. With `resolve_one`, `NO_MATCHES`; without it, no match is a `200`\ncarrying an empty `results`.\n",
|
|
3612
3632
|
"content": {
|
|
@@ -3731,11 +3751,11 @@
|
|
|
3731
3751
|
}
|
|
3732
3752
|
},
|
|
3733
3753
|
"403": {
|
|
3734
|
-
"description": "
|
|
3754
|
+
"description": "`CONDITIONAL_PRICING_NOT_ENABLED`: the organization has not opted in to Conditional\nPricing. Without a `code`: the token names no organization this API can act for.\n",
|
|
3735
3755
|
"content": {
|
|
3736
3756
|
"application/json": {
|
|
3737
3757
|
"schema": {
|
|
3738
|
-
"$ref": "#/components/schemas/
|
|
3758
|
+
"$ref": "#/components/schemas/ConditionalPricingError"
|
|
3739
3759
|
}
|
|
3740
3760
|
}
|
|
3741
3761
|
}
|
|
@@ -3751,7 +3771,7 @@
|
|
|
3751
3771
|
}
|
|
3752
3772
|
},
|
|
3753
3773
|
"409": {
|
|
3754
|
-
"description": "`TUPLE_CONFLICT` (also how a second `default` variant is refused), `WRITE_CONFLICT`,\n`CONDITION_UNREADABLE`, `CONDITION_UNCONFIGURED`, `VARIANT_LIMIT_REACHED`,\n`ENTITY_NOT_CONDITIONAL`.\n",
|
|
3774
|
+
"description": "`TUPLE_CONFLICT` (also how a second `default` variant is refused), `WRITE_CONFLICT`,\n`CONDITION_UNREADABLE`, `CONDITION_UNCONFIGURED`, `VARIANT_LIMIT_REACHED`,\n`ENTITY_NOT_CONDITIONAL`, `CONDITIONAL_PRICING_NOT_READY`.\n",
|
|
3755
3775
|
"content": {
|
|
3756
3776
|
"application/json": {
|
|
3757
3777
|
"schema": {
|
|
@@ -3895,11 +3915,11 @@
|
|
|
3895
3915
|
}
|
|
3896
3916
|
},
|
|
3897
3917
|
"403": {
|
|
3898
|
-
"description": "
|
|
3918
|
+
"description": "`CONDITIONAL_PRICING_NOT_ENABLED`: the organization has not opted in to Conditional\nPricing. Without a `code`: the token names no organization this API can act for.\n",
|
|
3899
3919
|
"content": {
|
|
3900
3920
|
"application/json": {
|
|
3901
3921
|
"schema": {
|
|
3902
|
-
"$ref": "#/components/schemas/
|
|
3922
|
+
"$ref": "#/components/schemas/ConditionalPricingError"
|
|
3903
3923
|
}
|
|
3904
3924
|
}
|
|
3905
3925
|
}
|
|
@@ -4076,11 +4096,11 @@
|
|
|
4076
4096
|
}
|
|
4077
4097
|
},
|
|
4078
4098
|
"403": {
|
|
4079
|
-
"description": "
|
|
4099
|
+
"description": "`CONDITIONAL_PRICING_NOT_ENABLED`: the organization has not opted in to Conditional\nPricing. Without a `code`: the token names no organization this API can act for.\n",
|
|
4080
4100
|
"content": {
|
|
4081
4101
|
"application/json": {
|
|
4082
4102
|
"schema": {
|
|
4083
|
-
"$ref": "#/components/schemas/
|
|
4103
|
+
"$ref": "#/components/schemas/ConditionalPricingError"
|
|
4084
4104
|
}
|
|
4085
4105
|
}
|
|
4086
4106
|
}
|
|
@@ -4170,11 +4190,11 @@
|
|
|
4170
4190
|
}
|
|
4171
4191
|
},
|
|
4172
4192
|
"403": {
|
|
4173
|
-
"description": "
|
|
4193
|
+
"description": "`CONDITIONAL_PRICING_NOT_ENABLED`: the organization has not opted in to Conditional\nPricing. Without a `code`: the token names no organization this API can act for.\n",
|
|
4174
4194
|
"content": {
|
|
4175
4195
|
"application/json": {
|
|
4176
4196
|
"schema": {
|
|
4177
|
-
"$ref": "#/components/schemas/
|
|
4197
|
+
"$ref": "#/components/schemas/ConditionalPricingError"
|
|
4178
4198
|
}
|
|
4179
4199
|
}
|
|
4180
4200
|
}
|
|
@@ -4272,11 +4292,11 @@
|
|
|
4272
4292
|
}
|
|
4273
4293
|
},
|
|
4274
4294
|
"403": {
|
|
4275
|
-
"description": "
|
|
4295
|
+
"description": "`CONDITIONAL_PRICING_NOT_ENABLED`: the organization has not opted in to Conditional\nPricing. Without a `code`: the token names no organization this API can act for.\n",
|
|
4276
4296
|
"content": {
|
|
4277
4297
|
"application/json": {
|
|
4278
4298
|
"schema": {
|
|
4279
|
-
"$ref": "#/components/schemas/
|
|
4299
|
+
"$ref": "#/components/schemas/ConditionalPricingError"
|
|
4280
4300
|
}
|
|
4281
4301
|
}
|
|
4282
4302
|
}
|
|
@@ -4374,11 +4394,11 @@
|
|
|
4374
4394
|
}
|
|
4375
4395
|
},
|
|
4376
4396
|
"403": {
|
|
4377
|
-
"description": "
|
|
4397
|
+
"description": "`CONDITIONAL_PRICING_NOT_ENABLED`: the organization has not opted in to Conditional\nPricing. Without a `code`: the token names no organization this API can act for.\n",
|
|
4378
4398
|
"content": {
|
|
4379
4399
|
"application/json": {
|
|
4380
4400
|
"schema": {
|
|
4381
|
-
"$ref": "#/components/schemas/
|
|
4401
|
+
"$ref": "#/components/schemas/ConditionalPricingError"
|
|
4382
4402
|
}
|
|
4383
4403
|
}
|
|
4384
4404
|
}
|
|
@@ -4466,11 +4486,11 @@
|
|
|
4466
4486
|
}
|
|
4467
4487
|
},
|
|
4468
4488
|
"403": {
|
|
4469
|
-
"description": "
|
|
4489
|
+
"description": "`CONDITIONAL_PRICING_NOT_ENABLED`: the organization has not opted in to Conditional\nPricing. Without a `code`: the token names no organization this API can act for.\n",
|
|
4470
4490
|
"content": {
|
|
4471
4491
|
"application/json": {
|
|
4472
4492
|
"schema": {
|
|
4473
|
-
"$ref": "#/components/schemas/
|
|
4493
|
+
"$ref": "#/components/schemas/ConditionalPricingError"
|
|
4474
4494
|
}
|
|
4475
4495
|
}
|
|
4476
4496
|
}
|
|
@@ -4646,11 +4666,11 @@
|
|
|
4646
4666
|
}
|
|
4647
4667
|
},
|
|
4648
4668
|
"403": {
|
|
4649
|
-
"description": "
|
|
4669
|
+
"description": "`CONDITIONAL_PRICING_NOT_ENABLED`: the organization has not opted in to Conditional\nPricing. Without a `code`: the token names no organization this API can act for.\n",
|
|
4650
4670
|
"content": {
|
|
4651
4671
|
"application/json": {
|
|
4652
4672
|
"schema": {
|
|
4653
|
-
"$ref": "#/components/schemas/
|
|
4673
|
+
"$ref": "#/components/schemas/ConditionalPricingError"
|
|
4654
4674
|
}
|
|
4655
4675
|
}
|
|
4656
4676
|
}
|
|
@@ -4748,11 +4768,11 @@
|
|
|
4748
4768
|
}
|
|
4749
4769
|
},
|
|
4750
4770
|
"403": {
|
|
4751
|
-
"description": "
|
|
4771
|
+
"description": "`CONDITIONAL_PRICING_NOT_ENABLED`: the organization has not opted in to Conditional\nPricing. Without a `code`: the token names no organization this API can act for.\n",
|
|
4752
4772
|
"content": {
|
|
4753
4773
|
"application/json": {
|
|
4754
4774
|
"schema": {
|
|
4755
|
-
"$ref": "#/components/schemas/
|
|
4775
|
+
"$ref": "#/components/schemas/ConditionalPricingError"
|
|
4756
4776
|
}
|
|
4757
4777
|
}
|
|
4758
4778
|
}
|
|
@@ -4852,11 +4872,11 @@
|
|
|
4852
4872
|
}
|
|
4853
4873
|
},
|
|
4854
4874
|
"403": {
|
|
4855
|
-
"description": "
|
|
4875
|
+
"description": "`CONDITIONAL_PRICING_NOT_ENABLED`: the organization has not opted in to Conditional\nPricing. Without a `code`: the token names no organization this API can act for.\n",
|
|
4856
4876
|
"content": {
|
|
4857
4877
|
"application/json": {
|
|
4858
4878
|
"schema": {
|
|
4859
|
-
"$ref": "#/components/schemas/
|
|
4879
|
+
"$ref": "#/components/schemas/ConditionalPricingError"
|
|
4860
4880
|
}
|
|
4861
4881
|
}
|
|
4862
4882
|
}
|
|
@@ -4964,11 +4984,11 @@
|
|
|
4964
4984
|
}
|
|
4965
4985
|
},
|
|
4966
4986
|
"403": {
|
|
4967
|
-
"description": "
|
|
4987
|
+
"description": "`CONDITIONAL_PRICING_NOT_ENABLED`: the organization has not opted in to Conditional\nPricing. Without a `code`: the token names no organization this API can act for.\n",
|
|
4968
4988
|
"content": {
|
|
4969
4989
|
"application/json": {
|
|
4970
4990
|
"schema": {
|
|
4971
|
-
"$ref": "#/components/schemas/
|
|
4991
|
+
"$ref": "#/components/schemas/ConditionalPricingError"
|
|
4972
4992
|
}
|
|
4973
4993
|
}
|
|
4974
4994
|
}
|
|
@@ -5076,11 +5096,11 @@
|
|
|
5076
5096
|
}
|
|
5077
5097
|
},
|
|
5078
5098
|
"403": {
|
|
5079
|
-
"description": "
|
|
5099
|
+
"description": "`CONDITIONAL_PRICING_NOT_ENABLED`: the organization has not opted in to Conditional\nPricing. Without a `code`: the token names no organization this API can act for.\n",
|
|
5080
5100
|
"content": {
|
|
5081
5101
|
"application/json": {
|
|
5082
5102
|
"schema": {
|
|
5083
|
-
"$ref": "#/components/schemas/
|
|
5103
|
+
"$ref": "#/components/schemas/ConditionalPricingError"
|
|
5084
5104
|
}
|
|
5085
5105
|
}
|
|
5086
5106
|
}
|
|
@@ -5189,11 +5209,11 @@
|
|
|
5189
5209
|
}
|
|
5190
5210
|
},
|
|
5191
5211
|
"403": {
|
|
5192
|
-
"description": "
|
|
5212
|
+
"description": "`CONDITIONAL_PRICING_NOT_ENABLED`: the organization has not opted in to Conditional\nPricing. Without a `code`: the token names no organization this API can act for.\n",
|
|
5193
5213
|
"content": {
|
|
5194
5214
|
"application/json": {
|
|
5195
5215
|
"schema": {
|
|
5196
|
-
"$ref": "#/components/schemas/
|
|
5216
|
+
"$ref": "#/components/schemas/ConditionalPricingError"
|
|
5197
5217
|
}
|
|
5198
5218
|
}
|
|
5199
5219
|
}
|
|
@@ -5424,11 +5444,11 @@
|
|
|
5424
5444
|
}
|
|
5425
5445
|
},
|
|
5426
5446
|
"403": {
|
|
5427
|
-
"description": "
|
|
5447
|
+
"description": "`CONDITIONAL_PRICING_NOT_ENABLED`: the organization has not opted in to Conditional\nPricing. Without a `code`: the token names no organization this API can act for.\n",
|
|
5428
5448
|
"content": {
|
|
5429
5449
|
"application/json": {
|
|
5430
5450
|
"schema": {
|
|
5431
|
-
"$ref": "#/components/schemas/
|
|
5451
|
+
"$ref": "#/components/schemas/ConditionalPricingError"
|
|
5432
5452
|
}
|
|
5433
5453
|
}
|
|
5434
5454
|
}
|
|
@@ -5442,6 +5462,16 @@
|
|
|
5442
5462
|
}
|
|
5443
5463
|
}
|
|
5444
5464
|
}
|
|
5465
|
+
},
|
|
5466
|
+
"409": {
|
|
5467
|
+
"description": "`CONDITIONAL_PRICING_NOT_READY`: the organization's setup has not finished, so no item is\nwritten. An individual item's failure is on its own result entry.\n",
|
|
5468
|
+
"content": {
|
|
5469
|
+
"application/json": {
|
|
5470
|
+
"schema": {
|
|
5471
|
+
"$ref": "#/components/schemas/ConditionalPricingError"
|
|
5472
|
+
}
|
|
5473
|
+
}
|
|
5474
|
+
}
|
|
5445
5475
|
}
|
|
5446
5476
|
}
|
|
5447
5477
|
}
|
|
@@ -5577,11 +5607,11 @@
|
|
|
5577
5607
|
}
|
|
5578
5608
|
},
|
|
5579
5609
|
"403": {
|
|
5580
|
-
"description": "
|
|
5610
|
+
"description": "`CONDITIONAL_PRICING_NOT_ENABLED`: the organization has not opted in to Conditional\nPricing. Without a `code`: the token names no organization this API can act for.\n",
|
|
5581
5611
|
"content": {
|
|
5582
5612
|
"application/json": {
|
|
5583
5613
|
"schema": {
|
|
5584
|
-
"$ref": "#/components/schemas/
|
|
5614
|
+
"$ref": "#/components/schemas/ConditionalPricingError"
|
|
5585
5615
|
}
|
|
5586
5616
|
}
|
|
5587
5617
|
}
|
|
@@ -5763,9 +5793,26 @@
|
|
|
5763
5793
|
}
|
|
5764
5794
|
}
|
|
5765
5795
|
},
|
|
5796
|
+
"ConditionalPricingOptIn": {
|
|
5797
|
+
"type": "object",
|
|
5798
|
+
"additionalProperties": false,
|
|
5799
|
+
"required": [
|
|
5800
|
+
"status"
|
|
5801
|
+
],
|
|
5802
|
+
"properties": {
|
|
5803
|
+
"status": {
|
|
5804
|
+
"type": "string",
|
|
5805
|
+
"description": "- `PROVISIONING`: the organization's search collection is still being set up, and\n creating a variant is refused with `CONDITIONAL_PRICING_NOT_READY`.\n- `ACTIVE`: setup has finished.\n",
|
|
5806
|
+
"enum": [
|
|
5807
|
+
"PROVISIONING",
|
|
5808
|
+
"ACTIVE"
|
|
5809
|
+
]
|
|
5810
|
+
}
|
|
5811
|
+
}
|
|
5812
|
+
},
|
|
5766
5813
|
"ConditionalPricingErrorCode": {
|
|
5767
5814
|
"type": "string",
|
|
5768
|
-
"description": "Machine-readable failure mode of a conditional-pricing operation, so a client can branch on\nthe kind of failure instead of parsing the message. A `400` is about the request; a `409` is\nabout what is already stored. Refusals raised by request validation carry no `code` at all.\n\n- `SCHEMA_NOT_FOUND` (404): no conditional entity type by that slug\n- `ENTITY_NOT_FOUND` (404): the schema holds no entity with that id\n- `ENTITY_TYPE_MISMATCH` (400): that id belongs to an entity of another type than the slug named\n- `ENTITY_NOT_CONDITIONAL` (409): the entity is of the right type but was not created as a conditional one\n- `VARIANT_NOT_FOUND` (404): the entity has no such variant\n- `VERSION_NOT_FOUND` (404): the variant has no version at that `valid_from`\n- `NO_MATCHES` (404): nothing applied to the context and the entity has no `default` variant\n- `NO_ACTIVE_VERSION` (404): the variant has no version in effect at the instant asked about\n- `AMBIGUOUS_RESOLUTION` (409): several variants match the given context while a single result was requested\n- `TUPLE_CONFLICT` (409): the condition tuple is already claimed by another variant\n- `VERSION_CONFLICT` (409): a version already exists at the given `valid_from` on that variant\n- `CONDITION_UNDEFINED` (400): the request names a condition the entity's schema does not define\n- `VARIANT_PIN_UNDECLARED` (409): a variant a resolve would compose pins a condition the entity's schema no longer declares\n- `OPERATOR_UNSUPPORTED` (400): the requested predicate, or a sort, is not applicable to the condition's type\n- `CONTEXT_FORMAT_INVALID` (400): a resolve context or listing filter value is malformed for its condition type\n- `CONDITION_VALUE_INVALID` (400): a variant write pins a `select` value absent from the condition's declared `options`\n- `CONDITION_UNCONFIGURED` (409): a variant write pins a `select` condition whose `options` are absent or empty\n- `TOO_MANY_MATCHES` (400): a multi-match resolve exceeded its result cap\n- `WRITE_CONFLICT` (409): transient write contention, retryable unlike `TUPLE_CONFLICT`\n- `OFFSET_WINDOW_EXCEEDED` (400): a listing's `from` plus `size` reaches past the offset window the search index allows\n- `CURSOR_INVALID` (400): a paging cursor cannot be read, or does not belong to the read it was sent with\n- `VARIANT_LIMIT_REACHED` (409): the entity already holds every variant it may hold\n- `PIN_FORMAT_INVALID` (400): a variant pins a value malformed for its condition's type\n- `VARIANT_UNPINNED` (400): a variant write pins no condition and is not marked `default`, or a batch delete item addresses no variant\n- `LAST_VERSION_UNDELETABLE` (409): the delete would leave the variant with no version at all\n- `CONDITION_UNREADABLE` (409): the entity's schema declares a condition in a way this deploy cannot read\n- `SORT_INVALID` (400): a listing's `sort` is not `conditions.<name>:asc` or `conditions.<name>:desc`\n- `DEFAULT_MARKER_RESERVED` (400): a variant write's pins, or a resolve context, address the fallback marker — `default` or `_default`\n- `DEFAULT_VARIANT_PINS_CONDITIONS` (400): a variant marked `default` also pins real conditions\n- `VALID_FROM_IMMUTABLE` (400): a version write asks for a different `valid_from` than the version its own address names\n- `VARIANT_CONDITIONS_IMMUTABLE` (409): a version write carries a condition tuple other than the one its variant was created with\n- `IDENTIFIER_INVALID` (400): an id in the request cannot be used as a storage key — empty, carrying an unsupported character, or longer than 128 characters\n- `VALID_FROM_INVALID` (400): a `valid_from` is not one of the timestamp forms a version timeline can be sorted by\n- `VALUE_UNSTORABLE` (400): a write carries a value the store cannot hold, such as a non-finite number or one outside the table's numeric range\n",
|
|
5815
|
+
"description": "Machine-readable failure mode of a conditional-pricing operation, so a client can branch on\nthe kind of failure instead of parsing the message. A `400` is about the request; a `409` is\nabout what is already stored. Refusals raised by request validation carry no `code` at all.\n\n- `SCHEMA_NOT_FOUND` (404): no conditional entity type by that slug\n- `ENTITY_NOT_FOUND` (404): the schema holds no entity with that id\n- `ENTITY_TYPE_MISMATCH` (400): that id belongs to an entity of another type than the slug named\n- `ENTITY_NOT_CONDITIONAL` (409): the entity is of the right type but was not created as a conditional one\n- `VARIANT_NOT_FOUND` (404): the entity has no such variant\n- `VERSION_NOT_FOUND` (404): the variant has no version at that `valid_from`\n- `NO_MATCHES` (404): nothing applied to the context and the entity has no `default` variant\n- `NO_ACTIVE_VERSION` (404): the variant has no version in effect at the instant asked about\n- `AMBIGUOUS_RESOLUTION` (409): several variants match the given context while a single result was requested\n- `TUPLE_CONFLICT` (409): the condition tuple is already claimed by another variant\n- `VERSION_CONFLICT` (409): a version already exists at the given `valid_from` on that variant\n- `CONDITION_UNDEFINED` (400): the request names a condition the entity's schema does not define\n- `VARIANT_PIN_UNDECLARED` (409): a variant a resolve would compose pins a condition the entity's schema no longer declares\n- `OPERATOR_UNSUPPORTED` (400): the requested predicate, or a sort, is not applicable to the condition's type\n- `CONTEXT_FORMAT_INVALID` (400): a resolve context or listing filter value is malformed for its condition type\n- `CONDITION_VALUE_INVALID` (400): a variant write pins a `select` value absent from the condition's declared `options`\n- `CONDITION_UNCONFIGURED` (409): a variant write pins a `select` condition whose `options` are absent or empty\n- `TOO_MANY_MATCHES` (400): a multi-match resolve exceeded its result cap\n- `WRITE_CONFLICT` (409): transient write contention, retryable unlike `TUPLE_CONFLICT`\n- `OFFSET_WINDOW_EXCEEDED` (400): a listing's `from` plus `size` reaches past the offset window the search index allows\n- `CURSOR_INVALID` (400): a paging cursor cannot be read, or does not belong to the read it was sent with\n- `VARIANT_LIMIT_REACHED` (409): the entity already holds every variant it may hold\n- `PIN_FORMAT_INVALID` (400): a variant pins a value malformed for its condition's type\n- `VARIANT_UNPINNED` (400): a variant write pins no condition and is not marked `default`, or a batch delete item addresses no variant\n- `LAST_VERSION_UNDELETABLE` (409): the delete would leave the variant with no version at all\n- `CONDITION_UNREADABLE` (409): the entity's schema declares a condition in a way this deploy cannot read\n- `SORT_INVALID` (400): a listing's `sort` is not `conditions.<name>:asc` or `conditions.<name>:desc`\n- `DEFAULT_MARKER_RESERVED` (400): a variant write's pins, or a resolve context, address the fallback marker — `default` or `_default`\n- `DEFAULT_VARIANT_PINS_CONDITIONS` (400): a variant marked `default` also pins real conditions\n- `VALID_FROM_IMMUTABLE` (400): a version write asks for a different `valid_from` than the version its own address names\n- `VARIANT_CONDITIONS_IMMUTABLE` (409): a version write carries a condition tuple other than the one its variant was created with\n- `IDENTIFIER_INVALID` (400): an id in the request cannot be used as a storage key — empty, carrying an unsupported character, or longer than 128 characters\n- `VALID_FROM_INVALID` (400): a `valid_from` is not one of the timestamp forms a version timeline can be sorted by\n- `VALUE_UNSTORABLE` (400): a write carries a value the store cannot hold, such as a non-finite number or one outside the table's numeric range\n- `CONDITIONAL_PRICING_NOT_ENABLED` (403): the organization has not opted in to Conditional Pricing\n- `CONDITIONAL_PRICING_NOT_READY` (409): the organization opted in minutes ago and a variant cannot be created until its setup finishes\n",
|
|
5769
5816
|
"enum": [
|
|
5770
5817
|
"SCHEMA_NOT_FOUND",
|
|
5771
5818
|
"ENTITY_NOT_FOUND",
|
|
@@ -5800,7 +5847,9 @@
|
|
|
5800
5847
|
"VARIANT_CONDITIONS_IMMUTABLE",
|
|
5801
5848
|
"IDENTIFIER_INVALID",
|
|
5802
5849
|
"VALID_FROM_INVALID",
|
|
5803
|
-
"VALUE_UNSTORABLE"
|
|
5850
|
+
"VALUE_UNSTORABLE",
|
|
5851
|
+
"CONDITIONAL_PRICING_NOT_ENABLED",
|
|
5852
|
+
"CONDITIONAL_PRICING_NOT_READY"
|
|
5804
5853
|
]
|
|
5805
5854
|
},
|
|
5806
5855
|
"ResolveConditionalEntityRequest": {
|
|
@@ -6229,6 +6278,43 @@
|
|
|
6229
6278
|
}
|
|
6230
6279
|
}
|
|
6231
6280
|
}
|
|
6281
|
+
},
|
|
6282
|
+
{
|
|
6283
|
+
"type": "object",
|
|
6284
|
+
"additionalProperties": false,
|
|
6285
|
+
"description": "The variant was stored, and its versions resolve once it is found, but its index entry was\nnot written. `:resolve`, `variants:list` and `variants:tree` do not find it until it is\nrepaired, within about a minute and a half. Inside that time a resolve its pins would\nmatch returns the entity's default variant. Retrying the write does not help, since it\nappends a version and does not repair anything.\n\nRaised by a write that creates a variant, when the index write failed.\n",
|
|
6286
|
+
"required": [
|
|
6287
|
+
"code",
|
|
6288
|
+
"message",
|
|
6289
|
+
"details"
|
|
6290
|
+
],
|
|
6291
|
+
"properties": {
|
|
6292
|
+
"code": {
|
|
6293
|
+
"type": "string",
|
|
6294
|
+
"enum": [
|
|
6295
|
+
"VARIANT_NOT_INDEXED"
|
|
6296
|
+
]
|
|
6297
|
+
},
|
|
6298
|
+
"message": {
|
|
6299
|
+
"type": "string"
|
|
6300
|
+
},
|
|
6301
|
+
"details": {
|
|
6302
|
+
"type": "object",
|
|
6303
|
+
"additionalProperties": false,
|
|
6304
|
+
"required": [
|
|
6305
|
+
"reason"
|
|
6306
|
+
],
|
|
6307
|
+
"properties": {
|
|
6308
|
+
"reason": {
|
|
6309
|
+
"type": "string",
|
|
6310
|
+
"description": "- `INDEX_WRITE_FAILED`: the index write was attempted and did not succeed.\n",
|
|
6311
|
+
"enum": [
|
|
6312
|
+
"INDEX_WRITE_FAILED"
|
|
6313
|
+
]
|
|
6314
|
+
}
|
|
6315
|
+
}
|
|
6316
|
+
}
|
|
6317
|
+
}
|
|
6232
6318
|
}
|
|
6233
6319
|
]
|
|
6234
6320
|
},
|
|
@@ -8483,7 +8569,49 @@
|
|
|
8483
8569
|
},
|
|
8484
8570
|
{
|
|
8485
8571
|
"type": "object",
|
|
8486
|
-
"description": "
|
|
8572
|
+
"description": "The organization has not opted in to Conditional Pricing. Opting in is done once, by\nepilot, from the organization's settings; nothing in this API enables it.\n",
|
|
8573
|
+
"required": [
|
|
8574
|
+
"code",
|
|
8575
|
+
"details"
|
|
8576
|
+
],
|
|
8577
|
+
"properties": {
|
|
8578
|
+
"code": {
|
|
8579
|
+
"type": "string",
|
|
8580
|
+
"enum": [
|
|
8581
|
+
"CONDITIONAL_PRICING_NOT_ENABLED"
|
|
8582
|
+
]
|
|
8583
|
+
},
|
|
8584
|
+
"details": {
|
|
8585
|
+
"type": "object",
|
|
8586
|
+
"additionalProperties": false,
|
|
8587
|
+
"properties": {}
|
|
8588
|
+
}
|
|
8589
|
+
}
|
|
8590
|
+
},
|
|
8591
|
+
{
|
|
8592
|
+
"type": "object",
|
|
8593
|
+
"description": "The organization opted in, and its setup, which takes minutes, has not finished. No\nvariant can be created until it has; try again in a few minutes.\n",
|
|
8594
|
+
"required": [
|
|
8595
|
+
"code",
|
|
8596
|
+
"details"
|
|
8597
|
+
],
|
|
8598
|
+
"properties": {
|
|
8599
|
+
"code": {
|
|
8600
|
+
"type": "string",
|
|
8601
|
+
"enum": [
|
|
8602
|
+
"CONDITIONAL_PRICING_NOT_READY"
|
|
8603
|
+
]
|
|
8604
|
+
},
|
|
8605
|
+
"details": {
|
|
8606
|
+
"type": "object",
|
|
8607
|
+
"additionalProperties": false,
|
|
8608
|
+
"properties": {}
|
|
8609
|
+
}
|
|
8610
|
+
}
|
|
8611
|
+
},
|
|
8612
|
+
{
|
|
8613
|
+
"type": "object",
|
|
8614
|
+
"description": "A refusal that carries no code: one the request validator raises before any handler\nruns, or a token that names no organization this API can act for. The message says\nwhat to fix, and no code is sent — which is how a client tells this member from the\ncoded ones.\n",
|
|
8487
8615
|
"additionalProperties": false,
|
|
8488
8616
|
"required": [
|
|
8489
8617
|
"message"
|