diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 491db96..d791adb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,7 @@ on: pull_request: branches: - main + - next jobs: lint: diff --git a/README.md b/README.md index b2f70f7..315ddb2 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This library provides convenient access to the Studio SDK REST API from server-side TypeScript or JavaScript. -The REST API documentation can be found [on docs.clearstreet.io](https://docs.clearstreet.io/studio). The full API of this library can be found in [api.md](api.md). +The REST API documentation can be found on [docs.clearstreet.io](https://docs.clearstreet.io/studio). The full API of this library can be found in [api.md](api.md). It is generated with [Stainless](https://www.stainlessapi.com/). diff --git a/tests/api-resources/accounts/locate-orders.test.ts b/tests/api-resources/accounts/locate-orders.test.ts index 42327a9..19e1606 100644 --- a/tests/api-resources/accounts/locate-orders.test.ts +++ b/tests/api-resources/accounts/locate-orders.test.ts @@ -31,7 +31,7 @@ describe('resource locateOrders', () => { quantity: 'x', reference_id: 'my-order-id-123', symbol: 'AAPL', - comments: 'string', + comments: 'comments', }); }); diff --git a/tests/api-resources/accounts/orders.test.ts b/tests/api-resources/accounts/orders.test.ts index 1de7522..a120c4b 100644 --- a/tests/api-resources/accounts/orders.test.ts +++ b/tests/api-resources/accounts/orders.test.ts @@ -83,7 +83,7 @@ describe('resource orders', () => { await expect( studioSDK.accounts.orders.list( 'x', - { from: 1710613560668, page_size: 1, page_token: 'string', to: 1710613560668 }, + { from: 1710613560668, page_size: 1, page_token: 'page_token', to: 1710613560668 }, { path: '/_stainless_unknown_path' }, ), ).rejects.toThrow(StudioSDK.NotFoundError); diff --git a/tests/api-resources/accounts/positions.test.ts b/tests/api-resources/accounts/positions.test.ts index 8f45e9b..53d8aca 100644 --- a/tests/api-resources/accounts/positions.test.ts +++ b/tests/api-resources/accounts/positions.test.ts @@ -50,7 +50,7 @@ describe('resource positions', () => { await expect( studioSDK.accounts.positions.list( 'x', - { page_size: 1, page_token: 'string' }, + { page_size: 1, page_token: 'page_token' }, { path: '/_stainless_unknown_path' }, ), ).rejects.toThrow(StudioSDK.NotFoundError); diff --git a/tests/api-resources/accounts/trades.test.ts b/tests/api-resources/accounts/trades.test.ts index 3debb27..e99d15e 100644 --- a/tests/api-resources/accounts/trades.test.ts +++ b/tests/api-resources/accounts/trades.test.ts @@ -50,7 +50,7 @@ describe('resource trades', () => { await expect( studioSDK.accounts.trades.list( 'x', - { page_size: 1, page_token: 'string' }, + { page_size: 1, page_token: 'page_token' }, { path: '/_stainless_unknown_path' }, ), ).rejects.toThrow(StudioSDK.NotFoundError); diff --git a/tests/api-resources/entities/regt-margin-simulations.test.ts b/tests/api-resources/entities/regt-margin-simulations.test.ts index 6e10f19..f318124 100644 --- a/tests/api-resources/entities/regt-margin-simulations.test.ts +++ b/tests/api-resources/entities/regt-margin-simulations.test.ts @@ -10,7 +10,7 @@ const studioSDK = new StudioSDK({ describe('resource regtMarginSimulations', () => { test('create: only required params', async () => { - const responsePromise = studioSDK.entities.regtMarginSimulations.create('x', { name: 'string' }); + const responsePromise = studioSDK.entities.regtMarginSimulations.create('x', { name: 'name' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource regtMarginSimulations', () => { test('create: required and optional params', async () => { const response = await studioSDK.entities.regtMarginSimulations.create('x', { - name: 'string', + name: 'name', ignore_existing: true, prices: [ { symbol: 'AAPL', symbol_format: 'cms', price: 'x' },