@gleanwork/api-client 0.1.0-beta.6 → 0.1.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +157 -217
- package/dist/commonjs/__tests__/activity.test.js +14 -0
- package/dist/commonjs/__tests__/activity.test.js.map +1 -1
- package/dist/commonjs/__tests__/adminsearch.test.d.ts +2 -0
- package/dist/commonjs/__tests__/adminsearch.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/adminsearch.test.js +230 -0
- package/dist/commonjs/__tests__/adminsearch.test.js.map +1 -0
- package/dist/commonjs/__tests__/agents.test.js +2 -2
- package/dist/commonjs/__tests__/agents.test.js.map +1 -1
- package/dist/commonjs/__tests__/announcements.test.js +1 -1
- package/dist/commonjs/__tests__/answers.test.js +15 -3
- package/dist/commonjs/__tests__/answers.test.js.map +1 -1
- package/dist/commonjs/__tests__/chat.test.js +1878 -243
- package/dist/commonjs/__tests__/chat.test.js.map +1 -1
- package/dist/commonjs/__tests__/clientdocuments.test.js +15 -1
- package/dist/commonjs/__tests__/clientdocuments.test.js.map +1 -1
- package/dist/commonjs/__tests__/clientsearch.test.d.ts +2 -0
- package/dist/commonjs/__tests__/clientsearch.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/clientsearch.test.js +387 -0
- package/dist/commonjs/__tests__/clientsearch.test.js.map +1 -0
- package/dist/commonjs/__tests__/clientshortcuts.test.js +17 -8
- package/dist/commonjs/__tests__/clientshortcuts.test.js.map +1 -1
- package/dist/commonjs/__tests__/collections.test.js +12 -9
- package/dist/commonjs/__tests__/collections.test.js.map +1 -1
- package/dist/commonjs/__tests__/datasource.test.d.ts +2 -0
- package/dist/commonjs/__tests__/datasource.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/datasource.test.js +10 -0
- package/dist/commonjs/__tests__/datasource.test.js.map +1 -0
- package/dist/commonjs/__tests__/datasources.test.js +1 -1
- package/dist/commonjs/__tests__/datasources.test.js.map +1 -1
- package/dist/commonjs/__tests__/indexingdocuments.test.js +41 -0
- package/dist/commonjs/__tests__/indexingdocuments.test.js.map +1 -1
- package/dist/commonjs/__tests__/indexingpeople.test.d.ts +2 -0
- package/dist/commonjs/__tests__/indexingpeople.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/indexingpeople.test.js +30 -0
- package/dist/commonjs/__tests__/indexingpeople.test.js.map +1 -0
- package/dist/commonjs/__tests__/insights.test.js +1 -2
- package/dist/commonjs/__tests__/insights.test.js.map +1 -1
- package/dist/commonjs/__tests__/messages.test.js +1 -2
- package/dist/commonjs/__tests__/messages.test.js.map +1 -1
- package/dist/commonjs/__tests__/search.test.js +0 -237
- package/dist/commonjs/__tests__/search.test.js.map +1 -1
- package/dist/commonjs/__tests__/verification.test.js +1 -1
- package/dist/commonjs/__tests__/verification.test.js.map +1 -1
- package/dist/{esm/funcs/peoplePostApiIndexV1Bulkindexemployees.d.ts → commonjs/funcs/clientAgentsRetrieveInputs.d.ts} +4 -4
- package/dist/commonjs/funcs/clientAgentsRetrieveInputs.d.ts.map +1 -0
- package/dist/commonjs/funcs/clientAgentsRetrieveInputs.js +123 -0
- package/dist/commonjs/funcs/clientAgentsRetrieveInputs.js.map +1 -0
- package/dist/commonjs/funcs/clientAgentsRun.d.ts +16 -0
- package/dist/commonjs/funcs/clientAgentsRun.d.ts.map +1 -0
- package/dist/commonjs/funcs/clientAgentsRun.js +121 -0
- package/dist/commonjs/funcs/clientAgentsRun.js.map +1 -0
- package/dist/commonjs/funcs/clientChatDeleteFiles.d.ts +16 -0
- package/dist/commonjs/funcs/clientChatDeleteFiles.d.ts.map +1 -0
- package/dist/commonjs/funcs/clientChatDeleteFiles.js +123 -0
- package/dist/commonjs/funcs/clientChatDeleteFiles.js.map +1 -0
- package/dist/commonjs/funcs/clientChatRetrieveApplication.d.ts +16 -0
- package/dist/commonjs/funcs/clientChatRetrieveApplication.d.ts.map +1 -0
- package/dist/commonjs/funcs/clientChatRetrieveApplication.js +123 -0
- package/dist/commonjs/funcs/clientChatRetrieveApplication.js.map +1 -0
- package/dist/commonjs/funcs/clientChatRetrieveFiles.d.ts +16 -0
- package/dist/commonjs/funcs/clientChatRetrieveFiles.d.ts.map +1 -0
- package/dist/commonjs/funcs/clientChatRetrieveFiles.js +123 -0
- package/dist/commonjs/funcs/clientChatRetrieveFiles.js.map +1 -0
- package/dist/commonjs/funcs/clientChatUploadFiles.d.ts +16 -0
- package/dist/commonjs/funcs/clientChatUploadFiles.d.ts.map +1 -0
- package/dist/commonjs/funcs/clientChatUploadFiles.js +121 -0
- package/dist/commonjs/funcs/clientChatUploadFiles.js.map +1 -0
- package/dist/commonjs/funcs/clientCollectionsDeleteItem.d.ts +16 -0
- package/dist/commonjs/funcs/clientCollectionsDeleteItem.d.ts.map +1 -0
- package/dist/commonjs/funcs/clientCollectionsDeleteItem.js +112 -0
- package/dist/commonjs/funcs/clientCollectionsDeleteItem.js.map +1 -0
- package/dist/commonjs/funcs/clientCollectionsUpdateItem.d.ts +16 -0
- package/dist/commonjs/funcs/clientCollectionsUpdateItem.d.ts.map +1 -0
- package/dist/commonjs/funcs/clientCollectionsUpdateItem.js +112 -0
- package/dist/commonjs/funcs/clientCollectionsUpdateItem.js.map +1 -0
- package/dist/commonjs/funcs/clientDocumentsRetrievePermissions.d.ts +16 -0
- package/dist/commonjs/funcs/clientDocumentsRetrievePermissions.d.ts.map +1 -0
- package/dist/commonjs/funcs/clientDocumentsRetrievePermissions.js +112 -0
- package/dist/commonjs/funcs/clientDocumentsRetrievePermissions.js.map +1 -0
- package/dist/commonjs/funcs/clientDocumentsSummarize.d.ts +16 -0
- package/dist/commonjs/funcs/clientDocumentsSummarize.d.ts.map +1 -0
- package/dist/commonjs/funcs/clientDocumentsSummarize.js +112 -0
- package/dist/commonjs/funcs/clientDocumentsSummarize.js.map +1 -0
- package/dist/commonjs/funcs/clientSearchQueryAsAdmin.d.ts +17 -0
- package/dist/commonjs/funcs/clientSearchQueryAsAdmin.d.ts.map +1 -0
- package/dist/commonjs/funcs/clientSearchQueryAsAdmin.js +118 -0
- package/dist/commonjs/funcs/clientSearchQueryAsAdmin.js.map +1 -0
- package/dist/commonjs/funcs/clientSearchRetrieveFeed.d.ts +16 -0
- package/dist/commonjs/funcs/clientSearchRetrieveFeed.d.ts.map +1 -0
- package/dist/commonjs/funcs/clientSearchRetrieveFeed.js +112 -0
- package/dist/commonjs/funcs/clientSearchRetrieveFeed.js.map +1 -0
- package/dist/commonjs/funcs/clientShortcutsCreate.d.ts +16 -0
- package/dist/commonjs/funcs/clientShortcutsCreate.d.ts.map +1 -0
- package/dist/commonjs/funcs/clientShortcutsCreate.js +112 -0
- package/dist/commonjs/funcs/clientShortcutsCreate.js.map +1 -0
- package/dist/commonjs/funcs/clientVerificationVerify.d.ts +16 -0
- package/dist/commonjs/funcs/clientVerificationVerify.d.ts.map +1 -0
- package/dist/commonjs/funcs/clientVerificationVerify.js +112 -0
- package/dist/commonjs/funcs/clientVerificationVerify.js.map +1 -0
- package/dist/commonjs/funcs/indexingDatasourceStatus.d.ts +18 -0
- package/dist/commonjs/funcs/indexingDatasourceStatus.d.ts.map +1 -0
- package/dist/commonjs/funcs/indexingDatasourceStatus.js +126 -0
- package/dist/commonjs/funcs/indexingDatasourceStatus.js.map +1 -0
- package/dist/commonjs/funcs/indexingDatasourcesRetrieveConfig.d.ts +16 -0
- package/dist/commonjs/funcs/indexingDatasourcesRetrieveConfig.d.ts.map +1 -0
- package/dist/commonjs/funcs/indexingDatasourcesRetrieveConfig.js +112 -0
- package/dist/commonjs/funcs/indexingDatasourcesRetrieveConfig.js.map +1 -0
- package/dist/commonjs/funcs/indexingDocumentsCheckAccess.d.ts +18 -0
- package/dist/commonjs/funcs/indexingDocumentsCheckAccess.d.ts.map +1 -0
- package/dist/commonjs/funcs/indexingDocumentsCheckAccess.js +114 -0
- package/dist/commonjs/funcs/indexingDocumentsCheckAccess.js.map +1 -0
- package/dist/commonjs/funcs/indexingDocumentsCount.d.ts +20 -0
- package/dist/commonjs/funcs/indexingDocumentsCount.d.ts.map +1 -0
- package/dist/commonjs/funcs/indexingDocumentsCount.js +116 -0
- package/dist/commonjs/funcs/indexingDocumentsCount.js.map +1 -0
- package/dist/commonjs/funcs/indexingDocumentsDebug.d.ts +18 -0
- package/dist/commonjs/funcs/indexingDocumentsDebug.d.ts.map +1 -0
- package/dist/commonjs/funcs/indexingDocumentsDebug.js +130 -0
- package/dist/commonjs/funcs/indexingDocumentsDebug.js.map +1 -0
- package/dist/commonjs/funcs/indexingDocumentsDebugMany.d.ts +18 -0
- package/dist/commonjs/funcs/indexingDocumentsDebugMany.d.ts.map +1 -0
- package/dist/commonjs/funcs/indexingDocumentsDebugMany.js +130 -0
- package/dist/commonjs/funcs/indexingDocumentsDebugMany.js.map +1 -0
- package/dist/commonjs/funcs/indexingDocumentsStatus.d.ts +20 -0
- package/dist/commonjs/funcs/indexingDocumentsStatus.d.ts.map +1 -0
- package/dist/commonjs/funcs/indexingDocumentsStatus.js +116 -0
- package/dist/commonjs/funcs/indexingDocumentsStatus.js.map +1 -0
- package/dist/commonjs/funcs/indexingPeopleBulkIndex.d.ts +2 -4
- package/dist/commonjs/funcs/indexingPeopleBulkIndex.d.ts.map +1 -1
- package/dist/commonjs/funcs/indexingPeopleBulkIndex.js +4 -6
- package/dist/commonjs/funcs/indexingPeopleBulkIndex.js.map +1 -1
- package/dist/commonjs/funcs/indexingPeopleCount.d.ts +20 -0
- package/dist/commonjs/funcs/indexingPeopleCount.d.ts.map +1 -0
- package/dist/commonjs/funcs/indexingPeopleCount.js +116 -0
- package/dist/commonjs/funcs/indexingPeopleCount.js.map +1 -0
- package/dist/commonjs/funcs/indexingPeopleDebug.d.ts +18 -0
- package/dist/commonjs/funcs/indexingPeopleDebug.d.ts.map +1 -0
- package/dist/commonjs/funcs/indexingPeopleDebug.js +127 -0
- package/dist/commonjs/funcs/indexingPeopleDebug.js.map +1 -0
- package/dist/commonjs/funcs/indexingShortcutsUpload.d.ts +16 -0
- package/dist/commonjs/funcs/indexingShortcutsUpload.d.ts.map +1 -0
- package/dist/commonjs/funcs/{peoplePostApiIndexV1Bulkindexemployees.js → indexingShortcutsUpload.js} +8 -8
- package/dist/commonjs/funcs/indexingShortcutsUpload.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/collectionitem.js +2 -2
- package/dist/commonjs/models/components/collectionitem.js.map +1 -1
- package/dist/commonjs/models/components/documentmetadata.js +2 -2
- package/dist/commonjs/models/components/documentmetadata.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +1 -1
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -1
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/indexingshortcut.d.ts +72 -0
- package/dist/commonjs/models/components/indexingshortcut.d.ts.map +1 -0
- package/dist/commonjs/models/components/{indexemployeelistrequest.js → indexingshortcut.js} +35 -20
- package/dist/commonjs/models/components/indexingshortcut.js.map +1 -0
- package/dist/commonjs/models/components/shortcut.d.ts +77 -20
- package/dist/commonjs/models/components/shortcut.d.ts.map +1 -1
- package/dist/commonjs/models/components/shortcut.js +46 -10
- package/dist/commonjs/models/components/shortcut.js.map +1 -1
- package/dist/commonjs/models/components/structuredresult.js +2 -2
- package/dist/commonjs/models/components/structuredresult.js.map +1 -1
- package/dist/commonjs/models/components/uploadshortcutsrequest.d.ts +3 -3
- package/dist/commonjs/models/components/uploadshortcutsrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/uploadshortcutsrequest.js +3 -3
- package/dist/commonjs/models/components/uploadshortcutsrequest.js.map +1 -1
- package/dist/commonjs/react-query/clientAgentsRetrieveInputs.d.ts +24 -0
- package/dist/commonjs/react-query/clientAgentsRetrieveInputs.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientAgentsRetrieveInputs.js +47 -0
- package/dist/commonjs/react-query/clientAgentsRetrieveInputs.js.map +1 -0
- package/dist/commonjs/react-query/clientAgentsRun.d.ts +24 -0
- package/dist/commonjs/react-query/clientAgentsRun.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientAgentsRun.js +47 -0
- package/dist/commonjs/react-query/clientAgentsRun.js.map +1 -0
- package/dist/commonjs/react-query/clientChatDeleteFiles.d.ts +24 -0
- package/dist/commonjs/react-query/clientChatDeleteFiles.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientChatDeleteFiles.js +47 -0
- package/dist/commonjs/react-query/clientChatDeleteFiles.js.map +1 -0
- package/dist/commonjs/react-query/clientChatRetrieveApplication.d.ts +24 -0
- package/dist/commonjs/react-query/clientChatRetrieveApplication.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientChatRetrieveApplication.js +47 -0
- package/dist/commonjs/react-query/clientChatRetrieveApplication.js.map +1 -0
- package/dist/commonjs/react-query/clientChatRetrieveFiles.d.ts +24 -0
- package/dist/commonjs/react-query/clientChatRetrieveFiles.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientChatRetrieveFiles.js +47 -0
- package/dist/commonjs/react-query/clientChatRetrieveFiles.js.map +1 -0
- package/dist/commonjs/react-query/clientChatUploadFiles.d.ts +24 -0
- package/dist/commonjs/react-query/clientChatUploadFiles.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientChatUploadFiles.js +47 -0
- package/dist/commonjs/react-query/clientChatUploadFiles.js.map +1 -0
- package/dist/commonjs/react-query/clientCollectionsDeleteItem.d.ts +23 -0
- package/dist/commonjs/react-query/clientCollectionsDeleteItem.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientCollectionsDeleteItem.js +47 -0
- package/dist/commonjs/react-query/clientCollectionsDeleteItem.js.map +1 -0
- package/dist/commonjs/react-query/clientCollectionsUpdateItem.d.ts +23 -0
- package/dist/commonjs/react-query/clientCollectionsUpdateItem.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientCollectionsUpdateItem.js +47 -0
- package/dist/commonjs/react-query/clientCollectionsUpdateItem.js.map +1 -0
- package/dist/commonjs/react-query/clientDocumentsRetrievePermissions.d.ts +23 -0
- package/dist/commonjs/react-query/clientDocumentsRetrievePermissions.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientDocumentsRetrievePermissions.js +47 -0
- package/dist/commonjs/react-query/clientDocumentsRetrievePermissions.js.map +1 -0
- package/dist/commonjs/react-query/clientDocumentsSummarize.d.ts +23 -0
- package/dist/commonjs/react-query/clientDocumentsSummarize.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientDocumentsSummarize.js +47 -0
- package/dist/commonjs/react-query/clientDocumentsSummarize.js.map +1 -0
- package/dist/commonjs/react-query/clientSearchQueryAsAdmin.d.ts +23 -0
- package/dist/commonjs/react-query/clientSearchQueryAsAdmin.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientSearchQueryAsAdmin.js +47 -0
- package/dist/commonjs/react-query/clientSearchQueryAsAdmin.js.map +1 -0
- package/dist/commonjs/react-query/clientSearchRetrieveFeed.d.ts +23 -0
- package/dist/commonjs/react-query/clientSearchRetrieveFeed.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientSearchRetrieveFeed.js +47 -0
- package/dist/commonjs/react-query/clientSearchRetrieveFeed.js.map +1 -0
- package/dist/commonjs/react-query/clientShortcutsCreate.d.ts +23 -0
- package/dist/commonjs/react-query/clientShortcutsCreate.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientShortcutsCreate.js +47 -0
- package/dist/commonjs/react-query/clientShortcutsCreate.js.map +1 -0
- package/dist/commonjs/react-query/clientVerificationVerify.d.ts +23 -0
- package/dist/commonjs/react-query/clientVerificationVerify.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientVerificationVerify.js +47 -0
- package/dist/commonjs/react-query/clientVerificationVerify.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +24 -25
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +24 -25
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/indexingDatasourceStatus.d.ts +25 -0
- package/dist/commonjs/react-query/indexingDatasourceStatus.d.ts.map +1 -0
- package/dist/commonjs/react-query/indexingDatasourceStatus.js +49 -0
- package/dist/commonjs/react-query/indexingDatasourceStatus.js.map +1 -0
- package/dist/commonjs/react-query/indexingDatasourcesRetrieveConfig.d.ts +23 -0
- package/dist/commonjs/react-query/indexingDatasourcesRetrieveConfig.d.ts.map +1 -0
- package/dist/commonjs/react-query/indexingDatasourcesRetrieveConfig.js +47 -0
- package/dist/commonjs/react-query/indexingDatasourcesRetrieveConfig.js.map +1 -0
- package/dist/commonjs/react-query/indexingDocumentsCheckAccess.d.ts +25 -0
- package/dist/commonjs/react-query/indexingDocumentsCheckAccess.d.ts.map +1 -0
- package/dist/commonjs/react-query/indexingDocumentsCheckAccess.js +49 -0
- package/dist/commonjs/react-query/indexingDocumentsCheckAccess.js.map +1 -0
- package/dist/commonjs/react-query/indexingDocumentsCount.d.ts +27 -0
- package/dist/commonjs/react-query/indexingDocumentsCount.d.ts.map +1 -0
- package/dist/commonjs/react-query/indexingDocumentsCount.js +51 -0
- package/dist/commonjs/react-query/indexingDocumentsCount.js.map +1 -0
- package/dist/commonjs/react-query/indexingDocumentsDebug.d.ts +26 -0
- package/dist/commonjs/react-query/indexingDocumentsDebug.d.ts.map +1 -0
- package/dist/commonjs/react-query/indexingDocumentsDebug.js +49 -0
- package/dist/commonjs/react-query/indexingDocumentsDebug.js.map +1 -0
- package/dist/commonjs/react-query/indexingDocumentsDebugMany.d.ts +26 -0
- package/dist/commonjs/react-query/indexingDocumentsDebugMany.d.ts.map +1 -0
- package/dist/commonjs/react-query/indexingDocumentsDebugMany.js +49 -0
- package/dist/commonjs/react-query/indexingDocumentsDebugMany.js.map +1 -0
- package/dist/commonjs/react-query/indexingDocumentsStatus.d.ts +27 -0
- package/dist/commonjs/react-query/indexingDocumentsStatus.d.ts.map +1 -0
- package/dist/commonjs/react-query/indexingDocumentsStatus.js +51 -0
- package/dist/commonjs/react-query/indexingDocumentsStatus.js.map +1 -0
- package/dist/commonjs/react-query/indexingPeopleBulkIndex.d.ts +2 -4
- package/dist/commonjs/react-query/indexingPeopleBulkIndex.d.ts.map +1 -1
- package/dist/commonjs/react-query/indexingPeopleBulkIndex.js +1 -3
- package/dist/commonjs/react-query/indexingPeopleBulkIndex.js.map +1 -1
- package/dist/commonjs/react-query/indexingPeopleCount.d.ts +27 -0
- package/dist/commonjs/react-query/indexingPeopleCount.d.ts.map +1 -0
- package/dist/commonjs/react-query/indexingPeopleCount.js +51 -0
- package/dist/commonjs/react-query/indexingPeopleCount.js.map +1 -0
- package/dist/commonjs/react-query/indexingPeopleDebug.d.ts +26 -0
- package/dist/commonjs/react-query/indexingPeopleDebug.d.ts.map +1 -0
- package/dist/commonjs/react-query/indexingPeopleDebug.js +49 -0
- package/dist/commonjs/react-query/indexingPeopleDebug.js.map +1 -0
- package/dist/commonjs/react-query/indexingShortcutsUpload.d.ts +23 -0
- package/dist/commonjs/react-query/indexingShortcutsUpload.d.ts.map +1 -0
- package/dist/commonjs/react-query/indexingShortcutsUpload.js +47 -0
- package/dist/commonjs/react-query/indexingShortcutsUpload.js.map +1 -0
- package/dist/commonjs/sdk/agents.d.ts +14 -3
- package/dist/commonjs/sdk/agents.d.ts.map +1 -1
- package/dist/commonjs/sdk/agents.js +19 -3
- package/dist/commonjs/sdk/agents.js.map +1 -1
- package/dist/commonjs/sdk/chat.d.ts +28 -6
- package/dist/commonjs/sdk/chat.d.ts.map +1 -1
- package/dist/commonjs/sdk/chat.js +40 -8
- package/dist/commonjs/sdk/chat.js.map +1 -1
- package/dist/commonjs/sdk/client.d.ts +2 -5
- package/dist/commonjs/sdk/client.d.ts.map +1 -1
- package/dist/commonjs/sdk/client.js +2 -6
- package/dist/commonjs/sdk/client.js.map +1 -1
- package/dist/commonjs/sdk/clientdocuments.d.ts +14 -3
- package/dist/commonjs/sdk/clientdocuments.d.ts.map +1 -1
- package/dist/commonjs/sdk/clientdocuments.js +19 -3
- package/dist/commonjs/sdk/clientdocuments.js.map +1 -1
- package/dist/commonjs/sdk/clientsearch.d.ts +14 -6
- package/dist/commonjs/sdk/clientsearch.d.ts.map +1 -1
- package/dist/commonjs/sdk/clientsearch.js +18 -6
- package/dist/commonjs/sdk/clientsearch.js.map +1 -1
- package/dist/commonjs/sdk/clientshortcuts.d.ts +7 -7
- package/dist/commonjs/sdk/clientshortcuts.d.ts.map +1 -1
- package/dist/commonjs/sdk/clientshortcuts.js +10 -10
- package/dist/commonjs/sdk/clientshortcuts.js.map +1 -1
- package/dist/commonjs/sdk/collections.d.ts +14 -3
- package/dist/commonjs/sdk/collections.d.ts.map +1 -1
- package/dist/commonjs/sdk/collections.js +20 -4
- package/dist/commonjs/sdk/collections.js.map +1 -1
- package/dist/commonjs/sdk/datasource.d.ts +0 -9
- package/dist/commonjs/sdk/datasource.d.ts.map +1 -1
- package/dist/commonjs/sdk/datasource.js +2 -14
- package/dist/commonjs/sdk/datasource.js.map +1 -1
- package/dist/commonjs/sdk/datasources.d.ts +7 -3
- package/dist/commonjs/sdk/datasources.d.ts.map +1 -1
- package/dist/commonjs/sdk/datasources.js +10 -4
- package/dist/commonjs/sdk/datasources.js.map +1 -1
- package/dist/commonjs/sdk/indexing.d.ts +8 -8
- package/dist/commonjs/sdk/indexing.d.ts.map +1 -1
- package/dist/commonjs/sdk/indexing.js +9 -9
- package/dist/commonjs/sdk/indexing.js.map +1 -1
- package/dist/commonjs/sdk/indexingdocuments.d.ts +49 -0
- package/dist/commonjs/sdk/indexingdocuments.d.ts.map +1 -1
- package/dist/commonjs/sdk/indexingdocuments.js +64 -0
- package/dist/commonjs/sdk/indexingdocuments.js.map +1 -1
- package/dist/commonjs/sdk/indexingshortcuts.d.ts +7 -0
- package/dist/commonjs/sdk/indexingshortcuts.d.ts.map +1 -1
- package/dist/commonjs/sdk/indexingshortcuts.js +10 -0
- package/dist/commonjs/sdk/indexingshortcuts.js.map +1 -1
- package/dist/commonjs/sdk/people.d.ts +63 -1
- package/dist/commonjs/sdk/people.d.ts.map +1 -1
- package/dist/commonjs/sdk/people.js +89 -3
- package/dist/commonjs/sdk/people.js.map +1 -1
- package/dist/commonjs/sdk/permissions.d.ts +89 -0
- package/dist/commonjs/sdk/permissions.d.ts.map +1 -0
- package/dist/commonjs/sdk/permissions.js +132 -0
- package/dist/commonjs/sdk/permissions.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +0 -9
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +0 -12
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/verification.d.ts +14 -0
- package/dist/commonjs/sdk/verification.d.ts.map +1 -1
- package/dist/commonjs/sdk/verification.js +22 -2
- package/dist/commonjs/sdk/verification.js.map +1 -1
- package/dist/esm/__tests__/activity.test.js +14 -0
- package/dist/esm/__tests__/activity.test.js.map +1 -1
- package/dist/esm/__tests__/adminsearch.test.d.ts +2 -0
- package/dist/esm/__tests__/adminsearch.test.d.ts.map +1 -0
- package/dist/esm/__tests__/adminsearch.test.js +228 -0
- package/dist/esm/__tests__/adminsearch.test.js.map +1 -0
- package/dist/esm/__tests__/agents.test.js +2 -2
- package/dist/esm/__tests__/agents.test.js.map +1 -1
- package/dist/esm/__tests__/announcements.test.js +1 -1
- package/dist/esm/__tests__/answers.test.js +15 -3
- package/dist/esm/__tests__/answers.test.js.map +1 -1
- package/dist/esm/__tests__/chat.test.js +1879 -244
- package/dist/esm/__tests__/chat.test.js.map +1 -1
- package/dist/esm/__tests__/clientdocuments.test.js +15 -1
- package/dist/esm/__tests__/clientdocuments.test.js.map +1 -1
- package/dist/esm/__tests__/clientsearch.test.d.ts +2 -0
- package/dist/esm/__tests__/clientsearch.test.d.ts.map +1 -0
- package/dist/esm/__tests__/clientsearch.test.js +385 -0
- package/dist/esm/__tests__/clientsearch.test.js.map +1 -0
- package/dist/esm/__tests__/clientshortcuts.test.js +17 -8
- package/dist/esm/__tests__/clientshortcuts.test.js.map +1 -1
- package/dist/esm/__tests__/collections.test.js +12 -9
- package/dist/esm/__tests__/collections.test.js.map +1 -1
- package/dist/esm/__tests__/datasource.test.d.ts +2 -0
- package/dist/esm/__tests__/datasource.test.d.ts.map +1 -0
- package/dist/esm/__tests__/datasource.test.js +8 -0
- package/dist/esm/__tests__/datasource.test.js.map +1 -0
- package/dist/esm/__tests__/datasources.test.js +1 -1
- package/dist/esm/__tests__/datasources.test.js.map +1 -1
- package/dist/esm/__tests__/indexingdocuments.test.js +42 -1
- package/dist/esm/__tests__/indexingdocuments.test.js.map +1 -1
- package/dist/esm/__tests__/indexingpeople.test.d.ts +2 -0
- package/dist/esm/__tests__/indexingpeople.test.d.ts.map +1 -0
- package/dist/esm/__tests__/indexingpeople.test.js +28 -0
- package/dist/esm/__tests__/indexingpeople.test.js.map +1 -0
- package/dist/esm/__tests__/insights.test.js +1 -2
- package/dist/esm/__tests__/insights.test.js.map +1 -1
- package/dist/esm/__tests__/messages.test.js +1 -2
- package/dist/esm/__tests__/messages.test.js.map +1 -1
- package/dist/esm/__tests__/search.test.js +0 -237
- package/dist/esm/__tests__/search.test.js.map +1 -1
- package/dist/esm/__tests__/verification.test.js +1 -1
- package/dist/esm/__tests__/verification.test.js.map +1 -1
- package/dist/{commonjs/funcs/peoplePostApiIndexV1Bulkindexemployees.d.ts → esm/funcs/clientAgentsRetrieveInputs.d.ts} +4 -4
- package/dist/esm/funcs/clientAgentsRetrieveInputs.d.ts.map +1 -0
- package/dist/esm/funcs/clientAgentsRetrieveInputs.js +87 -0
- package/dist/esm/funcs/clientAgentsRetrieveInputs.js.map +1 -0
- package/dist/esm/funcs/clientAgentsRun.d.ts +16 -0
- package/dist/esm/funcs/clientAgentsRun.d.ts.map +1 -0
- package/dist/esm/funcs/clientAgentsRun.js +85 -0
- package/dist/esm/funcs/clientAgentsRun.js.map +1 -0
- package/dist/esm/funcs/clientChatDeleteFiles.d.ts +16 -0
- package/dist/esm/funcs/clientChatDeleteFiles.d.ts.map +1 -0
- package/dist/esm/funcs/clientChatDeleteFiles.js +87 -0
- package/dist/esm/funcs/clientChatDeleteFiles.js.map +1 -0
- package/dist/esm/funcs/clientChatRetrieveApplication.d.ts +16 -0
- package/dist/esm/funcs/clientChatRetrieveApplication.d.ts.map +1 -0
- package/dist/esm/funcs/clientChatRetrieveApplication.js +87 -0
- package/dist/esm/funcs/clientChatRetrieveApplication.js.map +1 -0
- package/dist/esm/funcs/clientChatRetrieveFiles.d.ts +16 -0
- package/dist/esm/funcs/clientChatRetrieveFiles.d.ts.map +1 -0
- package/dist/esm/funcs/clientChatRetrieveFiles.js +87 -0
- package/dist/esm/funcs/clientChatRetrieveFiles.js.map +1 -0
- package/dist/esm/funcs/clientChatUploadFiles.d.ts +16 -0
- package/dist/esm/funcs/clientChatUploadFiles.d.ts.map +1 -0
- package/dist/esm/funcs/clientChatUploadFiles.js +85 -0
- package/dist/esm/funcs/clientChatUploadFiles.js.map +1 -0
- package/dist/esm/funcs/clientCollectionsDeleteItem.d.ts +16 -0
- package/dist/esm/funcs/clientCollectionsDeleteItem.d.ts.map +1 -0
- package/dist/esm/funcs/clientCollectionsDeleteItem.js +76 -0
- package/dist/esm/funcs/clientCollectionsDeleteItem.js.map +1 -0
- package/dist/esm/funcs/clientCollectionsUpdateItem.d.ts +16 -0
- package/dist/esm/funcs/clientCollectionsUpdateItem.d.ts.map +1 -0
- package/dist/esm/funcs/clientCollectionsUpdateItem.js +76 -0
- package/dist/esm/funcs/clientCollectionsUpdateItem.js.map +1 -0
- package/dist/esm/funcs/clientDocumentsRetrievePermissions.d.ts +16 -0
- package/dist/esm/funcs/clientDocumentsRetrievePermissions.d.ts.map +1 -0
- package/dist/esm/funcs/clientDocumentsRetrievePermissions.js +76 -0
- package/dist/esm/funcs/clientDocumentsRetrievePermissions.js.map +1 -0
- package/dist/esm/funcs/clientDocumentsSummarize.d.ts +16 -0
- package/dist/esm/funcs/clientDocumentsSummarize.d.ts.map +1 -0
- package/dist/esm/funcs/clientDocumentsSummarize.js +76 -0
- package/dist/esm/funcs/clientDocumentsSummarize.js.map +1 -0
- package/dist/esm/funcs/clientSearchQueryAsAdmin.d.ts +17 -0
- package/dist/esm/funcs/clientSearchQueryAsAdmin.d.ts.map +1 -0
- package/dist/esm/funcs/clientSearchQueryAsAdmin.js +82 -0
- package/dist/esm/funcs/clientSearchQueryAsAdmin.js.map +1 -0
- package/dist/esm/funcs/clientSearchRetrieveFeed.d.ts +16 -0
- package/dist/esm/funcs/clientSearchRetrieveFeed.d.ts.map +1 -0
- package/dist/esm/funcs/clientSearchRetrieveFeed.js +76 -0
- package/dist/esm/funcs/clientSearchRetrieveFeed.js.map +1 -0
- package/dist/esm/funcs/clientShortcutsCreate.d.ts +16 -0
- package/dist/esm/funcs/clientShortcutsCreate.d.ts.map +1 -0
- package/dist/esm/funcs/clientShortcutsCreate.js +76 -0
- package/dist/esm/funcs/clientShortcutsCreate.js.map +1 -0
- package/dist/esm/funcs/clientVerificationVerify.d.ts +16 -0
- package/dist/esm/funcs/clientVerificationVerify.d.ts.map +1 -0
- package/dist/esm/funcs/clientVerificationVerify.js +76 -0
- package/dist/esm/funcs/clientVerificationVerify.js.map +1 -0
- package/dist/esm/funcs/indexingDatasourceStatus.d.ts +18 -0
- package/dist/esm/funcs/indexingDatasourceStatus.d.ts.map +1 -0
- package/dist/esm/funcs/indexingDatasourceStatus.js +90 -0
- package/dist/esm/funcs/indexingDatasourceStatus.js.map +1 -0
- package/dist/esm/funcs/indexingDatasourcesRetrieveConfig.d.ts +16 -0
- package/dist/esm/funcs/indexingDatasourcesRetrieveConfig.d.ts.map +1 -0
- package/dist/esm/funcs/indexingDatasourcesRetrieveConfig.js +76 -0
- package/dist/esm/funcs/indexingDatasourcesRetrieveConfig.js.map +1 -0
- package/dist/esm/funcs/indexingDocumentsCheckAccess.d.ts +18 -0
- package/dist/esm/funcs/indexingDocumentsCheckAccess.d.ts.map +1 -0
- package/dist/esm/funcs/indexingDocumentsCheckAccess.js +78 -0
- package/dist/esm/funcs/indexingDocumentsCheckAccess.js.map +1 -0
- package/dist/esm/funcs/indexingDocumentsCount.d.ts +20 -0
- package/dist/esm/funcs/indexingDocumentsCount.d.ts.map +1 -0
- package/dist/esm/funcs/indexingDocumentsCount.js +80 -0
- package/dist/esm/funcs/indexingDocumentsCount.js.map +1 -0
- package/dist/esm/funcs/indexingDocumentsDebug.d.ts +18 -0
- package/dist/esm/funcs/indexingDocumentsDebug.d.ts.map +1 -0
- package/dist/esm/funcs/indexingDocumentsDebug.js +94 -0
- package/dist/esm/funcs/indexingDocumentsDebug.js.map +1 -0
- package/dist/esm/funcs/indexingDocumentsDebugMany.d.ts +18 -0
- package/dist/esm/funcs/indexingDocumentsDebugMany.d.ts.map +1 -0
- package/dist/esm/funcs/indexingDocumentsDebugMany.js +94 -0
- package/dist/esm/funcs/indexingDocumentsDebugMany.js.map +1 -0
- package/dist/esm/funcs/indexingDocumentsStatus.d.ts +20 -0
- package/dist/esm/funcs/indexingDocumentsStatus.d.ts.map +1 -0
- package/dist/esm/funcs/indexingDocumentsStatus.js +80 -0
- package/dist/esm/funcs/indexingDocumentsStatus.js.map +1 -0
- package/dist/esm/funcs/indexingPeopleBulkIndex.d.ts +2 -4
- package/dist/esm/funcs/indexingPeopleBulkIndex.d.ts.map +1 -1
- package/dist/esm/funcs/indexingPeopleBulkIndex.js +4 -6
- package/dist/esm/funcs/indexingPeopleBulkIndex.js.map +1 -1
- package/dist/esm/funcs/indexingPeopleCount.d.ts +20 -0
- package/dist/esm/funcs/indexingPeopleCount.d.ts.map +1 -0
- package/dist/esm/funcs/indexingPeopleCount.js +80 -0
- package/dist/esm/funcs/indexingPeopleCount.js.map +1 -0
- package/dist/esm/funcs/indexingPeopleDebug.d.ts +18 -0
- package/dist/esm/funcs/indexingPeopleDebug.d.ts.map +1 -0
- package/dist/esm/funcs/indexingPeopleDebug.js +91 -0
- package/dist/esm/funcs/indexingPeopleDebug.js.map +1 -0
- package/dist/esm/funcs/indexingShortcutsUpload.d.ts +16 -0
- package/dist/esm/funcs/indexingShortcutsUpload.d.ts.map +1 -0
- package/dist/esm/funcs/{peoplePostApiIndexV1Bulkindexemployees.js → indexingShortcutsUpload.js} +7 -7
- package/dist/esm/funcs/indexingShortcutsUpload.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/collectionitem.js +2 -2
- package/dist/esm/models/components/collectionitem.js.map +1 -1
- package/dist/esm/models/components/documentmetadata.js +2 -2
- package/dist/esm/models/components/documentmetadata.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +1 -1
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -1
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/indexingshortcut.d.ts +72 -0
- package/dist/esm/models/components/indexingshortcut.d.ts.map +1 -0
- package/dist/esm/models/components/indexingshortcut.js +47 -0
- package/dist/esm/models/components/indexingshortcut.js.map +1 -0
- package/dist/esm/models/components/shortcut.d.ts +77 -20
- package/dist/esm/models/components/shortcut.d.ts.map +1 -1
- package/dist/esm/models/components/shortcut.js +46 -10
- package/dist/esm/models/components/shortcut.js.map +1 -1
- package/dist/esm/models/components/structuredresult.js +2 -2
- package/dist/esm/models/components/structuredresult.js.map +1 -1
- package/dist/esm/models/components/uploadshortcutsrequest.d.ts +3 -3
- package/dist/esm/models/components/uploadshortcutsrequest.d.ts.map +1 -1
- package/dist/esm/models/components/uploadshortcutsrequest.js +3 -3
- package/dist/esm/models/components/uploadshortcutsrequest.js.map +1 -1
- package/dist/esm/react-query/clientAgentsRetrieveInputs.d.ts +24 -0
- package/dist/esm/react-query/clientAgentsRetrieveInputs.d.ts.map +1 -0
- package/dist/esm/react-query/clientAgentsRetrieveInputs.js +42 -0
- package/dist/esm/react-query/clientAgentsRetrieveInputs.js.map +1 -0
- package/dist/esm/react-query/clientAgentsRun.d.ts +24 -0
- package/dist/esm/react-query/clientAgentsRun.d.ts.map +1 -0
- package/dist/esm/react-query/clientAgentsRun.js +42 -0
- package/dist/esm/react-query/clientAgentsRun.js.map +1 -0
- package/dist/esm/react-query/clientChatDeleteFiles.d.ts +24 -0
- package/dist/esm/react-query/clientChatDeleteFiles.d.ts.map +1 -0
- package/dist/esm/react-query/clientChatDeleteFiles.js +42 -0
- package/dist/esm/react-query/clientChatDeleteFiles.js.map +1 -0
- package/dist/esm/react-query/clientChatRetrieveApplication.d.ts +24 -0
- package/dist/esm/react-query/clientChatRetrieveApplication.d.ts.map +1 -0
- package/dist/esm/react-query/clientChatRetrieveApplication.js +42 -0
- package/dist/esm/react-query/clientChatRetrieveApplication.js.map +1 -0
- package/dist/esm/react-query/clientChatRetrieveFiles.d.ts +24 -0
- package/dist/esm/react-query/clientChatRetrieveFiles.d.ts.map +1 -0
- package/dist/esm/react-query/clientChatRetrieveFiles.js +42 -0
- package/dist/esm/react-query/clientChatRetrieveFiles.js.map +1 -0
- package/dist/esm/react-query/clientChatUploadFiles.d.ts +24 -0
- package/dist/esm/react-query/clientChatUploadFiles.d.ts.map +1 -0
- package/dist/esm/react-query/clientChatUploadFiles.js +42 -0
- package/dist/esm/react-query/clientChatUploadFiles.js.map +1 -0
- package/dist/esm/react-query/clientCollectionsDeleteItem.d.ts +23 -0
- package/dist/esm/react-query/clientCollectionsDeleteItem.d.ts.map +1 -0
- package/dist/esm/react-query/clientCollectionsDeleteItem.js +42 -0
- package/dist/esm/react-query/clientCollectionsDeleteItem.js.map +1 -0
- package/dist/esm/react-query/clientCollectionsUpdateItem.d.ts +23 -0
- package/dist/esm/react-query/clientCollectionsUpdateItem.d.ts.map +1 -0
- package/dist/esm/react-query/clientCollectionsUpdateItem.js +42 -0
- package/dist/esm/react-query/clientCollectionsUpdateItem.js.map +1 -0
- package/dist/esm/react-query/clientDocumentsRetrievePermissions.d.ts +23 -0
- package/dist/esm/react-query/clientDocumentsRetrievePermissions.d.ts.map +1 -0
- package/dist/esm/react-query/clientDocumentsRetrievePermissions.js +42 -0
- package/dist/esm/react-query/clientDocumentsRetrievePermissions.js.map +1 -0
- package/dist/esm/react-query/clientDocumentsSummarize.d.ts +23 -0
- package/dist/esm/react-query/clientDocumentsSummarize.d.ts.map +1 -0
- package/dist/esm/react-query/clientDocumentsSummarize.js +42 -0
- package/dist/esm/react-query/clientDocumentsSummarize.js.map +1 -0
- package/dist/esm/react-query/clientSearchQueryAsAdmin.d.ts +23 -0
- package/dist/esm/react-query/clientSearchQueryAsAdmin.d.ts.map +1 -0
- package/dist/esm/react-query/clientSearchQueryAsAdmin.js +42 -0
- package/dist/esm/react-query/clientSearchQueryAsAdmin.js.map +1 -0
- package/dist/esm/react-query/clientSearchRetrieveFeed.d.ts +23 -0
- package/dist/esm/react-query/clientSearchRetrieveFeed.d.ts.map +1 -0
- package/dist/esm/react-query/clientSearchRetrieveFeed.js +42 -0
- package/dist/esm/react-query/clientSearchRetrieveFeed.js.map +1 -0
- package/dist/esm/react-query/clientShortcutsCreate.d.ts +23 -0
- package/dist/esm/react-query/clientShortcutsCreate.d.ts.map +1 -0
- package/dist/esm/react-query/clientShortcutsCreate.js +42 -0
- package/dist/esm/react-query/clientShortcutsCreate.js.map +1 -0
- package/dist/esm/react-query/clientVerificationVerify.d.ts +23 -0
- package/dist/esm/react-query/clientVerificationVerify.d.ts.map +1 -0
- package/dist/esm/react-query/clientVerificationVerify.js +42 -0
- package/dist/esm/react-query/clientVerificationVerify.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +24 -25
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +24 -25
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/indexingDatasourceStatus.d.ts +25 -0
- package/dist/esm/react-query/indexingDatasourceStatus.d.ts.map +1 -0
- package/dist/esm/react-query/indexingDatasourceStatus.js +44 -0
- package/dist/esm/react-query/indexingDatasourceStatus.js.map +1 -0
- package/dist/esm/react-query/indexingDatasourcesRetrieveConfig.d.ts +23 -0
- package/dist/esm/react-query/indexingDatasourcesRetrieveConfig.d.ts.map +1 -0
- package/dist/esm/react-query/indexingDatasourcesRetrieveConfig.js +42 -0
- package/dist/esm/react-query/indexingDatasourcesRetrieveConfig.js.map +1 -0
- package/dist/esm/react-query/indexingDocumentsCheckAccess.d.ts +25 -0
- package/dist/esm/react-query/indexingDocumentsCheckAccess.d.ts.map +1 -0
- package/dist/esm/react-query/indexingDocumentsCheckAccess.js +44 -0
- package/dist/esm/react-query/indexingDocumentsCheckAccess.js.map +1 -0
- package/dist/esm/react-query/indexingDocumentsCount.d.ts +27 -0
- package/dist/esm/react-query/indexingDocumentsCount.d.ts.map +1 -0
- package/dist/esm/react-query/indexingDocumentsCount.js +46 -0
- package/dist/esm/react-query/indexingDocumentsCount.js.map +1 -0
- package/dist/esm/react-query/indexingDocumentsDebug.d.ts +26 -0
- package/dist/esm/react-query/indexingDocumentsDebug.d.ts.map +1 -0
- package/dist/esm/react-query/indexingDocumentsDebug.js +44 -0
- package/dist/esm/react-query/indexingDocumentsDebug.js.map +1 -0
- package/dist/esm/react-query/indexingDocumentsDebugMany.d.ts +26 -0
- package/dist/esm/react-query/indexingDocumentsDebugMany.d.ts.map +1 -0
- package/dist/esm/react-query/indexingDocumentsDebugMany.js +44 -0
- package/dist/esm/react-query/indexingDocumentsDebugMany.js.map +1 -0
- package/dist/esm/react-query/indexingDocumentsStatus.d.ts +27 -0
- package/dist/esm/react-query/indexingDocumentsStatus.d.ts.map +1 -0
- package/dist/esm/react-query/indexingDocumentsStatus.js +46 -0
- package/dist/esm/react-query/indexingDocumentsStatus.js.map +1 -0
- package/dist/esm/react-query/indexingPeopleBulkIndex.d.ts +2 -4
- package/dist/esm/react-query/indexingPeopleBulkIndex.d.ts.map +1 -1
- package/dist/esm/react-query/indexingPeopleBulkIndex.js +1 -3
- package/dist/esm/react-query/indexingPeopleBulkIndex.js.map +1 -1
- package/dist/esm/react-query/indexingPeopleCount.d.ts +27 -0
- package/dist/esm/react-query/indexingPeopleCount.d.ts.map +1 -0
- package/dist/esm/react-query/indexingPeopleCount.js +46 -0
- package/dist/esm/react-query/indexingPeopleCount.js.map +1 -0
- package/dist/esm/react-query/indexingPeopleDebug.d.ts +26 -0
- package/dist/esm/react-query/indexingPeopleDebug.d.ts.map +1 -0
- package/dist/esm/react-query/indexingPeopleDebug.js +44 -0
- package/dist/esm/react-query/indexingPeopleDebug.js.map +1 -0
- package/dist/esm/react-query/indexingShortcutsUpload.d.ts +23 -0
- package/dist/esm/react-query/indexingShortcutsUpload.d.ts.map +1 -0
- package/dist/esm/react-query/indexingShortcutsUpload.js +42 -0
- package/dist/esm/react-query/indexingShortcutsUpload.js.map +1 -0
- package/dist/esm/sdk/agents.d.ts +14 -3
- package/dist/esm/sdk/agents.d.ts.map +1 -1
- package/dist/esm/sdk/agents.js +19 -3
- package/dist/esm/sdk/agents.js.map +1 -1
- package/dist/esm/sdk/chat.d.ts +28 -6
- package/dist/esm/sdk/chat.d.ts.map +1 -1
- package/dist/esm/sdk/chat.js +40 -8
- package/dist/esm/sdk/chat.js.map +1 -1
- package/dist/esm/sdk/client.d.ts +2 -5
- package/dist/esm/sdk/client.d.ts.map +1 -1
- package/dist/esm/sdk/client.js +2 -6
- package/dist/esm/sdk/client.js.map +1 -1
- package/dist/esm/sdk/clientdocuments.d.ts +14 -3
- package/dist/esm/sdk/clientdocuments.d.ts.map +1 -1
- package/dist/esm/sdk/clientdocuments.js +19 -3
- package/dist/esm/sdk/clientdocuments.js.map +1 -1
- package/dist/esm/sdk/clientsearch.d.ts +14 -6
- package/dist/esm/sdk/clientsearch.d.ts.map +1 -1
- package/dist/esm/sdk/clientsearch.js +18 -6
- package/dist/esm/sdk/clientsearch.js.map +1 -1
- package/dist/esm/sdk/clientshortcuts.d.ts +7 -7
- package/dist/esm/sdk/clientshortcuts.d.ts.map +1 -1
- package/dist/esm/sdk/clientshortcuts.js +10 -10
- package/dist/esm/sdk/clientshortcuts.js.map +1 -1
- package/dist/esm/sdk/collections.d.ts +14 -3
- package/dist/esm/sdk/collections.d.ts.map +1 -1
- package/dist/esm/sdk/collections.js +20 -4
- package/dist/esm/sdk/collections.js.map +1 -1
- package/dist/esm/sdk/datasource.d.ts +0 -9
- package/dist/esm/sdk/datasource.d.ts.map +1 -1
- package/dist/esm/sdk/datasource.js +2 -14
- package/dist/esm/sdk/datasource.js.map +1 -1
- package/dist/esm/sdk/datasources.d.ts +7 -3
- package/dist/esm/sdk/datasources.d.ts.map +1 -1
- package/dist/esm/sdk/datasources.js +10 -4
- package/dist/esm/sdk/datasources.js.map +1 -1
- package/dist/esm/sdk/indexing.d.ts +8 -8
- package/dist/esm/sdk/indexing.d.ts.map +1 -1
- package/dist/esm/sdk/indexing.js +9 -9
- package/dist/esm/sdk/indexing.js.map +1 -1
- package/dist/esm/sdk/indexingdocuments.d.ts +49 -0
- package/dist/esm/sdk/indexingdocuments.d.ts.map +1 -1
- package/dist/esm/sdk/indexingdocuments.js +64 -0
- package/dist/esm/sdk/indexingdocuments.js.map +1 -1
- package/dist/esm/sdk/indexingshortcuts.d.ts +7 -0
- package/dist/esm/sdk/indexingshortcuts.d.ts.map +1 -1
- package/dist/esm/sdk/indexingshortcuts.js +10 -0
- package/dist/esm/sdk/indexingshortcuts.js.map +1 -1
- package/dist/esm/sdk/people.d.ts +63 -1
- package/dist/esm/sdk/people.d.ts.map +1 -1
- package/dist/esm/sdk/people.js +89 -3
- package/dist/esm/sdk/people.js.map +1 -1
- package/dist/esm/sdk/permissions.d.ts +89 -0
- package/dist/esm/sdk/permissions.d.ts.map +1 -0
- package/dist/esm/sdk/permissions.js +128 -0
- package/dist/esm/sdk/permissions.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +0 -9
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +0 -12
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/verification.d.ts +14 -0
- package/dist/esm/sdk/verification.d.ts.map +1 -1
- package/dist/esm/sdk/verification.js +22 -2
- package/dist/esm/sdk/verification.js.map +1 -1
- package/docs/sdks/agents/README.md +182 -0
- package/docs/sdks/announcements/README.md +2 -2
- package/docs/sdks/answers/README.md +30 -6
- package/docs/sdks/chat/README.md +382 -0
- package/docs/sdks/clientdocuments/README.md +188 -0
- package/docs/sdks/clientsearch/README.md +1052 -83
- package/docs/sdks/clientshortcuts/README.md +248 -120
- package/docs/sdks/collections/README.md +210 -12
- package/docs/sdks/datasource/README.md +6 -6
- package/docs/sdks/datasources/README.md +94 -0
- package/docs/sdks/indexingdocuments/README.md +523 -0
- package/docs/sdks/indexingshortcuts/README.md +106 -0
- package/docs/sdks/insights/README.md +2 -4
- package/docs/sdks/messages/README.md +2 -4
- package/docs/sdks/people/README.md +838 -10
- package/docs/sdks/permissions/README.md +1208 -0
- package/docs/sdks/verification/README.md +190 -6
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/activity.test.ts +17 -0
- package/src/__tests__/adminsearch.test.ts +231 -0
- package/src/__tests__/agents.test.ts +2 -2
- package/src/__tests__/announcements.test.ts +1 -1
- package/src/__tests__/answers.test.ts +15 -3
- package/src/__tests__/chat.test.ts +1914 -267
- package/src/__tests__/clientdocuments.test.ts +18 -1
- package/src/__tests__/clientsearch.test.ts +394 -0
- package/src/__tests__/clientshortcuts.test.ts +17 -8
- package/src/__tests__/collections.test.ts +12 -9
- package/src/__tests__/datasource.test.ts +11 -0
- package/src/__tests__/datasources.test.ts +1 -1
- package/src/__tests__/indexingdocuments.test.ts +57 -1
- package/src/__tests__/indexingpeople.test.ts +38 -0
- package/src/__tests__/insights.test.ts +1 -2
- package/src/__tests__/messages.test.ts +1 -2
- package/src/__tests__/search.test.ts +0 -249
- package/src/__tests__/verification.test.ts +1 -1
- package/src/funcs/clientAgentsRetrieveInputs.ts +170 -0
- package/src/funcs/clientAgentsRun.ts +168 -0
- package/src/funcs/clientChatDeleteFiles.ts +171 -0
- package/src/funcs/clientChatRetrieveApplication.ts +170 -0
- package/src/funcs/clientChatRetrieveFiles.ts +170 -0
- package/src/funcs/clientChatUploadFiles.ts +169 -0
- package/src/funcs/clientCollectionsDeleteItem.ts +155 -0
- package/src/funcs/clientCollectionsUpdateItem.ts +154 -0
- package/src/funcs/clientDocumentsRetrievePermissions.ts +154 -0
- package/src/funcs/clientDocumentsSummarize.ts +154 -0
- package/src/funcs/clientSearchQueryAsAdmin.ts +165 -0
- package/src/funcs/clientSearchRetrieveFeed.ts +154 -0
- package/src/funcs/clientShortcutsCreate.ts +154 -0
- package/src/funcs/clientVerificationVerify.ts +154 -0
- package/src/funcs/indexingDatasourceStatus.ts +173 -0
- package/src/funcs/indexingDatasourcesRetrieveConfig.ts +155 -0
- package/src/funcs/indexingDocumentsCheckAccess.ts +157 -0
- package/src/funcs/indexingDocumentsCount.ts +158 -0
- package/src/funcs/indexingDocumentsDebug.ts +180 -0
- package/src/funcs/indexingDocumentsDebugMany.ts +180 -0
- package/src/funcs/indexingDocumentsStatus.ts +158 -0
- package/src/funcs/indexingPeopleBulkIndex.ts +6 -8
- package/src/funcs/indexingPeopleCount.ts +158 -0
- package/src/funcs/indexingPeopleDebug.ts +177 -0
- package/src/funcs/{peoplePostApiIndexV1Bulkindexemployees.ts → indexingShortcutsUpload.ts} +8 -8
- package/src/lib/config.ts +2 -2
- package/src/models/components/collectionitem.ts +2 -2
- package/src/models/components/documentmetadata.ts +2 -2
- package/src/models/components/index.ts +1 -1
- package/src/models/components/indexingshortcut.ts +125 -0
- package/src/models/components/shortcut.ts +139 -30
- package/src/models/components/structuredresult.ts +2 -2
- package/src/models/components/uploadshortcutsrequest.ts +9 -9
- package/src/react-query/clientAgentsRetrieveInputs.ts +92 -0
- package/src/react-query/clientAgentsRun.ts +91 -0
- package/src/react-query/clientChatDeleteFiles.ts +91 -0
- package/src/react-query/clientChatRetrieveApplication.ts +92 -0
- package/src/react-query/clientChatRetrieveFiles.ts +92 -0
- package/src/react-query/clientChatUploadFiles.ts +92 -0
- package/src/react-query/clientCollectionsDeleteItem.ts +89 -0
- package/src/react-query/clientCollectionsUpdateItem.ts +89 -0
- package/src/react-query/clientDocumentsRetrievePermissions.ts +89 -0
- package/src/react-query/clientDocumentsSummarize.ts +88 -0
- package/src/react-query/clientSearchQueryAsAdmin.ts +88 -0
- package/src/react-query/clientSearchRetrieveFeed.ts +88 -0
- package/src/react-query/clientShortcutsCreate.ts +89 -0
- package/src/react-query/clientVerificationVerify.ts +88 -0
- package/src/react-query/index.ts +24 -25
- package/src/react-query/indexingDatasourceStatus.ts +91 -0
- package/src/react-query/indexingDatasourcesRetrieveConfig.ts +89 -0
- package/src/react-query/indexingDocumentsCheckAccess.ts +91 -0
- package/src/react-query/indexingDocumentsCount.ts +93 -0
- package/src/react-query/indexingDocumentsDebug.ts +94 -0
- package/src/react-query/indexingDocumentsDebugMany.ts +94 -0
- package/src/react-query/indexingDocumentsStatus.ts +93 -0
- package/src/react-query/indexingPeopleBulkIndex.ts +2 -4
- package/src/react-query/indexingPeopleCount.ts +92 -0
- package/src/react-query/indexingPeopleDebug.ts +93 -0
- package/src/react-query/indexingShortcutsUpload.ts +88 -0
- package/src/sdk/agents.ts +38 -4
- package/src/sdk/chat.ts +80 -12
- package/src/sdk/client.ts +4 -10
- package/src/sdk/clientdocuments.ts +34 -4
- package/src/sdk/clientsearch.ts +32 -8
- package/src/sdk/clientshortcuts.ts +18 -18
- package/src/sdk/collections.ts +36 -6
- package/src/sdk/datasource.ts +2 -20
- package/src/sdk/datasources.ts +18 -6
- package/src/sdk/indexing.ts +14 -14
- package/src/sdk/indexingdocuments.ts +108 -0
- package/src/sdk/indexingshortcuts.ts +18 -0
- package/src/sdk/people.ts +153 -3
- package/src/sdk/permissions.ts +225 -0
- package/src/sdk/sdk.ts +0 -18
- package/src/sdk/verification.ts +38 -2
- package/dist/commonjs/__tests__/activities.test.d.ts +0 -2
- package/dist/commonjs/__tests__/activities.test.d.ts.map +0 -1
- package/dist/commonjs/__tests__/activities.test.js +0 -23
- package/dist/commonjs/__tests__/activities.test.js.map +0 -1
- package/dist/commonjs/__tests__/people.test.d.ts +0 -2
- package/dist/commonjs/__tests__/people.test.d.ts.map +0 -1
- package/dist/commonjs/__tests__/people.test.js +0 -18
- package/dist/commonjs/__tests__/people.test.js.map +0 -1
- package/dist/commonjs/__tests__/summarize.test.d.ts +0 -2
- package/dist/commonjs/__tests__/summarize.test.d.ts.map +0 -1
- package/dist/commonjs/__tests__/summarize.test.js +0 -24
- package/dist/commonjs/__tests__/summarize.test.js.map +0 -1
- package/dist/commonjs/__tests__/troubleshooting.test.d.ts +0 -2
- package/dist/commonjs/__tests__/troubleshooting.test.d.ts.map +0 -1
- package/dist/commonjs/__tests__/troubleshooting.test.js +0 -65
- package/dist/commonjs/__tests__/troubleshooting.test.js.map +0 -1
- package/dist/commonjs/funcs/peoplePostApiIndexV1Bulkindexemployees.d.ts.map +0 -1
- package/dist/commonjs/funcs/peoplePostApiIndexV1Bulkindexemployees.js.map +0 -1
- package/dist/commonjs/models/components/indexemployeelistrequest.d.ts +0 -36
- package/dist/commonjs/models/components/indexemployeelistrequest.d.ts.map +0 -1
- package/dist/commonjs/models/components/indexemployeelistrequest.js.map +0 -1
- package/dist/commonjs/react-query/peoplePostApiIndexV1Bulkindexemployees.d.ts +0 -23
- package/dist/commonjs/react-query/peoplePostApiIndexV1Bulkindexemployees.d.ts.map +0 -1
- package/dist/commonjs/react-query/peoplePostApiIndexV1Bulkindexemployees.js +0 -51
- package/dist/commonjs/react-query/peoplePostApiIndexV1Bulkindexemployees.js.map +0 -1
- package/dist/commonjs/sdk/admin.d.ts +0 -12
- package/dist/commonjs/sdk/admin.d.ts.map +0 -1
- package/dist/commonjs/sdk/admin.js +0 -22
- package/dist/commonjs/sdk/admin.js.map +0 -1
- package/dist/commonjs/sdk/indexingpeople.d.ts +0 -56
- package/dist/commonjs/sdk/indexingpeople.d.ts.map +0 -1
- package/dist/commonjs/sdk/indexingpeople.js +0 -84
- package/dist/commonjs/sdk/indexingpeople.js.map +0 -1
- package/dist/esm/__tests__/activities.test.d.ts +0 -2
- package/dist/esm/__tests__/activities.test.d.ts.map +0 -1
- package/dist/esm/__tests__/activities.test.js +0 -21
- package/dist/esm/__tests__/activities.test.js.map +0 -1
- package/dist/esm/__tests__/people.test.d.ts +0 -2
- package/dist/esm/__tests__/people.test.d.ts.map +0 -1
- package/dist/esm/__tests__/people.test.js +0 -16
- package/dist/esm/__tests__/people.test.js.map +0 -1
- package/dist/esm/__tests__/summarize.test.d.ts +0 -2
- package/dist/esm/__tests__/summarize.test.d.ts.map +0 -1
- package/dist/esm/__tests__/summarize.test.js +0 -22
- package/dist/esm/__tests__/summarize.test.js.map +0 -1
- package/dist/esm/__tests__/troubleshooting.test.d.ts +0 -2
- package/dist/esm/__tests__/troubleshooting.test.d.ts.map +0 -1
- package/dist/esm/__tests__/troubleshooting.test.js +0 -63
- package/dist/esm/__tests__/troubleshooting.test.js.map +0 -1
- package/dist/esm/funcs/peoplePostApiIndexV1Bulkindexemployees.d.ts.map +0 -1
- package/dist/esm/funcs/peoplePostApiIndexV1Bulkindexemployees.js.map +0 -1
- package/dist/esm/models/components/indexemployeelistrequest.d.ts +0 -36
- package/dist/esm/models/components/indexemployeelistrequest.d.ts.map +0 -1
- package/dist/esm/models/components/indexemployeelistrequest.js +0 -32
- package/dist/esm/models/components/indexemployeelistrequest.js.map +0 -1
- package/dist/esm/react-query/peoplePostApiIndexV1Bulkindexemployees.d.ts +0 -23
- package/dist/esm/react-query/peoplePostApiIndexV1Bulkindexemployees.d.ts.map +0 -1
- package/dist/esm/react-query/peoplePostApiIndexV1Bulkindexemployees.js +0 -46
- package/dist/esm/react-query/peoplePostApiIndexV1Bulkindexemployees.js.map +0 -1
- package/dist/esm/sdk/admin.d.ts +0 -12
- package/dist/esm/sdk/admin.d.ts.map +0 -1
- package/dist/esm/sdk/admin.js +0 -18
- package/dist/esm/sdk/admin.js.map +0 -1
- package/dist/esm/sdk/indexingpeople.d.ts +0 -56
- package/dist/esm/sdk/indexingpeople.d.ts.map +0 -1
- package/dist/esm/sdk/indexingpeople.js +0 -80
- package/dist/esm/sdk/indexingpeople.js.map +0 -1
- package/docs/sdks/admin/README.md +0 -160
- package/docs/sdks/indexingpeople/README.md +0 -807
- package/src/__tests__/activities.test.ts +0 -24
- package/src/__tests__/people.test.ts +0 -21
- package/src/__tests__/summarize.test.ts +0 -25
- package/src/__tests__/troubleshooting.test.ts +0 -86
- package/src/models/components/indexemployeelistrequest.ts +0 -78
- package/src/react-query/peoplePostApiIndexV1Bulkindexemployees.ts +0 -92
- package/src/sdk/admin.ts +0 -27
- package/src/sdk/indexingpeople.ts +0 -135
|
@@ -1,807 +0,0 @@
|
|
|
1
|
-
# IndexingPeople
|
|
2
|
-
(*indexing.people*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
### Available Operations
|
|
7
|
-
|
|
8
|
-
* [index](#index) - Index employee
|
|
9
|
-
* [~~bulkIndex~~](#bulkindex) - Bulk index employees :warning: **Deprecated**
|
|
10
|
-
* [processAllEmployeesAndTeams](#processallemployeesandteams) - Schedules the processing of uploaded employees and teams
|
|
11
|
-
* [delete](#delete) - Delete employee
|
|
12
|
-
* [indexTeam](#indexteam) - Index team
|
|
13
|
-
* [deleteTeam](#deleteteam) - Delete team
|
|
14
|
-
* [bulkIndexTeams](#bulkindexteams) - Bulk index teams
|
|
15
|
-
|
|
16
|
-
## index
|
|
17
|
-
|
|
18
|
-
Adds an employee or updates information about an employee
|
|
19
|
-
|
|
20
|
-
### Example Usage
|
|
21
|
-
|
|
22
|
-
```typescript
|
|
23
|
-
import { Glean } from "@gleanwork/api-client";
|
|
24
|
-
|
|
25
|
-
const glean = new Glean({
|
|
26
|
-
bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
async function run() {
|
|
30
|
-
await glean.indexing.people.index({
|
|
31
|
-
employee: {
|
|
32
|
-
email: "Santos.Turcotte@yahoo.com",
|
|
33
|
-
department: "<value>",
|
|
34
|
-
datasourceProfiles: [
|
|
35
|
-
{
|
|
36
|
-
datasource: "github",
|
|
37
|
-
handle: "<value>",
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
datasource: "github",
|
|
41
|
-
handle: "<value>",
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
run();
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
### Standalone function
|
|
54
|
-
|
|
55
|
-
The standalone function version of this method:
|
|
56
|
-
|
|
57
|
-
```typescript
|
|
58
|
-
import { GleanCore } from "@gleanwork/api-client/core.js";
|
|
59
|
-
import { indexingPeopleIndex } from "@gleanwork/api-client/funcs/indexingPeopleIndex.js";
|
|
60
|
-
|
|
61
|
-
// Use `GleanCore` for best tree-shaking performance.
|
|
62
|
-
// You can create one instance of it to use across an application.
|
|
63
|
-
const glean = new GleanCore({
|
|
64
|
-
bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
async function run() {
|
|
68
|
-
const res = await indexingPeopleIndex(glean, {
|
|
69
|
-
employee: {
|
|
70
|
-
email: "Santos.Turcotte@yahoo.com",
|
|
71
|
-
department: "<value>",
|
|
72
|
-
datasourceProfiles: [
|
|
73
|
-
{
|
|
74
|
-
datasource: "github",
|
|
75
|
-
handle: "<value>",
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
datasource: "github",
|
|
79
|
-
handle: "<value>",
|
|
80
|
-
},
|
|
81
|
-
],
|
|
82
|
-
},
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
if (!res.ok) {
|
|
86
|
-
throw res.error;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
const { value: result } = res;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
run();
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
### React hooks and utilities
|
|
98
|
-
|
|
99
|
-
This method can be used in React components through the following hooks and
|
|
100
|
-
associated utilities.
|
|
101
|
-
|
|
102
|
-
> Check out [this guide][hook-guide] for information about each of the utilities
|
|
103
|
-
> below and how to get started using React hooks.
|
|
104
|
-
|
|
105
|
-
[hook-guide]: ../../../REACT_QUERY.md
|
|
106
|
-
|
|
107
|
-
```tsx
|
|
108
|
-
import {
|
|
109
|
-
// Mutation hook for triggering the API call.
|
|
110
|
-
useIndexingPeopleIndexMutation
|
|
111
|
-
} from "@gleanwork/api-client/react-query/indexingPeopleIndex.js";
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
### Parameters
|
|
115
|
-
|
|
116
|
-
| Parameter | Type | Required | Description |
|
|
117
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
118
|
-
| `request` | [components.IndexEmployeeRequest](../../models/components/indexemployeerequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
119
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
120
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
121
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
122
|
-
|
|
123
|
-
### Response
|
|
124
|
-
|
|
125
|
-
**Promise\<void\>**
|
|
126
|
-
|
|
127
|
-
### Errors
|
|
128
|
-
|
|
129
|
-
| Error Type | Status Code | Content Type |
|
|
130
|
-
| ----------------- | ----------------- | ----------------- |
|
|
131
|
-
| errors.GleanError | 4XX, 5XX | \*/\* |
|
|
132
|
-
|
|
133
|
-
## ~~bulkIndex~~
|
|
134
|
-
|
|
135
|
-
Bulk upload details of all the employees. This deletes all employees uploaded in the prior batch. SOON TO BE DEPRECATED in favor of /bulkindexemployees.
|
|
136
|
-
|
|
137
|
-
> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
138
|
-
|
|
139
|
-
### Example Usage
|
|
140
|
-
|
|
141
|
-
```typescript
|
|
142
|
-
import { Glean } from "@gleanwork/api-client";
|
|
143
|
-
|
|
144
|
-
const glean = new Glean({
|
|
145
|
-
bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
async function run() {
|
|
149
|
-
await glean.indexing.people.bulkIndex({
|
|
150
|
-
employees: [
|
|
151
|
-
{
|
|
152
|
-
employee: {
|
|
153
|
-
email: "Kiera_Bashirian18@yahoo.com",
|
|
154
|
-
department: "<value>",
|
|
155
|
-
datasourceProfiles: [
|
|
156
|
-
{
|
|
157
|
-
datasource: "github",
|
|
158
|
-
handle: "<value>",
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
datasource: "github",
|
|
162
|
-
handle: "<value>",
|
|
163
|
-
},
|
|
164
|
-
],
|
|
165
|
-
},
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
employee: {
|
|
169
|
-
email: "Madie_Hayes48@gmail.com",
|
|
170
|
-
department: "<value>",
|
|
171
|
-
datasourceProfiles: [
|
|
172
|
-
{
|
|
173
|
-
datasource: "github",
|
|
174
|
-
handle: "<value>",
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
datasource: "github",
|
|
178
|
-
handle: "<value>",
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
datasource: "github",
|
|
182
|
-
handle: "<value>",
|
|
183
|
-
},
|
|
184
|
-
],
|
|
185
|
-
},
|
|
186
|
-
},
|
|
187
|
-
],
|
|
188
|
-
});
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
run();
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
### Standalone function
|
|
197
|
-
|
|
198
|
-
The standalone function version of this method:
|
|
199
|
-
|
|
200
|
-
```typescript
|
|
201
|
-
import { GleanCore } from "@gleanwork/api-client/core.js";
|
|
202
|
-
import { indexingPeopleBulkIndex } from "@gleanwork/api-client/funcs/indexingPeopleBulkIndex.js";
|
|
203
|
-
|
|
204
|
-
// Use `GleanCore` for best tree-shaking performance.
|
|
205
|
-
// You can create one instance of it to use across an application.
|
|
206
|
-
const glean = new GleanCore({
|
|
207
|
-
bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
|
|
208
|
-
});
|
|
209
|
-
|
|
210
|
-
async function run() {
|
|
211
|
-
const res = await indexingPeopleBulkIndex(glean, {
|
|
212
|
-
employees: [
|
|
213
|
-
{
|
|
214
|
-
employee: {
|
|
215
|
-
email: "Kiera_Bashirian18@yahoo.com",
|
|
216
|
-
department: "<value>",
|
|
217
|
-
datasourceProfiles: [
|
|
218
|
-
{
|
|
219
|
-
datasource: "github",
|
|
220
|
-
handle: "<value>",
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
datasource: "github",
|
|
224
|
-
handle: "<value>",
|
|
225
|
-
},
|
|
226
|
-
],
|
|
227
|
-
},
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
employee: {
|
|
231
|
-
email: "Madie_Hayes48@gmail.com",
|
|
232
|
-
department: "<value>",
|
|
233
|
-
datasourceProfiles: [
|
|
234
|
-
{
|
|
235
|
-
datasource: "github",
|
|
236
|
-
handle: "<value>",
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
datasource: "github",
|
|
240
|
-
handle: "<value>",
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
datasource: "github",
|
|
244
|
-
handle: "<value>",
|
|
245
|
-
},
|
|
246
|
-
],
|
|
247
|
-
},
|
|
248
|
-
},
|
|
249
|
-
],
|
|
250
|
-
});
|
|
251
|
-
|
|
252
|
-
if (!res.ok) {
|
|
253
|
-
throw res.error;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
const { value: result } = res;
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
run();
|
|
262
|
-
```
|
|
263
|
-
|
|
264
|
-
### React hooks and utilities
|
|
265
|
-
|
|
266
|
-
This method can be used in React components through the following hooks and
|
|
267
|
-
associated utilities.
|
|
268
|
-
|
|
269
|
-
> Check out [this guide][hook-guide] for information about each of the utilities
|
|
270
|
-
> below and how to get started using React hooks.
|
|
271
|
-
|
|
272
|
-
[hook-guide]: ../../../REACT_QUERY.md
|
|
273
|
-
|
|
274
|
-
```tsx
|
|
275
|
-
import {
|
|
276
|
-
// Mutation hook for triggering the API call.
|
|
277
|
-
useIndexingPeopleBulkIndexMutation
|
|
278
|
-
} from "@gleanwork/api-client/react-query/indexingPeopleBulkIndex.js";
|
|
279
|
-
```
|
|
280
|
-
|
|
281
|
-
### Parameters
|
|
282
|
-
|
|
283
|
-
| Parameter | Type | Required | Description |
|
|
284
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
285
|
-
| `request` | [components.IndexEmployeeListRequest](../../models/components/indexemployeelistrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
286
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
287
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
288
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
289
|
-
|
|
290
|
-
### Response
|
|
291
|
-
|
|
292
|
-
**Promise\<void\>**
|
|
293
|
-
|
|
294
|
-
### Errors
|
|
295
|
-
|
|
296
|
-
| Error Type | Status Code | Content Type |
|
|
297
|
-
| ----------------- | ----------------- | ----------------- |
|
|
298
|
-
| errors.GleanError | 4XX, 5XX | \*/\* |
|
|
299
|
-
|
|
300
|
-
## processAllEmployeesAndTeams
|
|
301
|
-
|
|
302
|
-
Schedules the immediate processing of employees and teams uploaded through the indexing API. By default all uploaded people data will be processed asynchronously but this API can be used to schedule its processing on demand.
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
### Example Usage
|
|
306
|
-
|
|
307
|
-
```typescript
|
|
308
|
-
import { Glean } from "@gleanwork/api-client";
|
|
309
|
-
|
|
310
|
-
const glean = new Glean({
|
|
311
|
-
bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
|
|
312
|
-
});
|
|
313
|
-
|
|
314
|
-
async function run() {
|
|
315
|
-
await glean.indexing.people.processAllEmployeesAndTeams();
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
run();
|
|
321
|
-
```
|
|
322
|
-
|
|
323
|
-
### Standalone function
|
|
324
|
-
|
|
325
|
-
The standalone function version of this method:
|
|
326
|
-
|
|
327
|
-
```typescript
|
|
328
|
-
import { GleanCore } from "@gleanwork/api-client/core.js";
|
|
329
|
-
import { indexingPeopleProcessAllEmployeesAndTeams } from "@gleanwork/api-client/funcs/indexingPeopleProcessAllEmployeesAndTeams.js";
|
|
330
|
-
|
|
331
|
-
// Use `GleanCore` for best tree-shaking performance.
|
|
332
|
-
// You can create one instance of it to use across an application.
|
|
333
|
-
const glean = new GleanCore({
|
|
334
|
-
bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
|
|
335
|
-
});
|
|
336
|
-
|
|
337
|
-
async function run() {
|
|
338
|
-
const res = await indexingPeopleProcessAllEmployeesAndTeams(glean);
|
|
339
|
-
|
|
340
|
-
if (!res.ok) {
|
|
341
|
-
throw res.error;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
const { value: result } = res;
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
run();
|
|
350
|
-
```
|
|
351
|
-
|
|
352
|
-
### React hooks and utilities
|
|
353
|
-
|
|
354
|
-
This method can be used in React components through the following hooks and
|
|
355
|
-
associated utilities.
|
|
356
|
-
|
|
357
|
-
> Check out [this guide][hook-guide] for information about each of the utilities
|
|
358
|
-
> below and how to get started using React hooks.
|
|
359
|
-
|
|
360
|
-
[hook-guide]: ../../../REACT_QUERY.md
|
|
361
|
-
|
|
362
|
-
```tsx
|
|
363
|
-
import {
|
|
364
|
-
// Mutation hook for triggering the API call.
|
|
365
|
-
useIndexingPeopleProcessAllEmployeesAndTeamsMutation
|
|
366
|
-
} from "@gleanwork/api-client/react-query/indexingPeopleProcessAllEmployeesAndTeams.js";
|
|
367
|
-
```
|
|
368
|
-
|
|
369
|
-
### Parameters
|
|
370
|
-
|
|
371
|
-
| Parameter | Type | Required | Description |
|
|
372
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
373
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
374
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
375
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
376
|
-
|
|
377
|
-
### Response
|
|
378
|
-
|
|
379
|
-
**Promise\<void\>**
|
|
380
|
-
|
|
381
|
-
### Errors
|
|
382
|
-
|
|
383
|
-
| Error Type | Status Code | Content Type |
|
|
384
|
-
| ----------------- | ----------------- | ----------------- |
|
|
385
|
-
| errors.GleanError | 4XX, 5XX | \*/\* |
|
|
386
|
-
|
|
387
|
-
## delete
|
|
388
|
-
|
|
389
|
-
Delete an employee. Silently succeeds if employee is not present.
|
|
390
|
-
|
|
391
|
-
### Example Usage
|
|
392
|
-
|
|
393
|
-
```typescript
|
|
394
|
-
import { Glean } from "@gleanwork/api-client";
|
|
395
|
-
|
|
396
|
-
const glean = new Glean({
|
|
397
|
-
bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
|
|
398
|
-
});
|
|
399
|
-
|
|
400
|
-
async function run() {
|
|
401
|
-
await glean.indexing.people.delete({
|
|
402
|
-
employeeEmail: "<value>",
|
|
403
|
-
});
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
run();
|
|
409
|
-
```
|
|
410
|
-
|
|
411
|
-
### Standalone function
|
|
412
|
-
|
|
413
|
-
The standalone function version of this method:
|
|
414
|
-
|
|
415
|
-
```typescript
|
|
416
|
-
import { GleanCore } from "@gleanwork/api-client/core.js";
|
|
417
|
-
import { indexingPeopleDelete } from "@gleanwork/api-client/funcs/indexingPeopleDelete.js";
|
|
418
|
-
|
|
419
|
-
// Use `GleanCore` for best tree-shaking performance.
|
|
420
|
-
// You can create one instance of it to use across an application.
|
|
421
|
-
const glean = new GleanCore({
|
|
422
|
-
bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
|
|
423
|
-
});
|
|
424
|
-
|
|
425
|
-
async function run() {
|
|
426
|
-
const res = await indexingPeopleDelete(glean, {
|
|
427
|
-
employeeEmail: "<value>",
|
|
428
|
-
});
|
|
429
|
-
|
|
430
|
-
if (!res.ok) {
|
|
431
|
-
throw res.error;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
const { value: result } = res;
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
run();
|
|
440
|
-
```
|
|
441
|
-
|
|
442
|
-
### React hooks and utilities
|
|
443
|
-
|
|
444
|
-
This method can be used in React components through the following hooks and
|
|
445
|
-
associated utilities.
|
|
446
|
-
|
|
447
|
-
> Check out [this guide][hook-guide] for information about each of the utilities
|
|
448
|
-
> below and how to get started using React hooks.
|
|
449
|
-
|
|
450
|
-
[hook-guide]: ../../../REACT_QUERY.md
|
|
451
|
-
|
|
452
|
-
```tsx
|
|
453
|
-
import {
|
|
454
|
-
// Mutation hook for triggering the API call.
|
|
455
|
-
useIndexingPeopleDeleteMutation
|
|
456
|
-
} from "@gleanwork/api-client/react-query/indexingPeopleDelete.js";
|
|
457
|
-
```
|
|
458
|
-
|
|
459
|
-
### Parameters
|
|
460
|
-
|
|
461
|
-
| Parameter | Type | Required | Description |
|
|
462
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
463
|
-
| `request` | [components.DeleteEmployeeRequest](../../models/components/deleteemployeerequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
464
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
465
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
466
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
467
|
-
|
|
468
|
-
### Response
|
|
469
|
-
|
|
470
|
-
**Promise\<void\>**
|
|
471
|
-
|
|
472
|
-
### Errors
|
|
473
|
-
|
|
474
|
-
| Error Type | Status Code | Content Type |
|
|
475
|
-
| ----------------- | ----------------- | ----------------- |
|
|
476
|
-
| errors.GleanError | 4XX, 5XX | \*/\* |
|
|
477
|
-
|
|
478
|
-
## indexTeam
|
|
479
|
-
|
|
480
|
-
Adds a team or updates information about a team
|
|
481
|
-
|
|
482
|
-
### Example Usage
|
|
483
|
-
|
|
484
|
-
```typescript
|
|
485
|
-
import { Glean } from "@gleanwork/api-client";
|
|
486
|
-
|
|
487
|
-
const glean = new Glean({
|
|
488
|
-
bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
|
|
489
|
-
});
|
|
490
|
-
|
|
491
|
-
async function run() {
|
|
492
|
-
await glean.indexing.people.indexTeam({
|
|
493
|
-
team: {
|
|
494
|
-
id: "<id>",
|
|
495
|
-
name: "<value>",
|
|
496
|
-
datasourceProfiles: [
|
|
497
|
-
{
|
|
498
|
-
datasource: "github",
|
|
499
|
-
handle: "<value>",
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
datasource: "github",
|
|
503
|
-
handle: "<value>",
|
|
504
|
-
},
|
|
505
|
-
{
|
|
506
|
-
datasource: "github",
|
|
507
|
-
handle: "<value>",
|
|
508
|
-
},
|
|
509
|
-
],
|
|
510
|
-
members: [
|
|
511
|
-
{
|
|
512
|
-
email: "Rachelle20@yahoo.com",
|
|
513
|
-
},
|
|
514
|
-
{
|
|
515
|
-
email: "Rebeka.Gerhold@hotmail.com",
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
email: "Jace86@yahoo.com",
|
|
519
|
-
},
|
|
520
|
-
],
|
|
521
|
-
},
|
|
522
|
-
});
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
run();
|
|
528
|
-
```
|
|
529
|
-
|
|
530
|
-
### Standalone function
|
|
531
|
-
|
|
532
|
-
The standalone function version of this method:
|
|
533
|
-
|
|
534
|
-
```typescript
|
|
535
|
-
import { GleanCore } from "@gleanwork/api-client/core.js";
|
|
536
|
-
import { indexingPeopleIndexTeam } from "@gleanwork/api-client/funcs/indexingPeopleIndexTeam.js";
|
|
537
|
-
|
|
538
|
-
// Use `GleanCore` for best tree-shaking performance.
|
|
539
|
-
// You can create one instance of it to use across an application.
|
|
540
|
-
const glean = new GleanCore({
|
|
541
|
-
bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
|
|
542
|
-
});
|
|
543
|
-
|
|
544
|
-
async function run() {
|
|
545
|
-
const res = await indexingPeopleIndexTeam(glean, {
|
|
546
|
-
team: {
|
|
547
|
-
id: "<id>",
|
|
548
|
-
name: "<value>",
|
|
549
|
-
datasourceProfiles: [
|
|
550
|
-
{
|
|
551
|
-
datasource: "github",
|
|
552
|
-
handle: "<value>",
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
datasource: "github",
|
|
556
|
-
handle: "<value>",
|
|
557
|
-
},
|
|
558
|
-
{
|
|
559
|
-
datasource: "github",
|
|
560
|
-
handle: "<value>",
|
|
561
|
-
},
|
|
562
|
-
],
|
|
563
|
-
members: [
|
|
564
|
-
{
|
|
565
|
-
email: "Rachelle20@yahoo.com",
|
|
566
|
-
},
|
|
567
|
-
{
|
|
568
|
-
email: "Rebeka.Gerhold@hotmail.com",
|
|
569
|
-
},
|
|
570
|
-
{
|
|
571
|
-
email: "Jace86@yahoo.com",
|
|
572
|
-
},
|
|
573
|
-
],
|
|
574
|
-
},
|
|
575
|
-
});
|
|
576
|
-
|
|
577
|
-
if (!res.ok) {
|
|
578
|
-
throw res.error;
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
const { value: result } = res;
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
run();
|
|
587
|
-
```
|
|
588
|
-
|
|
589
|
-
### React hooks and utilities
|
|
590
|
-
|
|
591
|
-
This method can be used in React components through the following hooks and
|
|
592
|
-
associated utilities.
|
|
593
|
-
|
|
594
|
-
> Check out [this guide][hook-guide] for information about each of the utilities
|
|
595
|
-
> below and how to get started using React hooks.
|
|
596
|
-
|
|
597
|
-
[hook-guide]: ../../../REACT_QUERY.md
|
|
598
|
-
|
|
599
|
-
```tsx
|
|
600
|
-
import {
|
|
601
|
-
// Mutation hook for triggering the API call.
|
|
602
|
-
useIndexingPeopleIndexTeamMutation
|
|
603
|
-
} from "@gleanwork/api-client/react-query/indexingPeopleIndexTeam.js";
|
|
604
|
-
```
|
|
605
|
-
|
|
606
|
-
### Parameters
|
|
607
|
-
|
|
608
|
-
| Parameter | Type | Required | Description |
|
|
609
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
610
|
-
| `request` | [components.IndexTeamRequest](../../models/components/indexteamrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
611
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
612
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
613
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
614
|
-
|
|
615
|
-
### Response
|
|
616
|
-
|
|
617
|
-
**Promise\<void\>**
|
|
618
|
-
|
|
619
|
-
### Errors
|
|
620
|
-
|
|
621
|
-
| Error Type | Status Code | Content Type |
|
|
622
|
-
| ----------------- | ----------------- | ----------------- |
|
|
623
|
-
| errors.GleanError | 4XX, 5XX | \*/\* |
|
|
624
|
-
|
|
625
|
-
## deleteTeam
|
|
626
|
-
|
|
627
|
-
Delete a team based on provided id.
|
|
628
|
-
|
|
629
|
-
### Example Usage
|
|
630
|
-
|
|
631
|
-
```typescript
|
|
632
|
-
import { Glean } from "@gleanwork/api-client";
|
|
633
|
-
|
|
634
|
-
const glean = new Glean({
|
|
635
|
-
bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
|
|
636
|
-
});
|
|
637
|
-
|
|
638
|
-
async function run() {
|
|
639
|
-
await glean.indexing.people.deleteTeam({
|
|
640
|
-
id: "<id>",
|
|
641
|
-
});
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
run();
|
|
647
|
-
```
|
|
648
|
-
|
|
649
|
-
### Standalone function
|
|
650
|
-
|
|
651
|
-
The standalone function version of this method:
|
|
652
|
-
|
|
653
|
-
```typescript
|
|
654
|
-
import { GleanCore } from "@gleanwork/api-client/core.js";
|
|
655
|
-
import { indexingPeopleDeleteTeam } from "@gleanwork/api-client/funcs/indexingPeopleDeleteTeam.js";
|
|
656
|
-
|
|
657
|
-
// Use `GleanCore` for best tree-shaking performance.
|
|
658
|
-
// You can create one instance of it to use across an application.
|
|
659
|
-
const glean = new GleanCore({
|
|
660
|
-
bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
|
|
661
|
-
});
|
|
662
|
-
|
|
663
|
-
async function run() {
|
|
664
|
-
const res = await indexingPeopleDeleteTeam(glean, {
|
|
665
|
-
id: "<id>",
|
|
666
|
-
});
|
|
667
|
-
|
|
668
|
-
if (!res.ok) {
|
|
669
|
-
throw res.error;
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
const { value: result } = res;
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
run();
|
|
678
|
-
```
|
|
679
|
-
|
|
680
|
-
### React hooks and utilities
|
|
681
|
-
|
|
682
|
-
This method can be used in React components through the following hooks and
|
|
683
|
-
associated utilities.
|
|
684
|
-
|
|
685
|
-
> Check out [this guide][hook-guide] for information about each of the utilities
|
|
686
|
-
> below and how to get started using React hooks.
|
|
687
|
-
|
|
688
|
-
[hook-guide]: ../../../REACT_QUERY.md
|
|
689
|
-
|
|
690
|
-
```tsx
|
|
691
|
-
import {
|
|
692
|
-
// Mutation hook for triggering the API call.
|
|
693
|
-
useIndexingPeopleDeleteTeamMutation
|
|
694
|
-
} from "@gleanwork/api-client/react-query/indexingPeopleDeleteTeam.js";
|
|
695
|
-
```
|
|
696
|
-
|
|
697
|
-
### Parameters
|
|
698
|
-
|
|
699
|
-
| Parameter | Type | Required | Description |
|
|
700
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
701
|
-
| `request` | [components.DeleteTeamRequest](../../models/components/deleteteamrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
702
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
703
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
704
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
705
|
-
|
|
706
|
-
### Response
|
|
707
|
-
|
|
708
|
-
**Promise\<void\>**
|
|
709
|
-
|
|
710
|
-
### Errors
|
|
711
|
-
|
|
712
|
-
| Error Type | Status Code | Content Type |
|
|
713
|
-
| ----------------- | ----------------- | ----------------- |
|
|
714
|
-
| errors.GleanError | 4XX, 5XX | \*/\* |
|
|
715
|
-
|
|
716
|
-
## bulkIndexTeams
|
|
717
|
-
|
|
718
|
-
Replaces all the currently indexed teams using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/docs/indexing_api_bulk_indexing/#bulk-upload-model) documentation for an explanation of how to use bulk endpoints.
|
|
719
|
-
|
|
720
|
-
### Example Usage
|
|
721
|
-
|
|
722
|
-
```typescript
|
|
723
|
-
import { Glean } from "@gleanwork/api-client";
|
|
724
|
-
|
|
725
|
-
const glean = new Glean({
|
|
726
|
-
bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
|
|
727
|
-
});
|
|
728
|
-
|
|
729
|
-
async function run() {
|
|
730
|
-
await glean.indexing.people.bulkIndexTeams({
|
|
731
|
-
uploadId: "<id>",
|
|
732
|
-
teams: [],
|
|
733
|
-
});
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
run();
|
|
739
|
-
```
|
|
740
|
-
|
|
741
|
-
### Standalone function
|
|
742
|
-
|
|
743
|
-
The standalone function version of this method:
|
|
744
|
-
|
|
745
|
-
```typescript
|
|
746
|
-
import { GleanCore } from "@gleanwork/api-client/core.js";
|
|
747
|
-
import { indexingPeopleBulkIndexTeams } from "@gleanwork/api-client/funcs/indexingPeopleBulkIndexTeams.js";
|
|
748
|
-
|
|
749
|
-
// Use `GleanCore` for best tree-shaking performance.
|
|
750
|
-
// You can create one instance of it to use across an application.
|
|
751
|
-
const glean = new GleanCore({
|
|
752
|
-
bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
|
|
753
|
-
});
|
|
754
|
-
|
|
755
|
-
async function run() {
|
|
756
|
-
const res = await indexingPeopleBulkIndexTeams(glean, {
|
|
757
|
-
uploadId: "<id>",
|
|
758
|
-
teams: [],
|
|
759
|
-
});
|
|
760
|
-
|
|
761
|
-
if (!res.ok) {
|
|
762
|
-
throw res.error;
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
const { value: result } = res;
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
run();
|
|
771
|
-
```
|
|
772
|
-
|
|
773
|
-
### React hooks and utilities
|
|
774
|
-
|
|
775
|
-
This method can be used in React components through the following hooks and
|
|
776
|
-
associated utilities.
|
|
777
|
-
|
|
778
|
-
> Check out [this guide][hook-guide] for information about each of the utilities
|
|
779
|
-
> below and how to get started using React hooks.
|
|
780
|
-
|
|
781
|
-
[hook-guide]: ../../../REACT_QUERY.md
|
|
782
|
-
|
|
783
|
-
```tsx
|
|
784
|
-
import {
|
|
785
|
-
// Mutation hook for triggering the API call.
|
|
786
|
-
useIndexingPeopleBulkIndexTeamsMutation
|
|
787
|
-
} from "@gleanwork/api-client/react-query/indexingPeopleBulkIndexTeams.js";
|
|
788
|
-
```
|
|
789
|
-
|
|
790
|
-
### Parameters
|
|
791
|
-
|
|
792
|
-
| Parameter | Type | Required | Description |
|
|
793
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
794
|
-
| `request` | [components.BulkIndexTeamsRequest](../../models/components/bulkindexteamsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
795
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
796
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
797
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
798
|
-
|
|
799
|
-
### Response
|
|
800
|
-
|
|
801
|
-
**Promise\<void\>**
|
|
802
|
-
|
|
803
|
-
### Errors
|
|
804
|
-
|
|
805
|
-
| Error Type | Status Code | Content Type |
|
|
806
|
-
| ----------------- | ----------------- | ----------------- |
|
|
807
|
-
| errors.GleanError | 4XX, 5XX | \*/\* |
|