Skip to content

Commit fc4e93d

Browse files
authored
Client auto update (#841)
Co-authored-by: rbruggem <[email protected]>
1 parent a176951 commit fc4e93d

File tree

1 file changed

+0
-56
lines changed

1 file changed

+0
-56
lines changed

Diff for: src/services/AnalyticsService.ts

-56
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
/* eslint-disable */
1212
import type { AggregatedAnalyticsByProperty } from '../models/AggregatedAnalyticsByProperty.js'
1313
import type { AnalyticsMetrics } from '../models/AnalyticsMetrics.js'
14-
import type { AnalyticsShippingEstimates } from '../models/AnalyticsShippingEstimates.js'
1514
import type { CumulativeBundleAnalytics } from '../models/CumulativeBundleAnalytics.js'
1615
import type { EmissionCalculationMetrics } from '../models/EmissionCalculationMetrics.js'
1716

@@ -213,59 +212,4 @@ export abstract class AnalyticsService {
213212
},
214213
})
215214
}
216-
217-
/**
218-
* Get analytics for shipping estimates
219-
* @param accountId The account identifier the analytics belongs to.
220-
* @param data Request data
221-
* @param options Additional operation options
222-
* @returns AnalyticsShippingEstimates OK
223-
*/
224-
public getAnalyticsShippingEstimates(
225-
accountId: string,
226-
data?: {
227-
/**
228-
* The start date of the custom date range.
229-
* Defaults to 30 days ago if not specified.
230-
*/
231-
from?: string
232-
/**
233-
* The to (inclusive) date of the custom date range.
234-
* Defaults to the current date if not specified.
235-
*/
236-
through?: string
237-
/**
238-
* The time interval over which metrics should be aggregated.
239-
* Defaults to day if not specified.
240-
*/
241-
interval?: 'day' | 'month'
242-
},
243-
options?: {
244-
/**
245-
* Account Id to be used to perform the API call
246-
*/
247-
accountId?: string
248-
},
249-
): Promise<Result<SuccessResponse<AnalyticsShippingEstimates>, ApiError>> {
250-
return __request(this.client, this.config, options || {}, {
251-
method: 'GET',
252-
url: '/analytics/shipping/public/{account_id}',
253-
path: {
254-
account_id: accountId,
255-
},
256-
headers: {
257-
Accept: 'application/json',
258-
},
259-
query: {
260-
from: data?.from,
261-
through: data?.through,
262-
interval: data?.interval,
263-
},
264-
errors: {
265-
400: `The request is invalid. Parameters may be missing or are invalid`,
266-
401: `The API Key is missing or is invalid`,
267-
429: `Too many requests have been made in a short period of time`,
268-
},
269-
})
270-
}
271215
}

0 commit comments

Comments
 (0)