@arcgis/portal-components 6.0.0-next.3 → 6.0.0-next.31
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/dist/cdn/22DNGXFY.js +2 -0
- package/dist/cdn/234TH32X.js +106 -0
- package/dist/cdn/25K5D5HL.js +2 -0
- package/dist/cdn/2CC4MNQP.js +2 -0
- package/dist/cdn/365ICWHN.js +2 -0
- package/dist/cdn/3CXU5CCM.js +2 -0
- package/dist/cdn/3DTSKTHB.js +2 -0
- package/dist/cdn/3MUI6DF4.js +2 -0
- package/dist/cdn/{3NSHGKZA.js → 3QWNGHAK.js} +1 -1
- package/dist/cdn/3T3QBPC3.js +2 -0
- package/dist/cdn/4QYVBXZT.js +2 -0
- package/dist/cdn/{K75JTQPW.js → 4VLEUN7I.js} +1 -1
- package/dist/cdn/4X4EYM3Q.js +2 -0
- package/dist/cdn/4Y73LE7P.js +2 -0
- package/dist/cdn/5CEFJTG4.js +2 -0
- package/dist/cdn/5VFGR7LA.js +2 -0
- package/dist/cdn/5Y32T5IJ.js +2 -0
- package/dist/cdn/{JPUUMGX5.js → 6EMK2BU6.js} +1 -1
- package/dist/cdn/6HNKQNS5.js +2 -0
- package/dist/cdn/{NWVLGU2C.js → 7BFTXD5J.js} +1 -1
- package/dist/cdn/{URQML7KV.js → 7DAB2CEU.js} +1 -1
- package/dist/cdn/7ZWYPQMW.js +2 -0
- package/dist/cdn/AM3UTQWH.js +4 -0
- package/dist/cdn/{D2YQWKME.js → ASID6YW7.js} +2 -2
- package/dist/cdn/ASLKTYLX.js +2 -0
- package/dist/cdn/{7ZWYUHGK.js → B343BOVA.js} +1 -1
- package/dist/cdn/BHZKSSVZ.js +2 -0
- package/dist/cdn/BOEGDK4D.js +2 -0
- package/dist/cdn/{QTAYXO5T.js → BRWHEYLW.js} +1 -1
- package/dist/cdn/{74T6IXSN.js → BX2LXI3N.js} +1 -1
- package/dist/cdn/{JE2376SE.js → C3F24ZOM.js} +1 -1
- package/dist/cdn/C4GK263H.js +2 -0
- package/dist/cdn/CBFFZMX4.js +2 -0
- package/dist/cdn/CJ4S56BE.js +2 -0
- package/dist/cdn/{IN4JPZTY.js → CMNTOT5D.js} +1 -1
- package/dist/cdn/CVU6YKOA.js +2 -0
- package/dist/cdn/D52TYBRX.js +2 -0
- package/dist/cdn/DMS3R2W5.js +2 -0
- package/dist/cdn/{TWCJJCPC.js → DV57AOBF.js} +1 -1
- package/dist/cdn/EDQSL2P3.js +2 -0
- package/dist/cdn/ERBRAY5U.js +2 -0
- package/dist/cdn/{TRMFL7PT.js → ESKKH4DE.js} +1 -1
- package/dist/cdn/FAZVQI4K.js +2 -0
- package/dist/cdn/{TXC7YBGL.js → FGDSHTJ5.js} +1 -1
- package/dist/cdn/FGRMURKX.js +2 -0
- package/dist/cdn/{2TDHJSMP.js → FKOSVY5D.js} +1 -1
- package/dist/cdn/FN2QMDEW.js +2 -0
- package/dist/cdn/FOWOLUC3.js +2 -0
- package/dist/cdn/FVHP6PFG.js +2 -0
- package/dist/cdn/G7DJPREL.js +2 -0
- package/dist/cdn/GBXFX37Y.js +2 -0
- package/dist/cdn/{K2XSYDAP.js → GC4BV7IZ.js} +1 -1
- package/dist/cdn/H6MGSC3Y.js +2 -0
- package/dist/cdn/H6OQOEHS.js +2 -0
- package/dist/cdn/{YZTBAUIO.js → HBO7XTIL.js} +1 -1
- package/dist/cdn/HKHDBGNN.js +2 -0
- package/dist/cdn/HVQ7FKJ5.js +2 -0
- package/dist/cdn/HXR7GUM3.js +91 -0
- package/dist/cdn/IGOSZ2LL.js +2 -0
- package/dist/cdn/{GAF4YT5N.js → IUIFCQQU.js} +1 -1
- package/dist/cdn/IX4WEZZ2.js +2 -0
- package/dist/cdn/JA3GGSJJ.js +2 -0
- package/dist/cdn/{M5PPX4ZX.js → JEVNGG2O.js} +1 -1
- package/dist/cdn/JLT5GCLY.js +2 -0
- package/dist/cdn/K3GAZFRI.js +63 -0
- package/dist/cdn/KHA6NJ4N.js +2 -0
- package/dist/cdn/KRORL7QC.js +2 -0
- package/dist/cdn/KTTPPUQ7.js +2 -0
- package/dist/cdn/L25GEXL6.js +2 -0
- package/dist/cdn/LBW47BJG.js +2 -0
- package/dist/cdn/LR33CLTB.js +2 -0
- package/dist/cdn/{CFRJU6VA.js → M664QA6J.js} +1 -1
- package/dist/cdn/MJVKDAYF.js +2 -0
- package/dist/cdn/MSSJRDR7.js +2 -0
- package/dist/cdn/MVC6LIQ6.js +2 -0
- package/dist/cdn/NENAFJEC.js +2 -0
- package/dist/cdn/NHVPNSNH.js +2 -0
- package/dist/cdn/NLFBHNSX.js +2 -0
- package/dist/cdn/{VNU4QX7M.js → NQ2IAQKL.js} +17 -17
- package/dist/cdn/{2YZWRFCI.js → NYBLHT3F.js} +1 -1
- package/dist/cdn/O4YFPGD5.js +2 -0
- package/dist/cdn/OHAQPQAP.js +2 -0
- package/dist/cdn/OQ2JULON.js +2 -0
- package/dist/cdn/{JIJO4CAS.js → PJZZIITX.js} +1 -1
- package/dist/cdn/PRBP4AP6.js +2 -0
- package/dist/cdn/{ZKZDKJ6D.js → PST62OKJ.js} +1 -1
- package/dist/cdn/Q2CCAKI4.js +2 -0
- package/dist/cdn/QF626JXP.js +2 -0
- package/dist/cdn/QMIVFHQE.js +2 -0
- package/dist/cdn/QRHXMIMW.js +2 -0
- package/dist/cdn/R5LNWMD4.js +2 -0
- package/dist/cdn/RJ3SU3EV.js +2 -0
- package/dist/cdn/RJRTGF33.js +2 -0
- package/dist/cdn/RT26JZP5.js +2 -0
- package/dist/cdn/{I6IRHXWR.js → SO3IBFEU.js} +1 -1
- package/dist/cdn/SRWFOV5W.js +2 -0
- package/dist/cdn/SUA7ZZUH.js +2 -0
- package/dist/cdn/SV6SGTR6.js +2 -0
- package/dist/cdn/TAZDV6DB.js +2 -0
- package/dist/cdn/{ROX3GKKA.js → TIPQ2ZWK.js} +1 -1
- package/dist/cdn/TJANHZ25.js +2 -0
- package/dist/cdn/{MKSFNVXL.js → TO666HVV.js} +1 -1
- package/dist/cdn/UBPCKCW2.js +2 -0
- package/dist/cdn/ULGME5RT.js +2 -0
- package/dist/cdn/US37IXWO.js +2 -0
- package/dist/cdn/UZW2KV4X.js +2 -0
- package/dist/cdn/{Z6R3C4AK.js → VFECPSKA.js} +1 -1
- package/dist/cdn/VLD3MVSG.js +2 -0
- package/dist/cdn/VWV2LCNA.js +2 -0
- package/dist/cdn/WC3MDSMP.js +70 -0
- package/dist/cdn/WCZJXBW3.js +2 -0
- package/dist/cdn/WFPUAEJQ.js +3 -0
- package/dist/cdn/{OR6T5SB3.js → WIUFH5SJ.js} +1 -1
- package/dist/cdn/{5HZNBMW6.js → WZFGZEQI.js} +1 -1
- package/dist/cdn/XE3DCC5D.js +2 -0
- package/dist/cdn/{JN23JH3T.js → XEVOU7SJ.js} +1 -1
- package/dist/cdn/{BKD7JSV2.js → XH6RD5BO.js} +1 -1
- package/dist/cdn/XJNEK5Q7.js +2 -0
- package/dist/cdn/XK3WIW4R.js +2 -0
- package/dist/cdn/XOM3GLYF.js +2 -0
- package/dist/cdn/YGZICQBT.js +2 -0
- package/dist/cdn/YP7T6NKR.js +2 -0
- package/dist/cdn/{RHCRPJWS.js → YYKKXL62.js} +1 -1
- package/dist/cdn/Z5OZYZYV.js +2 -0
- package/dist/cdn/{SGDDFWCJ.js → ZGSAH7Z7.js} +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-entity-picker/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-item-card-sublayer-select/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-preview/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-share-summary/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/FieldIcons.js +24 -0
- package/dist/chunks/fieldAddDelete.js +7 -7
- package/dist/chunks/functionalities.js +14 -9
- package/dist/chunks/groups.js +8 -61
- package/dist/chunks/groups2.js +23 -8
- package/dist/chunks/info.js +2 -2
- package/dist/chunks/item.js +131 -33
- package/dist/chunks/item2.js +63 -125
- package/dist/chunks/itemThumbnail.js +21 -21
- package/dist/chunks/layers.js +196 -0
- package/dist/chunks/loadClassificationData.js +26 -27
- package/dist/chunks/portal-browser.js +49 -46
- package/dist/chunks/portal-delete-items-review.js +1 -1
- package/dist/chunks/portal-item-badge.js +1 -1
- package/dist/chunks/portal-item-preview-sublayer.js +214 -0
- package/dist/chunks/portal-related-items-list-item.js +1 -1
- package/dist/chunks/portal.js +6 -6
- package/dist/chunks/portal2.js +23 -23
- package/dist/chunks/portalEntitySelection.js +61 -0
- package/dist/chunks/query.js +13 -13
- package/dist/chunks/request.js +49 -41
- package/dist/chunks/requests.js +7 -7
- package/dist/chunks/selectedMentions.js +25 -0
- package/dist/chunks/services.js +5 -5
- package/dist/chunks/string.js +19 -11
- package/dist/chunks/ui.js +1 -0
- package/dist/chunks/url.js +2 -2
- package/dist/chunks/user.js +67 -53
- package/dist/chunks/user2.js +10 -10
- package/dist/chunks/utils.js +35 -22
- package/dist/chunks/utils2.js +4 -4
- package/dist/chunks/utils3.js +88 -657
- package/dist/chunks/utils4.js +663 -0
- package/dist/components/arcgis-portal-account-switcher/customElement.js +57 -54
- package/dist/components/arcgis-portal-add-gps-metadata/customElement.d.ts +27 -0
- package/dist/components/arcgis-portal-add-gps-metadata/customElement.js +185 -137
- package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +26 -17
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +546 -2655
- package/dist/components/arcgis-portal-ai-assistant/index.js +4 -0
- package/dist/components/arcgis-portal-ai-assistant/tools/getItemTool.d.ts +11 -0
- package/dist/components/arcgis-portal-ai-assistant/tools/groups.d.ts +28 -0
- package/dist/components/arcgis-portal-ai-assistant/tools/users.d.ts +28 -0
- package/dist/components/arcgis-portal-ai-assistant/types/assistantTools.d.ts +8 -1
- package/dist/components/arcgis-portal-ai-assistant/types/portalEntityTools.d.ts +19 -0
- package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.d.ts +39 -0
- package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +67 -27
- package/dist/components/arcgis-portal-ai-assistant-interrupt/index.js +3 -1
- package/dist/components/arcgis-portal-browser/customElement.d.ts +3 -0
- package/dist/components/arcgis-portal-browser/customElement.js +3 -2
- package/dist/components/arcgis-portal-browser/index.js +1 -0
- package/dist/components/arcgis-portal-classification-banner/customElement.js +2 -2
- package/dist/components/arcgis-portal-classification-config/customElement.js +2 -2
- package/dist/components/arcgis-portal-classification-favorite/customElement.js +2 -2
- package/dist/components/arcgis-portal-classification-form-element/customElement.js +1 -1
- package/dist/components/arcgis-portal-delete-items/customElement.d.ts +69 -3
- package/dist/components/arcgis-portal-delete-items/customElement.js +446 -330
- package/dist/components/arcgis-portal-delete-items/index.js +1 -2
- package/dist/components/arcgis-portal-delete-items/types.d.ts +1 -0
- package/dist/components/arcgis-portal-entity-picker/customElement.d.ts +51 -5
- package/dist/components/arcgis-portal-entity-picker/customElement.js +204 -119
- package/dist/components/arcgis-portal-entity-picker/index.js +2 -0
- package/dist/components/arcgis-portal-field-delete/customElement.js +87 -101
- package/dist/components/arcgis-portal-field-delete/index.js +1 -1
- package/dist/components/arcgis-portal-group-badges/customElement.js +5 -5
- package/dist/components/arcgis-portal-group-browser/customElement.js +96 -100
- package/dist/components/arcgis-portal-group-browser/types.d.ts +3 -7
- package/dist/components/arcgis-portal-group-browser-preview/customElement.js +49 -40
- package/dist/components/arcgis-portal-group-browser-preview/index.js +1 -0
- package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +1 -4
- package/dist/components/arcgis-portal-group-card/customElement.js +16 -16
- package/dist/components/arcgis-portal-group-thumbnail/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-badges/customElement.js +4 -4
- package/dist/components/arcgis-portal-item-card/customElement.d.ts +26 -10
- package/dist/components/arcgis-portal-item-card/customElement.js +90 -80
- package/dist/components/arcgis-portal-item-card/index.js +2 -1
- package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.d.ts +102 -0
- package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.js +181 -0
- package/dist/components/arcgis-portal-item-card-sublayer-select/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-card-sublayer-select/index.js +8 -0
- package/dist/components/arcgis-portal-item-card-sublayer-select/types.d.ts +22 -0
- package/dist/components/arcgis-portal-item-favorite/customElement.js +42 -29
- package/dist/components/arcgis-portal-item-preview/customElement.d.ts +263 -0
- package/dist/components/arcgis-portal-item-preview/customElement.js +137 -0
- package/dist/components/arcgis-portal-item-preview/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-preview/index.js +20 -0
- package/dist/components/arcgis-portal-item-preview/types.d.ts +14 -0
- package/dist/components/arcgis-portal-item-preview-copy/customElement.d.ts +215 -0
- package/dist/components/arcgis-portal-item-preview-copy/customElement.js +46 -0
- package/dist/components/arcgis-portal-item-preview-copy/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-preview-copy/index.js +5 -0
- package/dist/components/arcgis-portal-item-preview-field/customElement.d.ts +216 -0
- package/dist/components/arcgis-portal-item-preview-field/customElement.js +34 -0
- package/dist/components/arcgis-portal-item-preview-field/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-preview-field/index.js +6 -0
- package/dist/components/arcgis-portal-item-preview-sublayer/customElement.d.ts +216 -0
- package/dist/components/arcgis-portal-item-preview-sublayer/customElement.js +15 -0
- package/dist/components/arcgis-portal-item-preview-sublayer/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-preview-sublayer/index.js +11 -0
- package/dist/components/arcgis-portal-item-share-summary/customElement.d.ts +113 -0
- package/dist/components/arcgis-portal-item-share-summary/customElement.js +172 -0
- package/dist/components/arcgis-portal-item-share-summary/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-share-summary/index.js +5 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/customElement.d.ts +33 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/customElement.js +19 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/index.js +2 -0
- package/dist/components/arcgis-portal-item-thumbnail/customElement.d.ts +1 -0
- package/dist/components/arcgis-portal-item-thumbnail/customElement.js +14 -14
- package/dist/components/arcgis-portal-item-type/customElement.d.ts +16 -14
- package/dist/components/arcgis-portal-item-type/customElement.js +25 -28
- package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +61 -57
- package/dist/components/arcgis-portal-navigation/customElement.js +7 -8
- package/dist/components/arcgis-portal-navigation/index.js +4 -4
- package/dist/components/arcgis-portal-preview-panel/customElement.d.ts +40 -0
- package/dist/components/arcgis-portal-preview-panel/customElement.js +40 -0
- package/dist/components/arcgis-portal-preview-panel/index.d.ts +1 -0
- package/dist/components/arcgis-portal-preview-panel/index.js +1 -0
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +8 -8
- package/dist/components/arcgis-portal-review-related-items/customElement.d.ts +333 -0
- package/dist/components/arcgis-portal-review-related-items/customElement.js +46 -18
- package/dist/components/arcgis-portal-review-related-items/index.js +2 -0
- package/dist/components/arcgis-portal-sublayer-type/customElement.js +13 -103
- package/dist/components/arcgis-portal-user-avatar/customElement.d.ts +2 -3
- package/dist/components/arcgis-portal-user-avatar/customElement.js +15 -16
- package/dist/components/arcgis-portal-user-popup/customElement.d.ts +4 -7
- package/dist/components/arcgis-portal-user-popup/customElement.js +128 -111
- package/dist/components/portal-group-browser-filters/customElement.js +15 -15
- package/dist/components/portal-related-items-list-item/customElement.js +16 -14
- package/dist/components/portal-related-items-list-item/index.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +63 -0
- package/dist/index.js +300 -6
- package/dist/loader.js +18 -10
- package/dist/services/group.d.ts +17 -0
- package/dist/services/groups.d.ts +9 -0
- package/dist/services/item.d.ts +9 -0
- package/dist/types/item.d.ts +17 -11
- package/dist/types/layer.d.ts +27 -0
- package/dist/types/lumina.d.ts +63 -11
- package/dist/types/portalAssistantCurrentContext.d.ts +9 -0
- package/dist/types/portalEntityPicker.d.ts +3 -0
- package/dist/types/preact.d.ts +71 -11
- package/dist/types/react.d.ts +79 -11
- package/dist/types/services.d.ts +28 -1
- package/dist/types/stencil.d.ts +63 -11
- package/dist/types/user.d.ts +14 -10
- package/dist/utils/generateEmbeddings.d.ts +7 -0
- package/dist/utils/semanticSearch.d.ts +60 -0
- package/dist/utils/types.d.ts +10 -0
- package/package.json +11 -10
- package/dist/cdn/23NXHNPU.js +0 -2
- package/dist/cdn/24QSQLRY.js +0 -2
- package/dist/cdn/2CN754CY.js +0 -2
- package/dist/cdn/2FQKDFEE.js +0 -2
- package/dist/cdn/2MPQ5IWJ.js +0 -2
- package/dist/cdn/3CQKCUM5.js +0 -2
- package/dist/cdn/3EYB5GQX.js +0 -2
- package/dist/cdn/3FSPL34I.js +0 -170
- package/dist/cdn/3LEQ37YT.js +0 -68
- package/dist/cdn/4MUB6TL6.js +0 -2
- package/dist/cdn/4PRXQFCV.js +0 -2
- package/dist/cdn/4QFTKB6T.js +0 -2
- package/dist/cdn/4TSXFX3M.js +0 -2
- package/dist/cdn/5C5GHX4D.js +0 -2
- package/dist/cdn/7LMZHJZG.js +0 -2
- package/dist/cdn/A2SQ4EMZ.js +0 -2
- package/dist/cdn/AICPYLWE.js +0 -4
- package/dist/cdn/AXOBMX3S.js +0 -2
- package/dist/cdn/AZOJHVAO.js +0 -2
- package/dist/cdn/BYHX3UWV.js +0 -2
- package/dist/cdn/CD5UWSCP.js +0 -2
- package/dist/cdn/DDBXEXOV.js +0 -2
- package/dist/cdn/DHMNNIXZ.js +0 -2
- package/dist/cdn/DLI4XKJ3.js +0 -2
- package/dist/cdn/DYO5P3F2.js +0 -2
- package/dist/cdn/E66BDC6N.js +0 -2
- package/dist/cdn/EEAVX4PP.js +0 -2
- package/dist/cdn/EMJQI4MA.js +0 -2
- package/dist/cdn/EY5S6ICQ.js +0 -2
- package/dist/cdn/FIBQAMJ3.js +0 -2
- package/dist/cdn/FIQZPIIK.js +0 -2
- package/dist/cdn/FNLBJ4ZQ.js +0 -2
- package/dist/cdn/FRE56NBG.js +0 -2
- package/dist/cdn/GSOBDGLK.js +0 -2
- package/dist/cdn/GXM3XY3J.js +0 -2
- package/dist/cdn/HCNTXLUT.js +0 -2
- package/dist/cdn/I273CANO.js +0 -2
- package/dist/cdn/I6NVKNZJ.js +0 -2
- package/dist/cdn/J5FKIZAM.js +0 -2
- package/dist/cdn/J5NPDIZM.js +0 -2
- package/dist/cdn/JOUR2FB2.js +0 -3
- package/dist/cdn/JWBUJT43.js +0 -2
- package/dist/cdn/LISDTBEX.js +0 -2
- package/dist/cdn/LYLQCBVX.js +0 -2
- package/dist/cdn/MQK63FV7.js +0 -2
- package/dist/cdn/N4VOTJ25.js +0 -2
- package/dist/cdn/N5QLV56W.js +0 -2
- package/dist/cdn/OD5WXP7J.js +0 -2
- package/dist/cdn/OXPXXIWL.js +0 -2
- package/dist/cdn/PKA745KL.js +0 -2
- package/dist/cdn/PMRFXB4F.js +0 -2
- package/dist/cdn/PNIFJ5DQ.js +0 -2
- package/dist/cdn/PZDI5ZDC.js +0 -2
- package/dist/cdn/QROXYP6V.js +0 -2
- package/dist/cdn/QUOLQGKP.js +0 -2
- package/dist/cdn/QWHGLE3O.js +0 -2
- package/dist/cdn/R3PK7XOP.js +0 -2
- package/dist/cdn/REM3KCX6.js +0 -2
- package/dist/cdn/RNWICLRH.js +0 -2
- package/dist/cdn/RQYNPDN3.js +0 -2
- package/dist/cdn/S6F7U36E.js +0 -400
- package/dist/cdn/SMX2LEJB.js +0 -2
- package/dist/cdn/SVROAT3Z.js +0 -2
- package/dist/cdn/TBZXKKGP.js +0 -2
- package/dist/cdn/TNUCSWBN.js +0 -2
- package/dist/cdn/TOICLGFK.js +0 -2
- package/dist/cdn/TOTWYGB3.js +0 -2
- package/dist/cdn/TUUUK3VX.js +0 -2
- package/dist/cdn/U3KMGSVH.js +0 -2
- package/dist/cdn/UEP2NYJK.js +0 -2
- package/dist/cdn/UZP4YMTE.js +0 -2
- package/dist/cdn/XYMBRPC7.js +0 -2
- package/dist/cdn/YB3DR4VO.js +0 -2
- package/dist/cdn/YYTEJVBL.js +0 -2
- package/dist/cdn/Z3HGPBOR.js +0 -2
- package/dist/cdn/ZDDN7UKS.js +0 -2
- package/dist/cdn/ZXNF77OB.js +0 -2
- package/dist/chunks/functional.js +0 -9
- package/dist/components/arcgis-portal-ai-assistant/data/capability-registries/types.d.ts +0 -45
- /package/dist/cdn/{OUMTV5H5.js → KHKREBVZ.js} +0 -0
- /package/dist/cdn/{GGDOGNH4.js → U2HTYOBB.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export { canAddField, canDeleteField } from "./utils/fieldAddDelete.js";
|
|
2
|
+
export { generateEmbeddings } from "./utils/generateEmbeddings.js";
|
|
3
|
+
export { searchCatalog } from "./utils/semanticSearch.js";
|
|
4
|
+
export { type SemanticSearchEmbedding, type SemanticSearchItem, type SemanticSearchMatch, type SemanticSearchOptions, type SemanticSearchResult } from "./utils/semanticSearch.js";
|
|
2
5
|
export { type FieldDeleteOptions, type UserItemInfo } from "./utils/types.js";
|
|
3
6
|
export { type PortalAssistantTools } from "./components/arcgis-portal-ai-assistant/types/assistantTools.js";
|
|
7
|
+
export { type PortalAssistantEntityToolPresets } from "./components/arcgis-portal-ai-assistant/types/portalEntityTools.js";
|
|
8
|
+
export { createGetItemTool } from "./components/arcgis-portal-ai-assistant/tools/getItemTool.js";
|
|
9
|
+
export { createGetUserTool, createGetUserGroupsTool } from "./components/arcgis-portal-ai-assistant/tools/users.js";
|
|
10
|
+
export { createGetGroupTool, createGetGroupMembershipTool } from "./components/arcgis-portal-ai-assistant/tools/groups.js";
|
|
4
11
|
|
|
5
12
|
/**
|
|
6
13
|
* Get a resolved path from where an asset can be loaded.
|
|
@@ -65,12 +72,20 @@ import type { ArcgisPortalItemActions } from "./components/arcgis-portal-item-ac
|
|
|
65
72
|
import type { ArcgisPortalItemBadges } from "./components/arcgis-portal-item-badges/customElement.js";
|
|
66
73
|
import type { ArcgisPortalItemBadge } from "./components/arcgis-portal-item-badge/customElement.js";
|
|
67
74
|
import type { ArcgisPortalItemCard } from "./components/arcgis-portal-item-card/customElement.js";
|
|
75
|
+
import type { ArcgisPortalItemCardSublayerSelect } from "./components/arcgis-portal-item-card-sublayer-select/customElement.js";
|
|
68
76
|
import type { ArcgisPortalItemFavorite } from "./components/arcgis-portal-item-favorite/customElement.js";
|
|
69
77
|
import type { ArcgisPortalItemPicker } from "./components/arcgis-portal-item-picker/customElement.js";
|
|
78
|
+
import type { ArcgisPortalItemPreview } from "./components/arcgis-portal-item-preview/customElement.js";
|
|
79
|
+
import type { ArcgisPortalItemPreviewCopy } from "./components/arcgis-portal-item-preview-copy/customElement.js";
|
|
80
|
+
import type { ArcgisPortalItemPreviewField } from "./components/arcgis-portal-item-preview-field/customElement.js";
|
|
81
|
+
import type { ArcgisPortalItemPreviewSublayer } from "./components/arcgis-portal-item-preview-sublayer/customElement.js";
|
|
82
|
+
import type { ArcgisPortalItemShareSummary } from "./components/arcgis-portal-item-share-summary/customElement.js";
|
|
83
|
+
import type { ArcgisPortalItemShareSummaryEditable } from "./components/arcgis-portal-item-share-summary-editable/customElement.js";
|
|
70
84
|
import type { ArcgisPortalItemThumbnail } from "./components/arcgis-portal-item-thumbnail/customElement.js";
|
|
71
85
|
import type { ArcgisPortalItemType } from "./components/arcgis-portal-item-type/customElement.js";
|
|
72
86
|
import type { ArcgisPortalMentionableTextArea } from "./components/arcgis-portal-mentionable-text-area/customElement.js";
|
|
73
87
|
import type { ArcGISPortalNavigation } from "./components/arcgis-portal-navigation/customElement.js";
|
|
88
|
+
import type { ArcgisPortalPreviewPanel } from "./components/arcgis-portal-preview-panel/customElement.js";
|
|
74
89
|
import type { ArcgisPortalReplacementItemRedirect } from "./components/arcgis-portal-replacement-item-redirect/customElement.js";
|
|
75
90
|
import type { ArcgisPortalReviewRelatedItems } from "./components/arcgis-portal-review-related-items/customElement.js";
|
|
76
91
|
import type { ArcgisPortalSublayerType } from "./components/arcgis-portal-sublayer-type/customElement.js";
|
|
@@ -221,6 +236,11 @@ export interface ArcgisPortalItemCardCustomEvent<T> extends CustomEvent<T> {
|
|
|
221
236
|
target: ArcgisPortalItemCard;
|
|
222
237
|
currentTarget: ArcgisPortalItemCard;
|
|
223
238
|
}
|
|
239
|
+
export interface ArcgisPortalItemCardSublayerSelectCustomEvent<T> extends CustomEvent<T> {
|
|
240
|
+
detail: T;
|
|
241
|
+
target: ArcgisPortalItemCardSublayerSelect;
|
|
242
|
+
currentTarget: ArcgisPortalItemCardSublayerSelect;
|
|
243
|
+
}
|
|
224
244
|
export interface ArcgisPortalItemFavoriteCustomEvent<T> extends CustomEvent<T> {
|
|
225
245
|
detail: T;
|
|
226
246
|
target: ArcgisPortalItemFavorite;
|
|
@@ -231,6 +251,16 @@ export interface ArcgisPortalItemPickerCustomEvent<T> extends CustomEvent<T> {
|
|
|
231
251
|
target: ArcgisPortalItemPicker;
|
|
232
252
|
currentTarget: ArcgisPortalItemPicker;
|
|
233
253
|
}
|
|
254
|
+
export interface ArcgisPortalItemPreviewCustomEvent<T> extends CustomEvent<T> {
|
|
255
|
+
detail: T;
|
|
256
|
+
target: ArcgisPortalItemPreview;
|
|
257
|
+
currentTarget: ArcgisPortalItemPreview;
|
|
258
|
+
}
|
|
259
|
+
export interface ArcgisPortalItemShareSummaryEditableCustomEvent<T> extends CustomEvent<T> {
|
|
260
|
+
detail: T;
|
|
261
|
+
target: ArcgisPortalItemShareSummaryEditable;
|
|
262
|
+
currentTarget: ArcgisPortalItemShareSummaryEditable;
|
|
263
|
+
}
|
|
234
264
|
export interface ArcgisPortalItemThumbnailCustomEvent<T> extends CustomEvent<T> {
|
|
235
265
|
detail: T;
|
|
236
266
|
target: ArcgisPortalItemThumbnail;
|
|
@@ -246,6 +276,11 @@ export interface ArcgisPortalNavigationCustomEvent<T> extends CustomEvent<T> {
|
|
|
246
276
|
target: ArcGISPortalNavigation;
|
|
247
277
|
currentTarget: ArcGISPortalNavigation;
|
|
248
278
|
}
|
|
279
|
+
export interface ArcgisPortalPreviewPanelCustomEvent<T> extends CustomEvent<T> {
|
|
280
|
+
detail: T;
|
|
281
|
+
target: ArcgisPortalPreviewPanel;
|
|
282
|
+
currentTarget: ArcgisPortalPreviewPanel;
|
|
283
|
+
}
|
|
249
284
|
export interface ArcgisPortalReplacementItemRedirectCustomEvent<T> extends CustomEvent<T> {
|
|
250
285
|
detail: T;
|
|
251
286
|
target: ArcgisPortalReplacementItemRedirect;
|
|
@@ -307,12 +342,20 @@ declare global {
|
|
|
307
342
|
"arcgis-portal-item-badges": ArcgisPortalItemBadges;
|
|
308
343
|
"arcgis-portal-item-badge": ArcgisPortalItemBadge;
|
|
309
344
|
"arcgis-portal-item-card": ArcgisPortalItemCard;
|
|
345
|
+
"arcgis-portal-item-card-sublayer-select": ArcgisPortalItemCardSublayerSelect;
|
|
310
346
|
"arcgis-portal-item-favorite": ArcgisPortalItemFavorite;
|
|
311
347
|
"arcgis-portal-item-picker": ArcgisPortalItemPicker;
|
|
348
|
+
"arcgis-portal-item-preview": ArcgisPortalItemPreview;
|
|
349
|
+
"arcgis-portal-item-preview-copy": ArcgisPortalItemPreviewCopy;
|
|
350
|
+
"arcgis-portal-item-preview-field": ArcgisPortalItemPreviewField;
|
|
351
|
+
"arcgis-portal-item-preview-sublayer": ArcgisPortalItemPreviewSublayer;
|
|
352
|
+
"arcgis-portal-item-share-summary": ArcgisPortalItemShareSummary;
|
|
353
|
+
"arcgis-portal-item-share-summary-editable": ArcgisPortalItemShareSummaryEditable;
|
|
312
354
|
"arcgis-portal-item-thumbnail": ArcgisPortalItemThumbnail;
|
|
313
355
|
"arcgis-portal-item-type": ArcgisPortalItemType;
|
|
314
356
|
"arcgis-portal-mentionable-text-area": ArcgisPortalMentionableTextArea;
|
|
315
357
|
"arcgis-portal-navigation": ArcGISPortalNavigation;
|
|
358
|
+
"arcgis-portal-preview-panel": ArcgisPortalPreviewPanel;
|
|
316
359
|
"arcgis-portal-replacement-item-redirect": ArcgisPortalReplacementItemRedirect;
|
|
317
360
|
"arcgis-portal-review-related-items": ArcgisPortalReviewRelatedItems;
|
|
318
361
|
"arcgis-portal-sublayer-type": ArcgisPortalSublayerType;
|
|
@@ -425,12 +468,29 @@ declare global {
|
|
|
425
468
|
type HTMLArcgisPortalItemCardElementEventMap = ArcgisPortalItemCard["@eventTypes"];
|
|
426
469
|
type HTMLArcgisPortalItemCardElement = ArcgisPortalItemCard;
|
|
427
470
|
|
|
471
|
+
type HTMLArcgisPortalItemCardSublayerSelectElementEventMap = ArcgisPortalItemCardSublayerSelect["@eventTypes"];
|
|
472
|
+
type HTMLArcgisPortalItemCardSublayerSelectElement = ArcgisPortalItemCardSublayerSelect;
|
|
473
|
+
|
|
428
474
|
type HTMLArcgisPortalItemFavoriteElementEventMap = ArcgisPortalItemFavorite["@eventTypes"];
|
|
429
475
|
type HTMLArcgisPortalItemFavoriteElement = ArcgisPortalItemFavorite;
|
|
430
476
|
|
|
431
477
|
type HTMLArcgisPortalItemPickerElementEventMap = ArcgisPortalItemPicker["@eventTypes"];
|
|
432
478
|
type HTMLArcgisPortalItemPickerElement = ArcgisPortalItemPicker;
|
|
433
479
|
|
|
480
|
+
type HTMLArcgisPortalItemPreviewElementEventMap = ArcgisPortalItemPreview["@eventTypes"];
|
|
481
|
+
type HTMLArcgisPortalItemPreviewElement = ArcgisPortalItemPreview;
|
|
482
|
+
|
|
483
|
+
type HTMLArcgisPortalItemPreviewCopyElement = ArcgisPortalItemPreviewCopy;
|
|
484
|
+
|
|
485
|
+
type HTMLArcgisPortalItemPreviewFieldElement = ArcgisPortalItemPreviewField;
|
|
486
|
+
|
|
487
|
+
type HTMLArcgisPortalItemPreviewSublayerElement = ArcgisPortalItemPreviewSublayer;
|
|
488
|
+
|
|
489
|
+
type HTMLArcgisPortalItemShareSummaryElement = ArcgisPortalItemShareSummary;
|
|
490
|
+
|
|
491
|
+
type HTMLArcgisPortalItemShareSummaryEditableElementEventMap = ArcgisPortalItemShareSummaryEditable["@eventTypes"];
|
|
492
|
+
type HTMLArcgisPortalItemShareSummaryEditableElement = ArcgisPortalItemShareSummaryEditable;
|
|
493
|
+
|
|
434
494
|
type HTMLArcgisPortalItemThumbnailElementEventMap = ArcgisPortalItemThumbnail["@eventTypes"];
|
|
435
495
|
type HTMLArcgisPortalItemThumbnailElement = ArcgisPortalItemThumbnail;
|
|
436
496
|
|
|
@@ -442,6 +502,9 @@ declare global {
|
|
|
442
502
|
type HTMLArcgisPortalNavigationElementEventMap = ArcGISPortalNavigation["@eventTypes"];
|
|
443
503
|
type HTMLArcgisPortalNavigationElement = ArcGISPortalNavigation;
|
|
444
504
|
|
|
505
|
+
type HTMLArcgisPortalPreviewPanelElementEventMap = ArcgisPortalPreviewPanel["@eventTypes"];
|
|
506
|
+
type HTMLArcgisPortalPreviewPanelElement = ArcgisPortalPreviewPanel;
|
|
507
|
+
|
|
445
508
|
type HTMLArcgisPortalReplacementItemRedirectElementEventMap = ArcgisPortalReplacementItemRedirect["@eventTypes"];
|
|
446
509
|
type HTMLArcgisPortalReplacementItemRedirectElement = ArcgisPortalReplacementItemRedirect;
|
|
447
510
|
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,303 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { g as
|
|
3
|
-
import {
|
|
2
|
+
import { g as te, s as ne } from "./chunks/runtime.js";
|
|
3
|
+
import { e as oe, c as ae } from "./chunks/fieldAddDelete.js";
|
|
4
|
+
import { FunctionTool as h } from "@arcgis/ai-components/agent-utils/tools/FunctionTool.js";
|
|
5
|
+
import l from "zod";
|
|
6
|
+
import { a as L } from "./chunks/item2.js";
|
|
7
|
+
import { h as y } from "./chunks/user.js";
|
|
8
|
+
import { g as v } from "./chunks/portal.js";
|
|
9
|
+
import { r as I } from "./chunks/request.js";
|
|
10
|
+
async function P(r) {
|
|
11
|
+
if (r.length === 0)
|
|
12
|
+
return [];
|
|
13
|
+
const [{ getEmbeddings: t }, { default: s }] = await Promise.all([
|
|
14
|
+
import("@arcgis/ai-components/orchestrator/embeddings/getEmbeddings.js"),
|
|
15
|
+
import("@arcgis/core/portal/Portal.js")
|
|
16
|
+
]);
|
|
17
|
+
return await s.getDefault().load(), await t(r);
|
|
18
|
+
}
|
|
19
|
+
const p = 1.2, b = 0.75, q = 60, A = 0.65, w = /* @__PURE__ */ new WeakMap();
|
|
20
|
+
async function W(r, t, s = {}) {
|
|
21
|
+
if (s.topN !== void 0 && !Number.isFinite(s.topN))
|
|
22
|
+
throw new Error("topN must be a finite number.");
|
|
23
|
+
const e = new Map(t.map((a) => [a.id, a])), n = F(M(r), U(t));
|
|
24
|
+
let i = [], o;
|
|
25
|
+
if (r.trim() && t.length)
|
|
26
|
+
if (!s.loadEmbeddings && !s.embeddings)
|
|
27
|
+
o = "Catalog embeddings are unavailable.";
|
|
28
|
+
else
|
|
29
|
+
try {
|
|
30
|
+
const [a, u] = await Promise.all([
|
|
31
|
+
(s.embedQuery ?? z)(r),
|
|
32
|
+
s.loadEmbeddings ? s.loadEmbeddings() : s.embeddings
|
|
33
|
+
]);
|
|
34
|
+
if (!u)
|
|
35
|
+
throw new Error("Catalog embeddings are unavailable.");
|
|
36
|
+
i = R(a, u, e);
|
|
37
|
+
} catch (a) {
|
|
38
|
+
o = `Semantic search is unavailable: ${a instanceof Error ? a.message : String(a)}`;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
degraded: o !== void 0,
|
|
42
|
+
...o ? { degradedReason: o } : {},
|
|
43
|
+
matches: D(n, i, e, s.topN ?? 5)
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function U(r) {
|
|
47
|
+
const t = w.get(r);
|
|
48
|
+
if (t)
|
|
49
|
+
return t;
|
|
50
|
+
const s = /* @__PURE__ */ new Set(), e = /* @__PURE__ */ new Map(), n = r.map((o) => {
|
|
51
|
+
if (s.has(o.id))
|
|
52
|
+
throw new Error(`Duplicate item id "${o.id}" in search catalog.`);
|
|
53
|
+
s.add(o.id);
|
|
54
|
+
const a = /* @__PURE__ */ new Map();
|
|
55
|
+
f(a, o.title, 3), f(a, o.description, 1);
|
|
56
|
+
for (const u of o.hints ?? [])
|
|
57
|
+
f(a, u, 2);
|
|
58
|
+
for (const u of a.keys())
|
|
59
|
+
e.set(u, (e.get(u) ?? 0) + 1);
|
|
60
|
+
return {
|
|
61
|
+
id: o.id,
|
|
62
|
+
length: [...a.values()].reduce((u, m) => u + m, 0),
|
|
63
|
+
termFrequencies: a
|
|
64
|
+
};
|
|
65
|
+
}), i = {
|
|
66
|
+
averageDocumentLength: n.length ? n.reduce((o, a) => o + a.length, 0) / n.length : 0,
|
|
67
|
+
documentFrequency: e,
|
|
68
|
+
documents: n
|
|
69
|
+
};
|
|
70
|
+
return w.set(r, i), i;
|
|
71
|
+
}
|
|
72
|
+
function f(r, t, s) {
|
|
73
|
+
for (const e of M(t))
|
|
74
|
+
r.set(e, (r.get(e) ?? 0) + s);
|
|
75
|
+
}
|
|
76
|
+
function M(r) {
|
|
77
|
+
return r.toLowerCase().split(/[^a-z0-9]+/u).filter(Boolean);
|
|
78
|
+
}
|
|
79
|
+
function F(r, t) {
|
|
80
|
+
const s = new Set(r), e = t.documents.length;
|
|
81
|
+
return t.documents.map(({ id: n, length: i, termFrequencies: o }) => {
|
|
82
|
+
let a = 0;
|
|
83
|
+
for (const u of s) {
|
|
84
|
+
const m = o.get(u), d = t.documentFrequency.get(u);
|
|
85
|
+
if (!m || !d)
|
|
86
|
+
continue;
|
|
87
|
+
const g = Math.log(1 + (e - d + 0.5) / (d + 0.5)), c = p * (1 - b + b * (i / t.averageDocumentLength));
|
|
88
|
+
a += g * (m * (p + 1) / (m + c));
|
|
89
|
+
}
|
|
90
|
+
return { id: n, score: a };
|
|
91
|
+
}).filter(({ score: n }) => n > 0).sort(k);
|
|
92
|
+
}
|
|
93
|
+
function R(r, t, s) {
|
|
94
|
+
const e = /* @__PURE__ */ new Map();
|
|
95
|
+
S(r);
|
|
96
|
+
for (const { itemId: n, vector: i } of t) {
|
|
97
|
+
if (!s.has(n))
|
|
98
|
+
continue;
|
|
99
|
+
const o = N(r, i);
|
|
100
|
+
o > (e.get(n) ?? -1 / 0) && e.set(n, o);
|
|
101
|
+
}
|
|
102
|
+
return [...e.entries()].filter(([, n]) => n >= A).map(([n, i]) => ({ id: n, score: i })).sort(k);
|
|
103
|
+
}
|
|
104
|
+
function S(r) {
|
|
105
|
+
if (!r.length || r.some((t) => !Number.isFinite(t)) || r.every((t) => t === 0))
|
|
106
|
+
throw new Error("Embedding vectors must be non-empty, finite, and have non-zero magnitude.");
|
|
107
|
+
}
|
|
108
|
+
function N(r, t) {
|
|
109
|
+
if (S(t), r.length !== t.length)
|
|
110
|
+
throw new Error("Query and catalog embedding dimensions must match.");
|
|
111
|
+
let s = 0, e = 0, n = 0;
|
|
112
|
+
for (let o = 0; o < r.length; o += 1)
|
|
113
|
+
s += r[o] * t[o], e += r[o] ** 2, n += t[o] ** 2;
|
|
114
|
+
const i = s / (Math.sqrt(e) * Math.sqrt(n));
|
|
115
|
+
if (!Number.isFinite(i))
|
|
116
|
+
throw new Error("Embedding vector magnitudes are outside the supported numeric range.");
|
|
117
|
+
return i;
|
|
118
|
+
}
|
|
119
|
+
async function z(r) {
|
|
120
|
+
const t = await P([r]);
|
|
121
|
+
if (t.length !== 1)
|
|
122
|
+
throw new Error("Expected one query embedding.");
|
|
123
|
+
return t[0];
|
|
124
|
+
}
|
|
125
|
+
function D(r, t, s, e) {
|
|
126
|
+
const n = /* @__PURE__ */ new Map();
|
|
127
|
+
for (const [i, o] of [
|
|
128
|
+
["keyword", r],
|
|
129
|
+
["semantic", t]
|
|
130
|
+
])
|
|
131
|
+
for (const [a, { id: u, score: m }] of o.entries()) {
|
|
132
|
+
const d = a + 1, g = s.get(u), c = n.get(u) ?? { item: g, score: 0 };
|
|
133
|
+
c.score += 1 / (q + d), i === "keyword" ? (c.keywordRank = d, c.keywordScore = m) : (c.semanticRank = d, c.semanticScore = m), n.set(u, c);
|
|
134
|
+
}
|
|
135
|
+
return [...n.values()].sort(
|
|
136
|
+
(i, o) => o.score - i.score || (o.semanticScore ?? 0) - (i.semanticScore ?? 0) || (o.keywordScore ?? 0) - (i.keywordScore ?? 0) || i.item.id.localeCompare(o.item.id)
|
|
137
|
+
).slice(0, Math.max(0, e));
|
|
138
|
+
}
|
|
139
|
+
function k(r, t) {
|
|
140
|
+
return t.score - r.score || r.id.localeCompare(t.id);
|
|
141
|
+
}
|
|
142
|
+
const $ = l.object({
|
|
143
|
+
itemId: l.string().trim().regex(/^[a-f0-9]{32}$/iu).describe("The 32-character hexadecimal Portal item ID.")
|
|
144
|
+
});
|
|
145
|
+
function J(r) {
|
|
146
|
+
return new h({
|
|
147
|
+
name: "getItem",
|
|
148
|
+
description: "Retrieves current metadata for a Portal item by ID. Returns result metadata or an error; an error does not mean the item is private or missing. This tool is read-only.",
|
|
149
|
+
inputSchema: $,
|
|
150
|
+
execute: async ({ itemId: t }) => await L(r, t)
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
const T = l.object({
|
|
154
|
+
username: l.string().trim().min(1).optional().describe("An exact Portal username; omit for the signed-in user.")
|
|
155
|
+
});
|
|
156
|
+
function x() {
|
|
157
|
+
return { error: { code: "serviceUnavailable", message: "A username or signed-in Portal user is required." } };
|
|
158
|
+
}
|
|
159
|
+
function X(r) {
|
|
160
|
+
return new h({
|
|
161
|
+
name: "getUser",
|
|
162
|
+
description: "Reads fresh user identity, organization, role, license, account status, and available privileges. Omit username for the signed-in user. Missing fields are unknown; this read does not authorize actions.",
|
|
163
|
+
inputSchema: T,
|
|
164
|
+
execute: async ({ username: t = r.user?.username }, s) => {
|
|
165
|
+
if (!t)
|
|
166
|
+
return x();
|
|
167
|
+
const { result: e, error: n } = await y(r, t, { signal: s?.signal });
|
|
168
|
+
return e ? {
|
|
169
|
+
result: {
|
|
170
|
+
username: e.username,
|
|
171
|
+
fullName: e.fullName,
|
|
172
|
+
orgId: e.orgId,
|
|
173
|
+
role: e.role,
|
|
174
|
+
roleId: e.roleId,
|
|
175
|
+
privileges: e.privileges,
|
|
176
|
+
disabled: e.disabled,
|
|
177
|
+
level: e.level,
|
|
178
|
+
userLicenseTypeId: e.userLicenseTypeId
|
|
179
|
+
}
|
|
180
|
+
} : { error: n };
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
function Y(r) {
|
|
185
|
+
return new h({
|
|
186
|
+
name: "getUserGroups",
|
|
187
|
+
description: "Lists visible memberships from a fresh user profile; omit username for the signed-in user. Groups are discovery candidates, not selections or management permissions. Omission does not prove non-membership; use getGroupMembership for an exact check.",
|
|
188
|
+
inputSchema: T,
|
|
189
|
+
execute: async ({ username: t = r.user?.username }, s) => {
|
|
190
|
+
if (!t)
|
|
191
|
+
return x();
|
|
192
|
+
const { result: e, error: n } = await y(r, t, { signal: s?.signal });
|
|
193
|
+
return e ? e.groups ? { result: e.groups.map(({ id: i, title: o, owner: a, access: u }) => ({ id: i, title: o, owner: a, access: u })) } : {
|
|
194
|
+
error: { code: "serviceUnavailable", message: "Group memberships are not available in this user profile." }
|
|
195
|
+
} : { error: n };
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
async function E(r, t, s = {}) {
|
|
200
|
+
try {
|
|
201
|
+
s.signal?.throwIfAborted();
|
|
202
|
+
const e = await I({
|
|
203
|
+
portal: r,
|
|
204
|
+
url: `${v(r)}community/groups/${t}`,
|
|
205
|
+
options: s
|
|
206
|
+
});
|
|
207
|
+
return s.signal?.throwIfAborted(), e.id?.toLowerCase() !== t.toLowerCase() ? { error: { code: "serviceUnavailable", message: "The requested group metadata is unavailable." } } : { result: e };
|
|
208
|
+
} catch (e) {
|
|
209
|
+
return s.signal?.aborted || console.error("Could not retrieve group metadata:", e), { error: { code: "unhandledError", message: "Could not retrieve group metadata." } };
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
async function B(r, t, s, e = {}) {
|
|
213
|
+
const { result: n, error: i } = await E(r, t, e);
|
|
214
|
+
if (!n)
|
|
215
|
+
return { error: i };
|
|
216
|
+
const o = (a) => a.toLowerCase() === s.toLowerCase();
|
|
217
|
+
try {
|
|
218
|
+
if (o(n.owner))
|
|
219
|
+
return { result: { groupId: n.id, username: n.owner, memberType: "owner" } };
|
|
220
|
+
const a = n.userMembership;
|
|
221
|
+
if (a && o(a.username))
|
|
222
|
+
return {
|
|
223
|
+
result: { groupId: n.id, username: a.username, memberType: a.memberType }
|
|
224
|
+
};
|
|
225
|
+
const u = n.owner.toLowerCase() === r.user?.username.toLowerCase() || a !== void 0 && ["owner", "admin", "manager"].includes(a.memberType);
|
|
226
|
+
if (n.hiddenMembers && !u)
|
|
227
|
+
return {
|
|
228
|
+
error: {
|
|
229
|
+
code: "serviceUnavailable",
|
|
230
|
+
message: "This group's members are hidden; the requested membership cannot be verified from group metadata."
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
let m = 1;
|
|
234
|
+
for (; ; ) {
|
|
235
|
+
e.signal?.throwIfAborted();
|
|
236
|
+
const { users: d, nextStart: g } = await I({
|
|
237
|
+
portal: r,
|
|
238
|
+
url: `${v(r)}community/groups/${t}/userList`,
|
|
239
|
+
params: { start: m, num: 100, sortField: "username", sortOrder: "asc" },
|
|
240
|
+
options: e
|
|
241
|
+
});
|
|
242
|
+
e.signal?.throwIfAborted();
|
|
243
|
+
const c = d.find((G) => o(G.username));
|
|
244
|
+
if (c)
|
|
245
|
+
return { result: { groupId: n.id, username: c.username, memberType: c.memberType } };
|
|
246
|
+
if (g === -1)
|
|
247
|
+
return { result: { groupId: n.id, username: s, memberType: "none" } };
|
|
248
|
+
m = g;
|
|
249
|
+
}
|
|
250
|
+
} catch (a) {
|
|
251
|
+
return e.signal?.aborted || console.error("Could not retrieve group membership:", a), { error: { code: "unhandledError", message: "Could not retrieve group membership." } };
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
const C = l.object({
|
|
255
|
+
groupId: l.string().trim().regex(/^[a-f0-9]{32}$/iu).describe("The resolved Portal group ID.")
|
|
256
|
+
});
|
|
257
|
+
function Z(r) {
|
|
258
|
+
return new h({
|
|
259
|
+
name: "getGroup",
|
|
260
|
+
description: "Reads fresh group settings, owner, and current-user membership when available. Missing fields are unknown. Membership does not establish management permission.",
|
|
261
|
+
inputSchema: C,
|
|
262
|
+
execute: async ({ groupId: t }, s) => {
|
|
263
|
+
const { result: e, error: n } = await E(r, t, { signal: s?.signal });
|
|
264
|
+
return e ? {
|
|
265
|
+
result: {
|
|
266
|
+
id: e.id,
|
|
267
|
+
title: e.title,
|
|
268
|
+
owner: e.owner,
|
|
269
|
+
orgId: e.orgId,
|
|
270
|
+
access: e.access,
|
|
271
|
+
capabilities: e.capabilities,
|
|
272
|
+
membershipAccess: e.membershipAccess,
|
|
273
|
+
userMembership: e.userMembership,
|
|
274
|
+
hiddenMembers: e.hiddenMembers,
|
|
275
|
+
provider: e.provider
|
|
276
|
+
}
|
|
277
|
+
} : { error: n };
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
function _(r) {
|
|
282
|
+
return new h({
|
|
283
|
+
name: "getGroupMembership",
|
|
284
|
+
description: "Checks an exact username's group role: owner, admin/manager, member, or none. May page through members. Restricted or failed reads return errors, not non-membership. Membership does not authorize actions.",
|
|
285
|
+
inputSchema: C.extend({
|
|
286
|
+
username: l.string().trim().min(1).describe("An exact Portal username, not a display name.")
|
|
287
|
+
}),
|
|
288
|
+
execute: async ({ groupId: t, username: s }, e) => await B(r, t, s, { signal: e?.signal })
|
|
289
|
+
});
|
|
290
|
+
}
|
|
4
291
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
292
|
+
oe as canAddField,
|
|
293
|
+
ae as canDeleteField,
|
|
294
|
+
_ as createGetGroupMembershipTool,
|
|
295
|
+
Z as createGetGroupTool,
|
|
296
|
+
J as createGetItemTool,
|
|
297
|
+
Y as createGetUserGroupsTool,
|
|
298
|
+
X as createGetUserTool,
|
|
299
|
+
P as generateEmbeddings,
|
|
300
|
+
te as getAssetPath,
|
|
301
|
+
W as searchCatalog,
|
|
302
|
+
ne as setAssetPath
|
|
9
303
|
};
|
package/dist/loader.js
CHANGED
|
@@ -6,9 +6,9 @@ const a = s(e, {
|
|
|
6
6
|
"arcgis-portal-account-switcher-accounts": [() => import("./components/arcgis-portal-account-switcher-accounts/customElement.js"), "accounts:,messages:,portal:,targetUser"],
|
|
7
7
|
"arcgis-portal-account-switcher-list": [() => import("./components/arcgis-portal-account-switcher-list/customElement.js"), "accountAccess:,actions:,interactive,linkedAccounts:,messages:,portal:,signedInUsers:"],
|
|
8
8
|
"arcgis-portal-account-switcher-signout": [() => import("./components/arcgis-portal-account-switcher-signout/customElement.js"), "messages:,portal:,signedInAccounts:"],
|
|
9
|
-
"arcgis-portal-add-gps-metadata": [() => import("./components/arcgis-portal-add-gps-metadata/customElement.js"), "item:,itemId,messages:,portal:"],
|
|
10
|
-
"arcgis-portal-ai-assistant": [() => import("./components/arcgis-portal-ai-assistant/customElement.js"), "autoDestroyDisabled,config:,defaultClosed,disabledAgents:,
|
|
11
|
-
"arcgis-portal-ai-assistant-interrupt": [() => import("./components/arcgis-portal-ai-assistant-interrupt/customElement.js"), "_messages:,message,options:,type"],
|
|
9
|
+
"arcgis-portal-add-gps-metadata": [() => import("./components/arcgis-portal-add-gps-metadata/customElement.js"), "areSourceSchemaChangesAllowed:,canShowAddGPSMetadata:,item:,itemId,messageOverrides:,messages:,portal:,supportsAttachments:"],
|
|
10
|
+
"arcgis-portal-ai-assistant": [() => import("./components/arcgis-portal-ai-assistant/customElement.js"), "autoDestroyDisabled,config:,currentContext:,defaultClosed,disabledAgents:,entityToolPresets:,navigationTargetMap:,observabilityEnabled,portal:,t9n:,tools:,user:"],
|
|
11
|
+
"arcgis-portal-ai-assistant-interrupt": [() => import("./components/arcgis-portal-ai-assistant-interrupt/customElement.js"), "_messages:,entityRequest:,message,options:,pickerMessages:,portal:,requestId,type"],
|
|
12
12
|
"arcgis-portal-browser": [() => import("./components/arcgis-portal-browser/customElement.js"), "_messages:,alwaysShowContent,alwaysShowPagination,alwaysShowSelection,formFactor,height,hideContentTop,hideFilters,hideTopBar,loading,panel,preview,rangeFormatter:,response:,searchTerm,selected:,showPreSearch,store:;scrollToTop"],
|
|
13
13
|
"arcgis-portal-browser-actions": [() => import("./components/arcgis-portal-browser-actions/customElement.js"), "_messages:,actions:,selection:;restoreFocus"],
|
|
14
14
|
"arcgis-portal-browser-filter-status": [() => import("./components/arcgis-portal-browser-filter-status/customElement.js"), "_messages:,browserWidth,componentWidth,filters:,hiddenFilterIds:"],
|
|
@@ -21,9 +21,9 @@ const a = s(e, {
|
|
|
21
21
|
"arcgis-portal-classification-config": [() => import("./components/arcgis-portal-classification-config/customElement.js"), "autoDestroyDisabled,messages:,portalItem:,status,valid,values;destroy,resetForm,validateForm"],
|
|
22
22
|
"arcgis-portal-classification-favorite": [() => import("./components/arcgis-portal-classification-favorite/customElement.js"), "attributeExpressionResults:,classificationValue:,favoriteClassifications:,messages:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],
|
|
23
23
|
"arcgis-portal-classification-form-element": [() => import("./components/arcgis-portal-classification-form-element/customElement.js"), "attribute:,attributeKey,isRequiredErrors:,messages:,renderingInfo:,value:"],
|
|
24
|
-
"arcgis-portal-delete-items": [() => import("./components/arcgis-portal-delete-items/customElement.js"), "active,disableLinks,items:,messages:,portal:,user:"],
|
|
24
|
+
"arcgis-portal-delete-items": [() => import("./components/arcgis-portal-delete-items/customElement.js"), "active,disableLinks,fieldDeleteMessages:,itemIds:,items:,messages:,portal:,user:"],
|
|
25
25
|
"arcgis-portal-delete-items-review": [() => import("./components/arcgis-portal-delete-items-review/customElement.js"), "items:,messages:,portal:,user:"],
|
|
26
|
-
"arcgis-portal-entity-picker": [() => import("./components/arcgis-portal-entity-picker/customElement.js"), "_messages:,entityType,icon,messageOverrides:,mode,num,portal:,query,selected:,selectionMode;setFocus,togglePicker"],
|
|
26
|
+
"arcgis-portal-entity-picker": [() => import("./components/arcgis-portal-entity-picker/customElement.js"), "_messages:,entityType,icon,initialScope,initialSearchTerm,messageOverrides:,mode,num,portal:,query,scopeSelectionDisabled,selected:,selectionMode;setFocus,togglePicker"],
|
|
27
27
|
"arcgis-portal-extent-picker": [() => import("./components/arcgis-portal-extent-picker/customElement.js"), "active,contentOnly,extentService,extentValue:,isArea,itemId,messages:,portal:;;getExtent"],
|
|
28
28
|
"arcgis-portal-extent-picker-coord-field": [() => import("./components/arcgis-portal-extent-picker-coord-field/customElement.js"), "errorMessage,inputId,label,max,min,relatedErrorMessage,validateRelated:,value;;checkRelatedField,isValid,setFocus"],
|
|
29
29
|
"arcgis-portal-field-delete": [() => import("./components/arcgis-portal-field-delete/customElement.js"), "config:,fieldNames:,layer:,mapView:,messages:,options:"],
|
|
@@ -33,24 +33,32 @@ const a = s(e, {
|
|
|
33
33
|
"arcgis-portal-group-browser-preview": [() => import("./components/arcgis-portal-group-browser-preview/customElement.js"), "currentResponse:,group:,hideBadges,hidePreviewFooter,messages:,portal:,previewFooterActionsSpaced,user:;setFocus"],
|
|
34
34
|
"arcgis-portal-group-browser-preview-card": [() => import("./components/arcgis-portal-group-browser-preview-card/customElement.js"), "baseUrl,hideItemType,hideOwner,hideThumbnail,interactive,item:,link,newTab,portal:,showBadges,showDateUpdated,showOwnerPopup,showSummary,user:;restoreFocus"],
|
|
35
35
|
"arcgis-portal-group-card": [() => import("./components/arcgis-portal-group-card/customElement.js"), "disabled,group:,hideBadges,hideDateUpdated,hideOwner,hideViewableBy,indeterminate,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,selected,selection,showDateCreated,showSummary,user:,view;restoreFocus"],
|
|
36
|
-
"arcgis-portal-group-picker": [() => import("./components/arcgis-portal-group-picker/customElement.js"), "_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:,selectionMode;setFocus,togglePicker"],
|
|
36
|
+
"arcgis-portal-group-picker": [() => import("./components/arcgis-portal-group-picker/customElement.js"), "_messages:,entityType:,icon,initialScope,initialSearchTerm,messageOverrides:,mode,num,portal:,query,scopeSelectionDisabled,selected:,selectionMode;setFocus,togglePicker"],
|
|
37
37
|
"arcgis-portal-group-thumbnail": [() => import("./components/arcgis-portal-group-thumbnail/customElement.js"), "group:,portal:,scale,tooltip"],
|
|
38
38
|
"arcgis-portal-info-banner": [() => import("./components/arcgis-portal-info-banner/customElement.js"), "config:,position"],
|
|
39
39
|
"arcgis-portal-item-actions": [() => import("./components/arcgis-portal-item-actions/customElement.js"), "actions:,item:,keyHandler:,label,messages:,portal:,previewText,showFavorite,showPreview,tabIndexOverride,user:;setFocus"],
|
|
40
40
|
"arcgis-portal-item-badges": [() => import("./components/arcgis-portal-item-badges/customElement.js"), "appearance,empty,item:,portal:,scale,showTooltips,useProduction,user:,width"],
|
|
41
41
|
"arcgis-portal-item-badge": [() => import("./components/arcgis-portal-item-badge/customElement.js"), "_messages:,appearance,badgeType,item:,portal:,scale,showTooltip,useProduction,user:,width"],
|
|
42
|
-
"arcgis-portal-item-card": [() => import("./components/arcgis-portal-item-card/customElement.js"), "actions:,disabled,disableSelection,hideActionsStart,item:,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,recycleBin,selected,selection,showAccess,showBadges,showBadgeTooltips,showDateUpdated,showFavorite,showFavoriteInActionsMenu,showItemType,showItemTypeHosted,showOwner,showSummary,showThumbnail,user:,userPopupZIndex,view;restoreFocus"],
|
|
42
|
+
"arcgis-portal-item-card": [() => import("./components/arcgis-portal-item-card/customElement.js"), "actions:,allowedGeometries:,disabled,disableSelection,groups:,hideActionsStart,item:,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,recycleBin,selected,selectedItems:,selection,showAccess,showBadges,showBadgeTooltips,showDateUpdated,showFavorite,showFavoriteInActionsMenu,showItemType,showItemTypeHosted,showOwner,showSummary,showThumbnail,useProduction,user:,userGroups:,userPopupZIndex,view;restoreFocus"],
|
|
43
|
+
"arcgis-portal-item-card-sublayer-select": [() => import("./components/arcgis-portal-item-card-sublayer-select/customElement.js"), "allowedGeometries:,appearance,disabled,item:,messageOverrides:,messages:,portal:,selectedItems:,selection,width"],
|
|
43
44
|
"arcgis-portal-item-favorite": [() => import("./components/arcgis-portal-item-favorite/customElement.js"), "iconOnly,item:,messages:,portal:,scale,showTooltip,user:,width;setFocus"],
|
|
44
|
-
"arcgis-portal-item-picker": [() => import("./components/arcgis-portal-item-picker/customElement.js"), "_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:,selectionMode;setFocus,togglePicker"],
|
|
45
|
+
"arcgis-portal-item-picker": [() => import("./components/arcgis-portal-item-picker/customElement.js"), "_messages:,entityType:,icon,initialScope,initialSearchTerm,messageOverrides:,mode,num,portal:,query,scopeSelectionDisabled,selected:,selectionMode;setFocus,togglePicker"],
|
|
46
|
+
"arcgis-portal-item-preview": [() => import("./components/arcgis-portal-item-preview/customElement.js"), "groups:,item:,matchedSublayerIds:,messages:,portal:,showFieldStatistics,showHosted,user:,userGroups:;setFocus"],
|
|
47
|
+
"arcgis-portal-item-preview-copy": [() => import("./components/arcgis-portal-item-preview-copy/customElement.js"), "heading,label,messages:,section,text"],
|
|
48
|
+
"arcgis-portal-item-preview-field": [() => import("./components/arcgis-portal-item-preview-field/customElement.js"), "failed,field:,layer:,messages:,showStatistics"],
|
|
49
|
+
"arcgis-portal-item-preview-sublayer": [() => import("./components/arcgis-portal-item-preview-sublayer/customElement.js"), "externalLinkHandler:,item:,layer:,messages:,portal:,showFieldStatistics"],
|
|
50
|
+
"arcgis-portal-item-share-summary": [() => import("./components/arcgis-portal-item-share-summary/customElement.js"), "autoFetchGroups,groups:,item:,messageOverrides:,messages:,overlayPositioning,portal:,scale,showHoverText,showText,userGroups:;fetchGroups,setFocus"],
|
|
51
|
+
"arcgis-portal-item-share-summary-editable": [() => import("./components/arcgis-portal-item-share-summary-editable/customElement.js"), "allowEdit,autoFetchGroups,groups:,item:,messageOverrides:,messages:,overlayPositioning,portal:,scale,showHoverText,showText,userGroups:;fetchGroups,setFocus"],
|
|
45
52
|
"arcgis-portal-item-thumbnail": [() => import("./components/arcgis-portal-item-thumbnail/customElement.js"), "cacheString,generate,item:,portal:,serviceInfo:,useProduction,user:;generateThumbnail"],
|
|
46
53
|
"arcgis-portal-item-type": [() => import("./components/arcgis-portal-item-type/customElement.js"), "ellipsis,hideIcon,hideText,item:,messages:,portal:,scale,serviceInfo:,showHosted,user:"],
|
|
47
54
|
"arcgis-portal-mentionable-text-area": [() => import("./components/arcgis-portal-mentionable-text-area/customElement.js"), "disabled,maxLength,placeholder,popoverListLabel,popoverPlacement,portal:,readOnly,rows,scale,starters:,user:,value;closePopover,focusTextArea,selectItem"],
|
|
48
55
|
"arcgis-portal-navigation": [() => import("./components/arcgis-portal-navigation/customElement.js"), "clientId,currentPathname,disableNotebookServer,disableTrackViewer,maxWidth,messages:,portal:,portalItem:,product,productHref,projectMenuIcon,projectMenuOptions:,projectMenuSaveIndicator,projectTitle,projectTitleSave:"],
|
|
56
|
+
"arcgis-portal-preview-panel": [() => import("./components/arcgis-portal-preview-panel/customElement.js"), "fixed,open"],
|
|
49
57
|
"arcgis-portal-replacement-item-redirect": [() => import("./components/arcgis-portal-replacement-item-redirect/customElement.js"), "itemId,messages:,portal:,user:;setFocus"],
|
|
50
|
-
"arcgis-portal-review-related-items": [() => import("./components/arcgis-portal-review-related-items/customElement.js"), "messages:,portal:,relatedItems:,sourceItem:,user:"],
|
|
58
|
+
"arcgis-portal-review-related-items": [() => import("./components/arcgis-portal-review-related-items/customElement.js"), "browserMessages:,deleteMessages:,messages:,portal:,relatedItems:,relatedItemsCount,showDependentItems,sourceItem:,user:"],
|
|
51
59
|
"arcgis-portal-sublayer-type": [() => import("./components/arcgis-portal-sublayer-type/customElement.js"), "geometry,hideIcon,hideName,hideType,messages:,name,renderer:,scale,type,underline"],
|
|
52
60
|
"arcgis-portal-user-avatar": [() => import("./components/arcgis-portal-user-avatar/customElement.js"), "checkOnline,description,heading,hideAvatar,messages:,portal:,scale,showName,underline,user:,username,wrap"],
|
|
53
|
-
"arcgis-portal-user-picker": [() => import("./components/arcgis-portal-user-picker/customElement.js"), "_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:,selectionMode;setFocus,togglePicker"],
|
|
61
|
+
"arcgis-portal-user-picker": [() => import("./components/arcgis-portal-user-picker/customElement.js"), "_messages:,entityType:,icon,initialScope,initialSearchTerm,messageOverrides:,mode,num,portal:,query,scopeSelectionDisabled,selected:,selectionMode;setFocus,togglePicker"],
|
|
54
62
|
"arcgis-portal-user-popup": [() => import("./components/arcgis-portal-user-popup/customElement.js"), "appearance,avatarAriaHidden,baseUrl,checkOnline,fullName,item:,messages:,portal:,scale,showAvatar,showName,showUsername,underline,user:,username,wrap,zIndex;openPopup,setFocus"],
|
|
55
63
|
"arcgis-portal-voice-input": [() => import("./components/arcgis-portal-voice-input/customElement.js"), "language;clearText,startListening,stopListening"]
|
|
56
64
|
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type Portal from "@arcgis/core/portal/Portal.js";
|
|
2
|
+
import type { MemberType } from "../types/group.js";
|
|
3
|
+
import type { Result } from "../types/services.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Checks one user's membership, never inferring absence from a partial member list.
|
|
7
|
+
*
|
|
8
|
+
* @param portal
|
|
9
|
+
* @param groupId
|
|
10
|
+
* @param username
|
|
11
|
+
* @param options
|
|
12
|
+
*/
|
|
13
|
+
export function getGroupMembership(portal: Portal, groupId: string, username: string, options?: { signal?: AbortSignal; }): Promise<Result<{
|
|
14
|
+
groupId: string;
|
|
15
|
+
username: string;
|
|
16
|
+
memberType: MemberType;
|
|
17
|
+
}, "serviceUnavailable" | "unhandledError">>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type Portal from "@arcgis/core/portal/Portal.js";
|
|
2
|
+
import type { ItemSourceJSON } from "../types/item.js";
|
|
3
|
+
import type { Result } from "../types/services.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @param portal
|
|
7
|
+
* @param itemId
|
|
8
|
+
*/
|
|
9
|
+
export function getItem(portal: Portal, itemId: string): Promise<Result<ItemSourceJSON, "unhandledError">>;
|
package/dist/types/item.d.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
import type { FeatureLayerProperties } from "@arcgis/core/layers/FeatureLayer.js";
|
|
2
|
+
import type { ArcGISImageService } from "@arcgis/core/layers/mixins/ArcGISImageService.js";
|
|
3
|
+
|
|
4
|
+
export type ItemServiceInfo = FeatureLayerProperties | Partial<Pick<ArcGISImageService, "hasMultidimensions" | "sourceType">>;
|
|
5
|
+
|
|
1
6
|
export type StandardAccessLevel = "org" | "private" | "public";
|
|
2
7
|
|
|
8
|
+
/** Shared is `org` + shared to group, which is only for item */
|
|
9
|
+
export type AccessLevel = StandardAccessLevel | "shared";
|
|
10
|
+
|
|
3
11
|
export interface ItemSourceJSON {
|
|
4
12
|
id: string;
|
|
5
13
|
owner: string;
|
|
@@ -31,6 +39,7 @@ export interface ItemSourceJSON {
|
|
|
31
39
|
contentOrigin?: "other" | "self";
|
|
32
40
|
protected?: boolean;
|
|
33
41
|
size?: number;
|
|
42
|
+
subInfo?: number;
|
|
34
43
|
ownerFolder: string | null;
|
|
35
44
|
inRecycleBin?: boolean;
|
|
36
45
|
datasetName?: string;
|
|
@@ -47,17 +56,6 @@ export interface ItemSourceJSON {
|
|
|
47
56
|
|
|
48
57
|
export type SearchResultSublayerGeometry = "multipoint" | "nonspatial" | "point" | "polygon" | "polyline";
|
|
49
58
|
|
|
50
|
-
/** Shared is `org` + shared to group, which is only for item */
|
|
51
|
-
export type AccessLevel = StandardAccessLevel | "shared";
|
|
52
|
-
|
|
53
|
-
export type ServicePropertyTags = "allowAnalysis" | "DataTypeElevation" | "DataTypeGeneric" | "DataTypeProcessed" | "DataTypeRGB" | "DataTypeScientific" | "DataTypeThematic" | "DataTypeVector-MagDir" | "DataTypeVector-UV" | "hasColormap" | "hasMultidimensions" | "hasRasterAttributeTable" | "PixelTypeF32" | "PixelTypeF64" | "PixelTypeS8" | "PixelTypeS16" | "PixelTypeS32" | "PixelTypeU1" | "PixelTypeU2" | "PixelTypeU4" | "PixelTypeU8" | "PixelTypeU16" | "PixelTypeU32" | "SourceTypeCatalog" | "SourceTypeDataset" | "SourceTypeLayer" | "SourceTypeMosaicDataset";
|
|
54
|
-
|
|
55
|
-
export type ContentStatus = "deprecated" | "org_authoritative" | "public_authoritative";
|
|
56
|
-
|
|
57
|
-
export type ItemType = RetiredItemType | "3DTiles Package" | "3DTiles Service" | "360 VR Experience" | "Addin Package" | "Administrative Report" | "Analysis Model" | "Apache Parquet" | "API Key" | "AppBuilder Extension" | "AppBuilder Widget Package" | "Application Theme" | "Application" | "ArcGIS Explorer Application Configuration" | "ArcGIS Pro Add In" | "ArcGIS Pro Configuration" | "ArcMap Document" | "ArcPad Package" | "Basemap Package" | "Big Data Analytic" | "CAD Drawing" | "CityEngine Web Scene" | "Code Attachment" | "Code Sample" | "Color Set" | "Compact Tile Package" | "Content Category Set" | "CSV Collection" | "CSV" | "Dashboard" | "Data Pipeline" | "Data Store" | "datastore catalog service" | "Deep Learning Package" | "Deep Learning Studio Project" | "Desktop Add In" | "Desktop Application Template" | "Desktop Application" | "Desktop Style" | "Dictionary Style" | "Discussion" | "Document Link" | "Document" | "Dropbox" | "Earth Configuration" | "Esri Classification Schema" | "Esri Classifier Definition" | "Esri Spectral Library" | "Excalibur Imagery Project" | "Experience Builder Widget Package" | "Experience Builder Widget" | "Explorer Add In" | "Explorer Document" | "Explorer Layer" | "Explorer Map" | "Export Package" | "Feature Collection Template" | "Feature Collection" | "Feature Service" | "Feed" | "File Geodatabase" | "Form" | "GeoBIM Application" | "GeoBIM Project" | "Geocoding Service" | "Geodata Service" | "Geoenrichment Service" | "GeoJson" | "Geometry Service" | "GeoPackage" | "Geoprocessing Package" | "Geoprocessing Sample" | "Geoprocessing Service" | "GeoRSS" | "Globe Document" | "Globe Layer" | "Globe Service" | "GML" | "Google Drive" | "Group Layer" | "Hub Event" | "Hub Initiative Template" | "Hub Initiative" | "Hub Page" | "Hub Project" | "Hub Site Application" | "Image Collection" | "Image Service" | "Image" | "Imagery Layer" | "Insights Data Engineering Model" | "Insights Data Engineering Workbook" | "Insights Model" | "Insights Page" | "Insights Script" | "Insights Theme" | "Insights Workbook Package" | "Insights Workbook" | "Integration Info" | "IPS Configuration" | "iWork Keynote" | "iWork Numbers" | "iWork Pages" | "Kernel Gateway Connection" | "KML Collection" | "KML" | "Knowledge Graph Configuration" | "Knowledge Graph Layer" | "Knowledge Graph Web Investigation" | "Knowledge Graph" | "Knowledge Studio Project" | "Layer File" | "Layer Package" | "Layer Template" | "Layer" | "Layout" | "Living Atlas Export Package" | "Locator Package" | "Map Area" | "Map Document" | "Map Package" | "Map Service" | "Map Showcase" | "Map Template" | "Media Layer" | "Microsoft Excel" | "Microsoft Powerpoint" | "Microsoft Word" | "Mission Report" | "Mission Template" | "Mobile Application" | "Mobile Basemap Package" | "Mobile Map Package" | "Mobile Scene Package" | "Native Application Installer" | "Native Application" | "netCDF" | "Network Analysis Service" | "Notebook Code Snippet Library" | "Notebook Code Snippets" | "Notebook" | "OGCFeatureServer" | "OneDrive" | "Oriented Imagery Catalog" | "Ortho Mapping Project" | "Ortho Mapping Template" | "Parquet Collection" | "Parquet Feature Layer" | "PDF" | "Pro Map" | "Pro Presentation" | "Pro Project" | "Pro Report Template" | "Pro Report" | "Project Package" | "Project Template" | "Published Map" | "QuickCapture Project" | "Raster function template" | "Real Time Analytic" | "Reality Mapping Project" | "Reality Studio Project" | "Relational Database Connection" | "Replication Package" | "Report Template" | "Route Layer" | "Rule Package" | "Scene Document" | "Scene Package" | "Scene Service" | "Server" | "Service Connection" | "Service Definition" | "Shapefile" | "Site Application" | "Site Page" | "Solution" | "Spatial Database Engine" | "SQLite Geodatabase" | "Statistical Data Collection" | "StoryMap Theme" | "StoryMap" | "Stream Service" | "Style" | "Suitability Model" | "Survey123 Add In" | "Symbol Set" | "Task File" | "Tile Layer" | "Tile Package" | "Tool" | "Urban Model" | "Urban Project" | "Vector Tile Package" | "Vector Tile Service" | "Video Service" | "Viewer Configuration" | "Visio Document" | "WCS" | "Web AppBuilder Widget" | "Web Experience Template" | "Web Experience" | "Web Link Chart" | "Web Map" | "Web Mapping Application" | "Web Scene" | "WFS" | "Windows Mobile Package" | "WMS" | "WMTS" | "Workflow Manager Package" | "Workflow Manager Service" | "Workflow" | "Workforce Project" | "XR Experience";
|
|
58
|
-
|
|
59
|
-
export type RetiredItemType = (typeof retiredItemTypes)[number];
|
|
60
|
-
|
|
61
59
|
export interface SearchResultSublayer {
|
|
62
60
|
description: string;
|
|
63
61
|
fieldAliases: string;
|
|
@@ -67,6 +65,14 @@ export interface SearchResultSublayer {
|
|
|
67
65
|
sourceJSON?: unknown;
|
|
68
66
|
}
|
|
69
67
|
|
|
68
|
+
export type ServicePropertyTags = "allowAnalysis" | "DataTypeElevation" | "DataTypeGeneric" | "DataTypeProcessed" | "DataTypeRGB" | "DataTypeScientific" | "DataTypeThematic" | "DataTypeVector-MagDir" | "DataTypeVector-UV" | "hasColormap" | "hasMultidimensions" | "hasRasterAttributeTable" | "PixelTypeF32" | "PixelTypeF64" | "PixelTypeS8" | "PixelTypeS16" | "PixelTypeS32" | "PixelTypeU1" | "PixelTypeU2" | "PixelTypeU4" | "PixelTypeU8" | "PixelTypeU16" | "PixelTypeU32" | "SourceTypeCatalog" | "SourceTypeDataset" | "SourceTypeLayer" | "SourceTypeMosaicDataset";
|
|
69
|
+
|
|
70
|
+
export type ContentStatus = "deprecated" | "org_authoritative" | "public_authoritative";
|
|
71
|
+
|
|
72
|
+
export type ItemType = RetiredItemType | "3DTiles Package" | "3DTiles Service" | "360 VR Experience" | "Addin Package" | "Administrative Report" | "Analysis Model" | "Apache Parquet" | "API Key" | "AppBuilder Extension" | "AppBuilder Widget Package" | "Application Theme" | "Application" | "ArcGIS Explorer Application Configuration" | "ArcGIS Pro Add In" | "ArcGIS Pro Configuration" | "ArcMap Document" | "ArcPad Package" | "Basemap Package" | "Big Data Analytic" | "CAD Drawing" | "CityEngine Web Scene" | "Code Attachment" | "Code Sample" | "Color Set" | "Compact Tile Package" | "Content Category Set" | "CSV Collection" | "CSV" | "Dashboard" | "Data Pipeline" | "Data Store" | "datastore catalog service" | "Deep Learning Package" | "Deep Learning Studio Project" | "Desktop Add In" | "Desktop Application Template" | "Desktop Application" | "Desktop Style" | "Dictionary Style" | "Discussion" | "Document Link" | "Document" | "Dropbox" | "Earth Configuration" | "Esri Classification Schema" | "Esri Classifier Definition" | "Esri Spectral Library" | "Excalibur Imagery Project" | "Experience Builder Widget Package" | "Experience Builder Widget" | "Explorer Add In" | "Explorer Document" | "Explorer Layer" | "Explorer Map" | "Export Package" | "Feature Collection Template" | "Feature Collection" | "Feature Service" | "Feed" | "File Geodatabase" | "Form" | "GeoBIM Application" | "GeoBIM Project" | "Geocoding Service" | "Geodata Service" | "Geoenrichment Service" | "GeoJson" | "Geometry Service" | "GeoPackage" | "Geoprocessing Package" | "Geoprocessing Sample" | "Geoprocessing Service" | "GeoRSS" | "Globe Document" | "Globe Layer" | "Globe Service" | "GML" | "Google Drive" | "Group Layer" | "Hub Event" | "Hub Initiative Template" | "Hub Initiative" | "Hub Page" | "Hub Project" | "Hub Site Application" | "Image Collection" | "Image Service" | "Image" | "Imagery Layer" | "Insights Data Engineering Model" | "Insights Data Engineering Workbook" | "Insights Model" | "Insights Page" | "Insights Script" | "Insights Theme" | "Insights Workbook Package" | "Insights Workbook" | "Integration Info" | "IPS Configuration" | "iWork Keynote" | "iWork Numbers" | "iWork Pages" | "Kernel Gateway Connection" | "KML Collection" | "KML" | "Knowledge Graph Configuration" | "Knowledge Graph Layer" | "Knowledge Graph Web Investigation" | "Knowledge Graph" | "Knowledge Studio Project" | "Layer File" | "Layer Package" | "Layer Template" | "Layer" | "Layout" | "Living Atlas Export Package" | "Locator Package" | "Map Area" | "Map Document" | "Map Package" | "Map Service" | "Map Showcase" | "Map Template" | "Media Layer" | "Microsoft Excel" | "Microsoft Powerpoint" | "Microsoft Word" | "Mission Report" | "Mission Template" | "Mobile Application" | "Mobile Basemap Package" | "Mobile Map Package" | "Mobile Scene Package" | "Native Application Installer" | "Native Application" | "netCDF" | "Network Analysis Service" | "Notebook Code Snippet Library" | "Notebook Code Snippets" | "Notebook" | "OGCFeatureServer" | "OneDrive" | "Oriented Imagery Catalog" | "Ortho Mapping Project" | "Ortho Mapping Template" | "Parquet Collection" | "Parquet Feature Layer" | "PDF" | "Pro Map" | "Pro Presentation" | "Pro Project" | "Pro Report Template" | "Pro Report" | "Project Package" | "Project Template" | "Published Map" | "QuickCapture Project" | "Raster function template" | "Real Time Analytic" | "Reality Mapping Project" | "Reality Studio Project" | "Relational Database Connection" | "Replication Package" | "Report Template" | "Route Layer" | "Rule Package" | "Scene Document" | "Scene Package" | "Scene Service" | "Server" | "Service Connection" | "Service Definition" | "Shapefile" | "Site Application" | "Site Page" | "Solution" | "Spatial Database Engine" | "SQLite Geodatabase" | "Statistical Data Collection" | "StoryMap Theme" | "StoryMap" | "Stream Service" | "Style" | "Suitability Model" | "Survey123 Add In" | "Symbol Set" | "Task File" | "Tile Layer" | "Tile Package" | "Tool" | "Urban Model" | "Urban Project" | "Vector Tile Package" | "Vector Tile Service" | "Video Service" | "Viewer Configuration" | "Visio Document" | "WCS" | "Web AppBuilder Widget" | "Web Experience Template" | "Web Experience" | "Web Link Chart" | "Web Map" | "Web Mapping Application" | "Web Scene" | "WFS" | "Windows Mobile Package" | "WMS" | "WMTS" | "Workflow Manager Package" | "Workflow Manager Service" | "Workflow" | "Workforce Project" | "XR Experience";
|
|
73
|
+
|
|
74
|
+
export type RetiredItemType = (typeof retiredItemTypes)[number];
|
|
75
|
+
|
|
70
76
|
export const retiredItemTypes: readonly [
|
|
71
77
|
"Operations Dashboard Add In",
|
|
72
78
|
"Operations Dashboard Extension",
|