@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
@@ -631,6 +631,7 @@ export type ChannelPlugin = {
631
631
  };
632
632
 
633
633
  export type ChannelSettings = {
634
+ autoCurrencyExchange: Scalars['Boolean']['output'];
634
635
  channelId: Scalars['ID']['output'];
635
636
  chargeTaxOnShipping: Scalars['Boolean']['output'];
636
637
  companyAddress?: Maybe<CompanyAddress>;
@@ -639,14 +640,32 @@ export type ChannelSettings = {
639
640
  defaultFulfillmentHandlerCode?: Maybe<Scalars['String']['output']>;
640
641
  defaultPaymentProviderCode?: Maybe<Scalars['String']['output']>;
641
642
  defaultWeightUnit?: Maybe<WeightUnit>;
643
+ fxMarkupPercent: Scalars['Float']['output'];
644
+ fxRoundingRule: Scalars['String']['output'];
642
645
  id: Scalars['ID']['output'];
643
- manualShippingRates: Array<ManualShippingRate>;
644
646
  requireCustomerForCheckout: Scalars['Boolean']['output'];
645
647
  requiresShippingAddressValidation: Scalars['Boolean']['output'];
646
648
  shopName?: Maybe<Scalars['String']['output']>;
647
649
  taxOriginScope: Scalars['String']['output'];
648
650
  };
649
651
 
652
+ export type ChatHistoryInput = {
653
+ sessionId: Scalars['String']['input'];
654
+ skip?: InputMaybe<Scalars['Int']['input']>;
655
+ take?: InputMaybe<Scalars['Int']['input']>;
656
+ };
657
+
658
+ export type ChatHistoryMessage = {
659
+ content: Scalars['String']['output'];
660
+ eventId?: Maybe<Scalars['Int']['output']>;
661
+ id: Scalars['ID']['output'];
662
+ role: Scalars['String']['output'];
663
+ seq: Scalars['Int']['output'];
664
+ timestamp: Scalars['String']['output'];
665
+ toolResult?: Maybe<Scalars['JSON']['output']>;
666
+ toolUse?: Maybe<Scalars['JSON']['output']>;
667
+ };
668
+
650
669
  export type ChatMessage = {
651
670
  content: Scalars['String']['output'];
652
671
  eventId: Scalars['Int']['output'];
@@ -674,11 +693,37 @@ export type ChatQueueItem = {
674
693
  export type ChatSession = {
675
694
  channelToken: Scalars['String']['output'];
676
695
  createdAt: Scalars['String']['output'];
696
+ endpoint?: Maybe<Scalars['String']['output']>;
677
697
  lastActivity: Scalars['String']['output'];
678
698
  messageCount: Scalars['Int']['output'];
679
699
  sessionId: Scalars['String']['output'];
680
700
  status: Scalars['String']['output'];
681
701
  userId: Scalars['String']['output'];
702
+ workspaceId?: Maybe<Scalars['String']['output']>;
703
+ workspaceStatus: WorkspaceBindingStatus;
704
+ };
705
+
706
+ export type ChatSessionSummary = {
707
+ agentSessionId: Scalars['String']['output'];
708
+ createdAt: Scalars['String']['output'];
709
+ id: Scalars['ID']['output'];
710
+ lastActivityAt: Scalars['String']['output'];
711
+ messageCount: Scalars['Int']['output'];
712
+ origin?: Maybe<Scalars['String']['output']>;
713
+ status: Scalars['String']['output'];
714
+ title?: Maybe<Scalars['String']['output']>;
715
+ workspaceId?: Maybe<Scalars['ID']['output']>;
716
+ };
717
+
718
+ export type ChatSessionSummaryList = {
719
+ items: Array<ChatSessionSummary>;
720
+ totalItems: Scalars['Int']['output'];
721
+ };
722
+
723
+ export type ChatSessionsInput = {
724
+ includeArchived?: InputMaybe<Scalars['Boolean']['input']>;
725
+ skip?: InputMaybe<Scalars['Int']['input']>;
726
+ take?: InputMaybe<Scalars['Int']['input']>;
682
727
  };
683
728
 
684
729
  export type Collection = {
@@ -829,6 +874,7 @@ export type CreateCarrierInput = {
829
874
  };
830
875
 
831
876
  export type CreateChannelInput = {
877
+ availableCurrencyCodes?: InputMaybe<Array<Scalars['String']['input']>>;
832
878
  availableLanguageCodes?: InputMaybe<Array<Scalars['String']['input']>>;
833
879
  code: Scalars['String']['input'];
834
880
  defaultCurrencyCode: Scalars['String']['input'];
@@ -958,6 +1004,22 @@ export type CreateManageablePluginInput = {
958
1004
  toggable?: InputMaybe<Scalars['Boolean']['input']>;
959
1005
  };
960
1006
 
1007
+ export type CreateMarketInput = {
1008
+ countryCodes: Array<Scalars['String']['input']>;
1009
+ currencyCode: Scalars['String']['input'];
1010
+ enabled?: InputMaybe<Scalars['Boolean']['input']>;
1011
+ languageCode?: InputMaybe<Scalars['String']['input']>;
1012
+ name: Scalars['String']['input'];
1013
+ };
1014
+
1015
+ export type CreateMissionInput = {
1016
+ model: Scalars['String']['input'];
1017
+ prompt: Scalars['String']['input'];
1018
+ repos?: InputMaybe<Array<MissionRepoInput>>;
1019
+ title?: InputMaybe<Scalars['String']['input']>;
1020
+ workspaceId: Scalars['ID']['input'];
1021
+ };
1022
+
961
1023
  export type CreateProductInput = {
962
1024
  assetIds?: InputMaybe<Array<Scalars['ID']['input']>>;
963
1025
  enabled?: InputMaybe<Scalars['Boolean']['input']>;
@@ -1072,6 +1134,17 @@ export type CreateSessionInput = {
1072
1134
  tokenId?: InputMaybe<Scalars['ID']['input']>;
1073
1135
  };
1074
1136
 
1137
+ export type CreateShippingGatewayRoutingRuleInput = {
1138
+ countryCodes?: InputMaybe<Array<Scalars['String']['input']>>;
1139
+ enabled?: InputMaybe<Scalars['Boolean']['input']>;
1140
+ flatRates?: InputMaybe<Array<ShippingRoutingFlatRateInput>>;
1141
+ fulfillmentType: ShippingRoutingFulfillmentType;
1142
+ priority?: InputMaybe<Scalars['Int']['input']>;
1143
+ providerCode?: InputMaybe<Scalars['String']['input']>;
1144
+ scopeType: ShippingRoutingScopeType;
1145
+ stockLocationId: Scalars['ID']['input'];
1146
+ };
1147
+
1075
1148
  export type CreateShopSubscriptionInput = {
1076
1149
  defaultTokenId?: InputMaybe<Scalars['ID']['input']>;
1077
1150
  items: Array<CreateSubscriptionItemInput>;
@@ -1210,6 +1283,21 @@ export type DeleteAssetsInput = {
1210
1283
  ids: Array<Scalars['ID']['input']>;
1211
1284
  };
1212
1285
 
1286
+ export type DeleteChannelInput = {
1287
+ collections?: InputMaybe<Scalars['Boolean']['input']>;
1288
+ customers?: InputMaybe<Scalars['Boolean']['input']>;
1289
+ facets?: InputMaybe<Scalars['Boolean']['input']>;
1290
+ id: Scalars['ID']['input'];
1291
+ orders?: InputMaybe<Scalars['Boolean']['input']>;
1292
+ products?: InputMaybe<Scalars['Boolean']['input']>;
1293
+ promotions?: InputMaybe<Scalars['Boolean']['input']>;
1294
+ sellers?: InputMaybe<Scalars['Boolean']['input']>;
1295
+ stockLocations?: InputMaybe<Scalars['Boolean']['input']>;
1296
+ subscriptions?: InputMaybe<Scalars['Boolean']['input']>;
1297
+ taxRates?: InputMaybe<Scalars['Boolean']['input']>;
1298
+ usageMetrics?: InputMaybe<Scalars['Boolean']['input']>;
1299
+ };
1300
+
1213
1301
  export type DeleteFacetInput = {
1214
1302
  force?: InputMaybe<Scalars['Boolean']['input']>;
1215
1303
  id: Scalars['ID']['input'];
@@ -1742,20 +1830,21 @@ export type ManageablePluginConfigItemTranslation = {
1742
1830
  name: Scalars['String']['output'];
1743
1831
  };
1744
1832
 
1745
- export type ManualShippingRate = {
1746
- amount: Scalars['Int']['output'];
1747
- code: Scalars['String']['output'];
1748
- currency: Scalars['String']['output'];
1749
- estimatedDays?: Maybe<Scalars['Int']['output']>;
1833
+ export type Market = {
1834
+ channelId: Scalars['ID']['output'];
1835
+ countries: Array<Country>;
1836
+ createdAt: Scalars['DateTime']['output'];
1837
+ currencyCode: Scalars['String']['output'];
1838
+ enabled: Scalars['Boolean']['output'];
1839
+ id: Scalars['ID']['output'];
1840
+ languageCode?: Maybe<Scalars['String']['output']>;
1750
1841
  name: Scalars['String']['output'];
1842
+ updatedAt: Scalars['DateTime']['output'];
1751
1843
  };
1752
1844
 
1753
- export type ManualShippingRateInput = {
1754
- amount: Scalars['Int']['input'];
1755
- code: Scalars['String']['input'];
1756
- currency: Scalars['String']['input'];
1757
- estimatedDays?: InputMaybe<Scalars['Int']['input']>;
1758
- name: Scalars['String']['input'];
1845
+ export type MarketList = {
1846
+ items: Array<Market>;
1847
+ totalItems: Scalars['Int']['output'];
1759
1848
  };
1760
1849
 
1761
1850
  export type MarketingAttribution = {
@@ -1857,6 +1946,59 @@ export type MergeFulfillmentRequestInput = {
1857
1946
  requestIdB: Scalars['ID']['input'];
1858
1947
  };
1859
1948
 
1949
+ export type Mission = {
1950
+ administratorId: Scalars['ID']['output'];
1951
+ branch?: Maybe<Scalars['String']['output']>;
1952
+ channelId: Scalars['ID']['output'];
1953
+ costCents?: Maybe<Scalars['Int']['output']>;
1954
+ createdAt: Scalars['DateTime']['output'];
1955
+ id: Scalars['ID']['output'];
1956
+ model: Scalars['String']['output'];
1957
+ podRef?: Maybe<Scalars['String']['output']>;
1958
+ prUrl?: Maybe<Scalars['String']['output']>;
1959
+ repos: Array<MissionRepoRef>;
1960
+ status: MissionStatus;
1961
+ title?: Maybe<Scalars['String']['output']>;
1962
+ updatedAt: Scalars['DateTime']['output'];
1963
+ workspaceId: Scalars['ID']['output'];
1964
+ };
1965
+
1966
+ export type MissionList = {
1967
+ items: Array<Mission>;
1968
+ totalItems: Scalars['Int']['output'];
1969
+ };
1970
+
1971
+ export type MissionListOptions = {
1972
+ skip?: InputMaybe<Scalars['Int']['input']>;
1973
+ sort?: InputMaybe<MissionSortParameter>;
1974
+ take?: InputMaybe<Scalars['Int']['input']>;
1975
+ };
1976
+
1977
+ export type MissionRepoInput = {
1978
+ branch: Scalars['String']['input'];
1979
+ name: Scalars['String']['input'];
1980
+ owner: Scalars['String']['input'];
1981
+ };
1982
+
1983
+ export type MissionRepoRef = {
1984
+ branch: Scalars['String']['output'];
1985
+ name: Scalars['String']['output'];
1986
+ owner: Scalars['String']['output'];
1987
+ };
1988
+
1989
+ export type MissionSortParameter = {
1990
+ createdAt?: InputMaybe<SortOrder>;
1991
+ updatedAt?: InputMaybe<SortOrder>;
1992
+ };
1993
+
1994
+ export type MissionStatus =
1995
+ | 'AWAITING_USER'
1996
+ | 'COMPLETED'
1997
+ | 'FAILED'
1998
+ | 'INTERRUPTED'
1999
+ | 'PENDING'
2000
+ | 'RUNNING';
2001
+
1860
2002
  export type ModifyOrderAddItemInput = {
1861
2003
  productVariantId: Scalars['ID']['input'];
1862
2004
  quantity: Scalars['Int']['input'];
@@ -1907,6 +2049,7 @@ export type Mutation = {
1907
2049
  adjustStock: StockMovement;
1908
2050
  applyCouponCode: Order;
1909
2051
  approveDeviceCode: DeviceCodeInfo;
2052
+ archiveChatSession: Scalars['Boolean']['output'];
1910
2053
  assignAssetsToChannel: Array<Asset>;
1911
2054
  assignProductsToChannel: Array<Product>;
1912
2055
  assignPromotionToChannel: Promotion;
@@ -1915,6 +2058,7 @@ export type Mutation = {
1915
2058
  authenticateWithExternalStrategy: AdminExternalAuthResult;
1916
2059
  beginTransaction: TransactionTokenResult;
1917
2060
  cancelFulfillmentRequest: FulfillmentRequest;
2061
+ cancelMission: Mission;
1918
2062
  cancelOrder: Order;
1919
2063
  cancelPaymentSession: PaymentGatewaySession;
1920
2064
  cancelSubscription: BillingSubscription;
@@ -1946,6 +2090,8 @@ export type Mutation = {
1946
2090
  createFulfillment: Fulfillment;
1947
2091
  createFulfillmentRequestsForOrder: Array<FulfillmentRequest>;
1948
2092
  createManageablePlugin: ManageablePlugin;
2093
+ createMarket: Market;
2094
+ createMission: Mission;
1949
2095
  createPaymentSession: PaymentGatewaySession;
1950
2096
  createProduct: Product;
1951
2097
  createProductOption: ProductOption;
@@ -1956,6 +2102,7 @@ export type Mutation = {
1956
2102
  createRole: Role;
1957
2103
  createScheduledJob: ScheduledJob;
1958
2104
  createSeller: Seller;
2105
+ createShippingGatewayRoutingRule: ShippingGatewayRoutingRule;
1959
2106
  createShippingLabel: ShippingGatewayLabel;
1960
2107
  createStockLocation: StockLocation;
1961
2108
  createSubscription: BillingSubscription;
@@ -1967,7 +2114,7 @@ export type Mutation = {
1967
2114
  deleteAssets: DeletionResponse;
1968
2115
  deleteAudienceSegment: AudienceSegment;
1969
2116
  deleteCarrier: Scalars['Boolean']['output'];
1970
- deleteChannel?: Maybe<Scalars['Boolean']['output']>;
2117
+ deleteChannel: Channel;
1971
2118
  deleteChannelPlugin?: Maybe<Scalars['Boolean']['output']>;
1972
2119
  deleteCollection: DeletionResponse;
1973
2120
  deleteCountry: DeletionResponse;
@@ -1981,6 +2128,8 @@ export type Mutation = {
1981
2128
  deleteFacetValues: DeletionResponse;
1982
2129
  deleteFieldDefinition: FieldDefinitionGroup;
1983
2130
  deleteManageablePlugin?: Maybe<Scalars['Boolean']['output']>;
2131
+ deleteMarket: DeletionResponse;
2132
+ deleteMission: Mission;
1984
2133
  deleteOrderNote: DeletionResponse;
1985
2134
  deleteProduct: DeletionResponse;
1986
2135
  deleteProductOption: DeletionResponse;
@@ -1990,6 +2139,7 @@ export type Mutation = {
1990
2139
  deleteRole: DeletionResponse;
1991
2140
  deleteScheduledJob: ScheduledJob;
1992
2141
  deleteSeller: Seller;
2142
+ deleteShippingGatewayRoutingRule: Scalars['Boolean']['output'];
1993
2143
  deleteStockLocation: DeletionResponse;
1994
2144
  deleteSubscriptionVariantConfig: SubscriptionVariantConfig;
1995
2145
  deleteTaxCategory: DeletionResponse;
@@ -2041,6 +2191,7 @@ export type Mutation = {
2041
2191
  removeProductsFromChannel: Array<Product>;
2042
2192
  removePromotionFromChannel: Promotion;
2043
2193
  removeStockLocationFromChannel: StockLocation;
2194
+ reorderShippingGatewayRoutingRules: Array<ShippingGatewayRoutingRule>;
2044
2195
  reportDamagedStock: StockMovement;
2045
2196
  resendAdministratorVerification: Scalars['Boolean']['output'];
2046
2197
  reserveStock: StockMovement;
@@ -2051,6 +2202,7 @@ export type Mutation = {
2051
2202
  scaleDeployment: Deployment;
2052
2203
  selectShippingRate: Order;
2053
2204
  sendChatMessage: Array<ChatMessage>;
2205
+ sendMissionMessage: Mission;
2054
2206
  setBillingAddress: Order;
2055
2207
  setConfigurationItemValue?: Maybe<Scalars['Boolean']['output']>;
2056
2208
  setCustomerForDraftOrder: Order;
@@ -2058,6 +2210,7 @@ export type Mutation = {
2058
2210
  setDefaultToken: PaymentGatewayToken;
2059
2211
  setDeploymentEnv: Deployment;
2060
2212
  setManualShippingRate: Order;
2213
+ setProductVariantPrice: ProductVariantPrice;
2061
2214
  setSafetyStock: StockLevel;
2062
2215
  setShippingAddress: Order;
2063
2216
  settleRefund: Refund;
@@ -2086,6 +2239,7 @@ export type Mutation = {
2086
2239
  updateFacetValues: FacetValue;
2087
2240
  updateFieldDefinition: FieldDefinitionGroup;
2088
2241
  updateManageablePlugin: ManageablePlugin;
2242
+ updateMarket: Market;
2089
2243
  updateOnboardingProfile: OnboardingState;
2090
2244
  updateOrderNote: HistoryEntry;
2091
2245
  updatePluginConfiguration: ChannelPlugin;
@@ -2097,6 +2251,7 @@ export type Mutation = {
2097
2251
  updateRole: Role;
2098
2252
  updateScheduledJob: ScheduledJob;
2099
2253
  updateSeller: Seller;
2254
+ updateShippingGatewayRoutingRule: ShippingGatewayRoutingRule;
2100
2255
  updateShippingLabel: ShippingGatewayLabel;
2101
2256
  updateStockLocation: StockLocation;
2102
2257
  updateSubscriptionVariantConfig: SubscriptionVariantConfig;
@@ -2180,6 +2335,11 @@ export type MutationapproveDeviceCodeArgs = {
2180
2335
  };
2181
2336
 
2182
2337
 
2338
+ export type MutationarchiveChatSessionArgs = {
2339
+ sessionId: Scalars['ID']['input'];
2340
+ };
2341
+
2342
+
2183
2343
  export type MutationassignAssetsToChannelArgs = {
2184
2344
  input: AssignAssetsToChannelInput;
2185
2345
  };
@@ -2215,6 +2375,11 @@ export type MutationcancelFulfillmentRequestArgs = {
2215
2375
  };
2216
2376
 
2217
2377
 
2378
+ export type MutationcancelMissionArgs = {
2379
+ id: Scalars['ID']['input'];
2380
+ };
2381
+
2382
+
2218
2383
  export type MutationcancelOrderArgs = {
2219
2384
  input: CancelOrderInput;
2220
2385
  };
@@ -2366,6 +2531,16 @@ export type MutationcreateManageablePluginArgs = {
2366
2531
  };
2367
2532
 
2368
2533
 
2534
+ export type MutationcreateMarketArgs = {
2535
+ input: CreateMarketInput;
2536
+ };
2537
+
2538
+
2539
+ export type MutationcreateMissionArgs = {
2540
+ input: CreateMissionInput;
2541
+ };
2542
+
2543
+
2369
2544
  export type MutationcreatePaymentSessionArgs = {
2370
2545
  input: CreateSessionInput;
2371
2546
  };
@@ -2416,6 +2591,11 @@ export type MutationcreateSellerArgs = {
2416
2591
  };
2417
2592
 
2418
2593
 
2594
+ export type MutationcreateShippingGatewayRoutingRuleArgs = {
2595
+ input: CreateShippingGatewayRoutingRuleInput;
2596
+ };
2597
+
2598
+
2419
2599
  export type MutationcreateShippingLabelArgs = {
2420
2600
  input: CreateLabelServiceInput;
2421
2601
  };
@@ -2472,7 +2652,7 @@ export type MutationdeleteCarrierArgs = {
2472
2652
 
2473
2653
 
2474
2654
  export type MutationdeleteChannelArgs = {
2475
- id: Scalars['ID']['input'];
2655
+ input: DeleteChannelInput;
2476
2656
  };
2477
2657
 
2478
2658
 
@@ -2542,6 +2722,16 @@ export type MutationdeleteManageablePluginArgs = {
2542
2722
  };
2543
2723
 
2544
2724
 
2725
+ export type MutationdeleteMarketArgs = {
2726
+ id: Scalars['ID']['input'];
2727
+ };
2728
+
2729
+
2730
+ export type MutationdeleteMissionArgs = {
2731
+ id: Scalars['ID']['input'];
2732
+ };
2733
+
2734
+
2545
2735
  export type MutationdeleteOrderNoteArgs = {
2546
2736
  id: Scalars['ID']['input'];
2547
2737
  };
@@ -2587,6 +2777,11 @@ export type MutationdeleteSellerArgs = {
2587
2777
  };
2588
2778
 
2589
2779
 
2780
+ export type MutationdeleteShippingGatewayRoutingRuleArgs = {
2781
+ id: Scalars['ID']['input'];
2782
+ };
2783
+
2784
+
2590
2785
  export type MutationdeleteStockLocationArgs = {
2591
2786
  id: Scalars['ID']['input'];
2592
2787
  };
@@ -2832,6 +3027,11 @@ export type MutationremoveStockLocationFromChannelArgs = {
2832
3027
  };
2833
3028
 
2834
3029
 
3030
+ export type MutationreorderShippingGatewayRoutingRulesArgs = {
3031
+ input: ReorderShippingGatewayRoutingRulesInput;
3032
+ };
3033
+
3034
+
2835
3035
  export type MutationreportDamagedStockArgs = {
2836
3036
  input: ReportDamagedStockInput;
2837
3037
  };
@@ -2882,6 +3082,11 @@ export type MutationsendChatMessageArgs = {
2882
3082
  };
2883
3083
 
2884
3084
 
3085
+ export type MutationsendMissionMessageArgs = {
3086
+ input: SendMissionMessageInput;
3087
+ };
3088
+
3089
+
2885
3090
  export type MutationsetBillingAddressArgs = {
2886
3091
  input: SetBillingAddressInput;
2887
3092
  };
@@ -2917,6 +3122,11 @@ export type MutationsetManualShippingRateArgs = {
2917
3122
  };
2918
3123
 
2919
3124
 
3125
+ export type MutationsetProductVariantPriceArgs = {
3126
+ input: SetPriceInput;
3127
+ };
3128
+
3129
+
2920
3130
  export type MutationsetSafetyStockArgs = {
2921
3131
  input: SetSafetyStockInput;
2922
3132
  };
@@ -2937,6 +3147,11 @@ export type MutationsplitFulfillmentRequestArgs = {
2937
3147
  };
2938
3148
 
2939
3149
 
3150
+ export type MutationstartChatSessionArgs = {
3151
+ input?: InputMaybe<StartChatSessionInput>;
3152
+ };
3153
+
3154
+
2940
3155
  export type MutationtransitionFulfillmentToStateArgs = {
2941
3156
  input: TransitionFulfillmentToStateInput;
2942
3157
  };
@@ -3054,6 +3269,11 @@ export type MutationupdateManageablePluginArgs = {
3054
3269
  };
3055
3270
 
3056
3271
 
3272
+ export type MutationupdateMarketArgs = {
3273
+ input: UpdateMarketInput;
3274
+ };
3275
+
3276
+
3057
3277
  export type MutationupdateOnboardingProfileArgs = {
3058
3278
  input: UpdateOnboardingProfileInput;
3059
3279
  };
@@ -3109,6 +3329,11 @@ export type MutationupdateSellerArgs = {
3109
3329
  };
3110
3330
 
3111
3331
 
3332
+ export type MutationupdateShippingGatewayRoutingRuleArgs = {
3333
+ input: UpdateShippingGatewayRoutingRuleInput;
3334
+ };
3335
+
3336
+
3112
3337
  export type MutationupdateShippingLabelArgs = {
3113
3338
  input: UpdateShippingLabelInput;
3114
3339
  };
@@ -3518,6 +3743,15 @@ export type ProductVariantDimensions = {
3518
3743
  width?: Maybe<Scalars['Float']['output']>;
3519
3744
  };
3520
3745
 
3746
+ export type ProductVariantPrice = {
3747
+ createdAt: Scalars['DateTime']['output'];
3748
+ currencyCode: Scalars['String']['output'];
3749
+ id: Scalars['ID']['output'];
3750
+ price: Scalars['Int']['output'];
3751
+ updatedAt: Scalars['DateTime']['output'];
3752
+ variantId: Scalars['ID']['output'];
3753
+ };
3754
+
3521
3755
  export type ProductVariantSnapshot = {
3522
3756
  createdAt: Scalars['DateTime']['output'];
3523
3757
  id: Scalars['ID']['output'];
@@ -3577,6 +3811,7 @@ export type ProvisionChannelInput = {
3577
3811
  defaultCurrencyCode?: InputMaybe<Scalars['String']['input']>;
3578
3812
  defaultLanguageCode?: InputMaybe<Scalars['String']['input']>;
3579
3813
  description?: InputMaybe<Scalars['String']['input']>;
3814
+ provisionWorkspace?: InputMaybe<Scalars['Boolean']['input']>;
3580
3815
  userId: Scalars['ID']['input'];
3581
3816
  };
3582
3817
 
@@ -3620,7 +3855,9 @@ export type Query = {
3620
3855
  channelPlugins: Array<ChannelPlugin>;
3621
3856
  channelSettings: ChannelSettings;
3622
3857
  channels: ChannelList;
3858
+ chatHistory: Array<ChatHistoryMessage>;
3623
3859
  chatQueue: Array<ChatQueueItem>;
3860
+ chatSessions: ChatSessionSummaryList;
3624
3861
  collection?: Maybe<Collection>;
3625
3862
  collections: CollectionList;
3626
3863
  configurationItemValue?: Maybe<Scalars['JSON']['output']>;
@@ -3663,6 +3900,9 @@ export type Query = {
3663
3900
  manageablePluginsByTag: Array<ManageablePlugin>;
3664
3901
  marketingIdentity?: Maybe<MarketingIdentity>;
3665
3902
  marketingIdentityByCustomer?: Maybe<MarketingIdentity>;
3903
+ markets: MarketList;
3904
+ mission?: Maybe<Mission>;
3905
+ missions: MissionList;
3666
3906
  order?: Maybe<Order>;
3667
3907
  orderByCode?: Maybe<Order>;
3668
3908
  orderHistory: HistoryEntryList;
@@ -3693,6 +3933,7 @@ export type Query = {
3693
3933
  search: SearchResult;
3694
3934
  seller?: Maybe<Seller>;
3695
3935
  sellers: SellerList;
3936
+ shippingGatewayRoutingRules: Array<ShippingGatewayRoutingRule>;
3696
3937
  shippingLabels: Array<ShippingGatewayLabel>;
3697
3938
  shippingRateGroups: Array<ShippingGatewayRateGroup>;
3698
3939
  stockLocation?: Maybe<StockLocation>;
@@ -3789,11 +4030,21 @@ export type QuerychannelsArgs = {
3789
4030
  };
3790
4031
 
3791
4032
 
4033
+ export type QuerychatHistoryArgs = {
4034
+ input: ChatHistoryInput;
4035
+ };
4036
+
4037
+
3792
4038
  export type QuerychatQueueArgs = {
3793
4039
  sessionId: Scalars['ID']['input'];
3794
4040
  };
3795
4041
 
3796
4042
 
4043
+ export type QuerychatSessionsArgs = {
4044
+ input?: InputMaybe<ChatSessionsInput>;
4045
+ };
4046
+
4047
+
3797
4048
  export type QuerycollectionArgs = {
3798
4049
  id: Scalars['ID']['input'];
3799
4050
  };
@@ -3983,6 +4234,21 @@ export type QuerymarketingIdentityByCustomerArgs = {
3983
4234
  };
3984
4235
 
3985
4236
 
4237
+ export type QuerymarketsArgs = {
4238
+ options?: InputMaybe<ListQueryOptions>;
4239
+ };
4240
+
4241
+
4242
+ export type QuerymissionArgs = {
4243
+ id: Scalars['ID']['input'];
4244
+ };
4245
+
4246
+
4247
+ export type QuerymissionsArgs = {
4248
+ options?: InputMaybe<MissionListOptions>;
4249
+ };
4250
+
4251
+
3986
4252
  export type QueryorderArgs = {
3987
4253
  id: Scalars['ID']['input'];
3988
4254
  };
@@ -4118,6 +4384,11 @@ export type QuerysellersArgs = {
4118
4384
  };
4119
4385
 
4120
4386
 
4387
+ export type QueryshippingGatewayRoutingRulesArgs = {
4388
+ stockLocationId: Scalars['ID']['input'];
4389
+ };
4390
+
4391
+
4121
4392
  export type QueryshippingLabelsArgs = {
4122
4393
  orderId: Scalars['ID']['input'];
4123
4394
  };
@@ -4343,6 +4614,11 @@ export type RemoveStockLocationFromChannelInput = {
4343
4614
  stockLocationId: Scalars['ID']['input'];
4344
4615
  };
4345
4616
 
4617
+ export type ReorderShippingGatewayRoutingRulesInput = {
4618
+ ruleIds: Array<Scalars['ID']['input']>;
4619
+ stockLocationId: Scalars['ID']['input'];
4620
+ };
4621
+
4346
4622
  export type ReportDamagedStockInput = {
4347
4623
  note?: InputMaybe<Scalars['String']['input']>;
4348
4624
  quantity: Scalars['Int']['input'];
@@ -4582,6 +4858,11 @@ export type SendChatMessageInput = {
4582
4858
  sessionId: Scalars['String']['input'];
4583
4859
  };
4584
4860
 
4861
+ export type SendMissionMessageInput = {
4862
+ message: Scalars['String']['input'];
4863
+ missionId: Scalars['ID']['input'];
4864
+ };
4865
+
4585
4866
  export type SetBillingAddressInput = {
4586
4867
  address: CreateAddressInput;
4587
4868
  orderId: Scalars['ID']['input'];
@@ -4638,6 +4919,12 @@ export type SetMarketingIdentifiersResult = {
4638
4919
  rejected: Array<Scalars['String']['output']>;
4639
4920
  };
4640
4921
 
4922
+ export type SetPriceInput = {
4923
+ currencyCode: Scalars['String']['input'];
4924
+ price: Scalars['Int']['input'];
4925
+ variantId: Scalars['ID']['input'];
4926
+ };
4927
+
4641
4928
  export type SetSafetyStockInput = {
4642
4929
  safetyStock: Scalars['Int']['input'];
4643
4930
  stockLocationId: Scalars['ID']['input'];
@@ -4709,6 +4996,31 @@ export type ShippingGatewayRateGroupLine = {
4709
4996
  width?: Maybe<Scalars['Float']['output']>;
4710
4997
  };
4711
4998
 
4999
+ export type ShippingGatewayRoutingFlatRate = {
5000
+ amount: Scalars['Int']['output'];
5001
+ code: Scalars['String']['output'];
5002
+ createdAt: Scalars['DateTime']['output'];
5003
+ currencyCode: Scalars['String']['output'];
5004
+ estimatedDays?: Maybe<Scalars['Int']['output']>;
5005
+ id: Scalars['ID']['output'];
5006
+ name: Scalars['String']['output'];
5007
+ updatedAt: Scalars['DateTime']['output'];
5008
+ };
5009
+
5010
+ export type ShippingGatewayRoutingRule = {
5011
+ countries: Array<Country>;
5012
+ createdAt: Scalars['DateTime']['output'];
5013
+ enabled: Scalars['Boolean']['output'];
5014
+ flatRates: Array<ShippingGatewayRoutingFlatRate>;
5015
+ fulfillmentType: ShippingRoutingFulfillmentType;
5016
+ id: Scalars['ID']['output'];
5017
+ priority: Scalars['Int']['output'];
5018
+ providerCode?: Maybe<Scalars['String']['output']>;
5019
+ scopeType: ShippingRoutingScopeType;
5020
+ stockLocationId: Scalars['ID']['output'];
5021
+ updatedAt: Scalars['DateTime']['output'];
5022
+ };
5023
+
4712
5024
  export type ShippingLine = {
4713
5025
  adjustments: Array<Adjustment>;
4714
5026
  createdAt: Scalars['DateTime']['output'];
@@ -4726,6 +5038,23 @@ export type ShippingProvider = {
4726
5038
  pluginBacked: Scalars['Boolean']['output'];
4727
5039
  };
4728
5040
 
5041
+ export type ShippingRoutingFlatRateInput = {
5042
+ amount: Scalars['Int']['input'];
5043
+ code: Scalars['String']['input'];
5044
+ currencyCode: Scalars['String']['input'];
5045
+ estimatedDays?: InputMaybe<Scalars['Int']['input']>;
5046
+ name: Scalars['String']['input'];
5047
+ };
5048
+
5049
+ export type ShippingRoutingFulfillmentType =
5050
+ | 'MANUAL'
5051
+ | 'PROVIDER';
5052
+
5053
+ export type ShippingRoutingScopeType =
5054
+ | 'COUNTRIES'
5055
+ | 'DOMESTIC'
5056
+ | 'INTERNATIONAL';
5057
+
4729
5058
  export type ShopAddItemToOrderInput = {
4730
5059
  quantity: Scalars['Int']['input'];
4731
5060
  variantId: Scalars['ID']['input'];
@@ -4750,6 +5079,11 @@ export type SplitFulfillmentRequestLineInput = {
4750
5079
  quantity: Scalars['Int']['input'];
4751
5080
  };
4752
5081
 
5082
+ export type StartChatSessionInput = {
5083
+ origin?: InputMaybe<Scalars['String']['input']>;
5084
+ title?: InputMaybe<Scalars['String']['input']>;
5085
+ };
5086
+
4753
5087
  export type StockLevel = {
4754
5088
  id: Scalars['ID']['output'];
4755
5089
  safetyStock: Scalars['Int']['output'];
@@ -4834,6 +5168,7 @@ export type Subscription = {
4834
5168
  deploymentLogs: DeploymentLogEntry;
4835
5169
  hookDispatched: HookDispatchEvent;
4836
5170
  resumeChatSession: ChatMessage;
5171
+ workspaceReadiness: WorkspaceReadiness;
4837
5172
  };
4838
5173
 
4839
5174
 
@@ -5077,6 +5412,7 @@ export type UpdateCarrierInput = {
5077
5412
  };
5078
5413
 
5079
5414
  export type UpdateChannelInput = {
5415
+ availableCurrencyCodes?: InputMaybe<Array<Scalars['String']['input']>>;
5080
5416
  availableLanguageCodes?: InputMaybe<Array<Scalars['String']['input']>>;
5081
5417
  code?: InputMaybe<Scalars['String']['input']>;
5082
5418
  defaultCurrencyCode?: InputMaybe<Scalars['String']['input']>;
@@ -5097,6 +5433,7 @@ export type UpdateChannelPluginConfigInput = {
5097
5433
  };
5098
5434
 
5099
5435
  export type UpdateChannelSettingsInput = {
5436
+ autoCurrencyExchange?: InputMaybe<Scalars['Boolean']['input']>;
5100
5437
  chargeTaxOnShipping?: InputMaybe<Scalars['Boolean']['input']>;
5101
5438
  companyAddress?: InputMaybe<CompanyAddressInput>;
5102
5439
  defaultDeploymentProviderCode?: InputMaybe<Scalars['String']['input']>;
@@ -5104,7 +5441,8 @@ export type UpdateChannelSettingsInput = {
5104
5441
  defaultFulfillmentHandlerCode?: InputMaybe<Scalars['String']['input']>;
5105
5442
  defaultPaymentProviderCode?: InputMaybe<Scalars['String']['input']>;
5106
5443
  defaultWeightUnit?: InputMaybe<WeightUnit>;
5107
- manualShippingRates?: InputMaybe<Array<ManualShippingRateInput>>;
5444
+ fxMarkupPercent?: InputMaybe<Scalars['Float']['input']>;
5445
+ fxRoundingRule?: InputMaybe<Scalars['String']['input']>;
5108
5446
  requireCustomerForCheckout?: InputMaybe<Scalars['Boolean']['input']>;
5109
5447
  requiresShippingAddressValidation?: InputMaybe<Scalars['Boolean']['input']>;
5110
5448
  shopName?: InputMaybe<Scalars['String']['input']>;
@@ -5216,6 +5554,15 @@ export type UpdateManageablePluginInput = {
5216
5554
  toggable?: InputMaybe<Scalars['Boolean']['input']>;
5217
5555
  };
5218
5556
 
5557
+ export type UpdateMarketInput = {
5558
+ countryCodes?: InputMaybe<Array<Scalars['String']['input']>>;
5559
+ currencyCode?: InputMaybe<Scalars['String']['input']>;
5560
+ enabled?: InputMaybe<Scalars['Boolean']['input']>;
5561
+ id: Scalars['ID']['input'];
5562
+ languageCode?: InputMaybe<Scalars['String']['input']>;
5563
+ name?: InputMaybe<Scalars['String']['input']>;
5564
+ };
5565
+
5219
5566
  export type UpdateOnboardingProfileInput = {
5220
5567
  /**
5221
5568
  * When `true`, marks the profile step complete and advances
@@ -5336,6 +5683,17 @@ export type UpdateSellerInput = {
5336
5683
  name?: InputMaybe<Scalars['String']['input']>;
5337
5684
  };
5338
5685
 
5686
+ export type UpdateShippingGatewayRoutingRuleInput = {
5687
+ countryCodes?: InputMaybe<Array<Scalars['String']['input']>>;
5688
+ enabled?: InputMaybe<Scalars['Boolean']['input']>;
5689
+ flatRates?: InputMaybe<Array<ShippingRoutingFlatRateInput>>;
5690
+ fulfillmentType?: InputMaybe<ShippingRoutingFulfillmentType>;
5691
+ id: Scalars['ID']['input'];
5692
+ priority?: InputMaybe<Scalars['Int']['input']>;
5693
+ providerCode?: InputMaybe<Scalars['String']['input']>;
5694
+ scopeType?: InputMaybe<ShippingRoutingScopeType>;
5695
+ };
5696
+
5339
5697
  export type UpdateShippingLabelInput = {
5340
5698
  carrier?: InputMaybe<Scalars['String']['input']>;
5341
5699
  labelId: Scalars['ID']['input'];
@@ -5488,6 +5846,32 @@ export type WeightUnit =
5488
5846
  | 'lb'
5489
5847
  | 'oz';
5490
5848
 
5849
+ export type WorkspaceBindingStatus =
5850
+ | 'none'
5851
+ | 'ready'
5852
+ | 'warming';
5853
+
5854
+ export type WorkspacePodState =
5855
+ | 'degraded'
5856
+ | 'pending'
5857
+ | 'permanentlyFailed'
5858
+ | 'provisioning'
5859
+ | 'retrying'
5860
+ | 'running';
5861
+
5862
+ export type WorkspaceReadiness = {
5863
+ chatBindingState: WorkspaceBindingStatus;
5864
+ endpoint?: Maybe<Scalars['String']['output']>;
5865
+ podState?: Maybe<WorkspacePodState>;
5866
+ serverState?: Maybe<WorkspaceServerState>;
5867
+ workspaceId?: Maybe<Scalars['ID']['output']>;
5868
+ };
5869
+
5870
+ export type WorkspaceServerState =
5871
+ | 'SERVING'
5872
+ | 'STARTING'
5873
+ | 'UNRESPONSIVE';
5874
+
5491
5875
  export type WriteOffDamagedStockInput = {
5492
5876
  note?: InputMaybe<Scalars['String']['input']>;
5493
5877
  quantity: Scalars['Int']['input'];
@@ -7829,19 +8213,38 @@ export type UpdateChannelMutation = { updateChannel: Pick<
7829
8213
  > };
7830
8214
 
7831
8215
  export type DeleteChannelMutationVariables = Exact<{
7832
- id: Scalars['ID']['input'];
8216
+ input: DeleteChannelInput;
7833
8217
  }>;
7834
8218
 
7835
8219
 
7836
- export type DeleteChannelMutation = Pick<Mutation, 'deleteChannel'>;
8220
+ export type DeleteChannelMutation = { deleteChannel: Pick<
8221
+ Channel,
8222
+ | 'id'
8223
+ | 'createdAt'
8224
+ | 'updatedAt'
8225
+ | 'code'
8226
+ | 'token'
8227
+ | 'secret'
8228
+ | 'previewUrl'
8229
+ | 'defaultLanguageCode'
8230
+ | 'defaultCurrencyCode'
8231
+ | 'availableLanguageCodes'
8232
+ | 'availableCurrencyCodes'
8233
+ | 'description'
8234
+ | 'pricesIncludeTax'
8235
+ | 'taxProviderCode'
8236
+ | 'trackInventory'
8237
+ | 'outOfStockThreshold'
8238
+ | 'sellerId'
8239
+ | 'defaultTaxZoneId'
8240
+ > };
7837
8241
 
7838
8242
  export type UpdateChannelSettingsMutationVariables = Exact<{
7839
8243
  input: UpdateChannelSettingsInput;
7840
8244
  }>;
7841
8245
 
7842
8246
 
7843
- export type UpdateChannelSettingsMutation = { updateChannelSettings: (
7844
- Pick<
8247
+ export type UpdateChannelSettingsMutation = { updateChannelSettings: Pick<
7845
8248
  ChannelSettings,
7846
8249
  | 'id'
7847
8250
  | 'channelId'
@@ -7852,16 +8255,10 @@ export type UpdateChannelSettingsMutation = { updateChannelSettings: (
7852
8255
  | 'defaultPaymentProviderCode'
7853
8256
  | 'defaultWeightUnit'
7854
8257
  | 'defaultDimensionUnit'
7855
- >
7856
- & { manualShippingRates: Array<Pick<
7857
- ManualShippingRate,
7858
- | 'code'
7859
- | 'name'
7860
- | 'amount'
7861
- | 'currency'
7862
- | 'estimatedDays'
7863
- >> }
7864
- ) };
8258
+ | 'autoCurrencyExchange'
8259
+ | 'fxRoundingRule'
8260
+ | 'fxMarkupPercent'
8261
+ > };
7865
8262
 
7866
8263
  export type ProvisionChannelMutationVariables = Exact<{
7867
8264
  input: ProvisionChannelInput;
@@ -7890,8 +8287,7 @@ export type ProvisionChannelMutation = { provisionChannel: {
7890
8287
  | 'sellerId'
7891
8288
  | 'defaultTaxZoneId'
7892
8289
  >,
7893
- channelSettings: (
7894
- Pick<
8290
+ channelSettings: Pick<
7895
8291
  ChannelSettings,
7896
8292
  | 'id'
7897
8293
  | 'channelId'
@@ -7902,16 +8298,10 @@ export type ProvisionChannelMutation = { provisionChannel: {
7902
8298
  | 'defaultPaymentProviderCode'
7903
8299
  | 'defaultWeightUnit'
7904
8300
  | 'defaultDimensionUnit'
7905
- >
7906
- & { manualShippingRates: Array<Pick<
7907
- ManualShippingRate,
7908
- | 'code'
7909
- | 'name'
7910
- | 'amount'
7911
- | 'currency'
7912
- | 'estimatedDays'
7913
- >> }
7914
- ),
8301
+ | 'autoCurrencyExchange'
8302
+ | 'fxRoundingRule'
8303
+ | 'fxMarkupPercent'
8304
+ >,
7915
8305
  role: Pick<
7916
8306
  Role,
7917
8307
  | 'id'
@@ -7922,8 +8312,7 @@ export type ProvisionChannelMutation = { provisionChannel: {
7922
8312
  >,
7923
8313
  } };
7924
8314
 
7925
- export type ChannelSettingsFieldFragment = (
7926
- Pick<
8315
+ export type ChannelSettingsFieldFragment = Pick<
7927
8316
  ChannelSettings,
7928
8317
  | 'id'
7929
8318
  | 'channelId'
@@ -7934,22 +8323,15 @@ export type ChannelSettingsFieldFragment = (
7934
8323
  | 'defaultPaymentProviderCode'
7935
8324
  | 'defaultWeightUnit'
7936
8325
  | 'defaultDimensionUnit'
7937
- >
7938
- & { manualShippingRates: Array<Pick<
7939
- ManualShippingRate,
7940
- | 'code'
7941
- | 'name'
7942
- | 'amount'
7943
- | 'currency'
7944
- | 'estimatedDays'
7945
- >> }
7946
- );
8326
+ | 'autoCurrencyExchange'
8327
+ | 'fxRoundingRule'
8328
+ | 'fxMarkupPercent'
8329
+ >;
7947
8330
 
7948
8331
  export type ChannelSettingsQueryVariables = Exact<{ [key: string]: never; }>;
7949
8332
 
7950
8333
 
7951
- export type ChannelSettingsQuery = { channelSettings: (
7952
- Pick<
8334
+ export type ChannelSettingsQuery = { channelSettings: Pick<
7953
8335
  ChannelSettings,
7954
8336
  | 'id'
7955
8337
  | 'channelId'
@@ -7960,24 +8342,17 @@ export type ChannelSettingsQuery = { channelSettings: (
7960
8342
  | 'defaultPaymentProviderCode'
7961
8343
  | 'defaultWeightUnit'
7962
8344
  | 'defaultDimensionUnit'
7963
- >
7964
- & { manualShippingRates: Array<Pick<
7965
- ManualShippingRate,
7966
- | 'code'
7967
- | 'name'
7968
- | 'amount'
7969
- | 'currency'
7970
- | 'estimatedDays'
7971
- >> }
7972
- ) };
8345
+ | 'autoCurrencyExchange'
8346
+ | 'fxRoundingRule'
8347
+ | 'fxMarkupPercent'
8348
+ > };
7973
8349
 
7974
8350
  export type ChannelUpdateSettingsMutationVariables = Exact<{
7975
8351
  input: UpdateChannelSettingsInput;
7976
8352
  }>;
7977
8353
 
7978
8354
 
7979
- export type ChannelUpdateSettingsMutation = { updateChannelSettings: (
7980
- Pick<
8355
+ export type ChannelUpdateSettingsMutation = { updateChannelSettings: Pick<
7981
8356
  ChannelSettings,
7982
8357
  | 'id'
7983
8358
  | 'channelId'
@@ -7988,16 +8363,10 @@ export type ChannelUpdateSettingsMutation = { updateChannelSettings: (
7988
8363
  | 'defaultPaymentProviderCode'
7989
8364
  | 'defaultWeightUnit'
7990
8365
  | 'defaultDimensionUnit'
7991
- >
7992
- & { manualShippingRates: Array<Pick<
7993
- ManualShippingRate,
7994
- | 'code'
7995
- | 'name'
7996
- | 'amount'
7997
- | 'currency'
7998
- | 'estimatedDays'
7999
- >> }
8000
- ) };
8366
+ | 'autoCurrencyExchange'
8367
+ | 'fxRoundingRule'
8368
+ | 'fxMarkupPercent'
8369
+ > };
8001
8370
 
8002
8371
  export type ChatSessionFieldFragment = Pick<
8003
8372
  ChatSession,
@@ -8025,7 +8394,43 @@ export type ChatMessageFieldFragment = (
8025
8394
  }
8026
8395
  );
8027
8396
 
8028
- export type StartChatSessionMutationVariables = Exact<{ [key: string]: never; }>;
8397
+ export type ChatHistoryMessageFieldFragment = Pick<
8398
+ ChatHistoryMessage,
8399
+ | 'id'
8400
+ | 'role'
8401
+ | 'content'
8402
+ | 'toolUse'
8403
+ | 'toolResult'
8404
+ | 'seq'
8405
+ | 'eventId'
8406
+ | 'timestamp'
8407
+ >;
8408
+
8409
+ export type ChatSessionSummaryFieldFragment = Pick<
8410
+ ChatSessionSummary,
8411
+ | 'id'
8412
+ | 'agentSessionId'
8413
+ | 'title'
8414
+ | 'status'
8415
+ | 'origin'
8416
+ | 'messageCount'
8417
+ | 'lastActivityAt'
8418
+ | 'createdAt'
8419
+ | 'workspaceId'
8420
+ >;
8421
+
8422
+ export type WorkspaceReadinessFieldFragment = Pick<
8423
+ WorkspaceReadiness,
8424
+ | 'workspaceId'
8425
+ | 'podState'
8426
+ | 'serverState'
8427
+ | 'chatBindingState'
8428
+ | 'endpoint'
8429
+ >;
8430
+
8431
+ export type StartChatSessionMutationVariables = Exact<{
8432
+ input?: InputMaybe<StartChatSessionInput>;
8433
+ }>;
8029
8434
 
8030
8435
 
8031
8436
  export type StartChatSessionMutation = { startChatSession: Pick<
@@ -8127,6 +8532,63 @@ export type ChatQueueQueryVariables = Exact<{
8127
8532
 
8128
8533
  export type ChatQueueQuery = { chatQueue: Array<Pick<ChatQueueItem, 'id' | 'kind' | 'content'>> };
8129
8534
 
8535
+ export type ChatHistoryQueryVariables = Exact<{
8536
+ input: ChatHistoryInput;
8537
+ }>;
8538
+
8539
+
8540
+ export type ChatHistoryQuery = { chatHistory: Array<Pick<
8541
+ ChatHistoryMessage,
8542
+ | 'id'
8543
+ | 'role'
8544
+ | 'content'
8545
+ | 'toolUse'
8546
+ | 'toolResult'
8547
+ | 'seq'
8548
+ | 'eventId'
8549
+ | 'timestamp'
8550
+ >> };
8551
+
8552
+ export type ChatSessionsQueryVariables = Exact<{
8553
+ input?: InputMaybe<ChatSessionsInput>;
8554
+ }>;
8555
+
8556
+
8557
+ export type ChatSessionsQuery = { chatSessions: (
8558
+ Pick<ChatSessionSummaryList, 'totalItems'>
8559
+ & { items: Array<Pick<
8560
+ ChatSessionSummary,
8561
+ | 'id'
8562
+ | 'agentSessionId'
8563
+ | 'title'
8564
+ | 'status'
8565
+ | 'origin'
8566
+ | 'messageCount'
8567
+ | 'lastActivityAt'
8568
+ | 'createdAt'
8569
+ | 'workspaceId'
8570
+ >> }
8571
+ ) };
8572
+
8573
+ export type ArchiveChatSessionMutationVariables = Exact<{
8574
+ sessionId: Scalars['ID']['input'];
8575
+ }>;
8576
+
8577
+
8578
+ export type ArchiveChatSessionMutation = Pick<Mutation, 'archiveChatSession'>;
8579
+
8580
+ export type WorkspaceReadinessSubscriptionVariables = Exact<{ [key: string]: never; }>;
8581
+
8582
+
8583
+ export type WorkspaceReadinessSubscription = { workspaceReadiness: Pick<
8584
+ WorkspaceReadiness,
8585
+ | 'workspaceId'
8586
+ | 'podState'
8587
+ | 'serverState'
8588
+ | 'chatBindingState'
8589
+ | 'endpoint'
8590
+ > };
8591
+
8130
8592
  export type CollectionTranslationFieldFragment = Pick<
8131
8593
  CollectionTranslation,
8132
8594
  | 'id'
@@ -10152,32 +10614,141 @@ export type AdminRespondToHookDispatchMutationVariables = Exact<{
10152
10614
 
10153
10615
  export type AdminRespondToHookDispatchMutation = Pick<Mutation, 'respondToHookDispatch'>;
10154
10616
 
10155
- export type HookListenSubscriptionVariables = Exact<{
10156
- hookPoints: Array<Scalars['String']['input']> | Scalars['String']['input'];
10617
+ export type HookListenSubscriptionVariables = Exact<{
10618
+ hookPoints: Array<Scalars['String']['input']> | Scalars['String']['input'];
10619
+ }>;
10620
+
10621
+
10622
+ export type HookListenSubscription = { hookDispatched: Pick<
10623
+ HookDispatchEvent,
10624
+ | 'id'
10625
+ | 'hookPoint'
10626
+ | 'transactionToken'
10627
+ | 'args'
10628
+ > };
10629
+
10630
+ export type HookRespondMutationVariables = Exact<{
10631
+ input: RespondToHookDispatchInput;
10632
+ }>;
10633
+
10634
+
10635
+ export type HookRespondMutation = Pick<Mutation, 'respondToHookDispatch'>;
10636
+
10637
+ export type EmitMutationVariables = Exact<{
10638
+ input: EmitCustomEventInput;
10639
+ }>;
10640
+
10641
+
10642
+ export type EmitMutation = Pick<Mutation, 'emit'>;
10643
+
10644
+ export type MarketFieldFragment = (
10645
+ Pick<
10646
+ Market,
10647
+ | 'id'
10648
+ | 'createdAt'
10649
+ | 'updatedAt'
10650
+ | 'name'
10651
+ | 'enabled'
10652
+ | 'currencyCode'
10653
+ | 'languageCode'
10654
+ | 'channelId'
10655
+ >
10656
+ & { countries: Array<Pick<
10657
+ Country,
10658
+ | 'id'
10659
+ | 'code'
10660
+ | 'name'
10661
+ | 'enabled'
10662
+ >> }
10663
+ );
10664
+
10665
+ export type MarketsQueryVariables = Exact<{
10666
+ options?: InputMaybe<ListQueryOptions>;
10667
+ }>;
10668
+
10669
+
10670
+ export type MarketsQuery = { markets: (
10671
+ Pick<MarketList, 'totalItems'>
10672
+ & { items: Array<(
10673
+ Pick<
10674
+ Market,
10675
+ | 'id'
10676
+ | 'createdAt'
10677
+ | 'updatedAt'
10678
+ | 'name'
10679
+ | 'enabled'
10680
+ | 'currencyCode'
10681
+ | 'languageCode'
10682
+ | 'channelId'
10683
+ >
10684
+ & { countries: Array<Pick<
10685
+ Country,
10686
+ | 'id'
10687
+ | 'code'
10688
+ | 'name'
10689
+ | 'enabled'
10690
+ >> }
10691
+ )> }
10692
+ ) };
10693
+
10694
+ export type CreateMarketMutationVariables = Exact<{
10695
+ input: CreateMarketInput;
10696
+ }>;
10697
+
10698
+
10699
+ export type CreateMarketMutation = { createMarket: (
10700
+ Pick<
10701
+ Market,
10702
+ | 'id'
10703
+ | 'createdAt'
10704
+ | 'updatedAt'
10705
+ | 'name'
10706
+ | 'enabled'
10707
+ | 'currencyCode'
10708
+ | 'languageCode'
10709
+ | 'channelId'
10710
+ >
10711
+ & { countries: Array<Pick<
10712
+ Country,
10713
+ | 'id'
10714
+ | 'code'
10715
+ | 'name'
10716
+ | 'enabled'
10717
+ >> }
10718
+ ) };
10719
+
10720
+ export type UpdateMarketMutationVariables = Exact<{
10721
+ input: UpdateMarketInput;
10157
10722
  }>;
10158
10723
 
10159
10724
 
10160
- export type HookListenSubscription = { hookDispatched: Pick<
10161
- HookDispatchEvent,
10725
+ export type UpdateMarketMutation = { updateMarket: (
10726
+ Pick<
10727
+ Market,
10162
10728
  | 'id'
10163
- | 'hookPoint'
10164
- | 'transactionToken'
10165
- | 'args'
10166
- > };
10167
-
10168
- export type HookRespondMutationVariables = Exact<{
10169
- input: RespondToHookDispatchInput;
10170
- }>;
10171
-
10172
-
10173
- export type HookRespondMutation = Pick<Mutation, 'respondToHookDispatch'>;
10729
+ | 'createdAt'
10730
+ | 'updatedAt'
10731
+ | 'name'
10732
+ | 'enabled'
10733
+ | 'currencyCode'
10734
+ | 'languageCode'
10735
+ | 'channelId'
10736
+ >
10737
+ & { countries: Array<Pick<
10738
+ Country,
10739
+ | 'id'
10740
+ | 'code'
10741
+ | 'name'
10742
+ | 'enabled'
10743
+ >> }
10744
+ ) };
10174
10745
 
10175
- export type EmitMutationVariables = Exact<{
10176
- input: EmitCustomEventInput;
10746
+ export type DeleteMarketMutationVariables = Exact<{
10747
+ id: Scalars['ID']['input'];
10177
10748
  }>;
10178
10749
 
10179
10750
 
10180
- export type EmitMutation = Pick<Mutation, 'emit'>;
10751
+ export type DeleteMarketMutation = { deleteMarket: Pick<DeletionResponse, 'result' | 'message'> };
10181
10752
 
10182
10753
  export type AdminAttributionByOrderQueryVariables = Exact<{
10183
10754
  input: AttributionByOrderInput;
@@ -10418,6 +10989,181 @@ export type AdminMarketingIdentityByCustomerQuery = { marketingIdentityByCustome
10418
10989
  >> }
10419
10990
  )> };
10420
10991
 
10992
+ export type MissionRepoRefFieldFragment = Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>;
10993
+
10994
+ export type MissionFieldFragment = (
10995
+ Pick<
10996
+ Mission,
10997
+ | 'id'
10998
+ | 'status'
10999
+ | 'title'
11000
+ | 'model'
11001
+ | 'branch'
11002
+ | 'prUrl'
11003
+ | 'podRef'
11004
+ | 'costCents'
11005
+ | 'channelId'
11006
+ | 'administratorId'
11007
+ | 'workspaceId'
11008
+ | 'createdAt'
11009
+ | 'updatedAt'
11010
+ >
11011
+ & { repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>> }
11012
+ );
11013
+
11014
+ export type AdminMissionsQueryVariables = Exact<{
11015
+ options?: InputMaybe<MissionListOptions>;
11016
+ }>;
11017
+
11018
+
11019
+ export type AdminMissionsQuery = { missions: (
11020
+ Pick<MissionList, 'totalItems'>
11021
+ & { items: Array<(
11022
+ Pick<
11023
+ Mission,
11024
+ | 'id'
11025
+ | 'status'
11026
+ | 'title'
11027
+ | 'model'
11028
+ | 'branch'
11029
+ | 'prUrl'
11030
+ | 'podRef'
11031
+ | 'costCents'
11032
+ | 'channelId'
11033
+ | 'administratorId'
11034
+ | 'workspaceId'
11035
+ | 'createdAt'
11036
+ | 'updatedAt'
11037
+ >
11038
+ & { repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>> }
11039
+ )> }
11040
+ ) };
11041
+
11042
+ export type AdminMissionQueryVariables = Exact<{
11043
+ id: Scalars['ID']['input'];
11044
+ }>;
11045
+
11046
+
11047
+ export type AdminMissionQuery = { mission?: Maybe<(
11048
+ Pick<
11049
+ Mission,
11050
+ | 'id'
11051
+ | 'status'
11052
+ | 'title'
11053
+ | 'model'
11054
+ | 'branch'
11055
+ | 'prUrl'
11056
+ | 'podRef'
11057
+ | 'costCents'
11058
+ | 'channelId'
11059
+ | 'administratorId'
11060
+ | 'workspaceId'
11061
+ | 'createdAt'
11062
+ | 'updatedAt'
11063
+ >
11064
+ & { repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>> }
11065
+ )> };
11066
+
11067
+ export type AdminCreateMissionMutationVariables = Exact<{
11068
+ input: CreateMissionInput;
11069
+ }>;
11070
+
11071
+
11072
+ export type AdminCreateMissionMutation = { createMission: (
11073
+ Pick<
11074
+ Mission,
11075
+ | 'id'
11076
+ | 'status'
11077
+ | 'title'
11078
+ | 'model'
11079
+ | 'branch'
11080
+ | 'prUrl'
11081
+ | 'podRef'
11082
+ | 'costCents'
11083
+ | 'channelId'
11084
+ | 'administratorId'
11085
+ | 'workspaceId'
11086
+ | 'createdAt'
11087
+ | 'updatedAt'
11088
+ >
11089
+ & { repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>> }
11090
+ ) };
11091
+
11092
+ export type AdminCancelMissionMutationVariables = Exact<{
11093
+ id: Scalars['ID']['input'];
11094
+ }>;
11095
+
11096
+
11097
+ export type AdminCancelMissionMutation = { cancelMission: (
11098
+ Pick<
11099
+ Mission,
11100
+ | 'id'
11101
+ | 'status'
11102
+ | 'title'
11103
+ | 'model'
11104
+ | 'branch'
11105
+ | 'prUrl'
11106
+ | 'podRef'
11107
+ | 'costCents'
11108
+ | 'channelId'
11109
+ | 'administratorId'
11110
+ | 'workspaceId'
11111
+ | 'createdAt'
11112
+ | 'updatedAt'
11113
+ >
11114
+ & { repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>> }
11115
+ ) };
11116
+
11117
+ export type AdminDeleteMissionMutationVariables = Exact<{
11118
+ id: Scalars['ID']['input'];
11119
+ }>;
11120
+
11121
+
11122
+ export type AdminDeleteMissionMutation = { deleteMission: (
11123
+ Pick<
11124
+ Mission,
11125
+ | 'id'
11126
+ | 'status'
11127
+ | 'title'
11128
+ | 'model'
11129
+ | 'branch'
11130
+ | 'prUrl'
11131
+ | 'podRef'
11132
+ | 'costCents'
11133
+ | 'channelId'
11134
+ | 'administratorId'
11135
+ | 'workspaceId'
11136
+ | 'createdAt'
11137
+ | 'updatedAt'
11138
+ >
11139
+ & { repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>> }
11140
+ ) };
11141
+
11142
+ export type AdminSendMissionMessageMutationVariables = Exact<{
11143
+ input: SendMissionMessageInput;
11144
+ }>;
11145
+
11146
+
11147
+ export type AdminSendMissionMessageMutation = { sendMissionMessage: (
11148
+ Pick<
11149
+ Mission,
11150
+ | 'id'
11151
+ | 'status'
11152
+ | 'title'
11153
+ | 'model'
11154
+ | 'branch'
11155
+ | 'prUrl'
11156
+ | 'podRef'
11157
+ | 'costCents'
11158
+ | 'channelId'
11159
+ | 'administratorId'
11160
+ | 'workspaceId'
11161
+ | 'createdAt'
11162
+ | 'updatedAt'
11163
+ >
11164
+ & { repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>> }
11165
+ ) };
11166
+
10421
11167
  export type ActiveOnboardingQueryVariables = Exact<{ [key: string]: never; }>;
10422
11168
 
10423
11169
 
@@ -23456,6 +24202,16 @@ export type ProductVariantFieldFragment = (
23456
24202
  }
23457
24203
  );
23458
24204
 
24205
+ export type ProductVariantPriceFieldFragment = Pick<
24206
+ ProductVariantPrice,
24207
+ | 'id'
24208
+ | 'createdAt'
24209
+ | 'updatedAt'
24210
+ | 'price'
24211
+ | 'currencyCode'
24212
+ | 'variantId'
24213
+ >;
24214
+
23459
24215
  export type AdminProductVariantQueryVariables = Exact<{
23460
24216
  id: Scalars['ID']['input'];
23461
24217
  }>;
@@ -23767,6 +24523,21 @@ export type DeleteProductVariantsMutationVariables = Exact<{
23767
24523
 
23768
24524
  export type DeleteProductVariantsMutation = { deleteProductVariants: Pick<DeletionResponse, 'result' | 'message'> };
23769
24525
 
24526
+ export type SetProductVariantPriceMutationVariables = Exact<{
24527
+ input: SetPriceInput;
24528
+ }>;
24529
+
24530
+
24531
+ export type SetProductVariantPriceMutation = { setProductVariantPrice: Pick<
24532
+ ProductVariantPrice,
24533
+ | 'id'
24534
+ | 'createdAt'
24535
+ | 'updatedAt'
24536
+ | 'price'
24537
+ | 'currencyCode'
24538
+ | 'variantId'
24539
+ > };
24540
+
23770
24541
  export type ProductTranslationFieldFragment = Pick<
23771
24542
  ProductTranslation,
23772
24543
  | 'id'
@@ -25938,6 +26709,31 @@ export type ShippingCarrierFieldFragment = Pick<
25938
26709
  | 'enabled'
25939
26710
  >;
25940
26711
 
26712
+ export type ShippingGatewayRoutingRuleFieldFragment = (
26713
+ Pick<
26714
+ ShippingGatewayRoutingRule,
26715
+ | 'id'
26716
+ | 'stockLocationId'
26717
+ | 'scopeType'
26718
+ | 'fulfillmentType'
26719
+ | 'providerCode'
26720
+ | 'priority'
26721
+ | 'enabled'
26722
+ >
26723
+ & {
26724
+ countries: Array<Pick<Country, 'id' | 'code' | 'name'>>,
26725
+ flatRates: Array<Pick<
26726
+ ShippingGatewayRoutingFlatRate,
26727
+ | 'id'
26728
+ | 'code'
26729
+ | 'name'
26730
+ | 'amount'
26731
+ | 'currencyCode'
26732
+ | 'estimatedDays'
26733
+ >>,
26734
+ }
26735
+ );
26736
+
25941
26737
  export type ShippingLabelsQueryVariables = Exact<{
25942
26738
  orderId: Scalars['ID']['input'];
25943
26739
  }>;
@@ -26935,6 +27731,133 @@ export type AvailableShippingProvidersQueryVariables = Exact<{ [key: string]: ne
26935
27731
 
26936
27732
  export type AvailableShippingProvidersQuery = { availableShippingProviders: Array<Pick<ShippingProvider, 'code' | 'name' | 'pluginBacked'>> };
26937
27733
 
27734
+ export type ShippingGatewayRoutingRulesQueryVariables = Exact<{
27735
+ stockLocationId: Scalars['ID']['input'];
27736
+ }>;
27737
+
27738
+
27739
+ export type ShippingGatewayRoutingRulesQuery = { shippingGatewayRoutingRules: Array<(
27740
+ Pick<
27741
+ ShippingGatewayRoutingRule,
27742
+ | 'id'
27743
+ | 'stockLocationId'
27744
+ | 'scopeType'
27745
+ | 'fulfillmentType'
27746
+ | 'providerCode'
27747
+ | 'priority'
27748
+ | 'enabled'
27749
+ >
27750
+ & {
27751
+ countries: Array<Pick<Country, 'id' | 'code' | 'name'>>,
27752
+ flatRates: Array<Pick<
27753
+ ShippingGatewayRoutingFlatRate,
27754
+ | 'id'
27755
+ | 'code'
27756
+ | 'name'
27757
+ | 'amount'
27758
+ | 'currencyCode'
27759
+ | 'estimatedDays'
27760
+ >>,
27761
+ }
27762
+ )> };
27763
+
27764
+ export type CreateShippingGatewayRoutingRuleMutationVariables = Exact<{
27765
+ input: CreateShippingGatewayRoutingRuleInput;
27766
+ }>;
27767
+
27768
+
27769
+ export type CreateShippingGatewayRoutingRuleMutation = { createShippingGatewayRoutingRule: (
27770
+ Pick<
27771
+ ShippingGatewayRoutingRule,
27772
+ | 'id'
27773
+ | 'stockLocationId'
27774
+ | 'scopeType'
27775
+ | 'fulfillmentType'
27776
+ | 'providerCode'
27777
+ | 'priority'
27778
+ | 'enabled'
27779
+ >
27780
+ & {
27781
+ countries: Array<Pick<Country, 'id' | 'code' | 'name'>>,
27782
+ flatRates: Array<Pick<
27783
+ ShippingGatewayRoutingFlatRate,
27784
+ | 'id'
27785
+ | 'code'
27786
+ | 'name'
27787
+ | 'amount'
27788
+ | 'currencyCode'
27789
+ | 'estimatedDays'
27790
+ >>,
27791
+ }
27792
+ ) };
27793
+
27794
+ export type UpdateShippingGatewayRoutingRuleMutationVariables = Exact<{
27795
+ input: UpdateShippingGatewayRoutingRuleInput;
27796
+ }>;
27797
+
27798
+
27799
+ export type UpdateShippingGatewayRoutingRuleMutation = { updateShippingGatewayRoutingRule: (
27800
+ Pick<
27801
+ ShippingGatewayRoutingRule,
27802
+ | 'id'
27803
+ | 'stockLocationId'
27804
+ | 'scopeType'
27805
+ | 'fulfillmentType'
27806
+ | 'providerCode'
27807
+ | 'priority'
27808
+ | 'enabled'
27809
+ >
27810
+ & {
27811
+ countries: Array<Pick<Country, 'id' | 'code' | 'name'>>,
27812
+ flatRates: Array<Pick<
27813
+ ShippingGatewayRoutingFlatRate,
27814
+ | 'id'
27815
+ | 'code'
27816
+ | 'name'
27817
+ | 'amount'
27818
+ | 'currencyCode'
27819
+ | 'estimatedDays'
27820
+ >>,
27821
+ }
27822
+ ) };
27823
+
27824
+ export type DeleteShippingGatewayRoutingRuleMutationVariables = Exact<{
27825
+ id: Scalars['ID']['input'];
27826
+ }>;
27827
+
27828
+
27829
+ export type DeleteShippingGatewayRoutingRuleMutation = Pick<Mutation, 'deleteShippingGatewayRoutingRule'>;
27830
+
27831
+ export type ReorderShippingGatewayRoutingRulesMutationVariables = Exact<{
27832
+ input: ReorderShippingGatewayRoutingRulesInput;
27833
+ }>;
27834
+
27835
+
27836
+ export type ReorderShippingGatewayRoutingRulesMutation = { reorderShippingGatewayRoutingRules: Array<(
27837
+ Pick<
27838
+ ShippingGatewayRoutingRule,
27839
+ | 'id'
27840
+ | 'stockLocationId'
27841
+ | 'scopeType'
27842
+ | 'fulfillmentType'
27843
+ | 'providerCode'
27844
+ | 'priority'
27845
+ | 'enabled'
27846
+ >
27847
+ & {
27848
+ countries: Array<Pick<Country, 'id' | 'code' | 'name'>>,
27849
+ flatRates: Array<Pick<
27850
+ ShippingGatewayRoutingFlatRate,
27851
+ | 'id'
27852
+ | 'code'
27853
+ | 'name'
27854
+ | 'amount'
27855
+ | 'currencyCode'
27856
+ | 'estimatedDays'
27857
+ >>,
27858
+ }
27859
+ )> };
27860
+
26938
27861
  export type StockLocationFieldFragment = (
26939
27862
  Pick<
26940
27863
  StockLocation,