@itwin/grouping-mapping-widget 0.5.8 → 0.7.0
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/README.md +84 -0
- package/lib/cjs/grouping-mapping-widget.d.ts +1 -1
- package/lib/cjs/grouping-mapping-widget.js +3 -2
- package/lib/cjs/grouping-mapping-widget.js.map +1 -1
- package/lib/cjs/test/GroupingMappingCustomUI.test.d.ts +2 -0
- package/lib/cjs/test/GroupingMappingCustomUI.test.js +162 -0
- package/lib/cjs/test/GroupingMappingCustomUI.test.js.map +1 -0
- package/lib/cjs/test/WidgetHeader.test.d.ts +2 -0
- package/lib/cjs/test/WidgetHeader.test.js +36 -0
- package/lib/cjs/test/WidgetHeader.test.js.map +1 -0
- package/lib/cjs/test/test-utils.d.ts +72 -0
- package/lib/cjs/test/test-utils.js +71 -0
- package/lib/cjs/test/test-utils.js.map +1 -0
- package/lib/cjs/widget/components/CalculatedPropertyAction.d.ts +2 -2
- package/lib/cjs/widget/components/CalculatedPropertyAction.js +13 -13
- package/lib/cjs/widget/components/CalculatedPropertyAction.js.map +1 -1
- package/lib/cjs/widget/components/CalculatedPropertyTable.d.ts +5 -5
- package/lib/cjs/widget/components/CalculatedPropertyTable.js.map +1 -1
- package/lib/cjs/widget/components/ConfirmMappingsImport.d.ts +3 -3
- package/lib/cjs/widget/components/ConfirmMappingsImport.js.map +1 -1
- package/lib/cjs/widget/components/CustomCalculationAction.d.ts +2 -2
- package/lib/cjs/widget/components/CustomCalculationAction.js +5 -5
- package/lib/cjs/widget/components/CustomCalculationAction.js.map +1 -1
- package/lib/cjs/widget/components/CustomCalculationTable.d.ts +5 -5
- package/lib/cjs/widget/components/CustomCalculationTable.js.map +1 -1
- package/lib/cjs/widget/components/GroupAction.d.ts +4 -3
- package/lib/cjs/widget/components/GroupAction.js +82 -75
- package/lib/cjs/widget/components/GroupAction.js.map +1 -1
- package/lib/cjs/widget/components/GroupAction.scss +1 -13
- package/lib/cjs/widget/components/GroupPropertyAction.d.ts +2 -1
- package/lib/cjs/widget/components/GroupPropertyAction.js +27 -26
- package/lib/cjs/widget/components/GroupPropertyAction.js.map +1 -1
- package/lib/cjs/widget/components/GroupPropertyTable.d.ts +5 -5
- package/lib/cjs/widget/components/GroupPropertyTable.js.map +1 -1
- package/lib/cjs/widget/components/Grouping.d.ts +6 -1
- package/lib/cjs/widget/components/Grouping.js +128 -66
- package/lib/cjs/widget/components/Grouping.js.map +1 -1
- package/lib/cjs/widget/components/Grouping.scss +21 -2
- package/lib/cjs/widget/components/GroupingMapping.d.ts +8 -3
- package/lib/cjs/widget/components/GroupingMapping.js +22 -9
- package/lib/cjs/widget/components/GroupingMapping.js.map +1 -1
- package/lib/cjs/widget/components/Mapping.d.ts +1 -1
- package/lib/cjs/widget/components/Mapping.js +6 -7
- package/lib/cjs/widget/components/Mapping.js.map +1 -1
- package/lib/cjs/widget/components/Mapping.scss +4 -5
- package/lib/cjs/widget/components/MappingAction.js +1 -2
- package/lib/cjs/widget/components/MappingAction.js.map +1 -1
- package/lib/cjs/widget/components/MappingImportWizardModal.js.map +1 -1
- package/lib/cjs/widget/components/PropertyMenu.d.ts +2 -2
- package/lib/cjs/widget/components/PropertyMenu.js +7 -8
- package/lib/cjs/widget/components/PropertyMenu.js.map +1 -1
- package/lib/cjs/widget/components/SelectMappings.d.ts +2 -2
- package/lib/cjs/widget/components/SelectMappings.js +2 -2
- package/lib/cjs/widget/components/SelectMappings.js.map +1 -1
- package/lib/cjs/widget/components/context/GroupingMappingCustomUIContext.d.ts +6 -0
- package/lib/cjs/widget/components/context/GroupingMappingCustomUIContext.js +25 -0
- package/lib/cjs/widget/components/context/GroupingMappingCustomUIContext.js.map +1 -0
- package/lib/cjs/widget/components/context/MappingClientContext.d.ts +5 -5
- package/lib/cjs/widget/components/context/MappingClientContext.js +1 -5
- package/lib/cjs/widget/components/context/MappingClientContext.js.map +1 -1
- package/lib/cjs/widget/components/customUI/GroupingMappingCustomUI.d.ts +91 -0
- package/lib/cjs/widget/components/customUI/GroupingMappingCustomUI.js +9 -0
- package/lib/cjs/widget/components/customUI/GroupingMappingCustomUI.js.map +1 -0
- package/lib/cjs/widget/components/customUI/ManualGroupingCustomUI.d.ts +6 -0
- package/lib/cjs/widget/components/customUI/ManualGroupingCustomUI.js +31 -0
- package/lib/cjs/widget/components/customUI/ManualGroupingCustomUI.js.map +1 -0
- package/lib/{esm/widget/IMappingClient.js → cjs/widget/components/customUI/ManualGroupingCustomUI.scss} +13 -2
- package/lib/cjs/widget/components/customUI/SearchGroupingCustomUI.d.ts +6 -0
- package/lib/cjs/widget/components/customUI/SearchGroupingCustomUI.js +97 -0
- package/lib/cjs/widget/components/customUI/SearchGroupingCustomUI.js.map +1 -0
- package/lib/cjs/widget/{IMappingClient.js → components/customUI/SearchGroupingCustomUI.scss} +13 -3
- package/lib/esm/grouping-mapping-widget.d.ts +1 -1
- package/lib/esm/grouping-mapping-widget.js +1 -1
- package/lib/esm/grouping-mapping-widget.js.map +1 -1
- package/lib/esm/test/GroupingMappingCustomUI.test.d.ts +2 -0
- package/lib/esm/test/GroupingMappingCustomUI.test.js +138 -0
- package/lib/esm/test/GroupingMappingCustomUI.test.js.map +1 -0
- package/lib/esm/test/WidgetHeader.test.d.ts +2 -0
- package/lib/esm/test/WidgetHeader.test.js +31 -0
- package/lib/esm/test/WidgetHeader.test.js.map +1 -0
- package/lib/esm/test/test-utils.d.ts +72 -0
- package/lib/esm/test/test-utils.js +42 -0
- package/lib/esm/test/test-utils.js.map +1 -0
- package/lib/esm/widget/components/CalculatedPropertyAction.d.ts +2 -2
- package/lib/esm/widget/components/CalculatedPropertyAction.js +13 -13
- package/lib/esm/widget/components/CalculatedPropertyAction.js.map +1 -1
- package/lib/esm/widget/components/CalculatedPropertyTable.d.ts +5 -5
- package/lib/esm/widget/components/CalculatedPropertyTable.js.map +1 -1
- package/lib/esm/widget/components/ConfirmMappingsImport.d.ts +3 -3
- package/lib/esm/widget/components/ConfirmMappingsImport.js.map +1 -1
- package/lib/esm/widget/components/CustomCalculationAction.d.ts +2 -2
- package/lib/esm/widget/components/CustomCalculationAction.js +5 -5
- package/lib/esm/widget/components/CustomCalculationAction.js.map +1 -1
- package/lib/esm/widget/components/CustomCalculationTable.d.ts +5 -5
- package/lib/esm/widget/components/CustomCalculationTable.js.map +1 -1
- package/lib/esm/widget/components/GroupAction.d.ts +4 -3
- package/lib/esm/widget/components/GroupAction.js +85 -78
- package/lib/esm/widget/components/GroupAction.js.map +1 -1
- package/lib/esm/widget/components/GroupAction.scss +1 -13
- package/lib/esm/widget/components/GroupPropertyAction.d.ts +2 -1
- package/lib/esm/widget/components/GroupPropertyAction.js +27 -26
- package/lib/esm/widget/components/GroupPropertyAction.js.map +1 -1
- package/lib/esm/widget/components/GroupPropertyTable.d.ts +5 -5
- package/lib/esm/widget/components/GroupPropertyTable.js.map +1 -1
- package/lib/esm/widget/components/Grouping.d.ts +6 -1
- package/lib/esm/widget/components/Grouping.js +128 -66
- package/lib/esm/widget/components/Grouping.js.map +1 -1
- package/lib/esm/widget/components/Grouping.scss +21 -2
- package/lib/esm/widget/components/GroupingMapping.d.ts +8 -3
- package/lib/esm/widget/components/GroupingMapping.js +23 -10
- package/lib/esm/widget/components/GroupingMapping.js.map +1 -1
- package/lib/esm/widget/components/Mapping.d.ts +1 -1
- package/lib/esm/widget/components/Mapping.js +6 -7
- package/lib/esm/widget/components/Mapping.js.map +1 -1
- package/lib/esm/widget/components/Mapping.scss +4 -5
- package/lib/esm/widget/components/MappingAction.js +1 -2
- package/lib/esm/widget/components/MappingAction.js.map +1 -1
- package/lib/esm/widget/components/MappingImportWizardModal.js.map +1 -1
- package/lib/esm/widget/components/PropertyMenu.d.ts +2 -2
- package/lib/esm/widget/components/PropertyMenu.js +7 -8
- package/lib/esm/widget/components/PropertyMenu.js.map +1 -1
- package/lib/esm/widget/components/SelectMappings.d.ts +2 -2
- package/lib/esm/widget/components/SelectMappings.js +2 -2
- package/lib/esm/widget/components/SelectMappings.js.map +1 -1
- package/lib/esm/widget/components/context/GroupingMappingCustomUIContext.d.ts +6 -0
- package/lib/esm/widget/components/context/GroupingMappingCustomUIContext.js +20 -0
- package/lib/esm/widget/components/context/GroupingMappingCustomUIContext.js.map +1 -0
- package/lib/esm/widget/components/context/MappingClientContext.d.ts +5 -5
- package/lib/esm/widget/components/context/MappingClientContext.js +2 -6
- package/lib/esm/widget/components/context/MappingClientContext.js.map +1 -1
- package/lib/esm/widget/components/customUI/GroupingMappingCustomUI.d.ts +91 -0
- package/lib/esm/widget/components/customUI/GroupingMappingCustomUI.js +6 -0
- package/lib/esm/widget/components/customUI/GroupingMappingCustomUI.js.map +1 -0
- package/lib/esm/widget/components/customUI/ManualGroupingCustomUI.d.ts +6 -0
- package/lib/esm/widget/components/customUI/ManualGroupingCustomUI.js +26 -0
- package/lib/esm/widget/components/customUI/ManualGroupingCustomUI.js.map +1 -0
- package/lib/esm/widget/components/customUI/ManualGroupingCustomUI.scss +17 -0
- package/lib/esm/widget/components/customUI/SearchGroupingCustomUI.d.ts +6 -0
- package/lib/esm/widget/components/customUI/SearchGroupingCustomUI.js +92 -0
- package/lib/esm/widget/components/customUI/SearchGroupingCustomUI.js.map +1 -0
- package/lib/esm/widget/components/customUI/SearchGroupingCustomUI.scss +17 -0
- package/package.json +18 -4
- package/lib/cjs/widget/IMappingClient.d.ts +0 -327
- package/lib/cjs/widget/IMappingClient.js.map +0 -1
- package/lib/esm/widget/IMappingClient.d.ts +0 -327
- package/lib/esm/widget/IMappingClient.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchGroupingCustomUI.js","sourceRoot":"","sources":["../../../../../src/widget/components/customUI/SearchGroupingCustomUI.tsx"],"names":[],"mappings":"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","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport React from \"react\";\nimport { Button, LabeledTextarea, Text } from \"@itwin/itwinui-react\";\nimport type { GroupingCustomUIProps } from \"./GroupingMappingCustomUI\";\nimport { LoadingSpinner } from \"../utils\";\nimport \"./SearchGroupingCustomUI.scss\";\n\nconst SearchGroupingCustomUI = ({\n updateQuery,\n isUpdating,\n resetView,\n}: GroupingCustomUIProps) => {\n const [searchInput, setSearchInput] = React.useState(\"\");\n const isWrappedInQuotes = (text: string) => {\n return text.startsWith(`\"`) && text.endsWith(`\"`);\n };\n\n const needsAndOperator = (\n token: string,\n index: number,\n searchQuery: string[],\n ) =>\n isWrappedInQuotes(token) ||\n (index === 1 && isWrappedInQuotes(searchQuery[0]));\n\n const generateSearchQuery = (searchQuery: string[]) => {\n if (searchQuery.length === 0) {\n updateQuery(\"\");\n return;\n }\n\n let generatedSearchQuery = `SELECT be.ECInstanceId, be.ECClassId FROM bis.geometricelement3d be `;\n generatedSearchQuery += `LEFT JOIN bis.SpatialCategory cat ON be.Category.Id = cat.ECInstanceID LEFT JOIN ecdbmeta.ECClassDef ecc ON be.ECClassId = ecc.ECInstanceId `;\n generatedSearchQuery += `LEFT JOIN bis.PhysicalType pt ON be.TypeDefinition.Id = pt.ECInstanceID`;\n generatedSearchQuery += ` WHERE `;\n generatedSearchQuery += `((${searchQuery\n .map(\n (token, index) =>\n `${index === 0\n ? \"\"\n : needsAndOperator(token, index, searchQuery)\n ? \"AND\"\n : \"OR\"\n } be.codevalue LIKE '%${isWrappedInQuotes(token) ? token.slice(1, -1) : token\n }%'`,\n )\n .join(\" \")}) OR (${searchQuery\n .map(\n (token, index) =>\n `${index === 0\n ? \"\"\n : needsAndOperator(token, index, searchQuery)\n ? \"AND\"\n : \"OR\"\n } be.userlabel LIKE '%${isWrappedInQuotes(token) ? token.slice(1, -1) : token\n }%'`,\n )\n .join(\" \")})) OR ((${searchQuery\n .map(\n (token, index) =>\n `${index === 0\n ? \"\"\n : needsAndOperator(token, index, searchQuery)\n ? \"AND\"\n : \"OR\"\n } cat.codevalue LIKE '%${isWrappedInQuotes(token) ? token.slice(1, -1) : token\n }%'`,\n )\n .join(\" \")}) OR (${searchQuery\n .map(\n (token, index) =>\n `${index === 0\n ? \"\"\n : needsAndOperator(token, index, searchQuery)\n ? \"AND\"\n : \"OR\"\n } cat.userlabel LIKE '%${isWrappedInQuotes(token) ? token.slice(1, -1) : token\n }%'`,\n )\n .join(\" \")})) OR (${searchQuery\n .map(\n (token, index) =>\n `${index === 0\n ? \"\"\n : needsAndOperator(token, index, searchQuery)\n ? \"AND\"\n : \"OR\"\n } ecc.name LIKE '%${isWrappedInQuotes(token) ? token.slice(1, -1) : token\n }%'`,\n )\n .join(\" \")})`;\n // Physical Types\n generatedSearchQuery += ` OR ((${searchQuery\n .map(\n (token, index) =>\n `${index === 0\n ? \"\"\n : needsAndOperator(token, index, searchQuery)\n ? \"AND\"\n : \"OR\"\n } pt.codevalue LIKE '%${isWrappedInQuotes(token) ? token.slice(1, -1) : token\n }%'`,\n )\n .join(\" \")}) OR (${searchQuery\n .map(\n (token, index) =>\n `${index === 0\n ? \"\"\n : needsAndOperator(token, index, searchQuery)\n ? \"AND\"\n : \"OR\"\n } pt.userlabel LIKE '%${isWrappedInQuotes(token) ? token.slice(1, -1) : token\n }%'`,\n )\n .join(\" \")})) `;\n\n updateQuery(generatedSearchQuery);\n };\n\n return (\n <div className='gmw-search-form'>\n <Text>\n Generate a query by keywords. Keywords wrapped in double quotes will be\n considered a required criteria.\n </Text>\n <LabeledTextarea\n label='Query Keywords'\n required\n value={searchInput}\n onChange={(event) => setSearchInput(event.target.value)}\n disabled={isUpdating}\n placeholder={`E.g. \"red\" chair`}\n />\n <div className='gmw-search-actions'>\n {isUpdating && <LoadingSpinner />}\n <Button\n disabled={isUpdating}\n onClick={() =>\n generateSearchQuery(\n searchInput\n ? searchInput\n .replace(/(\\r\\n|\\n|\\r)/gm, \"\")\n .trim()\n .split(\" \")\n : [],\n )\n }\n >\n Apply\n </Button>\n <Button\n disabled={isUpdating}\n onClick={async () => {\n updateQuery(\"\");\n setSearchInput(\"\");\n if (resetView) {\n await resetView();\n }\n }}\n >\n Clear\n </Button>\n </div>\n </div>\n );\n};\n\nexport default SearchGroupingCustomUI;\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
@import "~@itwin/itwinui-css/scss/variables";
|
|
6
|
+
|
|
7
|
+
.gmw-search-form {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
gap: $iui-baseline;
|
|
11
|
+
margin-top: $iui-baseline;
|
|
12
|
+
> .gmw-search-actions {
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: flex-end;
|
|
15
|
+
gap: $iui-s;
|
|
16
|
+
}
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/grouping-mapping-widget",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "An iTwin.js 3D Viewer Widget that interfaces with the iTwin Reporting Platform.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Bentley",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@itwin/imodel-browser-react": "^0.12.1",
|
|
40
|
-
"@itwin/insights-client": "0.
|
|
40
|
+
"@itwin/insights-client": "^0.3.0",
|
|
41
41
|
"@itwin/itwinui-icons-react": "^1.7.0",
|
|
42
42
|
"@itwin/itwinui-react": "~1.42.0",
|
|
43
43
|
"classnames": "^2.3.1",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"simple-react-validator": "^1.6.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
+
"@faker-js/faker": "^7.5.0",
|
|
49
50
|
"@itwin/appui-abstract": "^3.2.0",
|
|
50
51
|
"@itwin/appui-layout-react": "^3.2.0",
|
|
51
52
|
"@itwin/appui-react": "^3.2.0",
|
|
@@ -66,12 +67,18 @@
|
|
|
66
67
|
"@itwin/presentation-components": "^3.2.0",
|
|
67
68
|
"@itwin/presentation-frontend": "^3.2.0",
|
|
68
69
|
"@itwin/webgl-compatibility": "^3.2.0",
|
|
70
|
+
"@testing-library/dom": "^8.12.0",
|
|
71
|
+
"@testing-library/jest-dom": "^5.16.3",
|
|
72
|
+
"@testing-library/react": "^12.1.4",
|
|
73
|
+
"@testing-library/user-event": "^14.1.1",
|
|
69
74
|
"@types/i18next": "^8.4.2",
|
|
75
|
+
"@types/jest": "^27.4.1",
|
|
70
76
|
"@types/node": "^14.14.20",
|
|
71
77
|
"@types/react": "^17.0.19",
|
|
72
78
|
"@types/react-dom": "^17.0.9",
|
|
73
79
|
"@types/react-redux": "^7.0.1",
|
|
74
80
|
"@types/react-table": "^7.7.0",
|
|
81
|
+
"@types/testing-library__jest-dom": "^5.14.3",
|
|
75
82
|
"@typescript-eslint/eslint-plugin": "^5.3.1",
|
|
76
83
|
"@typescript-eslint/parser": "^5.10.1",
|
|
77
84
|
"cpx2": "^3.0.0",
|
|
@@ -79,12 +86,18 @@
|
|
|
79
86
|
"eslint-plugin-node": "^11.1.0",
|
|
80
87
|
"eslint-plugin-react": "^7.25.1",
|
|
81
88
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
89
|
+
"jest": "^27.5.1",
|
|
90
|
+
"jest-cli": "^27.5.1",
|
|
91
|
+
"jest-transform-stub": "^2.0.0",
|
|
92
|
+
"msw": "^0.39.2",
|
|
82
93
|
"react": "^17.0.2",
|
|
83
94
|
"react-dom": "^17.0.2",
|
|
84
95
|
"react-redux": "^7.2.0",
|
|
85
96
|
"react-table": "^7.7.0",
|
|
86
97
|
"redux": "^4.1.0",
|
|
87
98
|
"rimraf": "^3.0.2",
|
|
99
|
+
"ts-jest": "^27.1.3",
|
|
100
|
+
"typemoq": "^2.1.0",
|
|
88
101
|
"typescript": "~4.3.0"
|
|
89
102
|
},
|
|
90
103
|
"peerDependencies": {
|
|
@@ -114,7 +127,8 @@
|
|
|
114
127
|
"lint:fix": "npm run lint -- --fix",
|
|
115
128
|
"pseudolocalize": "betools pseudolocalize --englishDir ./public/locales/en --out ./public/locales/en-PSEUDO",
|
|
116
129
|
"rebuild": "npm run clean && npm run build",
|
|
117
|
-
"test": ""
|
|
130
|
+
"test": "jest",
|
|
131
|
+
"test:watch": "jest --watch "
|
|
118
132
|
},
|
|
119
|
-
"readme": "# @itwin/grouping-mapping-widget\r\n\r\nCopyright © Bentley Systems, Incorporated. All rights reserved.\r\nThe Grouping Mapping widget is a UI component for iTwin Viewer applications that simplifies how users (and developers) interface with the [Reporting Platform APIs](https://developer.bentley.com/apis/insights/overview/).\r\nThe grouping-mapping-widget package provides a UiProvider class - `GroupingMappingProvider` - which can be passed into the `uiProviders` prop of the iTwin Viewer's `<Viewer />` component.\r\n\r\n## Getting Started\r\n\r\nThis is not a standalone UI and requires a parent iTwin Viewer application to work as intended.\r\nA guide on how to create a basic iTwin Viewer application can be found here: <https://www.itwinjs.org/learning/tutorials/develop-web-viewer/>.\r\nThis package provides a viewer 'widget'. Documentation on how to add a widget to your application can be found here: <https://developer.bentley.com/tutorials/itwin-viewer-hello-world/#2-your-first-ui-widget>.\r\n\r\n## Permissions and Scopes\r\n\r\nThe SPA client used by your iTwin viewer must have these additional scopes:\r\n\r\n- `insights:read`\r\n- `insights:modify`\r\n- `projects:read`\r\n\r\nIn addition, users must have the `imodels_read` and `imodels_write` [permissions](https://developer.bentley.com/apis/insights/operations/create-mapping/#authorization) assigned at either the Project or iModel level. Further instruction on how to create roles and assign permissions can be found in the [iTwin Platform Projects API documentation](https://developer.bentley.com/apis/projects/tutorials/).\r\n\r\n## Sample usage\r\n\r\n```tsx\r\nimport { GroupingMappingProvider } from \"@itwin/grouping-mapping-widget\";\r\n<Viewer\r\n ...\r\n uiProviders={[new GroupingMappingProvider()]}\r\n/>\r\n```\r\n"
|
|
133
|
+
"readme": "# @itwin/grouping-mapping-widget\r\n\r\nCopyright © Bentley Systems, Incorporated. All rights reserved.\r\nThe Grouping Mapping widget is a UI component for iTwin Viewer applications that simplifies how users (and developers) interface with the [Reporting Platform APIs](https://developer.bentley.com/apis/insights/overview/).\r\nThe grouping-mapping-widget package provides a UiProvider class - `GroupingMappingProvider` - which can be passed into the `uiProviders` prop of the iTwin Viewer's `<Viewer />` component.\r\n\r\n## Getting Started\r\n\r\nThis is not a standalone UI and requires a parent iTwin Viewer application to work as intended.\r\nA guide on how to create a basic iTwin Viewer application can be found here: <https://www.itwinjs.org/learning/tutorials/develop-web-viewer/>.\r\nThis package provides a viewer 'widget'. Documentation on how to add a widget to your application can be found here: <https://developer.bentley.com/tutorials/itwin-viewer-hello-world/#2-your-first-ui-widget>.\r\n\r\n## Permissions and Scopes\r\n\r\nThe SPA client used by your iTwin viewer must have these additional scopes:\r\n\r\n- `insights:read`\r\n- `insights:modify`\r\n- `projects:read`\r\n\r\nIn addition, users must have the `imodels_read` and `imodels_write` [permissions](https://developer.bentley.com/apis/insights/operations/create-mapping/#authorization) assigned at either the Project or iModel level. Further instruction on how to create roles and assign permissions can be found in the [iTwin Platform Projects API documentation](https://developer.bentley.com/apis/projects/tutorials/).\r\n\r\n## Sample usage\r\n\r\n```tsx\r\nimport { GroupingMappingProvider } from \"@itwin/grouping-mapping-widget\";\r\n<Viewer\r\n ...\r\n uiProviders={[new GroupingMappingProvider()]}\r\n/>\r\n```\r\n\r\n## Custom UI\r\n\r\nThis package provides an interface to define your own custom UI or callback functions in grouping mapping widget. There are different types of custom UIs provided.\r\n\r\n### Grouping Custom UI\r\n\r\nYou can use your own UI component to define group creation method.\r\n\r\nAn example of grouping custom UI, [ManualGroupingCustomUI](https://github.com/iTwin/viewer-components-react/blob/master/packages/itwin/grouping-mapping-widget/src/widget/components/customUI/ManualGroupingCustomUI.tsx) helps user to manually define ECSQL query for groups.\r\n\r\nIn `GroupingCustomUIProps`:\r\n\r\n- `updateQuery` is used to run the query and visualize results in the viewer.\r\n- `isUpdating` keeps track of the status of query execution.\r\n- `resetView` enables you to reset the viewer state.\r\n\r\nTo configure your own grouping custom UI, you need to give it:\r\n\r\n- a `type` as `GroupingMappingCustomUIType.Grouping`\r\n- a `name` as identifier\r\n- a `displayLabel` which will be shown in the 'Add Group' dropdown list\r\n- a `uiComponent` like above\r\n- an optional `icon`\r\n\r\nYou can define your UI provider as follows in the GroupingMappingProvider:\r\n\r\n```tsx\r\nnew GroupingMappingProvider({\r\n customUIs: [\r\n {\r\n type: GroupingMappingCustomUIType.Grouping,\r\n name: \"Manual\",\r\n displayLabel: \"Manual Query\",\r\n uiComponent: ManualGroupingCustomUI,\r\n icon: <SvgDraw />,\r\n },\r\n ],\r\n});\r\n```\r\n\r\nAfter adding the grouping custom UI, it will be presented in the 'Add Group' drop down list.\r\n\r\n\r\n\r\n### Context Custom UI\r\n\r\nYou can also add custom UI in context menu for each group. This could be UI driven interaction or simply a callback function to execute your own code.\r\n\r\nYou can use the `iModelId`, `mappingId` and `groupId` in `ContextCustomUIProps` provided by Grouping Mapping Widget in your UI component or callback.\r\n\r\nTo configure your own context custom UI, you need to give it:\r\n\r\n- a `type` as `GroupingMappingCustomUIType.Context`\r\n- a `name` as identifier\r\n- a `displayLabel` which will be shown in the context dropdown list in each group tile\r\n- an optional `uiComponent` which will be presented in the widget as a UI component\r\n- an optional `onClick` callback function where you could make your own API calls\r\n- an optional `icon`\r\n\r\nYou can define your context custom UI as following example in the GroupingMappingProvider with an example is to use [clash detection](https://www.itwinjs.org/sandboxes/iTwinPlatform/Clash%20Review) in the widget:\r\n\r\n```tsx\r\nconst customCB = (groupId: string, mappingId: string, iModelId: string) => {\r\n toaster.informational(`Called callback for group ${groupId}`)\r\n}\r\n\r\nnew GroupingMappingProvider({\r\n customUIs: [\r\n {\r\n type: GroupingMappingCustomUIType.Context,\r\n name: \"ClashDetection\",\r\n displayLabel: \"Clash Detection\",\r\n uiComponent: ClashDetectionCustomUI,\r\n onClick: customCB,\r\n icon: <SvgClash />,\r\n },\r\n ],\r\n});\r\n```\r\n\r\nAfter adding the context custom UI, the context menu item will look like this with additional `Clash Detection` menu item.\r\n\r\n\r\n"
|
|
120
134
|
}
|
|
@@ -1,327 +0,0 @@
|
|
|
1
|
-
import type { AccessToken } from "@itwin/core-bentley";
|
|
2
|
-
import type { CalculatedProperty, CalculatedPropertyCreate, CalculatedPropertySingle, CalculatedPropertyUpdate, CustomCalculation, CustomCalculationCreate, CustomCalculationSingle, CustomCalculationUpdate, Group, GroupCreate, GroupProperty, GroupPropertyCreate, GroupPropertySingle, GroupPropertyUpdate, GroupSingle, GroupUpdate, Mapping, MappingCopy, MappingCreate, MappingSingle, MappingUpdate } from "@itwin/insights-client";
|
|
3
|
-
export interface IMappingClient {
|
|
4
|
-
/**
|
|
5
|
-
* Gets all Mappings for an iModel.
|
|
6
|
-
*
|
|
7
|
-
* @summary Get Mappings.
|
|
8
|
-
* @param {string} iModelId The iModel Id.
|
|
9
|
-
* @param {string} accessToken OAuth access token with scope `insights:read`.
|
|
10
|
-
* @memberof IMappingClient
|
|
11
|
-
* @see https://developer.bentley.com/apis/insights/operations/get-mappings/
|
|
12
|
-
*/
|
|
13
|
-
getMappings(accessToken: AccessToken, iModelId: string): Promise<Mapping[]>;
|
|
14
|
-
/**
|
|
15
|
-
* Gets a Mapping for an iModel.
|
|
16
|
-
*
|
|
17
|
-
* @summary Get Mapping.
|
|
18
|
-
* @param {string} iModelId The iModel Id.
|
|
19
|
-
* @param {string} mappingId The Mapping Id.
|
|
20
|
-
* @param {string} accessToken OAuth access token with scope `insights:read`.
|
|
21
|
-
* @memberof IMappingClient
|
|
22
|
-
* @see https://developer.bentley.com/apis/insights/operations/get-mapping/
|
|
23
|
-
*/
|
|
24
|
-
getMapping(accessToken: AccessToken, mappingId: string, iModelId: string): Promise<MappingSingle>;
|
|
25
|
-
/**
|
|
26
|
-
* Creates a Mapping for an iModel.
|
|
27
|
-
*
|
|
28
|
-
* @summary Create Mapping.
|
|
29
|
-
* @param {string} iModelId Id of the iModel for which to create a new Mapping.
|
|
30
|
-
* @param {string} accessToken OAuth access token with scope `insights:modify`.
|
|
31
|
-
* @param {MappingCreate} mapping Request body.
|
|
32
|
-
* @memberof IMappingClient
|
|
33
|
-
* @see https://developer.bentley.com/apis/insights/operations/create-mapping/
|
|
34
|
-
*/
|
|
35
|
-
createMapping(accessToken: AccessToken, iModelId: string, mapping: MappingCreate): Promise<MappingSingle>;
|
|
36
|
-
/**
|
|
37
|
-
* Updates a Mapping for an iModel.
|
|
38
|
-
*
|
|
39
|
-
* @summary Update Mapping.
|
|
40
|
-
* @param {string} iModelId The iModel Id.
|
|
41
|
-
* @param {string} mappingId Id of the Mapping to be updated.
|
|
42
|
-
* @param {string} accessToken OAuth access token with scope `insights:modify`.
|
|
43
|
-
* @param {MappingUpdate} mapping Request body.
|
|
44
|
-
* @memberof IMappingClient
|
|
45
|
-
* @see https://developer.bentley.com/apis/insights/operations/update-mapping/
|
|
46
|
-
*/
|
|
47
|
-
updateMapping(accessToken: AccessToken, iModelId: string, mappingId: string, mapping: MappingUpdate): Promise<MappingSingle>;
|
|
48
|
-
/**
|
|
49
|
-
* Deletes a Mapping for an iModel.
|
|
50
|
-
*
|
|
51
|
-
* @summary Delete Mapping.
|
|
52
|
-
* @param {string} iModelId The iModel Id.
|
|
53
|
-
* @param {string} mappingId Id of the Mapping to be deleted.
|
|
54
|
-
* @param {string} accessToken OAuth access token with scope `insights:modify`.
|
|
55
|
-
* @memberof IMappingClient
|
|
56
|
-
* @see https://developer.bentley.com/apis/insights/operations/delete-mapping/
|
|
57
|
-
*/
|
|
58
|
-
deleteMapping(accessToken: AccessToken, iModelId: string, mappingId: string): Promise<Response>;
|
|
59
|
-
/**
|
|
60
|
-
* Copies a Mapping and all its Groups, GroupProperties, CalculatedProperties, and CustomCalculations to a target iModel.
|
|
61
|
-
*
|
|
62
|
-
* @summary Copy Mapping.
|
|
63
|
-
* @param {string} iModelId Id of the source Mapping's iModel.
|
|
64
|
-
* @param {string} mappingId Id of the source Mapping.
|
|
65
|
-
* @param {string} accessToken OAuth access token with scope `insights:modify`.
|
|
66
|
-
* @param {MappingCopy} mappingCopy Request body.
|
|
67
|
-
* @memberof IMappingClient
|
|
68
|
-
* @see https://developer.bentley.com/apis/insights/operations/copy-mapping/
|
|
69
|
-
*/
|
|
70
|
-
copyMapping(accessToken: AccessToken, iModelId: string, mappingId: string, mappingCopy: MappingCopy): Promise<MappingSingle>;
|
|
71
|
-
/**
|
|
72
|
-
* Gets all Groups for a Mapping.
|
|
73
|
-
*
|
|
74
|
-
* @summary Get Groups.
|
|
75
|
-
* @param {string} iModelId The iModel Id.
|
|
76
|
-
* @param {string} mappingId The Mapping Id.
|
|
77
|
-
* @param {string} accessToken OAuth access token with scope `insights:read`.
|
|
78
|
-
* @memberof IMappingClient
|
|
79
|
-
* @see https://developer.bentley.com/apis/insights/operations/get-groups/
|
|
80
|
-
*/
|
|
81
|
-
getGroups(accessToken: AccessToken, iModelId: string, mappingId: string): Promise<Group[]>;
|
|
82
|
-
/**
|
|
83
|
-
* Creates a Group for an iModel data source Mapping.
|
|
84
|
-
*
|
|
85
|
-
* @summary Create Group
|
|
86
|
-
* @param {string} iModelId The iModel Id.
|
|
87
|
-
* @param {string} mappingId Id of the Mapping for which to create a new Group.
|
|
88
|
-
* @param {string} accessToken OAuth access token with scope `insights:modify`.
|
|
89
|
-
* @param {GroupCreate} group Request body.
|
|
90
|
-
* @memberof IMappingClient
|
|
91
|
-
* @see https://developer.bentley.com/apis/insights/operations/create-group/
|
|
92
|
-
*/
|
|
93
|
-
createGroup(accessToken: AccessToken, iModelId: string, mappingId: string, group: GroupCreate): Promise<GroupSingle>;
|
|
94
|
-
/**
|
|
95
|
-
* Gets a Group for a Mapping.
|
|
96
|
-
*
|
|
97
|
-
* @summary Get Group.
|
|
98
|
-
* @param {string} iModelId The iModel Id.
|
|
99
|
-
* @param {string} mappingId The Mapping Id.
|
|
100
|
-
* @param {string} groupId The Group Id.
|
|
101
|
-
* @param {string} accessToken OAuth access token with scope `insights:read`.
|
|
102
|
-
* @memberof IMappingClient
|
|
103
|
-
* @see https://developer.bentley.com/apis/insights/operations/get-group/
|
|
104
|
-
*/
|
|
105
|
-
getGroup(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string): Promise<GroupSingle>;
|
|
106
|
-
/**
|
|
107
|
-
* Updates a Group for a Mapping.
|
|
108
|
-
*
|
|
109
|
-
* @summary Update Group.
|
|
110
|
-
* @param {string} iModelId Globally Unique Identifier of the target iModel.
|
|
111
|
-
* @param {string} mappingId Globally Unique Identifier of the target Mapping.
|
|
112
|
-
* @param {string} groupId Id of the Group to be updated.
|
|
113
|
-
* @param {string} accessToken OAuth access token with scope `insights:modify`.
|
|
114
|
-
* @param {GroupUpdate} group Request body.
|
|
115
|
-
* @memberof IMappingClient
|
|
116
|
-
* @see https://developer.bentley.com/apis/insights/operations/update-group/
|
|
117
|
-
*/
|
|
118
|
-
updateGroup(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, group: GroupUpdate): Promise<GroupSingle>;
|
|
119
|
-
/**
|
|
120
|
-
* Deletes a Group for a Mapping.
|
|
121
|
-
*
|
|
122
|
-
* @summary Delete Group.
|
|
123
|
-
* @param {string} iModelId The iModel Id.
|
|
124
|
-
* @param {string} mappingId The Mapping Id.
|
|
125
|
-
* @param {string} groupId Id of the Group to be deleted.
|
|
126
|
-
* @param {string} accessToken OAuth access token with scope `insights:modify`.
|
|
127
|
-
* @memberof IMappingClient
|
|
128
|
-
* @see https://developer.bentley.com/apis/insights/operations/delete-group/
|
|
129
|
-
*/
|
|
130
|
-
deleteGroup(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string): Promise<Response>;
|
|
131
|
-
/**
|
|
132
|
-
* Gets all GroupProperties for a Group.
|
|
133
|
-
*
|
|
134
|
-
* @summary Get GroupProperties.
|
|
135
|
-
* @param {string} iModelId The iModel Id.
|
|
136
|
-
* @param {string} mappingId The Mapping Id.
|
|
137
|
-
* @param {string} groupId The Group Id.
|
|
138
|
-
* @param {string} accessToken OAuth access token with scope `insights:read`.
|
|
139
|
-
* @memberof IMappingClient
|
|
140
|
-
* @see https://developer.bentley.com/apis/insights/operations/get-groupproperties/
|
|
141
|
-
*/
|
|
142
|
-
getGroupProperties(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string): Promise<GroupProperty[]>;
|
|
143
|
-
/**
|
|
144
|
-
* Gets a GroupProperty for a Group.
|
|
145
|
-
*
|
|
146
|
-
* @summary Get GroupProperty.
|
|
147
|
-
* @param {string} iModelId The iModel Id.
|
|
148
|
-
* @param {string} mappingId The Mapping Id.
|
|
149
|
-
* @param {string} groupId The Group Id.
|
|
150
|
-
* @param {string} propertyId The GroupProperty Id.
|
|
151
|
-
* @param {string} accessToken access token with scope `insights:read`.
|
|
152
|
-
* @memberof IMappingClient
|
|
153
|
-
* @see https://developer.bentley.com/apis/insights/operations/get-groupproperty/
|
|
154
|
-
*/
|
|
155
|
-
getGroupProperty(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, propertyId: string): Promise<GroupPropertySingle>;
|
|
156
|
-
/**
|
|
157
|
-
* Creates a GroupProperty for a Group.
|
|
158
|
-
*
|
|
159
|
-
* @summary Create GroupProperty.
|
|
160
|
-
* @param {string} iModelId The iModel Id.
|
|
161
|
-
* @param {string} mappingId The Mapping Id.
|
|
162
|
-
* @param {string} groupId Id of the Group for which to create a new GroupProperty.
|
|
163
|
-
* @param {string} accessToken OAuth access token with scope `insights:modify`.
|
|
164
|
-
* @param {GroupPropertyCreate} groupProperty Request body.
|
|
165
|
-
* @memberof IMappingClient
|
|
166
|
-
* @see https://developer.bentley.com/apis/insights/operations/create-groupproperty/
|
|
167
|
-
*/
|
|
168
|
-
createGroupProperty(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, groupProperty: GroupPropertyCreate): Promise<GroupPropertySingle>;
|
|
169
|
-
/**
|
|
170
|
-
* Updates a GroupProperty for a Group.
|
|
171
|
-
*
|
|
172
|
-
* @summary Update GroupProperty.
|
|
173
|
-
* @param {string} iModelId The iModel Id.
|
|
174
|
-
* @param {string} mappingId The Mapping Id.
|
|
175
|
-
* @param {string} groupId The Group Id.
|
|
176
|
-
* @param {string} propertyId Id of the GroupProperty to be updated.
|
|
177
|
-
* @param {string} accessToken OAuth access token with scope `insights:modify`.
|
|
178
|
-
* @param {GroupPropertyUpdate} groupProperty Request body.
|
|
179
|
-
* @memberof IMappingClient
|
|
180
|
-
* @see https://developer.bentley.com/apis/insights/operations/update-groupproperty/
|
|
181
|
-
*/
|
|
182
|
-
updateGroupProperty(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, groupPropertyId: string, groupProperty: GroupPropertyUpdate): Promise<GroupPropertySingle>;
|
|
183
|
-
/**
|
|
184
|
-
* Deletes a GroupProperty from a Group.
|
|
185
|
-
*
|
|
186
|
-
* @summary Delete GroupProperty.
|
|
187
|
-
* @param {string} iModelId The iModel Id.
|
|
188
|
-
* @param {string} mappingId The Mapping Id.
|
|
189
|
-
* @param {string} groupId The Group Id.
|
|
190
|
-
* @param {string} groupPropertyId Id of the GroupProperty to be deleted.
|
|
191
|
-
* @param {string} accessToken OAuth access token with scope `insights:modify`.
|
|
192
|
-
* @memberof IMappingClient
|
|
193
|
-
* @see https://developer.bentley.com/apis/insights/operations/delete-groupproperty/
|
|
194
|
-
*/
|
|
195
|
-
deleteGroupProperty(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, groupPropertyId: string): Promise<Response>;
|
|
196
|
-
/**
|
|
197
|
-
* Gets all CalculatedProperties for a Group.
|
|
198
|
-
*
|
|
199
|
-
* @summary Get CalculatedProperties.
|
|
200
|
-
* @param {string} iModelId The iModel Id.
|
|
201
|
-
* @param {string} mappingId The Mapping Id.
|
|
202
|
-
* @param {string} groupId The Group Id.
|
|
203
|
-
* @param {string} accessToken OAuth access token with scope `insights:read`.
|
|
204
|
-
* @memberof IMappingClient
|
|
205
|
-
* @see https://developer.bentley.com/apis/insights/operations/get-calculatedproperties/
|
|
206
|
-
*/
|
|
207
|
-
getCalculatedProperties(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string): Promise<CalculatedProperty[]>;
|
|
208
|
-
/**
|
|
209
|
-
* Gets a CalculatedProperty for a Group.
|
|
210
|
-
*
|
|
211
|
-
* @summary Get CalculatedProperty.
|
|
212
|
-
* @param {string} iModelId The iModel Id.
|
|
213
|
-
* @param {string} mappingId The Mapping Id.
|
|
214
|
-
* @param {string} groupId The Group Id.
|
|
215
|
-
* @param {string} propertyId The CalculatedProperty Id.
|
|
216
|
-
* @param {string} accessToken OAuth access token with scope `insights:read`.
|
|
217
|
-
* @memberof IMappingClient
|
|
218
|
-
* @see https://developer.bentley.com/apis/insights/operations/get-calculatedproperty/
|
|
219
|
-
*/
|
|
220
|
-
getCalculatedProperty(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, propertyId: string): Promise<CalculatedPropertySingle>;
|
|
221
|
-
/**
|
|
222
|
-
* Creates a CalculatedProperty for a Group.
|
|
223
|
-
*
|
|
224
|
-
* @summary Create CalculatedProperty.
|
|
225
|
-
* @param {string} iModelId The iModel Id.
|
|
226
|
-
* @param {string} mappingId The Mapping Id.
|
|
227
|
-
* @param {string} groupId Id of the Group for which to create a new CalculatedProperty.
|
|
228
|
-
* @param {string} accessToken OAuth access token with scope `insights:modify`.
|
|
229
|
-
* @param {CalculatedPropertyCreate} property Request body.
|
|
230
|
-
* @memberof IMappingClient
|
|
231
|
-
* @see https://developer.bentley.com/apis/insights/operations/create-calculatedproperty/
|
|
232
|
-
*/
|
|
233
|
-
createCalculatedProperty(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, property: CalculatedPropertyCreate): Promise<CalculatedPropertySingle>;
|
|
234
|
-
/**
|
|
235
|
-
* Updates a CalculatedProperty for a Group.
|
|
236
|
-
*
|
|
237
|
-
* @summary Update CalculatedProperty.
|
|
238
|
-
* @param {string} iModelId The iModel Id.
|
|
239
|
-
* @param {string} mappingId The Mapping Id.
|
|
240
|
-
* @param {string} groupId The Group Id.
|
|
241
|
-
* @param {string} propertyId Id of the CalculatedProperty to be updated.
|
|
242
|
-
* @param {string} accessToken OAuth access token with scope `insights:modify`.
|
|
243
|
-
* @param {CalculatedPropertyUpdate} property Request body.
|
|
244
|
-
* @memberof IMappingClient
|
|
245
|
-
* @see https://developer.bentley.com/apis/insights/operations/update-calculatedproperty/
|
|
246
|
-
*/
|
|
247
|
-
updateCalculatedProperty(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, propertyId: string, property: CalculatedPropertyUpdate): Promise<CalculatedPropertySingle>;
|
|
248
|
-
/**
|
|
249
|
-
* Deletes a CalculatedProperty from a Group.
|
|
250
|
-
*
|
|
251
|
-
* @summary Delete CalculatedProperty.
|
|
252
|
-
* @param {string} iModelId The iModel Id.
|
|
253
|
-
* @param {string} mappingId The Mapping Id.
|
|
254
|
-
* @param {string} groupId The Group Id.
|
|
255
|
-
* @param {string} propertyId Id of the CalculatedProperty to be deleted.
|
|
256
|
-
* @param {string} accessToken OAuth access token with scope `insights:modify`.
|
|
257
|
-
* @memberof IMappingClient
|
|
258
|
-
* @see https://developer.bentley.com/apis/insights/operations/delete-calculatedproperty/
|
|
259
|
-
*/
|
|
260
|
-
deleteCalculatedProperty(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, propertyId: string): Promise<Response>;
|
|
261
|
-
/**
|
|
262
|
-
* Gets all CustomCalculations for a Group.
|
|
263
|
-
*
|
|
264
|
-
* @summary Get CustomCalculations.
|
|
265
|
-
* @param {string} iModelId The iModel Id.
|
|
266
|
-
* @param {string} mappingId The Mapping Id.
|
|
267
|
-
* @param {string} groupId The Group Id.
|
|
268
|
-
* @param {string} accessToken OAuth access token with scope `insights:read`.
|
|
269
|
-
* @memberof IMappingClient
|
|
270
|
-
* @see https://developer.bentley.com/apis/insights/operations/get-customcalculations/
|
|
271
|
-
*/
|
|
272
|
-
getCustomCalculations(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string): Promise<CustomCalculation[]>;
|
|
273
|
-
/**
|
|
274
|
-
* Gets a CustomCalculation for a Group.
|
|
275
|
-
*
|
|
276
|
-
* @summary Get CustomCalculation.
|
|
277
|
-
* @param {string} iModelId The iModel Id.
|
|
278
|
-
* @param {string} mappingId The Mapping Id.
|
|
279
|
-
* @param {string} groupId The Group Id.
|
|
280
|
-
* @param {string} propertyId The CustomCalculation Id.
|
|
281
|
-
* @param {string} accessToken OAuth access token with scope `insights:read`.
|
|
282
|
-
* @memberof IMappingClient
|
|
283
|
-
* @see https://developer.bentley.com/apis/insights/operations/get-customcalculation/
|
|
284
|
-
*/
|
|
285
|
-
getCustomCalculation(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, propertyId: string): Promise<CustomCalculationSingle>;
|
|
286
|
-
/**
|
|
287
|
-
* Creates a CustomCalculation for a Group.
|
|
288
|
-
*
|
|
289
|
-
* @summary Create CustomCalculation.
|
|
290
|
-
* @param {string} iModelId The iModel Id.
|
|
291
|
-
* @param {string} mappingId The Mapping Id.
|
|
292
|
-
* @param {string} groupId Id of the Group for which to create a new CustomCalculation.
|
|
293
|
-
* @param {string} accessToken OAuth access token with scope `insights:modify`.
|
|
294
|
-
* @param {CustomCalculationCreate} property Request body.
|
|
295
|
-
* @memberof IMappingClient
|
|
296
|
-
* @see https://developer.bentley.com/apis/insights/operations/create-customcalculation/
|
|
297
|
-
*/
|
|
298
|
-
createCustomCalculation(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, property: CustomCalculationCreate): Promise<CustomCalculationSingle>;
|
|
299
|
-
/**
|
|
300
|
-
* Updates a CustomCalculation for a Group.
|
|
301
|
-
*
|
|
302
|
-
* @summary Update CustomCalculation.
|
|
303
|
-
* @param {string} iModelId The iModel Id.
|
|
304
|
-
* @param {string} mappingId The Mapping Id.
|
|
305
|
-
* @param {string} groupId The Group Id.
|
|
306
|
-
* @param {string} propertyId Id of the CustomCalculation to be updated.
|
|
307
|
-
* @param {string} accessToken OAuth access token with scope `insights:modify`.
|
|
308
|
-
* @param {CustomCalculationUpdate} property Request body.
|
|
309
|
-
* @memberof IMappingClient
|
|
310
|
-
* @see https://developer.bentley.com/apis/insights/operations/update-customcalculation/
|
|
311
|
-
*/
|
|
312
|
-
updateCustomCalculation(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, propertyId: string, property: CustomCalculationUpdate): Promise<CustomCalculationSingle>;
|
|
313
|
-
/**
|
|
314
|
-
* Deletes a CustomCalculation from a Group.
|
|
315
|
-
*
|
|
316
|
-
* @summary Delete CustomCalculation.
|
|
317
|
-
* @param {string} iModelId The iModel Id.
|
|
318
|
-
* @param {string} mappingId The Mapping Id.
|
|
319
|
-
* @param {string} groupId The Group Id.
|
|
320
|
-
* @param {string} propertyId Id of the CustomCalculation to be deleted.
|
|
321
|
-
* @param {string} accessToken OAuth access token with scope `insights:modify`.
|
|
322
|
-
* @memberof IMappingClient
|
|
323
|
-
* @see https://developer.bentley.com/apis/insights/operations/delete-customcalculation/
|
|
324
|
-
*/
|
|
325
|
-
deleteCustomCalculation(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, propertyId: string): Promise<Response>;
|
|
326
|
-
}
|
|
327
|
-
//# sourceMappingURL=IMappingClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IMappingClient.js","sourceRoot":"","sources":["../../../src/widget/IMappingClient.ts"],"names":[],"mappings":";AAAA;;;+FAG+F","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\nimport type { AccessToken } from \"@itwin/core-bentley\";\nimport type { CalculatedProperty, CalculatedPropertyCreate, CalculatedPropertySingle, CalculatedPropertyUpdate, CustomCalculation, CustomCalculationCreate, CustomCalculationSingle, CustomCalculationUpdate, Group, GroupCreate, GroupProperty, GroupPropertyCreate, GroupPropertySingle, GroupPropertyUpdate, GroupSingle, GroupUpdate, Mapping, MappingCopy, MappingCreate, MappingSingle, MappingUpdate } from \"@itwin/insights-client\";\n\nexport interface IMappingClient {\n /**\n * Gets all Mappings for an iModel.\n *\n * @summary Get Mappings.\n * @param {string} iModelId The iModel Id.\n * @param {string} accessToken OAuth access token with scope `insights:read`.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/get-mappings/\n */\n getMappings(accessToken: AccessToken, iModelId: string): Promise<Mapping[]>;\n\n /**\n * Gets a Mapping for an iModel.\n *\n * @summary Get Mapping.\n * @param {string} iModelId The iModel Id.\n * @param {string} mappingId The Mapping Id.\n * @param {string} accessToken OAuth access token with scope `insights:read`.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/get-mapping/\n */\n getMapping(accessToken: AccessToken, mappingId: string, iModelId: string): Promise<MappingSingle>;\n\n /**\n * Creates a Mapping for an iModel.\n *\n * @summary Create Mapping.\n * @param {string} iModelId Id of the iModel for which to create a new Mapping.\n * @param {string} accessToken OAuth access token with scope `insights:modify`.\n * @param {MappingCreate} mapping Request body.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/create-mapping/\n */\n createMapping(accessToken: AccessToken, iModelId: string, mapping: MappingCreate): Promise<MappingSingle>;\n\n /**\n * Updates a Mapping for an iModel.\n *\n * @summary Update Mapping.\n * @param {string} iModelId The iModel Id.\n * @param {string} mappingId Id of the Mapping to be updated.\n * @param {string} accessToken OAuth access token with scope `insights:modify`.\n * @param {MappingUpdate} mapping Request body.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/update-mapping/\n */\n updateMapping(accessToken: AccessToken, iModelId: string, mappingId: string, mapping: MappingUpdate): Promise<MappingSingle>;\n\n /**\n * Deletes a Mapping for an iModel.\n *\n * @summary Delete Mapping.\n * @param {string} iModelId The iModel Id.\n * @param {string} mappingId Id of the Mapping to be deleted.\n * @param {string} accessToken OAuth access token with scope `insights:modify`.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/delete-mapping/\n */\n deleteMapping(accessToken: AccessToken, iModelId: string, mappingId: string): Promise<Response>;\n\n /**\n * Copies a Mapping and all its Groups, GroupProperties, CalculatedProperties, and CustomCalculations to a target iModel.\n *\n * @summary Copy Mapping.\n * @param {string} iModelId Id of the source Mapping's iModel.\n * @param {string} mappingId Id of the source Mapping.\n * @param {string} accessToken OAuth access token with scope `insights:modify`.\n * @param {MappingCopy} mappingCopy Request body.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/copy-mapping/\n */\n copyMapping(accessToken: AccessToken, iModelId: string, mappingId: string, mappingCopy: MappingCopy): Promise<MappingSingle>;\n\n /**\n * Gets all Groups for a Mapping.\n *\n * @summary Get Groups.\n * @param {string} iModelId The iModel Id.\n * @param {string} mappingId The Mapping Id.\n * @param {string} accessToken OAuth access token with scope `insights:read`.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/get-groups/\n */\n getGroups(accessToken: AccessToken, iModelId: string, mappingId: string): Promise<Group[]>;\n\n /**\n * Creates a Group for an iModel data source Mapping.\n *\n * @summary Create Group\n * @param {string} iModelId The iModel Id.\n * @param {string} mappingId Id of the Mapping for which to create a new Group.\n * @param {string} accessToken OAuth access token with scope `insights:modify`.\n * @param {GroupCreate} group Request body.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/create-group/\n */\n createGroup(accessToken: AccessToken, iModelId: string, mappingId: string, group: GroupCreate): Promise<GroupSingle>;\n\n /**\n * Gets a Group for a Mapping.\n *\n * @summary Get Group.\n * @param {string} iModelId The iModel Id.\n * @param {string} mappingId The Mapping Id.\n * @param {string} groupId The Group Id.\n * @param {string} accessToken OAuth access token with scope `insights:read`.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/get-group/\n */\n getGroup(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string): Promise<GroupSingle>;\n\n /**\n * Updates a Group for a Mapping.\n *\n * @summary Update Group.\n * @param {string} iModelId Globally Unique Identifier of the target iModel.\n * @param {string} mappingId Globally Unique Identifier of the target Mapping.\n * @param {string} groupId Id of the Group to be updated.\n * @param {string} accessToken OAuth access token with scope `insights:modify`.\n * @param {GroupUpdate} group Request body.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/update-group/\n */\n updateGroup(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, group: GroupUpdate): Promise<GroupSingle>;\n\n /**\n * Deletes a Group for a Mapping.\n *\n * @summary Delete Group.\n * @param {string} iModelId The iModel Id.\n * @param {string} mappingId The Mapping Id.\n * @param {string} groupId Id of the Group to be deleted.\n * @param {string} accessToken OAuth access token with scope `insights:modify`.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/delete-group/\n */\n deleteGroup(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string): Promise<Response>;\n\n /**\n * Gets all GroupProperties for a Group.\n *\n * @summary Get GroupProperties.\n * @param {string} iModelId The iModel Id.\n * @param {string} mappingId The Mapping Id.\n * @param {string} groupId The Group Id.\n * @param {string} accessToken OAuth access token with scope `insights:read`.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/get-groupproperties/\n */\n getGroupProperties(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string): Promise<GroupProperty[]>;\n\n /**\n * Gets a GroupProperty for a Group.\n *\n * @summary Get GroupProperty.\n * @param {string} iModelId The iModel Id.\n * @param {string} mappingId The Mapping Id.\n * @param {string} groupId The Group Id.\n * @param {string} propertyId The GroupProperty Id.\n * @param {string} accessToken access token with scope `insights:read`.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/get-groupproperty/\n */\n getGroupProperty(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, propertyId: string): Promise<GroupPropertySingle>;\n\n /**\n * Creates a GroupProperty for a Group.\n *\n * @summary Create GroupProperty.\n * @param {string} iModelId The iModel Id.\n * @param {string} mappingId The Mapping Id.\n * @param {string} groupId Id of the Group for which to create a new GroupProperty.\n * @param {string} accessToken OAuth access token with scope `insights:modify`.\n * @param {GroupPropertyCreate} groupProperty Request body.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/create-groupproperty/\n */\n createGroupProperty(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, groupProperty: GroupPropertyCreate): Promise<GroupPropertySingle>;\n\n /**\n * Updates a GroupProperty for a Group.\n *\n * @summary Update GroupProperty.\n * @param {string} iModelId The iModel Id.\n * @param {string} mappingId The Mapping Id.\n * @param {string} groupId The Group Id.\n * @param {string} propertyId Id of the GroupProperty to be updated.\n * @param {string} accessToken OAuth access token with scope `insights:modify`.\n * @param {GroupPropertyUpdate} groupProperty Request body.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/update-groupproperty/\n */\n updateGroupProperty(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, groupPropertyId: string, groupProperty: GroupPropertyUpdate): Promise<GroupPropertySingle>;\n\n /**\n * Deletes a GroupProperty from a Group.\n *\n * @summary Delete GroupProperty.\n * @param {string} iModelId The iModel Id.\n * @param {string} mappingId The Mapping Id.\n * @param {string} groupId The Group Id.\n * @param {string} groupPropertyId Id of the GroupProperty to be deleted.\n * @param {string} accessToken OAuth access token with scope `insights:modify`.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/delete-groupproperty/\n */\n deleteGroupProperty(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, groupPropertyId: string): Promise<Response>;\n\n /**\n * Gets all CalculatedProperties for a Group.\n *\n * @summary Get CalculatedProperties.\n * @param {string} iModelId The iModel Id.\n * @param {string} mappingId The Mapping Id.\n * @param {string} groupId The Group Id.\n * @param {string} accessToken OAuth access token with scope `insights:read`.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/get-calculatedproperties/\n */\n getCalculatedProperties(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string): Promise<CalculatedProperty[]>;\n\n /**\n * Gets a CalculatedProperty for a Group.\n *\n * @summary Get CalculatedProperty.\n * @param {string} iModelId The iModel Id.\n * @param {string} mappingId The Mapping Id.\n * @param {string} groupId The Group Id.\n * @param {string} propertyId The CalculatedProperty Id.\n * @param {string} accessToken OAuth access token with scope `insights:read`.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/get-calculatedproperty/\n */\n getCalculatedProperty(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, propertyId: string): Promise<CalculatedPropertySingle>;\n\n /**\n * Creates a CalculatedProperty for a Group.\n *\n * @summary Create CalculatedProperty.\n * @param {string} iModelId The iModel Id.\n * @param {string} mappingId The Mapping Id.\n * @param {string} groupId Id of the Group for which to create a new CalculatedProperty.\n * @param {string} accessToken OAuth access token with scope `insights:modify`.\n * @param {CalculatedPropertyCreate} property Request body.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/create-calculatedproperty/\n */\n createCalculatedProperty(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, property: CalculatedPropertyCreate): Promise<CalculatedPropertySingle>;\n\n /**\n * Updates a CalculatedProperty for a Group.\n *\n * @summary Update CalculatedProperty.\n * @param {string} iModelId The iModel Id.\n * @param {string} mappingId The Mapping Id.\n * @param {string} groupId The Group Id.\n * @param {string} propertyId Id of the CalculatedProperty to be updated.\n * @param {string} accessToken OAuth access token with scope `insights:modify`.\n * @param {CalculatedPropertyUpdate} property Request body.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/update-calculatedproperty/\n */\n updateCalculatedProperty(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, propertyId: string, property: CalculatedPropertyUpdate): Promise<CalculatedPropertySingle>;\n\n /**\n * Deletes a CalculatedProperty from a Group.\n *\n * @summary Delete CalculatedProperty.\n * @param {string} iModelId The iModel Id.\n * @param {string} mappingId The Mapping Id.\n * @param {string} groupId The Group Id.\n * @param {string} propertyId Id of the CalculatedProperty to be deleted.\n * @param {string} accessToken OAuth access token with scope `insights:modify`.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/delete-calculatedproperty/\n */\n deleteCalculatedProperty(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, propertyId: string): Promise<Response>;\n\n /**\n * Gets all CustomCalculations for a Group.\n *\n * @summary Get CustomCalculations.\n * @param {string} iModelId The iModel Id.\n * @param {string} mappingId The Mapping Id.\n * @param {string} groupId The Group Id.\n * @param {string} accessToken OAuth access token with scope `insights:read`.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/get-customcalculations/\n */\n getCustomCalculations(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string): Promise<CustomCalculation[]>;\n\n /**\n * Gets a CustomCalculation for a Group.\n *\n * @summary Get CustomCalculation.\n * @param {string} iModelId The iModel Id.\n * @param {string} mappingId The Mapping Id.\n * @param {string} groupId The Group Id.\n * @param {string} propertyId The CustomCalculation Id.\n * @param {string} accessToken OAuth access token with scope `insights:read`.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/get-customcalculation/\n */\n getCustomCalculation(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, propertyId: string): Promise<CustomCalculationSingle>;\n\n /**\n * Creates a CustomCalculation for a Group.\n *\n * @summary Create CustomCalculation.\n * @param {string} iModelId The iModel Id.\n * @param {string} mappingId The Mapping Id.\n * @param {string} groupId Id of the Group for which to create a new CustomCalculation.\n * @param {string} accessToken OAuth access token with scope `insights:modify`.\n * @param {CustomCalculationCreate} property Request body.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/create-customcalculation/\n */\n createCustomCalculation(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, property: CustomCalculationCreate): Promise<CustomCalculationSingle>;\n\n /**\n * Updates a CustomCalculation for a Group.\n *\n * @summary Update CustomCalculation.\n * @param {string} iModelId The iModel Id.\n * @param {string} mappingId The Mapping Id.\n * @param {string} groupId The Group Id.\n * @param {string} propertyId Id of the CustomCalculation to be updated.\n * @param {string} accessToken OAuth access token with scope `insights:modify`.\n * @param {CustomCalculationUpdate} property Request body.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/update-customcalculation/\n */\n updateCustomCalculation(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, propertyId: string, property: CustomCalculationUpdate): Promise<CustomCalculationSingle>;\n\n /**\n * Deletes a CustomCalculation from a Group.\n *\n * @summary Delete CustomCalculation.\n * @param {string} iModelId The iModel Id.\n * @param {string} mappingId The Mapping Id.\n * @param {string} groupId The Group Id.\n * @param {string} propertyId Id of the CustomCalculation to be deleted.\n * @param {string} accessToken OAuth access token with scope `insights:modify`.\n * @memberof IMappingClient\n * @see https://developer.bentley.com/apis/insights/operations/delete-customcalculation/\n */\n deleteCustomCalculation(accessToken: AccessToken, iModelId: string, mappingId: string, groupId: string, propertyId: string): Promise<Response>;\n}\n"]}
|