@nautical-commerce/graphql-schema 3.6.16 → 3.7.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.
@@ -428,6 +428,19 @@ type AgreementCommission implements Node {
428
428
 
429
429
  """The category instance this commission applies to."""
430
430
  instance: Category
431
+ events(
432
+ """Returns the items in the list that come before the specified cursor."""
433
+ before: String = null
434
+
435
+ """Returns the items in the list that come after the specified cursor."""
436
+ after: String = null
437
+
438
+ """Returns the first n items from the list."""
439
+ first: Int = null
440
+
441
+ """Returns the items in the list that come after the specified cursor."""
442
+ last: Int = null
443
+ ): AgreementCommissionEventCountableConnection!
431
444
  }
432
445
 
433
446
  """Result of agreement commission create mutation."""
@@ -463,6 +476,72 @@ type AgreementCommissionDelete {
463
476
  agreementErrors: [AgreementError!]!
464
477
  }
465
478
 
479
+ type AgreementCommissionEvent implements Node {
480
+ """The Globally Unique ID of this object"""
481
+ id: ID!
482
+ pghCreatedAt: DateTime!
483
+
484
+ """
485
+ Event label: 'commission_added', 'commission_updated', or 'commission_removed'
486
+ """
487
+ pghLabel: String!
488
+
489
+ """JSON context captured at event time (user, app, tenant info)."""
490
+ pghContext: JSONString
491
+ pghContextId: NauticalUUID
492
+
493
+ """ContentType ID of the object this commission applies to."""
494
+ contentTypeId: Int
495
+
496
+ """ID of the object this commission applies to."""
497
+ objectId: Int!
498
+
499
+ """Commission rate at time of event."""
500
+ commission: Decimal!
501
+
502
+ """Email of user who made the change."""
503
+ userEmail: String
504
+
505
+ """Global ID of user who made the change."""
506
+ userId: String
507
+
508
+ """Tenant ID where the change occurred."""
509
+ tenantId: Int
510
+
511
+ """Tenant slug where the change occurred."""
512
+ tenantSlug: String
513
+
514
+ """App name if change was via API token."""
515
+ appName: String
516
+
517
+ """Global ID of app if change was via API token."""
518
+ appId: String
519
+
520
+ """Celery task name if change was async."""
521
+ taskName: String
522
+ }
523
+
524
+ """A connection to a list of items."""
525
+ type AgreementCommissionEventCountableConnection {
526
+ """Pagination data for this connection"""
527
+ pageInfo: PageInfo!
528
+
529
+ """Contains the nodes in this connection"""
530
+ edges: [AgreementCommissionEventCountableEdge!]!
531
+
532
+ """Total quantity of existing nodes."""
533
+ totalCount: Int!
534
+ }
535
+
536
+ """An edge in a connection."""
537
+ type AgreementCommissionEventCountableEdge {
538
+ """A cursor for use in pagination"""
539
+ cursor: String!
540
+
541
+ """The item at the end of the edge"""
542
+ node: AgreementCommissionEvent!
543
+ }
544
+
466
545
  """A connection to a list of items."""
