-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug Typescript - Missing import of discriminator function #1327
Comments
Hi @nikithauc As you can see in kiota samples, the imports are present, it wouldn't build otherwise. |
-d https://raw.githubusercontent.com/microsoftgraph/msgraph-metadata/master/openapi/v1.0/openapi.yaml --language typescript -o src -c GraphServiceClient -n MicrosoftGraph The problem is in the full Graph v1 generation. When I run the above command, I encounter the error where imports are missing in some files while are present in some. |
packages/serviceLibrary/src/code/users/item/calendarGroups/item/calendars/item/events/item/attachments/createUploadSession/createUploadSessionRequestBuilder.ts:57:75 - error TS2304: Cannot find name 'createUploadSessionFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/calendarGroups/item/calendars/item/events/item/instances/item/attachments/createUploadSession/createUploadSessionRequestBuilder.ts:57:75 - error TS2304: Cannot find name 'createUploadSessionFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/calendars/item/calendarView/item/attachments/createUploadSession/createUploadSessionRequestBuilder.ts:57:75 - error TS2304: Cannot find name 'createUploadSessionFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/calendars/item/calendarView/item/instances/item/attachments/createUploadSession/createUploadSessionRequestBuilder.ts:57:75 - error TS2304: Cannot find name 'createUploadSessionFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/calendars/item/events/item/attachments/createUploadSession/createUploadSessionRequestBuilder.ts:57:75 - error TS2304: Cannot find name 'createUploadSessionFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/calendars/item/events/item/instances/item/attachments/createUploadSession/createUploadSessionRequestBuilder.ts:57:75 - error TS2304: Cannot find name 'createUploadSessionFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/calendarView/item/attachments/createUploadSession/createUploadSessionRequestBuilder.ts:57:75 - error TS2304: Cannot find name 'createUploadSessionFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/calendarView/item/instances/item/attachments/createUploadSession/createUploadSessionRequestBuilder.ts:57:75 - error TS2304: Cannot find name 'createUploadSessionFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/drives/item/list/contentTypes/addCopy/addCopyRequestBuilder.ts:57:73 - error TS2304: Cannot find name 'createContentTypeFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createContentTypeFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/events/item/attachments/createUploadSession/createUploadSessionRequestBuilder.ts:57:75 - error TS2304: Cannot find name 'createUploadSessionFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/events/item/instances/item/attachments/createUploadSession/createUploadSessionRequestBuilder.ts:57:75 - error TS2304: Cannot find name 'createUploadSessionFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/findMeetingTimes/findMeetingTimesRequestBuilder.ts:57:90 - error TS2304: Cannot find name 'createMeetingTimeSuggestionsResultFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createMeetingTimeSuggestionsResultFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/joinedTeams/item/channels/item/provisionEmail/provisionEmailRequestBuilder.ts:51:89 - error TS2304: Cannot find name 'createProvisionChannelEmailResultFromDiscriminatorValue'. 51 return this.requestAdapter?.sendAsync(requestInfo, createProvisionChannelEmailResultFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/joinedTeams/item/primaryChannel/provisionEmail/provisionEmailRequestBuilder.ts:51:89 - error TS2304: Cannot find name 'createProvisionChannelEmailResultFromDiscriminatorValue'. 51 return this.requestAdapter?.sendAsync(requestInfo, createProvisionChannelEmailResultFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/mailFolders/item/childFolders/item/copy/copyRequestBuilder.ts:57:72 - error TS2304: Cannot find name 'createMailFolderFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createMailFolderFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/mailFolders/item/childFolders/item/messages/item/attachments/createUploadSession/createUploadSessionRequestBuilder.ts:57:75 - error TS2304: Cannot find name 'createUploadSessionFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/mailFolders/item/childFolders/item/messages/item/copy/copyRequestBuilder.ts:57:69 - error TS2304: Cannot find name 'createMessageFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createMessageFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/mailFolders/item/childFolders/item/messages/item/createForward/createForwardRequestBuilder.ts:57:69 - error TS2304: Cannot find name 'createMessageFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createMessageFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/mailFolders/item/childFolders/item/messages/item/createReply/createReplyRequestBuilder.ts:57:69 - error TS2304: Cannot find name 'createMessageFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createMessageFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/mailFolders/item/childFolders/item/messages/item/createReplyAll/createReplyAllRequestBuilder.ts:57:69 - error TS2304: Cannot find name 'createMessageFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createMessageFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/mailFolders/item/childFolders/item/messages/item/move/moveRequestBuilder.ts:57:69 - error TS2304: Cannot find name 'createMessageFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createMessageFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/mailFolders/item/childFolders/item/move/moveRequestBuilder.ts:57:72 - error TS2304: Cannot find name 'createMailFolderFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createMailFolderFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/mailFolders/item/copy/copyRequestBuilder.ts:57:72 - error TS2304: Cannot find name 'createMailFolderFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createMailFolderFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/mailFolders/item/messages/item/attachments/createUploadSession/createUploadSessionRequestBuilder.ts:57:75 - error TS2304: Cannot find name 'createUploadSessionFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/mailFolders/item/messages/item/copy/copyRequestBuilder.ts:57:69 - error TS2304: Cannot find name 'createMessageFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createMessageFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/mailFolders/item/messages/item/createForward/createForwardRequestBuilder.ts:57:69 - error TS2304: Cannot find name 'createMessageFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createMessageFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/mailFolders/item/messages/item/createReply/createReplyRequestBuilder.ts:57:69 - error TS2304: Cannot find name 'createMessageFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createMessageFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/mailFolders/item/messages/item/createReplyAll/createReplyAllRequestBuilder.ts:57:69 - error TS2304: Cannot find name 'createMessageFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createMessageFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/mailFolders/item/messages/item/move/moveRequestBuilder.ts:57:69 - error TS2304: Cannot find name 'createMessageFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createMessageFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/mailFolders/item/move/moveRequestBuilder.ts:57:72 - error TS2304: Cannot find name 'createMailFolderFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createMailFolderFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/messages/item/attachments/createUploadSession/createUploadSessionRequestBuilder.ts:57:75 - error TS2304: Cannot find name 'createUploadSessionFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/messages/item/copy/copyRequestBuilder.ts:57:69 - error TS2304: Cannot find name 'createMessageFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createMessageFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/messages/item/createForward/createForwardRequestBuilder.ts:57:69 - error TS2304: Cannot find name 'createMessageFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createMessageFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/messages/item/createReply/createReplyRequestBuilder.ts:57:69 - error TS2304: Cannot find name 'createMessageFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createMessageFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/messages/item/createReplyAll/createReplyAllRequestBuilder.ts:57:69 - error TS2304: Cannot find name 'createMessageFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createMessageFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/messages/item/move/moveRequestBuilder.ts:57:69 - error TS2304: Cannot find name 'createMessageFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createMessageFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/onenote/notebooks/item/copyNotebook/copyNotebookRequestBuilder.ts:57:78 - error TS2304: Cannot find name 'createOnenoteOperationFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookRequestBuilder.ts:57:78 - error TS2304: Cannot find name 'createOnenoteOperationFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/copyToSectionGroup/copyToSectionGroupRequestBuilder.ts:57:78 - error TS2304: Cannot find name 'createOnenoteOperationFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionRequestBuilder.ts:57:78 - error TS2304: Cannot find name 'createOnenoteOperationFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/onenote/notebooks/item/sectionGroups/item/sections/item/pages/item/preview/previewRequestBuilder.ts:51:80 - error TS2304: Cannot find name 'createOnenotePagePreviewFromDiscriminatorValue'. 51 return this.requestAdapter?.sendAsync(requestInfo, createOnenotePagePreviewFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/onenote/notebooks/item/sections/item/copyToNotebook/copyToNotebookRequestBuilder.ts:57:78 - error TS2304: Cannot find name 'createOnenoteOperationFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/onenote/notebooks/item/sections/item/copyToSectionGroup/copyToSectionGroupRequestBuilder.ts:57:78 - error TS2304: Cannot find name 'createOnenoteOperationFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/onenote/notebooks/item/sections/item/pages/item/copyToSection/copyToSectionRequestBuilder.ts:57:78 - error TS2304: Cannot find name 'createOnenoteOperationFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/onenote/notebooks/item/sections/item/pages/item/preview/previewRequestBuilder.ts:51:80 - error TS2304: Cannot find name 'createOnenotePagePreviewFromDiscriminatorValue'. 51 return this.requestAdapter?.sendAsync(requestInfo, createOnenotePagePreviewFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/onenote/notebooks/getNotebookFromWebUrl/getNotebookFromWebUrlRequestBuilder.ts:57:79 - error TS2304: Cannot find name 'createCopyNotebookModelFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createCopyNotebookModelFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/onenote/pages/item/copyToSection/copyToSectionRequestBuilder.ts:57:78 - error TS2304: Cannot find name 'createOnenoteOperationFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/onenote/pages/item/preview/previewRequestBuilder.ts:51:80 - error TS2304: Cannot find name 'createOnenotePagePreviewFromDiscriminatorValue'. 51 return this.requestAdapter?.sendAsync(requestInfo, createOnenotePagePreviewFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/onenote/sectionGroups/item/sections/item/copyToNotebook/copyToNotebookRequestBuilder.ts:57:78 - error TS2304: Cannot find name 'createOnenoteOperationFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/onenote/sectionGroups/item/sections/item/copyToSectionGroup/copyToSectionGroupRequestBuilder.ts:57:78 - error TS2304: Cannot find name 'createOnenoteOperationFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/onenote/sectionGroups/item/sections/item/pages/item/copyToSection/copyToSectionRequestBuilder.ts:57:78 - error TS2304: Cannot find name 'createOnenoteOperationFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/onenote/sectionGroups/item/sections/item/pages/item/preview/previewRequestBuilder.ts:51:80 - error TS2304: Cannot find name 'createOnenotePagePreviewFromDiscriminatorValue'. 51 return this.requestAdapter?.sendAsync(requestInfo, createOnenotePagePreviewFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/onenote/sections/item/copyToNotebook/copyToNotebookRequestBuilder.ts:57:78 - error TS2304: Cannot find name 'createOnenoteOperationFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/onenote/sections/item/copyToSectionGroup/copyToSectionGroupRequestBuilder.ts:57:78 - error TS2304: Cannot find name 'createOnenoteOperationFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/onenote/sections/item/pages/item/copyToSection/copyToSectionRequestBuilder.ts:57:78 - error TS2304: Cannot find name 'createOnenoteOperationFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createOnenoteOperationFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/onenote/sections/item/pages/item/preview/previewRequestBuilder.ts:51:80 - error TS2304: Cannot find name 'createOnenotePagePreviewFromDiscriminatorValue'. 51 return this.requestAdapter?.sendAsync(requestInfo, createOnenotePagePreviewFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/onlineMeetings/createOrGet/createOrGetRequestBuilder.ts:57:75 - error TS2304: Cannot find name 'createOnlineMeetingFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createOnlineMeetingFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/reprocessLicenseAssignment/reprocessLicenseAssignmentRequestBuilder.ts:51:66 - error TS2304: Cannot find name 'createUserFromDiscriminatorValue'. 51 return this.requestAdapter?.sendAsync(requestInfo, createUserFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/users/item/restore/restoreRequestBuilder.ts:51:77 - error TS2304: Cannot find name 'createDirectoryObjectFromDiscriminatorValue'. 51 return this.requestAdapter?.sendAsync(requestInfo, createDirectoryObjectFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/workbooks/item/copy/copyRequestBuilder.ts:57:71 - error TS2304: Cannot find name 'createDriveItemFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createDriveItemFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/workbooks/item/createLink/createLinkRequestBuilder.ts:57:72 - error TS2304: Cannot find name 'createPermissionFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createPermissionFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/workbooks/item/createUploadSession/createUploadSessionRequestBuilder.ts:57:75 - error TS2304: Cannot find name 'createUploadSessionFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createUploadSessionFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/workbooks/item/follow/followRequestBuilder.ts:51:71 - error TS2304: Cannot find name 'createDriveItemFromDiscriminatorValue'. 51 return this.requestAdapter?.sendAsync(requestInfo, createDriveItemFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/workbooks/item/preview/previewRequestBuilder.ts:57:77 - error TS2304: Cannot find name 'createItemPreviewInfoFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createItemPreviewInfoFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); packages/serviceLibrary/src/code/workbooks/item/restore/restoreRequestBuilder.ts:57:71 - error TS2304: Cannot find name 'createDriveItemFromDiscriminatorValue'. 57 return this.requestAdapter?.sendAsync(requestInfo, createDriveItemFromDiscriminatorValue, responseHandler, undefined) ?? Promise.reject(new Error('http core is null')); |
ok so the issue is the factory methods are not imported for request executor methods. This should be an easy fix, do you want to try it? |
The problem is as follows:
In the above snippet, the class The problem is the following condition goes false for some
|
thanks for the additional details, this looks to be two fold:
I think the next step would be to generate the typescript SDK again with this PR and see whether it improves the situation, otherwise we'll need for 990 to be fixed as well. |
fixed by #1396 |
Generate for the Graph v1 api and the imports of
create---FromDiscriminatorValue
missing in some files.The text was updated successfully, but these errors were encountered: