@forgecart/sdk 1.2.7 → 1.202607061936.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.
Files changed (39) hide show
  1. package/README.md +2 -2
  2. package/dist/admin-types.generated.d.ts +481 -33
  3. package/dist/admin.d.ts +2 -0
  4. package/dist/admin.generated.d.ts +67 -27
  5. package/dist/admin.generated.js +88 -4
  6. package/dist/admin.js +35 -31
  7. package/dist/client.generated.d.ts +40 -1
  8. package/dist/client.generated.js +152 -6
  9. package/dist/documents.generated.d.ts +28 -6
  10. package/dist/documents.generated.js +517 -41
  11. package/dist/index.d.ts +1 -0
  12. package/dist/shop-types.generated.d.ts +205 -13
  13. package/dist/shop.d.ts +1 -0
  14. package/dist/shop.generated.d.ts +13 -4
  15. package/dist/shop.generated.js +19 -1
  16. package/dist/shop.js +17 -15
  17. package/package.json +8 -4
  18. package/src/admin-types.generated.d.ts +10013 -0
  19. package/src/admin-types.generated.ts +1019 -96
  20. package/src/admin.generated.d.ts +806 -0
  21. package/src/admin.generated.ts +117 -29
  22. package/src/admin.ts +2 -0
  23. package/src/client.generated.d.ts +249 -0
  24. package/src/client.generated.ts +185 -5
  25. package/src/documents.generated.d.ts +473 -0
  26. package/src/documents.generated.ts +530 -32
  27. package/src/error-utils.d.ts +25 -0
  28. package/src/hook-event-map.generated.d.ts +243 -0
  29. package/src/index.d.ts +22 -0
  30. package/src/index.ts +1 -0
  31. package/src/sdk-hook-subscription.generated.d.ts +29 -0
  32. package/src/sdk-plugin.generated.d.ts +38 -0
  33. package/src/sdk-types.generated.d.ts +56 -0
  34. package/src/shop-types.generated.d.ts +4786 -0
  35. package/src/shop-types.generated.ts +275 -13
  36. package/src/shop.generated.d.ts +213 -0
  37. package/src/shop.generated.ts +22 -5
  38. package/src/shop.ts +1 -0
  39. package/src/upload.d.ts +14 -0
@@ -570,6 +570,7 @@ export type ChannelPlugin = {
570
570
  updatedAt: Scalars['DateTime']['output'];
571
571
  };
