We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Document interface doesn't have instanceId as its members while we can get a response including instanceId.
Document
instanceId
To Reproduce Execute the following code:
const res = await client.documents.list({ limit: 1000, }); return res.items.filter((item) => item.instanceId);
You will see an TypeScript error Property 'instanceId' does not exist on type 'Document'.
Property 'instanceId' does not exist on type 'Document'.
However, the response from document.list includes a document item linked to a CDM instance like this:
document.list
"items": [ { "id": 81749123269072, "sourceFile": { "name": "改定通知表.pdf", "directory": "D:\\Box\\【千葉事業所】ポータル掲載\\千葉事業所規定基準類\\8.共同要領\\スタッフ及び保全部門\\40.設備建設業務要領(工務)", "hash": "475e72619923a23de0e731e38f0b65e5e7da743511d99d95e5933c77482bcfd1", "size": 119424 }, "instanceId": { "space": "File_Search", "externalId": "377471e4-c9cf-4a3b-9e35-49981c8b576a" }, "title": "保安検査方法", "author": "高圧ガス保安協会", "producer": "Microsoft® Word for Microsoft 365", "mimeType": "application/pdf", "extension": "pdf", "pageCount": 1, "type": "PDF", "language": "ja", "truncatedContent": "\n(1/1) \n\n付表-2 \n\n改 定 通 知 表 (2025年 01月 07日改定) \n\n要領名称:千共同領-1-2 設備建設業務要領 \n番\n\n号 \n頁 改 定 前 改 定 後 改 定 理 由 \n\n1 4.業務の推進 \n\n(3)設計、製作、施工管理 \n\nコ.設備担当課は、設備の新増設および", "createdTime": 1736813303000, "modifiedTime": 1736813303000, "lastIndexedTime": 1738667625217 }, ... ]
Expected behavior I'd suggest adding instanceId to Document interface. https://github.com/cognitedata/cognite-sdk-js/blob/c278e56ae3/packages/stable/src/api/documents/types.gen.ts#L21
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Document
interface doesn't have instanceId as its members while we can get a response includinginstanceId
.To Reproduce
Execute the following code:
You will see an TypeScript error
![Image](https://private-user-images.githubusercontent.com/86089901/410722822-2842fb8d-ef19-4468-9db5-8475f0b3edf6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NTk3MDIsIm5iZiI6MTczODk1OTQwMiwicGF0aCI6Ii84NjA4OTkwMS80MTA3MjI4MjItMjg0MmZiOGQtZWYxOS00NDY4LTlkYjUtODQ3NWYwYjNlZGY2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDIwMTY0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ3ZGNiMWRmZDk3NTY3OWE1MmY2NzdhMDFiMzc0YTRjMmYzM2ZhZjI1MDE2ODlhMDEzMmExMWViOTZhMWVhNTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.5lH_pLOl0XsHNPv2wntjxOgiRNcvY6QBjyhPE9iEWsA)
Property 'instanceId' does not exist on type 'Document'.
However, the response from
document.list
includes a document item linked to a CDM instance like this:Expected behavior
I'd suggest adding instanceId to
Document
interface.https://github.com/cognitedata/cognite-sdk-js/blob/c278e56ae3/packages/stable/src/api/documents/types.gen.ts#L21
The text was updated successfully, but these errors were encountered: