@fern-api/fdr-sdk 1.2.158-2a3de2b6ef → 1.2.158-3ca6ed3799
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/js/api-definition/index.js +30 -0
- package/dist/js/api-definition/index.js.map +1 -1
- package/dist/js/api-definition/index.mjs +29 -0
- package/dist/js/api-definition/index.mjs.map +1 -1
- package/dist/js/converters/index.js +29 -0
- package/dist/js/converters/index.js.map +1 -1
- package/dist/js/converters/index.mjs +29 -0
- package/dist/js/converters/index.mjs.map +1 -1
- package/dist/js/index.js +29 -0
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +29 -0
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/navigation/index.js +29 -0
- package/dist/js/navigation/index.js.map +1 -1
- package/dist/js/navigation/index.mjs +29 -0
- package/dist/js/navigation/index.mjs.map +1 -1
- package/dist/js/orpc-client.js +8 -0
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +7 -0
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/types/api-definition/__test__/prune-endpoint-example.test.d.ts +2 -0
- package/dist/types/api-definition/__test__/prune-endpoint-example.test.d.ts.map +1 -0
- package/dist/types/api-definition/index.d.ts +1 -0
- package/dist/types/api-definition/index.d.ts.map +1 -1
- package/dist/types/api-definition/prune-endpoint-example.d.ts +12 -0
- package/dist/types/api-definition/prune-endpoint-example.d.ts.map +1 -0
- package/dist/types/orpc-client/docs-ledger/ledger-manifest.d.ts +28594 -11685
- package/dist/types/orpc-client/docs-ledger/ledger-manifest.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -7532,6 +7532,7 @@ __export(api_definition_exports, {
|
|
|
7532
7532
|
joiner: () => joiner,
|
|
7533
7533
|
preprocessQueryParameters: () => preprocessQueryParameters,
|
|
7534
7534
|
prune: () => prune,
|
|
7535
|
+
pruneEndpointForExampleSnippet: () => pruneEndpointForExampleSnippet,
|
|
7535
7536
|
pruneEndpointToSchemaSelector: () => pruneEndpointToSchemaSelector,
|
|
7536
7537
|
replaceMultipartTemplateStrings: () => replaceMultipartTemplateStrings,
|
|
7537
7538
|
replaceTemplateStrings: () => replaceTemplateStrings,
|
|
@@ -10635,6 +10636,34 @@ var ApiDefinitionV1ToLatest = class _ApiDefinitionV1ToLatest {
|
|
|
10635
10636
|
);
|
|
10636
10637
|
};
|
|
10637
10638
|
|
|
10639
|
+
// src/api-definition/prune-endpoint-example.ts
|
|
10640
|
+
function pruneEndpointForExampleSnippet(endpoint, exampleName) {
|
|
10641
|
+
const matching = exampleName != null ? endpoint.examples?.filter((example) => example.name === exampleName) : void 0;
|
|
10642
|
+
const examples = matching != null && matching.length > 0 ? matching : endpoint.examples;
|
|
10643
|
+
return {
|
|
10644
|
+
id: endpoint.id,
|
|
10645
|
+
namespace: endpoint.namespace,
|
|
10646
|
+
method: endpoint.method,
|
|
10647
|
+
path: endpoint.path,
|
|
10648
|
+
displayName: endpoint.displayName,
|
|
10649
|
+
operationId: endpoint.operationId,
|
|
10650
|
+
availability: endpoint.availability,
|
|
10651
|
+
auth: endpoint.auth,
|
|
10652
|
+
multiAuth: endpoint.multiAuth,
|
|
10653
|
+
defaultEnvironment: endpoint.defaultEnvironment,
|
|
10654
|
+
environments: endpoint.environments,
|
|
10655
|
+
errors: endpoint.errors?.map((error) => ({
|
|
10656
|
+
name: error.name,
|
|
10657
|
+
statusCode: error.statusCode,
|
|
10658
|
+
isWildcard: error.isWildcard,
|
|
10659
|
+
examples: error.examples
|
|
10660
|
+
})),
|
|
10661
|
+
examples,
|
|
10662
|
+
protocol: endpoint.protocol,
|
|
10663
|
+
includeInApiExplorer: endpoint.includeInApiExplorer
|
|
10664
|
+
};
|
|
10665
|
+
}
|
|
10666
|
+
|
|
10638
10667
|
// src/api-definition/prune-endpoint-schema.ts
|
|
10639
10668
|
var ALL_SECTIONS = ["request.path", "request.query", "request.body", "response.body"];
|
|
10640
10669
|
function getSchemaSectionsForSelector(selector) {
|