@nautical-commerce/graphql-schema 4.20.2 → 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
 
@@ -20847,6 +20857,11 @@ type Seller implements Node & ObjectWithMetadata {
20847
20857
  """Whether payouts are enabled for this seller"""
20848
20858
  externalPayoutStatus: Boolean
20849
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
+
20850
20865
  """Seller onboarding checklists"""
20851
20866
  checklists: [SellerOnboardingChecklist!]!
20852
20867
 
@@ -21301,6 +21316,15 @@ type SellerBannerUpdate {
21301
21316
  sellerErrors: [SellerError!]!
21302
21317
  }
21303
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
+
21304
21328
  """Events that can trigger checklist item completion"""
21305
21329
  enum SellerChecklistCompletionTriggersEnum {
21306
21330
  PAYOUT_ACCOUNT_CREATED
@@ -21368,6 +21392,81 @@ type SellerDataUpdate {
21368
21392
  sellerErrors: [SellerError!]!
21369
21393
  }
21370
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
+
21371
21470
  """
21372
21471
  Whether a seller may sell digital-kind products (SPEC-029). SUSPENDED unpublishes the seller's digital products with a stamped warning.
21373
21472
  """
@@ -21386,10 +21485,14 @@ type SellerError {
21386
21485
 
21387
21486
  """The error code."""
21388
21487
  code: SellerErrorCode!
21488
+
21489
+ """IDs of the sellers that caused the error."""
21490
+ sellers: [ID!]
21389
21491
  }
21390
21492
 
21391
21493
  """An enumeration of possible error codes for seller operations."""
21392
21494
  enum SellerErrorCode {
21495
+ CANNOT_DELETE
21393
21496
  GRAPHQL_ERROR
21394
21497
  INVALID
21395
21498
  INVALID_PHONE
@@ -25376,6 +25479,7 @@ enum WebhookEventTypeEnum {
25376
25479
  REFUND_UPDATED
25377
25480
  SELLER_CREATED
25378
25481
  SELLER_UPDATED
25482
+ SELLER_DELETED
25379
25483
  SELLER_AGREEMENT_ACKNOWLEDGED
25380
25484
  SELLER_AGREEMENT_DECLINED
25381
25485
  VARIANT_CREATED
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nautical-commerce/graphql-schema",
3
- "version": "4.20.2",
3
+ "version": "4.20.3",
4
4
  "description": "Traide API GraphQL Schema",
5
5
  "main": "./nautical/schema.graphql",
6
6
  "scripts": {