File tree Expand file tree Collapse file tree 3 files changed +0
-21
lines changed Expand file tree Collapse file tree 3 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,6 @@ Methods:
9393- <code title =" get /files " >client.files.<a href =" ./src/resources/files.ts " >list</a >({ ...params }) -> FileObjectsPage</code >
9494- <code title =" delete /files/{file_id} " >client.files.<a href =" ./src/resources/files.ts " >delete</a >(fileID) -> FileDeleted</code >
9595- <code title =" get /files/{file_id}/content " >client.files.<a href =" ./src/resources/files.ts " >content</a >(fileID) -> Response</code >
96- - <code title =" get /files/{file_id}/content " >client.files.<a href =" ./src/resources/files.ts " >retrieveContent</a >(fileID) -> string</code >
9796- <code >client.files.<a href =" ./src/resources/files.ts " >waitForProcessing</a >(id, { pollInterval = 5000, maxWait = 30 _ 60 _ 1000 }) -> Promise< ; FileObject> ; </code >
9897
9998# Images
Original file line number Diff line number Diff line change @@ -73,15 +73,6 @@ export class Files extends APIResource {
7373 } ) ;
7474 }
7575
76- /**
77- * Returns the contents of the specified file.
78- *
79- * @deprecated The `.content()` method should be used instead
80- */
81- retrieveContent ( fileID : string , options ?: RequestOptions ) : APIPromise < string > {
82- return this . _client . get ( `/files/${ fileID } /content` , options ) ;
83- }
84-
8576 /**
8677 * Waits for the given file to be processed, default timeout is 30 mins.
8778 */
Original file line number Diff line number Diff line change @@ -71,15 +71,4 @@ describe('resource files', () => {
7171 expect ( dataAndResponse . data ) . toBe ( response ) ;
7272 expect ( dataAndResponse . response ) . toBe ( rawResponse ) ;
7373 } ) ;
74-
75- test ( 'retrieveContent' , async ( ) => {
76- const responsePromise = client . files . retrieveContent ( 'file_id' ) ;
77- const rawResponse = await responsePromise . asResponse ( ) ;
78- expect ( rawResponse ) . toBeInstanceOf ( Response ) ;
79- const response = await responsePromise ;
80- expect ( response ) . not . toBeInstanceOf ( Response ) ;
81- const dataAndResponse = await responsePromise . withResponse ( ) ;
82- expect ( dataAndResponse . data ) . toBe ( response ) ;
83- expect ( dataAndResponse . response ) . toBe ( rawResponse ) ;
84- } ) ;
8574} ) ;
You can’t perform that action at this time.
0 commit comments