Skip to content

Commit ae09d85

Browse files
committed
Disable strict mode and noImplicitAny in TypeScript configuration
1 parent fb7ce2a commit ae09d85

File tree

13 files changed

+3891
-4656
lines changed

13 files changed

+3891
-4656
lines changed

packages/api/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
"test": "jest",
1111
"lint": "eslint src --ext .ts"
1212
},
13+
"dependencies": {
14+
"@mixcore/config": "workspace:*",
15+
"@mixcore/file": "workspace:*",
16+
"@mixcore/template": "workspace:*",
17+
"@mixcore/user": "workspace:*"
18+
},
1319
"license": "SEE LICENSE IN LICENSE",
1420
"repository": "https://github.com/mixcore/javascript-sdk",
1521
"publishConfig": {
Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
// SDK bootstrap entrypoint for Mixcore JavaScript SDK
22
// Usage: import { createMixcoreSdk } from '@mixcore/apis';
3+
import { ApiService } from './api-services';
34
import { UserServices } from '@mixcore/user';
45
import { TemplateService } from '@mixcore/template';
5-
import { FileServices } from '@mixcore/file';
6+
import { FileServicesPortal } from '@mixcore/file';
67
import { ConfigurationServices } from '@mixcore/config';
78
// ...import other domain services as needed
89

910
export interface MixcoreSdkConfig {
11+
apiBaseUrl: string;
12+
apiKey?: string;
1013
[key: string]: any;
1114
}
1215

1316
export function createMixcoreSdk(config: MixcoreSdkConfig) {
17+
const api = new ApiService(config);
18+
1419
return {
15-
user: new UserServices(config),
16-
template: new TemplateService(config),
17-
file: new FileServices(config),
18-
config: new ConfigurationServices(config),
20+
api,
21+
user: new UserServices(api),
22+
template: new TemplateService(api),
23+
file: new FileServicesPortal(api),
24+
config: new ConfigurationServices(api),
1925
// ...add other domain services here
2026
};
2127
}

packages/config/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"test": "jest",
1111
"lint": "eslint src --ext .ts"
1212
},
13+
"dependencies": {
14+
"@mixcore/api": "workspace:*"
15+
},
1316
"license": "SEE LICENSE IN LICENSE",
1417
"repository": "https://github.com/mixcore/javascript-sdk",
1518
"publishConfig": {

packages/config/src/configuration-services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ApiService } from './api-services';
1+
import { ApiService } from '@mixcore/api';
22

33
/**
44
* ConfigurationServices

packages/database/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"test": "jest",
1111
"lint": "eslint src --ext .ts"
1212
},
13+
"dependencies": {
14+
"@mixcore/api": "workspace:*"
15+
},
1316
"license": "SEE LICENSE IN LICENSE",
1417
"repository": "https://github.com/mixcore/javascript-sdk",
1518
"publishConfig": {

packages/file/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"test": "jest",
1111
"lint": "eslint src --ext .ts"
1212
},
13+
"dependencies": {
14+
"@mixcore/api": "workspace:*"
15+
},
1316
"license": "SEE LICENSE IN LICENSE",
1417
"repository": "https://github.com/mixcore/javascript-sdk",
1518
"publishConfig": {

packages/file/src/file-services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ApiService } from './api-services';
1+
import { ApiService } from '@mixcore/api';
22

33
export class FileServicesPortal {
44
private api: ApiService;

packages/template/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"test": "jest",
1111
"lint": "eslint src --ext .ts"
1212
},
13+
"dependencies": {
14+
"@mixcore/api": "workspace:*"
15+
},
1316
"license": "SEE LICENSE IN LICENSE",
1417
"repository": "https://github.com/mixcore/javascript-sdk",
1518
"publishConfig": {

packages/template/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export * from './template-service';
22
export * from './module-article-services';
3-
export * from './post-rest-mvc-service';
43
export * from './theme-services';
54
export * from './module-gallery-services';

packages/template/src/template-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ApiService } from './api-services';
1+
import { ApiService } from '@mixcore/api';
22

33
export class TemplateService {
44
private api: ApiService;

0 commit comments

Comments
 (0)