@nautical-commerce/graphql-schema 1.99.3 → 2.0.0-1-g0a7128528

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.
@@ -1490,6 +1490,12 @@ type Query {
1490
1490
  """List of all tax rates available from tax gateway."""
1491
1491
  taxTypes: [TaxType!]!
1492
1492
 
1493
+ """List of all events for the given object."""
1494
+ events(
1495
+ """ID of an object."""
1496
+ id: ID!
1497
+ ): [Event!]!
1498
+
1493
1499
  """Look up a checkout by token."""
1494
1500
  checkout(
1495
1501
  """The checkout's token."""
@@ -5803,6 +5809,11 @@ type Order implements Node & ObjectWithMetadata {
5803
5809
 
5804
5810
  """Voucher discount for the order"""
5805
5811
  voucherDiscount: Money
5812
+
5813
+ """
5814
+ Financial snapshot for the order taken at the time of order finalization.
5815
+ """
5816
+ financials: FinancialsSnapshot
5806
5817
  }
5807
5818
 
5808
5819
  """An enumeration."""
@@ -6574,6 +6585,64 @@ type ValidationStatus {
6574
6585
  variant: ID
6575
6586
  }
6576
6587
 
6588
+ type FinancialsSnapshot {
6589
+ """Default commission for the order"""
6590
+ defaultCommission: PositiveDecimal
6591
+
6592
+ """Granular commissions for the order"""
6593
+ granularCommissions: [FinancialsCategoryCommission!]
6594
+
6595
+ """Agreement fees for the order"""
6596
+ fees: [FinancialsFee!]
6597
+ }
6598
+
6599
+ """
6600
+ Positive Decimal scalar implementation.
6601
+
6602
+ Should be used in places where value must be positive.
6603
+ """
6604
+ scalar PositiveDecimal
6605
+
6606
+ type FinancialsCategoryCommission {
6607
+ """Commission applied to products in this category for this order"""
6608
+ commission: PositiveDecimal
6609
+
6610
+ """ID of the commission"""
6611
+ id: String
6612
+
6613
+ """Category this commission applies to"""
6614
+ relatedObject: CategoryIdentity
6615
+ }
6616
+
6617
+ """GraphQL type for CategoryIdentitySchema"""
6618
+ type CategoryIdentity {
6619
+ """ID of the category"""
6620
+ id: String
6621
+
6622
+ """Name of the category"""
6623
+ name: String
6624
+
6625
+ """Slug of the category"""
6626
+ slug: String
6627
+ }
6628
+
6629
+ type FinancialsFee {
6630
+ """Name of the fee"""
6631
+ feeName: String
6632
+
6633
+ """Scope of the fee"""
6634
+ feeScope: String
6635
+
6636
+ """Type of the fee"""
6637
+ feeType: String
6638
+
6639
+ """Amount of the fee"""
6640
+ feeValue: PositiveDecimal
6641
+
6642
+ """ID of the fee"""
6643
+ id: String
6644
+ }
6645
+
6577
6646
  """An enumeration."""
6578
6647
  enum FulfillmentStatus {
6579
6648
  """Fulfilled"""
@@ -7166,13 +7235,6 @@ type ProductDimensions {
7166
7235
  unit: LengthUnitsStrEnum
7167
7236
  }
7168
7237
 
7169
- """
7170
- Positive Decimal scalar implementation.
7171
-
7172
- Should be used in places where value must be positive.
7173
- """
7174
- scalar PositiveDecimal
7175
-
7176
7238
  type WarningMessageItem {
7177
7239
  """Code of the warning message."""
7178
7240
  code: ProductWarningEnum!
@@ -11429,6 +11491,48 @@ enum ExportFileSortField {
11429
11491
  UPDATED_AT
11430
11492
  }
11431
11493
 
11494
+ """Event object for all models."""
11495
+ type Event {
11496
+ """The unique identifier across all event tables."""
11497
+ slug: String!
11498
+
11499
+ """The event model label formatted as 'app_label.ModelName'."""
11500
+ model: String!
11501
+
11502
+ """The primary key of the event."""
11503
+ id: BigInt!
11504
+
11505
+ """When the event was created."""
11506
+ createdAt: DateTime!
11507
+
11508
+ """The event label."""
11509
+ label: String!
11510
+
11511
+ """The raw data of the event."""
11512
+ data: GenericScalar!
11513
+
11514
+ """
11515
+ The diff against the previous event of the same event model and object, can be null if the event is an insert.
11516
+ """
11517
+ diff: GenericScalar
11518
+
11519
+ """
11520
+ The context UUID, can be null if the event is not associated with a user or app.
11521
+ """
11522
+ contextId: NauticalUUID
11523
+
11524
+ """
11525
+ The context JSON associated with the event, can be null if the event is not associated with a user or app.
11526
+ """
11527
+ context: GenericScalar
11528
+
11529
+ """The object model."""
11530
+ objModel: String!
11531
+
11532
+ """The primary key of the object."""
11533
+ objId: String!
11534
+ }
11535
+
11432
11536
  type CheckoutCountableConnection {
11433
11537
  """Pagination data for this connection."""
11434
11538
  pageInfo: PageInfo!
@@ -11826,7 +11930,7 @@ type Mutation {
11826
11930
  description: String
11827
11931
 
11828
11932
  """
11829
- Used when uploading a new document or file in a multipart request that does not exist in the system already. Supported file types: image/heif-sequence, image/x-dxf, application/tif, image/x-eps, image/png, application/x-autocad, application/x-tif, drawing/x-dwg, application/x-acad, application/dwg, application/vnd.openxmlformats-officedocument.presentationml.slideshow, application/acad, application/jpg, text/pdf, application/zip, application/x-rar-compressed, drawing/dwg, text/svg-xml, application/x-rtf, image/eps, application/x-eps, image/webp, application/gzip-compressed, image/x-tiff, image/heif, pplication/vnd.rar, image/heic, application/x-tar, application/x-dxf, application/x-dwg, image/gif, application/acrobat, image/bmp, application/x-rar, image/svg+xml, application/tiff, application/gzipped, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/x-pdf, text/rtf, application/vnd.pdf, image/vnd.dwg, application/x-gzip, application/pdf, application/x-jpg, image/jpeg, image/x-bmp, application/svg+xml, text/x-pdf, image/jpg, application/excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, image/x-dwg, application/vnd.ms-word, application/rtf, image/x-ms-bmp, image/x-tif, image/dxf, text/plain, application/vnd.oasis.opendocument.presentation, image/svg, text/comma-separated-values, application/gzip, application/vnd.oasis.opendocument.spreadsheet, application/eps, text/csv, application/postscript, image/tif, application/msword, drawing/x-dwf, text/x-csv, application/x-zip-compressed, application/vnd.oasis.opendocument.text, text/x-comma-separated-values, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/dxf, text/svg, application/x-tiff, image/heic-sequence, application/csv, image/tiff, application/x-csv, application/vnd.openxmlformats-officedocument.presentationml.presentation.
11933
+ Used when uploading a new document or file in a multipart request that does not exist in the system already. Supported file types: application/x-zip-compressed, text/svg, application/x-tiff, application/x-dwg, application/svg+xml, application/vnd.ms-word, image/svg, image/x-eps, application/vnd.ms-powerpoint, application/gzip, application/x-rar, application/x-tif, application/zip, image/heic-sequence, application/x-rar-compressed, text/pdf, application/vnd.oasis.opendocument.text, image/heif-sequence, image/x-dwg, application/vnd.openxmlformats-officedocument.wordprocessingml.document, drawing/x-dwf, application/postscript, image/jpg, application/x-tar, application/jpg, application/x-jpg, application/vnd.ms-excel, image/x-ms-bmp, application/tiff, image/x-tiff, text/rtf, image/heif, image/eps, application/x-autocad, application/x-acad, application/excel, application/gzip-compressed, image/x-dxf, drawing/dwg, text/x-csv, application/tif, text/svg-xml, application/vnd.openxmlformats-officedocument.presentationml.presentation, image/x-tif, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, image/tiff, image/bmp, image/tif, application/vnd.openxmlformats-officedocument.presentationml.slideshow, application/dwg, application/msword, text/csv, application/dxf, application/x-dxf, application/x-csv, application/gzipped, pplication/vnd.rar, text/comma-separated-values, image/vnd.dwg, application/x-pdf, image/png, image/x-bmp, image/svg+xml, application/rtf, application/vnd.pdf, image/jpeg, application/x-eps, drawing/x-dwg, application/eps, image/heic, image/webp, application/vnd.oasis.opendocument.spreadsheet, application/acrobat, application/csv, application/vnd.oasis.opendocument.presentation, application/x-rtf, application/acad, application/pdf, image/dxf, text/x-comma-separated-values, text/plain, image/gif, text/x-pdf, application/x-gzip.
11830
11934
  """
11831
11935
  file: Upload!
11832
11936
 
@@ -14055,11 +14159,6 @@ type Mutation {
14055
14159
  ID of the user to override with (only available for use by Marketplace Administrators)
14056
14160
  """
14057
14161
  userOverride: ID
14058
-
14059
- """
14060
- Determines whether the email sent out is catered to carriers instead of customers
14061
- """
14062
- vehicles: Boolean = false @deprecated(reason: "This will be removed on September 26, 2025")
14063
14162
  ): CheckoutComplete
14064
14163
 
14065
14164
  """Create a new checkout."""
@@ -14203,7 +14302,7 @@ type Mutation {
14203
14302
  """Deletes a checkout."""
14204
14303
  checkoutDelete(
14205
14304
  """Token of a checkout to delete."""
14206
- token: UUID!
14305
+ token: NauticalUUID!
14207
14306
  ): CheckoutDelete
14208
14307
 
14209
14308
  """Adds purchase order number to a checkout."""
@@ -21101,6 +21200,7 @@ enum AccountErrorCode {
21101
21200
  OUT_OF_SCOPE_USER
21102
21201
  OUT_OF_SCOPE_GROUP
21103
21202
  OUT_OF_SCOPE_PERMISSION
21203
+ OUT_OF_SCOPE_SELLER
21104
21204
  PASSWORD_ENTIRELY_NUMERIC
21105
21205
  PASSWORD_IDENTICAL
21106
21206
  PASSWORD_TOO_COMMON
@@ -21400,9 +21500,6 @@ input UserCreateInput {
21400
21500
  """User account is active."""
21401
21501
  isActive: Boolean
21402
21502
 
21403
- """User is staff member."""
21404
- isStaff: Boolean
21405
-
21406
21503
  """A note about the user."""
21407
21504
  note: String
21408
21505
 
@@ -21460,9 +21557,6 @@ input CustomerInput {
21460
21557
  """User account is active."""
21461
21558
  isActive: Boolean
21462
21559
 
21463
- """User is staff member."""
21464
- isStaff: Boolean
21465
-
21466
21560
  """A note about the user."""
21467
21561
  note: String
21468
21562
 
@@ -21488,6 +21582,19 @@ input CustomerInput {
21488
21582
  Indicates whether a 'set password' email should be sent to the customer.
21489
21583
  """
21490
21584
  sendCustomerSetPasswordEmail: Boolean
21585
+
21586
+ """True if the customer is being upraded to a staff member."""
21587
+ isStaff: Boolean
21588
+
21589
+ """
21590
+ Seller to add customer to during staff upgrade, if no seller is supplied a new seller will be created.
21591
+ """
21592
+ seller: ID
21593
+
21594
+ """
21595
+ List of permission group IDs to which customer should be assigned during staff upgrade.
21596
+ """
21597
+ addGroups: [ID!]
21491
21598
  }
21492
21599
 
21493
21600
  """Deletes a customer."""
@@ -21544,9 +21651,6 @@ input StaffCreateInput {
21544
21651
  """User account is active."""
21545
21652
  isActive: Boolean
21546
21653
 
21547
- """User is staff member."""
21548
- isStaff: Boolean
21549
-
21550
21654
  """A note about the user."""
21551
21655
  note: String
21552
21656
 
@@ -21596,9 +21700,6 @@ input StaffUpdateInput {
21596
21700
  """User account is active."""
21597
21701
  isActive: Boolean
21598
21702
 
21599
- """User is staff member."""
21600
- isStaff: Boolean
21601
-
21602
21703
  """A note about the user."""
21603
21704
  note: String
21604
21705
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nautical-commerce/graphql-schema",
3
- "version": "v1.99.3",
3
+ "version": "v2.0.0-1-g0a7128528",
4
4
  "description": "## Getting Started",
5
5
  "main": "./nautical/schema.graphql",
6
6
  "scripts": {