mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
fix field defs for both CreateStorageData object and CreateStorageDataAttributes object (#43890)
This commit is contained in:
@@ -286,8 +286,27 @@ projectsApi.getProject('', '', authClientTwoLegged, authToken);
|
||||
projectsApi.getProjectHub('', '', authClientTwoLegged, authToken);
|
||||
// $ExpectType Promise<ApiResponse>
|
||||
projectsApi.getProjectTopFolders('', '', authClientTwoLegged, authToken);
|
||||
|
||||
// $ExpectType Promise<ApiResponse>
|
||||
projectsApi.postStorage('', {}, authClientTwoLegged, authToken);
|
||||
projectsApi.postStorage('', {
|
||||
jsonapi: {
|
||||
version: '1.0'
|
||||
},
|
||||
data: {
|
||||
type: 'objects',
|
||||
attributes: {
|
||||
name: '{{Filename}}'
|
||||
},
|
||||
relationships: {
|
||||
target: {
|
||||
data: {
|
||||
type: 'folders',
|
||||
id: '{{FolderId}}'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, authClientTwoLegged, authToken);
|
||||
|
||||
// $ExpectType UserProfileApi
|
||||
const userProfileApi = new UserProfileApi();
|
||||
|
||||
3
types/forge-apis/index.d.ts
vendored
3
types/forge-apis/index.d.ts
vendored
@@ -723,7 +723,7 @@ export class HubsApi {
|
||||
|
||||
export interface CreateStorageDataAttributes {
|
||||
name: string;
|
||||
extension: BaseAttributesExtensionObject;
|
||||
extension?: BaseAttributesExtensionObject;
|
||||
}
|
||||
|
||||
export interface CreateItemDataRelationshipsTipData {
|
||||
@@ -1047,6 +1047,7 @@ export interface CreateStorageDataRelationships {
|
||||
}
|
||||
|
||||
export interface CreateStorageData {
|
||||
type: string;
|
||||
attributes?: CreateStorageDataAttributes;
|
||||
relationships?: CreateStorageDataRelationships;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user