@nautical-commerce/graphql-schema 4.20.1 → 4.20.3

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.
@@ -10033,6 +10033,16 @@ type Mutation {
10033
10033
  """Remove a user from a seller. Only for marketplace operators."""
10034
10034
  sellerUserMappingDelete(input: SellerUserInput!): SellerUserMappingDelete!
10035
10035
 
10036
+ """
10037
+ Delete a seller, with what belongs only to it. Refused with CANNOT_DELETE while anything deleting it must not destroy remains, such as products, orders or a staff user on no other seller; Seller.deletionPlan says what. NOT_FOUND when another request deletes it while this one runs. Requires MANAGE_MARKETPLACE.
10038
+ """
10039
+ sellerDelete(id: ID!): SellerDelete!
10040
+
10041
+ """
10042
+ Delete sellers, all of them or none. A seller that cannot be deleted stops the batch, and each such seller gets a CANNOT_DELETE error naming it in `sellers`; one another request deletes while this one runs stops it too, with NOT_FOUND. The batch is judged as a whole: a staff user whose only sellers are all in it blocks it. Requires MANAGE_MARKETPLACE.
10043
+ """
10044
+ sellerBulkDelete(ids: [ID!]!): SellerBulkDelete!
10045
+
10036
10046
  """Create an address for a seller. Requires seller access."""
10037
10047
  sellerAddressCreate(sellerId: ID!, input: AddressInput!): SellerAddressCreate!
10038
10048
 
@@ -11653,6 +11663,11 @@ type NauticalOrder implements Node & ObjectWithMetadata {
11653
11663
  """Token of the checkout instance that this order was created from."""
11654
11664
  checkoutToken: String
11655
11665
 
11666
+ """
11667
+ The voucher code this order redeemed. It may be one of the voucher's other codes, so it can differ from `voucher.code`. It outlives the voucher: when the voucher is deleted, `voucher` becomes null and this stays.
11668
+ """
11669
+ voucherCode: String
11670
+
11656
11671
  """External ID for integrations"""
11657
11672
  externalId: String
11658
11673
 
@@ -20842,6 +20857,11 @@ type Seller implements Node & ObjectWithMetadata {
20842
20857
  """Whether payouts are enabled for this seller"""
20843
20858
  externalPayoutStatus: Boolean
20844
20859
 
20860
+ """
20861
+ Whether sellerDelete would delete this seller now, what stops it, and what deleting it deletes or unlinks along with it. Requires MANAGE_MARKETPLACE.
20862
+ """
20863
+ deletionPlan: SellerDeletionPlan
20864
+
20845
20865
  """Seller onboarding checklists"""
20846
20866
  checklists: [SellerOnboardingChecklist!]!
20847
20867
 
@@ -21296,6 +21316,15 @@ type SellerBannerUpdate {
21296
21316
  sellerErrors: [SellerError!]!
21297
21317
  }
21298
21318
 
21319
+ """Result of seller bulk delete mutation."""
21320
+ type SellerBulkDelete {
21321
+ """Number of sellers deleted."""
21322
+ count: Int!
21323
+
21324
+ """List of errors that occurred executing the mutation."""
21325
+ sellerErrors: [SellerError!]!
21326
+ }
21327
+
21299
21328
  """Events that can trigger checklist item completion"""
21300
21329
  enum SellerChecklistCompletionTriggersEnum {
21301
21330
  PAYOUT_ACCOUNT_CREATED
@@ -21363,6 +21392,81 @@ type SellerDataUpdate {
21363
21392
  sellerErrors: [SellerError!]!
21364
21393
  }
21365
21394
 
21395
+ """Result of seller delete mutation."""
21396
+ type SellerDelete {
21397
+ """
21398
+ The deleted seller, as it was immediately before deletion. Refetching it by ID returns null.
21399
+ """
21400
+ seller: Seller
21401
+
21402
+ """List of errors that occurred executing the mutation."""
21403
+ sellerErrors: [SellerError!]!
21404
+ }
21405
+
21406
+ """Something that stops a seller from being deleted."""
21407
+ type SellerDeletionBlocker {
21408
+ """The rule that blocks the deletion."""
21409
+ code: SellerDeletionBlockerCode!
21410
+
21411
+ """How many records the rule found."""
21412
+ count: Int!
21413
+
21414
+ """What blocks the deletion, for a person deciding what to do about it."""
21415
+ message: String!
21416
+ }
21417
+
21418
+ """Why a seller cannot be deleted yet."""
21419
+ enum SellerDeletionBlockerCode {
21420
+ MARKETPLACE_SELLER
21421
+ SOLE_SELLER_OF_STAFF
21422
+ PRODUCTS
21423
+ PRODUCT_VARIANTS
21424
+ ORDERS
21425
+ VENDOR_PAYOUTS
21426
+ LEDGER_ENTRIES
21427
+ ENTITLEMENTS
21428
+ LICENSE_KEY_POOLS
21429
+ CAPACITY_POOLS
21430
+ WEBHOOK_TRANSACTIONS
21431
+ WAREHOUSE_STOCK
21432
+ ATTRIBUTE_VALUES_IN_USE
21433
+ CREATED_ATTRIBUTES
21434
+ CREATED_PRODUCT_TYPES
21435
+ PRODUCT_MEDIA
21436
+ NESTED_MENU_ITEMS
21437
+ REFERENCED_RECORDS
21438
+ }
21439
+
21440
+ """Records that deleting a seller deletes, or keeps and unlinks."""
21441
+ type SellerDeletionImpact {
21442
+ """The records and their count, e.g. "2 warehouses"."""
21443
+ label: String!
21444
+
21445
+ """How many records."""
21446
+ count: Int!
21447
+
21448
+ """Whether the records are deleted, or kept and unlinked from the seller."""
21449
+ action: SellerDeletionImpactAction!
21450
+ }
21451
+
21452
+ """What deleting a seller does to records that reference it."""
21453
+ enum SellerDeletionImpactAction {
21454
+ DELETE
21455
+ UNLINK
21456
+ }
21457
+
21458
+ """Whether a seller can be deleted now, and what deleting it does."""
21459
+ type SellerDeletionPlan {
21460
+ """Whether sellerDelete would delete this seller now."""
21461
+ canDelete: Boolean!
21462
+
21463
+ """What stops the deletion. Empty when canDelete is true."""
21464
+ blockers: [SellerDeletionBlocker!]!
21465
+
21466
+ """What deleting the seller deletes, or keeps and unlinks, along with it."""
21467
+ impacts: [SellerDeletionImpact!]!
21468
+ }
21469
+
21366
21470
  """
21367
21471
  Whether a seller may sell digital-kind products (SPEC-029). SUSPENDED unpublishes the seller's digital products with a stamped warning.
21368
21472
  """
@@ -21381,10 +21485,14 @@ type SellerError {
21381
21485
 
21382
21486
  """The error code."""
21383
21487
  code: SellerErrorCode!
21488
+
21489
+ """IDs of the sellers that caused the error."""
21490
+ sellers: [ID!]
21384
21491
  }
21385
21492
 
21386
21493
  """An enumeration of possible error codes for seller operations."""
21387
21494
  enum SellerErrorCode {
21495
+ CANNOT_DELETE
21388
21496
  GRAPHQL_ERROR
21389
21497
  INVALID
21390
21498
  INVALID_PHONE
@@ -25371,6 +25479,7 @@ enum WebhookEventTypeEnum {
25371
25479
  REFUND_UPDATED
25372
25480
  SELLER_CREATED
25373
25481
  SELLER_UPDATED
25482
+ SELLER_DELETED
25374
25483
  SELLER_AGREEMENT_ACKNOWLEDGED
25375
25484
  SELLER_AGREEMENT_DECLINED
25376
25485
  VARIANT_CREATED
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nautical-commerce/graphql-schema",
3
- "version": "4.20.1",
3
+ "version": "4.20.3",
4
4
  "description": "Traide API GraphQL Schema",
5
5
  "main": "./nautical/schema.graphql",
6
6
  "scripts": {