Skip to content

Commit 237afbc

Browse files
## Typescript SDK Changes: (#653)
* `codatlending.companies.list()`: `response.results.[].dataConnections.[].connectionInfo.{}` **Changed** **Breaking** ⚠️ * `codatlending.companies.create()`: `response.dataconnections.[].connectionInfo.{}` **Changed** **Breaking** ⚠️ * `codatlending.companies.replace()`: `response.dataconnections.[].connectionInfo.{}` **Changed** **Breaking** ⚠️ * `codatlending.companies.update()`: `response.dataconnections.[].connectionInfo.{}` **Changed** **Breaking** ⚠️ * `codatlending.companies.get()`: `response.dataconnections.[].connectionInfo.{}` **Changed** **Breaking** ⚠️ * `codatlending.connections.list()`: `response.results.[].connectionInfo.{}` **Changed** **Breaking** ⚠️ * `codatlending.connections.create()`: `response.connectioninfo.{}` **Changed** **Breaking** ⚠️ * `codatlending.connections.get()`: `response.connectioninfo.{}` **Changed** **Breaking** ⚠️ * `codatlending.connections.unlink()`: `response.connectioninfo.{}` **Changed** **Breaking** ⚠️ * `codatlending.manageData.refresh.allDataTypes()`: `error.status[400]` **Added** * `codatlending.manageData.refresh.dataType()`: `error.status[400]` **Added** * `codatlending.transactions.journalEntries.list()`: `response.results.[].journalLines.[]` **Changed** * `codatlending.transactions.journalEntries.get()`: `response.journallines.[]` **Changed** * `codatlending.accountsPayable.bills.list()`: `response.results.[].lineItems.[]` **Changed** * `codatlending.accountsPayable.bills.get()`: `response.lineitems.[]` **Changed** * `codatlending.loanWriteback.sourceAccounts.createMapping()`: * `request.bankFeedBankAccountMapping.feedStartDate` **Added** Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent a1ff541 commit 237afbc

1,009 files changed

Lines changed: 16806 additions & 16745 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.683.1
1+
speakeasyVersion: 1.692.0
22
sources:
33
bank-feeds-source:
44
sourceNamespace: bank-feeds-source
@@ -10,11 +10,11 @@ sources:
1010
- 3.0.0
1111
lending-source:
1212
sourceNamespace: lending-source
13-
sourceRevisionDigest: sha256:3b9068eabe6cca1766c934c03a5e0bc8f03d6b4d56a510564e8eb995315047ca
14-
sourceBlobDigest: sha256:fad703aad6a553fae31d31e115afd2d96fe2e86ddcc4f86454eb37e91f4c6b68
13+
sourceRevisionDigest: sha256:e0aed482c0ce3a529744105147d2857d2fcd03a79bd8e8d82b07892cffe0bb9e
14+
sourceBlobDigest: sha256:d1d88be3211e4012cc3f3beab27e7d09c3a7a20b5c5eccc31eda1bab664f033d
1515
tags:
1616
- latest
17-
- speakeasy-sdk-regen-1742384657
17+
- speakeasy-sdk-regen-1769004478
1818
- 3.0.0
1919
platform-source:
2020
sourceNamespace: platform-source
@@ -74,10 +74,10 @@ targets:
7474
lending-library:
7575
source: lending-source
7676
sourceNamespace: lending-source
77-
sourceRevisionDigest: sha256:3b9068eabe6cca1766c934c03a5e0bc8f03d6b4d56a510564e8eb995315047ca
78-
sourceBlobDigest: sha256:fad703aad6a553fae31d31e115afd2d96fe2e86ddcc4f86454eb37e91f4c6b68
77+
sourceRevisionDigest: sha256:e0aed482c0ce3a529744105147d2857d2fcd03a79bd8e8d82b07892cffe0bb9e
78+
sourceBlobDigest: sha256:d1d88be3211e4012cc3f3beab27e7d09c3a7a20b5c5eccc31eda1bab664f033d
7979
codeSamplesNamespace: lending-source-typescript-code-samples
80-
codeSamplesRevisionDigest: sha256:7cfe33cc1147abc4479f10e9e22738208c6d34ebe08c9b27cb297ee53d8d03a4
80+
codeSamplesRevisionDigest: sha256:c174353627bfd12a71d1d59102549d2319d3897767f7290a69f6e4a940262527
8181
platform-library:
8282
source: platform-source
8383
sourceNamespace: platform-source

lending/.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/examples/node_modules
2+
.DS_Store
3+
**/.speakeasy/temp/
4+
**/.speakeasy/logs/
5+
.DS_Store
6+
.env
7+
.env.local
8+
.env.*.local
19
/mcp-server
210
/bin
311
/.eslintcache

lending/.speakeasy/gen.lock

