@nautical-commerce/graphql-schema 2.12.0 → 2.14.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.
@@ -1784,6 +1784,7 @@ type Query {
1784
1784
  """Email address of the user."""
1785
1785
  email: String!
1786
1786
  ): Boolean
1787
+ _debug: DjangoDebug
1787
1788
  _entities(representations: [_Any!]!): [_Entity]!
1788
1789
  _service: _Service!
1789
1790
  }
@@ -11941,6 +11942,72 @@ enum SSOProviderEnum {
11941
11942
  KEYCLOAK
11942
11943
  }
11943
11944
 
11945
+ """Debugging information for the current query."""
11946
+ type DjangoDebug {
11947
+ """Executed SQL queries for this API query."""
11948
+ sql: [DjangoDebugSQL]
11949
+
11950
+ """Raise exceptions for this API query."""
11951
+ exceptions: [DjangoDebugException]
11952
+ }
11953
+
11954
+ """Represents a single database query made to a Django managed DB."""
11955
+ type DjangoDebugSQL {
11956
+ """The type of database being used (e.g. postrgesql, mysql, sqlite)."""
11957
+ vendor: String!
11958
+
11959
+ """The Django database alias (e.g. 'default')."""
11960
+ alias: String!
11961
+
11962
+ """The actual SQL sent to this database."""
11963
+ sql: String
11964
+
11965
+ """Duration of this database query in seconds."""
11966
+ duration: Float!
11967
+
11968
+ """The raw SQL of this query, without params."""
11969
+ rawSql: String!
11970
+
11971
+ """JSON encoded database query parameters."""
11972
+ params: String!
11973
+
11974
+ """Start time of this database query."""
11975
+ startTime: Float!
11976
+
11977
+ """Stop time of this database query."""
11978
+ stopTime: Float!
11979
+
11980
+ """Whether this database query took more than 10 seconds."""
11981
+ isSlow: Boolean!
11982
+
11983
+ """Whether this database query was a SELECT."""
11984
+ isSelect: Boolean!
11985
+
11986
+ """Postgres transaction ID if available."""
11987
+ transId: String
11988
+
11989
+ """Postgres transaction status if available."""
11990
+ transStatus: String
11991
+
11992
+ """Postgres isolation level if available."""
11993
+ isoLevel: String
11994
+
11995
+ """Postgres connection encoding if available."""
11996
+ encoding: String
11997
+ }
11998
+
11999
+ """Represents a single exception raised."""
12000
+ type DjangoDebugException {
12001
+ """The class of the exception"""
12002
+ excType: String!
12003
+
12004
+ """The message of the exception"""
12005
+ message: String!
12006
+
12007
+ """The stack trace"""
12008
+ stack: String!
12009
+ }
12010
+
11944
12011
  union _Entity = WishlistItem | Wishlist | User | Address | ProductVariant | Product | Category | ProductType | Collection | ProductImage | ProductVideo | ProductStatusLog | Group | App
11945
12012
 
11946
12013
  scalar _Any
