@nautical-commerce/graphql-schema 4.13.0 → 4.15.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.
@@ -240,6 +240,12 @@ input AccountRegisterInput {
240
240
  defaultShippingAddress: AddressInput = null
241
241
  }
242
242
 
243
+ """Result of account confirmation resend request."""
244
+ type AccountRequestConfirmation {
245
+ """List of errors that occurred executing the mutation."""
246
+ accountErrors: [AccountError!]!
247
+ }
248
+
243
249
  """Result of account request deletion mutation."""
244
250
  type AccountRequestDeletion {
245
251
  """The user requesting deletion."""
@@ -1381,6 +1387,11 @@ input AppInput {
1381
1387
  name: String = null
1382
1388
  permissions: [PermissionEnum!] = null
1383
1389
  user: ID = null
1390
+
1391
+ """
1392
+ The seller this app acts for. A caller who is not a marketplace operator may only name a seller they belong to. On CREATE, omitting it yields a marketplace-level app for an operator and the caller's own seller otherwise; on UPDATE, omitting it leaves the app's seller unchanged and passing null returns the app to marketplace-level.
1393
+ """
1394
+ seller: ID
1384
1395
  }
1385
1396
 
1386
1397
  """Fields available for sorting apps"""
@@ -10911,6 +10922,11 @@ type Mutation {
10911
10922
  """Change password of the logged in user."""
10912
10923
  passwordChange(oldPassword: String!, newPassword: String!): PasswordChange!
10913
10924
 
10925
+ """
10926
+ Re-sends the account confirmation email for an account that has not been confirmed yet. Always reports success, whether or not the address has an account and whether or not it is already confirmed.
10927
+ """
10928
+ accountRequestConfirmation(email: String!, redirectUrl: String!): AccountRequestConfirmation!
10929
+
10914
10930
  """Confirm user account with token sent by email during registration."""
10915
10931
  accountConfirm(token: String!, email: String!): AccountConfirm!
10916
10932
 
@@ -12066,6 +12082,7 @@ input NauticalOrderFilterInput {
12066
12082
  source: [OrderSourceFilter!]
12067
12083
  subStatus: [OrderSubStatusEnum!]
12068
12084
  customer: String
12085
+ seller: ID
12069
12086
  search: String
12070
12087
  created: DateRangeInput
12071
12088
  isHistorical: Boolean
@@ -15021,6 +15038,8 @@ enum PluginConfigurationCategory {
15021
15038
  TAXES
15022
15039
  MARKETING
15023
15040
  PAYMENTS
15041
+ SEARCH
15042
+ REVIEWS
15024
15043
  }
15025
15044
 
15026
15045
  type PluginCountableConnection {
@@ -15510,6 +15529,11 @@ type Product implements Node & ObjectWithMetadata {
15510
15529
  """List of images for this product"""
15511
15530
  images: [ProductImage!]!
15512
15531
 
15532
+ """
15533
+ Aggregated rating data for this product. Null when no reviews have been collected yet.
15534
+ """
15535
+ reviewSummary: ProductReviewSummary
15536
+
15513
15537
  """List of videos for this product"""
15514
15538
  videos: [ProductVideo!]!
15515
15539
 
@@ -15680,7 +15704,9 @@ type ProductBulkCreate {
15680
15704
  """List of the created or updated products."""
15681
15705
  products: [Product!]!
15682
15706
 
15683
- """List of errors that occurred executing the mutation."""
15707
+ """
15708
+ List of errors that occurred executing the mutation. An entry's `index` identifies the input row it came from. Note that an entry with `field: "image"` does NOT mean the row failed: that product was created and only its rejected image was dropped, so treating every `index` in this list as a failed row would mark a successfully created product as failed.
15709
+ """
15684
15710
  bulkProductErrors: [BulkProductError!]!
15685
15711
  }
15686
15712
 
@@ -16538,6 +16564,25 @@ type ProductReorderVariants {
16538
16564
  productErrors: [ProductError!]!
16539
16565
  }
16540
16566
 
16567
+ """Aggregated rating data for a product."""
16568
+ type ProductReviewSummary implements Node {
16569
+ """The Globally Unique ID of this object"""
16570
+ id: ID!
16571
+
16572
+ """
16573
+ Mean rating from 1 to 5. Null means no reviews have been collected yet, which is distinct from a genuine average of zero.
16574
+ """
16575
+ averageRating: PositiveDecimal
16576
+
16577
+ """Total number of reviews counted in the average."""
16578
+ reviewCount: Int!
16579
+
16580
+ """
16581
+ Star histogram, ascending by rating. Only ratings 1 through 5 are reported; ratings with no reviews are omitted.
16582
+ """
16583
+ ratingDistribution: [RatingDistributionBucket!]!
16584
+ }
16585
+
16541
16586
  """Fields available for product search"""
16542
16587
  enum ProductSearchFieldEnum {
16543
16588
  NAME
@@ -17251,7 +17296,9 @@ type ProductVariantBulkCreate {
17251
17296
  """The created product variants."""
17252
17297
  productVariants: [ProductVariant!]!
17253
17298
 
17254
- """List of errors that occurred executing the mutation."""
17299
+ """
17300
+ List of errors that occurred executing the mutation. Carries two kinds. If `count` is 0 and `productVariants` is empty the batch was rejected outright and nothing was created. Otherwise the batch committed and any entry with `field: "image"` is advisory: that row's image was rejected and dropped, but the variant at `index` was created.
17301
+ """
17255
17302
  productErrors: [BulkProductError!]!
17256
17303
 
17257
17304
  """List of errors that occurred executing the mutation (Graphene alias)."""
@@ -19504,6 +19551,15 @@ type Query {
19504
19551
  nodes(ids: [ID!]!): [Node]!
19505
19552
  }
19506
19553
 
19554
+ """Number of reviews submitted at one star rating."""
19555
+ type RatingDistributionBucket {
19556
+ """Star rating."""
19557
+ rating: Int!
19558
+
19559
+ """Number of reviews at this rating."""
19560
+ count: Int!
19561
+ }
19562
+
19507
19563
  """The recipient type for an email template."""
19508
19564
  enum RecipientTypeEnum {
19509
19565
  CUSTOMER
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nautical-commerce/graphql-schema",
3
- "version": "4.13.0",
3
+ "version": "4.15.0",
4
4
  "description": "Traide API GraphQL Schema",
5
5
  "main": "./nautical/schema.graphql",
6
6
  "scripts": {