@nautical-commerce/graphql-schema 2.22.0 → 2.24.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.
@@ -1700,6 +1700,34 @@ type Query {
1700
1700
  contexts: [AppDashboardIntegrationContextEnum!]
1701
1701
  ): [AppDashboardIntegration!]!
1702
1702
 
1703
+ """
1704
+ Get order metrics including time series data for bar charts and status breakdown for pie charts. Automatically filtered by seller for seller staff users.
1705
+ """
1706
+ orderMetrics(
1707
+ """Date range for the metrics query"""
1708
+ dateRange: AnalyticsDateRangeInput!
1709
+
1710
+ """How to group the time series data"""
1711
+ groupBy: DateGroupingEnum!
1712
+
1713
+ """Optional seller ID to filter by (MPO only)"""
1714
+ sellerId: ID
1715
+ ): OrderMetrics
1716
+
1717
+ """
1718
+ Get sales metrics including time series data for bar charts and breakdown by seller (MPO only) and category. Automatically filtered by seller for seller staff users.
1719
+ """
1720
+ salesMetrics(
1721
+ """Date range for the metrics query"""
1722
+ dateRange: AnalyticsDateRangeInput!
1723
+
1724
+ """How to group the time series data"""
1725
+ groupBy: DateGroupingEnum!
1726
+
1727
+ """Optional seller ID to filter by (MPO only)"""
1728
+ sellerId: ID
1729
+ ): SalesMetrics
1730
+
1703
1731
  """Look up a marketplace agreement by ID or slug."""
