@forgecart/sdk 1.2.7 → 1.202606151453.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 +460 -29
  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 +36 -1
  8. package/dist/client.generated.js +149 -5
  9. package/dist/documents.generated.d.ts +27 -5
  10. package/dist/documents.generated.js +492 -39
  11. package/dist/index.d.ts +1 -0
  12. package/dist/shop-types.generated.d.ts +190 -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 +979 -92
  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 +173 -4
  25. package/src/documents.generated.d.ts +473 -0
  26. package/src/documents.generated.ts +505 -30
  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 +259 -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>;
@@ -1498,19 +1563,20 @@ export type ManageablePluginConfigItemTranslation = {
1498
1563
  languageCode: Scalars['String']['output'];
1499
1564
  name: Scalars['String']['output'];
1500
1565
  };
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']>;
1566
+ export type Market = {
1567
+ channelId: Scalars['ID']['output'];
1568
+ countries: Array<Country>;
1569
+ createdAt: Scalars['DateTime']['output'];
1570
+ currencyCode: Scalars['String']['output'];
1571
+ enabled: Scalars['Boolean']['output'];
1572
+ id: Scalars['ID']['output'];
1573
+ languageCode?: Maybe<Scalars['String']['output']>;
1506
1574
  name: Scalars['String']['output'];
1575
+ updatedAt: Scalars['DateTime']['output'];
1507
1576
  };
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'];
1577
+ export type MarketList = {
1578
+ items: Array<Market>;
1579
+ totalItems: Scalars['Int']['output'];
1514
1580
  };
