@nautical-commerce/graphql-schema 2.27.0 → 2.28.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.
@@ -1728,6 +1728,17 @@ type Query {
1728
1728
  sellerId: ID
1729
1729
  ): SalesMetrics
1730
1730
 
1731
+ """
1732
+ Get sales velocity metrics (30/60/90 day windows) for product variants. Shows units sold and sales amount for each time window, plus current inventory. Useful for inventory planning and identifying fast/slow-moving products. Automatically filtered by seller for seller staff users.
1733
+ """
1734
+ salesVelocity(
1735
+ """Maximum number of items to return"""
1736
+ first: Int = 50
1737
+
1738
+ """Number of items to skip (for pagination)"""
1739
+ offset: Int = 0
1740
+ ): SalesVelocityReport
1741
+
1731
1742
  """Look up a marketplace agreement by ID or slug."""
1732
1743
  agreement(
1733
1744
  """ID of the marketplace agreement."""
@@ -9191,6 +9202,12 @@ type Plugin implements Node {
9191
9202
  description: String!
9192
9203
  active: Boolean!
9193
9204
  configuration: [ConfigurationItem!]
9205
+ seller: Seller
9206
+
9207
+ """
9208
+ Optional custom field mappings for webhook ingestion. Format: {'product': [...], 'variant': [...], 'image': [...]} where each list contains FieldMapping configurations. If null, uses default mappings from plugin.
9209
+ """
9210
+ customFieldMappings: JSONString
9194
9211
  company: String
9195
9212
  category: PluginConfigurationCategory
9196
9213
  descriptionShort: String!
@@ -12281,6 +12298,9 @@ type OrderMetrics {
12281
12298
 
12282
12299
  """Orders broken down by status for pie chart"""
12283
12300
  statusBreakdown: [PieChartSegment!]!
12301
+
12302
+ """Orders broken down by seller (MPO only)"""
12303
+ bySeller: [PieChartSegment!]
12284
12304
  }
12285
12305
 
12286
12306
  """Represents a single point in time-series data for charts"""
@@ -12344,6 +12364,63 @@ type SalesMetrics {
12344
12364
 
12345
12365
  """Sales broken down by product category"""
12346
12366
  byCategory: [PieChartSegment!]!
12367
+
12368
+ """Sales broken down by product variant (Seller only)"""
12369
+ byVariant: [PieChartSegment!]
12370
+ }
12371
+
12372
+ """Sales velocity report for inventory planning"""
12373
+ type SalesVelocityReport {
12374
+ """List of variants with sales velocity metrics"""
12375
+ items: [SalesVelocityItem!]!
12376
+
12377
+ """Total number of variants"""
12378
+ totalCount: Int!
12379
+
12380
+ """Currency code for sales figures"""
12381
+ currency: String!
12382
+ }
12383
+
12384
+ """Sales velocity metrics for inventory planning (30/60/90 day windows)"""
12385
+ type SalesVelocityItem {
12386
+ """Global ID of the product variant"""
12387
+ variantId: ID!
12388
+
12389
+ """Name of the variant"""
12390
+ variantName: String!
12391
+
12392
+ """Name of the parent product"""
12393
+ productName: String!
12394
+
12395
+ """SKU of the variant"""
12396
+ sku: String
12397
+
12398
+ """Name of the seller (MPO only)"""
12399
+ sellerName: String
12400
+
12401
+ """Current inventory quantity across all warehouses"""
12402
+ currentQuantity: Int!
12403
+
12404
+ """Currency code for sales figures"""
12405
+ currency: String!
12406
+
12407
+ """Units sold in last 30 days"""
12408
+ sold30d: Int!
12409
+
12410
+ """Sales amount in last 30 days"""
12411
+ sales30d: Decimal!
12412
+
12413
+ """Units sold in last 60 days"""
12414
+ sold60d: Int!
12415
+
12416
+ """Sales amount in last 60 days"""
12417
+ sales60d: Decimal!
12418
+
12419
+ """Units sold in last 90 days"""
12420
+ sold90d: Int!
12421
+
12422
+ """Sales amount in last 90 days"""
12423
+ sales90d: Decimal!
12347
12424
  }
12348
12425
 
12349
12426
  type AgreementCountableConnection {
@@ -12631,7 +12708,7 @@ type Mutation {
12631
12708
  description: String
12632
12709
 
12633
12710
  """
12634
- Used when uploading a new document or file in a multipart request that does not exist in the system already. Supported file types: text/svg-xml, application/x-dwg, image/tif, application/vnd.openxmlformats-officedocument.wordprocessingml.document, text/x-pdf, application/tiff, drawing/dwg, text/rtf, application/acad, application/dxf, image/heif-sequence, application/x-gzip, image/jpeg, application/vnd.ms-powerpoint, image/heic-sequence, text/csv, application/eps, application/csv, application/x-rtf, text/x-comma-separated-values, text/pdf, application/jpg, application/acrobat, image/tiff, application/gzip, application/x-pdf, image/eps, application/x-autocad, image/x-eps, application/zip, image/x-tif, image/x-dxf, application/x-dxf, application/vnd.ms-excel, application/svg+xml, application/dwg, application/x-eps, application/gzip-compressed, application/pdf, image/dxf, drawing/x-dwf, application/x-jpg, application/gzipped, application/vnd.openxmlformats-officedocument.presentationml.slideshow, image/x-tiff, text/x-csv, application/x-tiff, image/jpg, application/excel, application/msword, application/x-tif, application/vnd.openxmlformats-officedocument.presentationml.presentation, image/png, application/x-tar, image/x-bmp, text/comma-separated-values, image/heif, application/x-rar, text/plain, image/gif, application/x-zip-compressed, application/rtf, image/x-dwg, image/bmp, text/svg, image/svg, application/x-acad, application/tif, pplication/vnd.rar, application/x-rar-compressed, image/x-ms-bmp, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.oasis.opendocument.presentation, application/postscript, application/x-csv, image/heic, drawing/x-dwg, application/vnd.oasis.opendocument.spreadsheet, application/vnd.ms-word, image/webp, image/svg+xml, image/vnd.dwg, application/vnd.oasis.opendocument.text, application/vnd.pdf.
12711
+ Used when uploading a new document or file in a multipart request that does not exist in the system already. Supported file types: application/vnd.oasis.opendocument.spreadsheet, image/bmp, application/vnd.openxmlformats-officedocument.presentationml.presentation, image/gif, application/jpg, drawing/dwg, text/svg-xml, text/x-comma-separated-values, application/tiff, application/x-eps, application/rtf, image/webp, image/heic-sequence, application/vnd.oasis.opendocument.text, application/excel, image/svg+xml, application/x-dxf, image/dxf, image/x-dxf, application/dwg, text/rtf, application/x-autocad, application/pdf, image/x-tif, image/jpeg, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel, image/jpg, application/x-zip-compressed, application/x-csv, application/x-acad, application/x-gzip, application/x-tif, application/acad, application/dxf, application/gzip, text/plain, application/zip, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/svg+xml, image/x-bmp, image/png, application/acrobat, pplication/vnd.rar, application/vnd.openxmlformats-officedocument.presentationml.slideshow, image/eps, application/postscript, drawing/x-dwf, application/gzip-compressed, text/csv, application/x-pdf, image/heif-sequence, image/heic, image/x-eps, application/vnd.pdf, image/x-dwg, image/svg, application/csv, text/pdf, application/vnd.ms-powerpoint, application/x-rtf, application/x-jpg, application/x-rar-compressed, application/vnd.ms-word, image/x-ms-bmp, application/x-rar, text/svg, image/heif, text/x-pdf, drawing/x-dwg, application/x-tar, application/msword, application/vnd.oasis.opendocument.presentation, application/x-dwg, application/x-tiff, image/vnd.dwg, image/x-tiff, image/tif, application/gzipped, text/comma-separated-values, application/eps, image/tiff, application/tif, text/x-csv.
12635
12712
  """
12636
12713
  file: Upload!
12637
12714
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nautical-commerce/graphql-schema",
3
- "version": "v2.27.0",
3
+ "version": "v2.28.0",
4
4
  "description": "Traide API GraphQL Schema",
5
5
  "main": "./nautical/schema.graphql",
6
6
  "scripts": {