@@ -11981,7 +12048,7 @@ type Mutation {
11981
12048
  description: String
11982
12049
 
11983
12050
  """
11984
- Used when uploading a new document or file in a multipart request that does not exist in the system already. Supported file types: application/tiff, application/acrobat, image/heic-sequence, application/excel, application/vnd.ms-powerpoint, application/x-tar, application/msword, application/x-eps, pplication/vnd.rar, text/x-csv, image/jpg, image/x-dxf, image/x-dwg, application/gzipped, application/tif, image/x-tiff, application/eps, image/heic, application/vnd.oasis.opendocument.spreadsheet, application/vnd.oasis.opendocument.text, image/tiff, image/vnd.dwg, application/vnd.oasis.opendocument.presentation, image/x-eps, image/x-tif, application/x-rar, application/acad, text/svg, application/x-tiff, image/x-ms-bmp, application/jpg, drawing/x-dwg, image/bmp, application/gzip, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/x-pdf, drawing/dwg, image/heif, image/dxf, image/x-bmp, application/vnd.ms-excel, application/dwg, image/tif, application/x-autocad, application/pdf, image/svg, application/gzip-compressed, text/x-comma-separated-values, application/vnd.pdf, application/x-pdf, application/x-rar-compressed, image/eps, text/csv, drawing/x-dwf, application/x-rtf, image/svg+xml, application/rtf, application/svg+xml, application/x-dxf, image/webp, application/postscript, text/rtf, application/vnd.ms-word, text/svg-xml, application/csv, image/png, text/pdf, image/jpeg, image/heif-sequence, application/vnd.openxmlformats-officedocument.presentationml.slideshow, application/zip, application/x-zip-compressed, application/x-gzip, text/comma-separated-values, application/x-jpg, application/x-csv, image/gif, text/plain, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/x-dwg, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/dxf, application/x-acad, application/x-tif.
12051
+ Used when uploading a new document or file in a multipart request that does not exist in the system already. Supported file types: image/x-ms-bmp, application/x-tiff, application/excel, image/x-tiff, image/png, application/gzipped, application/jpg, application/acrobat, application/vnd.openxmlformats-officedocument.presentationml.slideshow, image/vnd.dwg, application/x-rtf, image/jpg, application/msword, application/gzip, application/x-jpg, application/dwg, image/heic-sequence, image/svg+xml, application/pdf, application/eps, text/pdf, drawing/x-dwf, application/csv, application/x-eps, application/acad, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/x-autocad, image/dxf, image/heic, text/csv, application/zip, application/vnd.oasis.opendocument.text, application/x-gzip, pplication/vnd.rar, image/svg, application/rtf, application/x-rar-compressed, application/x-tar, application/x-acad, application/x-dxf, text/comma-separated-values, text/svg, image/tif, image/tiff, application/svg+xml, text/svg-xml, image/x-dwg, application/vnd.ms-word, application/x-pdf, text/x-csv, image/gif, application/gzip-compressed, image/x-tif, image/jpeg, application/vnd.oasis.opendocument.spreadsheet, application/x-rar, application/vnd.ms-excel, text/rtf, image/x-eps, application/x-tif, application/tiff, image/heif, image/eps, application/vnd.ms-powerpoint, image/x-bmp, application/x-zip-compressed, image/bmp, image/x-dxf, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/x-csv, drawing/dwg, text/x-pdf, text/x-comma-separated-values, image/heif-sequence, application/tif, application/vnd.pdf, application/postscript, image/webp, application/vnd.oasis.opendocument.presentation, application/x-dwg, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/dxf, drawing/x-dwg, text/plain.
11985
12052
  """
11986
12053
  file: Upload!
11987
12054
 
@@ -12952,6 +13019,12 @@ type Mutation {
12952
13019
  id: ID!
12953
13020
  ): ProductDelete
12954
13021
 
13022
+ """Creates multiple products."""
13023
+ productBulkCreate(
13024
+ """Input list of products to create."""
13025
+ products: [ProductBulkCreateInput!]!
13026
+ ): ProductBulkCreate
13027
+
12955
13028
  """Deletes products."""
12956
13029
  productBulkDelete(
12957
13030
  """List of product IDs to delete."""
@@ -17632,6 +17705,186 @@ type ProductDelete {
17632
17705
  product: Product
17633
17706
  }
17634
17707
 
17708
+ """Creates multiple products."""
17709
+ type ProductBulkCreate {
17710
+ """Returns how many objects were created or updated."""
17711
+ count: Int!
17712
+
17713
+ """List of the created or updated products."""
17714
+ products: [Product!]!
17715
+ bulkProductErrors: [BulkProductError!]!
17716
+ }
17717
+
17718
+ type BulkProductError {
17719
+ """
17720
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
17721
+ """
17722
+ field: String
17723
+
17724
+ """The error message."""
17725
+ message: String!
17726
+
17727
+ """The error code."""
17728
+ code: ProductErrorCode!
17729
+
17730
+ """List of attributes IDs which causes the error."""
17731
+ attributes: [ID!]
17732
+
17733
+ """Index of an input list item that caused the error."""
17734
+ index: Int
17735
+
17736
+ """List of warehouse IDs which causes the error."""
17737
+ warehouses: [ID!]
17738
+ }
17739
+
17740
+ """Input type for bulk product creation with all ProductCreate features."""
17741
+ input ProductBulkCreateInput {
17742
+ """List of attributes."""
17743
+ attributes: [AttributeValueInput!]
17744
+
17745
+ """List of attributes to assign as variant attributes to this product."""
17746
+ variantAttributes: [ID!]
17747
+
17748
+ """ID of the type that product belongs to."""
17749
+ productType: ID
17750
+
17751
+ """List of custom fields."""
17752
+ customFields: [AttributeValueInput!]
17753
+
17754
+ """Publication date. ISO 8601 standard."""
17755
+ publicationDate: Date
17756
+
17757
+ """ID of the product's category."""
17758
+ category: ID
17759
+
17760
+ """Determine if taxes are being charged for the product."""
17761
+ chargeTaxes: Boolean
17762
+
17763
+ """List of IDs of collections that the product belongs to."""
17764
+ collections: [ID!]
17765
+
17766
+ """Choose a currency to assign to the product prices."""
17767
+ currency: String
17768
+
17769
+ """Product description (plaintext, read-only)."""
17770
+ description: String
17771
+
17772
+ """Product description (html)."""
17773
+ descriptionHtml: String
17774
+
17775
+ """Determines if product is visible to customers."""
17776
+ isPublished: Boolean
17777
+
17778
+ """Product name."""
17779
+ name: String
17780
+
17781
+ """Product slug."""
17782
+ slug: String
17783
+
17784
+ """Tax rate for enabled tax gateway."""
17785
+ taxCode: String
17786
+
17787
+ """Search engine optimization fields."""
17788
+ seo: SeoInput
17789
+
17790
+ """Weight of the Product."""
17791
+ weight: WeightScalar
17792
+
17793
+ """
17794
+ Stock keeping unit of a product. Note: this field is only used if a product doesn't use variants. DEPRECATED: All products are now configurable instead of simple. This field will be removed after 2024-07-01.
17795
+ """
17796
+ sku: String
17797
+
17798
+ """
17799
+ Determines whether to track changes to this variant's inventory. If set to 'false', the product's stock quantity won't reduce when a customer purchases this item. However, even when 'false', you must assign a stock quantity to a warehouse to allow checkouts. Usually, this involves allocating a placeholder stock amount that matches the maximum quantity purchased at once. Note: this field is applicable only for simple products.DEPRECATED: All products are now configurable instead of simple. This field will be removed after 2024-07-01.
17800
+ """
17801
+ trackInventory: Boolean
17802
+
17803
+ """
17804
+ Default price for product variant. DEPRECATED: All products are now configurable instead of simple. This field will be removed after 2024-07-01.
17805
+ """
17806
+ basePrice: PositiveDecimal
17807
+
17808
+ """
17809
+ Default cost price for product variant. DEPRECATED: All products are now configurable instead of simple. This field will be removed after 2024-07-01.
17810
+ """
17811
+ costPrice: PositiveDecimal
17812
+
17813
+ """
17814
+ Determines if product is visible in product listings (doesn't apply to product collections).
17815
+ """
17816
+ visibleInListings: Boolean
17817
+
17818
+ """Override price for grouped products"""
17819
+ overridePrice: Boolean
17820
+
17821
+ """Override currency for product"""
17822
+ overrideCurrency: Boolean
17823
+
17824
+ """Substatus the product is to be changed to."""
17825
+ subStatus: ProductSubStatusEnum
17826
+
17827
+ """
17828
+ A reason for why the sub status changed, which will be displayed to the creator of the product.
17829
+ """
17830
+ subStatusReason: String
17831
+
17832
+ """
17833
+ Set whether this product requires shipping by default, will be overridden by product type if provided
17834
+ """
17835
+ isShippingRequired: Boolean
17836
+
17837
+ """
17838
+ Set whether this product is digital by default, will be overridden by product type if provided
17839
+ """
17840
+ isDigital: Boolean
17841
+
17842
+ """
17843
+ Set whether this product allows price overrides by default, will be controlled by product type if provided
17844
+ """
17845
+ isPriceOverrideAllowed: Boolean
17846
+
17847
+ """Product dimensions."""
17848
+ dimensions: ProductDimensionsInput
17849
+
17850
+ """ID of the seller that product belongs to."""
17851
+ seller: ID!
17852
+
17853
+ """
17854
+ Stocks of a product available for sale. Note: this field is only used if a product doesn't use variants. DEPRECATED: All products are now configurable instead of simple. This field will be removed after 2024-07-01.
17855
+ """
17856
+ stocks: [StockInput!]
17857
+
17858
+ """Determine if product should be available for purchase."""
17859
+ isAvailable: Boolean
17860
+
17861
+ """
17862
+ Whether to allow backorders for this product variant, if backorders are permitted at the marketplace level
17863
+ """
17864
+ allowBackorders: Boolean
17865
+
17866
+ """
17867
+ A start date from which a product will be available for purchase. When not set and isAvailable is set to True, the current day is assumed.
17868
+ """
17869
+ startDate: Date
17870
+
17871
+ """
17872
+ The external source identifier of a foreign system (e.g. nautical.fulfillment.shopify) if a product originated from that system, used in combination with provided externalId. If submitting externalSource, you must also provide an externalId argument. If these two are provided, the productCreate mutation will attempt to perform an upsert instead of a creation.
17873
+ """
17874
+ externalSource: String
17875
+
17876
+ """
17877
+ The external ID from a foreign system if a product originated from that system, used in combination with provided externalSource. If submitting externalId, you must also provide an externalSource argument. If these two are provided, the productCreate mutation will attempt to perform an upsert instead of a creation.
17878
+ """
17879
+ externalId: String
17880
+
17881
+ """Represents an image file in a multipart request."""
17882
+ image: Upload
17883
+
17884
+ """Where the product was created (e.g dashboard, shopify, csv, api)"""
17885
+ productSource: ProductSourceEnum
17886
+ }
17887
+
17635
17888
  """Deletes products."""
17636
17889
  type ProductBulkDelete {
17637
17890
  """Returns how many objects were affected."""
@@ -18328,28 +18581,6 @@ type ProductVariantBulkCreate {
18328
18581
  bulkProductErrors: [BulkProductError!]!
18329
18582
  }
18330
18583
 
18331
- type BulkProductError {
18332
- """
18333
- Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
18334
- """
18335
- field: String
18336
-
18337
- """The error message."""
18338
- message: String!
18339
-
18340
- """The error code."""
18341
- code: ProductErrorCode!
18342
-
18343
- """List of attributes IDs which causes the error."""
18344
- attributes: [ID!]
18345
-
18346
- """Index of an input list item that caused the error."""
18347
- index: Int
18348
-
18349
- """List of warehouse IDs which causes the error."""
18350
- warehouses: [ID!]
18351
- }
18352
-
18353
18584
  input ProductVariantBulkCreateInput {
18354
18585
  """Product ID of which type is the variant."""
18355
18586
  product: ID
@@ -18439,6 +18670,9 @@ input ProductVariantBulkCreateInput {
18439
18670
  The external ID from a foreign system if a product variant originated from that system, used in combination with provided externalSource. If submitting externalId, you must also provide an externalSource argument.
18440
18671
  """
18441
18672
  externalId: String
18673
+
18674
+ """Initial image to associate with the variant."""
18675
+ image: Upload
18442
18676
  }
18443
18677
 
18444
18678
  """Deletes product variants."""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nautical-commerce/graphql-schema",
3
- "version": "v2.12.0",
3
+ "version": "v2.14.0",
4
4
  "description": "Traide API GraphQL Schema",
5
5
  "main": "./nautical/schema.graphql",
6
6
  "scripts": {