1515
1581
  export type MarketingAttribution = {
1516
1582
  computedAt: Scalars['DateTime']['output'];
@@ -1602,6 +1668,46 @@ export type MergeFulfillmentRequestInput = {
1602
1668
  requestIdA: Scalars['ID']['input'];
1603
1669
  requestIdB: Scalars['ID']['input'];
1604
1670
  };
1671
+ export type Mission = {
1672
+ administratorId: Scalars['ID']['output'];
1673
+ branch?: Maybe<Scalars['String']['output']>;
1674
+ channelId: Scalars['ID']['output'];
1675
+ costCents?: Maybe<Scalars['Int']['output']>;
1676
+ createdAt: Scalars['DateTime']['output'];
1677
+ id: Scalars['ID']['output'];
1678
+ model: Scalars['String']['output'];
1679
+ podRef?: Maybe<Scalars['String']['output']>;
1680
+ prUrl?: Maybe<Scalars['String']['output']>;
1681
+ repos: Array<MissionRepoRef>;
1682
+ status: MissionStatus;
1683
+ title?: Maybe<Scalars['String']['output']>;
1684
+ updatedAt: Scalars['DateTime']['output'];
1685
+ workspaceId: Scalars['ID']['output'];
1686
+ };
1687
+ export type MissionList = {
1688
+ items: Array<Mission>;
1689
+ totalItems: Scalars['Int']['output'];
1690
+ };
1691
+ export type MissionListOptions = {
1692
+ skip?: InputMaybe<Scalars['Int']['input']>;
1693
+ sort?: InputMaybe<MissionSortParameter>;
1694
+ take?: InputMaybe<Scalars['Int']['input']>;
1695
+ };
1696
+ export type MissionRepoInput = {
1697
+ branch: Scalars['String']['input'];
1698
+ name: Scalars['String']['input'];
1699
+ owner: Scalars['String']['input'];
1700
+ };
1701
+ export type MissionRepoRef = {
1702
+ branch: Scalars['String']['output'];
1703
+ name: Scalars['String']['output'];
1704
+ owner: Scalars['String']['output'];
1705
+ };
1706
+ export type MissionSortParameter = {
1707
+ createdAt?: InputMaybe<SortOrder>;
1708
+ updatedAt?: InputMaybe<SortOrder>;
1709
+ };
1710
+ export type MissionStatus = 'AWAITING_USER' | 'COMPLETED' | 'FAILED' | 'INTERRUPTED' | 'PENDING' | 'RUNNING';
1605
1711
  export type ModifyOrderAddItemInput = {
1606
1712
  productVariantId: Scalars['ID']['input'];
1607
1713
  quantity: Scalars['Int']['input'];
@@ -1646,6 +1752,7 @@ export type Mutation = {
1646
1752
  adjustStock: StockMovement;
1647
1753
  applyCouponCode: Order;
1648
1754
  approveDeviceCode: DeviceCodeInfo;
1755
+ archiveChatSession: Scalars['Boolean']['output'];
1649
1756
  assignAssetsToChannel: Array<Asset>;
1650
1757
  assignProductsToChannel: Array<Product>;
1651
1758
  assignPromotionToChannel: Promotion;
@@ -1654,6 +1761,7 @@ export type Mutation = {
1654
1761
  authenticateWithExternalStrategy: AdminExternalAuthResult;
1655
1762
  beginTransaction: TransactionTokenResult;
1656
1763
  cancelFulfillmentRequest: FulfillmentRequest;
1764
+ cancelMission: Mission;
1657
1765
  cancelOrder: Order;
1658
1766
  cancelPaymentSession: PaymentGatewaySession;
1659
1767
  cancelSubscription: BillingSubscription;
@@ -1685,6 +1793,8 @@ export type Mutation = {
1685
1793
  createFulfillment: Fulfillment;
1686
1794
  createFulfillmentRequestsForOrder: Array<FulfillmentRequest>;
1687
1795
  createManageablePlugin: ManageablePlugin;
1796
+ createMarket: Market;
1797
+ createMission: Mission;
1688
1798
  createPaymentSession: PaymentGatewaySession;
1689
1799
  createProduct: Product;
1690
1800
  createProductOption: ProductOption;
@@ -1695,6 +1805,7 @@ export type Mutation = {
1695
1805
  createRole: Role;
1696
1806
  createScheduledJob: ScheduledJob;
1697
1807
  createSeller: Seller;
1808
+ createShippingGatewayRoutingRule: ShippingGatewayRoutingRule;
1698
1809
  createShippingLabel: ShippingGatewayLabel;
1699
1810
  createStockLocation: StockLocation;
1700
1811
  createSubscription: BillingSubscription;
@@ -1720,6 +1831,8 @@ export type Mutation = {
1720
1831
  deleteFacetValues: DeletionResponse;
1721
1832
  deleteFieldDefinition: FieldDefinitionGroup;
1722
1833
  deleteManageablePlugin?: Maybe<Scalars['Boolean']['output']>;
1834
+ deleteMarket: DeletionResponse;
1835
+ deleteMission: Mission;
1723
1836
  deleteOrderNote: DeletionResponse;
1724
1837
  deleteProduct: DeletionResponse;
1725
1838
  deleteProductOption: DeletionResponse;
@@ -1729,6 +1842,7 @@ export type Mutation = {
1729
1842
  deleteRole: DeletionResponse;
1730
1843
  deleteScheduledJob: ScheduledJob;
1731
1844
  deleteSeller: Seller;
1845
+ deleteShippingGatewayRoutingRule: Scalars['Boolean']['output'];
1732
1846
  deleteStockLocation: DeletionResponse;
1733
1847
  deleteSubscriptionVariantConfig: SubscriptionVariantConfig;
1734
1848
  deleteTaxCategory: DeletionResponse;
@@ -1780,6 +1894,7 @@ export type Mutation = {
1780
1894
  removeProductsFromChannel: Array<Product>;
1781
1895
  removePromotionFromChannel: Promotion;
1782
1896
  removeStockLocationFromChannel: StockLocation;
1897
+ reorderShippingGatewayRoutingRules: Array<ShippingGatewayRoutingRule>;
1783
1898
  reportDamagedStock: StockMovement;
1784
1899
  resendAdministratorVerification: Scalars['Boolean']['output'];
1785
1900
  reserveStock: StockMovement;
@@ -1790,6 +1905,7 @@ export type Mutation = {
1790
1905
  scaleDeployment: Deployment;
1791
1906
  selectShippingRate: Order;
1792
1907
  sendChatMessage: Array<ChatMessage>;
1908
+ sendMissionMessage: Mission;
1793
1909
  setBillingAddress: Order;
1794
1910
  setConfigurationItemValue?: Maybe<Scalars['Boolean']['output']>;
1795
1911
  setCustomerForDraftOrder: Order;
@@ -1797,6 +1913,7 @@ export type Mutation = {
1797
1913
  setDefaultToken: PaymentGatewayToken;
1798
1914
  setDeploymentEnv: Deployment;
1799
1915
  setManualShippingRate: Order;
1916
+ setProductVariantPrice: ProductVariantPrice;
1800
1917
  setSafetyStock: StockLevel;
1801
1918
  setShippingAddress: Order;
1802
1919
  settleRefund: Refund;
@@ -1825,6 +1942,7 @@ export type Mutation = {
1825
1942
  updateFacetValues: FacetValue;
1826
1943
  updateFieldDefinition: FieldDefinitionGroup;
1827
1944
  updateManageablePlugin: ManageablePlugin;
1945
+ updateMarket: Market;
1828
1946
  updateOnboardingProfile: OnboardingState;
1829
1947
  updateOrderNote: HistoryEntry;
1830
1948
  updatePluginConfiguration: ChannelPlugin;
@@ -1836,6 +1954,7 @@ export type Mutation = {
1836
1954
  updateRole: Role;
1837
1955
  updateScheduledJob: ScheduledJob;
1838
1956
  updateSeller: Seller;
1957
+ updateShippingGatewayRoutingRule: ShippingGatewayRoutingRule;
1839
1958
  updateShippingLabel: ShippingGatewayLabel;
1840
1959
  updateStockLocation: StockLocation;
1841
1960
  updateSubscriptionVariantConfig: SubscriptionVariantConfig;
@@ -1889,6 +2008,9 @@ export type MutationapplyCouponCodeArgs = {
1889
2008
  export type MutationapproveDeviceCodeArgs = {
1890
2009
  userCode: Scalars['String']['input'];
1891
2010
  };
2011
+ export type MutationarchiveChatSessionArgs = {
2012
+ sessionId: Scalars['ID']['input'];
2013
+ };
1892
2014
  export type MutationassignAssetsToChannelArgs = {
1893
2015
  input: AssignAssetsToChannelInput;
1894
2016
  };
@@ -1910,6 +2032,9 @@ export type MutationauthenticateWithExternalStrategyArgs = {
1910
2032
  export type MutationcancelFulfillmentRequestArgs = {
1911
2033
  input: CancelFulfillmentRequestInput;
1912
2034
  };
2035
+ export type MutationcancelMissionArgs = {
2036
+ id: Scalars['ID']['input'];
2037
+ };
1913
2038
  export type MutationcancelOrderArgs = {
1914
2039
  input: CancelOrderInput;
1915
2040
  };
@@ -2001,6 +2126,12 @@ export type MutationcreateFulfillmentRequestsForOrderArgs = {
2001
2126
  export type MutationcreateManageablePluginArgs = {
2002
2127
  input: CreateManageablePluginInput;
2003
2128
  };
2129
+ export type MutationcreateMarketArgs = {
2130
+ input: CreateMarketInput;
2131
+ };
2132
+ export type MutationcreateMissionArgs = {
2133
+ input: CreateMissionInput;
2134
+ };
2004
2135
  export type MutationcreatePaymentSessionArgs = {
2005
2136
  input: CreateSessionInput;
2006
2137
  };
@@ -2031,6 +2162,9 @@ export type MutationcreateScheduledJobArgs = {
2031
2162
  export type MutationcreateSellerArgs = {
2032
2163
  input: CreateSellerInput;
2033
2164
  };
2165
+ export type MutationcreateShippingGatewayRoutingRuleArgs = {
2166
+ input: CreateShippingGatewayRoutingRuleInput;
2167
+ };
2034
2168
  export type MutationcreateShippingLabelArgs = {
2035
2169
  input: CreateLabelServiceInput;
2036
2170
  };
@@ -2107,6 +2241,12 @@ export type MutationdeleteFieldDefinitionArgs = {
2107
2241
  export type MutationdeleteManageablePluginArgs = {
2108
2242
  id: Scalars['ID']['input'];
2109
2243
  };
2244
+ export type MutationdeleteMarketArgs = {
2245
+ id: Scalars['ID']['input'];
2246
+ };
2247
+ export type MutationdeleteMissionArgs = {
2248
+ id: Scalars['ID']['input'];
2249
+ };
2110
2250
  export type MutationdeleteOrderNoteArgs = {
2111
2251
  id: Scalars['ID']['input'];
2112
2252
  };
@@ -2134,6 +2274,9 @@ export type MutationdeleteScheduledJobArgs = {
2134
2274
  export type MutationdeleteSellerArgs = {
2135
2275
  id: Scalars['ID']['input'];
2136
2276
  };
2277
+ export type MutationdeleteShippingGatewayRoutingRuleArgs = {
2278
+ id: Scalars['ID']['input'];
2279
+ };
2137
2280
  export type MutationdeleteStockLocationArgs = {
2138
2281
  id: Scalars['ID']['input'];
2139
2282
  };
@@ -2281,6 +2424,9 @@ export type MutationremovePromotionFromChannelArgs = {
2281
2424
  export type MutationremoveStockLocationFromChannelArgs = {
2282
2425
  input: RemoveStockLocationFromChannelInput;
2283
2426
  };
2427
+ export type MutationreorderShippingGatewayRoutingRulesArgs = {
2428
+ input: ReorderShippingGatewayRoutingRulesInput;
2429
+ };
2284
2430
  export type MutationreportDamagedStockArgs = {
2285
2431
  input: ReportDamagedStockInput;
2286
2432
  };
@@ -2311,6 +2457,9 @@ export type MutationselectShippingRateArgs = {
2311
2457
  export type MutationsendChatMessageArgs = {
2312
2458
  input: SendChatMessageInput;
2313
2459
  };
2460
+ export type MutationsendMissionMessageArgs = {
2461
+ input: SendMissionMessageInput;
2462
+ };
2314
2463
  export type MutationsetBillingAddressArgs = {
2315
2464
  input: SetBillingAddressInput;
2316
2465
  };
@@ -2332,6 +2481,9 @@ export type MutationsetDeploymentEnvArgs = {
2332
2481
  export type MutationsetManualShippingRateArgs = {
2333
2482
  input: SetManualShippingRateInput;
2334
2483
  };
2484
+ export type MutationsetProductVariantPriceArgs = {
2485
+ input: SetPriceInput;
2486
+ };
2335
2487
  export type MutationsetSafetyStockArgs = {
2336
2488
  input: SetSafetyStockInput;
2337
2489
  };
@@ -2344,6 +2496,9 @@ export type MutationsettleRefundArgs = {
2344
2496
  export type MutationsplitFulfillmentRequestArgs = {
2345
2497
  input: SplitFulfillmentRequestInput;
2346
2498
  };
2499
+ export type MutationstartChatSessionArgs = {
2500
+ input?: InputMaybe<StartChatSessionInput>;
2501
+ };
2347
2502
  export type MutationtransitionFulfillmentToStateArgs = {
2348
2503
  input: TransitionFulfillmentToStateInput;
2349
2504
  };
@@ -2415,6 +2570,9 @@ export type MutationupdateFieldDefinitionArgs = {
2415
2570
  export type MutationupdateManageablePluginArgs = {
2416
2571
  input: UpdateManageablePluginInput;
2417
2572
  };
2573
+ export type MutationupdateMarketArgs = {
2574
+ input: UpdateMarketInput;
2575
+ };
2418
2576
  export type MutationupdateOnboardingProfileArgs = {
2419
2577
  input: UpdateOnboardingProfileInput;
2420
2578
  };
@@ -2448,6 +2606,9 @@ export type MutationupdateScheduledJobArgs = {
2448
2606
  export type MutationupdateSellerArgs = {
2449
2607
  input: UpdateSellerInput;
2450
2608
  };
2609
+ export type MutationupdateShippingGatewayRoutingRuleArgs = {
2610
+ input: UpdateShippingGatewayRoutingRuleInput;
2611
+ };
2451
2612
  export type MutationupdateShippingLabelArgs = {
2452
2613
  input: UpdateShippingLabelInput;
2453
2614
  };
@@ -2794,6 +2955,14 @@ export type ProductVariantDimensions = {
2794
2955
  unit: DimensionUnit;
2795
2956
  width?: Maybe<Scalars['Float']['output']>;
2796
2957
  };
2958
+ export type ProductVariantPrice = {
2959
+ createdAt: Scalars['DateTime']['output'];
2960
+ currencyCode: Scalars['String']['output'];
2961
+ id: Scalars['ID']['output'];
2962
+ price: Scalars['Int']['output'];
2963
+ updatedAt: Scalars['DateTime']['output'];
2964
+ variantId: Scalars['ID']['output'];
2965
+ };
2797
2966
  export type ProductVariantSnapshot = {
2798
2967
  createdAt: Scalars['DateTime']['output'];
2799
2968
  id: Scalars['ID']['output'];
@@ -2886,7 +3055,9 @@ export type Query = {
2886
3055
  channelPlugins: Array<ChannelPlugin>;
2887
3056
  channelSettings: ChannelSettings;
2888
3057
  channels: ChannelList;
3058
+ chatHistory: Array<ChatHistoryMessage>;
2889
3059
  chatQueue: Array<ChatQueueItem>;
3060
+ chatSessions: ChatSessionSummaryList;
2890
3061
  collection?: Maybe<Collection>;
2891
3062
  collections: CollectionList;
2892
3063
  configurationItemValue?: Maybe<Scalars['JSON']['output']>;
@@ -2929,6 +3100,9 @@ export type Query = {
2929
3100
  manageablePluginsByTag: Array<ManageablePlugin>;
2930
3101
  marketingIdentity?: Maybe<MarketingIdentity>;
2931
3102
  marketingIdentityByCustomer?: Maybe<MarketingIdentity>;
3103
+ markets: MarketList;
3104
+ mission?: Maybe<Mission>;
3105
+ missions: MissionList;
2932
3106
  order?: Maybe<Order>;
2933
3107
  orderByCode?: Maybe<Order>;
2934
3108
  orderHistory: HistoryEntryList;
@@ -2959,6 +3133,7 @@ export type Query = {
2959
3133
  search: SearchResult;
2960
3134
  seller?: Maybe<Seller>;
2961
3135
  sellers: SellerList;
3136
+ shippingGatewayRoutingRules: Array<ShippingGatewayRoutingRule>;
2962
3137
  shippingLabels: Array<ShippingGatewayLabel>;
2963
3138
  shippingRateGroups: Array<ShippingGatewayRateGroup>;
2964
3139
  stockLocation?: Maybe<StockLocation>;
@@ -3023,9 +3198,15 @@ export type QuerychannelArgs = {
3023
3198
  export type QuerychannelsArgs = {
3024
3199
  options?: InputMaybe<ListQueryOptions>;
3025
3200
  };
3201
+ export type QuerychatHistoryArgs = {
3202
+ input: ChatHistoryInput;
3203
+ };
3026
3204
  export type QuerychatQueueArgs = {
3027
3205
  sessionId: Scalars['ID']['input'];
3028
3206
  };
3207
+ export type QuerychatSessionsArgs = {
3208
+ input?: InputMaybe<ChatSessionsInput>;
3209
+ };
3029
3210
  export type QuerycollectionArgs = {
3030
3211
  id: Scalars['ID']['input'];
3031
3212
  };
@@ -3141,6 +3322,15 @@ export type QuerymarketingIdentityArgs = {
3141
3322
  export type QuerymarketingIdentityByCustomerArgs = {
3142
3323
  customerId: Scalars['ID']['input'];
3143
3324
  };
3325
+ export type QuerymarketsArgs = {
3326
+ options?: InputMaybe<ListQueryOptions>;
3327
+ };
3328
+ export type QuerymissionArgs = {
3329
+ id: Scalars['ID']['input'];
3330
+ };
3331
+ export type QuerymissionsArgs = {
3332
+ options?: InputMaybe<MissionListOptions>;
3333
+ };
3144
3334
  export type QueryorderArgs = {
3145
3335
  id: Scalars['ID']['input'];
3146
3336
  };
@@ -3222,6 +3412,9 @@ export type QuerysellerArgs = {
3222
3412
  export type QuerysellersArgs = {
3223
3413
  options?: InputMaybe<ListQueryOptions>;
3224
3414
  };
3415
+ export type QueryshippingGatewayRoutingRulesArgs = {
3416
+ stockLocationId: Scalars['ID']['input'];
3417
+ };
3225
3418
  export type QueryshippingLabelsArgs = {
3226
3419
  orderId: Scalars['ID']['input'];
3227
3420
  };
@@ -3393,6 +3586,10 @@ export type RemoveStockLocationFromChannelInput = {
3393
3586
  channelId: Scalars['ID']['input'];
3394
3587
  stockLocationId: Scalars['ID']['input'];
3395
3588
  };
3589
+ export type ReorderShippingGatewayRoutingRulesInput = {
3590
+ ruleIds: Array<Scalars['ID']['input']>;
3591
+ stockLocationId: Scalars['ID']['input'];
3592
+ };
3396
3593
  export type ReportDamagedStockInput = {
3397
3594
  note?: InputMaybe<Scalars['String']['input']>;
3398
3595
  quantity: Scalars['Int']['input'];
@@ -3596,6 +3793,10 @@ export type SendChatMessageInput = {
3596
3793
  message: Scalars['String']['input'];
3597
3794
  sessionId: Scalars['String']['input'];
3598
3795
  };
3796
+ export type SendMissionMessageInput = {
3797
+ message: Scalars['String']['input'];
3798
+ missionId: Scalars['ID']['input'];
3799
+ };
3599
3800
  export type SetBillingAddressInput = {
3600
3801
  address: CreateAddressInput;
3601
3802
  orderId: Scalars['ID']['input'];
@@ -3643,6 +3844,11 @@ export type SetMarketingIdentifiersResult = {
3643
3844
  identityId: Scalars['ID']['output'];
3644
3845
  rejected: Array<Scalars['String']['output']>;
3645
3846
  };
3847
+ export type SetPriceInput = {
3848
+ currencyCode: Scalars['String']['input'];
3849
+ price: Scalars['Int']['input'];
3850
+ variantId: Scalars['ID']['input'];
3851
+ };
3646
3852
  export type SetSafetyStockInput = {
3647
3853
  safetyStock: Scalars['Int']['input'];
3648
3854
  stockLocationId: Scalars['ID']['input'];
@@ -3706,6 +3912,29 @@ export type ShippingGatewayRateGroupLine = {
3706
3912
  weightUnit?: Maybe<Scalars['String']['output']>;
3707
3913
  width?: Maybe<Scalars['Float']['output']>;
3708
3914
  };
3915
+ export type ShippingGatewayRoutingFlatRate = {
3916
+ amount: Scalars['Int']['output'];
3917
+ code: Scalars['String']['output'];
3918
+ createdAt: Scalars['DateTime']['output'];
3919
+ currencyCode: Scalars['String']['output'];
3920
+ estimatedDays?: Maybe<Scalars['Int']['output']>;
3921
+ id: Scalars['ID']['output'];
3922
+ name: Scalars['String']['output'];
3923
+ updatedAt: Scalars['DateTime']['output'];
3924
+ };
3925
+ export type ShippingGatewayRoutingRule = {
3926
+ countries: Array<Country>;
3927
+ createdAt: Scalars['DateTime']['output'];
3928
+ enabled: Scalars['Boolean']['output'];
3929
+ flatRates: Array<ShippingGatewayRoutingFlatRate>;
3930
+ fulfillmentType: ShippingRoutingFulfillmentType;
3931
+ id: Scalars['ID']['output'];
3932
+ priority: Scalars['Int']['output'];
3933
+ providerCode?: Maybe<Scalars['String']['output']>;
3934
+ scopeType: ShippingRoutingScopeType;
3935
+ stockLocationId: Scalars['ID']['output'];
3936
+ updatedAt: Scalars['DateTime']['output'];
3937
+ };
3709
3938
  export type ShippingLine = {
3710
3939
  adjustments: Array<Adjustment>;
3711
3940
  createdAt: Scalars['DateTime']['output'];
@@ -3721,6 +3950,15 @@ export type ShippingProvider = {
3721
3950
  name: Scalars['String']['output'];
3722
3951
  pluginBacked: Scalars['Boolean']['output'];
3723
3952
  };
3953
+ export type ShippingRoutingFlatRateInput = {
3954
+ amount: Scalars['Int']['input'];
3955
+ code: Scalars['String']['input'];
3956
+ currencyCode: Scalars['String']['input'];
3957
+ estimatedDays?: InputMaybe<Scalars['Int']['input']>;
3958
+ name: Scalars['String']['input'];
3959
+ };
3960
+ export type ShippingRoutingFulfillmentType = 'MANUAL' | 'PROVIDER';
3961
+ export type ShippingRoutingScopeType = 'COUNTRIES' | 'DOMESTIC' | 'INTERNATIONAL';
3724
3962
  export type ShopAddItemToOrderInput = {
3725
3963
  quantity: Scalars['Int']['input'];
3726
3964
  variantId: Scalars['ID']['input'];
@@ -3738,6 +3976,10 @@ export type SplitFulfillmentRequestLineInput = {
3738
3976
  orderLineId: Scalars['ID']['input'];
3739
3977
  quantity: Scalars['Int']['input'];
3740
3978
  };
3979
+ export type StartChatSessionInput = {
3980
+ origin?: InputMaybe<Scalars['String']['input']>;
3981
+ title?: InputMaybe<Scalars['String']['input']>;
3982
+ };
3741
3983
  export type StockLevel = {
3742
3984
  id: Scalars['ID']['output'];
3743
3985
  safetyStock: Scalars['Int']['output'];
@@ -3813,6 +4055,7 @@ export type Subscription = {
3813
4055
  deploymentLogs: DeploymentLogEntry;
3814
4056
  hookDispatched: HookDispatchEvent;
3815
4057
  resumeChatSession: ChatMessage;
4058
+ workspaceReadiness: WorkspaceReadiness;
3816
4059
  };
3817
4060
  export type SubscriptionchatMessageStreamArgs = {
3818
4061
  input: SendChatMessageInput;
@@ -4009,6 +4252,7 @@ export type UpdateCarrierInput = {
4009
4252
  name?: InputMaybe<Scalars['String']['input']>;
4010
4253
  };
4011
4254
  export type UpdateChannelInput = {
4255
+ availableCurrencyCodes?: InputMaybe<Array<Scalars['String']['input']>>;
4012
4256
  availableLanguageCodes?: InputMaybe<Array<Scalars['String']['input']>>;
4013
4257
  code?: InputMaybe<Scalars['String']['input']>;
4014
4258
  defaultCurrencyCode?: InputMaybe<Scalars['String']['input']>;
@@ -4027,6 +4271,7 @@ export type UpdateChannelPluginConfigInput = {
4027
4271
  id: Scalars['ID']['input'];
4028
4272
  };
4029
4273
  export type UpdateChannelSettingsInput = {
4274
+ autoCurrencyExchange?: InputMaybe<Scalars['Boolean']['input']>;
4030
4275
  chargeTaxOnShipping?: InputMaybe<Scalars['Boolean']['input']>;
4031
4276
  companyAddress?: InputMaybe<CompanyAddressInput>;
4032
4277
  defaultDeploymentProviderCode?: InputMaybe<Scalars['String']['input']>;
@@ -4034,7 +4279,8 @@ export type UpdateChannelSettingsInput = {
4034
4279
  defaultFulfillmentHandlerCode?: InputMaybe<Scalars['String']['input']>;
4035
4280
  defaultPaymentProviderCode?: InputMaybe<Scalars['String']['input']>;
4036
4281
  defaultWeightUnit?: InputMaybe<WeightUnit>;
4037
- manualShippingRates?: InputMaybe<Array<ManualShippingRateInput>>;
4282
+ fxMarkupPercent?: InputMaybe<Scalars['Float']['input']>;
4283
+ fxRoundingRule?: InputMaybe<Scalars['String']['input']>;
4038
4284
  requireCustomerForCheckout?: InputMaybe<Scalars['Boolean']['input']>;
4039
4285
  requiresShippingAddressValidation?: InputMaybe<Scalars['Boolean']['input']>;
4040
4286
  shopName?: InputMaybe<Scalars['String']['input']>;
@@ -4130,6 +4376,14 @@ export type UpdateManageablePluginInput = {
4130
4376
  name?: InputMaybe<Scalars['String']['input']>;
4131
4377
  toggable?: InputMaybe<Scalars['Boolean']['input']>;
4132
4378
  };
4379
+ export type UpdateMarketInput = {
4380
+ countryCodes?: InputMaybe<Array<Scalars['String']['input']>>;
4381
+ currencyCode?: InputMaybe<Scalars['String']['input']>;
4382
+ enabled?: InputMaybe<Scalars['Boolean']['input']>;
4383
+ id: Scalars['ID']['input'];
4384
+ languageCode?: InputMaybe<Scalars['String']['input']>;
4385
+ name?: InputMaybe<Scalars['String']['input']>;
4386
+ };
4133
4387
  export type UpdateOnboardingProfileInput = {
4134
4388
  /**
4135
4389
  * When `true`, marks the profile step complete and advances
@@ -4236,6 +4490,16 @@ export type UpdateSellerInput = {
4236
4490
  id: Scalars['ID']['input'];
4237
4491
  name?: InputMaybe<Scalars['String']['input']>;
4238
4492
  };
4493
+ export type UpdateShippingGatewayRoutingRuleInput = {
4494
+ countryCodes?: InputMaybe<Array<Scalars['String']['input']>>;
4495
+ enabled?: InputMaybe<Scalars['Boolean']['input']>;
4496
+ flatRates?: InputMaybe<Array<ShippingRoutingFlatRateInput>>;
4497
+ fulfillmentType?: InputMaybe<ShippingRoutingFulfillmentType>;
4498
+ id: Scalars['ID']['input'];
4499
+ priority?: InputMaybe<Scalars['Int']['input']>;
4500
+ providerCode?: InputMaybe<Scalars['String']['input']>;
4501
+ scopeType?: InputMaybe<ShippingRoutingScopeType>;
4502
+ };
4239
4503
  export type UpdateShippingLabelInput = {
4240
4504
  carrier?: InputMaybe<Scalars['String']['input']>;
4241
4505
  labelId: Scalars['ID']['input'];
@@ -4361,6 +4625,16 @@ export type WeightInput = {
4361
4625
  value: Scalars['Float']['input'];
4362
4626
  };
4363
4627
  export type WeightUnit = 'g' | 'kg' | 'lb' | 'oz';
4628
+ export type WorkspaceBindingStatus = 'none' | 'ready' | 'warming';
4629
+ export type WorkspacePodState = 'degraded' | 'pending' | 'permanentlyFailed' | 'provisioning' | 'retrying' | 'running';
4630
+ export type WorkspaceReadiness = {
4631
+ chatBindingState: WorkspaceBindingStatus;
4632
+ endpoint?: Maybe<Scalars['String']['output']>;
4633
+ podState?: Maybe<WorkspacePodState>;
4634
+ serverState?: Maybe<WorkspaceServerState>;
4635
+ workspaceId?: Maybe<Scalars['ID']['output']>;
4636
+ };
4637
+ export type WorkspaceServerState = 'SERVING' | 'STARTING' | 'UNRESPONSIVE';
4364
4638
  export type WriteOffDamagedStockInput = {
4365
4639
  note?: InputMaybe<Scalars['String']['input']>;
4366
4640
  quantity: Scalars['Int']['input'];
@@ -5223,9 +5497,7 @@ export type UpdateChannelSettingsMutationVariables = Exact<{
5223
5497
  input: UpdateChannelSettingsInput;
5224
5498
  }>;
5225
5499
  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
- });
5500
+ updateChannelSettings: Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'>;
5229
5501
  };
5230
5502
  export type ProvisionChannelMutationVariables = Exact<{
5231
5503
  input: ProvisionChannelInput;
@@ -5233,38 +5505,33 @@ export type ProvisionChannelMutationVariables = Exact<{
5233
5505
  export type ProvisionChannelMutation = {
5234
5506
  provisionChannel: {
5235
5507
  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
- });
5508
+ channelSettings: Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'>;
5239
5509
  role: Pick<Role, 'id' | 'name' | 'code' | 'description' | 'permissions'>;
5240
5510
  };
5241
5511
  };
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
- });
5512
+ export type ChannelSettingsFieldFragment = Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'>;
5245
5513
  export type ChannelSettingsQueryVariables = Exact<{
5246
5514
  [key: string]: never;
5247
5515
  }>;
5248
5516
  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
- });
5517
+ channelSettings: Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'>;
5252
5518
  };
5253
5519
  export type ChannelUpdateSettingsMutationVariables = Exact<{
5254
5520
  input: UpdateChannelSettingsInput;
5255
5521
  }>;
5256
5522
  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
- });
5523
+ updateChannelSettings: Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'>;
5260
5524
  };
5261
5525
  export type ChatSessionFieldFragment = Pick<ChatSession, 'sessionId' | 'channelToken' | 'userId' | 'createdAt' | 'lastActivity' | 'messageCount' | 'status'>;
5262
5526
  export type ChatMessageFieldFragment = (Pick<ChatMessage, 'type' | 'content' | 'timestamp' | 'isFinal' | 'eventId'> & {
5263
5527
  toolUse?: Maybe<Pick<ToolUseDetail, 'toolId' | 'toolName' | 'input'>>;
5264
5528
  toolResult?: Maybe<Pick<ToolResultDetail, 'toolId' | 'result' | 'isError'>>;
5265
5529
  });
5530
+ export type ChatHistoryMessageFieldFragment = Pick<ChatHistoryMessage, 'id' | 'role' | 'content' | 'toolUse' | 'toolResult' | 'seq' | 'eventId' | 'timestamp'>;
5531
+ export type ChatSessionSummaryFieldFragment = Pick<ChatSessionSummary, 'id' | 'agentSessionId' | 'title' | 'status' | 'origin' | 'messageCount' | 'lastActivityAt' | 'createdAt' | 'workspaceId'>;
5532
+ export type WorkspaceReadinessFieldFragment = Pick<WorkspaceReadiness, 'workspaceId' | 'podState' | 'serverState' | 'chatBindingState' | 'endpoint'>;
5266
5533
  export type StartChatSessionMutationVariables = Exact<{
5267
- [key: string]: never;
5534
+ input?: InputMaybe<StartChatSessionInput>;
5268
5535
  }>;
5269
5536
  export type StartChatSessionMutation = {
5270
5537
  startChatSession: Pick<ChatSession, 'sessionId' | 'channelToken' | 'userId' | 'createdAt' | 'lastActivity' | 'messageCount' | 'status'>;
@@ -5314,6 +5581,30 @@ export type ChatQueueQueryVariables = Exact<{
5314
5581
  export type ChatQueueQuery = {
5315
5582
  chatQueue: Array<Pick<ChatQueueItem, 'id' | 'kind' | 'content'>>;
5316
5583
  };
5584
+ export type ChatHistoryQueryVariables = Exact<{
5585
+ input: ChatHistoryInput;
5586
+ }>;
5587
+ export type ChatHistoryQuery = {
5588
+ chatHistory: Array<Pick<ChatHistoryMessage, 'id' | 'role' | 'content' | 'toolUse' | 'toolResult' | 'seq' | 'eventId' | 'timestamp'>>;
5589
+ };
5590
+ export type ChatSessionsQueryVariables = Exact<{
5591
+ input?: InputMaybe<ChatSessionsInput>;
5592
+ }>;
5593
+ export type ChatSessionsQuery = {
5594
+ chatSessions: (Pick<ChatSessionSummaryList, 'totalItems'> & {
5595
+ items: Array<Pick<ChatSessionSummary, 'id' | 'agentSessionId' | 'title' | 'status' | 'origin' | 'messageCount' | 'lastActivityAt' | 'createdAt' | 'workspaceId'>>;
5596
+ });
5597
+ };
5598
+ export type ArchiveChatSessionMutationVariables = Exact<{
5599
+ sessionId: Scalars['ID']['input'];
5600
+ }>;
5601
+ export type ArchiveChatSessionMutation = Pick<Mutation, 'archiveChatSession'>;
5602
+ export type WorkspaceReadinessSubscriptionVariables = Exact<{
5603
+ [key: string]: never;
5604
+ }>;
5605
+ export type WorkspaceReadinessSubscription = {
5606
+ workspaceReadiness: Pick<WorkspaceReadiness, 'workspaceId' | 'podState' | 'serverState' | 'chatBindingState' | 'endpoint'>;
5607
+ };
5317
5608
  export type CollectionTranslationFieldFragment = Pick<CollectionTranslation, 'id' | 'languageCode' | 'name' | 'slug' | 'description'>;
5318
5609
  export type CollectionFieldFragment = (Pick<Collection, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'slug' | 'description' | 'isPrivate' | 'isRoot' | 'inheritFilters' | 'position' | 'filters' | 'parentId'> & {
5319
5610
  featuredAsset?: Maybe<Pick<Asset, 'id' | 'name' | 'preview' | 'source'>>;
@@ -6017,6 +6308,41 @@ export type EmitMutationVariables = Exact<{
6017
6308
  input: EmitCustomEventInput;
6018
6309
  }>;
6019
6310
  export type EmitMutation = Pick<Mutation, 'emit'>;
6311
+ export type MarketFieldFragment = (Pick<Market, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'enabled' | 'currencyCode' | 'languageCode' | 'channelId'> & {
6312
+ countries: Array<Pick<Country, 'id' | 'code' | 'name' | 'enabled'>>;
6313
+ });
6314
+ export type MarketsQueryVariables = Exact<{
6315
+ options?: InputMaybe<ListQueryOptions>;
6316
+ }>;
6317
+ export type MarketsQuery = {
6318
+ markets: (Pick<MarketList, 'totalItems'> & {
6319
+ items: Array<(Pick<Market, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'enabled' | 'currencyCode' | 'languageCode' | 'channelId'> & {
6320
+ countries: Array<Pick<Country, 'id' | 'code' | 'name' | 'enabled'>>;
6321
+ })>;
6322
+ });
6323
+ };
6324
+ export type CreateMarketMutationVariables = Exact<{
6325
+ input: CreateMarketInput;
6326
+ }>;
6327
+ export type CreateMarketMutation = {
6328
+ createMarket: (Pick<Market, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'enabled' | 'currencyCode' | 'languageCode' | 'channelId'> & {
6329
+ countries: Array<Pick<Country, 'id' | 'code' | 'name' | 'enabled'>>;
6330
+ });
6331
+ };
6332
+ export type UpdateMarketMutationVariables = Exact<{
6333
+ input: UpdateMarketInput;
6334
+ }>;
6335
+ export type UpdateMarketMutation = {
6336
+ updateMarket: (Pick<Market, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'enabled' | 'currencyCode' | 'languageCode' | 'channelId'> & {
6337
+ countries: Array<Pick<Country, 'id' | 'code' | 'name' | 'enabled'>>;
6338
+ });
6339
+ };
6340
+ export type DeleteMarketMutationVariables = Exact<{
6341
+ id: Scalars['ID']['input'];
6342
+ }>;
6343
+ export type DeleteMarketMutation = {
6344
+ deleteMarket: Pick<DeletionResponse, 'result' | 'message'>;
6345
+ };
6020
6346
  export type AdminAttributionByOrderQueryVariables = Exact<{
6021
6347
  input: AttributionByOrderInput;
6022
6348
  }>;
@@ -6074,6 +6400,60 @@ export type AdminMarketingIdentityByCustomerQuery = {
6074
6400
  identifiers: Array<Pick<MarketingIdentityIdentifier, 'id' | 'key' | 'value' | 'capturedAt' | 'position'>>;
6075
6401
  })>;
6076
6402
  };
6403
+ export type MissionRepoRefFieldFragment = Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>;
6404
+ export type MissionFieldFragment = (Pick<Mission, 'id' | 'status' | 'title' | 'model' | 'branch' | 'prUrl' | 'podRef' | 'costCents' | 'channelId' | 'administratorId' | 'workspaceId' | 'createdAt' | 'updatedAt'> & {
6405
+ repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>>;
6406
+ });
6407
+ export type AdminMissionsQueryVariables = Exact<{
6408
+ options?: InputMaybe<MissionListOptions>;
6409
+ }>;
6410
+ export type AdminMissionsQuery = {
6411
+ missions: (Pick<MissionList, 'totalItems'> & {
6412
+ items: Array<(Pick<Mission, 'id' | 'status' | 'title' | 'model' | 'branch' | 'prUrl' | 'podRef' | 'costCents' | 'channelId' | 'administratorId' | 'workspaceId' | 'createdAt' | 'updatedAt'> & {
6413
+ repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>>;
6414
+ })>;
6415
+ });
6416
+ };
6417
+ export type AdminMissionQueryVariables = Exact<{
6418
+ id: Scalars['ID']['input'];
6419
+ }>;
6420
+ export type AdminMissionQuery = {
6421
+ mission?: Maybe<(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
+ };
6425
+ export type AdminCreateMissionMutationVariables = Exact<{
6426
+ input: CreateMissionInput;
6427
+ }>;
6428
+ export type AdminCreateMissionMutation = {
6429
+ createMission: (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
+ export type AdminCancelMissionMutationVariables = Exact<{
6434
+ id: Scalars['ID']['input'];
6435
+ }>;
6436
+ export type AdminCancelMissionMutation = {
6437
+ cancelMission: (Pick<Mission, 'id' | 'status' | 'title' | 'model' | 'branch' | 'prUrl' | 'podRef' | 'costCents' | 'channelId' | 'administratorId' | 'workspaceId' | 'createdAt' | 'updatedAt'> & {
6438
+ repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>>;
6439
+ });
6440
+ };
6441
+ export type AdminDeleteMissionMutationVariables = Exact<{
6442
+ id: Scalars['ID']['input'];
6443
+ }>;
6444
+ export type AdminDeleteMissionMutation = {
6445
+ deleteMission: (Pick<Mission, 'id' | 'status' | 'title' | 'model' | 'branch' | 'prUrl' | 'podRef' | 'costCents' | 'channelId' | 'administratorId' | 'workspaceId' | 'createdAt' | 'updatedAt'> & {
6446
+ repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>>;
6447
+ });
6448
+ };
6449
+ export type AdminSendMissionMessageMutationVariables = Exact<{
6450
+ input: SendMissionMessageInput;
6451
+ }>;
6452
+ export type AdminSendMissionMessageMutation = {
6453
+ sendMissionMessage: (Pick<Mission, 'id' | 'status' | 'title' | 'model' | 'branch' | 'prUrl' | 'podRef' | 'costCents' | 'channelId' | 'administratorId' | 'workspaceId' | 'createdAt' | 'updatedAt'> & {
6454
+ repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>>;
6455
+ });
6456
+ };
6077
6457
  export type ActiveOnboardingQueryVariables = Exact<{
6078
6458
  [key: string]: never;
6079
6459
  }>;
@@ -8594,6 +8974,7 @@ export type ProductVariantFieldFragment = (Pick<ProductVariant, 'id' | 'sku' | '
8594
8974
  dimensions?: Maybe<Pick<ProductVariantDimensions, 'length' | 'width' | 'height' | 'unit'>>;
8595
8975
  customs?: Maybe<Pick<ProductVariantCustoms, 'hsCode' | 'originCountryCode' | 'contentsType'>>;
8596
8976
  });
8977
+ export type ProductVariantPriceFieldFragment = Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>;
8597
8978
  export type AdminProductVariantQueryVariables = Exact<{
8598
8979
  id: Scalars['ID']['input'];
8599
8980
  }>;
@@ -8680,6 +9061,12 @@ export type DeleteProductVariantsMutationVariables = Exact<{
8680
9061
  export type DeleteProductVariantsMutation = {
8681
9062
  deleteProductVariants: Pick<DeletionResponse, 'result' | 'message'>;
8682
9063
  };
9064
+ export type SetProductVariantPriceMutationVariables = Exact<{
9065
+ input: SetPriceInput;
9066
+ }>;
9067
+ export type SetProductVariantPriceMutation = {
9068
+ setProductVariantPrice: Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>;
9069
+ };
8683
9070
  export type ProductTranslationFieldFragment = Pick<ProductTranslation, 'id' | 'languageCode' | 'name' | 'slug' | 'description'>;
8684
9071
  export type ProductFieldFragment = (Pick<Product, 'id' | 'createdAt' | 'updatedAt' | 'enabled' | 'isDigital' | 'trackInventory'> & {
8685
9072
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -9288,6 +9675,10 @@ export type ShippingRateGroupFieldFragment = (Pick<ShippingGatewayRateGroup, 'id
9288
9675
  });
9289
9676
  export type ShippingLabelFieldFragment = Pick<ShippingGatewayLabel, 'id' | 'status' | 'trackingNumber' | 'carrier' | 'service' | 'providerCode' | 'labelUrl' | 'orderId' | 'fulfillmentId' | 'isReturnLabel'>;
9290
9677
  export type ShippingCarrierFieldFragment = Pick<ShippingGatewayCarrier, 'id' | 'name' | 'code' | 'providerCode' | 'enabled'>;
9678
+ export type ShippingGatewayRoutingRuleFieldFragment = (Pick<ShippingGatewayRoutingRule, 'id' | 'stockLocationId' | 'scopeType' | 'fulfillmentType' | 'providerCode' | 'priority' | 'enabled'> & {
9679
+ countries: Array<Pick<Country, 'id' | 'code' | 'name'>>;
9680
+ flatRates: Array<Pick<ShippingGatewayRoutingFlatRate, 'id' | 'code' | 'name' | 'amount' | 'currencyCode' | 'estimatedDays'>>;
9681
+ });
9291
9682
  export type ShippingLabelsQueryVariables = Exact<{
9292
9683
  orderId: Scalars['ID']['input'];
9293
9684
  }>;
@@ -9494,6 +9885,46 @@ export type AvailableShippingProvidersQueryVariables = Exact<{
9494
9885
  export type AvailableShippingProvidersQuery = {
9495
9886
  availableShippingProviders: Array<Pick<ShippingProvider, 'code' | 'name' | 'pluginBacked'>>;
9496
9887
  };
9888
+ export type ShippingGatewayRoutingRulesQueryVariables = Exact<{
9889
+ stockLocationId: Scalars['ID']['input'];
9890
+ }>;
9891
+ export type ShippingGatewayRoutingRulesQuery = {
9892
+ shippingGatewayRoutingRules: Array<(Pick<ShippingGatewayRoutingRule, 'id' | 'stockLocationId' | 'scopeType' | 'fulfillmentType' | 'providerCode' | 'priority' | 'enabled'> & {
9893
+ countries: Array<Pick<Country, 'id' | 'code' | 'name'>>;
9894
+ flatRates: Array<Pick<ShippingGatewayRoutingFlatRate, 'id' | 'code' | 'name' | 'amount' | 'currencyCode' | 'estimatedDays'>>;
9895
+ })>;
9896
+ };
9897
+ export type CreateShippingGatewayRoutingRuleMutationVariables = Exact<{
9898
+ input: CreateShippingGatewayRoutingRuleInput;
9899
+ }>;
9900
+ export type CreateShippingGatewayRoutingRuleMutation = {
9901
+ createShippingGatewayRoutingRule: (Pick<ShippingGatewayRoutingRule, 'id' | 'stockLocationId' | 'scopeType' | 'fulfillmentType' | 'providerCode' | 'priority' | 'enabled'> & {
9902
+ countries: Array<Pick<Country, 'id' | 'code' | 'name'>>;
9903
+ flatRates: Array<Pick<ShippingGatewayRoutingFlatRate, 'id' | 'code' | 'name' | 'amount' | 'currencyCode' | 'estimatedDays'>>;
9904
+ });
9905
+ };
9906
+ export type UpdateShippingGatewayRoutingRuleMutationVariables = Exact<{
9907
+ input: UpdateShippingGatewayRoutingRuleInput;
9908
+ }>;
9909
+ export type UpdateShippingGatewayRoutingRuleMutation = {
9910
+ updateShippingGatewayRoutingRule: (Pick<ShippingGatewayRoutingRule, 'id' | 'stockLocationId' | 'scopeType' | 'fulfillmentType' | 'providerCode' | 'priority' | 'enabled'> & {
9911
+ countries: Array<Pick<Country, 'id' | 'code' | 'name'>>;
9912
+ flatRates: Array<Pick<ShippingGatewayRoutingFlatRate, 'id' | 'code' | 'name' | 'amount' | 'currencyCode' | 'estimatedDays'>>;
9913
+ });
9914
+ };
9915
+ export type DeleteShippingGatewayRoutingRuleMutationVariables = Exact<{
9916
+ id: Scalars['ID']['input'];
9917
+ }>;
9918
+ export type DeleteShippingGatewayRoutingRuleMutation = Pick<Mutation, 'deleteShippingGatewayRoutingRule'>;
9919
+ export type ReorderShippingGatewayRoutingRulesMutationVariables = Exact<{
9920
+ input: ReorderShippingGatewayRoutingRulesInput;
9921
+ }>;
9922
+ export type ReorderShippingGatewayRoutingRulesMutation = {
9923
+ reorderShippingGatewayRoutingRules: Array<(Pick<ShippingGatewayRoutingRule, 'id' | 'stockLocationId' | 'scopeType' | 'fulfillmentType' | 'providerCode' | 'priority' | 'enabled'> & {
9924
+ countries: Array<Pick<Country, 'id' | 'code' | 'name'>>;
9925
+ flatRates: Array<Pick<ShippingGatewayRoutingFlatRate, 'id' | 'code' | 'name' | 'amount' | 'currencyCode' | 'estimatedDays'>>;
9926
+ })>;
9927
+ };
9497
9928
  export type StockLocationFieldFragment = (Pick<StockLocation, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'description' | 'locationType'> & {
9498
9929
  address?: Maybe<Pick<StockLocationAddress, 'id' | 'createdAt' | 'updatedAt' | 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
9499
9930
  });