arky-sdk 0.7.76 → 0.7.78
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.cjs +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -56,6 +56,9 @@ interface Activity {
|
|
|
56
56
|
payload: Record<string, any>;
|
|
57
57
|
createdAt: number;
|
|
58
58
|
countryCode?: string | null;
|
|
59
|
+
city?: string | null;
|
|
60
|
+
region?: string | null;
|
|
61
|
+
timezone?: string | null;
|
|
59
62
|
deviceType?: string | null;
|
|
60
63
|
browser?: string | null;
|
|
61
64
|
os?: string | null;
|
|
@@ -81,6 +84,15 @@ interface ActivityTypeInfo {
|
|
|
81
84
|
firstSeenAt: number;
|
|
82
85
|
lastSeenAt: number;
|
|
83
86
|
}
|
|
87
|
+
interface CountryBreakdownItem {
|
|
88
|
+
countryCode: string;
|
|
89
|
+
eventCount: number;
|
|
90
|
+
distinctCustomers: number;
|
|
91
|
+
}
|
|
92
|
+
interface CountryBreakdownParams {
|
|
93
|
+
businessId?: string;
|
|
94
|
+
windowSeconds?: number;
|
|
95
|
+
}
|
|
84
96
|
|
|
85
97
|
interface LocationState {
|
|
86
98
|
code: string;
|
|
@@ -379,6 +391,10 @@ declare function createAdmin(config: HttpClientConfig & {
|
|
|
379
391
|
items: ActivityTypeInfo[];
|
|
380
392
|
uniqueCount: number;
|
|
381
393
|
}>;
|
|
394
|
+
countryBreakdown(params?: CountryBreakdownParams, options?: RequestOptions): Promise<{
|
|
395
|
+
items: CountryBreakdownItem[];
|
|
396
|
+
unknownCount: number;
|
|
397
|
+
}>;
|
|
382
398
|
};
|
|
383
399
|
};
|
|
384
400
|
automation: {
|
package/dist/index.d.ts
CHANGED
|
@@ -56,6 +56,9 @@ interface Activity {
|
|
|
56
56
|
payload: Record<string, any>;
|
|
57
57
|
createdAt: number;
|
|
58
58
|
countryCode?: string | null;
|
|
59
|
+
city?: string | null;
|
|
60
|
+
region?: string | null;
|
|
61
|
+
timezone?: string | null;
|
|
59
62
|
deviceType?: string | null;
|
|
60
63
|
browser?: string | null;
|
|
61
64
|
os?: string | null;
|
|
@@ -81,6 +84,15 @@ interface ActivityTypeInfo {
|
|
|
81
84
|
firstSeenAt: number;
|
|
82
85
|
lastSeenAt: number;
|
|
83
86
|
}
|
|
87
|
+
interface CountryBreakdownItem {
|
|
88
|
+
countryCode: string;
|
|
89
|
+
eventCount: number;
|
|
90
|
+
distinctCustomers: number;
|
|
91
|
+
}
|
|
92
|
+
interface CountryBreakdownParams {
|
|
93
|
+
businessId?: string;
|
|
94
|
+
windowSeconds?: number;
|
|
95
|
+
}
|
|
84
96
|
|
|
85
97
|
interface LocationState {
|
|
86
98
|
code: string;
|
|
@@ -379,6 +391,10 @@ declare function createAdmin(config: HttpClientConfig & {
|
|
|
379
391
|
items: ActivityTypeInfo[];
|
|
380
392
|
uniqueCount: number;
|
|
381
393
|
}>;
|
|
394
|
+
countryBreakdown(params?: CountryBreakdownParams, options?: RequestOptions): Promise<{
|
|
395
|
+
items: CountryBreakdownItem[];
|
|
396
|
+
unknownCount: number;
|
|
397
|
+
}>;
|
|
382
398
|
};
|
|
383
399
|
};
|
|
384
400
|
automation: {
|
package/dist/index.js
CHANGED
|
@@ -1801,6 +1801,15 @@ var createActivityAdminApi = (apiConfig) => ({
|
|
|
1801
1801
|
`/v1/businesses/${businessId}/activities/types`,
|
|
1802
1802
|
options
|
|
1803
1803
|
);
|
|
1804
|
+
},
|
|
1805
|
+
async countryBreakdown(params, options) {
|
|
1806
|
+
const businessId = params?.businessId || apiConfig.businessId;
|
|
1807
|
+
const queryParams = {};
|
|
1808
|
+
if (params?.windowSeconds !== void 0) queryParams.windowSeconds = params.windowSeconds;
|
|
1809
|
+
return apiConfig.httpClient.get(
|
|
1810
|
+
`/v1/businesses/${businessId}/activities/country-breakdown`,
|
|
1811
|
+
{ ...options, params: queryParams }
|
|
1812
|
+
);
|
|
1804
1813
|
}
|
|
1805
1814
|
});
|
|
1806
1815
|
var createCustomerApi = (apiConfig) => {
|