@fluxo-dev/api-client-base 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +12 -0
- package/.eslintrc.json +18 -0
- package/README.md +7 -0
- package/jest.config.ts +11 -0
- package/package.json +8 -0
- package/project.json +43 -0
- package/src/index.ts +39 -0
- package/src/lib/apps/apps.service.ts +46 -0
- package/src/lib/apps/index.ts +2 -0
- package/src/lib/apps/models/app-state.ts +4 -0
- package/src/lib/apps/models/app-type.ts +4 -0
- package/src/lib/apps/models/embedded-module.ts +106 -0
- package/src/lib/apps/models/fluxo-app-menu.ts +12 -0
- package/src/lib/apps/models/fluxo-app.ts +17 -0
- package/src/lib/apps/models/fluxo-embedded-module-configuration.ts +10 -0
- package/src/lib/apps/models/fluxo-frontend-app-configuration.ts +12 -0
- package/src/lib/apps/models/flx-app-routes.ts +5 -0
- package/src/lib/apps/models/flx-route.ts +6 -0
- package/src/lib/apps/models/index.ts +9 -0
- package/src/lib/auth/auth-service.ts +149 -0
- package/src/lib/configuration/app-menu-create-command.ts +9 -0
- package/src/lib/configuration/app-menu-item.ts +14 -0
- package/src/lib/configuration/app-menu.ts +15 -0
- package/src/lib/configuration/client-ui.ts +5 -0
- package/src/lib/configuration/configuration.service.ts +57 -0
- package/src/lib/configuration/index.ts +5 -0
- package/src/lib/configuration/models/feature-list.ts +8 -0
- package/src/lib/configuration/models/feature.ts +11 -0
- package/src/lib/configuration/models/index.ts +3 -0
- package/src/lib/configuration/models/module.ts +5 -0
- package/src/lib/constants/local-storage.ts +4 -0
- package/src/lib/fluxo-client-base-sys.ts +28 -0
- package/src/lib/fluxo-client-interface.ts +27 -0
- package/src/lib/fluxo-client.ts +142 -0
- package/src/lib/fluxo-state-dispatcher.ts +81 -0
- package/src/lib/http-client/http-client.ts +75 -0
- package/src/lib/infrastructure/base-common-service.ts +45 -0
- package/src/lib/infrastructure/index.ts +1 -0
- package/src/lib/interfaces/crud-service-interface.ts +9 -0
- package/src/lib/interfaces/index.ts +2 -0
- package/src/lib/interfaces/rc-paginated-result.ts +6 -0
- package/src/lib/korebi/app-service/app-service.service.ts +8 -0
- package/src/lib/korebi/app-service/index.ts +3 -0
- package/src/lib/korebi/app-service/model/dynamic-api-service.ts +15 -0
- package/src/lib/korebi/app-service/model/dynamic-api-services-method.ts +6 -0
- package/src/lib/korebi/documentation/documentation.service.ts +26 -0
- package/src/lib/korebi/documentation/index.ts +3 -0
- package/src/lib/korebi/documentation/intellisense.service.ts +21 -0
- package/src/lib/korebi/documentation/models/command-input-type.ts +11 -0
- package/src/lib/korebi/documentation/models/command-metadata.ts +10 -0
- package/src/lib/korebi/documentation/models/command-output-type.ts +6 -0
- package/src/lib/korebi/documentation/models/command.ts +19 -0
- package/src/lib/korebi/documentation/models/documentation.ts +13 -0
- package/src/lib/korebi/documentation/models/index.ts +8 -0
- package/src/lib/korebi/documentation/models/korebi-profile.ts +5 -0
- package/src/lib/korebi/documentation/models/type-meta-structure.ts +11 -0
- package/src/lib/korebi/documentation/models/type-specs.ts +5 -0
- package/src/lib/korebi/dynamic-configuration/dynamic-configuration.service.ts +17 -0
- package/src/lib/korebi/dynamic-configuration/index.ts +8 -0
- package/src/lib/korebi/dynamic-configuration/model/attribute-marker-location.ts +7 -0
- package/src/lib/korebi/dynamic-configuration/model/command-json-configuration.ts +20 -0
- package/src/lib/korebi/dynamic-configuration/model/instruction-json-configuration.ts +19 -0
- package/src/lib/korebi/dynamic-configuration/model/profile-json-configuration.ts +6 -0
- package/src/lib/korebi/dynamic-configuration/model/rest-adapter-info.ts +9 -0
- package/src/lib/korebi/dynamic-configuration/model/startup-exception-context.ts +44 -0
- package/src/lib/korebi/dynamic-configuration/model/tenant-json-configuration.ts +6 -0
- package/src/lib/korebi/index.ts +3 -0
- package/src/lib/korebi/korebi-facade.ts +33 -0
- package/src/lib/modules/fluxo-module.ts +13 -0
- package/src/lib/printing/index.ts +2 -0
- package/src/lib/printing/models/add-printer-command.ts +12 -0
- package/src/lib/printing/models/create-print-server-command.ts +11 -0
- package/src/lib/printing/models/index.ts +9 -0
- package/src/lib/printing/models/print-server-managed-type.ts +4 -0
- package/src/lib/printing/models/print-server-type.ts +4 -0
- package/src/lib/printing/models/printer-manufacturer.ts +3 -0
- package/src/lib/printing/models/printer-type.ts +4 -0
- package/src/lib/printing/models/update-print-server-command.ts +4 -0
- package/src/lib/printing/models/virtual-print-server.ts +14 -0
- package/src/lib/printing/models/virtual-printer.ts +14 -0
- package/src/lib/printing/printing.service.ts +32 -0
- package/src/lib/reporting/index.ts +2 -0
- package/src/lib/reporting/models/create-report-command.ts +8 -0
- package/src/lib/reporting/models/index.ts +7 -0
- package/src/lib/reporting/models/parameters-schema.ts +8 -0
- package/src/lib/reporting/models/print-report-command.ts +5 -0
- package/src/lib/reporting/models/report-info.ts +5 -0
- package/src/lib/reporting/models/report-parameter.ts +6 -0
- package/src/lib/reporting/models/report.ts +10 -0
- package/src/lib/reporting/models/reports-list.ts +10 -0
- package/src/lib/reporting/reporting.service.ts +33 -0
- package/src/lib/security/apikey/apikey-service.ts +30 -0
- package/src/lib/security/apikey/apikey.ts +7 -0
- package/src/lib/security/apikey/index.ts +3 -0
- package/src/lib/security/apikey/new-apikey.ts +4 -0
- package/src/lib/security/domain-role/domain-role.service.ts +22 -0
- package/src/lib/security/domain-role/domain-role.ts +7 -0
- package/src/lib/security/domain-role/index.ts +2 -0
- package/src/lib/security/permission/create-custom-permission-command.ts +7 -0
- package/src/lib/security/permission/create-permission-scope-command.ts +6 -0
- package/src/lib/security/permission/index.ts +8 -0
- package/src/lib/security/permission/install-permission-command.ts +7 -0
- package/src/lib/security/permission/permission-identifier.ts +4 -0
- package/src/lib/security/permission/permission-scope.ts +7 -0
- package/src/lib/security/permission/permission.service.ts +38 -0
- package/src/lib/security/permission/permission.ts +9 -0
- package/src/lib/security/permission/structured-permission.ts +22 -0
- package/src/lib/security/route-rule/index.ts +3 -0
- package/src/lib/security/route-rule/route-rule-with-permissions.ts +4 -0
- package/src/lib/security/route-rule/route-rule.service.ts +26 -0
- package/src/lib/security/route-rule/route-rule.ts +7 -0
- package/src/lib/security/security-facade.ts +42 -0
- package/src/lib/security/user/change-password.ts +4 -0
- package/src/lib/security/user/forgot-password.ts +5 -0
- package/src/lib/security/user/identityOperationResult.ts +9 -0
- package/src/lib/security/user/index.ts +2 -0
- package/src/lib/security/user/new-account-confirmation.ts +4 -0
- package/src/lib/security/user/new-user.ts +12 -0
- package/src/lib/security/user/user-service.ts +83 -0
- package/src/lib/security/user/user.ts +19 -0
- package/src/lib/utils/index.ts +1 -0
- package/src/lib/utils/server-filter-helper.ts +34 -0
- package/src/lib/workflow/index.ts +2 -0
- package/src/lib/workflow/models/action-category-definition.ts +7 -0
- package/src/lib/workflow/models/action-definition.ts +12 -0
- package/src/lib/workflow/models/action-input-definition.ts +8 -0
- package/src/lib/workflow/models/action-output-definition.ts +4 -0
- package/src/lib/workflow/models/index.ts +11 -0
- package/src/lib/workflow/models/trigger-category-definition.ts +6 -0
- package/src/lib/workflow/models/trigger-definition.ts +11 -0
- package/src/lib/workflow/models/workflow-action-input-type.ts +6 -0
- package/src/lib/workflow/models/workflow-action-input.ts +6 -0
- package/src/lib/workflow/models/workflow-action.ts +14 -0
- package/src/lib/workflow/models/workflow-trigger.ts +11 -0
- package/src/lib/workflow/models/workflow.ts +10 -0
- package/src/lib/workflow/workflow.service.ts +17 -0
- package/tsconfig.json +20 -0
- package/tsconfig.lib.json +24 -0
- package/tsconfig.spec.json +20 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {RouteRule} from "./route-rule";
|
|
2
|
+
import {BaseCommonService} from "../../infrastructure";
|
|
3
|
+
import {HttpClient} from "../../http-client/http-client";
|
|
4
|
+
import {Permission} from "../permission";
|
|
5
|
+
|
|
6
|
+
export class RouteRuleService extends BaseCommonService<RouteRule> {
|
|
7
|
+
constructor() {
|
|
8
|
+
super('route-rule');
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
public getRouteRulesForScope(scope: string, packageName: string): Promise<RouteRule[]> {
|
|
12
|
+
return HttpClient.Instance().client.get(`route-rule?scope=${scope}&packageName=${packageName}`);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
public getPermissions(routeRuleId: string): Promise<Permission[]> {
|
|
16
|
+
return HttpClient.Instance().client.get(`route-rule/${routeRuleId}/permissions`);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
public addPermission(routeRuleId: number, permissionId: number): Promise<void> {
|
|
20
|
+
return HttpClient.Instance().client.post(`route-rule/${routeRuleId}/permissions`, {domainRoleId: routeRuleId, permissionId: permissionId});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
public removePermission(routeRuleId: number, permissionId: number): Promise<void> {
|
|
24
|
+
return HttpClient.Instance().client.delete(`route-rule/${routeRuleId}/permissions/${permissionId}`);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { UserService } from "./user/user-service";
|
|
2
|
+
import {DomainRoleService} from "./domain-role";
|
|
3
|
+
import { ApiKeyService } from "./apikey";
|
|
4
|
+
import {PermissionService} from "./permission/permission.service";
|
|
5
|
+
import {RouteRuleService} from "./route-rule/route-rule.service";
|
|
6
|
+
|
|
7
|
+
export class SecurityFacade {
|
|
8
|
+
|
|
9
|
+
private readonly _userService: UserService;
|
|
10
|
+
private readonly _apiKeyService: ApiKeyService;
|
|
11
|
+
private readonly _domainRoleService: DomainRoleService;
|
|
12
|
+
private readonly _permissionService: PermissionService;
|
|
13
|
+
private readonly _routeRuleService: RouteRuleService;
|
|
14
|
+
|
|
15
|
+
constructor() {
|
|
16
|
+
this._userService = new UserService();
|
|
17
|
+
this._apiKeyService = new ApiKeyService();
|
|
18
|
+
this._domainRoleService = new DomainRoleService();
|
|
19
|
+
this._permissionService = new PermissionService();
|
|
20
|
+
this._routeRuleService = new RouteRuleService();
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
get user(): UserService {
|
|
24
|
+
return this._userService;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
get permission(): PermissionService {
|
|
28
|
+
return this._permissionService;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
get routeRule(): RouteRuleService {
|
|
32
|
+
return this._routeRuleService;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
get apiKey(): ApiKeyService {
|
|
36
|
+
return this._apiKeyService;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
get domainRole(): DomainRoleService {
|
|
40
|
+
return this._domainRoleService;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { HttpClient } from "../../http-client/http-client";
|
|
2
|
+
import { ChangePassword } from "./change-password";
|
|
3
|
+
import { ForgotPassword } from "./forgot-password";
|
|
4
|
+
import { IdentityOperationResult } from "./identityOperationResult";
|
|
5
|
+
import { NewAccountConfirmation } from "./new-account-confirmation";
|
|
6
|
+
import { NewUser } from "./new-user";
|
|
7
|
+
import { User } from "./user";
|
|
8
|
+
import {store} from "@fluxo-dev/state";
|
|
9
|
+
|
|
10
|
+
export class UserService {
|
|
11
|
+
|
|
12
|
+
constructor() {
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
public currentUserHasPermissions(requiredPermissions: string[], strategy: 'all' | 'any' = 'all'): boolean {
|
|
16
|
+
const userPermissions = store.getState().user.userPermissions;
|
|
17
|
+
|
|
18
|
+
if (!userPermissions) {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if(requiredPermissions.length === 0) {
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const checkerAll = (arr: any[], target: any[]) => target.every(v => arr.includes(v));
|
|
27
|
+
const checkerAny = (arr: any[], target: any[]) => target.some(v => arr.includes(v));
|
|
28
|
+
|
|
29
|
+
let result: boolean;
|
|
30
|
+
|
|
31
|
+
if(strategy === 'all') {
|
|
32
|
+
result = checkerAll(userPermissions, requiredPermissions);
|
|
33
|
+
} else {
|
|
34
|
+
result = checkerAny(userPermissions, requiredPermissions);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
if(result) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
public getAllUsers(): Promise<User[]> {
|
|
45
|
+
return HttpClient.Instance().client.get(`/identity/user`);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
public createUser(user: NewUser): Promise<IdentityOperationResult> {
|
|
49
|
+
return HttpClient.Instance().client.post(`/identity/user`, user);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
public updateUser(userId: string, user: NewUser): Promise<IdentityOperationResult> {
|
|
53
|
+
return HttpClient.Instance().client.put(`/identity/user/${userId}`, user);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
public deleteUser(userId: string): Promise<IdentityOperationResult> {
|
|
57
|
+
return HttpClient.Instance().client.delete(`/identity/user/${userId}`);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
public confirmEmail(user: NewAccountConfirmation): Promise<IdentityOperationResult> {
|
|
61
|
+
return HttpClient.Instance().client.post(`/identity/confirm/email`, user);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
public changePassword(changePassword: ChangePassword): Promise<IdentityOperationResult> {
|
|
65
|
+
return HttpClient.Instance().client.post(`/identity/changepassword`, changePassword);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
public forgotPassword(email: string): Promise<IdentityOperationResult> {
|
|
69
|
+
return HttpClient.Instance().client.post(`/identity/forgotpassword/require/${encodeURI(email)}`, null);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
public forgotPasswordConfirm(forgotPassword: ForgotPassword): Promise<IdentityOperationResult> {
|
|
73
|
+
return HttpClient.Instance().client.post(`/identity/forgotpassword/confirm`, forgotPassword);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
public disableUserLogin(userId: string): Promise<IdentityOperationResult> {
|
|
77
|
+
return HttpClient.Instance().client.post(`/disableuser/${userId}`);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
public enableUserLogin(userId: string): Promise<IdentityOperationResult> {
|
|
81
|
+
return HttpClient.Instance().client.post(`/enableuser/${userId}`);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {DomainRole} from "../domain-role";
|
|
2
|
+
|
|
3
|
+
export interface User {
|
|
4
|
+
id: string;
|
|
5
|
+
email: string;
|
|
6
|
+
roles: string[];
|
|
7
|
+
domainRoles: DomainRole[];
|
|
8
|
+
userData: UserData;
|
|
9
|
+
emailConfirmed: boolean;
|
|
10
|
+
phoneNumber: string;
|
|
11
|
+
phoneNumberConfirmed: boolean;
|
|
12
|
+
lockoutEnd: string | null;
|
|
13
|
+
lockoutEnabled: boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface UserData {
|
|
17
|
+
FirstName: string;
|
|
18
|
+
LastName: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './server-filter-helper';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export class ServerFilterHelper {
|
|
2
|
+
|
|
3
|
+
public static getFilterString(filter: string | undefined,
|
|
4
|
+
globalSearchQuery:string | undefined,
|
|
5
|
+
globalSearchQueryFields: {fieldName: string, fieldType: 'string' | 'number'}[] | undefined, globalQueryOperator: 'and' | 'or' = 'or') : string {
|
|
6
|
+
|
|
7
|
+
let filtersString = filter ? filter : '';
|
|
8
|
+
const globalSearchFilterArray : string[] = [];
|
|
9
|
+
|
|
10
|
+
if (globalSearchQuery && globalSearchQueryFields) {
|
|
11
|
+
let gFilter = '';
|
|
12
|
+
|
|
13
|
+
globalSearchQueryFields.forEach((field) => {
|
|
14
|
+
|
|
15
|
+
if(field.fieldType === 'string')
|
|
16
|
+
gFilter = `(obj.${field.fieldName}.ToLower().Contains("${globalSearchQuery}".ToLower()))`;
|
|
17
|
+
else
|
|
18
|
+
gFilter = `(obj.${field.fieldName} == ${globalSearchQuery})`;
|
|
19
|
+
|
|
20
|
+
globalSearchFilterArray.push(gFilter);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (globalSearchFilterArray.length > 0) {
|
|
25
|
+
if (filtersString !== '')
|
|
26
|
+
filtersString = filtersString + ` ${globalQueryOperator} ` + globalSearchFilterArray.join(" or ")
|
|
27
|
+
else
|
|
28
|
+
filtersString = globalSearchFilterArray.join(" or ")
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return filtersString;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {ActionInputDefinition} from "./action-input-definition";
|
|
2
|
+
import {ActionOutputDefinition} from "./action-output-definition";
|
|
3
|
+
|
|
4
|
+
export interface ActionDefinition {
|
|
5
|
+
id: string;
|
|
6
|
+
category: string;
|
|
7
|
+
name: string;
|
|
8
|
+
type: string;
|
|
9
|
+
inputs: ActionInputDefinition[];
|
|
10
|
+
outputs: ActionOutputDefinition[];
|
|
11
|
+
outcomes: string[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './action-definition';
|
|
2
|
+
export * from './action-input-definition';
|
|
3
|
+
export * from './action-output-definition';
|
|
4
|
+
export * from './action-category-definition';
|
|
5
|
+
export * from './workflow-action';
|
|
6
|
+
export * from './workflow';
|
|
7
|
+
export * from "./workflow-action-input";
|
|
8
|
+
export * from "./workflow-action-input-type";
|
|
9
|
+
export * from './trigger-definition';
|
|
10
|
+
export * from './trigger-category-definition';
|
|
11
|
+
export * from './workflow-trigger';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {ActionInputDefinition} from "./action-input-definition";
|
|
2
|
+
import {ActionOutputDefinition} from "./action-output-definition";
|
|
3
|
+
|
|
4
|
+
export interface TriggerDefinition {
|
|
5
|
+
id: string;
|
|
6
|
+
category: string;
|
|
7
|
+
name: string;
|
|
8
|
+
type: string;
|
|
9
|
+
inputs: ActionInputDefinition[];
|
|
10
|
+
outputs: ActionOutputDefinition[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {WorkflowActionInput} from "./workflow-action-input";
|
|
2
|
+
|
|
3
|
+
export interface WorkflowAction {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
color: string;
|
|
7
|
+
description: string;
|
|
8
|
+
type: string;
|
|
9
|
+
outcomes: string[];
|
|
10
|
+
nextActions: { [outcome: string]: WorkflowAction };
|
|
11
|
+
parallelActions: WorkflowAction[];
|
|
12
|
+
inputs: { [property: string]: WorkflowActionInput };
|
|
13
|
+
}
|
|
14
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {HttpClient} from "../http-client/http-client";
|
|
2
|
+
import {ActionCategoryDefinition, TriggerCategoryDefinition, Workflow} from "./models";
|
|
3
|
+
|
|
4
|
+
export class WorkflowService {
|
|
5
|
+
|
|
6
|
+
getActionsDefinition(): Promise<ActionCategoryDefinition[]> {
|
|
7
|
+
return HttpClient.Instance().client.get('workflow/designer/actions');
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
getTriggersDefinition(): Promise<TriggerCategoryDefinition[]> {
|
|
11
|
+
return HttpClient.Instance().client.get('workflow/designer/triggers');
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
test(workflow: Workflow): Promise<void> {
|
|
15
|
+
return HttpClient.Instance().client.post('workflow/convert', workflow);
|
|
16
|
+
}
|
|
17
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"jsx": "react-jsx",
|
|
4
|
+
"allowJs": false,
|
|
5
|
+
"esModuleInterop": false,
|
|
6
|
+
"allowSyntheticDefaultImports": true,
|
|
7
|
+
"strict": true
|
|
8
|
+
},
|
|
9
|
+
"files": [],
|
|
10
|
+
"include": [],
|
|
11
|
+
"references": [
|
|
12
|
+
{
|
|
13
|
+
"path": "./tsconfig.lib.json"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"path": "./tsconfig.spec.json"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"extends": "../../../tsconfig.base.json"
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "../../../dist/out-tsc",
|
|
5
|
+
"types": [
|
|
6
|
+
"node",
|
|
7
|
+
|
|
8
|
+
"@nx/react/typings/cssmodule.d.ts",
|
|
9
|
+
"@nx/react/typings/image.d.ts"
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
"exclude": [
|
|
13
|
+
"jest.config.ts",
|
|
14
|
+
"src/**/*.spec.ts",
|
|
15
|
+
"src/**/*.test.ts",
|
|
16
|
+
"src/**/*.spec.tsx",
|
|
17
|
+
"src/**/*.test.tsx",
|
|
18
|
+
"src/**/*.spec.js",
|
|
19
|
+
"src/**/*.test.js",
|
|
20
|
+
"src/**/*.spec.jsx",
|
|
21
|
+
"src/**/*.test.jsx"
|
|
22
|
+
],
|
|
23
|
+
"include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"]
|
|
24
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "../../../dist/out-tsc",
|
|
5
|
+
"module": "commonjs",
|
|
6
|
+
"types": ["jest", "node"]
|
|
7
|
+
},
|
|
8
|
+
"include": [
|
|
9
|
+
"jest.config.ts",
|
|
10
|
+
"src/**/*.test.ts",
|
|
11
|
+
"src/**/*.spec.ts",
|
|
12
|
+
"src/**/*.test.tsx",
|
|
13
|
+
"src/**/*.spec.tsx",
|
|
14
|
+
"src/**/*.test.js",
|
|
15
|
+
"src/**/*.spec.js",
|
|
16
|
+
"src/**/*.test.jsx",
|
|
17
|
+
"src/**/*.spec.jsx",
|
|
18
|
+
"src/**/*.d.ts"
|
|
19
|
+
]
|
|
20
|
+
}
|