mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
fix field defs for both CreateStorageData object and CreateStorageDataAttributes object (#43890)
This commit is contained in:
parent
8987bbd357
commit
1186f63e5f
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user