@salefony/api-sdk 1.0.12 → 1.0.13
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.js +8 -1
- package/dist/index.mjs +8 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1307,10 +1307,17 @@ var GoogleResource = class extends BaseResource {
|
|
|
1307
1307
|
* Filtreler: country (virgülle OR), device (desktop|mobile|tablet), source, medium
|
|
1308
1308
|
*/
|
|
1309
1309
|
async getDashboardAnalytics(options) {
|
|
1310
|
+
const params = {};
|
|
1311
|
+
if (options?.startDate) params.startDate = options.startDate;
|
|
1312
|
+
if (options?.endDate) params.endDate = options.endDate;
|
|
1313
|
+
if (options?.country) params.country = options.country;
|
|
1314
|
+
if (options?.device) params.device = options.device;
|
|
1315
|
+
if (options?.source) params.source = options.source;
|
|
1316
|
+
if (options?.medium) params.medium = options.medium;
|
|
1310
1317
|
return this.request({
|
|
1311
1318
|
method: "GET",
|
|
1312
1319
|
url: "/api/admin/google/analytics/dashboard",
|
|
1313
|
-
params:
|
|
1320
|
+
params: Object.keys(params).length ? params : void 0
|
|
1314
1321
|
});
|
|
1315
1322
|
}
|
|
1316
1323
|
async updateSitemap(siteUrl, sitemapUrl) {
|
package/dist/index.mjs
CHANGED
|
@@ -1244,10 +1244,17 @@ var GoogleResource = class extends BaseResource {
|
|
|
1244
1244
|
* Filtreler: country (virgülle OR), device (desktop|mobile|tablet), source, medium
|
|
1245
1245
|
*/
|
|
1246
1246
|
async getDashboardAnalytics(options) {
|
|
1247
|
+
const params = {};
|
|
1248
|
+
if (options?.startDate) params.startDate = options.startDate;
|
|
1249
|
+
if (options?.endDate) params.endDate = options.endDate;
|
|
1250
|
+
if (options?.country) params.country = options.country;
|
|
1251
|
+
if (options?.device) params.device = options.device;
|
|
1252
|
+
if (options?.source) params.source = options.source;
|
|
1253
|
+
if (options?.medium) params.medium = options.medium;
|
|
1247
1254
|
return this.request({
|
|
1248
1255
|
method: "GET",
|
|
1249
1256
|
url: "/api/admin/google/analytics/dashboard",
|
|
1250
|
-
params:
|
|
1257
|
+
params: Object.keys(params).length ? params : void 0
|
|
1251
1258
|
});
|
|
1252
1259
|
}
|
|
1253
1260
|
async updateSitemap(siteUrl, sitemapUrl) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salefony/api-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "Salefony API SDK - Official SDK for Salefony Backend API. Full TypeScript support, SSR-ready, Admin & Frontstore resources.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|