@finos/legend-extension-dsl-data-product 0.0.2
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/LICENSE +201 -0
- package/README.md +3 -0
- package/lib/__lib__/DSL_DataProduct_Event.d.ts +19 -0
- package/lib/__lib__/DSL_DataProduct_Event.d.ts.map +1 -0
- package/lib/__lib__/DSL_DataProduct_Event.js +20 -0
- package/lib/__lib__/DSL_DataProduct_Event.js.map +1 -0
- package/lib/components/Core_DataProductDataAccess_LegendApplicationPlugin.d.ts +25 -0
- package/lib/components/Core_DataProductDataAccess_LegendApplicationPlugin.d.ts.map +1 -0
- package/lib/components/Core_DataProductDataAccess_LegendApplicationPlugin.js +105 -0
- package/lib/components/Core_DataProductDataAccess_LegendApplicationPlugin.js.map +1 -0
- package/lib/components/DataProduct/DataContract/EntitlementsDataContractCreator.d.ts +27 -0
- package/lib/components/DataProduct/DataContract/EntitlementsDataContractCreator.d.ts.map +1 -0
- package/lib/components/DataProduct/DataContract/EntitlementsDataContractCreator.js +57 -0
- package/lib/components/DataProduct/DataContract/EntitlementsDataContractCreator.js.map +1 -0
- package/lib/components/DataProduct/DataContract/EntitlementsDataContractViewer.d.ts +29 -0
- package/lib/components/DataProduct/DataContract/EntitlementsDataContractViewer.d.ts.map +1 -0
- package/lib/components/DataProduct/DataContract/EntitlementsDataContractViewer.js +165 -0
- package/lib/components/DataProduct/DataContract/EntitlementsDataContractViewer.js.map +1 -0
- package/lib/components/DataProduct/DataProductDataAccess.d.ts +34 -0
- package/lib/components/DataProduct/DataProductDataAccess.d.ts.map +1 -0
- package/lib/components/DataProduct/DataProductDataAccess.js +336 -0
- package/lib/components/DataProduct/DataProductDataAccess.js.map +1 -0
- package/lib/components/DataProduct/DataProductSupportInfo.d.ts +22 -0
- package/lib/components/DataProduct/DataProductSupportInfo.d.ts.map +1 -0
- package/lib/components/DataProduct/DataProductSupportInfo.js +43 -0
- package/lib/components/DataProduct/DataProductSupportInfo.js.map +1 -0
- package/lib/components/DataProduct/Subscriptions/DataProductSubscriptionsViewer.d.ts +26 -0
- package/lib/components/DataProduct/Subscriptions/DataProductSubscriptionsViewer.d.ts.map +1 -0
- package/lib/components/DataProduct/Subscriptions/DataProductSubscriptionsViewer.js +219 -0
- package/lib/components/DataProduct/Subscriptions/DataProductSubscriptionsViewer.js.map +1 -0
- package/lib/components/ProductViewer.d.ts +33 -0
- package/lib/components/ProductViewer.d.ts.map +1 -0
- package/lib/components/ProductViewer.js +113 -0
- package/lib/components/ProductViewer.js.map +1 -0
- package/lib/components/ProductWiki.d.ts +39 -0
- package/lib/components/ProductWiki.d.ts.map +1 -0
- package/lib/components/ProductWiki.js +95 -0
- package/lib/components/ProductWiki.js.map +1 -0
- package/lib/components/TerminalProduct/TerminalProductPrice.d.ts +22 -0
- package/lib/components/TerminalProduct/TerminalProductPrice.d.ts.map +1 -0
- package/lib/components/TerminalProduct/TerminalProductPrice.js +39 -0
- package/lib/components/TerminalProduct/TerminalProductPrice.js.map +1 -0
- package/lib/components/UserRenderer/MultiUserRenderer.d.ts +24 -0
- package/lib/components/UserRenderer/MultiUserRenderer.d.ts.map +1 -0
- package/lib/components/UserRenderer/MultiUserRenderer.js +46 -0
- package/lib/components/UserRenderer/MultiUserRenderer.js.map +1 -0
- package/lib/components/UserRenderer/UserRenderer.d.ts +27 -0
- package/lib/components/UserRenderer/UserRenderer.d.ts.map +1 -0
- package/lib/components/UserRenderer/UserRenderer.js +57 -0
- package/lib/components/UserRenderer/UserRenderer.js.map +1 -0
- package/lib/components/__test-utils__/StateTestUtils.d.ts +36 -0
- package/lib/components/__test-utils__/StateTestUtils.d.ts.map +1 -0
- package/lib/components/__test-utils__/StateTestUtils.js +97 -0
- package/lib/components/__test-utils__/StateTestUtils.js.map +1 -0
- package/lib/components/__test-utils__/TEST_DATA__LakehouseContractData.d.ts +25 -0
- package/lib/components/__test-utils__/TEST_DATA__LakehouseContractData.d.ts.map +1 -0
- package/lib/components/__test-utils__/TEST_DATA__LakehouseContractData.js +231 -0
- package/lib/components/__test-utils__/TEST_DATA__LakehouseContractData.js.map +1 -0
- package/lib/components/__test-utils__/TEST_DATA__LakehouseDataProducts.d.ts +71 -0
- package/lib/components/__test-utils__/TEST_DATA__LakehouseDataProducts.d.ts.map +1 -0
- package/lib/components/__test-utils__/TEST_DATA__LakehouseDataProducts.js +316 -0
- package/lib/components/__test-utils__/TEST_DATA__LakehouseDataProducts.js.map +1 -0
- package/lib/index.css +17 -0
- package/lib/index.css.map +1 -0
- package/lib/index.d.ts +32 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +32 -0
- package/lib/index.js.map +1 -0
- package/lib/package.json +95 -0
- package/lib/stores/BaseLayoutState.d.ts +35 -0
- package/lib/stores/BaseLayoutState.d.ts.map +1 -0
- package/lib/stores/BaseLayoutState.js +166 -0
- package/lib/stores/BaseLayoutState.js.map +1 -0
- package/lib/stores/BaseViewerState.d.ts +33 -0
- package/lib/stores/BaseViewerState.d.ts.map +1 -0
- package/lib/stores/BaseViewerState.js +27 -0
- package/lib/stores/BaseViewerState.js.map +1 -0
- package/lib/stores/DataProduct/DataProductAPGState.d.ts +62 -0
- package/lib/stores/DataProduct/DataProductAPGState.d.ts.map +1 -0
- package/lib/stores/DataProduct/DataProductAPGState.js +222 -0
- package/lib/stores/DataProduct/DataProductAPGState.js.map +1 -0
- package/lib/stores/DataProduct/DataProductDataAccessState.d.ts +66 -0
- package/lib/stores/DataProduct/DataProductDataAccessState.d.ts.map +1 -0
- package/lib/stores/DataProduct/DataProductDataAccessState.js +191 -0
- package/lib/stores/DataProduct/DataProductDataAccessState.js.map +1 -0
- package/lib/stores/DataProduct/DataProductViewerState.d.ts +40 -0
- package/lib/stores/DataProduct/DataProductViewerState.d.ts.map +1 -0
- package/lib/stores/DataProduct/DataProductViewerState.js +60 -0
- package/lib/stores/DataProduct/DataProductViewerState.js.map +1 -0
- package/lib/stores/DataProduct/EntitlementsDataContractViewerState.d.ts +31 -0
- package/lib/stores/DataProduct/EntitlementsDataContractViewerState.d.ts.map +1 -0
- package/lib/stores/DataProduct/EntitlementsDataContractViewerState.js +57 -0
- package/lib/stores/DataProduct/EntitlementsDataContractViewerState.js.map +1 -0
- package/lib/stores/DataProductDataAccess_LegendApplicationPlugin_Extension.d.ts +33 -0
- package/lib/stores/DataProductDataAccess_LegendApplicationPlugin_Extension.d.ts.map +1 -0
- package/lib/stores/DataProductDataAccess_LegendApplicationPlugin_Extension.js +17 -0
- package/lib/stores/DataProductDataAccess_LegendApplicationPlugin_Extension.js.map +1 -0
- package/lib/stores/ProductViewerNavigation.d.ts +29 -0
- package/lib/stores/ProductViewerNavigation.d.ts.map +1 -0
- package/lib/stores/ProductViewerNavigation.js +35 -0
- package/lib/stores/ProductViewerNavigation.js.map +1 -0
- package/lib/stores/TerminalProduct/TerminalProductViewerState.d.ts +25 -0
- package/lib/stores/TerminalProduct/TerminalProductViewerState.d.ts.map +1 -0
- package/lib/stores/TerminalProduct/TerminalProductViewerState.js +32 -0
- package/lib/stores/TerminalProduct/TerminalProductViewerState.js.map +1 -0
- package/lib/utils/DataContractUtils.d.ts +23 -0
- package/lib/utils/DataContractUtils.d.ts.map +1 -0
- package/lib/utils/DataContractUtils.js +76 -0
- package/lib/utils/DataContractUtils.js.map +1 -0
- package/lib/utils/LakehouseUtils.d.ts +21 -0
- package/lib/utils/LakehouseUtils.d.ts.map +1 -0
- package/lib/utils/LakehouseUtils.js +72 -0
- package/lib/utils/LakehouseUtils.js.map +1 -0
- package/package.json +95 -0
- package/src/__lib__/DSL_DataProduct_Event.ts +19 -0
- package/src/components/Core_DataProductDataAccess_LegendApplicationPlugin.tsx +233 -0
- package/src/components/DataProduct/DataContract/EntitlementsDataContractCreator.tsx +182 -0
- package/src/components/DataProduct/DataContract/EntitlementsDataContractViewer.tsx +586 -0
- package/src/components/DataProduct/DataProductDataAccess.tsx +767 -0
- package/src/components/DataProduct/DataProductSupportInfo.tsx +195 -0
- package/src/components/DataProduct/Subscriptions/DataProductSubscriptionsViewer.tsx +602 -0
- package/src/components/ProductViewer.tsx +287 -0
- package/src/components/ProductWiki.tsx +196 -0
- package/src/components/TerminalProduct/TerminalProductPrice.tsx +56 -0
- package/src/components/UserRenderer/MultiUserRenderer.tsx +89 -0
- package/src/components/UserRenderer/UserRenderer.tsx +100 -0
- package/src/components/__test-utils__/StateTestUtils.ts +170 -0
- package/src/components/__test-utils__/TEST_DATA__LakehouseContractData.ts +253 -0
- package/src/components/__test-utils__/TEST_DATA__LakehouseDataProducts.ts +343 -0
- package/src/index.ts +34 -0
- package/src/stores/BaseLayoutState.ts +220 -0
- package/src/stores/BaseViewerState.ts +75 -0
- package/src/stores/DataProduct/DataProductAPGState.ts +385 -0
- package/src/stores/DataProduct/DataProductDataAccessState.ts +354 -0
- package/src/stores/DataProduct/DataProductViewerState.ts +100 -0
- package/src/stores/DataProduct/EntitlementsDataContractViewerState.ts +83 -0
- package/src/stores/DataProductDataAccess_LegendApplicationPlugin_Extension.ts +38 -0
- package/src/stores/ProductViewerNavigation.ts +48 -0
- package/src/stores/TerminalProduct/TerminalProductViewerState.ts +43 -0
- package/src/utils/DataContractUtils.ts +121 -0
- package/src/utils/LakehouseUtils.ts +91 -0
- package/tsconfig.json +91 -0
- package/tsconfig.package.json +56 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import {
|
|
18
|
+
type V1_AccessPointGroup,
|
|
19
|
+
type V1_DataContract,
|
|
20
|
+
type V1_DataProduct,
|
|
21
|
+
type V1_LiteDataContract,
|
|
22
|
+
V1_AccessPointGroupReference,
|
|
23
|
+
V1_AdhocTeam,
|
|
24
|
+
V1_ContractState,
|
|
25
|
+
V1_deserializeTaskResponse,
|
|
26
|
+
V1_UserType,
|
|
27
|
+
} from '@finos/legend-graph';
|
|
28
|
+
import type { LakehouseContractServerClient } from '@finos/legend-server-lakehouse';
|
|
29
|
+
|
|
30
|
+
const invalidContractState = [
|
|
31
|
+
V1_ContractState.DRAFT,
|
|
32
|
+
V1_ContractState.REJECTED,
|
|
33
|
+
V1_ContractState.CLOSED,
|
|
34
|
+
];
|
|
35
|
+
|
|
36
|
+
export const dataContractContainsDataProduct = (
|
|
37
|
+
dataProduct: V1_DataProduct,
|
|
38
|
+
dataProductDeploymentID: number,
|
|
39
|
+
dataContract: V1_DataContract,
|
|
40
|
+
): boolean => {
|
|
41
|
+
if (invalidContractState.includes(dataContract.state)) {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
const contractResource = dataContract.resource;
|
|
45
|
+
if (
|
|
46
|
+
contractResource instanceof V1_AccessPointGroupReference &&
|
|
47
|
+
dataProductDeploymentID
|
|
48
|
+
) {
|
|
49
|
+
const didMatch =
|
|
50
|
+
dataProductDeploymentID === contractResource.dataProduct.owner.appDirId;
|
|
51
|
+
const nameMatch =
|
|
52
|
+
contractResource.dataProduct.name.toLowerCase() ===
|
|
53
|
+
dataProduct.name.toLowerCase();
|
|
54
|
+
const dataProductContainsContractAPG = dataProduct.accessPointGroups
|
|
55
|
+
.map((e) => e.id)
|
|
56
|
+
.includes(contractResource.accessPointGroup);
|
|
57
|
+
return didMatch && nameMatch && dataProductContainsContractAPG;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return false;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
// Assume contract already part of data product
|
|
64
|
+
export const dataContractContainsAccessGroup = (
|
|
65
|
+
group: V1_AccessPointGroup,
|
|
66
|
+
dataContract: V1_DataContract,
|
|
67
|
+
): boolean => {
|
|
68
|
+
const contractResource = dataContract.resource;
|
|
69
|
+
if (contractResource instanceof V1_AccessPointGroupReference) {
|
|
70
|
+
return contractResource.accessPointGroup === group.id;
|
|
71
|
+
}
|
|
72
|
+
return false;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export const isContractInTerminalState = (
|
|
76
|
+
contract: V1_DataContract | V1_LiteDataContract,
|
|
77
|
+
): boolean => {
|
|
78
|
+
return [
|
|
79
|
+
V1_ContractState.CLOSED,
|
|
80
|
+
V1_ContractState.COMPLETED,
|
|
81
|
+
V1_ContractState.REJECTED,
|
|
82
|
+
].includes(contract.state);
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export const isMemberOfContract = async (
|
|
86
|
+
user: string,
|
|
87
|
+
contract: V1_DataContract,
|
|
88
|
+
lakehouseContractServerClient: LakehouseContractServerClient,
|
|
89
|
+
token: string | undefined,
|
|
90
|
+
): Promise<boolean> => {
|
|
91
|
+
const consumer = contract.consumer;
|
|
92
|
+
if (consumer instanceof V1_AdhocTeam) {
|
|
93
|
+
return consumer.users.some((e) => e.name === user);
|
|
94
|
+
} else if (contract.members.length > 0) {
|
|
95
|
+
return contract.members.some((e) => e.user.name === user);
|
|
96
|
+
} else {
|
|
97
|
+
// If consumer is not an ad-hoc team and the contract's members are not defined,
|
|
98
|
+
// we will fetch the tasks and use the tasks to determine if user is a member
|
|
99
|
+
// of the contract.
|
|
100
|
+
const rawTasks = await lakehouseContractServerClient.getContractTasks(
|
|
101
|
+
contract.guid,
|
|
102
|
+
token,
|
|
103
|
+
);
|
|
104
|
+
const tasks = V1_deserializeTaskResponse(rawTasks);
|
|
105
|
+
return tasks.some((task) => task.rec.consumer === user);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export const contractContainsSystemAccount = (
|
|
110
|
+
contract: V1_DataContract,
|
|
111
|
+
): boolean => {
|
|
112
|
+
return (
|
|
113
|
+
(contract.consumer instanceof V1_AdhocTeam &&
|
|
114
|
+
contract.consumer.users.some(
|
|
115
|
+
(_user) => _user.userType === V1_UserType.SYSTEM_ACCOUNT,
|
|
116
|
+
)) ||
|
|
117
|
+
contract.members.some(
|
|
118
|
+
(_user) => _user.user.userType === V1_UserType.SYSTEM_ACCOUNT,
|
|
119
|
+
)
|
|
120
|
+
);
|
|
121
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import {
|
|
18
|
+
V1_AdhocTeam,
|
|
19
|
+
V1_AppDirOrganizationalScope,
|
|
20
|
+
V1_UnknownOrganizationalScopeType,
|
|
21
|
+
type V1_OrganizationalScope,
|
|
22
|
+
} from '@finos/legend-graph';
|
|
23
|
+
import type { DataProductDataAccess_LegendApplicationPlugin_Extension } from '../stores/DataProductDataAccess_LegendApplicationPlugin_Extension.js';
|
|
24
|
+
import { isNonNullable } from '@finos/legend-shared';
|
|
25
|
+
|
|
26
|
+
export const getOrganizationalScopeTypeName = (
|
|
27
|
+
scope: V1_OrganizationalScope,
|
|
28
|
+
plugins: DataProductDataAccess_LegendApplicationPlugin_Extension[],
|
|
29
|
+
): string => {
|
|
30
|
+
if (scope instanceof V1_AppDirOrganizationalScope) {
|
|
31
|
+
return 'AppDir Node';
|
|
32
|
+
} else if (scope instanceof V1_AdhocTeam) {
|
|
33
|
+
return 'Ad-hoc Team';
|
|
34
|
+
} else if (scope instanceof V1_UnknownOrganizationalScopeType) {
|
|
35
|
+
return 'Unknown';
|
|
36
|
+
} else {
|
|
37
|
+
const typeNames = plugins
|
|
38
|
+
.flatMap((plugin) =>
|
|
39
|
+
plugin
|
|
40
|
+
.getContractConsumerTypeRendererConfigs?.()
|
|
41
|
+
.flatMap((config) => config.organizationalScopeTypeName?.(scope)),
|
|
42
|
+
)
|
|
43
|
+
.filter(isNonNullable);
|
|
44
|
+
|
|
45
|
+
return typeNames[0] ?? 'Unknown';
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export const getOrganizationalScopeTypeDetails = (
|
|
50
|
+
scope: V1_OrganizationalScope,
|
|
51
|
+
plugins: DataProductDataAccess_LegendApplicationPlugin_Extension[],
|
|
52
|
+
): React.ReactNode => {
|
|
53
|
+
if (
|
|
54
|
+
scope instanceof V1_AppDirOrganizationalScope ||
|
|
55
|
+
scope instanceof V1_AdhocTeam ||
|
|
56
|
+
scope instanceof V1_UnknownOrganizationalScopeType
|
|
57
|
+
) {
|
|
58
|
+
return undefined;
|
|
59
|
+
} else {
|
|
60
|
+
const detailsRenderers = plugins
|
|
61
|
+
.flatMap((plugin) =>
|
|
62
|
+
plugin
|
|
63
|
+
.getContractConsumerTypeRendererConfigs?.()
|
|
64
|
+
.flatMap((config) => config.organizationalScopeTypeDetailsRenderer),
|
|
65
|
+
)
|
|
66
|
+
.filter(isNonNullable);
|
|
67
|
+
for (const detailsRenderer of detailsRenderers) {
|
|
68
|
+
const detailsComponent = detailsRenderer(scope);
|
|
69
|
+
if (detailsComponent) {
|
|
70
|
+
return detailsComponent;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export const stringifyOrganizationalScope = (
|
|
79
|
+
scope: V1_OrganizationalScope,
|
|
80
|
+
): string => {
|
|
81
|
+
if (scope instanceof V1_AppDirOrganizationalScope) {
|
|
82
|
+
return scope.appDirNode
|
|
83
|
+
.map((node) => `${node.level}: ${node.appDirId}`)
|
|
84
|
+
.join(', ');
|
|
85
|
+
} else if (scope instanceof V1_AdhocTeam) {
|
|
86
|
+
return scope.users.map((user) => user.name).join(', ');
|
|
87
|
+
} else if (scope instanceof V1_UnknownOrganizationalScopeType) {
|
|
88
|
+
return JSON.stringify(scope.content);
|
|
89
|
+
}
|
|
90
|
+
return '';
|
|
91
|
+
};
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"lib": [
|
|
4
|
+
"dom",
|
|
5
|
+
"dom.iterable",
|
|
6
|
+
"esnext",
|
|
7
|
+
"webworker",
|
|
8
|
+
"scripthost"
|
|
9
|
+
],
|
|
10
|
+
"composite": true,
|
|
11
|
+
"declaration": true,
|
|
12
|
+
"declarationMap": true,
|
|
13
|
+
"sourceMap": true,
|
|
14
|
+
"target": "esnext",
|
|
15
|
+
"module": "nodenext",
|
|
16
|
+
"skipLibCheck": true,
|
|
17
|
+
"resolveJsonModule": true,
|
|
18
|
+
"verbatimModuleSyntax": true,
|
|
19
|
+
"strict": true,
|
|
20
|
+
"noImplicitOverride": true,
|
|
21
|
+
"noUncheckedIndexedAccess": true,
|
|
22
|
+
"exactOptionalPropertyTypes": true,
|
|
23
|
+
"forceConsistentCasingInFileNames": true,
|
|
24
|
+
"outDir": "./lib",
|
|
25
|
+
"tsBuildInfoFile": "./build/prod.tsbuildinfo",
|
|
26
|
+
"rootDir": "./src",
|
|
27
|
+
"jsx": "react-jsx",
|
|
28
|
+
"moduleResolution": "nodenext",
|
|
29
|
+
"moduleDetection": "force",
|
|
30
|
+
"isolatedModules": true,
|
|
31
|
+
"esModuleInterop": true,
|
|
32
|
+
"allowSyntheticDefaultImports": true,
|
|
33
|
+
"resolvePackageJsonExports": true,
|
|
34
|
+
"resolvePackageJsonImports": true,
|
|
35
|
+
"preserveConstEnums": true,
|
|
36
|
+
"incremental": true,
|
|
37
|
+
"useDefineForClassFields": true,
|
|
38
|
+
"noImplicitAny": true,
|
|
39
|
+
"noImplicitThis": true,
|
|
40
|
+
"strictNullChecks": true,
|
|
41
|
+
"strictFunctionTypes": true,
|
|
42
|
+
"strictBindCallApply": true,
|
|
43
|
+
"strictPropertyInitialization": true,
|
|
44
|
+
"strictBuiltinIteratorReturn": true,
|
|
45
|
+
"alwaysStrict": true,
|
|
46
|
+
"useUnknownInCatchVariables": true
|
|
47
|
+
},
|
|
48
|
+
"references": [
|
|
49
|
+
{
|
|
50
|
+
"path": "./tsconfig.package.json"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"files": [
|
|
54
|
+
"./src/index.ts",
|
|
55
|
+
"./src/__lib__/DSL_DataProduct_Event.ts",
|
|
56
|
+
"./src/components/__test-utils__/StateTestUtils.ts",
|
|
57
|
+
"./src/components/__test-utils__/TEST_DATA__LakehouseContractData.ts",
|
|
58
|
+
"./src/components/__test-utils__/TEST_DATA__LakehouseDataProducts.ts",
|
|
59
|
+
"./src/stores/BaseLayoutState.ts",
|
|
60
|
+
"./src/stores/BaseViewerState.ts",
|
|
61
|
+
"./src/stores/DataProductDataAccess_LegendApplicationPlugin_Extension.ts",
|
|
62
|
+
"./src/stores/ProductViewerNavigation.ts",
|
|
63
|
+
"./src/stores/DataProduct/DataProductAPGState.ts",
|
|
64
|
+
"./src/stores/DataProduct/DataProductDataAccessState.ts",
|
|
65
|
+
"./src/stores/DataProduct/DataProductViewerState.ts",
|
|
66
|
+
"./src/stores/DataProduct/EntitlementsDataContractViewerState.ts",
|
|
67
|
+
"./src/stores/TerminalProduct/TerminalProductViewerState.ts",
|
|
68
|
+
"./src/utils/DataContractUtils.ts",
|
|
69
|
+
"./src/utils/LakehouseUtils.ts",
|
|
70
|
+
"./src/components/Core_DataProductDataAccess_LegendApplicationPlugin.tsx",
|
|
71
|
+
"./src/components/ProductViewer.tsx",
|
|
72
|
+
"./src/components/ProductWiki.tsx",
|
|
73
|
+
"./src/components/DataProduct/DataProductDataAccess.tsx",
|
|
74
|
+
"./src/components/DataProduct/DataProductSupportInfo.tsx",
|
|
75
|
+
"./src/components/DataProduct/DataContract/EntitlementsDataContractCreator.tsx",
|
|
76
|
+
"./src/components/DataProduct/DataContract/EntitlementsDataContractViewer.tsx",
|
|
77
|
+
"./src/components/DataProduct/Subscriptions/DataProductSubscriptionsViewer.tsx",
|
|
78
|
+
"./src/components/TerminalProduct/TerminalProductPrice.tsx",
|
|
79
|
+
"./src/components/UserRenderer/MultiUserRenderer.tsx",
|
|
80
|
+
"./src/components/UserRenderer/UserRenderer.tsx"
|
|
81
|
+
],
|
|
82
|
+
"include": [
|
|
83
|
+
"src/**/*.ts",
|
|
84
|
+
"src/**/*.tsx",
|
|
85
|
+
"src/**/*.json"
|
|
86
|
+
],
|
|
87
|
+
"exclude": [
|
|
88
|
+
"src/**/__tests__/**/*.*",
|
|
89
|
+
"src/**/__mocks__/**/*.*"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"lib": [
|
|
4
|
+
"dom",
|
|
5
|
+
"dom.iterable",
|
|
6
|
+
"esnext",
|
|
7
|
+
"webworker",
|
|
8
|
+
"scripthost"
|
|
9
|
+
],
|
|
10
|
+
"composite": true,
|
|
11
|
+
"declaration": true,
|
|
12
|
+
"declarationMap": true,
|
|
13
|
+
"sourceMap": true,
|
|
14
|
+
"target": "esnext",
|
|
15
|
+
"module": "nodenext",
|
|
16
|
+
"skipLibCheck": true,
|
|
17
|
+
"resolveJsonModule": true,
|
|
18
|
+
"verbatimModuleSyntax": true,
|
|
19
|
+
"strict": true,
|
|
20
|
+
"noImplicitOverride": true,
|
|
21
|
+
"noUncheckedIndexedAccess": true,
|
|
22
|
+
"exactOptionalPropertyTypes": true,
|
|
23
|
+
"forceConsistentCasingInFileNames": true,
|
|
24
|
+
"outDir": "./lib",
|
|
25
|
+
"tsBuildInfoFile": "./build/package.tsbuildinfo",
|
|
26
|
+
"rootDir": "./",
|
|
27
|
+
"moduleResolution": "nodenext",
|
|
28
|
+
"moduleDetection": "force",
|
|
29
|
+
"isolatedModules": true,
|
|
30
|
+
"esModuleInterop": true,
|
|
31
|
+
"allowSyntheticDefaultImports": true,
|
|
32
|
+
"resolvePackageJsonExports": true,
|
|
33
|
+
"resolvePackageJsonImports": true,
|
|
34
|
+
"preserveConstEnums": true,
|
|
35
|
+
"incremental": true,
|
|
36
|
+
"useDefineForClassFields": true,
|
|
37
|
+
"noImplicitAny": true,
|
|
38
|
+
"noImplicitThis": true,
|
|
39
|
+
"strictNullChecks": true,
|
|
40
|
+
"strictFunctionTypes": true,
|
|
41
|
+
"strictBindCallApply": true,
|
|
42
|
+
"strictPropertyInitialization": true,
|
|
43
|
+
"strictBuiltinIteratorReturn": true,
|
|
44
|
+
"alwaysStrict": true,
|
|
45
|
+
"useUnknownInCatchVariables": true
|
|
46
|
+
},
|
|
47
|
+
"files": [
|
|
48
|
+
"./package.json"
|
|
49
|
+
],
|
|
50
|
+
"include": [
|
|
51
|
+
"package.json"
|
|
52
|
+
],
|
|
53
|
+
"exclude": [
|
|
54
|
+
"/home/runner/work/legend-studio/legend-studio/packages/legend-extension-dsl-data-product/lib"
|
|
55
|
+
]
|
|
56
|
+
}
|