arky-sdk 0.7.77 → 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 +13 -0
- package/dist/index.d.ts +13 -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
|
@@ -84,6 +84,15 @@ interface ActivityTypeInfo {
|
|
|
84
84
|
firstSeenAt: number;
|
|
85
85
|
lastSeenAt: number;
|
|
86
86
|
}
|
|
87
|
+
interface CountryBreakdownItem {
|
|
88
|
+
countryCode: string;
|
|
89
|
+
eventCount: number;
|
|
90
|
+
distinctCustomers: number;
|
|
91
|
+
}
|
|
92
|
+
interface CountryBreakdownParams {
|
|
93
|
+
businessId?: string;
|
|
94
|
+
windowSeconds?: number;
|
|
95
|
+
}
|
|
87
96
|
|
|
88
97
|
interface LocationState {
|
|
89
98
|
code: string;
|
|
@@ -382,6 +391,10 @@ declare function createAdmin(config: HttpClientConfig & {
|
|
|
382
391
|
items: ActivityTypeInfo[];
|
|
383
392
|
uniqueCount: number;
|
|
384
393
|
}>;
|
|
394
|
+
countryBreakdown(params?: CountryBreakdownParams, options?: RequestOptions): Promise<{
|
|
395
|
+
items: CountryBreakdownItem[];
|
|
396
|
+
unknownCount: number;
|
|
397
|
+
}>;
|
|
385
398
|
};
|
|
386
399
|
};
|
|
387
400
|
automation: {
|
package/dist/index.d.ts
CHANGED
|
@@ -84,6 +84,15 @@ interface ActivityTypeInfo {
|
|
|
84
84
|
firstSeenAt: number;
|
|
85
85
|
lastSeenAt: number;
|
|
86
86
|
}
|
|
87
|
+
interface CountryBreakdownItem {
|
|
88
|
+
countryCode: string;
|
|
89
|
+
eventCount: number;
|
|
90
|
+
distinctCustomers: number;
|
|
91
|
+
}
|
|
92
|
+
interface CountryBreakdownParams {
|
|
93
|
+
businessId?: string;
|
|
94
|
+
windowSeconds?: number;
|
|
95
|
+
}
|
|
87
96
|
|
|
88
97
|
interface LocationState {
|
|
89
98
|
code: string;
|
|
@@ -382,6 +391,10 @@ declare function createAdmin(config: HttpClientConfig & {
|
|
|
382
391
|
items: ActivityTypeInfo[];
|
|
383
392
|
uniqueCount: number;
|
|
384
393
|
}>;
|
|
394
|
+
countryBreakdown(params?: CountryBreakdownParams, options?: RequestOptions): Promise<{
|
|
395
|
+
items: CountryBreakdownItem[];
|
|
396
|
+
unknownCount: number;
|
|
397
|
+
}>;
|
|
385
398
|
};
|
|
386
399
|
};
|
|
387
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) => {
|