Skip to content

Commit fdbf90d

Browse files
author
Denis Gursky
authored
moved api to folder (#36)
1 parent a45643a commit fdbf90d

36 files changed

+26
-26
lines changed

index.web.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
* under the License.
1515
*/
1616

17-
export { default as Client } from './src/client';
17+
export { default as Client } from './src/api/client';
18+
export * from './src/api/database/types';
19+
export * from './src/api/engine/types';
20+
export * from './src/api/oauthClient/types';
21+
export * from './src/api/query/types';
22+
export * from './src/api/transaction/types';
23+
export * from './src/api/user/types';
1824
export * from './src/credentials';
19-
export * from './src/database/types';
20-
export * from './src/engine/types';
2125
export type { SdkError } from './src/errors';
2226
export { ApiError, TransactionError } from './src/errors';
23-
export * from './src/oauthClient/types';
24-
export * from './src/query/types';
2527
export * from './src/relationUtils';
26-
export * from './src/transaction/types';
2728
export { VERSION } from './src/types';
28-
export * from './src/user/types';

src/base.ts renamed to src/api/base.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* under the License.
1515
*/
1616

17-
import { makeUrl, request, RequestOptions } from './rest';
18-
import { Config } from './types';
17+
import { makeUrl, request, RequestOptions } from '../rest';
18+
import { Config } from '../types';
1919

2020
type OnResponse = RequestOptions['onResponse'];
2121

src/client.ts renamed to src/api/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* under the License.
1515
*/
1616

17+
import { applyMixins } from '../utils';
1718
import { Base } from './base';
1819
import { DatabaseApi } from './database/databaseApi';
1920
import { EdbApi } from './edb/edbApi';
@@ -25,7 +26,6 @@ import { QueryApi } from './query/queryApi';
2526
import { TransactionApi } from './transaction/transactionApi';
2627
import { TransactionAsyncApi } from './transaction/transactionAsyncApi';
2728
import { UserApi } from './user/userApi';
28-
import { applyMixins } from './utils';
2929

3030
class Client extends Base {}
3131

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import nock from 'nock';
1818

19-
import { baseUrl, getMockConfig } from '../testUtils';
19+
import { baseUrl, getMockConfig } from '../../testUtils';
2020
import { DatabaseApi } from './databaseApi';
2121
import { DatabaseState } from './types';
2222

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import nock from 'nock';
1818

19-
import { getMockConfig, nockTransaction } from '../testUtils';
19+
import { getMockConfig, nockTransaction } from '../../testUtils';
2020
import { RelKey } from '../transaction/types';
2121
import { EdbApi } from './edbApi';
2222

File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import nock from 'nock';
1818

19-
import { baseUrl, getMockConfig } from '../testUtils';
19+
import { baseUrl, getMockConfig } from '../../testUtils';
2020
import { EngineApi } from './engineApi';
2121
import { EngineSize, EngineState } from './types';
2222

0 commit comments

Comments
 (0)