@nuxtseo/protocol 0.2.1 → 0.3.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/v1/audit.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { z as schema } from 'zod';
2
- import { defineOperation, defineRegistry, defineResponseObject, defineSuccessEnvelope, publicV1ErrorEnvelope, publicV1StandardRatePolicy, } from './core.js';
2
+ import { defineOperation, defineRegistry, defineResponseObject, defineSuccessEnvelope, publicV1ErrorEnvelope, publicV1PageSchema, publicV1StandardRatePolicy, } from './core.js';
3
3
  export const auditSiteParamsSchema = schema.strictObject({
4
4
  siteId: schema.string().min(1),
5
5
  });
@@ -137,6 +137,7 @@ export const contentDecayRowSchema = defineResponseObject({
137
137
  export const auditContentDecayDataSchema = defineResponseObject({
138
138
  connected: schema.boolean(),
139
139
  rows: schema.array(contentDecayRowSchema.producer),
140
+ page: publicV1PageSchema.producer,
140
141
  total: schema.number(),
141
142
  clicksLost: schema.number(),
142
143
  window: schema.strictObject({
@@ -149,6 +150,7 @@ export const auditContentDecayDataSchema = defineResponseObject({
149
150
  }, {
150
151
  connected: schema.boolean(),
151
152
  rows: schema.array(contentDecayRowSchema.client),
153
+ page: publicV1PageSchema.client.optional(),
152
154
  total: schema.number(),
153
155
  clicksLost: schema.number(),
154
156
  window: schema.looseObject({
@@ -196,7 +198,12 @@ export const duplicateClusterSchema = defineResponseObject({
196
198
  });
197
199
  export const auditDuplicateClustersDataSchema = defineResponseObject({
198
200
  connected: schema.boolean(),
201
+ /**
202
+ * Deprecated alias of `rows`. Kept for one minor version, then removed.
203
+ */
199
204
  clusters: schema.array(duplicateClusterSchema.producer),
205
+ rows: schema.array(duplicateClusterSchema.producer),
206
+ page: publicV1PageSchema.producer,
200
207
  total: schema.number(),
201
208
  pagesAffected: schema.number(),
202
209
  /**
@@ -209,6 +216,8 @@ export const auditDuplicateClustersDataSchema = defineResponseObject({
209
216
  }, {
210
217
  connected: schema.boolean(),
211
218
  clusters: schema.array(duplicateClusterSchema.client),
219
+ rows: schema.array(duplicateClusterSchema.client).optional(),
220
+ page: publicV1PageSchema.client.optional(),
212
221
  total: schema.number(),
213
222
  pagesAffected: schema.number(),
214
223
  crawlSettingsId: schema.number().nullable().optional(),
@@ -241,6 +250,7 @@ export const auditLinkOpportunitiesDataSchema = defineResponseObject({
241
250
  connected: schema.boolean(),
242
251
  textUnavailable: schema.boolean(),
243
252
  rows: schema.array(linkOpportunityRowSchema.producer),
253
+ page: publicV1PageSchema.producer,
244
254
  total: schema.number(),
245
255
  pagesScanned: schema.number(),
246
256
  pagesTotal: schema.number(),
@@ -248,6 +258,7 @@ export const auditLinkOpportunitiesDataSchema = defineResponseObject({
248
258
  connected: schema.boolean(),
249
259
  textUnavailable: schema.boolean(),
250
260
  rows: schema.array(linkOpportunityRowSchema.client),
261
+ page: publicV1PageSchema.client.optional(),
251
262
  total: schema.number(),
252
263
  pagesScanned: schema.number(),
253
264
  pagesTotal: schema.number(),
@@ -445,6 +456,7 @@ export const auditContentDecayOperation = defineOperation({
445
456
  position: 8.4,
446
457
  prevPosition: 5.1,
447
458
  }],
459
+ page: { total: 1, limit: 1, offset: 0, hasMore: false },
448
460
  total: 1,
449
461
  clicksLost: 18,
450
462
  window: {
@@ -494,6 +506,15 @@ export const auditDuplicateClustersOperation = defineOperation({
494
506
  keepPath: '/guides/alpha',
495
507
  titles: { distinct: 1, sampled: 3, verdict: 'shared' },
496
508
  }],
509
+ rows: [{
510
+ pathPattern: '/guides/*',
511
+ size: 3,
512
+ exactDuplicates: 2,
513
+ members: [{ url: 'https://example.com/guides/alpha', path: '/guides/alpha', clicks: 14, impressions: 200 }],
514
+ keepPath: '/guides/alpha',
515
+ titles: { distinct: 1, sampled: 3, verdict: 'shared' },
516
+ }],
517
+ page: { total: 1, limit: 1, offset: 0, hasMore: false },
497
518
  total: 1,
498
519
  pagesAffected: 3,
499
520
  },
@@ -541,6 +562,7 @@ export const auditLinkOpportunitiesOperation = defineOperation({
541
562
  clicks: 18,
542
563
  position: 8.2,
543
564
  }],
565
+ page: { total: 1, limit: 1, offset: 0, hasMore: false },
544
566
  total: 1,
545
567
  pagesScanned: 152,
546
568
  pagesTotal: 154,