Skip to content

Commit afdbbfd

Browse files
committed
fix(storage): normalize storage analytics naming
1 parent 5b11772 commit afdbbfd

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

packages/core/storage-js/src/StorageClient.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import StorageFileApi from './packages/StorageFileApi'
22
import StorageBucketApi from './packages/StorageBucketApi'
3-
import StorageAnalyticsApi from './packages/StorageAnalyticsApi'
3+
import StorageAnalyticsClient from './packages/StorageAnalyticsClient'
44
import { Fetch } from './lib/fetch'
55
import { StorageVectorsClient } from './lib/vectors'
66

@@ -71,7 +71,7 @@ export class StorageClient extends StorageBucketApi {
7171
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
7272
*
7373
* @category Analytics Buckets
74-
* @returns A StorageAnalyticsApi instance configured with the current storage settings.
74+
* @returns A StorageAnalyticsClient instance configured with the current storage settings.
7575
* @example
7676
* ```typescript
7777
* const client = createClient(url, key)
@@ -87,7 +87,7 @@ export class StorageClient extends StorageBucketApi {
8787
* await analytics.deleteBucket('old-analytics-bucket')
8888
* ```
8989
*/
90-
get analytics(): StorageAnalyticsApi {
91-
return new StorageAnalyticsApi(this.url + '/iceberg', this.headers, this.fetch)
90+
get analytics(): StorageAnalyticsClient {
91+
return new StorageAnalyticsClient(this.url + '/iceberg', this.headers, this.fetch)
9292
}
9393
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export { StorageClient } from './StorageClient'
22
export type { StorageClientOptions } from './StorageClient'
3-
export { default as StorageAnalyticsApi } from './packages/StorageAnalyticsApi'
3+
export { default as StorageAnalyticsClient } from './packages/StorageAnalyticsClient'
44
export * from './lib/types'
55
export * from './lib/errors'
66
export * from './lib/vectors'

packages/core/storage-js/src/packages/StorageAnalyticsApi.ts renamed to packages/core/storage-js/src/packages/StorageAnalyticsClient.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ import { resolveFetch } from '../lib/helpers'
55
import { AnalyticBucket } from '../lib/types'
66

77
/**
8-
* API class for managing Analytics Buckets using Iceberg tables
8+
* Client class for managing Analytics Buckets using Iceberg tables
99
* Provides methods for creating, listing, and deleting analytics buckets
1010
*/
11-
export default class StorageAnalyticsApi {
11+
export default class StorageAnalyticsClient {
1212
protected url: string
1313
protected headers: { [key: string]: string }
1414
protected fetch: Fetch
1515
protected shouldThrowOnError = false
1616

1717
/**
18-
* Creates a new StorageAnalyticsApi instance
18+
* Creates a new StorageAnalyticsClient instance
1919
*
2020
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
2121
*
@@ -26,7 +26,7 @@ export default class StorageAnalyticsApi {
2626
*
2727
* @example
2828
* ```typescript
29-
* const client = new StorageAnalyticsApi(url, headers)
29+
* const client = new StorageAnalyticsClient(url, headers)
3030
* ```
3131
*/
3232
constructor(url: string, headers: { [key: string]: string } = {}, fetch?: Fetch) {

0 commit comments

Comments
 (0)