@nautical-commerce/graphql-schema 2.21.0 → 2.23.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: image/x-bmp, application/x-pdf, drawing/x-dwg, image/heic, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/msword, text/rtf, text/plain, application/x-dwg, image/x-tif, image/svg+xml, application/vnd.ms-word, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/x-zip-compressed, application/svg+xml, image/png, image/svg, application/acad, application/x-csv, application/pdf, text/x-pdf, application/vnd.ms-powerpoint, application/gzip-compressed, application/gzipped, image/gif, application/x-eps, application/x-rar, application/x-gzip, image/jpg, application/tiff, application/gzip, image/x-tiff, text/svg, application/dxf, drawing/dwg, image/x-dwg, application/x-autocad, text/x-comma-separated-values, application/eps, image/heic-sequence, image/heif-sequence, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.openxmlformats-officedocument.presentationml.slideshow, image/tif, application/x-dxf, application/dwg, application/postscript, application/csv, application/x-rtf, image/jpeg, text/pdf, image/tiff, application/vnd.oasis.opendocument.presentation, image/vnd.dwg, application/x-acad, application/vnd.pdf, application/acrobat, application/vnd.ms-excel, application/x-tiff, image/x-eps, image/webp, text/csv, image/x-ms-bmp, text/comma-separated-values, application/rtf, drawing/x-dwf, image/heif, image/eps, image/bmp, text/x-csv, application/x-tar, application/zip, application/x-rar-compressed, application/excel, application/tif, pplication/vnd.rar, application/x-jpg, text/svg-xml, image/x-dxf, image/dxf, application/vnd.oasis.opendocument.text, application/x-tif, application/vnd.oasis.opendocument.spreadsheet, 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: application/pdf, application/tiff, application/eps, application/x-gzip, image/vnd.dwg, application/x-acad, image/x-tif, application/x-eps, image/tif, application/gzip, image/x-ms-bmp, application/x-pdf, application/tif, text/svg-xml, image/jpg, application/x-tif, image/x-dxf, pplication/vnd.rar, text/comma-separated-values, application/acad, text/x-comma-separated-values, text/rtf, image/tiff, image/heic, image/dxf, drawing/x-dwg, application/x-autocad, image/svg+xml, application/x-dxf, text/pdf, application/vnd.ms-powerpoint, image/gif, text/svg, image/x-dwg, application/msword, application/vnd.ms-word, text/x-csv, image/bmp, application/dwg, image/png, drawing/x-dwf, image/x-tiff, application/x-rtf, image/eps, application/vnd.ms-excel, image/x-bmp, application/vnd.oasis.opendocument.spreadsheet, application/x-rar, text/plain, application/csv, application/x-tiff, image/svg, application/x-csv, application/x-jpg, image/webp, application/postscript, application/excel, application/vnd.oasis.opendocument.presentation, application/vnd.oasis.opendocument.text, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.pdf, image/heif, application/gzip-compressed, application/x-tar, application/jpg, image/heic-sequence, application/x-zip-compressed, application/zip, application/gzipped, application/svg+xml, drawing/dwg, application/acrobat, application/vnd.openxmlformats-officedocument.presentationml.presentation, image/jpeg, application/vnd.openxmlformats-officedocument.presentationml.slideshow, text/csv, application/x-dwg, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/rtf, image/x-eps, application/dxf, text/x-pdf, image/heif-sequence, application/x-rar-compressed.
12532
12635
  """
12533
12636
  file: Upload!
12534
12637
 
@@ -12617,7 +12720,9 @@ type Mutation {
12617
12720
  id: ID!
12618
12721
  ): PayoutDelete
12619
12722
 
12620
- """Modifies the status of a payout"""
12723
+ """
12724
+ Modifies the status of a payout. Valid transitions: DRAFT→LOCKED, LOCKED→DRAFT, LOCKED→PAID, PAID→ARCHIVED, ERROR→DRAFT. Use ERROR→DRAFT to recover payouts that failed during processing.
12725
+ """
12621
12726
  payoutStatusUpdate(
12622
12727
  """Fields required to update a payout status."""
12623
12728
  id: ID!
@@ -12653,13 +12758,17 @@ type Mutation {
12653
12758
  input: VendorPayoutStatusInput!
12654
12759
  ): VendorPayoutStatusUpdate
12655
12760
 
12656
- """Include vendor payouts."""
12761
+ """
12762
+ Include vendor payouts. Only operates on vendor payouts where the parent payout is in DRAFT or ERROR state.
12763
+ """
12657
12764
  vendorPayoutsBulkInclude(
12658
12765
  """List of vendor payout IDs to include."""
12659
12766
  ids: [ID!]!
12660
12767
  ): VendorPayoutsBulkInclude
12661
12768
 
12662
- """Exclude vendor payouts."""
12769
+ """
12770
+ Exclude vendor payouts. Only operates on vendor payouts where the parent payout is in DRAFT or ERROR state.
12771
+ """
12663
12772
  vendorPayoutsBulkExclude(
12664
12773
  """List of vendor payout IDs to exclude."""
12665
12774
  ids: [ID!]!
@@ -15954,7 +16063,9 @@ type PayoutDelete {
15954
16063
  payout: Payout
15955
16064
  }
15956
16065
 
15957
- """Modifies the status of a payout"""
16066
+ """
16067
+ Modifies the status of a payout. Valid transitions: DRAFT→LOCKED, LOCKED→DRAFT, LOCKED→PAID, PAID→ARCHIVED, ERROR→DRAFT. Use ERROR→DRAFT to recover payouts that failed during processing.
16068
+ """
15958
16069
  type PayoutStatusUpdate {
15959
16070
  """Payout that was updated."""
15960
16071
  payout: Payout
@@ -16015,14 +16126,18 @@ input VendorPayoutStatusInput {
16015
16126
  payoutAmount: String!
16016
16127
  }
16017
16128
 
16018
- """Include vendor payouts."""
16129
+ """
16130
+ Include vendor payouts. Only operates on vendor payouts where the parent payout is in DRAFT or ERROR state.
16131
+ """
16019
16132
  type VendorPayoutsBulkInclude {
16020
16133
  """Returns how many objects were affected."""
16021
16134
  count: Int!
16022
16135
  payoutErrors: [PayoutError!]!
16023
16136
  }
16024
16137
 
16025
- """Exclude vendor payouts."""
16138
+ """
16139
+ Exclude vendor payouts. Only operates on vendor payouts where the parent payout is in DRAFT or ERROR state.
16140
+ """
16026
16141
  type VendorPayoutsBulkExclude {
16027
16142
  """Returns how many objects were affected."""
16028
16143
  count: Int!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nautical-commerce/graphql-schema",
3
- "version": "v2.21.0",
3
+ "version": "v2.23.0",
4
4
  "description": "Traide API GraphQL Schema",
5
5
  "main": "./nautical/schema.graphql",
6
6
  "scripts": {