@nautical-commerce/graphql-schema 4.14.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
 
@@ -15022,6 +15038,8 @@ enum PluginConfigurationCategory {
15022
15038
  TAXES
15023
15039
  MARKETING
15024
15040
  PAYMENTS
15041
+ SEARCH
15042
+ REVIEWS
15025
15043
  }
15026
15044
 
15027
15045
  type PluginCountableConnection {
@@ -15511,6 +15529,11 @@ type Product implements Node & ObjectWithMetadata {
15511
15529
  """List of images for this product"""
15512
15530
  images: [ProductImage!]!
15513
15531
 
15532
+ """
15533
+ Aggregated rating data for this product. Null when no reviews have been collected yet.
15534
+ """
15535
+ reviewSummary: ProductReviewSummary
15536
+
15514
15537
  """List of videos for this product"""
15515
15538
  videos: [ProductVideo!]!
15516
15539
 
@@ -15681,7 +15704,9 @@ type ProductBulkCreate {
15681
15704
  """List of the created or updated products."""
15682
15705
  products: [Product!]!
15683
15706
 
15684
- """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
+ """
15685
15710
  bulkProductErrors: [BulkProductError!]!
15686
15711
  }
15687
15712
 
@@ -16539,6 +16564,25 @@ type ProductReorderVariants {
16539
16564
  productErrors: [ProductError!]!
16540
16565
  }
16541
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
+
16542
16586
  """Fields available for product search"""
16543
16587
  enum ProductSearchFieldEnum {
16544
16588
  NAME
@@ -17252,7 +17296,9 @@ type ProductVariantBulkCreate {
17252
17296
  """The created product variants."""
17253
17297
  productVariants: [ProductVariant!]!
17254
17298
 
17255
- """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
+ """
17256
17302
  productErrors: [BulkProductError!]!
17257
17303
 
17258
17304
  """List of errors that occurred executing the mutation (Graphene alias)."""
@@ -19505,6 +19551,15 @@ type Query {
19505
19551
  nodes(ids: [ID!]!): [Node]!
19506
19552
  }
19507
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
+
19508
19563
  """The recipient type for an email template."""
19509
19564
  enum RecipientTypeEnum {
19510
19565
  CUSTOMER
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nautical-commerce/graphql-schema",
3
- "version": "4.14.0",
3
+ "version": "4.15.0",
4
4
  "description": "Traide API GraphQL Schema",
5
5
  "main": "./nautical/schema.graphql",
6
6
  "scripts": {