467
546
  type AgreementCountableConnection {
468
547
  """Pagination data for this connection"""
@@ -632,6 +711,86 @@ type AgreementFees implements Node {
632
711
  """Fee value in domiciled currency"""
633
712
  feeValue: Decimal!
634
713
  feeName: String!
714
+ events(
715
+ """Returns the items in the list that come before the specified cursor."""
716
+ before: String = null
717
+
718
+ """Returns the items in the list that come after the specified cursor."""
719
+ after: String = null
720
+
721
+ """Returns the first n items from the list."""
722
+ first: Int = null
723
+
724
+ """Returns the items in the list that come after the specified cursor."""
725
+ last: Int = null
726
+ ): AgreementFeesEventCountableConnection!
727
+ }
728
+
729
+ type AgreementFeesEvent implements Node {
730
+ """The Globally Unique ID of this object"""
731
+ id: ID!
732
+ pghCreatedAt: DateTime!
733
+
734
+ """Event label: 'fee_added', 'fee_updated', or 'fee_removed'"""
735
+ pghLabel: String!
736
+
737
+ """JSON context captured at event time (user, app, tenant info)."""
738
+ pghContext: JSONString
739
+ pghContextId: NauticalUUID
740
+
741
+ """Fee type: 'percentage' or 'fixed'."""
742
+ feeType: String!
743
+
744
+ """Fee scope: 'line' or 'total'."""
745
+ feeScope: String!
746
+
747
+ """Fee value at time of event."""
748
+ feeValue: Decimal!
749
+
750
+ """Fee name at time of event."""
751
+ feeName: String!
752
+
753
+ """Email of user who made the change."""
754
+ userEmail: String
755
+
756
+ """Global ID of user who made the change."""
757
+ userId: String
758
+
759
+ """Tenant ID where the change occurred."""
760
+ tenantId: Int
761
+
762
+ """Tenant slug where the change occurred."""
763
+ tenantSlug: String
764
+
765
+ """App name if change was via API token."""
766
+ appName: String
767
+
768
+ """Global ID of app if change was via API token."""
769
+ appId: String
770
+
771
+ """Celery task name if change was async."""
772
+ taskName: String
773
+ }
774
+
775
+ """A connection to a list of items."""
776
+ type AgreementFeesEventCountableConnection {
777
+ """Pagination data for this connection"""
778
+ pageInfo: PageInfo!
779
+
780
+ """Contains the nodes in this connection"""
781
+ edges: [AgreementFeesEventCountableEdge!]!
782
+
783
+ """Total quantity of existing nodes."""
784
+ totalCount: Int!
785
+ }
786
+
787
+ """An edge in a connection."""
788
+ type AgreementFeesEventCountableEdge {
789
+ """A cursor for use in pagination"""
790
+ cursor: String!
791
+
792
+ """The item at the end of the edge"""
793
+ node: AgreementFeesEvent!
635
794
  }
636
795
 
637
796
  """
@@ -692,6 +851,19 @@ type AgreementSellers implements Node {
692
851
  plan: Agreement
693
852
  acknowledgedOn: DateTime
694
853
  effectiveAt: DateTime!
854
+ events(
855
+ """Returns the items in the list that come before the specified cursor."""
856
+ before: String = null
857
+
858
+ """Returns the items in the list that come after the specified cursor."""
859
+ after: String = null
860
+
861
+ """Returns the first n items from the list."""
862
+ first: Int = null
863
+
864
+ """Returns the items in the list that come after the specified cursor."""
865
+ last: Int = null
866
+ ): AgreementSellersEventCountableConnection!
695
867
  }
696
868
 
697
869
  """A connection to a list of items."""
@@ -715,6 +887,65 @@ type AgreementSellersCountableEdge {
715
887
  node: AgreementSellers!
716
888
  }
717
889
 
890
+ type AgreementSellersEvent implements Node {
891
+ """The Globally Unique ID of this object"""
892
+ id: ID!
893
+ pghCreatedAt: DateTime!
894
+
895
+ """
896
+ Event label: 'seller_assigned', 'seller_agreement_updated', or 'seller_removed'
897
+ """
898
+ pghLabel: String!
899
+
900
+ """JSON context captured at event time (user, app, tenant info)."""
901
+ pghContext: JSONString
902
+ pghContextId: NauticalUUID
903
+ acknowledgedOn: DateTime
904
+ effectiveAt: DateTime
905
+
906
+ """Email of user who made the change."""
907
+ userEmail: String
908
+
909
+ """Global ID of user who made the change."""
910
+ userId: String
911
+
912
+ """Tenant ID where the change occurred."""
913
+ tenantId: Int
914
+
915
+ """Tenant slug where the change occurred."""
916
+ tenantSlug: String
917
+
918
+ """App name if change was via API token."""
919
+ appName: String
920
+
921
+ """Global ID of app if change was via API token."""
922
+ appId: String
923
+
924
+ """Celery task name if change was async."""
925
+ taskName: String
926
+ }
927
+
928
+ """A connection to a list of items."""
929
+ type AgreementSellersEventCountableConnection {
930
+ """Pagination data for this connection"""
931
+ pageInfo: PageInfo!
932
+
933
+ """Contains the nodes in this connection"""
934
+ edges: [AgreementSellersEventCountableEdge!]!
935
+
936
+ """Total quantity of existing nodes."""
937
+ totalCount: Int!
938
+ }
939
+
940
+ """An edge in a connection."""
941
+ type AgreementSellersEventCountableEdge {
942
+ """A cursor for use in pagination"""
943
+ cursor: String!
944
+
945
+ """The item at the end of the edge"""
946
+ node: AgreementSellersEvent!
947
+ }
948
+
718
949
  """Fields available for sorting agreements"""
719
950
  enum AgreementSortField {
720
951
  TITLE
@@ -724,6 +955,76 @@ enum AgreementSortField {
724
955
  PUBLICATION_DATE
725
956
  }
726
957
 
958
+ type AgreementTimelineEvent implements Node {
959
+ """The Globally Unique ID of this object"""
960
+ id: ID!
961
+ pghCreatedAt: DateTime!
962
+
963
+ """
964
+ Event label (e.g., 'commission_added', 'fee_updated', 'seller_removed').
965
+ """
966
+ pghLabel: String!
967
+
968
+ """JSON context captured at event time."""
969
+ pghContext: JSONString
970
+
971
+ """Full snapshot of the model state at time of event."""
972
+ pghData: JSONString
973
+
974
+ """
975
+ Dict of changed fields (old → new values). Null for insert/delete events.
976
+ """
977
+ pghDiff: JSONString
978
+
979
+ """Source model (e.g., 'agreement.Agreement', 'agreement.AgreementFees')."""
980
+ pghObjModel: String!
981
+
982
+ """Primary key of the source object."""
983
+ pghObjId: String!
984
+
985
+ """Email of user who made the change."""
986
+ userEmail: String
987
+
988
+ """Global ID of user who made the change."""
989
+ userId: String
990
+
991
+ """Tenant ID where the change occurred."""
992
+ tenantId: Int
993
+
994
+ """Tenant slug where the change occurred."""
995
+ tenantSlug: String
996
+
997
+ """App name if change was via API token."""
998
+ appName: String
999
+
1000
+ """Global ID of app if change was via API token."""
1001
+ appId: String
1002
+
1003
+ """Celery task name if change was async."""
1004
+ taskName: String
1005
+ }
1006
+
1007
+ """A connection to a list of items."""
1008
+ type AgreementTimelineEventCountableConnection {
1009
+ """Pagination data for this connection"""
1010
+ pageInfo: PageInfo!
1011
+
1012
+ """Contains the nodes in this connection"""
1013
+ edges: [AgreementTimelineEventCountableEdge!]!
1014
+
1015
+ """Total quantity of existing nodes."""
1016
+ totalCount: Int!
1017
+ }
1018
+
1019
+ """An edge in a connection."""
1020
+ type AgreementTimelineEventCountableEdge {
1021
+ """A cursor for use in pagination"""
1022
+ cursor: String!
1023
+
1024
+ """The item at the end of the edge"""
1025
+ node: AgreementTimelineEvent!
1026
+ }
1027
+
727
1028
  """Result of agreement update mutation."""
728
1029
  type AgreementUpdate {
729
1030
  """The updated agreement."""
@@ -9769,9 +10070,26 @@ type NauticalOrder implements Node & ObjectWithMetadata {
9769
10070
  """List of events for this order"""
9770
10071
  events: [NauticalOrderEvent!]!
9771
10072
 
9772
- """List of seller orders in this marketplace order"""
9773
- subOrders: [Order!]
9774
-
10073
+ """
10074
+ Database-level audit trail for this marketplace order. Captures every field change via PostgreSQL triggers — status transitions, price updates, address changes, and more.
10075
+ """
10076
+ auditEvents(
10077
+ """Returns the items in the list that come before the specified cursor."""
10078
+ before: String = null
10079
+
10080
+ """Returns the items in the list that come after the specified cursor."""
10081
+ after: String = null
10082
+
10083
+ """Returns the first n items from the list."""
10084
+ first: Int = null
10085
+
10086
+ """Returns the items in the list that come after the specified cursor."""
10087
+ last: Int = null
10088
+ ): NauticalOrderAuditEventCountableConnection!
10089
+
10090
+ """List of seller orders in this marketplace order"""
10091
+ subOrders: [Order!]
10092
+
9775
10093
  """List of seller orders (alias for subOrders)"""
9776
10094
  sellerOrders: [Order!]
9777
10095
 
@@ -9831,6 +10149,84 @@ type NauticalOrderAddNote {
9831
10149
  orderErrors: [OrderError!]!
9832
10150
  }
9833
10151
 
10152
+ type NauticalOrderAuditEvent implements Node {
10153
+ """The Globally Unique ID of this object"""
10154
+ id: ID!
10155
+ pghCreatedAt: DateTime!
10156
+
10157
+ """
10158
+ Event label: 'nautical_order_placed', 'nautical_order_updated', or 'nautical_order_deleted'.
10159
+ """
10160
+ pghLabel: String!
10161
+ pghContextId: NauticalUUID
10162
+
10163
+ """JSON context captured at event time (user, app, tenant info)."""
10164
+ pghContext: JSONString
10165
+
10166
+ """Order status at time of event."""
10167
+ status: String!
10168
+
10169
+ """Order sub-status at time of event."""
10170
+ subStatus: String
10171
+
10172
+ """Currency code at time of event."""
10173
+ currency: String!
10174
+
10175
+ """Total net amount at time of event."""
10176
+ totalNetAmount: Decimal!
10177
+
10178
+ """Total gross amount at time of event."""
10179
+ totalGrossAmount: Decimal!
10180
+
10181
+ """Customer email at time of event."""
10182
+ userEmail: String!
10183
+
10184
+ """Order token."""
10185
+ token: String!
10186
+
10187
+ """Email of staff/app user who made the change."""
10188
+ changedByEmail: String
10189
+
10190
+ """Global ID of user who made the change."""
10191
+ changedById: String
10192
+
10193
+ """Tenant ID where the change occurred."""
10194
+ tenantId: Int
10195
+
10196
+ """Tenant slug where the change occurred."""
10197
+ tenantSlug: String
10198
+
10199
+ """App name if change was via API token."""
10200
+ appName: String
10201
+
10202
+ """Global ID of app if change was via API token."""
10203
+ appId: String
10204
+
10205
+ """Celery task name if change was async."""
10206
+ taskName: String
10207
+ }
10208
+
10209
+ """A connection to a list of items."""
10210
+ type NauticalOrderAuditEventCountableConnection {
10211
+ """Pagination data for this connection"""
10212
+ pageInfo: PageInfo!
10213
+
10214
+ """Contains the nodes in this connection"""
10215
+ edges: [NauticalOrderAuditEventCountableEdge!]!
10216
+
10217
+ """Total quantity of existing nodes."""
10218
+ totalCount: Int!
10219
+ }
10220
+
10221
+ """An edge in a connection."""
10222
+ type NauticalOrderAuditEventCountableEdge {
10223
+ """A cursor for use in pagination"""
10224
+ cursor: String!
10225
+
10226
+ """The item at the end of the edge"""
10227
+ node: NauticalOrderAuditEvent!
10228
+ }
10229
+
9834
10230
  """Result of nauticalOrderBulkAssignCustomer mutation."""
9835
10231
  type NauticalOrderBulkAssignCustomer {
9836
10232
  """Orders that had customer assigned."""
@@ -10336,7 +10732,7 @@ type NauticalQuoteOrderSendToCustomer {
10336
10732
  orderErrors: [OrderError!]!
10337
10733
  }
10338
10734
 
10339
- """UUID scalar with enhanced error handling"""
10735
+ """UUID scalar with format validation (Graphene v3.4.6 parity)"""
10340
10736
  scalar NauticalUUID
10341
10737
 
10342
10738
  """Net sales by category row."""
@@ -10686,6 +11082,23 @@ type Order implements Node & ObjectWithMetadata {
10686
11082
  """List of events for this order"""
10687
11083
  events: [OrderEvent!]!
10688
11084
 
11085
+ """
11086
+ Database-level audit trail for this seller order. Captures every field change via PostgreSQL triggers.
11087
+ """
11088
+ auditEvents(
11089
+ """Returns the items in the list that come before the specified cursor."""
11090
+ before: String = null
11091
+
11092
+ """Returns the items in the list that come after the specified cursor."""
11093
+ after: String = null
11094
+
11095
+ """Returns the first n items from the list."""
11096
+ first: Int = null
11097
+
11098
+ """Returns the items in the list that come after the specified cursor."""
11099
+ last: Int = null
11100
+ ): OrderAuditEventCountableConnection!
11101
+
10689
11102
  """List of fees for this order"""
10690
11103
  fees: [OrderFee!]!
10691
11104
 
@@ -10760,6 +11173,76 @@ input OrderAddNoteInput {
10760
11173
  message: String!
10761
11174
  }
10762
11175
 
11176
+ type OrderAuditEvent implements Node {
11177
+ """The Globally Unique ID of this object"""
11178
+ id: ID!
11179
+ pghCreatedAt: DateTime!
11180
+
11181
+ """Event label: 'order_created', 'order_updated', or 'order_deleted'."""
11182
+ pghLabel: String!
11183
+ pghContextId: NauticalUUID
11184
+
11185
+ """JSON context captured at event time."""
11186
+ pghContext: JSONString
11187
+
11188
+ """Order status at time of event."""
11189
+ status: String!
11190
+
11191
+ """Order sub-status at time of event."""
11192
+ subStatus: String
11193
+
11194
+ """Payout status at time of event."""
11195
+ payoutStatus: String!
11196
+
11197
+ """Currency code at time of event."""
11198
+ currency: String!
11199
+
11200
+ """Total net amount at time of event."""
11201
+ totalNetAmount: Decimal!
11202
+
11203
+ """Total gross amount at time of event."""
11204
+ totalGrossAmount: Decimal!
11205
+
11206
+ """Customer email at time of event."""
11207
+ userEmail: String!
11208
+
11209
+ """Order token."""
11210
+ token: String!
11211
+
11212
+ """Email of staff/app user who made the change."""
11213
+ changedByEmail: String
11214
+
11215
+ """Tenant ID where the change occurred."""
11216
+ tenantId: Int
11217
+
11218
+ """App name if change was via API token."""
11219
+ appName: String
11220
+
11221
+ """Celery task name if change was async."""
11222
+ taskName: String
11223
+ }
11224
+
11225
+ """A connection to a list of items."""
11226
+ type OrderAuditEventCountableConnection {
11227
+ """Pagination data for this connection"""
11228
+ pageInfo: PageInfo!
11229
+
11230
+ """Contains the nodes in this connection"""
11231
+ edges: [OrderAuditEventCountableEdge!]!
11232
+
11233
+ """Total quantity of existing nodes."""
11234
+ totalCount: Int!
11235
+ }
11236
+
11237
+ """An edge in a connection."""
11238
+ type OrderAuditEventCountableEdge {
11239
+ """A cursor for use in pagination"""
11240
+ cursor: String!
11241
+
11242
+ """The item at the end of the edge"""
11243
+ node: OrderAuditEvent!
11244
+ }
11245
+
10763
11246
  """Result of orderBulkCancel mutation."""
10764
11247
  type OrderBulkCancel {
10765
11248
  """Number of orders cancelled."""
@@ -11414,6 +11897,9 @@ type OrderPayoutSummary {
11414
11897
  """Shipping in the payout"""
11415
11898
  shipping: Money!
11416
11899
 
11900
+ """Manual ledger adjustments that affected the payout"""
11901
+ adjustments: Money!
11902
+
11417
11903
  """Total for this payout"""
11418
11904
  total: Money!
11419
11905
 
@@ -11966,6 +12452,23 @@ type Payment implements Node & ObjectWithMetadata {
11966
12452
  """List of all transactions within this payment."""
11967
12453
  transactions: [Transaction!]!
11968
12454
 
12455
+ """
12456
+ Database-level financial audit trail. Captures every field change via row-level PostgreSQL triggers — charge status transitions, captured amount changes, and more.
12457
+ """
12458
+ auditEvents(
12459
+ """Returns the items in the list that come before the specified cursor."""
12460
+ before: String = null
12461
+
12462
+ """Returns the items in the list that come after the specified cursor."""
12463
+ after: String = null
12464
+
12465
+ """Returns the first n items from the list."""
12466
+ first: Int = null
12467
+
12468
+ """Returns the items in the list that come after the specified cursor."""
12469
+ last: Int = null
12470
+ ): PaymentEventCountableConnection!
12471
+
11969
12472
  """ID of the checkout this payment is for."""
11970
12473
  checkoutId: ID
11971
12474
 
@@ -12050,6 +12553,75 @@ enum PaymentErrorCode {
12050
12553
  INSUFFICIENT_STOCK
12051
12554
  }
12052
12555
 
12556
+ type PaymentEvent implements Node {
12557
+ """The Globally Unique ID of this object"""
12558
+ id: ID!
12559
+ pghCreatedAt: DateTime!
12560
+
12561
+ """
12562
+ Event label: 'payment_created', 'payment_updated', or 'payment_removed'.
12563
+ """
12564
+ pghLabel: String!
12565
+ pghContextId: NauticalUUID
12566
+
12567
+ """JSON context captured at event time."""
12568
+ pghContext: JSONString
12569
+
12570
+ """Payment gateway at time of event."""
12571
+ gateway: String!
12572
+
12573
+ """Charge status at time of event."""
12574
+ chargeStatus: String!
12575
+
12576
+ """Total payment amount at time of event."""
12577
+ total: Decimal!
12578
+
12579
+ """Captured amount at time of event."""
12580
+ capturedAmount: Decimal!
12581
+
12582
+ """Currency code at time of event."""
12583
+ currency: String!
12584
+
12585
+ """Whether payment was active at time of event."""
12586
+ isActive: Boolean!
12587
+
12588
+ """Payment token at time of event."""
12589
+ token: String!
12590
+
12591
+ """Email of user who made the change."""
12592
+ changedByEmail: String
12593
+
12594
+ """Tenant ID where the change occurred."""
12595
+ tenantId: Int
12596
+
12597
+ """App name if change was via API token."""
12598
+ appName: String
12599
+
12600
+ """Celery task name if change was async."""
12601
+ taskName: String
12602
+ }
12603
+
12604
+ """A connection to a list of items."""
12605
+ type PaymentEventCountableConnection {
12606
+ """Pagination data for this connection"""
12607
+ pageInfo: PageInfo!
12608
+
12609
+ """Contains the nodes in this connection"""
12610
+ edges: [PaymentEventCountableEdge!]!
12611
+
12612
+ """Total quantity of existing nodes."""
12613
+ totalCount: Int!
12614
+ }
12615
+
12616
+ """An edge in a connection."""
12617
+ type PaymentEventCountableEdge {
12618
+ """A cursor for use in pagination"""
12619
+ cursor: String!
12620
+
12621
+ """The item at the end of the edge"""
12622
+ node: PaymentEvent!
12623
+ }
12624
+
12053
12625
  """
12054
12626
  Available payment gateway backend with configuration necessary to setup client.
12055
12627
  """
@@ -16005,6 +16577,26 @@ type Query {
16005
16577
  last: Int = null
16006
16578
  ): AgreementEventCountableConnection!
16007
16579
 
16580
+ """
16581
+ Unified timeline of ALL change events for an agreement and its related models (commissions, fees, seller assignments). Requires MANAGE_AGREEMENTS permission.
16582
+ """
16583
+ agreementTimeline(
16584
+ id: ID!
16585
+ includeRelated: Boolean! = true
16586
+
16587
+ """Returns the items in the list that come before the specified cursor."""
16588
+ before: String = null
16589
+
16590
+ """Returns the items in the list that come after the specified cursor."""
16591
+ after: String = null
16592
+
16593
+ """Returns the first n items from the list."""
16594
+ first: Int = null
16595
+
16596
+ """Returns the items in the list that come after the specified cursor."""
16597
+ last: Int = null
16598
+ ): AgreementTimelineEventCountableConnection!
16599
+
16008
16600
  """Return the shop resource."""
16009
16601
  shop: Shop!
16010
16602
 
@@ -16564,6 +17156,80 @@ type Refund implements Node & ObjectWithMetadata {
16564
17156
  """Returns the items in the list that come after the specified cursor."""
16565
17157
  last: Int = null
16566
17158
  ): RefundPaymentCountableConnection!
17159
+
17160
+ """
17161
+ Database-level financial audit trail. Captures every field change via row-level PostgreSQL triggers — status transitions and more.
17162
+ """
17163
+ auditEvents(
17164
+ """Returns the items in the list that come before the specified cursor."""
17165
+ before: String = null
17166
+
17167
+ """Returns the items in the list that come after the specified cursor."""
17168
+ after: String = null
17169
+
17170
+ """Returns the first n items from the list."""
17171
+ first: Int = null
17172
+
17173
+ """Returns the items in the list that come after the specified cursor."""
17174
+ last: Int = null
17175
+ ): RefundAuditEventCountableConnection!
17176
+ }
17177
+
17178
+ type RefundAuditEvent implements Node {
17179
+ """The Globally Unique ID of this object"""
17180
+ id: ID!
17181
+ pghCreatedAt: DateTime!
17182
+
17183
+ """
17184
+ Event label: 'refund_requested', 'refund_updated', or 'refund_removed'.
17185
+ """
17186
+ pghLabel: String!
17187
+ pghContextId: NauticalUUID
17188
+
17189
+ """JSON context captured at event time."""
17190
+ pghContext: JSONString
17191
+
17192
+ """Refund name at time of event."""
17193
+ name: String!
17194
+
17195
+ """Refund status at time of event."""
17196
+ status: String!
17197
+
17198
+ """Refund token."""
17199
+ token: String!
17200
+
17201
+ """Email of user who made the change."""
17202
+ changedByEmail: String
17203
+
17204
+ """Tenant ID where the change occurred."""
17205
+ tenantId: Int
17206
+
17207
+ """App name if change was via API token."""
17208
+ appName: String
17209
+
17210
+ """Celery task name if change was async."""
17211
+ taskName: String
17212
+ }
17213
+
17214
+ """A connection to a list of items."""
17215
+ type RefundAuditEventCountableConnection {
17216
+ """Pagination data for this connection"""
17217
+ pageInfo: PageInfo!
17218
+
17219
+ """Contains the nodes in this connection"""
17220
+ edges: [RefundAuditEventCountableEdge!]!
17221
+
17222
+ """Total quantity of existing nodes."""
17223
+ totalCount: Int!
17224
+ }
17225
+
17226
+ """An edge in a connection."""
17227
+ type RefundAuditEventCountableEdge {
17228
+ """A cursor for use in pagination"""
17229
+ cursor: String!
17230
+
17231
+ """The item at the end of the edge"""
17232
+ node: RefundAuditEvent!
16567
17233
  }
16568
17234
 
16569
17235
  """Result of bulk refund delete mutation."""
@@ -17542,6 +18208,23 @@ type Seller implements Node & ObjectWithMetadata {
17542
18208
  last: Int = null
17543
18209
  ): SellerEventTypeCountableConnection!
17544
18210
 
18211
+ """
18212
+ Database-level audit trail for this seller. Captures every field change via PostgreSQL triggers, including status transitions, payout config changes, and profile updates.
18213
+ """
18214
+ auditEvents(
18215
+ """Returns the items in the list that come before the specified cursor."""
18216
+ before: String = null
18217
+
18218
+ """Returns the items in the list that come after the specified cursor."""
18219
+ after: String = null
18220
+
18221
+ """Returns the first n items from the list."""
18222
+ first: Int = null
18223
+
18224
+ """Returns the items in the list that come after the specified cursor."""
18225
+ last: Int = null
18226
+ ): SellerAuditEventCountableConnection!
18227
+
17545
18228
  """Orders for this seller"""
17546
18229
  orders(
17547
18230
  """Returns the items in the list that come before the specified cursor."""
@@ -17836,6 +18519,93 @@ input SellerApplicationUpdateInput {
17836
18519
  checkpoint: SellerApplicationCheckpoint = null
17837
18520
  }
17838
18521
 
18522
+ type SellerAuditEvent implements Node {
18523
+ """The Globally Unique ID of this object"""
18524
+ id: ID!
18525
+ pghCreatedAt: DateTime!
18526
+
18527
+ """
18528
+ Event label: 'seller_registered', 'seller_updated', or 'seller_deleted'.
18529
+ """
18530
+ pghLabel: String!
18531
+ pghContextId: NauticalUUID
18532
+
18533
+ """JSON context captured at event time (user, app, tenant info)."""
18534
+ pghContext: JSONString
18535
+
18536
+ """Company name at time of event."""
18537
+ companyName: String!
18538
+
18539
+ """Seller slug at time of event."""
18540
+ slug: String!
18541
+
18542
+ """Seller status at time of event."""
18543
+ status: String!
18544
+
18545
+ """Whether this is the marketplace's own seller entity."""
18546
+ isMarketplaceSeller: Boolean!
18547
+
18548
+ """Default currency at time of event."""
18549
+ defaultCurrency: String!
18550
+
18551
+ """Whether orders are fulfilled by marketplace at time of event."""
18552
+ fulfilledByMarketplace: Boolean!
18553
+
18554
+ """Store description at time of event."""
18555
+ storeDescription: String!
18556
+
18557
+ """Agreement decision reason at time of event."""
18558
+ agreementDecisionReason: String!
18559
+
18560
+ """External payout source (stripe/paypal/trolley) at time of event."""
18561
+ externalPayoutSource: String
18562
+
18563
+ """External payout account ID at time of event."""
18564
+ externalPayoutAccountId: String
18565
+
18566
+ """Email of user who made the change."""
18567
+ userEmail: String
18568
+
18569
+ """Global ID of user who made the change."""
18570
+ userId: String
18571
+
18572
+ """Tenant ID where the change occurred."""
18573
+ tenantId: Int
18574
+
18575
+ """Tenant slug where the change occurred."""
18576
+ tenantSlug: String
18577
+
18578
+ """App name if change was via API token."""
18579
+ appName: String
18580
+
18581
+ """Global ID of app if change was via API token."""
18582
+ appId: String
18583
+
18584
+ """Celery task name if change was async."""
18585
+ taskName: String
18586
+ }
18587
+
18588
+ """A connection to a list of items."""
18589
+ type SellerAuditEventCountableConnection {
18590
+ """Pagination data for this connection"""
18591
+ pageInfo: PageInfo!
18592
+
18593
+ """Contains the nodes in this connection"""
18594
+ edges: [SellerAuditEventCountableEdge!]!
18595
+
18596
+ """Total quantity of existing nodes."""
18597
+ totalCount: Int!
18598
+ }
18599
+
18600
+ """An edge in a connection."""
18601
+ type SellerAuditEventCountableEdge {
18602
+ """A cursor for use in pagination"""
18603
+ cursor: String!
18604
+
18605
+ """The item at the end of the edge"""
18606
+ node: SellerAuditEvent!
18607
+ }
18608
+
17839
18609
  """Result of seller banner delete mutation."""
