Skip to content

Commit 9b64355

Browse files
## Typescript SDK Changes Detected: (#651)
* `codatsyncpayables.connections.unlink()`: `response` **Changed** **Breaking** ⚠️ * `codatsyncpayables.companies.list()`: * `request.tags` **Added** * `response.results.[]` **Changed** **Breaking** ⚠️ * `codatsyncpayables.companies.create()`: * `request` **Changed** **Breaking** ⚠️ * `response` **Changed** **Breaking** ⚠️ * `codatsyncpayables.companies.update()`: * `request` **Changed** **Breaking** ⚠️ * `response` **Changed** **Breaking** ⚠️ * `codatsyncpayables.companies.get()`: `response` **Changed** **Breaking** ⚠️ * `codatsyncpayables.connections.list()`: `response.results.[]` **Changed** **Breaking** ⚠️ * `codatsyncpayables.connections.create()`: `response` **Changed** **Breaking** ⚠️ * `codatsyncpayables.connections.get()`: `response` **Changed** **Breaking** ⚠️ * `codatsyncpayables.manageData.refreshAllDataTypes()`: `error.status[400]` **Added** * `codatsyncpayables.manageData.get()`: `response.accounttransactions.lastSuccessfulSync` **Changed** * `codatsyncpayables.companies.replace()`: **Added** * `codatsyncpayables.manageData.refreshDataType()`: `error.status[400]` **Added** * `codatsyncpayables.bills.list()`: `response.results.[].lineItems.[]` **Changed** * `codatsyncpayables.bills.get()`: `response.lineitems.[]` **Changed** * `codatsyncpayables.bills.create()`: * `request.bill.lineItems.[]` **Changed** * `response.data.lineItems.[]` **Changed** * `codatsyncpayables.bills.update()`: * `request.bill.lineItems.[]` **Changed** * `response.data.lineItems.[]` **Changed** * `codatsyncpayables.journalEntries.create()`: * `request.journalEntry.journalLines.[]` **Changed** * `response.data.journalLines.[]` **Changed** Co-authored-by: speakeasybot <[email protected]>
1 parent e15a0a4 commit 9b64355

File tree

484 files changed

+17347
-19140
lines changed

Some content is hidden

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

484 files changed

+17347
-19140
lines changed

.speakeasy/workflow.lock

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,12 @@ sources:
5050
- 3.0.0
5151
sync-for-payables-version-1-source:
5252
sourceNamespace: sync-for-payables-version-1-source
53-
sourceRevisionDigest: sha256:d91d7da27f07044c21e155a8787ef998eab1eb641136347c1287053f8e8087fb
54-
sourceBlobDigest: sha256:e1fb1fe0af40cf137b8b320fd75e913c83e54e0a2bb2e80a5af69e0bce409e71
53+
sourceRevisionDigest: sha256:5916f9b0108e0488ab284e72701e3f1235300ee6ce7d5fbffcf88a69b87f7334
54+
sourceBlobDigest: sha256:ca915a0634a7293bb811c27ed34dc9c4d2ea6a65be70c4eaaa58a4875f3124a7
5555
tags:
5656
- latest
57-
- main
57+
- speakeasy-sdk-regen-1767895699
58+
- 3.0.0
5859
sync-for-payroll-source:
5960
sourceNamespace: sync-for-payroll-source
6061
sourceRevisionDigest: sha256:95fbbd9d479c192baabe63b6b95494bf55876fb9007df3657fa51660a8c73431
@@ -108,8 +109,10 @@ targets:
108109
sync-for-payables-version-1-library:
109110
source: sync-for-payables-version-1-source
110111
sourceNamespace: sync-for-payables-version-1-source
111-
sourceRevisionDigest: sha256:d91d7da27f07044c21e155a8787ef998eab1eb641136347c1287053f8e8087fb
112-
sourceBlobDigest: sha256:e1fb1fe0af40cf137b8b320fd75e913c83e54e0a2bb2e80a5af69e0bce409e71
112+
sourceRevisionDigest: sha256:5916f9b0108e0488ab284e72701e3f1235300ee6ce7d5fbffcf88a69b87f7334
113+
sourceBlobDigest: sha256:ca915a0634a7293bb811c27ed34dc9c4d2ea6a65be70c4eaaa58a4875f3124a7
114+
codeSamplesNamespace: sync-for-payables-version-1-source-typescript-code-samples
115+
codeSamplesRevisionDigest: sha256:5bafba7b409d8dcadc1b71b60d989fa7b182d3e921c682e2fc54df19cc6cc21d
113116
sync-for-payroll-library:
114117
source: sync-for-payroll-source
115118
sourceNamespace: sync-for-payroll-source

previous-versions/sync-for-payables-version-1/.eslintrc.cjs

Lines changed: 0 additions & 28 deletions
This file was deleted.

previous-versions/sync-for-payables-version-1/.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
/examples/node_modules
2+
/react-query
3+
/mcp-server
4+
/bin
5+
/.eslintcache
6+
.DS_Store
7+
**/.speakeasy/temp/
8+
**/.speakeasy/logs/
9+
.DS_Store
10+
/.speakeasy/reports
11+
.env
12+
.env.local
13+
.env.*.local
114
/models
215
/sdk/models/errors
316
/sdk/types

