@nautical-commerce/graphql-schema 4.8.0 → 4.9.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.
@@ -513,8 +513,8 @@ type AgreementCommissionEvent implements Node {
513
513
  """Global ID of user who made the change."""
514
514
  userId: String
515
515
 
516
- """Tenant ID where the change occurred."""
517
- tenantId: Int
516
+ """UUID of the tenant where the change occurred."""
517
+ tenantId: String
518
518
 
519
519
  """Tenant slug where the change occurred."""
520
520
  tenantSlug: String
@@ -643,8 +643,8 @@ type AgreementEvent implements Node {
643
643
  """Global ID of user who made the change."""
644
644
  userId: String
645
645
 
646
- """Tenant ID where the change occurred."""
647
- tenantId: Int
646
+ """UUID of the tenant where the change occurred."""
647
+ tenantId: String
648
648
 
649
649
  """Tenant slug where the change occurred."""
650
650
  tenantSlug: String
@@ -765,8 +765,8 @@ type AgreementFeesEvent implements Node {
765
765
  """Global ID of user who made the change."""
766
766
  userId: String
767
767
 
768
- """Tenant ID where the change occurred."""
769
- tenantId: Int
768
+ """UUID of the tenant where the change occurred."""
769
+ tenantId: String
770
770
 
771
771
  """Tenant slug where the change occurred."""
772
772
  tenantSlug: String
@@ -918,8 +918,8 @@ type AgreementSellersEvent implements Node {
918
918
  """Global ID of user who made the change."""
919
919
  userId: String
920
920
 
921
- """Tenant ID where the change occurred."""
922
- tenantId: Int
921
+ """UUID of the tenant where the change occurred."""
922
+ tenantId: String
923
923
 
924
924
  """Tenant slug where the change occurred."""
925
925
  tenantSlug: String
@@ -997,8 +997,8 @@ type AgreementTimelineEvent implements Node {
997
997
  """Global ID of user who made the change."""
998
998
  userId: String
999
999
 
1000
- """Tenant ID where the change occurred."""
1001
- tenantId: Int
1000
+ """UUID of the tenant where the change occurred."""
1001
+ tenantId: String
1002
1002
 
1003
1003
  """Tenant slug where the change occurred."""
1004
1004
  tenantSlug: String
@@ -1043,6 +1043,58 @@ type AgreementUpdate {
1043
1043
  agreementErrors: [AgreementError!]!
1044
1044
  }
1045
1045
 
1046
+ """Result of an asynchronous Algolia maintenance action."""
1047
+ type AlgoliaAction {
1048
+ """True when the background job was queued. It runs asynchronously."""
1049
+ started: Boolean!
1050
+
1051
+ """List of errors that occurred executing the mutation."""
1052
+ pluginsErrors: [PluginError!]!
1053
+ }
1054
+
1055
+ """Category of an Algolia sync problem."""
1056
+ enum AlgoliaProblemCode {
1057
+ AUTH_ERROR
1058
+ RECORD_TOO_LARGE
1059
+ INDEXING_FAILED
1060
+ SETTINGS_FAILED
1061
+ CONFIG_INVALID
1062
+ }
1063
+
1064
+ """A problem the Algolia sync hit, with what to do about it."""
1065
+ type AlgoliaSyncProblem {
1066
+ """Problem id."""
1067
+ id: ID!
1068
+
1069
+ """When the problem was recorded."""
1070
+ createdAt: DateTime!
1071
+
1072
+ """Problem category."""
1073
+ code: AlgoliaProblemCode!
1074
+
1075
+ """What went wrong."""
1076
+ message: String!
1077
+
1078
+ """
1079
+ Pointer to the affected object, e.g. 'product:123'. Empty when not object-specific.
1080
+ """
1081
+ objectLabel: String!
1082
+
1083
+ """Suggested next step for this category."""
1084
+ remediation: String!
1085
+ }
1086
+
1087
+ """Result of algoliaVerifyCredentials."""
1088
+ type AlgoliaVerifyCredentials {
1089
+ """
1090
+ True when the configured admin key exists and carries every required ACL.
1091
+ """
1092
+ verified: Boolean!
1093
+
1094
+ """List of errors that occurred executing the mutation."""
1095
+ pluginsErrors: [PluginError!]!
1096
+ }
1097
+
1046
1098
  """Represents stock allocation for an order line."""
1047
1099
  type Allocation implements Node {
1048
1100
  """The Globally Unique ID of this object"""
@@ -1602,8 +1654,8 @@ type AttributeAuditEvent implements Node {
1602
1654
  """Global ID of the user who made the change."""
1603
1655
  userId: String
1604
1656
 
1605
- """Tenant ID where the change occurred."""
1606
- tenantId: Int
1657
+ """UUID of the tenant where the change occurred."""
1658
+ tenantId: String
1607
1659
 
1608
1660
  """Tenant slug where the change occurred."""
1609
1661
  tenantSlug: String
@@ -2960,8 +3012,8 @@ type CategoryAuditEvent implements Node {
2960
3012
  """Global ID of the user who made the change."""
2961
3013
  userId: String
2962
3014
 
2963
- """Tenant ID where the change occurred."""
2964
- tenantId: Int
3015
+ """UUID of the tenant where the change occurred."""
3016
+ tenantId: String
2965
3017
 
2966
3018
  """Tenant slug where the change occurred."""
2967
3019
  tenantSlug: String
@@ -3962,8 +4014,8 @@ type CollectionAuditEvent implements Node {
3962
4014
  """Global ID of the user who made the change."""
3963
4015
  userId: String
3964
4016
 
3965
- """Tenant ID where the change occurred."""
3966
- tenantId: Int
4017
+ """UUID of the tenant where the change occurred."""
4018
+ tenantId: String
3967
4019
 
3968
4020
  """Tenant slug where the change occurred."""
3969
4021
  tenantSlug: String
@@ -5556,8 +5608,8 @@ type DigitalContentAuditEvent implements Node {
5556
5608
  """Global ID of the user who made the change."""
5557
5609
  userId: String
5558
5610
 
5559
- """Tenant ID where the change occurred."""
5560
- tenantId: Int
5611
+ """UUID of the tenant where the change occurred."""
5612
+ tenantId: String
5561
5613
 
5562
5614
  """Tenant slug where the change occurred."""
5563
5615
  tenantSlug: String
@@ -5730,8 +5782,8 @@ type DigitalContentUrlAuditEvent implements Node {
5730
5782
  """Global ID of the user who made the change."""
5731
5783
  userId: String
5732
5784
 
5733
- """Tenant ID where the change occurred."""
5734
- tenantId: Int
5785
+ """UUID of the tenant where the change occurred."""
5786
+ tenantId: String
5735
5787
 
5736
5788
  """Tenant slug where the change occurred."""
5737
5789
  tenantSlug: String
@@ -5782,6 +5834,15 @@ input DigitalContentUrlCreateInput {
5782
5834
  content: ID!
5783
5835
  }
5784
5836
 
5837
+ """Result of digital content URL rotate mutation."""
5838
+ type DigitalContentUrlRotate {
5839
+ """The newly issued digital content URL."""
5840
+ digitalContentUrl: DigitalContentUrl
5841
+
5842
+ """List of errors that occurred executing the mutation."""
5843
+ productErrors: [ProductError!]!
5844
+ }
5845
+
5785
5846
  """Represents errors from discount operations."""
5786
5847
  type DiscountError {
5787
5848
  field: String
@@ -10048,6 +10109,9 @@ type Mutation {
10048
10109
  """Publish products in bulk."""
10049
10110
  productBulkPublish(ids: [ID!]!, isPublished: Boolean!): ProductBulkPublish!
10050
10111
 
10112
+ """Update approval status for products in bulk."""
10113
+ productBulkSubStatusUpdate(ids: [ID!]!, subStatus: ProductSubStatusEnum!, subStatusReason: String = null): ProductBulkSubStatusUpdate!
10114
+
10051
10115
  """Update category for products in bulk."""
10052
10116
  productBulkCategoryUpdate(ids: [ID!]!, category: ID!): ProductBulkCategoryUpdate!
10053
10117
 
@@ -10200,6 +10264,11 @@ type Mutation {
10200
10264
  """Creates a download URL for digital content."""
10201
10265
  digitalContentUrlCreate(input: DigitalContentUrlCreateInput!): DigitalContentUrlCreate!
10202
10266
 
10267
+ """
10268
+ Re-issue the download link for an order line. The existing link stops working immediately and is replaced by one with a fresh token and a reset download count. Accepts either an OrderLine or a NauticalOrderLine id. The customer's entitlement is left untouched — this replaces the delivery credential, not their ownership. Requires MANAGE_ORDERS.
10269
+ """
10270
+ digitalContentUrlRotate(lineId: ID!): DigitalContentUrlRotate!
10271
+
10203
10272
  """
10204
10273
  Create a product bundle. Builds a Product flagged is_bundle=True + its single sellable ProductVariant + BundleItem rows for each component, all in one transaction.
10205
10274
  """
@@ -10644,6 +10713,21 @@ type Mutation {
10644
10713
  """Create a checkout event for analytics tracking."""
10645
10714
  checkoutEventTriggered(type: CheckoutEventType!, checkoutId: String!): CheckoutEventTriggered!
10646
10715
 
10716
+ """
10717
+ Check the configured Algolia admin credentials and required ACLs. Works on a saved but not yet activated configuration.
10718
+ """
10719
+ algoliaVerifyCredentials: AlgoliaVerifyCredentials!
10720
+
10721
+ """
10722
+ Push the plugin-owned index settings to Algolia. Tenant-authored relevance settings are never overwritten.
10723
+ """
10724
+ algoliaPushSettings: AlgoliaAction!
10725
+
10726
+ """
10727
+ Rebuild the whole product index from the database. The swap is atomic: the live index is only replaced once the rebuild succeeds.
10728
+ """
10729
+ algoliaReindex: AlgoliaAction!
10730
+
10647
10731
  """Create a new warehouse."""
10648
10732
  warehouseCreate(input: WarehouseCreateInput!): WarehouseCreate!
10649
10733
 
@@ -11242,8 +11326,8 @@ type NauticalOrderAuditEvent implements Node {
11242
11326
  """Global ID of user who made the change."""
11243
11327
  changedById: String
11244
11328
 
11245
- """Tenant ID where the change occurred."""
11246
- tenantId: Int
11329
+ """UUID of the tenant where the change occurred."""
11330
+ tenantId: String
11247
11331
 
11248
11332
  """Tenant slug where the change occurred."""
11249
11333
  tenantSlug: String
@@ -12345,8 +12429,8 @@ type OrderAuditEvent implements Node {
12345
12429
  """Email of staff/app user who made the change."""
12346
12430
  changedByEmail: String
12347
12431
 
12348
- """Tenant ID where the change occurred."""
12349
- tenantId: Int
12432
+ """UUID of the tenant where the change occurred."""
12433
+ tenantId: String
12350
12434
 
12351
12435
  """App name if change was via API token."""
12352
12436
  appName: String
@@ -13792,8 +13876,8 @@ type PaymentEvent implements Node {
13792
13876
  """Email of user who made the change."""
13793
13877
  changedByEmail: String
13794
13878
 
13795
- """Tenant ID where the change occurred."""
13796
- tenantId: Int
13879
+ """UUID of the tenant where the change occurred."""
13880
+ tenantId: String
13797
13881
 
13798
13882
  """App name if change was via API token."""
13799
13883
  appName: String
@@ -15008,8 +15092,8 @@ type ProductAuditEvent implements Node {
15008
15092
  """Global ID of the user who made the change."""
15009
15093
  userId: String
15010
15094
 
15011
- """Tenant ID where the change occurred."""
15012
- tenantId: Int
15095
+ """UUID of the tenant where the change occurred."""
15096
+ tenantId: String
15013
15097
 
15014
15098
  """Tenant slug where the change occurred."""
15015
15099
  tenantSlug: String
@@ -15197,6 +15281,15 @@ type ProductBulkPublish {
15197
15281
  productErrors: [ProductError!]!
15198
15282
  }
15199
15283
 
15284
+ """Result of product bulk approval status update mutation."""
15285
+ type ProductBulkSubStatusUpdate {
15286
+ """Number of products whose approval status was updated."""
15287
+ count: Int!
15288
+
15289
+ """List of errors that occurred executing the mutation."""
15290
+ productErrors: [ProductError!]!
15291
+ }
15292
+
15200
15293
  """Product category report data."""
15201
15294
  type ProductCategoryReportType {
15202
15295
  """Category ID"""
@@ -15573,8 +15666,8 @@ type ProductImageAuditEvent implements Node {
15573
15666
  """Global ID of the user who made the change."""
15574
15667
  userId: String
15575
15668
 
15576
- """Tenant ID where the change occurred."""
15577
- tenantId: Int
15669
+ """UUID of the tenant where the change occurred."""
15670
+ tenantId: String
15578
15671
 
15579
15672
  """Tenant slug where the change occurred."""
15580
15673
  tenantSlug: String
@@ -16156,8 +16249,8 @@ type ProductTypeAuditEvent implements Node {
16156
16249
  """Global ID of the user who made the change."""
16157
16250
  userId: String
16158
16251
 
16159
- """Tenant ID where the change occurred."""
16160
- tenantId: Int
16252
+ """UUID of the tenant where the change occurred."""
16253
+ tenantId: String
16161
16254
 
16162
16255
  """Tenant slug where the change occurred."""
16163
16256
  tenantSlug: String
@@ -16569,8 +16662,8 @@ type ProductVariantAuditEvent implements Node {
16569
16662
  """Global ID of the user who made the change."""
16570
16663
  userId: String
16571
16664
 
16572
- """Tenant ID where the change occurred."""
16573
- tenantId: Int
16665
+ """UUID of the tenant where the change occurred."""
16666
+ tenantId: String
16574
16667
 
16575
16668
  """Tenant slug where the change occurred."""
16576
16669
  tenantSlug: String
@@ -17180,8 +17273,8 @@ type ProductVideoAuditEvent implements Node {
17180
17273
  """Global ID of the user who made the change."""
17181
17274
  userId: String
17182
17275
 
17183
- """Tenant ID where the change occurred."""
17184
- tenantId: Int
17276
+ """UUID of the tenant where the change occurred."""
17277
+ tenantId: String
17185
17278
 
17186
17279
  """Tenant slug where the change occurred."""
17187
17280
  tenantSlug: String
@@ -18348,6 +18441,11 @@ type Query {
18348
18441
  """List all plugins. Requires MANAGE_PLUGINS permission."""
18349
18442
  plugins(first: Int = null, last: Int = null, before: String = null, after: String = null, filter: PluginFilterInput = null, sortBy: PluginSortingInput = null): PluginCountableConnection!
18350
18443
 
18444
+ """
18445
+ Problems recorded by the Algolia sync, newest first. Bounded by the plugin's own retention cap, so this is a short operator list rather than a log store.
18446
+ """
18447
+ algoliaSyncProblems: [AlgoliaSyncProblem!]!
18448
+
18351
18449
  """Look up a webhook by ID."""
18352
18450
  webhook(id: ID!): Webhook
18353
18451
 
@@ -18789,6 +18887,16 @@ type Query {
18789
18887
  """Returns the items in the list that come after the specified cursor."""
18790
18888
  last: Int = null
18791
18889
  ): MarketplaceSubscriptionCountableConnection!
18890
+
18891
+ """
18892
+ Fetch any object by its global ID. Access is deny-by-default: a type is only reachable here once it has been opted in with expose_as_node(), naming the permissions the lookup requires.
18893
+ """
18894
+ node(id: ID!): Node
18895
+
18896
+ """
18897
+ Fetch several objects by global ID. Returns one entry per id, in order, null where the id did not resolve. Same deny-by-default policy as `node`.
18898
+ """
18899
+ nodes(ids: [ID!]!): [Node]!
18792
18900
  }
18793
18901
 
18794
18902
  """The recipient type for an email template."""
@@ -18963,8 +19071,8 @@ type RefundAuditEvent implements Node {
18963
19071
  """Email of user who made the change."""
18964
19072
  changedByEmail: String
18965
19073
 
18966
- """Tenant ID where the change occurred."""
18967
- tenantId: Int
19074
+ """UUID of the tenant where the change occurred."""
19075
+ tenantId: String
18968
19076
 
18969
19077
  """App name if change was via API token."""
18970
19078
  appName: String
@@ -19850,6 +19958,69 @@ type SalesVelocityReport {
19850
19958
  currency: String!
19851
19959
  }
19852
19960
 
19961
+ """
19962
+ How to search this shop's catalog. When provider is ALGOLIA the credentials below are a per-request, index-scoped, expiring secured key safe to use from a browser. When provider is POSTGRES no credentials are issued and consumers should use products(filter: {search: ...}).
19963
+ """
19964
+ type SearchConfiguration {
19965
+ """
19966
+ Engine backing search. POSTGRES means fall back to the GraphQL FTS path.
19967
+ """
19968
+ provider: SearchProvider!
19969
+
19970
+ """
19971
+ Granularity of index records; VARIANT records collapse to one hit per product.
19972
+ """
19973
+ recordModel: SearchRecordModel!
19974
+
19975
+ """
19976
+ Version of the record schema, so clients can detect field-shape changes.
19977
+ """
19978
+ schemaVersion: Int!
19979
+
19980
+ """Indexes this client may query. Empty when provider is POSTGRES."""
19981
+ indexes: [SearchIndexDescriptor!]!
19982
+
19983
+ """Algolia application ID. Null when provider is POSTGRES."""
19984
+ applicationId: String
19985
+
19986
+ """Index-name prefix owned by this shop. Null when POSTGRES."""
19987
+ indexPrefix: String
19988
+
19989
+ """
19990
+ Secured, index-scoped, expiring search key minted for this request. Never the tenant's raw search or admin key. Null when provider is POSTGRES.
19991
+ """
19992
+ searchApiKey: String
19993
+
19994
+ """When searchApiKey stops working. Null when provider is POSTGRES."""
19995
+ validUntil: DateTime
19996
+ }
19997
+
19998
+ """An index the client may query, and what it contains."""
19999
+ type SearchIndexDescriptor {
20000
+ """What this index holds."""
20001
+ purpose: SearchIndexPurpose!
20002
+
20003
+ """Fully-qualified index name, prefix included."""
20004
+ name: String!
20005
+ }
20006
+
20007
+ """What a search index holds."""
20008
+ enum SearchIndexPurpose {
20009
+ PRODUCTS
20010
+ }
20011
+
20012
+ """Which engine backs storefront product search for this shop."""
20013
+ enum SearchProvider {
20014
+ ALGOLIA
20015
+ POSTGRES
20016
+ }
20017
+
20018
+ """Granularity of the records in the products index."""
20019
+ enum SearchRecordModel {
20020
+ VARIANT
20021
+ PRODUCT
20022
+ }
20023
+
19853
20024
  """Represents a selected attribute with its values"""
19854
20025
  type SelectedAttribute {
19855
20026
  """
@@ -20345,8 +20516,8 @@ type SellerAuditEvent implements Node {
20345
20516
  """Global ID of user who made the change."""
20346
20517
  userId: String
20347
20518
 
20348
- """Tenant ID where the change occurred."""
20349
- tenantId: Int
20519
+ """UUID of the tenant where the change occurred."""
20520
+ tenantId: String
20350
20521
 
20351
20522
  """Tenant slug where the change occurred."""
20352
20523
  tenantSlug: String
@@ -21487,6 +21658,11 @@ type Shop {
21487
21658
  """Gets active plugins."""
21488
21659
  activePlugins: [Plugin!]!
21489
21660
 
21661
+ """
21662
+ How to search this shop's catalog, including a per-request secured search key when an Algolia search provider is active.
21663
+ """
21664
+ searchConfiguration: SearchConfiguration!
21665
+
21490
21666
  """Storefront integrations for the given contexts."""
21491
21667
  storefrontUiIntegrations(contexts: [AppStorefrontIntegrationContextEnum!] = null): [AppStorefrontIntegration!]!
21492
21668
  }
@@ -23388,8 +23564,8 @@ type VendorPayoutAuditEvent implements Node {
23388
23564
  """Global ID of user who made the change."""
23389
23565
  userId: String
23390
23566
 
23391
- """Tenant ID where the change occurred."""
23392
- tenantId: Int
23567
+ """UUID of the tenant where the change occurred."""
23568
+ tenantId: String
23393
23569
 
23394
23570
  """Tenant slug where the change occurred."""
23395
23571
  tenantSlug: String
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nautical-commerce/graphql-schema",
3
- "version": "4.8.0",
3
+ "version": "4.9.0",
4
4
  "description": "Traide API GraphQL Schema",
5
5
  "main": "./nautical/schema.graphql",
6
6
  "scripts": {