@gscdump/sdk 0.15.0 → 0.16.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/dist/index.mjs +14 -0
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -151,6 +151,13 @@ function createAnalyticsClient(options = {}) {
|
|
|
151
151
|
getIndexingDiagnostics(siteId) {
|
|
152
152
|
return request(analyticsRoutes.site.indexingDiagnostics(siteId), {}, partnerEndpointSchemas.analyticsIndexingDiagnostics.response);
|
|
153
153
|
},
|
|
154
|
+
requestIndexingInspect(siteId, body) {
|
|
155
|
+
const parsed = shouldValidate$1(options, "request") ? partnerEndpointSchemas.analyticsIndexingInspect.body.parse(body) : body;
|
|
156
|
+
return request(analyticsRoutes.site.indexingInspect(siteId), {
|
|
157
|
+
method: "POST",
|
|
158
|
+
body: parsed
|
|
159
|
+
}, partnerEndpointSchemas.analyticsIndexingInspect.response);
|
|
160
|
+
},
|
|
154
161
|
getCountries(siteId, range) {
|
|
155
162
|
return request(analyticsRoutes.site.countries(siteId), { query: range }, partnerEndpointSchemas.analyticsCountries.response);
|
|
156
163
|
},
|
|
@@ -378,6 +385,13 @@ function createPartnerClient(options = {}) {
|
|
|
378
385
|
getIndexingDiagnostics(siteId) {
|
|
379
386
|
return request(partnerRoutes.sites.indexingDiagnostics(siteId), {}, partnerEndpointSchemas.getIndexingDiagnostics.response);
|
|
380
387
|
},
|
|
388
|
+
requestIndexingInspect(siteId, body) {
|
|
389
|
+
const parsed = shouldValidate(options, "request") ? partnerEndpointSchemas.getIndexingInspect.body.parse(body) : body;
|
|
390
|
+
return request(partnerRoutes.sites.indexingInspect(siteId), {
|
|
391
|
+
method: "POST",
|
|
392
|
+
body: parsed
|
|
393
|
+
}, partnerEndpointSchemas.getIndexingInspect.response);
|
|
394
|
+
},
|
|
381
395
|
getUserSettings() {
|
|
382
396
|
return request(partnerRoutes.settings.user, {}, partnerEndpointSchemas.getUserSettings.response);
|
|
383
397
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gscdump/sdk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.16.0",
|
|
5
5
|
"description": "Consumer SDK for hosted gscdump.com integrations.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"node": ">=18"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"gscdump": "0.
|
|
44
|
+
"gscdump": "0.16.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependenciesMeta": {
|
|
47
47
|
"gscdump": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"ofetch": "^1.5.1",
|
|
53
53
|
"zod": "^4.4.3",
|
|
54
|
-
"@gscdump/contracts": "0.
|
|
54
|
+
"@gscdump/contracts": "0.16.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"typescript": "^6.0.3",
|