arky-sdk 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/admin.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- export { P as AdminSession, M as ApiConfig, A as AuthStateListener, K as AuthStorage, U as CreateAdminConfig, J as HttpClientConfig, W as createAdmin } from './admin-DCe3PEOB.cjs';
1
+ export { P as AdminSession, M as ApiConfig, A as AuthStateListener, K as AuthStorage, U as CreateAdminConfig, J as HttpClientConfig, W as createAdmin } from './admin-CfHen7c5.cjs';
2
2
  import './types.cjs';
3
3
  import './index-C5gikdBg.cjs';
package/dist/admin.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { P as AdminSession, M as ApiConfig, A as AuthStateListener, K as AuthStorage, U as CreateAdminConfig, J as HttpClientConfig, W as createAdmin } from './admin-CEVBErl_.js';
1
+ export { P as AdminSession, M as ApiConfig, A as AuthStateListener, K as AuthStorage, U as CreateAdminConfig, J as HttpClientConfig, W as createAdmin } from './admin-ru7pX5bd.js';
2
2
  import './types.js';
3
3
  import './index-MFMjlIfS.js';
package/dist/admin.js CHANGED
@@ -1882,20 +1882,13 @@ var createTaxonomyApi = (apiConfig) => {
1882
1882
  // src/api/analytics.ts
1883
1883
  var createAnalyticsApi = (apiConfig) => {
1884
1884
  return {
1885
- async query(spec, options) {
1885
+ async get(request, options) {
1886
1886
  const store_id = options?.store_id || apiConfig.storeId;
1887
1887
  return apiConfig.httpClient.post(
1888
- `/v1/stores/${store_id}/analytics/query`,
1889
- spec,
1888
+ `/v1/stores/${store_id}/analytics`,
1889
+ request,
1890
1890
  options
1891
1891
  );
1892
- },
1893
- async activityFeed(query = {}, options) {
1894
- const store_id = options?.store_id || apiConfig.storeId;
1895
- return apiConfig.httpClient.get(
1896
- `/v1/stores/${store_id}/analytics/activity-feed`,
1897
- { ...options, params: query }
1898
- );
1899
1892
  }
1900
1893
  };
1901
1894
  };
@@ -2432,10 +2425,7 @@ function createAdmin(config) {
2432
2425
  getExecution: workflowApi.getWorkflowExecution
2433
2426
  }
2434
2427
  },
2435
- analytics: {
2436
- query: analyticsApi.query,
2437
- activityFeed: analyticsApi.activityFeed
2438
- },
2428
+ analytics: analyticsApi,
2439
2429
  setStoreId: (storeId) => {
2440
2430
  apiConfig.storeId = storeId;
2441
2431
  },