17840
18610
  type SellerBannerDelete {
17841
18611
  """The seller with banner removed."""
@@ -20550,6 +21320,23 @@ type VendorPayout implements Node & ObjectWithMetadata {
20550
21320
  """Events/history for this vendor payout."""
20551
21321
  events(eventTypes: [VendorPayoutEventsEnum!] = null): [VendorPayoutEvent!]!
20552
21322
 
21323
+ """
21324
+ Database-level financial audit trail for this payout. Captures every field change via PostgreSQL row-level triggers, including amount adjustments, status transitions, and fee recalculations.
21325
+ """
21326
+ auditEvents(
21327
+ """Returns the items in the list that come before the specified cursor."""
21328
+ before: String = null
21329
+
21330
+ """Returns the items in the list that come after the specified cursor."""
21331
+ after: String = null
21332
+
21333
+ """Returns the first n items from the list."""
21334
+ first: Int = null
21335
+
21336
+ """Returns the items in the list that come after the specified cursor."""
21337
+ last: Int = null
21338
+ ): VendorPayoutAuditEventCountableConnection!
21339
+
20553
21340
  """Orders included in this vendor payout."""
20554
21341
  orders(
20555
21342
  """Returns the items in the list that come before the specified cursor."""
@@ -20572,6 +21359,109 @@ input VendorPayoutAddNoteInput {
20572
21359
  message: String!
20573
21360
  }
20574
21361
 
21362
+ type VendorPayoutAuditEvent implements Node {
21363
+ """The Globally Unique ID of this object"""
21364
+ id: ID!
21365
+ pghCreatedAt: DateTime!
21366
+
21367
+ """Event label: 'payout_created', 'payout_updated', or 'payout_removed'."""
21368
+ pghLabel: String!
21369
+ pghContextId: NauticalUUID
21370
+
21371
+ """JSON context captured at event time (user, app, tenant info)."""
21372
+ pghContext: JSONString
21373
+
21374
+ """Currency code at time of event."""
21375
+ currency: String!
21376
+
21377
+ """Payout status at time of event."""
21378
+ status: String!
21379
+
21380
+ """Status message at time of event."""
21381
+ statusMessage: String
21382
+
21383
+ """Whether payout was included in batch."""
21384
+ included: Boolean!
21385
+
21386
+ """Payment gateway at time of event."""
21387
+ gateway: String!
21388
+
21389
+ """Net amount at time of event."""
21390
+ net: Decimal!
21391
+
21392
+ """Shipping amount at time of event."""
21393
+ shipping: Decimal!
21394
+
21395
+ """Commission amount at time of event."""
21396
+ commission: Decimal!
21397
+
21398
+ """Fee amount at time of event."""
21399
+ feeAmount: Decimal!
21400
+
21401
+ """Payout amount (payable) at time of event."""
21402
+ payoutAmount: Decimal!
21403
+
21404
+ """Adjustment amount at time of event."""
21405
+ adjustmentAmount: Decimal!
21406
+
21407
+ """Refund amount at time of event."""
21408
+ refundAmount: Decimal!
21409
+
21410
+ """Discounts at time of event."""
21411
+ discounts: Decimal!
21412
+
21413
+ """Volume discounts at time of event."""
21414
+ volumeDiscounts: Decimal!
21415
+
21416
+ """Average order value at time of event."""
21417
+ average: Decimal!
21418
+
21419
+ """Version of seller payable ledger used to initialize this payout."""
21420
+ ledgerVersion: Int!
21421
+
21422
+ """Email of user who made the change."""
21423
+ userEmail: String
21424
+
21425
+ """Global ID of user who made the change."""
21426
+ userId: String
21427
+
21428
+ """Tenant ID where the change occurred."""
21429
+ tenantId: Int
21430
+
21431
+ """Tenant slug where the change occurred."""
21432
+ tenantSlug: String
21433
+
21434
+ """App name if change was via API token."""
21435
+ appName: String
21436
+
21437
+ """Global ID of app if change was via API token."""
21438
+ appId: String
21439
+
21440
+ """Celery task name if change was async."""
21441
+ taskName: String
21442
+ }
21443
+
21444
+ """A connection to a list of items."""
21445
+ type VendorPayoutAuditEventCountableConnection {
21446
+ """Pagination data for this connection"""
21447
+ pageInfo: PageInfo!
21448
+
21449
+ """Contains the nodes in this connection"""
21450
+ edges: [VendorPayoutAuditEventCountableEdge!]!
21451
+
21452
+ """Total quantity of existing nodes."""
21453
+ totalCount: Int!
21454
+ }
21455
+
21456
+ """An edge in a connection."""
21457
+ type VendorPayoutAuditEventCountableEdge {
21458
+ """A cursor for use in pagination"""
21459
+ cursor: String!
21460
+
21461
+ """The item at the end of the edge"""
21462
+ node: VendorPayoutAuditEvent!
21463
+ }
21464
+
20575
21465
  """A connection to a list of items."""
20576
21466
  type VendorPayoutCountableConnection {
20577
21467
  """Pagination data for this connection"""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nautical-commerce/graphql-schema",
3
- "version": "v3.6.16",
3
+ "version": "v3.7.0",
4
4
  "description": "Traide API GraphQL Schema",
5
5
  "main": "./nautical/schema.graphql",
6
6
  "scripts": {