@nautical-commerce/graphql-schema 2.0.9 → 2.11.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.
@@ -2767,6 +2767,24 @@ type Product implements Node & ObjectWithMetadata {
2767
2767
  last: Int
2768
2768
  ): ProductImageCountableConnection
2769
2769
 
2770
+ """List of videos for the product."""
2771
+ videos: [ProductVideo!]
2772
+
2773
+ """Countable edges of videos for the product"""
2774
+ countableVideos(
2775
+ """Return the elements in the list that come before the specified cursor."""
2776
+ before: String
2777
+
2778
+ """Return the elements in the list that come after the specified cursor."""
2779
+ after: String
2780
+
2781
+ """Return the first n elements from the list."""
2782
+ first: Int
2783
+
2784
+ """Return the last n elements from the list."""
2785
+ last: Int
2786
+ ): ProductVideoCountableConnection
2787
+
2770
2788
  """List of collections for the product."""
2771
2789
  collections: [Collection!]
2772
2790
 
@@ -7170,6 +7188,36 @@ type ProductImageCountableEdge {
7170
7188
  cursor: String!
7171
7189
  }
7172
7190
 
7191
+ """Represents a product video."""
7192
+ type ProductVideo implements Node {
7193
+ """The ID of the object"""
7194
+ id: ID!
7195
+ sortOrder: Int
7196
+ externalId: String
7197
+ externalSource: String
7198
+ alt: String!
7199
+
7200
+ """The URL of the video."""
7201
+ url: String!
7202
+ }
7203
+
7204
+ type ProductVideoCountableConnection {
7205
+ """Pagination data for this connection."""
7206
+ pageInfo: PageInfo!
7207
+ edges: [ProductVideoCountableEdge!]!
7208
+
7209
+ """A total count of items in the collection."""
7210
+ totalCount: Int
7211
+ }
7212
+
7213
+ type ProductVideoCountableEdge {
7214
+ """The item at the end of the edge."""
7215
+ node: ProductVideo!
7216
+
7217
+ """A cursor for use in pagination."""
7218
+ cursor: String!
7219
+ }
7220
+
7173
7221
  """Product stock stats for a specific warehouse including all variants"""