previous-versions/sync-for-payables-version-1/.npmignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
**/*
2+
!/FUNCTIONS.md
3+
!/RUNTIMES.md
4+
!/REACT_QUERY.md
25
!/**/*.ts
36
!/**/*.js
7+
!/**/*.mjs
8+
!/**/*.json
49
!/**/*.map
510

6-
/.eslintrc.js
11+
/eslint.config.mjs
712
/cjs
813
/.tshy
914
/.tshy-*

previous-versions/sync-for-payables-version-1/.speakeasy/gen.lock

Lines changed: 1956 additions & 540 deletions
Large diffs are not rendered by default.

previous-versions/sync-for-payables-version-1/.speakeasy/gen.yaml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,56 @@ generation:
44
maintainOpenAPIOrder: true
55
usageSnippets:
66
optionalPropertyRendering: withExample
7+
sdkInitStyle: constructor
78
useClassNamesForArrayFields: true
89
fixes:
910
nameResolutionDec2023: true
11+
nameResolutionFeb2025: false
1012
parameterOrderingFeb2024: true
1113
requestResponseComponentNamesFeb2024: true
14+
securityFeb2025: false
15+
sharedErrorComponentsApr2025: false
1216
auth:
1317
oAuth2ClientCredentialsEnabled: false
18+
oAuth2PasswordEnabled: false
19+
hoistGlobalSecurity: true
20+
schemas:
21+
allOfMergeStrategy: shallowMerge
22+
requestBodyFieldName: ""
23+
tests:
24+
generateTests: true
25+
generateNewTests: false
26+
skipResponseBodyAssertions: false
27+
persistentEdits: {}
1428
telemetryEnabled: true
1529
typescript:
16-
version: 2.3.0
30+
version: 2.4.0
31+
acceptHeaderEnum: true
1732
additionalDependencies:
1833
dependencies: {}
1934
devDependencies: {}
2035
peerDependencies: {}
2136
additionalPackageJSON: {}
37+
additionalScripts: {}
38+
alwaysIncludeInboundAndOutbound: false
2239
author: Codat
40+
baseErrorName: CodatSyncPayablesError
2341
clientServerStatusCodesAsErrors: true
42+
constFieldsAlwaysOptional: false
43+
defaultErrorName: SDKError
2444
description: Push expenses to accounting platforms.
45+
enableCustomCodeRegions: false
46+
enableMCPServer: false
47+
enableReactQuery: false
2548
enumFormat: union
49+
exportZodModelNamespace: false
50+
flatAdditionalProperties: false
2651
flattenGlobalSecurity: true
52+
flatteningOrder: parameters-first
53+
formStringArrayEncodeMode: encoded-string
54+
forwardCompatibleEnumsByDefault: false
55+
forwardCompatibleUnionsByDefault: "false"
56+
generateExamples: true
2757
imports:
2858
option: openapi
2959
paths:
@@ -32,12 +62,23 @@ typescript:
3262
operations: sdk/models/operations
3363
shared: sdk/models/shared
3464
webhooks: sdk/models/webhooks
65+
inferUnionDiscriminators: true
3566
inputModelSuffix: input
67+
jsonpath: legacy
68+
laxMode: strict
3669
maxMethodParams: 0
3770
methodArguments: infer-optional-args
71+
modelPropertyCasing: camel
3872
moduleFormat: commonjs
73+
multipartArrayFormat: legacy
3974
outputModelSuffix: output
4075
packageName: '@codat/sync-for-payables-version-1'
76+
preApplyUnionDiscriminators: true
77+
preserveModelFieldNames: false
4178
responseFormat: flat
79+
sseFlatResponse: false
4280
templateVersion: v2
81+
unionStrategy: left-to-right
82+
usageSDKInitImports: []
4383
useIndexModules: true
84+
zodVersion: v3

previous-versions/sync-for-payables-version-1/FUNCTIONS.md

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

2625
// Use `CodatSyncPayablesCore` for best tree-shaking performance.
2726
// You can create one instance of it to use across an application.
@@ -31,33 +30,16 @@ const codatSyncPayables = new CodatSyncPayablesCore({
3130

3231
async function run() {
3332
const res = await companiesList(codatSyncPayables, {
34-
page: 1,
35-
pageSize: 100,
3633
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee",
3734
orderBy: "-modifiedDate",
35+
tags: "region=uk && team=invoice-finance",
3836
});
39-
40-
switch (true) {
41-
case res.ok:
42-
// The success case will be handled outside of the switch block
43-
break;
44-
case res.error instanceof SDKValidationError:
45-
// Pretty-print validation errors.
46-
return console.log(res.error.pretty());
47-
case res.error instanceof Error:
48-
return console.log(res.error);
49-
default:
50-
// TypeScript's type checking will fail on the following line if the above
51-
// cases were not exhaustive.
52-
res.error satisfies never;
53-
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);
5442
}
55-
56-
57-
const { value: result } = res;
58-
59-
// Handle the result
60-
console.log(result)
6143
}
6244

6345
run();

0 commit comments

Comments
 (0)