@aranova/tracking-react 0.9.1 → 0.10.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/README.md +6 -2
- package/dist/index.d.mts +62 -1
- package/dist/index.d.ts +62 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1340,6 +1340,16 @@ function createSalesClient(config) {
|
|
|
1340
1340
|
...cursor !== void 0 ? { cursor } : {}
|
|
1341
1341
|
});
|
|
1342
1342
|
},
|
|
1343
|
+
async summary(query) {
|
|
1344
|
+
const { range, include_categories, include_deleted_services, top_n, ...filters } = query;
|
|
1345
|
+
return salesRequest(config, "POST", "/sales/summary", {
|
|
1346
|
+
filters,
|
|
1347
|
+
range,
|
|
1348
|
+
...include_categories !== void 0 ? { include_categories } : {},
|
|
1349
|
+
...include_deleted_services !== void 0 ? { include_deleted_services } : {},
|
|
1350
|
+
...top_n !== void 0 ? { top_n } : {}
|
|
1351
|
+
});
|
|
1352
|
+
},
|
|
1343
1353
|
async get(id) {
|
|
1344
1354
|
return salesRequest(config, "GET", `/sales/${id}`);
|
|
1345
1355
|
},
|
|
@@ -1640,7 +1650,7 @@ import {
|
|
|
1640
1650
|
} from "react";
|
|
1641
1651
|
|
|
1642
1652
|
// package.json
|
|
1643
|
-
var version = "0.
|
|
1653
|
+
var version = "0.10.0";
|
|
1644
1654
|
|
|
1645
1655
|
// src/factory.tsx
|
|
1646
1656
|
import { jsx as jsx2 } from "react/jsx-runtime";
|