572
572
  export type ChannelSettings = {
573
+ autoCurrencyExchange: Scalars['Boolean']['output'];
573
574
  channelId: Scalars['ID']['output'];
574
575
  chargeTaxOnShipping: Scalars['Boolean']['output'];
575
576
  companyAddress?: Maybe<CompanyAddress>;
@@ -578,13 +579,29 @@ export type ChannelSettings = {
578
579
  defaultFulfillmentHandlerCode?: Maybe<Scalars['String']['output']>;
579
580
  defaultPaymentProviderCode?: Maybe<Scalars['String']['output']>;
580
581
  defaultWeightUnit?: Maybe<WeightUnit>;
582
+ fxMarkupPercent: Scalars['Float']['output'];
583
+ fxRoundingRule: Scalars['String']['output'];
581
584
  id: Scalars['ID']['output'];
582
- manualShippingRates: Array<ManualShippingRate>;
583
585
  requireCustomerForCheckout: Scalars['Boolean']['output'];
584
586
  requiresShippingAddressValidation: Scalars['Boolean']['output'];
585
587
  shopName?: Maybe<Scalars['String']['output']>;
586
588
  taxOriginScope: Scalars['String']['output'];
587
589
  };
590
+ export type ChatHistoryInput = {
591
+ sessionId: Scalars['String']['input'];
592
+ skip?: InputMaybe<Scalars['Int']['input']>;
593
+ take?: InputMaybe<Scalars['Int']['input']>;
594
+ };
595
+ export type ChatHistoryMessage = {
596
+ content: Scalars['String']['output'];
597
+ eventId?: Maybe<Scalars['Int']['output']>;
598
+ id: Scalars['ID']['output'];
599
+ role: Scalars['String']['output'];
600
+ seq: Scalars['Int']['output'];
601
+ timestamp: Scalars['String']['output'];
602
+ toolResult?: Maybe<Scalars['JSON']['output']>;
603
+ toolUse?: Maybe<Scalars['JSON']['output']>;
604
+ };
588
605
  export type ChatMessage = {
589
606
  content: Scalars['String']['output'];
590
607
  eventId: Scalars['Int']['output'];
@@ -603,11 +620,34 @@ export type ChatQueueItem = {
603
620
  export type ChatSession = {
604
621
  channelToken: Scalars['String']['output'];
605
622
  createdAt: Scalars['String']['output'];
623
+ endpoint?: Maybe<Scalars['String']['output']>;
606
624
  lastActivity: Scalars['String']['output'];
607
625
  messageCount: Scalars['Int']['output'];
608
626
  sessionId: Scalars['String']['output'];
609
627
  status: Scalars['String']['output'];
610
628
  userId: Scalars['String']['output'];
629
+ workspaceId?: Maybe<Scalars['String']['output']>;
630
+ workspaceStatus: WorkspaceBindingStatus;
631
+ };
632
+ export type ChatSessionSummary = {
633
+ agentSessionId: Scalars['String']['output'];
634
+ createdAt: Scalars['String']['output'];
635
+ id: Scalars['ID']['output'];
636
+ lastActivityAt: Scalars['String']['output'];
637
+ messageCount: Scalars['Int']['output'];
638
+ origin?: Maybe<Scalars['String']['output']>;
639
+ status: Scalars['String']['output'];
640
+ title?: Maybe<Scalars['String']['output']>;
641
+ workspaceId?: Maybe<Scalars['ID']['output']>;
642
+ };
643
+ export type ChatSessionSummaryList = {
644
+ items: Array<ChatSessionSummary>;
645
+ totalItems: Scalars['Int']['output'];
646
+ };
647
+ export type ChatSessionsInput = {
648
+ includeArchived?: InputMaybe<Scalars['Boolean']['input']>;
649
+ skip?: InputMaybe<Scalars['Int']['input']>;
650
+ take?: InputMaybe<Scalars['Int']['input']>;
611
651
  };
612
652
  export type Collection = {
613
653
  createdAt: Scalars['DateTime']['output'];
@@ -738,6 +778,7 @@ export type CreateCarrierInput = {
738
778
  providerCode: Scalars['String']['input'];
739
779
  };
740
780
  export type CreateChannelInput = {
781
+ availableCurrencyCodes?: InputMaybe<Array<Scalars['String']['input']>>;
741
782
  availableLanguageCodes?: InputMaybe<Array<Scalars['String']['input']>>;
742
783
  code: Scalars['String']['input'];
743
784
  defaultCurrencyCode: Scalars['String']['input'];
@@ -848,6 +889,20 @@ export type CreateManageablePluginInput = {
848
889
  tags?: InputMaybe<Array<Scalars['String']['input']>>;
849
890
  toggable?: InputMaybe<Scalars['Boolean']['input']>;
850
891
  };
892
+ export type CreateMarketInput = {
893
+ countryCodes: Array<Scalars['String']['input']>;
894
+ currencyCode: Scalars['String']['input'];
895
+ enabled?: InputMaybe<Scalars['Boolean']['input']>;
896
+ languageCode?: InputMaybe<Scalars['String']['input']>;
897
+ name: Scalars['String']['input'];
898
+ };
899
+ export type CreateMissionInput = {
900
+ model: Scalars['String']['input'];
901
+ prompt: Scalars['String']['input'];
902
+ repos?: InputMaybe<Array<MissionRepoInput>>;
903
+ title?: InputMaybe<Scalars['String']['input']>;
904
+ workspaceId: Scalars['ID']['input'];
905
+ };
851
906
  export type CreateProductInput = {
852
907
  assetIds?: InputMaybe<Array<Scalars['ID']['input']>>;
853
908
  enabled?: InputMaybe<Scalars['Boolean']['input']>;
@@ -947,6 +1002,16 @@ export type CreateSessionInput = {
947
1002
  providerCode?: InputMaybe<Scalars['String']['input']>;
948
1003
  tokenId?: InputMaybe<Scalars['ID']['input']>;
949
1004
  };
1005
+ export type CreateShippingGatewayRoutingRuleInput = {
1006
+ countryCodes?: InputMaybe<Array<Scalars['String']['input']>>;
1007
+ enabled?: InputMaybe<Scalars['Boolean']['input']>;
1008
+ flatRates?: InputMaybe<Array<ShippingRoutingFlatRateInput>>;
1009
+ fulfillmentType: ShippingRoutingFulfillmentType;
1010
+ priority?: InputMaybe<Scalars['Int']['input']>;
1011
+ providerCode?: InputMaybe<Scalars['String']['input']>;
1012
+ scopeType: ShippingRoutingScopeType;
1013
+ stockLocationId: Scalars['ID']['input'];
1014
+ };
950
1015
  export type CreateShopSubscriptionInput = {
951
1016
  defaultTokenId?: InputMaybe<Scalars['ID']['input']>;
952
1017
  items: Array<CreateSubscriptionItemInput>;
@@ -1064,6 +1129,20 @@ export type DeleteAssetsInput = {
1064
1129
  force?: InputMaybe<Scalars['Boolean']['input']>;
1065
1130
  ids: Array<Scalars['ID']['input']>;
1066
1131
  };
1132
+ export type DeleteChannelInput = {
1133
+ collections?: InputMaybe<Scalars['Boolean']['input']>;
1134
+ customers?: InputMaybe<Scalars['Boolean']['input']>;
1135
+ facets?: InputMaybe<Scalars['Boolean']['input']>;
1136
+ id: Scalars['ID']['input'];
1137
+ orders?: InputMaybe<Scalars['Boolean']['input']>;
1138
+ products?: InputMaybe<Scalars['Boolean']['input']>;
1139
+ promotions?: InputMaybe<Scalars['Boolean']['input']>;
1140
+ sellers?: InputMaybe<Scalars['Boolean']['input']>;
1141
+ stockLocations?: InputMaybe<Scalars['Boolean']['input']>;
1142
+ subscriptions?: InputMaybe<Scalars['Boolean']['input']>;
1143
+ taxRates?: InputMaybe<Scalars['Boolean']['input']>;
1144
+ usageMetrics?: InputMaybe<Scalars['Boolean']['input']>;
1145
+ };
1067
1146
  export type DeleteFacetInput = {
1068
1147
  force?: InputMaybe<Scalars['Boolean']['input']>;
1069
1148
  id: Scalars['ID']['input'];
@@ -1498,19 +1577,20 @@ export type ManageablePluginConfigItemTranslation = {
1498
1577
  languageCode: Scalars['String']['output'];
1499
1578
  name: Scalars['String']['output'];
1500
1579
  };
1501
- export type ManualShippingRate = {
1502
- amount: Scalars['Int']['output'];
1503
- code: Scalars['String']['output'];
1504
- currency: Scalars['String']['output'];
1505
- estimatedDays?: Maybe<Scalars['Int']['output']>;
1580
+ export type Market = {
1581
+ channelId: Scalars['ID']['output'];
1582
+ countries: Array<Country>;
1583
+ createdAt: Scalars['DateTime']['output'];
1584
+ currencyCode: Scalars['String']['output'];
1585
+ enabled: Scalars['Boolean']['output'];
1586
+ id: Scalars['ID']['output'];
1587
+ languageCode?: Maybe<Scalars['String']['output']>;
1506
1588
  name: Scalars['String']['output'];
1589
+ updatedAt: Scalars['DateTime']['output'];
1507
1590
  };
1508
- export type ManualShippingRateInput = {
1509
- amount: Scalars['Int']['input'];
1510
- code: Scalars['String']['input'];
1511
- currency: Scalars['String']['input'];
1512
- estimatedDays?: InputMaybe<Scalars['Int']['input']>;
1513
- name: Scalars['String']['input'];
1591
+ export type MarketList = {
1592
+ items: Array<Market>;
1593
+ totalItems: Scalars['Int']['output'];
1514
1594
  };
1515
1595
  export type MarketingAttribution = {
1516
1596
  computedAt: Scalars['DateTime']['output'];
@@ -1602,6 +1682,46 @@ export type MergeFulfillmentRequestInput = {
1602
1682
  requestIdA: Scalars['ID']['input'];
1603
1683
  requestIdB: Scalars['ID']['input'];
1604
1684
  };
1685
+ export type Mission = {
1686
+ administratorId: Scalars['ID']['output'];
1687
+ branch?: Maybe<Scalars['String']['output']>;
1688
+ channelId: Scalars['ID']['output'];
1689
+ costCents?: Maybe<Scalars['Int']['output']>;
1690
+ createdAt: Scalars['DateTime']['output'];
1691
+ id: Scalars['ID']['output'];
1692
+ model: Scalars['String']['output'];
1693
+ podRef?: Maybe<Scalars['String']['output']>;
1694
+ prUrl?: Maybe<Scalars['String']['output']>;
1695
+ repos: Array<MissionRepoRef>;
1696
+ status: MissionStatus;
1697
+ title?: Maybe<Scalars['String']['output']>;
1698
+ updatedAt: Scalars['DateTime']['output'];
1699
+ workspaceId: Scalars['ID']['output'];
1700
+ };
1701
+ export type MissionList = {
1702
+ items: Array<Mission>;
1703
+ totalItems: Scalars['Int']['output'];
1704
+ };
1705
+ export type MissionListOptions = {
1706
+ skip?: InputMaybe<Scalars['Int']['input']>;
1707
+ sort?: InputMaybe<MissionSortParameter>;
1708
+ take?: InputMaybe<Scalars['Int']['input']>;
1709
+ };
1710
+ export type MissionRepoInput = {
1711
+ branch: Scalars['String']['input'];
1712
+ name: Scalars['String']['input'];
1713
+ owner: Scalars['String']['input'];
1714
+ };
1715
+ export type MissionRepoRef = {
1716
+ branch: Scalars['String']['output'];
1717
+ name: Scalars['String']['output'];
1718
+ owner: Scalars['String']['output'];
1719
+ };
1720
+ export type MissionSortParameter = {
1721
+ createdAt?: InputMaybe<SortOrder>;
1722
+ updatedAt?: InputMaybe<SortOrder>;
1723
+ };
1724
+ export type MissionStatus = 'AWAITING_USER' | 'COMPLETED' | 'FAILED' | 'INTERRUPTED' | 'PENDING' | 'RUNNING';
1605
1725
  export type ModifyOrderAddItemInput = {
1606
1726
  productVariantId: Scalars['ID']['input'];
1607
1727
  quantity: Scalars['Int']['input'];
@@ -1646,6 +1766,7 @@ export type Mutation = {
1646
1766
  adjustStock: StockMovement;
1647
1767
  applyCouponCode: Order;
1648
1768
  approveDeviceCode: DeviceCodeInfo;
1769
+ archiveChatSession: Scalars['Boolean']['output'];
1649
1770
  assignAssetsToChannel: Array<Asset>;
1650
1771
  assignProductsToChannel: Array<Product>;
1651
1772
  assignPromotionToChannel: Promotion;
@@ -1654,6 +1775,7 @@ export type Mutation = {
1654
1775
  authenticateWithExternalStrategy: AdminExternalAuthResult;
1655
1776
  beginTransaction: TransactionTokenResult;
1656
1777
  cancelFulfillmentRequest: FulfillmentRequest;
1778
+ cancelMission: Mission;
1657
1779
  cancelOrder: Order;
1658
1780
  cancelPaymentSession: PaymentGatewaySession;
1659
1781
  cancelSubscription: BillingSubscription;
@@ -1685,6 +1807,8 @@ export type Mutation = {
1685
1807
  createFulfillment: Fulfillment;
1686
1808
  createFulfillmentRequestsForOrder: Array<FulfillmentRequest>;
1687
1809
  createManageablePlugin: ManageablePlugin;
1810
+ createMarket: Market;
1811
+ createMission: Mission;
1688
1812
  createPaymentSession: PaymentGatewaySession;
1689
1813
  createProduct: Product;
1690
1814
  createProductOption: ProductOption;
@@ -1695,6 +1819,7 @@ export type Mutation = {
1695
1819
  createRole: Role;
1696
1820
  createScheduledJob: ScheduledJob;
1697
1821
  createSeller: Seller;
1822
+ createShippingGatewayRoutingRule: ShippingGatewayRoutingRule;
1698
1823
  createShippingLabel: ShippingGatewayLabel;
1699
1824
  createStockLocation: StockLocation;
1700
1825
  createSubscription: BillingSubscription;
@@ -1706,7 +1831,7 @@ export type Mutation = {
1706
1831
  deleteAssets: DeletionResponse;
1707
1832
  deleteAudienceSegment: AudienceSegment;
1708
1833
  deleteCarrier: Scalars['Boolean']['output'];
1709
- deleteChannel?: Maybe<Scalars['Boolean']['output']>;
1834
+ deleteChannel: Channel;
1710
1835
  deleteChannelPlugin?: Maybe<Scalars['Boolean']['output']>;
1711
1836
  deleteCollection: DeletionResponse;
1712
1837
  deleteCountry: DeletionResponse;
@@ -1720,6 +1845,8 @@ export type Mutation = {
1720
1845
  deleteFacetValues: DeletionResponse;
1721
1846
  deleteFieldDefinition: FieldDefinitionGroup;
1722
1847
  deleteManageablePlugin?: Maybe<Scalars['Boolean']['output']>;
1848
+ deleteMarket: DeletionResponse;
1849
+ deleteMission: Mission;
1723
1850
  deleteOrderNote: DeletionResponse;
1724
1851
  deleteProduct: DeletionResponse;
1725
1852
  deleteProductOption: DeletionResponse;
@@ -1729,6 +1856,7 @@ export type Mutation = {
1729
1856
  deleteRole: DeletionResponse;
1730
1857
  deleteScheduledJob: ScheduledJob;
1731
1858
  deleteSeller: Seller;
1859
+ deleteShippingGatewayRoutingRule: Scalars['Boolean']['output'];
1732
1860
  deleteStockLocation: DeletionResponse;
1733
1861
  deleteSubscriptionVariantConfig: SubscriptionVariantConfig;
1734
1862
  deleteTaxCategory: DeletionResponse;
@@ -1780,6 +1908,7 @@ export type Mutation = {
1780
1908
  removeProductsFromChannel: Array<Product>;
1781
1909
  removePromotionFromChannel: Promotion;
1782
1910
  removeStockLocationFromChannel: StockLocation;
1911
+ reorderShippingGatewayRoutingRules: Array<ShippingGatewayRoutingRule>;
1783
1912
  reportDamagedStock: StockMovement;
1784
1913
  resendAdministratorVerification: Scalars['Boolean']['output'];
1785
1914
  reserveStock: StockMovement;
@@ -1790,6 +1919,7 @@ export type Mutation = {
1790
1919
  scaleDeployment: Deployment;
1791
1920
  selectShippingRate: Order;
1792
1921
  sendChatMessage: Array<ChatMessage>;
1922
+ sendMissionMessage: Mission;
1793
1923
  setBillingAddress: Order;
1794
1924
  setConfigurationItemValue?: Maybe<Scalars['Boolean']['output']>;
1795
1925
  setCustomerForDraftOrder: Order;
@@ -1797,6 +1927,7 @@ export type Mutation = {
1797
1927
  setDefaultToken: PaymentGatewayToken;
1798
1928
  setDeploymentEnv: Deployment;
1799
1929
  setManualShippingRate: Order;
1930
+ setProductVariantPrice: ProductVariantPrice;
1800
1931
  setSafetyStock: StockLevel;
1801
1932
  setShippingAddress: Order;
1802
1933
  settleRefund: Refund;
@@ -1825,6 +1956,7 @@ export type Mutation = {
1825
1956
  updateFacetValues: FacetValue;
1826
1957
  updateFieldDefinition: FieldDefinitionGroup;
1827
1958
  updateManageablePlugin: ManageablePlugin;
1959
+ updateMarket: Market;
1828
1960
  updateOnboardingProfile: OnboardingState;
1829
1961
  updateOrderNote: HistoryEntry;
1830
1962
  updatePluginConfiguration: ChannelPlugin;
@@ -1836,6 +1968,7 @@ export type Mutation = {
1836
1968
  updateRole: Role;
1837
1969
  updateScheduledJob: ScheduledJob;
1838
1970
  updateSeller: Seller;
1971
+ updateShippingGatewayRoutingRule: ShippingGatewayRoutingRule;
1839
1972
  updateShippingLabel: ShippingGatewayLabel;
1840
1973
  updateStockLocation: StockLocation;
1841
1974
  updateSubscriptionVariantConfig: SubscriptionVariantConfig;
@@ -1889,6 +2022,9 @@ export type MutationapplyCouponCodeArgs = {
1889
2022
  export type MutationapproveDeviceCodeArgs = {
1890
2023
  userCode: Scalars['String']['input'];
1891
2024
  };
2025
+ export type MutationarchiveChatSessionArgs = {
2026
+ sessionId: Scalars['ID']['input'];
2027
+ };
1892
2028
  export type MutationassignAssetsToChannelArgs = {
1893
2029
  input: AssignAssetsToChannelInput;
1894
2030
  };
@@ -1910,6 +2046,9 @@ export type MutationauthenticateWithExternalStrategyArgs = {
1910
2046
  export type MutationcancelFulfillmentRequestArgs = {
1911
2047
  input: CancelFulfillmentRequestInput;
1912
2048
  };
2049
+ export type MutationcancelMissionArgs = {
2050
+ id: Scalars['ID']['input'];
2051
+ };
1913
2052
  export type MutationcancelOrderArgs = {
1914
2053
  input: CancelOrderInput;
1915
2054
  };
@@ -2001,6 +2140,12 @@ export type MutationcreateFulfillmentRequestsForOrderArgs = {
2001
2140
  export type MutationcreateManageablePluginArgs = {
2002
2141
  input: CreateManageablePluginInput;
2003
2142
  };
2143
+ export type MutationcreateMarketArgs = {
2144
+ input: CreateMarketInput;
2145
+ };
2146
+ export type MutationcreateMissionArgs = {
2147
+ input: CreateMissionInput;
2148
+ };
2004
2149
  export type MutationcreatePaymentSessionArgs = {
2005
2150
  input: CreateSessionInput;
2006
2151
  };
@@ -2031,6 +2176,9 @@ export type MutationcreateScheduledJobArgs = {
2031
2176
  export type MutationcreateSellerArgs = {
2032
2177
  input: CreateSellerInput;
2033
2178
  };
2179
+ export type MutationcreateShippingGatewayRoutingRuleArgs = {
2180
+ input: CreateShippingGatewayRoutingRuleInput;
2181
+ };
2034
2182
  export type MutationcreateShippingLabelArgs = {
2035
2183
  input: CreateLabelServiceInput;
2036
2184
  };
@@ -2065,7 +2213,7 @@ export type MutationdeleteCarrierArgs = {
2065
2213
  id: Scalars['ID']['input'];
2066
2214
  };
2067
2215
  export type MutationdeleteChannelArgs = {
2068
- id: Scalars['ID']['input'];
2216
+ input: DeleteChannelInput;
2069
2217
  };
2070
2218
  export type MutationdeleteChannelPluginArgs = {
2071
2219
  id: Scalars['ID']['input'];
@@ -2107,6 +2255,12 @@ export type MutationdeleteFieldDefinitionArgs = {
2107
2255
  export type MutationdeleteManageablePluginArgs = {
2108
2256
  id: Scalars['ID']['input'];
2109
2257
  };
2258
+ export type MutationdeleteMarketArgs = {
2259
+ id: Scalars['ID']['input'];
2260
+ };
2261
+ export type MutationdeleteMissionArgs = {
2262
+ id: Scalars['ID']['input'];
2263
+ };
2110
2264
  export type MutationdeleteOrderNoteArgs = {
2111
2265
  id: Scalars['ID']['input'];
2112
2266
  };
@@ -2134,6 +2288,9 @@ export type MutationdeleteScheduledJobArgs = {
2134
2288
  export type MutationdeleteSellerArgs = {
2135
2289
  id: Scalars['ID']['input'];
2136
2290
  };
2291
+ export type MutationdeleteShippingGatewayRoutingRuleArgs = {
2292
+ id: Scalars['ID']['input'];
2293
+ };
2137
2294
  export type MutationdeleteStockLocationArgs = {
2138
2295
  id: Scalars['ID']['input'];
2139
2296
  };
@@ -2281,6 +2438,9 @@ export type MutationremovePromotionFromChannelArgs = {
2281
2438
  export type MutationremoveStockLocationFromChannelArgs = {
2282
2439
  input: RemoveStockLocationFromChannelInput;
2283
2440
  };
2441
+ export type MutationreorderShippingGatewayRoutingRulesArgs = {
2442
+ input: ReorderShippingGatewayRoutingRulesInput;
2443
+ };
2284
2444
  export type MutationreportDamagedStockArgs = {
2285
2445
  input: ReportDamagedStockInput;
2286
2446
  };
@@ -2311,6 +2471,9 @@ export type MutationselectShippingRateArgs = {
2311
2471
  export type MutationsendChatMessageArgs = {
2312
2472
  input: SendChatMessageInput;
2313
2473
  };
2474
+ export type MutationsendMissionMessageArgs = {
2475
+ input: SendMissionMessageInput;
2476
+ };
2314
2477
  export type MutationsetBillingAddressArgs = {
2315
2478
  input: SetBillingAddressInput;
2316
2479
  };
@@ -2332,6 +2495,9 @@ export type MutationsetDeploymentEnvArgs = {
2332
2495
  export type MutationsetManualShippingRateArgs = {
2333
2496
  input: SetManualShippingRateInput;
2334
2497
  };
2498
+ export type MutationsetProductVariantPriceArgs = {
2499
+ input: SetPriceInput;
2500
+ };
2335
2501
  export type MutationsetSafetyStockArgs = {
2336
2502
  input: SetSafetyStockInput;
2337
2503
  };
@@ -2344,6 +2510,9 @@ export type MutationsettleRefundArgs = {
2344
2510
  export type MutationsplitFulfillmentRequestArgs = {
2345
2511
  input: SplitFulfillmentRequestInput;
2346
2512
  };
2513
+ export type MutationstartChatSessionArgs = {
2514
+ input?: InputMaybe<StartChatSessionInput>;
2515
+ };
2347
2516
  export type MutationtransitionFulfillmentToStateArgs = {
2348
2517
  input: TransitionFulfillmentToStateInput;
2349
2518
  };
@@ -2415,6 +2584,9 @@ export type MutationupdateFieldDefinitionArgs = {
2415
2584
  export type MutationupdateManageablePluginArgs = {
2416
2585
  input: UpdateManageablePluginInput;
2417
2586
  };
2587
+ export type MutationupdateMarketArgs = {
2588
+ input: UpdateMarketInput;
2589
+ };
2418
2590
  export type MutationupdateOnboardingProfileArgs = {
2419
2591
  input: UpdateOnboardingProfileInput;
2420
2592
  };
@@ -2448,6 +2620,9 @@ export type MutationupdateScheduledJobArgs = {
2448
2620
  export type MutationupdateSellerArgs = {
2449
2621
  input: UpdateSellerInput;
2450
2622
  };
2623
+ export type MutationupdateShippingGatewayRoutingRuleArgs = {
2624
+ input: UpdateShippingGatewayRoutingRuleInput;
2625
+ };
2451
2626
  export type MutationupdateShippingLabelArgs = {
2452
2627
  input: UpdateShippingLabelInput;
2453
2628
  };
@@ -2794,6 +2969,14 @@ export type ProductVariantDimensions = {
2794
2969
  unit: DimensionUnit;
2795
2970
  width?: Maybe<Scalars['Float']['output']>;
2796
2971
  };
2972
+ export type ProductVariantPrice = {
2973
+ createdAt: Scalars['DateTime']['output'];
2974
+ currencyCode: Scalars['String']['output'];
2975
+ id: Scalars['ID']['output'];
2976
+ price: Scalars['Int']['output'];
2977
+ updatedAt: Scalars['DateTime']['output'];
2978
+ variantId: Scalars['ID']['output'];
2979
+ };
2797
2980
  export type ProductVariantSnapshot = {
2798
2981
  createdAt: Scalars['DateTime']['output'];
2799
2982
  id: Scalars['ID']['output'];
@@ -2846,6 +3029,7 @@ export type ProvisionChannelInput = {
2846
3029
  defaultCurrencyCode?: InputMaybe<Scalars['String']['input']>;
2847
3030
  defaultLanguageCode?: InputMaybe<Scalars['String']['input']>;
2848
3031
  description?: InputMaybe<Scalars['String']['input']>;
3032
+ provisionWorkspace?: InputMaybe<Scalars['Boolean']['input']>;
2849
3033
  userId: Scalars['ID']['input'];
2850
3034
  };
2851
3035
  export type ProvisionChannelResult = {
@@ -2886,7 +3070,9 @@ export type Query = {
2886
3070
  channelPlugins: Array<ChannelPlugin>;
2887
3071
  channelSettings: ChannelSettings;
2888
3072
  channels: ChannelList;
3073
+ chatHistory: Array<ChatHistoryMessage>;
2889
3074
  chatQueue: Array<ChatQueueItem>;
3075
+ chatSessions: ChatSessionSummaryList;
2890
3076
  collection?: Maybe<Collection>;
2891
3077
  collections: CollectionList;
2892
3078
  configurationItemValue?: Maybe<Scalars['JSON']['output']>;
@@ -2929,6 +3115,9 @@ export type Query = {
2929
3115
  manageablePluginsByTag: Array<ManageablePlugin>;
2930
3116
  marketingIdentity?: Maybe<MarketingIdentity>;
2931
3117
  marketingIdentityByCustomer?: Maybe<MarketingIdentity>;
3118
+ markets: MarketList;
3119
+ mission?: Maybe<Mission>;
3120
+ missions: MissionList;
2932
3121
  order?: Maybe<Order>;
2933
3122
  orderByCode?: Maybe<Order>;
2934
3123
  orderHistory: HistoryEntryList;
@@ -2959,6 +3148,7 @@ export type Query = {
2959
3148
  search: SearchResult;
2960
3149
  seller?: Maybe<Seller>;
2961
3150
  sellers: SellerList;
3151
+ shippingGatewayRoutingRules: Array<ShippingGatewayRoutingRule>;
2962
3152
  shippingLabels: Array<ShippingGatewayLabel>;
2963
3153
  shippingRateGroups: Array<ShippingGatewayRateGroup>;
2964
3154
  stockLocation?: Maybe<StockLocation>;
@@ -3023,9 +3213,15 @@ export type QuerychannelArgs = {
3023
3213
  export type QuerychannelsArgs = {
3024
3214
  options?: InputMaybe<ListQueryOptions>;
3025
3215
  };
3216
+ export type QuerychatHistoryArgs = {
3217
+ input: ChatHistoryInput;
3218
+ };
3026
3219
  export type QuerychatQueueArgs = {
3027
3220
  sessionId: Scalars['ID']['input'];
3028
3221
  };
3222
+ export type QuerychatSessionsArgs = {
3223
+ input?: InputMaybe<ChatSessionsInput>;
3224
+ };
3029
3225
  export type QuerycollectionArgs = {
3030
3226
  id: Scalars['ID']['input'];
3031
3227
  };
@@ -3141,6 +3337,15 @@ export type QuerymarketingIdentityArgs = {
3141
3337
  export type QuerymarketingIdentityByCustomerArgs = {
3142
3338
  customerId: Scalars['ID']['input'];
3143
3339
  };
3340
+ export type QuerymarketsArgs = {
3341
+ options?: InputMaybe<ListQueryOptions>;
3342
+ };
3343
+ export type QuerymissionArgs = {
3344
+ id: Scalars['ID']['input'];
3345
+ };
3346
+ export type QuerymissionsArgs = {
3347
+ options?: InputMaybe<MissionListOptions>;
3348
+ };
3144
3349
  export type QueryorderArgs = {
3145
3350
  id: Scalars['ID']['input'];
3146
3351
  };
@@ -3222,6 +3427,9 @@ export type QuerysellerArgs = {
3222
3427
  export type QuerysellersArgs = {
3223
3428
  options?: InputMaybe<ListQueryOptions>;
3224
3429
  };
3430
+ export type QueryshippingGatewayRoutingRulesArgs = {
3431
+ stockLocationId: Scalars['ID']['input'];
3432
+ };
3225
3433
  export type QueryshippingLabelsArgs = {
3226
3434
  orderId: Scalars['ID']['input'];
3227
3435
  };
@@ -3393,6 +3601,10 @@ export type RemoveStockLocationFromChannelInput = {
3393
3601
  channelId: Scalars['ID']['input'];
3394
3602
  stockLocationId: Scalars['ID']['input'];
3395
3603
  };
3604
+ export type ReorderShippingGatewayRoutingRulesInput = {
3605
+ ruleIds: Array<Scalars['ID']['input']>;
3606
+ stockLocationId: Scalars['ID']['input'];
3607
+ };
3396
3608
  export type ReportDamagedStockInput = {
3397
3609
  note?: InputMaybe<Scalars['String']['input']>;
3398
3610
  quantity: Scalars['Int']['input'];
@@ -3596,6 +3808,10 @@ export type SendChatMessageInput = {
3596
3808
  message: Scalars['String']['input'];
3597
3809
  sessionId: Scalars['String']['input'];
3598
3810
  };
3811
+ export type SendMissionMessageInput = {
3812
+ message: Scalars['String']['input'];
3813
+ missionId: Scalars['ID']['input'];
3814
+ };
3599
3815
  export type SetBillingAddressInput = {
3600
3816
  address: CreateAddressInput;
3601
3817
  orderId: Scalars['ID']['input'];
@@ -3643,6 +3859,11 @@ export type SetMarketingIdentifiersResult = {
3643
3859
  identityId: Scalars['ID']['output'];
3644
3860
  rejected: Array<Scalars['String']['output']>;
3645
3861
  };
3862
+ export type SetPriceInput = {
3863
+ currencyCode: Scalars['String']['input'];
3864
+ price: Scalars['Int']['input'];
3865
+ variantId: Scalars['ID']['input'];
3866
+ };
3646
3867
  export type SetSafetyStockInput = {
3647
3868
  safetyStock: Scalars['Int']['input'];
3648
3869
  stockLocationId: Scalars['ID']['input'];
@@ -3706,6 +3927,29 @@ export type ShippingGatewayRateGroupLine = {
3706
3927
  weightUnit?: Maybe<Scalars['String']['output']>;
3707
3928
  width?: Maybe<Scalars['Float']['output']>;
3708
3929
  };
3930
+ export type ShippingGatewayRoutingFlatRate = {
3931
+ amount: Scalars['Int']['output'];
3932
+ code: Scalars['String']['output'];
3933
+ createdAt: Scalars['DateTime']['output'];
3934
+ currencyCode: Scalars['String']['output'];
3935
+ estimatedDays?: Maybe<Scalars['Int']['output']>;
3936
+ id: Scalars['ID']['output'];
3937
+ name: Scalars['String']['output'];
3938
+ updatedAt: Scalars['DateTime']['output'];
3939
+ };
3940
+ export type ShippingGatewayRoutingRule = {
3941
+ countries: Array<Country>;
3942
+ createdAt: Scalars['DateTime']['output'];
3943
+ enabled: Scalars['Boolean']['output'];
3944
+ flatRates: Array<ShippingGatewayRoutingFlatRate>;
3945
+ fulfillmentType: ShippingRoutingFulfillmentType;
3946
+ id: Scalars['ID']['output'];
3947
+ priority: Scalars['Int']['output'];
3948
+ providerCode?: Maybe<Scalars['String']['output']>;
3949
+ scopeType: ShippingRoutingScopeType;
3950
+ stockLocationId: Scalars['ID']['output'];
3951
+ updatedAt: Scalars['DateTime']['output'];
3952
+ };
3709
3953
  export type ShippingLine = {
3710
3954
  adjustments: Array<Adjustment>;
3711
3955
  createdAt: Scalars['DateTime']['output'];
@@ -3721,6 +3965,15 @@ export type ShippingProvider = {
3721
3965
  name: Scalars['String']['output'];
3722
3966
  pluginBacked: Scalars['Boolean']['output'];
3723
3967
  };
3968
+ export type ShippingRoutingFlatRateInput = {
3969
+ amount: Scalars['Int']['input'];
3970
+ code: Scalars['String']['input'];
3971
+ currencyCode: Scalars['String']['input'];
3972
+ estimatedDays?: InputMaybe<Scalars['Int']['input']>;
3973
+ name: Scalars['String']['input'];
3974
+ };
3975
+ export type ShippingRoutingFulfillmentType = 'MANUAL' | 'PROVIDER';
3976
+ export type ShippingRoutingScopeType = 'COUNTRIES' | 'DOMESTIC' | 'INTERNATIONAL';
3724
3977
  export type ShopAddItemToOrderInput = {
3725
3978
  quantity: Scalars['Int']['input'];
3726
3979
  variantId: Scalars['ID']['input'];
@@ -3738,6 +3991,10 @@ export type SplitFulfillmentRequestLineInput = {
3738
3991
  orderLineId: Scalars['ID']['input'];
3739
3992
  quantity: Scalars['Int']['input'];
3740
3993
  };
3994
+ export type StartChatSessionInput = {
3995
+ origin?: InputMaybe<Scalars['String']['input']>;
3996
+ title?: InputMaybe<Scalars['String']['input']>;
3997
+ };
3741
3998
  export type StockLevel = {
3742
3999
  id: Scalars['ID']['output'];
3743
4000
  safetyStock: Scalars['Int']['output'];
@@ -3813,6 +4070,7 @@ export type Subscription = {
3813
4070
  deploymentLogs: DeploymentLogEntry;
3814
4071
  hookDispatched: HookDispatchEvent;
3815
4072
  resumeChatSession: ChatMessage;
4073
+ workspaceReadiness: WorkspaceReadiness;
3816
4074
  };
3817
4075
  export type SubscriptionchatMessageStreamArgs = {
3818
4076
  input: SendChatMessageInput;
@@ -4009,6 +4267,7 @@ export type UpdateCarrierInput = {
4009
4267
  name?: InputMaybe<Scalars['String']['input']>;
4010
4268
  };
4011
4269
  export type UpdateChannelInput = {
4270
+ availableCurrencyCodes?: InputMaybe<Array<Scalars['String']['input']>>;
4012
4271
  availableLanguageCodes?: InputMaybe<Array<Scalars['String']['input']>>;
4013
4272
  code?: InputMaybe<Scalars['String']['input']>;
4014
4273
  defaultCurrencyCode?: InputMaybe<Scalars['String']['input']>;
@@ -4027,6 +4286,7 @@ export type UpdateChannelPluginConfigInput = {
4027
4286
  id: Scalars['ID']['input'];
4028
4287
  };
4029
4288
  export type UpdateChannelSettingsInput = {
4289
+ autoCurrencyExchange?: InputMaybe<Scalars['Boolean']['input']>;
4030
4290
  chargeTaxOnShipping?: InputMaybe<Scalars['Boolean']['input']>;
4031
4291
  companyAddress?: InputMaybe<CompanyAddressInput>;
4032
4292
  defaultDeploymentProviderCode?: InputMaybe<Scalars['String']['input']>;
@@ -4034,7 +4294,8 @@ export type UpdateChannelSettingsInput = {
4034
4294
  defaultFulfillmentHandlerCode?: InputMaybe<Scalars['String']['input']>;
4035
4295
  defaultPaymentProviderCode?: InputMaybe<Scalars['String']['input']>;
4036
4296
  defaultWeightUnit?: InputMaybe<WeightUnit>;
4037
- manualShippingRates?: InputMaybe<Array<ManualShippingRateInput>>;
4297
+ fxMarkupPercent?: InputMaybe<Scalars['Float']['input']>;
4298
+ fxRoundingRule?: InputMaybe<Scalars['String']['input']>;
4038
4299
  requireCustomerForCheckout?: InputMaybe<Scalars['Boolean']['input']>;
4039
4300
  requiresShippingAddressValidation?: InputMaybe<Scalars['Boolean']['input']>;
4040
4301
  shopName?: InputMaybe<Scalars['String']['input']>;
@@ -4130,6 +4391,14 @@ export type UpdateManageablePluginInput = {
4130
4391
  name?: InputMaybe<Scalars['String']['input']>;
4131
4392
  toggable?: InputMaybe<Scalars['Boolean']['input']>;
4132
4393
  };
4394
+ export type UpdateMarketInput = {
4395
+ countryCodes?: InputMaybe<Array<Scalars['String']['input']>>;
4396
+ currencyCode?: InputMaybe<Scalars['String']['input']>;
4397
+ enabled?: InputMaybe<Scalars['Boolean']['input']>;
4398
+ id: Scalars['ID']['input'];
4399
+ languageCode?: InputMaybe<Scalars['String']['input']>;
4400
+ name?: InputMaybe<Scalars['String']['input']>;
4401
+ };
4133
4402
  export type UpdateOnboardingProfileInput = {
4134
4403
  /**
4135
4404
  * When `true`, marks the profile step complete and advances
@@ -4236,6 +4505,16 @@ export type UpdateSellerInput = {
4236
4505
  id: Scalars['ID']['input'];
4237
4506
  name?: InputMaybe<Scalars['String']['input']>;
4238
4507
  };
4508
+ export type UpdateShippingGatewayRoutingRuleInput = {
4509
+ countryCodes?: InputMaybe<Array<Scalars['String']['input']>>;
4510
+ enabled?: InputMaybe<Scalars['Boolean']['input']>;
4511
+ flatRates?: InputMaybe<Array<ShippingRoutingFlatRateInput>>;
4512
+ fulfillmentType?: InputMaybe<ShippingRoutingFulfillmentType>;
4513
+ id: Scalars['ID']['input'];
4514
+ priority?: InputMaybe<Scalars['Int']['input']>;
4515
+ providerCode?: InputMaybe<Scalars['String']['input']>;
4516
+ scopeType?: InputMaybe<ShippingRoutingScopeType>;
4517
+ };
4239
4518
  export type UpdateShippingLabelInput = {
4240
4519
  carrier?: InputMaybe<Scalars['String']['input']>;
4241
4520
  labelId: Scalars['ID']['input'];
@@ -4361,6 +4640,16 @@ export type WeightInput = {
4361
4640
  value: Scalars['Float']['input'];
4362
4641
  };
4363
4642
  export type WeightUnit = 'g' | 'kg' | 'lb' | 'oz';
4643
+ export type WorkspaceBindingStatus = 'none' | 'ready' | 'warming';
4644
+ export type WorkspacePodState = 'degraded' | 'pending' | 'permanentlyFailed' | 'provisioning' | 'retrying' | 'running';
4645
+ export type WorkspaceReadiness = {
4646
+ chatBindingState: WorkspaceBindingStatus;
4647
+ endpoint?: Maybe<Scalars['String']['output']>;
4648
+ podState?: Maybe<WorkspacePodState>;
4649
+ serverState?: Maybe<WorkspaceServerState>;
4650
+ workspaceId?: Maybe<Scalars['ID']['output']>;
4651
+ };
4652
+ export type WorkspaceServerState = 'SERVING' | 'STARTING' | 'UNRESPONSIVE';
4364
4653
  export type WriteOffDamagedStockInput = {
4365
4654
  note?: InputMaybe<Scalars['String']['input']>;
4366
4655
  quantity: Scalars['Int']['input'];
@@ -5216,16 +5505,16 @@ export type UpdateChannelMutation = {
5216
5505
  updateChannel: Pick<Channel, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'token' | 'secret' | 'previewUrl' | 'defaultLanguageCode' | 'defaultCurrencyCode' | 'availableLanguageCodes' | 'availableCurrencyCodes' | 'description' | 'pricesIncludeTax' | 'taxProviderCode' | 'trackInventory' | 'outOfStockThreshold' | 'sellerId' | 'defaultTaxZoneId'>;
5217
5506
  };
5218
5507
  export type DeleteChannelMutationVariables = Exact<{
5219
- id: Scalars['ID']['input'];
5508
+ input: DeleteChannelInput;
5220
5509
  }>;
5221
- export type DeleteChannelMutation = Pick<Mutation, 'deleteChannel'>;
5510
+ export type DeleteChannelMutation = {
5511
+ deleteChannel: Pick<Channel, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'token' | 'secret' | 'previewUrl' | 'defaultLanguageCode' | 'defaultCurrencyCode' | 'availableLanguageCodes' | 'availableCurrencyCodes' | 'description' | 'pricesIncludeTax' | 'taxProviderCode' | 'trackInventory' | 'outOfStockThreshold' | 'sellerId' | 'defaultTaxZoneId'>;
5512
+ };
5222
5513
  export type UpdateChannelSettingsMutationVariables = Exact<{
5223
5514
  input: UpdateChannelSettingsInput;
5224
5515
  }>;
5225
5516
  export type UpdateChannelSettingsMutation = {
5226
- updateChannelSettings: (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit'> & {
5227
- manualShippingRates: Array<Pick<ManualShippingRate, 'code' | 'name' | 'amount' | 'currency' | 'estimatedDays'>>;
5228
- });
5517
+ updateChannelSettings: Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'>;
5229
5518
  };
5230
5519
  export type ProvisionChannelMutationVariables = Exact<{
5231
5520
  input: ProvisionChannelInput;
@@ -5233,38 +5522,33 @@ export type ProvisionChannelMutationVariables = Exact<{
5233
5522
  export type ProvisionChannelMutation = {
5234
5523
  provisionChannel: {
5235
5524
  channel: Pick<Channel, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'token' | 'secret' | 'previewUrl' | 'defaultLanguageCode' | 'defaultCurrencyCode' | 'availableLanguageCodes' | 'availableCurrencyCodes' | 'description' | 'pricesIncludeTax' | 'taxProviderCode' | 'trackInventory' | 'outOfStockThreshold' | 'sellerId' | 'defaultTaxZoneId'>;
5236
- channelSettings: (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit'> & {
5237
- manualShippingRates: Array<Pick<ManualShippingRate, 'code' | 'name' | 'amount' | 'currency' | 'estimatedDays'>>;
5238
- });
5525
+ channelSettings: Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'>;
5239
5526
  role: Pick<Role, 'id' | 'name' | 'code' | 'description' | 'permissions'>;
5240
5527
  };
5241
5528
  };
5242
- export type ChannelSettingsFieldFragment = (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit'> & {
5243
- manualShippingRates: Array<Pick<ManualShippingRate, 'code' | 'name' | 'amount' | 'currency' | 'estimatedDays'>>;
5244
- });
5529
+ export type ChannelSettingsFieldFragment = Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'>;
5245
5530
  export type ChannelSettingsQueryVariables = Exact<{
5246
5531
  [key: string]: never;
5247
5532
  }>;
5248
5533
  export type ChannelSettingsQuery = {
5249
- channelSettings: (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit'> & {
5250
- manualShippingRates: Array<Pick<ManualShippingRate, 'code' | 'name' | 'amount' | 'currency' | 'estimatedDays'>>;
5251
- });
5534
+ channelSettings: Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'>;
5252
5535
  };
5253
5536
  export type ChannelUpdateSettingsMutationVariables = Exact<{
5254
5537
  input: UpdateChannelSettingsInput;
5255
5538
  }>;
5256
5539
  export type ChannelUpdateSettingsMutation = {
5257
- updateChannelSettings: (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit'> & {
5258
- manualShippingRates: Array<Pick<ManualShippingRate, 'code' | 'name' | 'amount' | 'currency' | 'estimatedDays'>>;
5259
- });
5540
+ updateChannelSettings: Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'>;
5260
5541
  };
5261
5542
  export type ChatSessionFieldFragment = Pick<ChatSession, 'sessionId' | 'channelToken' | 'userId' | 'createdAt' | 'lastActivity' | 'messageCount' | 'status'>;
5262
5543
  export type ChatMessageFieldFragment = (Pick<ChatMessage, 'type' | 'content' | 'timestamp' | 'isFinal' | 'eventId'> & {
5263
5544
  toolUse?: Maybe<Pick<ToolUseDetail, 'toolId' | 'toolName' | 'input'>>;
5264
5545
  toolResult?: Maybe<Pick<ToolResultDetail, 'toolId' | 'result' | 'isError'>>;
5265
5546
  });
5547
+ export type ChatHistoryMessageFieldFragment = Pick<ChatHistoryMessage, 'id' | 'role' | 'content' | 'toolUse' | 'toolResult' | 'seq' | 'eventId' | 'timestamp'>;
5548
+ export type ChatSessionSummaryFieldFragment = Pick<ChatSessionSummary, 'id' | 'agentSessionId' | 'title' | 'status' | 'origin' | 'messageCount' | 'lastActivityAt' | 'createdAt' | 'workspaceId'>;
5549
+ export type WorkspaceReadinessFieldFragment = Pick<WorkspaceReadiness, 'workspaceId' | 'podState' | 'serverState' | 'chatBindingState' | 'endpoint'>;
5266
5550
  export type StartChatSessionMutationVariables = Exact<{
5267
- [key: string]: never;
5551
+ input?: InputMaybe<StartChatSessionInput>;
5268
5552
  }>;
5269
5553
  export type StartChatSessionMutation = {
5270
5554
  startChatSession: Pick<ChatSession, 'sessionId' | 'channelToken' | 'userId' | 'createdAt' | 'lastActivity' | 'messageCount' | 'status'>;
@@ -5314,6 +5598,30 @@ export type ChatQueueQueryVariables = Exact<{
5314
5598
  export type ChatQueueQuery = {
5315
5599
  chatQueue: Array<Pick<ChatQueueItem, 'id' | 'kind' | 'content'>>;
5316
5600
  };
5601
+ export type ChatHistoryQueryVariables = Exact<{
5602
+ input: ChatHistoryInput;
5603
+ }>;
5604
+ export type ChatHistoryQuery = {
5605
+ chatHistory: Array<Pick<ChatHistoryMessage, 'id' | 'role' | 'content' | 'toolUse' | 'toolResult' | 'seq' | 'eventId' | 'timestamp'>>;
5606
+ };
5607
+ export type ChatSessionsQueryVariables = Exact<{
5608
+ input?: InputMaybe<ChatSessionsInput>;
5609
+ }>;
5610
+ export type ChatSessionsQuery = {
5611
+ chatSessions: (Pick<ChatSessionSummaryList, 'totalItems'> & {
5612
+ items: Array<Pick<ChatSessionSummary, 'id' | 'agentSessionId' | 'title' | 'status' | 'origin' | 'messageCount' | 'lastActivityAt' | 'createdAt' | 'workspaceId'>>;
5613
+ });
5614
+ };
5615
+ export type ArchiveChatSessionMutationVariables = Exact<{
5616
+ sessionId: Scalars['ID']['input'];
5617
+ }>;
5618
+ export type ArchiveChatSessionMutation = Pick<Mutation, 'archiveChatSession'>;
5619
+ export type WorkspaceReadinessSubscriptionVariables = Exact<{
5620
+ [key: string]: never;
5621
+ }>;
5622
+ export type WorkspaceReadinessSubscription = {
5623
+ workspaceReadiness: Pick<WorkspaceReadiness, 'workspaceId' | 'podState' | 'serverState' | 'chatBindingState' | 'endpoint'>;
5624
+ };
5317
5625
  export type CollectionTranslationFieldFragment = Pick<CollectionTranslation, 'id' | 'languageCode' | 'name' | 'slug' | 'description'>;
5318
5626
  export type CollectionFieldFragment = (Pick<Collection, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'slug' | 'description' | 'isPrivate' | 'isRoot' | 'inheritFilters' | 'position' | 'filters' | 'parentId'> & {
5319
5627
  featuredAsset?: Maybe<Pick<Asset, 'id' | 'name' | 'preview' | 'source'>>;
@@ -6017,6 +6325,41 @@ export type EmitMutationVariables = Exact<{
6017
6325
  input: EmitCustomEventInput;
6018
6326
  }>;
6019
6327
  export type EmitMutation = Pick<Mutation, 'emit'>;
6328
+ export type MarketFieldFragment = (Pick<Market, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'enabled' | 'currencyCode' | 'languageCode' | 'channelId'> & {
6329
+ countries: Array<Pick<Country, 'id' | 'code' | 'name' | 'enabled'>>;
6330
+ });
6331
+ export type MarketsQueryVariables = Exact<{
6332
+ options?: InputMaybe<ListQueryOptions>;
6333
+ }>;
6334
+ export type MarketsQuery = {
6335
+ markets: (Pick<MarketList, 'totalItems'> & {
6336
+ items: Array<(Pick<Market, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'enabled' | 'currencyCode' | 'languageCode' | 'channelId'> & {
6337
+ countries: Array<Pick<Country, 'id' | 'code' | 'name' | 'enabled'>>;
6338
+ })>;
6339
+ });
6340
+ };
6341
+ export type CreateMarketMutationVariables = Exact<{
6342
+ input: CreateMarketInput;
6343
+ }>;
6344
+ export type CreateMarketMutation = {
6345
+ createMarket: (Pick<Market, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'enabled' | 'currencyCode' | 'languageCode' | 'channelId'> & {
6346
+ countries: Array<Pick<Country, 'id' | 'code' | 'name' | 'enabled'>>;
6347
+ });
6348
+ };
6349
+ export type UpdateMarketMutationVariables = Exact<{
6350
+ input: UpdateMarketInput;
6351
+ }>;
6352
+ export type UpdateMarketMutation = {
6353
+ updateMarket: (Pick<Market, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'enabled' | 'currencyCode' | 'languageCode' | 'channelId'> & {
6354
+ countries: Array<Pick<Country, 'id' | 'code' | 'name' | 'enabled'>>;
6355
+ });
6356
+ };
6357
+ export type DeleteMarketMutationVariables = Exact<{
6358
+ id: Scalars['ID']['input'];
6359
+ }>;
6360
+ export type DeleteMarketMutation = {
6361
+ deleteMarket: Pick<DeletionResponse, 'result' | 'message'>;
6362
+ };
6020
6363
  export type AdminAttributionByOrderQueryVariables = Exact<{
6021
6364
  input: AttributionByOrderInput;
6022
6365
  }>;
@@ -6074,6 +6417,60 @@ export type AdminMarketingIdentityByCustomerQuery = {
6074
6417
  identifiers: Array<Pick<MarketingIdentityIdentifier, 'id' | 'key' | 'value' | 'capturedAt' | 'position'>>;
6075
6418
  })>;
6076
6419
  };
6420
+ export type MissionRepoRefFieldFragment = Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>;
6421
+ export type MissionFieldFragment = (Pick<Mission, 'id' | 'status' | 'title' | 'model' | 'branch' | 'prUrl' | 'podRef' | 'costCents' | 'channelId' | 'administratorId' | 'workspaceId' | 'createdAt' | 'updatedAt'> & {
6422
+ repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>>;
6423
+ });
6424
+ export type AdminMissionsQueryVariables = Exact<{
6425
+ options?: InputMaybe<MissionListOptions>;
6426
+ }>;
6427
+ export type AdminMissionsQuery = {
6428
+ missions: (Pick<MissionList, 'totalItems'> & {
6429
+ items: Array<(Pick<Mission, 'id' | 'status' | 'title' | 'model' | 'branch' | 'prUrl' | 'podRef' | 'costCents' | 'channelId' | 'administratorId' | 'workspaceId' | 'createdAt' | 'updatedAt'> & {
6430
+ repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>>;
6431
+ })>;
6432
+ });
6433
+ };
6434
+ export type AdminMissionQueryVariables = Exact<{
6435
+ id: Scalars['ID']['input'];
6436
+ }>;
6437
+ export type AdminMissionQuery = {
6438
+ mission?: Maybe<(Pick<Mission, 'id' | 'status' | 'title' | 'model' | 'branch' | 'prUrl' | 'podRef' | 'costCents' | 'channelId' | 'administratorId' | 'workspaceId' | 'createdAt' | 'updatedAt'> & {
6439
+ repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>>;
6440
+ })>;
6441
+ };
6442
+ export type AdminCreateMissionMutationVariables = Exact<{
6443
+ input: CreateMissionInput;
6444
+ }>;
6445
+ export type AdminCreateMissionMutation = {
6446
+ createMission: (Pick<Mission, 'id' | 'status' | 'title' | 'model' | 'branch' | 'prUrl' | 'podRef' | 'costCents' | 'channelId' | 'administratorId' | 'workspaceId' | 'createdAt' | 'updatedAt'> & {
6447
+ repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>>;
6448
+ });
6449
+ };
6450
+ export type AdminCancelMissionMutationVariables = Exact<{
6451
+ id: Scalars['ID']['input'];
6452
+ }>;
6453
+ export type AdminCancelMissionMutation = {
6454
+ cancelMission: (Pick<Mission, 'id' | 'status' | 'title' | 'model' | 'branch' | 'prUrl' | 'podRef' | 'costCents' | 'channelId' | 'administratorId' | 'workspaceId' | 'createdAt' | 'updatedAt'> & {
6455
+ repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>>;
6456
+ });
6457
+ };
6458
+ export type AdminDeleteMissionMutationVariables = Exact<{
6459
+ id: Scalars['ID']['input'];
6460
+ }>;
6461
+ export type AdminDeleteMissionMutation = {
6462
+ deleteMission: (Pick<Mission, 'id' | 'status' | 'title' | 'model' | 'branch' | 'prUrl' | 'podRef' | 'costCents' | 'channelId' | 'administratorId' | 'workspaceId' | 'createdAt' | 'updatedAt'> & {
6463
+ repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>>;
6464
+ });
6465
+ };
6466
+ export type AdminSendMissionMessageMutationVariables = Exact<{
6467
+ input: SendMissionMessageInput;
6468
+ }>;
6469
+ export type AdminSendMissionMessageMutation = {
6470
+ sendMissionMessage: (Pick<Mission, 'id' | 'status' | 'title' | 'model' | 'branch' | 'prUrl' | 'podRef' | 'costCents' | 'channelId' | 'administratorId' | 'workspaceId' | 'createdAt' | 'updatedAt'> & {
6471
+ repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>>;
6472
+ });
6473
+ };
6077
6474
  export type ActiveOnboardingQueryVariables = Exact<{
6078
6475
  [key: string]: never;
6079
6476
  }>;
@@ -8594,6 +8991,7 @@ export type ProductVariantFieldFragment = (Pick<ProductVariant, 'id' | 'sku' | '
8594
8991
  dimensions?: Maybe<Pick<ProductVariantDimensions, 'length' | 'width' | 'height' | 'unit'>>;
8595
8992
  customs?: Maybe<Pick<ProductVariantCustoms, 'hsCode' | 'originCountryCode' | 'contentsType'>>;
8596
8993
  });
8994
+ export type ProductVariantPriceFieldFragment = Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>;
8597
8995
  export type AdminProductVariantQueryVariables = Exact<{
8598
8996
  id: Scalars['ID']['input'];
8599
8997
  }>;
@@ -8680,6 +9078,12 @@ export type DeleteProductVariantsMutationVariables = Exact<{
8680
9078
  export type DeleteProductVariantsMutation = {
8681
9079
  deleteProductVariants: Pick<DeletionResponse, 'result' | 'message'>;
8682
9080
  };
9081
+ export type SetProductVariantPriceMutationVariables = Exact<{
9082
+ input: SetPriceInput;
9083
+ }>;
9084
+ export type SetProductVariantPriceMutation = {
9085
+ setProductVariantPrice: Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>;
9086
+ };
8683
9087
  export type ProductTranslationFieldFragment = Pick<ProductTranslation, 'id' | 'languageCode' | 'name' | 'slug' | 'description'>;
8684
9088
  export type ProductFieldFragment = (Pick<Product, 'id' | 'createdAt' | 'updatedAt' | 'enabled' | 'isDigital' | 'trackInventory'> & {
8685
9089
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -9288,6 +9692,10 @@ export type ShippingRateGroupFieldFragment = (Pick<ShippingGatewayRateGroup, 'id
9288
9692
  });
9289
9693
  export type ShippingLabelFieldFragment = Pick<ShippingGatewayLabel, 'id' | 'status' | 'trackingNumber' | 'carrier' | 'service' | 'providerCode' | 'labelUrl' | 'orderId' | 'fulfillmentId' | 'isReturnLabel'>;
9290
9694
  export type ShippingCarrierFieldFragment = Pick<ShippingGatewayCarrier, 'id' | 'name' | 'code' | 'providerCode' | 'enabled'>;
9695
+ export type ShippingGatewayRoutingRuleFieldFragment = (Pick<ShippingGatewayRoutingRule, 'id' | 'stockLocationId' | 'scopeType' | 'fulfillmentType' | 'providerCode' | 'priority' | 'enabled'> & {
9696
+ countries: Array<Pick<Country, 'id' | 'code' | 'name'>>;
9697
+ flatRates: Array<Pick<ShippingGatewayRoutingFlatRate, 'id' | 'code' | 'name' | 'amount' | 'currencyCode' | 'estimatedDays'>>;
9698
+ });
9291
9699
  export type ShippingLabelsQueryVariables = Exact<{
9292
9700
  orderId: Scalars['ID']['input'];
9293
9701
  }>;
@@ -9494,6 +9902,46 @@ export type AvailableShippingProvidersQueryVariables = Exact<{
9494
9902
  export type AvailableShippingProvidersQuery = {
9495
9903
  availableShippingProviders: Array<Pick<ShippingProvider, 'code' | 'name' | 'pluginBacked'>>;
9496
9904
  };
9905
+ export type ShippingGatewayRoutingRulesQueryVariables = Exact<{
9906
+ stockLocationId: Scalars['ID']['input'];
9907
+ }>;
9908
+ export type ShippingGatewayRoutingRulesQuery = {
9909
+ shippingGatewayRoutingRules: Array<(Pick<ShippingGatewayRoutingRule, 'id' | 'stockLocationId' | 'scopeType' | 'fulfillmentType' | 'providerCode' | 'priority' | 'enabled'> & {
9910
+ countries: Array<Pick<Country, 'id' | 'code' | 'name'>>;
9911
+ flatRates: Array<Pick<ShippingGatewayRoutingFlatRate, 'id' | 'code' | 'name' | 'amount' | 'currencyCode' | 'estimatedDays'>>;
9912
+ })>;
9913
+ };
9914
+ export type CreateShippingGatewayRoutingRuleMutationVariables = Exact<{
9915
+ input: CreateShippingGatewayRoutingRuleInput;
9916
+ }>;
9917
+ export type CreateShippingGatewayRoutingRuleMutation = {
9918
+ createShippingGatewayRoutingRule: (Pick<ShippingGatewayRoutingRule, 'id' | 'stockLocationId' | 'scopeType' | 'fulfillmentType' | 'providerCode' | 'priority' | 'enabled'> & {
9919
+ countries: Array<Pick<Country, 'id' | 'code' | 'name'>>;
9920
+ flatRates: Array<Pick<ShippingGatewayRoutingFlatRate, 'id' | 'code' | 'name' | 'amount' | 'currencyCode' | 'estimatedDays'>>;
9921
+ });
9922
+ };
9923
+ export type UpdateShippingGatewayRoutingRuleMutationVariables = Exact<{
9924
+ input: UpdateShippingGatewayRoutingRuleInput;
9925
+ }>;
9926
+ export type UpdateShippingGatewayRoutingRuleMutation = {
9927
+ updateShippingGatewayRoutingRule: (Pick<ShippingGatewayRoutingRule, 'id' | 'stockLocationId' | 'scopeType' | 'fulfillmentType' | 'providerCode' | 'priority' | 'enabled'> & {
9928
+ countries: Array<Pick<Country, 'id' | 'code' | 'name'>>;
9929
+ flatRates: Array<Pick<ShippingGatewayRoutingFlatRate, 'id' | 'code' | 'name' | 'amount' | 'currencyCode' | 'estimatedDays'>>;
9930
+ });
9931
+ };
9932
+ export type DeleteShippingGatewayRoutingRuleMutationVariables = Exact<{
9933
+ id: Scalars['ID']['input'];
9934
+ }>;
9935
+ export type DeleteShippingGatewayRoutingRuleMutation = Pick<Mutation, 'deleteShippingGatewayRoutingRule'>;
9936
+ export type ReorderShippingGatewayRoutingRulesMutationVariables = Exact<{
9937
+ input: ReorderShippingGatewayRoutingRulesInput;
9938
+ }>;
9939
+ export type ReorderShippingGatewayRoutingRulesMutation = {
9940
+ reorderShippingGatewayRoutingRules: Array<(Pick<ShippingGatewayRoutingRule, 'id' | 'stockLocationId' | 'scopeType' | 'fulfillmentType' | 'providerCode' | 'priority' | 'enabled'> & {
9941
+ countries: Array<Pick<Country, 'id' | 'code' | 'name'>>;
9942
+ flatRates: Array<Pick<ShippingGatewayRoutingFlatRate, 'id' | 'code' | 'name' | 'amount' | 'currencyCode' | 'estimatedDays'>>;
9943
+ })>;
9944
+ };
9497
9945
  export type StockLocationFieldFragment = (Pick<StockLocation, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'description' | 'locationType'> & {
9498
9946
  address?: Maybe<Pick<StockLocationAddress, 'id' | 'createdAt' | 'updatedAt' | 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
9499
9947
  });