1704
1732
  agreement(
1705
1733
  """ID of the marketplace agreement."""
@@ -12243,6 +12271,81 @@ enum AppSortField {
12243
12271
  CREATION_DATE
12244
12272
  }
12245
12273
 
12274
+ """Order metrics including time series and status breakdown"""
12275
+ type OrderMetrics {
12276
+ """Order counts over time, grouped by the specified granularity"""
12277
+ timeSeries: [TimeSeriesDataPoint!]!
12278
+
12279
+ """Total number of orders in the date range"""
12280
+ total: Int!
12281
+
12282
+ """Orders broken down by status for pie chart"""
12283
+ statusBreakdown: [PieChartSegment!]!
12284
+ }
12285
+
12286
+ """Represents a single point in time-series data for charts"""
12287
+ type TimeSeriesDataPoint {
12288
+ """The date/time for this data point"""
12289
+ date: DateTime!
12290
+
12291
+ """The numeric value (count or sum)"""
12292
+ value: Decimal!
12293
+
12294
+ """Human-readable label for this period (e.g., 'Jan 2025')"""
12295
+ label: String
12296
+ }
12297
+
12298
+ """Represents a segment in pie chart data"""
12299
+ type PieChartSegment {
12300
+ """Label for this segment"""
12301
+ label: String!
12302
+
12303
+ """Numeric value for this segment"""
12304
+ value: Decimal!
12305
+
12306
+ """Percentage of total (0-100)"""
12307
+ percentage: Decimal!
12308
+
12309
+ """Optional color code for rendering"""
12310
+ color: String
12311
+ }
12312
+
12313
+ """Input type for specifying date range in analytics queries."""
12314
+ input AnalyticsDateRangeInput {
12315
+ """Start of date range (inclusive)"""
12316
+ start: DateTime!
12317
+
12318
+ """End of date range (inclusive)"""
12319
+ end: DateTime!
12320
+ }
12321
+
12322
+ """Enum for date grouping granularity in time-series charts."""
12323
+ enum DateGroupingEnum {
12324
+ DAILY
12325
+ WEEKLY
12326
+ MONTHLY
12327
+ QUARTERLY
12328
+ YEARLY
12329
+ }
12330
+
12331
+ """Sales metrics including time series and category breakdown"""
12332
+ type SalesMetrics {
12333
+ """Net sales over time, grouped by the specified granularity"""
12334
+ timeSeries: [TimeSeriesDataPoint!]!
12335
+
12336
+ """Total net sales amount in the date range"""
12337
+ total: Decimal!
12338
+
12339
+ """Currency code for the sales figures"""
12340
+ currency: String!
12341
+
12342
+ """Sales broken down by seller (MPO only)"""
12343
+ bySeller: [PieChartSegment!]
12344
+
12345
+ """Sales broken down by product category"""
12346
+ byCategory: [PieChartSegment!]!
12347
+ }
12348
+
12246
12349
  type AgreementCountableConnection {
12247
12350
  """Pagination data for this connection."""
12248
12351
  pageInfo: PageInfo!
@@ -12528,7 +12631,7 @@ type Mutation {
12528
12631
  description: String
12529
12632
 
12530
12633
  """
12531
- 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.openxmlformats-officedocument.presentationml.slideshow, application/gzipped, image/svg, application/csv, application/excel, application/tif, text/x-csv, application/dwg, image/tiff, text/comma-separated-values, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/heic, text/rtf, image/jpeg, application/x-eps, image/heic-sequence, application/acad, application/postscript, text/pdf, application/dxf, application/zip, image/png, application/msword, application/x-tar, application/vnd.oasis.opendocument.text, application/svg+xml, text/plain, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, image/vnd.dwg, application/eps, application/vnd.ms-excel, image/eps, image/heif-sequence, application/vnd.ms-powerpoint, image/bmp, image/x-dwg, application/x-rtf, application/rtf, application/vnd.oasis.opendocument.spreadsheet, application/x-rar-compressed, image/x-eps, application/x-rar, application/x-autocad, application/x-csv, application/x-acad, application/vnd.openxmlformats-officedocument.presentationml.presentation, image/dxf, image/x-bmp, application/vnd.oasis.opendocument.presentation, image/gif, image/x-tiff, application/pdf, application/x-gzip, image/webp, application/vnd.ms-word, text/svg-xml, application/x-dwg, text/x-comma-separated-values, application/acrobat, application/x-tif, application/x-pdf, image/svg+xml, application/x-zip-compressed, application/gzip-compressed, image/heif, text/x-pdf, application/x-jpg, application/tiff, image/x-ms-bmp, application/vnd.pdf, image/jpg, drawing/x-dwf, image/tif, application/gzip, image/x-tif, application/x-tiff, text/svg, image/x-dxf, text/csv, drawing/dwg, pplication/vnd.rar, application/x-dxf, drawing/x-dwg, application/jpg.
12634
+ Used when uploading a new document or file in a multipart request that does not exist in the system already. Supported file types: drawing/x-dwf, text/csv, application/vnd.pdf, application/gzipped, image/heic-sequence, image/x-eps, image/png, image/x-tif, drawing/x-dwg, application/x-csv, pplication/vnd.rar, application/acad, application/csv, image/x-ms-bmp, image/dxf, application/x-eps, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/x-tar, application/dxf, application/rtf, application/vnd.oasis.opendocument.presentation, drawing/dwg, application/x-zip-compressed, application/vnd.openxmlformats-officedocument.presentationml.slideshow, image/heic, image/svg+xml, text/x-csv, text/svg-xml, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/plain, image/tif, image/x-bmp, application/excel, application/pdf, application/gzip, application/gzip-compressed, image/eps, image/heif, text/x-pdf, application/x-dwg, image/x-dwg, image/jpg, application/x-gzip, application/x-pdf, application/vnd.ms-powerpoint, application/svg+xml, image/svg, image/gif, image/tiff, image/bmp, application/vnd.openxmlformats-officedocument.presentationml.presentation, image/x-tiff, application/eps, text/svg, application/x-dxf, application/tiff, application/x-acad, text/x-comma-separated-values, application/msword, application/x-autocad, application/dwg, image/webp, application/zip, text/comma-separated-values, application/x-tif, text/pdf, application/x-rar-compressed, application/acrobat, application/vnd.ms-excel, application/x-jpg, application/x-rtf, image/x-dxf, application/x-rar, application/x-tiff, image/heif-sequence, application/vnd.oasis.opendocument.spreadsheet, application/tif, image/vnd.dwg, image/jpeg, application/postscript, application/vnd.ms-word, application/jpg, application/vnd.oasis.opendocument.text, text/rtf.
12532
12635
  """
12533
12636
  file: Upload!
12534
12637
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nautical-commerce/graphql-schema",
3
- "version": "v2.22.0",
3
+ "version": "v2.24.0",
4
4
  "description": "Traide API GraphQL Schema",
5
5
  "main": "./nautical/schema.graphql",
6
6
  "scripts": {