7174
7222
  type WarehouseStats {
7175
7223
  """Warehouse ID"""
@@ -11893,7 +11941,7 @@ enum SSOProviderEnum {
11893
11941
  KEYCLOAK
11894
11942
  }
11895
11943
 
11896
- union _Entity = WishlistItem | Wishlist | User | Address | ProductVariant | Product | Category | ProductType | Collection | ProductImage | ProductStatusLog | Group | App
11944
+ union _Entity = WishlistItem | Wishlist | User | Address | ProductVariant | Product | Category | ProductType | Collection | ProductImage | ProductVideo | ProductStatusLog | Group | App
11897
11945
 
11898
11946
  scalar _Any
11899
11947
 
@@ -11933,7 +11981,7 @@ type Mutation {
11933
11981
  description: String
11934
11982
 
11935
11983
  """
11936
- Used when uploading a new document or file in a multipart request that does not exist in the system already. Supported file types: image/tif, application/x-tif, application/dwg, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/acad, application/x-rtf, application/eps, application/x-jpg, text/x-pdf, text/plain, application/gzip-compressed, text/svg, application/acrobat, image/tiff, application/dxf, application/pdf, application/tiff, image/heif-sequence, text/x-comma-separated-values, application/msword, image/bmp, image/heic-sequence, image/x-eps, image/svg, text/pdf, application/vnd.oasis.opendocument.presentation, application/x-eps, application/gzip, image/svg+xml, application/vnd.ms-word, image/heif, text/rtf, image/x-bmp, application/x-dxf, application/x-rar-compressed, application/svg+xml, drawing/x-dwf, application/vnd.ms-excel, image/x-dwg, image/eps, application/x-dwg, application/vnd.oasis.opendocument.spreadsheet, image/x-ms-bmp, application/x-tiff, image/vnd.dwg, application/x-autocad, image/webp, application/zip, application/vnd.pdf, application/vnd.openxmlformats-officedocument.presentationml.presentation, image/x-tiff, application/vnd.ms-powerpoint, application/jpg, pplication/vnd.rar, application/x-tar, drawing/dwg, image/x-dxf, image/jpg, drawing/x-dwg, application/x-zip-compressed, text/csv, application/x-csv, image/dxf, application/tif, application/postscript, application/x-pdf, application/x-acad, image/gif, image/x-tif, application/gzipped, text/svg-xml, application/vnd.oasis.opendocument.text, text/comma-separated-values, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/csv, application/excel, text/x-csv, application/x-rar, image/heic, image/jpeg, application/x-gzip, application/vnd.openxmlformats-officedocument.presentationml.slideshow, application/rtf, image/png.
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/vnd.openxmlformats-officedocument.presentationml.slideshow, image/x-dxf, image/tiff, pplication/vnd.rar, application/excel, application/vnd.oasis.opendocument.text, image/heic-sequence, application/tiff, image/webp, image/eps, text/svg, image/svg, image/svg+xml, application/x-pdf, image/heic, application/vnd.openxmlformats-officedocument.presentationml.presentation, image/x-tif, application/eps, application/gzip-compressed, application/vnd.ms-word, image/gif, application/x-gzip, application/msword, image/jpeg, application/rtf, image/jpg, application/vnd.pdf, application/x-dxf, image/x-tiff, application/x-rar, application/gzipped, application/x-dwg, application/acrobat, application/zip, image/dxf, application/vnd.ms-excel, application/x-autocad, application/svg+xml, text/csv, application/x-csv, application/dxf, text/x-csv, application/acad, image/bmp, application/vnd.oasis.opendocument.presentation, application/jpg, application/x-tif, image/x-ms-bmp, image/png, application/tif, text/x-pdf, application/x-tar, drawing/x-dwf, application/vnd.oasis.opendocument.spreadsheet, application/vnd.ms-powerpoint, text/plain, application/csv, image/heif, application/x-zip-compressed, text/x-comma-separated-values, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/x-rtf, application/x-acad, application/x-rar-compressed, text/pdf, application/postscript, image/x-dwg, image/vnd.dwg, application/dwg, application/gzip, application/pdf, text/svg-xml, application/x-jpg, image/tif, text/rtf, text/comma-separated-values, image/x-bmp, drawing/dwg, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, drawing/x-dwg, application/x-tiff, image/heif-sequence, application/x-eps, image/x-eps.
11937
11985
  """
11938
11986
  file: Upload!
11939
11987
 
@@ -13011,6 +13059,55 @@ type Mutation {
13011
13059
  input: ProductImageUpdateInput!
13012
13060
  ): ProductImageUpdate
13013
13061
 
13062
+ """
13063
+ Create a product video. If URL is present, video will be taken from provided URL. If no URL provided, then this mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec
13064
+ """
13065
+ productVideoCreate(
13066
+ """Fields required to create a product video."""
13067
+ input: ProductVideoCreateInput!
13068
+ ): ProductVideoCreate
13069
+
13070
+ """
13071
+ Create one or more product videos. For each video, if URL is present, video will be taken from provided URL. If any video has no URL provided, then this mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec
13072
+ """
13073
+ productVideoBulkCreate(
13074
+ """Fields required to create one or more product videos"""
13075
+ input: [ProductVideoBulkCreateInput!]!
13076
+
13077
+ """ID of a product."""
13078
+ product: ID!
13079
+ ): ProductVideoBulkCreate
13080
+
13081
+ """Deletes a product video."""
13082
+ productVideoDelete(
13083
+ """ID of a product video to delete."""
13084
+ id: ID!
13085
+ ): ProductVideoDelete
13086
+
13087
+ """Deletes product videos."""
13088
+ productVideoBulkDelete(
13089
+ """List of product video IDs to delete."""
13090
+ ids: [ID!]!
13091
+ ): ProductVideoBulkDelete
13092
+
13093
+ """Changes ordering of the product videos."""
13094
+ productVideoReorder(
13095
+ """Id of product that videos order will be altered."""
13096
+ productId: ID!
13097
+
13098
+ """IDs of a product videos in the desired order."""
13099
+ videosIds: [ID!]!
13100
+ ): ProductVideoReorder
13101
+
13102
+ """Updates a product video."""
13103
+ productVideoUpdate(
13104
+ """ID of a product video to update."""
13105
+ id: ID!
13106
+
13107
+ """Fields required to update a product video."""
13108
+ input: ProductVideoUpdateInput!
13109
+ ): ProductVideoUpdate
13110
+
13014
13111
  """Creates a new product type."""
13015
13112
  productTypeCreate(
13016
13113
  """Fields required to create a product type."""
@@ -13186,6 +13283,24 @@ type Mutation {
13186
13283
  variantId: ID!
13187
13284
  ): ProductVariantImageBulkAssign
13188
13285
 
13286
+ """Assign a video to a product variant."""
13287
+ productVariantVideoAssign(
13288
+ """ID of a product variant."""
13289
+ variantId: ID!
13290
+
13291
+ """ID of a product video."""
13292
+ videoId: ID!
13293
+ ): ProductVariantVideoAssign
13294
+
13295
+ """Unassign a video from a product variant."""
13296
+ productVariantVideoUnassign(
13297
+ """ID of a product variant."""
13298
+ variantId: ID!
13299
+
13300
+ """ID of a product video."""
13301
+ videoId: ID!
13302
+ ): ProductVariantVideoUnassign
13303
+
13189
13304
  """Captures the authorized payment amount."""
13190
13305
  paymentCapture(
13191
13306
  """Transaction amount."""
@@ -17058,6 +17173,7 @@ enum ProductErrorCode {
17058
17173
  INVALID
17059
17174
  INVALID_PHONE
17060
17175
  NOT_PRODUCTS_IMAGE
17176
+ NOT_PRODUCTS_VIDEO
17061
17177
  NOT_PRODUCTS_VARIANT
17062
17178
  NOT_FOUND
17063
17179
  PRODUCT_TYPE_CANNOT_BE_DELETED
@@ -17808,6 +17924,137 @@ input ProductImageUpdateInput {
17808
17924
  alt: String
17809
17925
  }
17810
17926
 
17927
+ """
17928
+ Create a product video. If URL is present, video will be taken from provided URL. If no URL provided, then this mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec
17929
+ """
17930
+ type ProductVideoCreate {
17931
+ product: Product
17932
+ video: ProductVideo
17933
+ productErrors: [ProductError!]!
17934
+ }
17935
+
17936
+ input ProductVideoCreateInput {
17937
+ """Alt text for a video."""
17938
+ alt: String
17939
+
17940
+ """
17941
+ Represents a video file in a multipart request. Either a video or a url must be provided.
17942
+ """
17943
+ video: Upload
17944
+
17945
+ """URL of video to upload. Either a video or a url must be provided."""
17946
+ url: String
17947
+
17948
+ """ID of a product."""
17949
+ product: ID!
17950
+
17951
+ """
17952
+ Only for use by Marketplace Operator, if true then the video ownership will transfer to the seller that owns the product it is being assigned to, if false or not provided then video ownership will not transfer.
17953
+ """
17954
+ transferVideoOwnership: Boolean = false
17955
+
17956
+ """
17957
+ External ID of the product video if originating from outside the system.
17958
+ """
17959
+ externalId: String
17960
+
17961
+ """
17962
+ External source of the product video if originating from outside the system.
17963
+ """
17964
+ externalSource: String
17965
+ }
17966
+
17967
+ """
17968
+ Create one or more product videos. For each video, if URL is present, video will be taken from provided URL. If any video has no URL provided, then this mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec
17969
+ """
17970
+ type ProductVideoBulkCreate {
17971
+ product: Product
17972
+
17973
+ """List of the created videos."""
17974
+ videos: [ProductVideo!]!
17975
+ bulkProductVideoErrors: [BulkProductVideoError!]!
17976
+ }
17977
+
17978
+ type BulkProductVideoError {
17979
+ """
17980
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
17981
+ """
17982
+ field: String
17983
+
17984
+ """The error message."""
17985
+ message: String!
17986
+
17987
+ """The error code."""
17988
+ code: ProductErrorCode!
17989
+
17990
+ """List of attributes IDs which causes the error."""
17991
+ attributes: [ID!]
17992
+
17993
+ """Index of an input list item that caused the error."""
17994
+ index: Int
17995
+ }
17996
+
17997
+ input ProductVideoBulkCreateInput {
17998
+ """Alt text for a video."""
17999
+ alt: String
18000
+
18001
+ """
18002
+ Represents a video file in a multipart request. Either a video or a url must be provided.
18003
+ """
18004
+ video: Upload
18005
+
18006
+ """URL of video to upload. Either a video or a url must be provided."""
18007
+ url: String
18008
+
18009
+ """
18010
+ Only for use by Marketplace Operator, if true then the video ownership will transfer to the seller that owns the product it is being assigned to, if false or not provided then video ownership will not transfer.
18011
+ """
18012
+ transferVideoOwnership: Boolean = false
18013
+
18014
+ """
18015
+ External ID of the product video if originating from outside the system.
18016
+ """
18017
+ externalId: String
18018
+
18019
+ """
18020
+ External source of the product video if originating from outside the system.
18021
+ """
18022
+ externalSource: String
18023
+ }
18024
+
18025
+ """Deletes a product video."""
18026
+ type ProductVideoDelete {
18027
+ product: Product
18028
+ video: ProductVideo
18029
+ productErrors: [ProductError!]!
18030
+ }
18031
+
18032
+ """Deletes product videos."""
18033
+ type ProductVideoBulkDelete {
18034
+ """Returns how many objects were affected."""
18035
+ count: Int!
18036
+ productErrors: [ProductError!]!
18037
+ }
18038
+
18039
+ """Changes ordering of the product videos."""
18040
+ type ProductVideoReorder {
18041
+ product: Product
18042
+ videos: [ProductVideo!]
18043
+ productErrors: [ProductError!]!
18044
+ }
18045
+
18046
+ """Updates a product video."""
18047
+ type ProductVideoUpdate {
18048
+ product: Product
18049
+ video: ProductVideo
18050
+ productErrors: [ProductError!]!
18051
+ }
18052
+
18053
+ input ProductVideoUpdateInput {
18054
+ """Alt text for a video."""
18055
+ alt: String
18056
+ }
18057
+
17811
18058
  """Creates a new product type."""
17812
18059
  type ProductTypeCreate {
17813
18060
  productErrors: [ProductError!]!
@@ -18389,6 +18636,20 @@ input ProductVariantImageBulkAssignInput {
18389
18636
  transferImageOwnership: Boolean
18390
18637
  }
18391
18638
 
18639
+ """Assign a video to a product variant."""
18640
+ type ProductVariantVideoAssign {
18641
+ productVariant: ProductVariant
18642
+ video: ProductVideo
18643
+ productErrors: [ProductError!]!
18644
+ }
18645
+
18646
+ """Unassign a video from a product variant."""
18647
+ type ProductVariantVideoUnassign {
18648
+ productVariant: ProductVariant
18649
+ video: ProductVideo
18650
+ productErrors: [ProductError!]!
18651
+ }
18652
+
18392
18653
  """Captures the authorized payment amount."""
18393
18654
  type PaymentCapture {
18394
18655
  """Updated payment."""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nautical-commerce/graphql-schema",
3
- "version": "v2.0.9",
3
+ "version": "v2.11.0",
4
4
  "description": "## Getting Started",
5
5
  "main": "./nautical/schema.graphql",
6
6
  "scripts": {