arky-sdk 0.7.69 → 0.7.71

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/index.d.cts CHANGED
@@ -21,8 +21,6 @@ interface HttpClientConfig {
21
21
  }
22
22
 
23
23
  interface AnalyticsSummary {
24
- revenue: number;
25
- revenueChange: number;
26
24
  orders: number;
27
25
  ordersChange: number;
28
26
  bookings: number;
@@ -33,33 +31,6 @@ interface AnalyticsSummary {
33
31
  formSubmissionsChange: number;
34
32
  reactions: number;
35
33
  reactionsChange: number;
36
- activeProducts: number;
37
- activeServices: number;
38
- activeProviders: number;
39
- activeNodes: number;
40
- activeForms: number;
41
- activeTaxonomies: number;
42
- activeEmailTemplates: number;
43
- totalCustomers: number;
44
- totalMedia: number;
45
- }
46
- interface TimeSeriesPoint {
47
- date: string;
48
- value: number;
49
- }
50
- interface TimeSeriesResponse {
51
- period: {
52
- start: string;
53
- end: string;
54
- };
55
- interval: string;
56
- series: Record<string, TimeSeriesPoint[]>;
57
- }
58
- interface TopEntity {
59
- entityId: string;
60
- label: string;
61
- count: number;
62
- revenue: number;
63
34
  }
64
35
  interface StatusBreakdown {
65
36
  status: string;
@@ -194,7 +165,7 @@ declare global {
194
165
  }
195
166
  declare function track(eventName: string, params?: Record<string, any>): void;
196
167
 
197
- declare const SDK_VERSION = "0.7.67";
168
+ declare const SDK_VERSION = "0.7.71";
198
169
  declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
199
170
  interface ApiConfig {
200
171
  httpClient: any;
@@ -473,25 +444,10 @@ declare function createAdmin(config: HttpClientConfig & {
473
444
  analytics: {
474
445
  track: typeof track;
475
446
  getSummary: (params?: {
476
- market?: string;
477
447
  period?: string;
478
448
  }, options?: RequestOptions) => Promise<AnalyticsSummary>;
479
- getSeries: (params: {
480
- metrics: string[];
481
- market?: string;
482
- period?: string;
483
- interval?: string;
484
- }, options?: RequestOptions) => Promise<TimeSeriesResponse>;
485
- getTopEntities: (params: {
486
- entity: string;
487
- market?: string;
488
- period?: string;
489
- limit?: number;
490
- }, options?: RequestOptions) => Promise<TopEntity[]>;
491
449
  getStatusBreakdown: (params: {
492
450
  entity: string;
493
- market?: string;
494
- period?: string;
495
451
  }, options?: RequestOptions) => Promise<StatusBreakdown[]>;
496
452
  };
497
453
  setBusinessId: (businessId: string) => void;
@@ -759,4 +715,4 @@ declare function createStorefront(config: HttpClientConfig & {
759
715
  };
760
716
  }>;
761
717
 
762
- export { type AnalyticsSummary, type ApiConfig, AvailabilityResponse, Block, CreateAgentParams, CreateLocationParams, type CreateReactionParams, DEFAULT_REACTION_KINDS, DeleteLocationParams, type EngagementSummary, type EngagementSummaryParams, type FindReactionsParams, GetAgentParams, GetAgentsParams, GetAvailabilityParams, type GetCountriesResponse, type GetReactionParams, GetShippingRatesParams, type HttpClientConfig, Location, type LocationCountry, type LocationState, Market, type ModerateReactionParams, REACTION_KIND_REGEX, type Reaction, type ReactionStatus, type ReactionTarget, type ReactionTargetType, SDK_VERSION, SUPPORTED_FRAMEWORKS, ShipParams, ShipResult, ShippingRate, Slot, type StatusBreakdown, type TimeSeriesPoint, type TimeSeriesResponse, type TopEntity, UpdateAgentParams, UpdateLocationParams, type UpdateReactionParams, computeAverageStars, createAdmin, createStorefront, isValidReactionKind };
718
+ export { type AnalyticsSummary, type ApiConfig, AvailabilityResponse, Block, CreateAgentParams, CreateLocationParams, type CreateReactionParams, DEFAULT_REACTION_KINDS, DeleteLocationParams, type EngagementSummary, type EngagementSummaryParams, type FindReactionsParams, GetAgentParams, GetAgentsParams, GetAvailabilityParams, type GetCountriesResponse, type GetReactionParams, GetShippingRatesParams, type HttpClientConfig, Location, type LocationCountry, type LocationState, Market, type ModerateReactionParams, REACTION_KIND_REGEX, type Reaction, type ReactionStatus, type ReactionTarget, type ReactionTargetType, SDK_VERSION, SUPPORTED_FRAMEWORKS, ShipParams, ShipResult, ShippingRate, Slot, type StatusBreakdown, UpdateAgentParams, UpdateLocationParams, type UpdateReactionParams, computeAverageStars, createAdmin, createStorefront, isValidReactionKind };
package/dist/index.d.ts CHANGED
@@ -21,8 +21,6 @@ interface HttpClientConfig {
21
21
  }
22
22
 
23
23
  interface AnalyticsSummary {
24
- revenue: number;
25
- revenueChange: number;
26
24
  orders: number;
27
25
  ordersChange: number;
28
26
  bookings: number;
@@ -33,33 +31,6 @@ interface AnalyticsSummary {
33
31
  formSubmissionsChange: number;
34
32
  reactions: number;
35
33
  reactionsChange: number;
36
- activeProducts: number;
37
- activeServices: number;
38
- activeProviders: number;
39
- activeNodes: number;
40
- activeForms: number;
41
- activeTaxonomies: number;
42
- activeEmailTemplates: number;
43
- totalCustomers: number;
44
- totalMedia: number;
45
- }
46
- interface TimeSeriesPoint {
47
- date: string;
48
- value: number;
49
- }
50
- interface TimeSeriesResponse {
51
- period: {
52
- start: string;
53
- end: string;
54
- };
55
- interval: string;
56
- series: Record<string, TimeSeriesPoint[]>;
57
- }
58
- interface TopEntity {
59
- entityId: string;
60
- label: string;
61
- count: number;
62
- revenue: number;
63
34
  }
64
35
  interface StatusBreakdown {
65
36
  status: string;
@@ -194,7 +165,7 @@ declare global {
194
165
  }
195
166
  declare function track(eventName: string, params?: Record<string, any>): void;
196
167
 
197
- declare const SDK_VERSION = "0.7.67";
168
+ declare const SDK_VERSION = "0.7.71";
198
169
  declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
199
170
  interface ApiConfig {
200
171
  httpClient: any;
@@ -473,25 +444,10 @@ declare function createAdmin(config: HttpClientConfig & {
473
444
  analytics: {
474
445
  track: typeof track;
475
446
  getSummary: (params?: {
476
- market?: string;
477
447
  period?: string;
478
448
  }, options?: RequestOptions) => Promise<AnalyticsSummary>;
479
- getSeries: (params: {
480
- metrics: string[];
481
- market?: string;
482
- period?: string;
483
- interval?: string;
484
- }, options?: RequestOptions) => Promise<TimeSeriesResponse>;
485
- getTopEntities: (params: {
486
- entity: string;
487
- market?: string;
488
- period?: string;
489
- limit?: number;
490
- }, options?: RequestOptions) => Promise<TopEntity[]>;
491
449
  getStatusBreakdown: (params: {
492
450
  entity: string;
493
- market?: string;
494
- period?: string;
495
451
  }, options?: RequestOptions) => Promise<StatusBreakdown[]>;
496
452
  };
497
453
  setBusinessId: (businessId: string) => void;
@@ -759,4 +715,4 @@ declare function createStorefront(config: HttpClientConfig & {
759
715
  };
760
716
  }>;
761
717
 
762
- export { type AnalyticsSummary, type ApiConfig, AvailabilityResponse, Block, CreateAgentParams, CreateLocationParams, type CreateReactionParams, DEFAULT_REACTION_KINDS, DeleteLocationParams, type EngagementSummary, type EngagementSummaryParams, type FindReactionsParams, GetAgentParams, GetAgentsParams, GetAvailabilityParams, type GetCountriesResponse, type GetReactionParams, GetShippingRatesParams, type HttpClientConfig, Location, type LocationCountry, type LocationState, Market, type ModerateReactionParams, REACTION_KIND_REGEX, type Reaction, type ReactionStatus, type ReactionTarget, type ReactionTargetType, SDK_VERSION, SUPPORTED_FRAMEWORKS, ShipParams, ShipResult, ShippingRate, Slot, type StatusBreakdown, type TimeSeriesPoint, type TimeSeriesResponse, type TopEntity, UpdateAgentParams, UpdateLocationParams, type UpdateReactionParams, computeAverageStars, createAdmin, createStorefront, isValidReactionKind };
718
+ export { type AnalyticsSummary, type ApiConfig, AvailabilityResponse, Block, CreateAgentParams, CreateLocationParams, type CreateReactionParams, DEFAULT_REACTION_KINDS, DeleteLocationParams, type EngagementSummary, type EngagementSummaryParams, type FindReactionsParams, GetAgentParams, GetAgentsParams, GetAvailabilityParams, type GetCountriesResponse, type GetReactionParams, GetShippingRatesParams, type HttpClientConfig, Location, type LocationCountry, type LocationState, Market, type ModerateReactionParams, REACTION_KIND_REGEX, type Reaction, type ReactionStatus, type ReactionTarget, type ReactionTargetType, SDK_VERSION, SUPPORTED_FRAMEWORKS, ShipParams, ShipResult, ShippingRate, Slot, type StatusBreakdown, UpdateAgentParams, UpdateLocationParams, type UpdateReactionParams, computeAverageStars, createAdmin, createStorefront, isValidReactionKind };
package/dist/index.js CHANGED
@@ -1913,25 +1913,6 @@ var createAnalyticsApi = (apiConfig) => {
1913
1913
  }
1914
1914
  );
1915
1915
  },
1916
- async getSeries(params, options) {
1917
- const { metrics, ...rest } = params;
1918
- return apiConfig.httpClient.get(
1919
- `/v1/businesses/${apiConfig.businessId}/analytics/series`,
1920
- {
1921
- ...options,
1922
- params: { ...rest, metrics: metrics.join(",") }
1923
- }
1924
- );
1925
- },
1926
- async getTopEntities(params, options) {
1927
- return apiConfig.httpClient.get(
1928
- `/v1/businesses/${apiConfig.businessId}/analytics/top`,
1929
- {
1930
- ...options,
1931
- params
1932
- }
1933
- );
1934
- },
1935
1916
  async getStatusBreakdown(params, options) {
1936
1917
  return apiConfig.httpClient.get(
1937
1918
  `/v1/businesses/${apiConfig.businessId}/analytics/status`,
@@ -2790,7 +2771,7 @@ function getFirstAvailableFCId(variant, quantity = 1) {
2790
2771
  }
2791
2772
 
2792
2773
  // src/index.ts
2793
- var SDK_VERSION = "0.7.67";
2774
+ var SDK_VERSION = "0.7.71";
2794
2775
  var SUPPORTED_FRAMEWORKS = [
2795
2776
  "astro",
2796
2777
  "react",
@@ -3030,8 +3011,6 @@ async function createAdmin(config) {
3030
3011
  analytics: {
3031
3012
  track,
3032
3013
  getSummary: analyticsApi.getSummary,
3033
- getSeries: analyticsApi.getSeries,
3034
- getTopEntities: analyticsApi.getTopEntities,
3035
3014
  getStatusBreakdown: analyticsApi.getStatusBreakdown
3036
3015
  },
3037
3016
  setBusinessId: (businessId) => {