@nautical-commerce/graphql-schema 4.18.0 → 4.19.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.
- package/nautical/schema.graphql +53 -5
- package/package.json +1 -1
package/nautical/schema.graphql
CHANGED
|
@@ -2743,6 +2743,18 @@ type BulkProductVideoError {
|
|
|
2743
2743
|
index: Int
|
|
2744
2744
|
}
|
|
2745
2745
|
|
|
2746
|
+
"""A warning on a product a bulk mutation created or updated."""
|
|
2747
|
+
type BulkProductWarning {
|
|
2748
|
+
"""Index of the input row the product came from."""
|
|
2749
|
+
index: Int!
|
|
2750
|
+
|
|
2751
|
+
"""Code of the warning message."""
|
|
2752
|
+
code: ProductWarningEnum!
|
|
2753
|
+
|
|
2754
|
+
"""Warning message."""
|
|
2755
|
+
message: String!
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2746
2758
|
"""Represents errors from bulk stock operations."""
|
|
2747
2759
|
type BulkStockError {
|
|
2748
2760
|
field: String
|
|
@@ -5258,7 +5270,9 @@ type CustomerEvent implements Node {
|
|
|
5258
5270
|
"""Number of objects concerned by the event."""
|
|
5259
5271
|
count: Int
|
|
5260
5272
|
|
|
5261
|
-
"""
|
|
5273
|
+
"""
|
|
5274
|
+
User whose activity log holds the event: the customer for self-service events, and the staff user who acted for staff actions. Null when an app with no attached user made the change.
|
|
5275
|
+
"""
|
|
5262
5276
|
user: User
|
|
5263
5277
|
|
|
5264
5278
|
"""The concerned order."""
|
|
@@ -15714,6 +15728,11 @@ type ProductBulkCreate {
|
|
|
15714
15728
|
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.
|
|
15715
15729
|
"""
|
|
15716
15730
|
bulkProductErrors: [BulkProductError!]!
|
|
15731
|
+
|
|
15732
|
+
"""
|
|
15733
|
+
Warnings on the created or updated products, each with the index of the input row its product came from. They are the product's own `warnings`. A product created without variants carries `DEFAULT_VARIANT_REQUIRED` until it gets one, so `hasWarnings` is true for each such product: look for a code instead, such as `PRODUCT_ATTRIBUTE_VALUE_REQUIRED` for a required attribute left without a value. Only a row whose product is in `products` has entries. A row refused only its image keeps its product, and so its warnings. A row whose attributes could not be written has none: its product is saved unpublished, and reported only in `bulkProductErrors`.
|
|
15734
|
+
"""
|
|
15735
|
+
bulkProductWarnings: [BulkProductWarning!]!
|
|
15717
15736
|
}
|
|
15718
15737
|
|
|
15719
15738
|
input ProductBulkCreateInput {
|
|
@@ -15827,6 +15846,16 @@ input ProductBulkCreateInput {
|
|
|
15827
15846
|
When enabled, other sellers can create their own variants on this product.
|
|
15828
15847
|
"""
|
|
15829
15848
|
allowSellerVariants: Boolean = null
|
|
15849
|
+
|
|
15850
|
+
"""
|
|
15851
|
+
Public metadata for the product. On an upsert the keys are merged into the product's metadata as metadataUpdate merges them: keys not sent are kept. A row whose metadata is refused is skipped; the other rows are still written.
|
|
15852
|
+
"""
|
|
15853
|
+
metadata: [MetadataInput!] = null
|
|
15854
|
+
|
|
15855
|
+
"""
|
|
15856
|
+
Private metadata for the product, merged on an upsert as privateMetadataUpdate merges it. Needs the permission privateMetadataUpdate needs for a product. A row whose metadata is refused is skipped; the other rows are still written.
|
|
15857
|
+
"""
|
|
15858
|
+
privateMetadata: [MetadataInput!] = null
|
|
15830
15859
|
}
|
|
15831
15860
|
|
|
15832
15861
|
"""Result of product bulk delete mutation."""
|
|
@@ -16096,6 +16125,7 @@ enum ProductErrorCode {
|
|
|
16096
16125
|
COLLECTION_ALLOWED_FOR_VARIANTS_ONLY
|
|
16097
16126
|
INVENTORY_FIELD_CANNOT_BE_EDITED
|
|
16098
16127
|
REQUIRED_PRODUCT_ID_OR_PRODUCT_TYPE_ID
|
|
16128
|
+
MEDIA_FETCH_FAILED
|
|
16099
16129
|
}
|
|
16100
16130
|
|
|
16101
16131
|
"""Product fields available for export."""
|
|
@@ -17296,14 +17326,16 @@ type ProductVariantAuditEventCountableEdge {
|
|
|
17296
17326
|
|
|
17297
17327
|
"""Result of product variant bulk create mutation."""
|
|
17298
17328
|
type ProductVariantBulkCreate {
|
|
17299
|
-
"""
|
|
17329
|
+
"""
|
|
17330
|
+
Number of variants created or updated. A row whose externalSource and externalId match a variant of the product updates it.
|
|
17331
|
+
"""
|
|
17300
17332
|
count: Int!
|
|
17301
17333
|
|
|
17302
|
-
"""The created product variants."""
|
|
17334
|
+
"""The created and updated product variants."""
|
|
17303
17335
|
productVariants: [ProductVariant!]!
|
|
17304
17336
|
|
|
17305
17337
|
"""
|
|
17306
|
-
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
|
|
17338
|
+
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 written. Otherwise the batch committed and every entry is advisory: the variant at `index` was written, but with `field: "image"` its image was rejected, or not added because the row updated an existing variant, and with `field: "stocks"` its stocks were not applied because the row updated an existing variant.
|
|
17307
17339
|
"""
|
|
17308
17340
|
productErrors: [BulkProductError!]!
|
|
17309
17341
|
|
|
@@ -17381,6 +17413,16 @@ input ProductVariantBulkCreateInput {
|
|
|
17381
17413
|
|
|
17382
17414
|
"""Initial image to associate with the variant."""
|
|
17383
17415
|
image: Upload = null
|
|
17416
|
+
|
|
17417
|
+
"""
|
|
17418
|
+
Public metadata for the variant. On an upsert the keys are merged into the variant's metadata as metadataUpdate merges them: keys not sent are kept. A row whose metadata is refused fails the whole batch, as any refused row does here.
|
|
17419
|
+
"""
|
|
17420
|
+
metadata: [MetadataInput!] = null
|
|
17421
|
+
|
|
17422
|
+
"""
|
|
17423
|
+
Private metadata for the variant, merged on an upsert as privateMetadataUpdate merges it. Needs the permission privateMetadataUpdate needs for a variant. A row whose metadata is refused fails the whole batch, as any refused row does here.
|
|
17424
|
+
"""
|
|
17425
|
+
privateMetadata: [MetadataInput!] = null
|
|
17384
17426
|
}
|
|
17385
17427
|
|
|
17386
17428
|
"""Result of product variant bulk delete mutation."""
|
|
@@ -18059,6 +18101,7 @@ enum ProductWarningEnum {
|
|
|
18059
18101
|
SELLER_PAUSED
|
|
18060
18102
|
SELLER_DIGITAL_SUSPENDED
|
|
18061
18103
|
SELLER_AGREEMENT_UNACKNOWLEDGED
|
|
18104
|
+
IMAGE_FETCH_FAILED
|
|
18062
18105
|
}
|
|
18063
18106
|
|
|
18064
18107
|
"""Result of products export mutation."""
|
|
@@ -23527,6 +23570,11 @@ type TokenRefresh {
|
|
|
23527
23570
|
"""New JWT token."""
|
|
23528
23571
|
token: String
|
|
23529
23572
|
|
|
23573
|
+
"""
|
|
23574
|
+
New JWT refresh token. Every refresh issues one: store it in place of the token sent, so the session lasts from its last use rather than from sign-in, up to a fixed limit after sign-in. Returned when the refresh token was sent as an argument; a refresh from the cookie updates the cookie instead.
|
|
23575
|
+
"""
|
|
23576
|
+
refreshToken: String
|
|
23577
|
+
|
|
23530
23578
|
"""The authenticated user."""
|
|
23531
23579
|
user: User
|
|
23532
23580
|
|
|
@@ -23737,7 +23785,7 @@ type User implements Node & ObjectWithMetadata {
|
|
|
23737
23785
|
events: [CustomerEvent!]!
|
|
23738
23786
|
|
|
23739
23787
|
"""
|
|
23740
|
-
Unified change-history feed for this customer. Projects the legacy CustomerEvent log into a TimelineEntry list ordered most-recent-first, so customer history renders through the same dashboard component as the order, seller and product timelines.
|
|
23788
|
+
Unified change-history feed for this customer. Projects the legacy CustomerEvent log into a TimelineEntry list ordered most-recent-first, so customer history renders through the same dashboard component as the order, seller and product timelines. Entries report an unknown actor, because CustomerEvent.user is the customer an event concerns on some events and the staff user who acted on others. Optional `kinds` argument filters server-side.
|
|
23741
23789
|
"""
|
|
23742
23790
|
timeline(kinds: [TimelineEntryKind!] = null): [TimelineEntry!]!
|
|
23743
23791
|
|