@nautical-commerce/graphql-schema 1.46.0-5-g532012fd0 → 1.46.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.
@@ -1152,6 +1152,16 @@ type Query {
1152
1152
  """Seller global id to filter by"""
1153
1153
  identifier: ID
1154
1154
 
1155
+ """
1156
+ [Deprecated] Filter orders from a selected timespan. Use the `filter` field instead. This field will be removed after 2020-07-31.
1157
+ """
1158
+ created: ReportingPeriod @deprecated(reason: "Use the `filter` field instead")
1159
+
1160
+ """
1161
+ [Deprecated] Filter order by status. Use the `filter` field instead. This field will be removed after 2020-07-31.
1162
+ """
1163
+ status: OrderStatusFilter @deprecated(reason: "Use the `filter` field instead")
1164
+
1155
1165
  """Return the elements in the list that come before the specified cursor."""
1156
1166
  before: String
1157
1167
 
@@ -1175,6 +1185,16 @@ type Query {
1175
1185
  """
1176
1186
  filter: NauticalOrderFilterInput
1177
1187
 
1188
+ """
1189
+ [Deprecated] Filter orders from a selected timespan. Use the `filter` field instead. This field will be removed after 2020-07-31.
1190
+ """
1191
+ created: ReportingPeriod @deprecated(reason: "Use the `filter` field instead")
1192
+
1193
+ """
1194
+ [Deprecated] Filter order by status. Use the `filter` field instead. This field will be removed after 2020-07-31.
1195
+ """
1196
+ status: OrderStatusFilter @deprecated(reason: "Use the `filter` field instead")
1197
+
1178
1198
  """Return the elements in the list that come before the specified cursor."""
1179
1199
  before: String
1180
1200
 
@@ -1196,6 +1216,11 @@ type Query {
1196
1216
  """Filtering options for draft orders."""
1197
1217
  filter: OrderDraftFilterInput
1198
1218
 
1219
+ """
1220
+ [Deprecated] Filter draft orders from a selected timespan. Use the `filter` field instead. This field will be removed after 2020-07-31.
1221
+ """
1222
+ created: ReportingPeriod @deprecated(reason: "Use the `filter` field instead")
1223
+
1199
1224
  """Seller global id to filter by"""
1200
1225
  identifier: ID
1201
1226
 
@@ -1220,6 +1245,11 @@ type Query {
1220
1245
  """Filtering options for draft orders."""
1221
1246
  filter: NauticalOrderDraftFilterInput
1222
1247
 
1248
+ """
1249
+ [Deprecated] Filter draft orders from a selected timespan. Use the `filter` field instead. This field will be removed after 2020-07-31.
1250
+ """
1251
+ created: ReportingPeriod @deprecated(reason: "Use the `filter` field instead")
1252
+
1223
1253
  """Return the elements in the list that come before the specified cursor."""
1224
1254
  before: String
1225
1255
 
@@ -2617,6 +2647,9 @@ type Checkout implements Node & ObjectWithMetadata {
2617
2647
  """Discount Type if voucher is applied"""
2618
2648
  discountType: VoucherTypeEnum
2619
2649
 
2650
+ """Seller shipping methods in old json format"""
2651
+ sellerShippingMethods: JSONString @deprecated(reason: "Use the shippingMethods field. This field will be removed after 2024-08-01.")
2652
+
2620
2653
  """A list of structured checkout shipping methods."""
2621
2654
  shippingMethods: [CheckoutSellerShipping!]!
2622
2655
 
@@ -5863,6 +5896,7 @@ type NauticalOrderLine implements Node & ObjectWithMetadata {
5863
5896
 
5864
5897
  """Price of the single item in the order line after sales"""
5865
5898
  discountedUnitPrice: TaxedMoney
5899
+ quantityFulfilled: Int! @deprecated(reason: "Marketplace Orders are not fulfilled. Use quantity_fulfilled on the seller OrderLine instead. This field will be removed after October 3, 2023.")
5866
5900
  }
5867
5901
 
5868
5902
  """
@@ -11443,6 +11477,7 @@ type MarketplaceConfiguration {
11443
11477
 
11444
11478
  """Determines payout status transformation strategy"""
11445
11479
  payoutAutomationStrategy: MarketplaceConfigurationPayoutAutomationStrategyEnum
11480
+ availableCurrencies: JSONString!
11446
11481
 
11447
11482
  """Determines domiciled currency"""
11448
11483
  domiciledCurrency: MarketplaceConfigurationCurrencyEnum!
@@ -13860,14 +13895,24 @@ type Mutation {
13860
13895
  description: String
13861
13896
 
13862
13897
  """
13863
- Used when uploading a new document or file in a multipart request that does not exist in the system already. Supported file types: image/bmp, image/heif-sequence, application/pdf, application/postscript, image/vnd.dwg, application/jpg, application/acad, image/x-dxf, application/x-autocad, image/jpeg, application/excel, application/x-csv, application/x-gzip, image/jpg, application/vnd.oasis.opendocument.presentation, application/vnd.openxmlformats-officedocument.presentationml.slideshow, application/vnd.ms-powerpoint, image/x-ms-bmp, application/x-dwg, text/x-csv, application/acrobat, application/gzip, application/x-tiff, application/x-rtf, image/svg, image/x-eps, image/dxf, application/x-rar, application/gzipped, application/tif, text/csv, application/rtf, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/plain, application/dwg, application/vnd.ms-excel, application/zip, application/x-dxf, application/csv, application/gzip-compressed, image/heif, drawing/x-dwg, image/x-bmp, image/x-tiff, image/x-tif, image/heic-sequence, application/x-tar, application/x-pdf, application/eps, application/x-acad, drawing/dwg, text/pdf, image/tif, text/x-comma-separated-values, image/webp, text/rtf, image/png, text/x-pdf, application/x-tif, application/x-jpg, text/comma-separated-values, image/svg+xml, text/svg-xml, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/x-zip-compressed, application/vnd.oasis.opendocument.spreadsheet, image/eps, application/x-eps, application/tiff, image/gif, application/vnd.oasis.opendocument.text, application/x-rar-compressed, text/svg, application/svg+xml, application/dxf, image/x-dwg, image/heic, application/vnd.openxmlformats-officedocument.presentationml.presentation, drawing/x-dwf, application/vnd.pdf, image/tiff, application/vnd.ms-word, application/msword, pplication/vnd.rar.
13898
+ Used when attaching an existing document in the system to a new instance.
13864
13899
  """
13865
- file: Upload!
13900
+ documentId: ID @deprecated(reason: "To attach a document to related instances consider to use DocumentAttach mutation. This param will be removed after July 1 2023.")
13901
+
13902
+ """
13903
+ Used when uploading a new document or file in a multipart request that does not exist in the system already. Supported file types: application/postscript, application/jpg, image/vnd.dwg, application/x-eps, application/x-pdf, text/pdf, application/x-dwg, image/jpeg, drawing/x-dwg, text/comma-separated-values, application/zip, application/vnd.ms-powerpoint, application/x-rar, application/x-dxf, text/svg-xml, text/plain, text/csv, image/svg+xml, application/dwg, application/acrobat, application/x-rtf, text/x-comma-separated-values, image/png, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, image/heif, image/eps, image/bmp, application/tif, text/x-pdf, application/msword, application/eps, application/excel, application/vnd.openxmlformats-officedocument.presentationml.slideshow, application/vnd.oasis.opendocument.presentation, application/csv, text/svg, image/svg, application/x-zip-compressed, application/vnd.oasis.opendocument.text, image/x-bmp, application/x-gzip, image/jpg, image/webp, image/x-eps, image/tif, application/gzip-compressed, application/gzip, image/gif, application/x-csv, application/x-tar, application/vnd.openxmlformats-officedocument.presentationml.presentation, image/x-tiff, image/dxf, application/vnd.oasis.opendocument.spreadsheet, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/rtf, application/x-rar-compressed, application/pdf, image/heic-sequence, image/tiff, pplication/vnd.rar, application/x-tif, image/heif-sequence, image/x-ms-bmp, drawing/x-dwf, image/x-tif, application/x-acad, text/x-csv, application/vnd.ms-excel, application/vnd.pdf, application/x-tiff, application/svg+xml, application/vnd.ms-word, image/x-dxf, drawing/dwg, application/x-autocad, text/rtf, application/acad, application/tiff, image/x-dwg, application/dxf, image/heic, application/x-jpg, application/gzipped.
13904
+ """
13905
+ file: Upload
13906
+
13907
+ """
13908
+ List of instance IDs to attach a document to, currently supports Product, ProductVariant, Seller, and User IDs.
13909
+ """
13910
+ ids: [ID!] @deprecated(reason: "To attach a document to related instances consider to use DocumentAttach mutation. This param will be removed after July 1 2023.")
13866
13911
 
13867
13912
  """
13868
13913
  Target instance ID to attach a document to; currently supports Product, ProductVariant, Seller and User IDs.
13869
13914
  """
13870
- relatedObjectId: ID!
13915
+ relatedObjectId: ID
13871
13916
  ): DocumentAdd
13872
13917
 
13873
13918
  """Updates an existing document."""
@@ -16531,6 +16576,7 @@ type Mutation {
16531
16576
  """
16532
16577
  vehicles: Boolean = false
16533
16578
  volumeDiscount: Float!
16579
+ volumeDiscountsBySeller: [SellerVolumeDiscountInput!] @deprecated(reason: "This is unused and will be removed after 2024-02-01.")
16534
16580
  ): CheckoutComplete
16535
16581
 
16536
16582
  """
@@ -16551,6 +16597,11 @@ type Mutation {
16551
16597
  checkoutCustomerAttach(
16552
16598
  """ID of the checkout."""
16553
16599
  checkoutId: ID!
16600
+
16601
+ """
16602
+ [Deprecated] The ID of the customer. To identify a customer you should authenticate with JWT. This field will be removed after 2020-07-31.
16603
+ """
16604
+ customerId: ID @deprecated(reason: "To identify a customer you should authenticate with JWT.")
16554
16605
  ): CheckoutCustomerAttach
16555
16606
 
16556
16607
  """Removes the user assigned as the owner of the checkout."""
@@ -16648,6 +16699,7 @@ type Mutation {
16648
16699
  checkoutSellerShippingMethodsUpdate(
16649
16700
  """Checkout ID."""
16650
16701
  checkoutId: ID!
16702
+ secondaryAddress: String @deprecated(reason: "This field is unused and will be removed after 2024-02-01")
16651
16703
 
16652
16704
  """Seller DB id representation as a string."""
16653
16705
  seller: ID!
@@ -18755,11 +18807,38 @@ input DetailedSellerInput {
18755
18807
 
18756
18808
  """ID of plan (agreement) for a seller."""
18757
18809
  plan: ID
18810
+ status: SellerStatusEnum @deprecated(reason: "This field will be ignored in the mutation and a seller will be created in PENDING status. This field will be removed after 2023-12-12.")
18758
18811
 
18759
18812
  """Fields required to set the object's metadata."""
18760
18813
  metadata: [MetadataInput!]
18761
18814
  }
18762
18815
 
18816
+ enum SellerStatusEnum {
18817
+ """Applying"""
18818
+ APPLYING
18819
+
18820
+ """Pending"""
18821
+ PENDING
18822
+
18823
+ """Approved"""
18824
+ APPROVED
18825
+
18826
+ """Declined"""
18827
+ DECLINED
18828
+
18829
+ """Paused"""
18830
+ PAUSED
18831
+
18832
+ """Suspended"""
18833
+ SUSPENDED
18834
+
18835
+ """Banned"""
18836
+ BANNED
18837
+
18838
+ """Deactivated"""
18839
+ DEACTIVATED
18840
+ }
18841
+
18763
18842
  input MetadataInput {
18764
18843
  """Key of a metadata item."""
18765
18844
  key: String!
@@ -18818,32 +18897,6 @@ input SellerChecklistInput {
18818
18897
  completeOn: SellerChecklistCompetitionTriggersEnum
18819
18898
  }
18820
18899
 
18821
- enum SellerStatusEnum {
18822
- """Applying"""
18823
- APPLYING
18824
-
18825
- """Pending"""
18826
- PENDING
18827
-
18828
- """Approved"""
18829
- APPROVED
18830
-
18831
- """Declined"""
18832
- DECLINED
18833
-
18834
- """Paused"""
18835
- PAUSED
18836
-
18837
- """Suspended"""
18838
- SUSPENDED
18839
-
18840
- """Banned"""
18841
- BANNED
18842
-
18843
- """Deactivated"""
18844
- DEACTIVATED
18845
- }
18846
-
18847
18900
  """Allows [re-]assign a user to a seller"""
18848
18901
  type SellerUserMappingCreate {
18849
18902
  ok: Boolean
@@ -19114,6 +19167,11 @@ input WebhookCreateInput {
19114
19167
  """
19115
19168
  events: [WebhookEventTypeEnum!]
19116
19169
 
19170
+ """
19171
+ DEPRECATED: Use the `app` field instead. This field will be removed after 2020-07-31.
19172
+ """
19173
+ serviceAccount: ID @deprecated(reason: "Use the `app` field instead.")
19174
+
19117
19175
  """ID of the app to which webhook belongs."""
19118
19176
  app: ID
19119
19177
 
@@ -19156,6 +19214,11 @@ input WebhookUpdateInput {
19156
19214
  """
19157
19215
  events: [WebhookEventTypeEnum!]
19158
19216
 
19217
+ """
19218
+ DEPRECATED: Use the `app` field instead. This field will be removed after 2020-07-31.
19219
+ """
19220
+ serviceAccount: ID @deprecated(reason: "Use the `app` field instead.")
19221
+
19159
19222
  """ID of the app to which webhook belongs."""
19160
19223
  app: ID
19161
19224
 
@@ -22000,9 +22063,26 @@ input DraftOrderCreateInput {
22000
22063
  """Email address of the customer."""
22001
22064
  userEmail: String
22002
22065
 
22066
+ """
22067
+ DEPRECATED: This field will be removed after 2023-12-31. Discount amount for
22068
+ the order
22069
+ """
22070
+ discount: PositiveDecimal @deprecated(reason: "Use NauticalOrderUpdateApplyVoucherCode mutation instead.")
22071
+
22003
22072
  """Shipping address of the customer."""
22004
22073
  shippingAddress: AddressInput
22005
22074
 
22075
+ """
22076
+ ID of a selected shipping method. This field should be used only for Seller Orders.
22077
+ """
22078
+ shippingMethod: ID @deprecated(reason: "Unsupported field. Use \"orderUpdateShipping\" for updating shipping method for seller orders and \"NauticalOrderUpdateShipping\" for Marketplace orders.")
22079
+
22080
+ """
22081
+ DEPRECATED: This field will be removed after 2023-12-31. ID of the voucher
22082
+ associated with the order.
22083
+ """
22084
+ voucher: ID @deprecated(reason: "Use NauticalOrderUpdateApplyVoucherCode mutation instead.")
22085
+
22006
22086
  """A note from a customer. Visible by customers in the order summary."""
22007
22087
  customerNote: String
22008
22088
 
@@ -22054,9 +22134,26 @@ input NauticalDraftOrderCreateInput {
22054
22134
  """Email address of the customer."""
22055
22135
  userEmail: String
22056
22136
 
22137
+ """
22138
+ DEPRECATED: This field will be removed after 2023-12-31. Discount amount for
22139
+ the order
22140
+ """
22141
+ discount: PositiveDecimal @deprecated(reason: "Use NauticalOrderUpdateApplyVoucherCode mutation instead.")
22142
+
22057
22143
  """Shipping address of the customer."""
22058
22144
  shippingAddress: AddressInput
22059
22145
 
22146
+ """
22147
+ ID of a selected shipping method. This field should be used only for Seller Orders.
22148
+ """
22149
+ shippingMethod: ID @deprecated(reason: "Unsupported field. Use \"orderUpdateShipping\" for updating shipping method for seller orders and \"NauticalOrderUpdateShipping\" for Marketplace orders.")
22150
+
22151
+ """
22152
+ DEPRECATED: This field will be removed after 2023-12-31. ID of the voucher
22153
+ associated with the order.
22154
+ """
22155
+ voucher: ID @deprecated(reason: "Use NauticalOrderUpdateApplyVoucherCode mutation instead.")
22156
+
22060
22157
  """A note from a customer. Visible by customers in the order summary."""
22061
22158
  customerNote: String
22062
22159
 
@@ -22105,6 +22202,9 @@ input NauticalHistoricalOrderInput {
22105
22202
  """Discount amount for the order."""
22106
22203
  discount: PositiveDecimal
22107
22204
 
22205
+ """ID of a selected shipping method."""
22206
+ shippingMethod: ID @deprecated(reason: "This field should not be provided for Marketplace orders. Mutation \"NauticalOrderUpdateShipping\" should be used instead to set shipping method for each separate seller. This field will be removed after 2023-12-16.")
22207
+
22108
22208
  """Shipping price without taxes."""
22109
22209
  shippingPriceNetAmount: PositiveDecimal
22110
22210
 
@@ -22273,9 +22373,26 @@ input DraftOrderInput {
22273
22373
  """Email address of the customer."""
22274
22374
  userEmail: String
22275
22375
 
22376
+ """
22377
+ DEPRECATED: This field will be removed after 2023-12-31. Discount amount for
22378
+ the order
22379
+ """
22380
+ discount: PositiveDecimal @deprecated(reason: "Use NauticalOrderUpdateApplyVoucherCode mutation instead.")
22381
+
22276
22382
  """Shipping address of the customer."""
22277
22383
  shippingAddress: AddressInput
22278
22384
 
22385
+ """
22386
+ ID of a selected shipping method. This field should be used only for Seller Orders.
22387
+ """
22388
+ shippingMethod: ID @deprecated(reason: "Unsupported field. Use \"orderUpdateShipping\" for updating shipping method for seller orders and \"NauticalOrderUpdateShipping\" for Marketplace orders.")
22389
+
22390
+ """
22391
+ DEPRECATED: This field will be removed after 2023-12-31. ID of the voucher
22392
+ associated with the order.
22393
+ """
22394
+ voucher: ID @deprecated(reason: "Use NauticalOrderUpdateApplyVoucherCode mutation instead.")
22395
+
22279
22396
  """A note from a customer. Visible by customers in the order summary."""
22280
22397
  customerNote: String
22281
22398
 
@@ -22301,9 +22418,26 @@ input NauticalDraftOrderInput {
22301
22418
  """Email address of the customer."""
22302
22419
  userEmail: String
22303
22420
 
22421
+ """
22422
+ DEPRECATED: This field will be removed after 2023-12-31. Discount amount for
22423
+ the order
22424
+ """
22425
+ discount: PositiveDecimal @deprecated(reason: "Use NauticalOrderUpdateApplyVoucherCode mutation instead.")
22426
+
22304
22427
  """Shipping address of the customer."""
22305
22428
  shippingAddress: AddressInput
22306
22429
 
22430
+ """
22431
+ ID of a selected shipping method. This field should be used only for Seller Orders.
22432
+ """
22433
+ shippingMethod: ID @deprecated(reason: "Unsupported field. Use \"orderUpdateShipping\" for updating shipping method for seller orders and \"NauticalOrderUpdateShipping\" for Marketplace orders.")
22434
+
22435
+ """
22436
+ DEPRECATED: This field will be removed after 2023-12-31. ID of the voucher
22437
+ associated with the order.
22438
+ """
22439
+ voucher: ID @deprecated(reason: "Use NauticalOrderUpdateApplyVoucherCode mutation instead.")
22440
+
22307
22441
  """A note from a customer. Visible by customers in the order summary."""
22308
22442
  customerNote: String
22309
22443
 
@@ -23968,6 +24102,16 @@ type CheckoutComplete {
23968
24102
  checkoutErrors: [CheckoutError!]!
23969
24103
  }
23970
24104
 
24105
+ input SellerVolumeDiscountInput {
24106
+ seller: Int
24107
+ volumeDiscount: MoneyInput = null
24108
+ }
24109
+
24110
+ input MoneyInput {
24111
+ amount: Float
24112
+ currency: String
24113
+ }
24114
+
23971
24115
  """
23972
24116
  Converts checkout to nautical quote order with the same id as checkout has when checkout is ready to be converted into quote order. This mutation should delete current checkout in case when order is created.
23973
24117
  """
@@ -24119,6 +24263,7 @@ input SellerShippingMethodInput {
24119
24263
  Optional override amount for shipping method price.Be aware, you should send this field on each request. For example, if you will set this field and then will send the same shipping method (or a new one) without this field (in the context of the same seller) - the price will be restored based on the shipping method price.
24120
24264
  """
24121
24265
  shippingMethodPriceOverrideAmount: PositiveDecimal
24266
+ secondaryAddress: String @deprecated(reason: "This field is unused and will be removed after 2024-02-01")
24122
24267
  }
24123
24268
 
24124
24269
  """Clears the seller shipping methods of the checkout."""
@@ -24453,6 +24598,11 @@ input AppInput {
24453
24598
  """Name of the app."""
24454
24599
  name: String
24455
24600
 
24601
+ """
24602
+ DEPRECATED: Use the `appActivate` and `appDeactivate` mutations instead. This field will be removed after 2020-07-31.
24603
+ """
24604
+ isActive: Boolean @deprecated(reason: "Use the `appActivate` and `appDeactivate` mutations instead.")
24605
+
24456
24606
  """List of permission code names to assign to this app."""
24457
24607
  permissions: [PermissionEnum!]
24458
24608
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nautical-commerce/graphql-schema",
3
- "version": "v1.46.0-5-g532012fd0",
3
+ "version": "v1.46.0",
4
4
  "description": "## Getting Started",
5
5
  "main": "./nautical/schema.graphql",
6
6
  "scripts": {