Lines changed: 8676 additions & 2066 deletions
Large diffs are not rendered by default.

lending/.speakeasy/gen.yaml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,57 @@ generation:
44
maintainOpenAPIOrder: true
55
usageSnippets:
66
optionalPropertyRendering: withExample
7+
sdkInitStyle: constructor
78
useClassNamesForArrayFields: true
89
fixes:
910
nameResolutionDec2023: true
1011
nameResolutionFeb2025: false
1112
parameterOrderingFeb2024: true
1213
requestResponseComponentNamesFeb2024: true
1314
securityFeb2025: false
15+
sharedErrorComponentsApr2025: false
16+
sharedNestedComponentsJan2026: false
1417
auth:
1518
oAuth2ClientCredentialsEnabled: false
1619
oAuth2PasswordEnabled: false
20+
hoistGlobalSecurity: true
21+
schemas:
22+
allOfMergeStrategy: shallowMerge
23+
requestBodyFieldName: ""
24+
persistentEdits: {}
25+
tests:
26+
generateTests: true
27+
generateNewTests: false
28+
skipResponseBodyAssertions: false
1729
telemetryEnabled: true
1830
typescript:
19-
version: 7.3.0
31+
version: 7.4.0
32+
acceptHeaderEnum: true
2033
additionalDependencies:
2134
dependencies: {}
2235
devDependencies: {}
2336
peerDependencies: {}
2437
additionalPackageJSON: {}
38+
additionalScripts: {}
39+
alwaysIncludeInboundAndOutbound: false
2540
author: Codat
41+
baseErrorName: CodatLendingError
2642
clientServerStatusCodesAsErrors: true
43+
constFieldsAlwaysOptional: false
2744
defaultErrorName: SDKError
2845
description: Make credit decisions backed by enhanced financials, metrics, reports, and data integrity features.
2946
enableCustomCodeRegions: false
3047
enableMCPServer: true
3148
enableReactQuery: false
3249
enumFormat: union
50+
exportZodModelNamespace: false
51+
flatAdditionalProperties: false
3352
flattenGlobalSecurity: true
3453
flatteningOrder: body-first
54+
formStringArrayEncodeMode: encoded-string
55+
forwardCompatibleEnumsByDefault: false
56+
forwardCompatibleUnionsByDefault: "false"
57+
generateExamples: true
3558
imports:
3659
option: openapi
3760
paths:
@@ -40,13 +63,23 @@ typescript:
4063
operations: sdk/models/operations
4164
shared: sdk/models/shared
4265
webhooks: sdk/models/webhooks
66+
inferUnionDiscriminators: true
4367
inputModelSuffix: input
4468
jsonpath: legacy
69+
laxMode: strict
4570
maxMethodParams: 0
4671
methodArguments: infer-optional-args
72+
modelPropertyCasing: camel
4773
moduleFormat: commonjs
74+
multipartArrayFormat: legacy
4875
outputModelSuffix: output
4976
packageName: '@codat/lending'
77+
preApplyUnionDiscriminators: true
78+
preserveModelFieldNames: false
5079
responseFormat: flat
80+
sseFlatResponse: false
5181
templateVersion: v2
82+
unionStrategy: left-to-right
83+
usageSDKInitImports: []
5284
useIndexModules: true
85+
zodVersion: v3

lending/FUNCTIONS.md

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ specific category of applications.
2121
```typescript
2222
import { CodatLendingCore } from "@codat/lending/core.js";
2323
import { companiesList } from "@codat/lending/funcs/companiesList.js";
24-
import { SDKValidationError } from "@codat/lending/sdk/models/errors/sdkvalidationerror.js";
2524

2625
// Use `CodatLendingCore` for best tree-shaking performance.
2726
// You can create one instance of it to use across an application.
@@ -35,28 +34,12 @@ async function run() {
3534
orderBy: "-modifiedDate",
3635
tags: "region=uk && team=invoice-finance",
3736
});
38-
39-
switch (true) {
40-
case res.ok:
41-
// The success case will be handled outside of the switch block
42-
break;
43-
case res.error instanceof SDKValidationError:
44-
// Pretty-print validation errors.
45-
return console.log(res.error.pretty());
46-
case res.error instanceof Error:
47-
return console.log(res.error);
48-
default:
49-
// TypeScript's type checking will fail on the following line if the above
50-
// cases were not exhaustive.
51-
res.error satisfies never;
52-
throw new Error("Assertion failed: expected error checks to be exhaustive: " + res.error);
37+
if (res.ok) {
38+
const { value: result } = res;
39+
console.log(result);
40+
} else {
41+
console.log("companiesList failed:", res.error);
5342
}
54-
55-
56-
const { value: result } = res;
57-
58-
// Handle the result
59-
console.log(result);
6043
}
6144

6245
run();

0 commit comments

Comments
 (0)