@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
@@ -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>;
@@ -1742,20 +1815,21 @@ export type ManageablePluginConfigItemTranslation = {
1742
1815
  name: Scalars['String']['output'];
1743
1816
  };
1744
1817
 
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']>;
1818
+ export type Market = {
1819
+ channelId: Scalars['ID']['output'];
1820
+ countries: Array<Country>;
1821
+ createdAt: Scalars['DateTime']['output'];
1822
+ currencyCode: Scalars['String']['output'];
1823
+ enabled: Scalars['Boolean']['output'];
1824
+ id: Scalars['ID']['output'];
1825
+ languageCode?: Maybe<Scalars['String']['output']>;
1750
1826
  name: Scalars['String']['output'];
1827
+ updatedAt: Scalars['DateTime']['output'];
1751
1828
  };
1752
1829
 
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'];
1830
+ export type MarketList = {
1831
+ items: Array<Market>;
1832
+ totalItems: Scalars['Int']['output'];
1759
1833
  };
1760
1834
 
1761
1835
  export type MarketingAttribution = {
@@ -1857,6 +1931,59 @@ export type MergeFulfillmentRequestInput = {
1857
1931
  requestIdB: Scalars['ID']['input'];
1858
1932
  };
1859
1933
 
1934
+ export type Mission = {
1935
+ administratorId: Scalars['ID']['output'];
1936
+ branch?: Maybe<Scalars['String']['output']>;
1937
+ channelId: Scalars['ID']['output'];
1938
+ costCents?: Maybe<Scalars['Int']['output']>;
1939
+ createdAt: Scalars['DateTime']['output'];
1940
+ id: Scalars['ID']['output'];
1941
+ model: Scalars['String']['output'];
1942
+ podRef?: Maybe<Scalars['String']['output']>;
1943
+ prUrl?: Maybe<Scalars['String']['output']>;
1944
+ repos: Array<MissionRepoRef>;
1945
+ status: MissionStatus;
1946
+ title?: Maybe<Scalars['String']['output']>;
1947
+ updatedAt: Scalars['DateTime']['output'];
1948
+ workspaceId: Scalars['ID']['output'];
1949
+ };
1950
+
1951
+ export type MissionList = {
1952
+ items: Array<Mission>;
1953
+ totalItems: Scalars['Int']['output'];
1954
+ };
1955
+
1956
+ export type MissionListOptions = {
1957
+ skip?: InputMaybe<Scalars['Int']['input']>;
1958
+ sort?: InputMaybe<MissionSortParameter>;
1959
+ take?: InputMaybe<Scalars['Int']['input']>;
1960
+ };
1961
+
1962
+ export type MissionRepoInput = {
1963
+ branch: Scalars['String']['input'];
1964
+ name: Scalars['String']['input'];
1965
+ owner: Scalars['String']['input'];
1966
+ };
1967
+
1968
+ export type MissionRepoRef = {
1969
+ branch: Scalars['String']['output'];
1970
+ name: Scalars['String']['output'];
1971
+ owner: Scalars['String']['output'];
1972
+ };
1973
+
1974
+ export type MissionSortParameter = {
1975
+ createdAt?: InputMaybe<SortOrder>;
1976
+ updatedAt?: InputMaybe<SortOrder>;
1977
+ };
1978
+
1979
+ export type MissionStatus =
1980
+ | 'AWAITING_USER'
1981
+ | 'COMPLETED'
1982
+ | 'FAILED'
1983
+ | 'INTERRUPTED'
1984
+ | 'PENDING'
1985
+ | 'RUNNING';
1986
+
1860
1987
  export type ModifyOrderAddItemInput = {
1861
1988
  productVariantId: Scalars['ID']['input'];
1862
1989
  quantity: Scalars['Int']['input'];
@@ -1907,6 +2034,7 @@ export type Mutation = {
1907
2034
  adjustStock: StockMovement;
1908
2035
  applyCouponCode: Order;
1909
2036
  approveDeviceCode: DeviceCodeInfo;
2037
+ archiveChatSession: Scalars['Boolean']['output'];
1910
2038
  assignAssetsToChannel: Array<Asset>;
1911
2039
  assignProductsToChannel: Array<Product>;
1912
2040
  assignPromotionToChannel: Promotion;
@@ -1915,6 +2043,7 @@ export type Mutation = {
1915
2043
  authenticateWithExternalStrategy: AdminExternalAuthResult;
1916
2044
  beginTransaction: TransactionTokenResult;
1917
2045
  cancelFulfillmentRequest: FulfillmentRequest;
2046
+ cancelMission: Mission;
1918
2047
  cancelOrder: Order;
1919
2048
  cancelPaymentSession: PaymentGatewaySession;
1920
2049
  cancelSubscription: BillingSubscription;
@@ -1946,6 +2075,8 @@ export type Mutation = {
1946
2075
  createFulfillment: Fulfillment;
1947
2076
  createFulfillmentRequestsForOrder: Array<FulfillmentRequest>;
1948
2077
  createManageablePlugin: ManageablePlugin;
2078
+ createMarket: Market;
2079
+ createMission: Mission;
1949
2080
  createPaymentSession: PaymentGatewaySession;
1950
2081
  createProduct: Product;
1951
2082
  createProductOption: ProductOption;
@@ -1956,6 +2087,7 @@ export type Mutation = {
1956
2087
  createRole: Role;
1957
2088
  createScheduledJob: ScheduledJob;
1958
2089
  createSeller: Seller;
2090
+ createShippingGatewayRoutingRule: ShippingGatewayRoutingRule;
1959
2091
  createShippingLabel: ShippingGatewayLabel;
1960
2092
  createStockLocation: StockLocation;
1961
2093
  createSubscription: BillingSubscription;
@@ -1981,6 +2113,8 @@ export type Mutation = {
1981
2113
  deleteFacetValues: DeletionResponse;
1982
2114
  deleteFieldDefinition: FieldDefinitionGroup;
1983
2115
  deleteManageablePlugin?: Maybe<Scalars['Boolean']['output']>;
2116
+ deleteMarket: DeletionResponse;
2117
+ deleteMission: Mission;
1984
2118
  deleteOrderNote: DeletionResponse;
1985
2119
  deleteProduct: DeletionResponse;
1986
2120
  deleteProductOption: DeletionResponse;
@@ -1990,6 +2124,7 @@ export type Mutation = {
1990
2124
  deleteRole: DeletionResponse;
1991
2125
  deleteScheduledJob: ScheduledJob;
1992
2126
  deleteSeller: Seller;
2127
+ deleteShippingGatewayRoutingRule: Scalars['Boolean']['output'];
1993
2128
  deleteStockLocation: DeletionResponse;
1994
2129
  deleteSubscriptionVariantConfig: SubscriptionVariantConfig;
1995
2130
  deleteTaxCategory: DeletionResponse;
@@ -2041,6 +2176,7 @@ export type Mutation = {
2041
2176
  removeProductsFromChannel: Array<Product>;
2042
2177
  removePromotionFromChannel: Promotion;
2043
2178
  removeStockLocationFromChannel: StockLocation;
2179
+ reorderShippingGatewayRoutingRules: Array<ShippingGatewayRoutingRule>;
2044
2180
  reportDamagedStock: StockMovement;
2045
2181
  resendAdministratorVerification: Scalars['Boolean']['output'];
2046
2182
  reserveStock: StockMovement;
@@ -2051,6 +2187,7 @@ export type Mutation = {
2051
2187
  scaleDeployment: Deployment;
2052
2188
  selectShippingRate: Order;
2053
2189
  sendChatMessage: Array<ChatMessage>;
2190
+ sendMissionMessage: Mission;
2054
2191
  setBillingAddress: Order;
2055
2192
  setConfigurationItemValue?: Maybe<Scalars['Boolean']['output']>;
2056
2193
  setCustomerForDraftOrder: Order;
@@ -2058,6 +2195,7 @@ export type Mutation = {
2058
2195
  setDefaultToken: PaymentGatewayToken;
2059
2196
  setDeploymentEnv: Deployment;
2060
2197
  setManualShippingRate: Order;
2198
+ setProductVariantPrice: ProductVariantPrice;
2061
2199
  setSafetyStock: StockLevel;
2062
2200
  setShippingAddress: Order;
2063
2201
  settleRefund: Refund;
@@ -2086,6 +2224,7 @@ export type Mutation = {
2086
2224
  updateFacetValues: FacetValue;
2087
2225
  updateFieldDefinition: FieldDefinitionGroup;
2088
2226
  updateManageablePlugin: ManageablePlugin;
2227
+ updateMarket: Market;
2089
2228
  updateOnboardingProfile: OnboardingState;
2090
2229
  updateOrderNote: HistoryEntry;
2091
2230
  updatePluginConfiguration: ChannelPlugin;
@@ -2097,6 +2236,7 @@ export type Mutation = {
2097
2236
  updateRole: Role;
2098
2237
  updateScheduledJob: ScheduledJob;
2099
2238
  updateSeller: Seller;
2239
+ updateShippingGatewayRoutingRule: ShippingGatewayRoutingRule;
2100
2240
  updateShippingLabel: ShippingGatewayLabel;
2101
2241
  updateStockLocation: StockLocation;
2102
2242
  updateSubscriptionVariantConfig: SubscriptionVariantConfig;
@@ -2180,6 +2320,11 @@ export type MutationapproveDeviceCodeArgs = {
2180
2320
  };
2181
2321
 
2182
2322
 
2323
+ export type MutationarchiveChatSessionArgs = {
2324
+ sessionId: Scalars['ID']['input'];
2325
+ };
2326
+
2327
+
2183
2328
  export type MutationassignAssetsToChannelArgs = {
2184
2329
  input: AssignAssetsToChannelInput;
2185
2330
  };
@@ -2215,6 +2360,11 @@ export type MutationcancelFulfillmentRequestArgs = {
2215
2360
  };
2216
2361
 
2217
2362
 
2363
+ export type MutationcancelMissionArgs = {
2364
+ id: Scalars['ID']['input'];
2365
+ };
2366
+
2367
+
2218
2368
  export type MutationcancelOrderArgs = {
2219
2369
  input: CancelOrderInput;
2220
2370
  };
@@ -2366,6 +2516,16 @@ export type MutationcreateManageablePluginArgs = {
2366
2516
  };
2367
2517
 
2368
2518
 
2519
+ export type MutationcreateMarketArgs = {
2520
+ input: CreateMarketInput;
2521
+ };
2522
+
2523
+
2524
+ export type MutationcreateMissionArgs = {
2525
+ input: CreateMissionInput;
2526
+ };
2527
+
2528
+
2369
2529
  export type MutationcreatePaymentSessionArgs = {
2370
2530
  input: CreateSessionInput;
2371
2531
  };
@@ -2416,6 +2576,11 @@ export type MutationcreateSellerArgs = {
2416
2576
  };
2417
2577
 
2418
2578
 
2579
+ export type MutationcreateShippingGatewayRoutingRuleArgs = {
2580
+ input: CreateShippingGatewayRoutingRuleInput;
2581
+ };
2582
+
2583
+
2419
2584
  export type MutationcreateShippingLabelArgs = {
2420
2585
  input: CreateLabelServiceInput;
2421
2586
  };
@@ -2542,6 +2707,16 @@ export type MutationdeleteManageablePluginArgs = {
2542
2707
  };
2543
2708
 
2544
2709
 
2710
+ export type MutationdeleteMarketArgs = {
2711
+ id: Scalars['ID']['input'];
2712
+ };
2713
+
2714
+
2715
+ export type MutationdeleteMissionArgs = {
2716
+ id: Scalars['ID']['input'];
2717
+ };
2718
+
2719
+
2545
2720
  export type MutationdeleteOrderNoteArgs = {
2546
2721
  id: Scalars['ID']['input'];
2547
2722
  };
@@ -2587,6 +2762,11 @@ export type MutationdeleteSellerArgs = {
2587
2762
  };
2588
2763
 
2589
2764
 
2765
+ export type MutationdeleteShippingGatewayRoutingRuleArgs = {
2766
+ id: Scalars['ID']['input'];
2767
+ };
2768
+
2769
+
2590
2770
  export type MutationdeleteStockLocationArgs = {
2591
2771
  id: Scalars['ID']['input'];
2592
2772
  };
@@ -2832,6 +3012,11 @@ export type MutationremoveStockLocationFromChannelArgs = {
2832
3012
  };
2833
3013
 
2834
3014
 
3015
+ export type MutationreorderShippingGatewayRoutingRulesArgs = {
3016
+ input: ReorderShippingGatewayRoutingRulesInput;
3017
+ };
3018
+
3019
+
2835
3020
  export type MutationreportDamagedStockArgs = {
2836
3021
  input: ReportDamagedStockInput;
2837
3022
  };
@@ -2882,6 +3067,11 @@ export type MutationsendChatMessageArgs = {
2882
3067
  };
2883
3068
 
2884
3069
 
3070
+ export type MutationsendMissionMessageArgs = {
3071
+ input: SendMissionMessageInput;
3072
+ };
3073
+
3074
+
2885
3075
  export type MutationsetBillingAddressArgs = {
2886
3076
  input: SetBillingAddressInput;
2887
3077
  };
@@ -2917,6 +3107,11 @@ export type MutationsetManualShippingRateArgs = {
2917
3107
  };
2918
3108
 
2919
3109
 
3110
+ export type MutationsetProductVariantPriceArgs = {
3111
+ input: SetPriceInput;
3112
+ };
3113
+
3114
+
2920
3115
  export type MutationsetSafetyStockArgs = {
2921
3116
  input: SetSafetyStockInput;
2922
3117
  };
@@ -2937,6 +3132,11 @@ export type MutationsplitFulfillmentRequestArgs = {
2937
3132
  };
2938
3133
 
2939
3134
 
3135
+ export type MutationstartChatSessionArgs = {
3136
+ input?: InputMaybe<StartChatSessionInput>;
3137
+ };
3138
+
3139
+
2940
3140
  export type MutationtransitionFulfillmentToStateArgs = {
2941
3141
  input: TransitionFulfillmentToStateInput;
2942
3142
  };
@@ -3054,6 +3254,11 @@ export type MutationupdateManageablePluginArgs = {
3054
3254
  };
3055
3255
 
3056
3256
 
3257
+ export type MutationupdateMarketArgs = {
3258
+ input: UpdateMarketInput;
3259
+ };
3260
+
3261
+
3057
3262
  export type MutationupdateOnboardingProfileArgs = {
3058
3263
  input: UpdateOnboardingProfileInput;
3059
3264
  };
@@ -3109,6 +3314,11 @@ export type MutationupdateSellerArgs = {
3109
3314
  };
3110
3315
 
3111
3316
 
3317
+ export type MutationupdateShippingGatewayRoutingRuleArgs = {
3318
+ input: UpdateShippingGatewayRoutingRuleInput;
3319
+ };
3320
+
3321
+
3112
3322
  export type MutationupdateShippingLabelArgs = {
3113
3323
  input: UpdateShippingLabelInput;
3114
3324
  };
@@ -3518,6 +3728,15 @@ export type ProductVariantDimensions = {
3518
3728
  width?: Maybe<Scalars['Float']['output']>;
3519
3729
  };
3520
3730
 
3731
+ export type ProductVariantPrice = {
3732
+ createdAt: Scalars['DateTime']['output'];
3733
+ currencyCode: Scalars['String']['output'];
3734
+ id: Scalars['ID']['output'];
3735
+ price: Scalars['Int']['output'];
3736
+ updatedAt: Scalars['DateTime']['output'];
3737
+ variantId: Scalars['ID']['output'];
3738
+ };
3739
+
3521
3740
  export type ProductVariantSnapshot = {
3522
3741
  createdAt: Scalars['DateTime']['output'];
3523
3742
  id: Scalars['ID']['output'];
@@ -3620,7 +3839,9 @@ export type Query = {
3620
3839
  channelPlugins: Array<ChannelPlugin>;
3621
3840
  channelSettings: ChannelSettings;
3622
3841
  channels: ChannelList;
3842
+ chatHistory: Array<ChatHistoryMessage>;
3623
3843
  chatQueue: Array<ChatQueueItem>;
3844
+ chatSessions: ChatSessionSummaryList;
3624
3845
  collection?: Maybe<Collection>;
3625
3846
  collections: CollectionList;
3626
3847
  configurationItemValue?: Maybe<Scalars['JSON']['output']>;
@@ -3663,6 +3884,9 @@ export type Query = {
3663
3884
  manageablePluginsByTag: Array<ManageablePlugin>;
3664
3885
  marketingIdentity?: Maybe<MarketingIdentity>;
3665
3886
  marketingIdentityByCustomer?: Maybe<MarketingIdentity>;
3887
+ markets: MarketList;
3888
+ mission?: Maybe<Mission>;
3889
+ missions: MissionList;
3666
3890
  order?: Maybe<Order>;
3667
3891
  orderByCode?: Maybe<Order>;
3668
3892
  orderHistory: HistoryEntryList;
@@ -3693,6 +3917,7 @@ export type Query = {
3693
3917
  search: SearchResult;
3694
3918
  seller?: Maybe<Seller>;
3695
3919
  sellers: SellerList;
3920
+ shippingGatewayRoutingRules: Array<ShippingGatewayRoutingRule>;
3696
3921
  shippingLabels: Array<ShippingGatewayLabel>;
3697
3922
  shippingRateGroups: Array<ShippingGatewayRateGroup>;
3698
3923
  stockLocation?: Maybe<StockLocation>;
@@ -3789,11 +4014,21 @@ export type QuerychannelsArgs = {
3789
4014
  };
3790
4015
 
3791
4016
 
4017
+ export type QuerychatHistoryArgs = {
4018
+ input: ChatHistoryInput;
4019
+ };
4020
+
4021
+
3792
4022
  export type QuerychatQueueArgs = {
3793
4023
  sessionId: Scalars['ID']['input'];
3794
4024
  };
3795
4025
 
3796
4026
 
4027
+ export type QuerychatSessionsArgs = {
4028
+ input?: InputMaybe<ChatSessionsInput>;
4029
+ };
4030
+
4031
+
3797
4032
  export type QuerycollectionArgs = {
3798
4033
  id: Scalars['ID']['input'];
3799
4034
  };
@@ -3983,6 +4218,21 @@ export type QuerymarketingIdentityByCustomerArgs = {
3983
4218
  };
3984
4219
 
3985
4220
 
4221
+ export type QuerymarketsArgs = {
4222
+ options?: InputMaybe<ListQueryOptions>;
4223
+ };
4224
+
4225
+
4226
+ export type QuerymissionArgs = {
4227
+ id: Scalars['ID']['input'];
4228
+ };
4229
+
4230
+
4231
+ export type QuerymissionsArgs = {
4232
+ options?: InputMaybe<MissionListOptions>;
4233
+ };
4234
+
4235
+
3986
4236
  export type QueryorderArgs = {
3987
4237
  id: Scalars['ID']['input'];
3988
4238
  };
@@ -4118,6 +4368,11 @@ export type QuerysellersArgs = {
4118
4368
  };
4119
4369
 
4120
4370
 
4371
+ export type QueryshippingGatewayRoutingRulesArgs = {
4372
+ stockLocationId: Scalars['ID']['input'];
4373
+ };
4374
+
4375
+
4121
4376
  export type QueryshippingLabelsArgs = {
4122
4377
  orderId: Scalars['ID']['input'];
4123
4378
  };
@@ -4343,6 +4598,11 @@ export type RemoveStockLocationFromChannelInput = {
4343
4598
  stockLocationId: Scalars['ID']['input'];
4344
4599
  };
4345
4600
 
4601
+ export type ReorderShippingGatewayRoutingRulesInput = {
4602
+ ruleIds: Array<Scalars['ID']['input']>;
4603
+ stockLocationId: Scalars['ID']['input'];
4604
+ };
4605
+
4346
4606
  export type ReportDamagedStockInput = {
4347
4607
  note?: InputMaybe<Scalars['String']['input']>;
4348
4608
  quantity: Scalars['Int']['input'];
@@ -4582,6 +4842,11 @@ export type SendChatMessageInput = {
4582
4842
  sessionId: Scalars['String']['input'];
4583
4843
  };
4584
4844
 
4845
+ export type SendMissionMessageInput = {
4846
+ message: Scalars['String']['input'];
4847
+ missionId: Scalars['ID']['input'];
4848
+ };
4849
+
4585
4850
  export type SetBillingAddressInput = {
4586
4851
  address: CreateAddressInput;
4587
4852
  orderId: Scalars['ID']['input'];
@@ -4638,6 +4903,12 @@ export type SetMarketingIdentifiersResult = {
4638
4903
  rejected: Array<Scalars['String']['output']>;
4639
4904
  };
4640
4905
 
4906
+ export type SetPriceInput = {
4907
+ currencyCode: Scalars['String']['input'];
4908
+ price: Scalars['Int']['input'];
4909
+ variantId: Scalars['ID']['input'];
4910
+ };
4911
+
4641
4912
  export type SetSafetyStockInput = {
4642
4913
  safetyStock: Scalars['Int']['input'];
4643
4914
  stockLocationId: Scalars['ID']['input'];
@@ -4709,6 +4980,31 @@ export type ShippingGatewayRateGroupLine = {
4709
4980
  width?: Maybe<Scalars['Float']['output']>;
4710
4981
  };
4711
4982
 
4983
+ export type ShippingGatewayRoutingFlatRate = {
4984
+ amount: Scalars['Int']['output'];
4985
+ code: Scalars['String']['output'];
4986
+ createdAt: Scalars['DateTime']['output'];
4987
+ currencyCode: Scalars['String']['output'];
4988
+ estimatedDays?: Maybe<Scalars['Int']['output']>;
4989
+ id: Scalars['ID']['output'];
4990
+ name: Scalars['String']['output'];
4991
+ updatedAt: Scalars['DateTime']['output'];
4992
+ };
4993
+
4994
+ export type ShippingGatewayRoutingRule = {
4995
+ countries: Array<Country>;
4996
+ createdAt: Scalars['DateTime']['output'];
4997
+ enabled: Scalars['Boolean']['output'];
4998
+ flatRates: Array<ShippingGatewayRoutingFlatRate>;
4999
+ fulfillmentType: ShippingRoutingFulfillmentType;
5000
+ id: Scalars['ID']['output'];
5001
+ priority: Scalars['Int']['output'];
5002
+ providerCode?: Maybe<Scalars['String']['output']>;
5003
+ scopeType: ShippingRoutingScopeType;
5004
+ stockLocationId: Scalars['ID']['output'];
5005
+ updatedAt: Scalars['DateTime']['output'];
5006
+ };
5007
+
4712
5008
  export type ShippingLine = {
4713
5009
  adjustments: Array<Adjustment>;
4714
5010
  createdAt: Scalars['DateTime']['output'];
@@ -4726,6 +5022,23 @@ export type ShippingProvider = {
4726
5022
  pluginBacked: Scalars['Boolean']['output'];
4727
5023
  };
4728
5024
 
5025
+ export type ShippingRoutingFlatRateInput = {
5026
+ amount: Scalars['Int']['input'];
5027
+ code: Scalars['String']['input'];
5028
+ currencyCode: Scalars['String']['input'];
5029
+ estimatedDays?: InputMaybe<Scalars['Int']['input']>;
5030
+ name: Scalars['String']['input'];
5031
+ };
5032
+
5033
+ export type ShippingRoutingFulfillmentType =
5034
+ | 'MANUAL'
5035
+ | 'PROVIDER';
5036
+
5037
+ export type ShippingRoutingScopeType =
5038
+ | 'COUNTRIES'
5039
+ | 'DOMESTIC'
5040
+ | 'INTERNATIONAL';
5041
+
4729
5042
  export type ShopAddItemToOrderInput = {
4730
5043
  quantity: Scalars['Int']['input'];
4731
5044
  variantId: Scalars['ID']['input'];
@@ -4750,6 +5063,11 @@ export type SplitFulfillmentRequestLineInput = {
4750
5063
  quantity: Scalars['Int']['input'];
4751
5064
  };
4752
5065
 
5066
+ export type StartChatSessionInput = {
5067
+ origin?: InputMaybe<Scalars['String']['input']>;
5068
+ title?: InputMaybe<Scalars['String']['input']>;
5069
+ };
5070
+
4753
5071
  export type StockLevel = {
4754
5072
  id: Scalars['ID']['output'];
4755
5073
  safetyStock: Scalars['Int']['output'];
@@ -4834,6 +5152,7 @@ export type Subscription = {
4834
5152
  deploymentLogs: DeploymentLogEntry;
4835
5153
  hookDispatched: HookDispatchEvent;
4836
5154
  resumeChatSession: ChatMessage;
5155
+ workspaceReadiness: WorkspaceReadiness;
4837
5156
  };
4838
5157
 
4839
5158
 
@@ -5077,6 +5396,7 @@ export type UpdateCarrierInput = {
5077
5396
  };
5078
5397
 
5079
5398
  export type UpdateChannelInput = {
5399
+ availableCurrencyCodes?: InputMaybe<Array<Scalars['String']['input']>>;
5080
5400
  availableLanguageCodes?: InputMaybe<Array<Scalars['String']['input']>>;
5081
5401
  code?: InputMaybe<Scalars['String']['input']>;
5082
5402
  defaultCurrencyCode?: InputMaybe<Scalars['String']['input']>;
@@ -5097,6 +5417,7 @@ export type UpdateChannelPluginConfigInput = {
5097
5417
  };
5098
5418
 
5099
5419
  export type UpdateChannelSettingsInput = {
5420
+ autoCurrencyExchange?: InputMaybe<Scalars['Boolean']['input']>;
5100
5421
  chargeTaxOnShipping?: InputMaybe<Scalars['Boolean']['input']>;
5101
5422
  companyAddress?: InputMaybe<CompanyAddressInput>;
5102
5423
  defaultDeploymentProviderCode?: InputMaybe<Scalars['String']['input']>;
@@ -5104,7 +5425,8 @@ export type UpdateChannelSettingsInput = {
5104
5425
  defaultFulfillmentHandlerCode?: InputMaybe<Scalars['String']['input']>;
5105
5426
  defaultPaymentProviderCode?: InputMaybe<Scalars['String']['input']>;
5106
5427
  defaultWeightUnit?: InputMaybe<WeightUnit>;
5107
- manualShippingRates?: InputMaybe<Array<ManualShippingRateInput>>;
5428
+ fxMarkupPercent?: InputMaybe<Scalars['Float']['input']>;
5429
+ fxRoundingRule?: InputMaybe<Scalars['String']['input']>;
5108
5430
  requireCustomerForCheckout?: InputMaybe<Scalars['Boolean']['input']>;
5109
5431
  requiresShippingAddressValidation?: InputMaybe<Scalars['Boolean']['input']>;
5110
5432
  shopName?: InputMaybe<Scalars['String']['input']>;
@@ -5216,6 +5538,15 @@ export type UpdateManageablePluginInput = {
5216
5538
  toggable?: InputMaybe<Scalars['Boolean']['input']>;
5217
5539
  };
5218
5540
 
5541
+ export type UpdateMarketInput = {
5542
+ countryCodes?: InputMaybe<Array<Scalars['String']['input']>>;
5543
+ currencyCode?: InputMaybe<Scalars['String']['input']>;
5544
+ enabled?: InputMaybe<Scalars['Boolean']['input']>;
5545
+ id: Scalars['ID']['input'];
5546
+ languageCode?: InputMaybe<Scalars['String']['input']>;
5547
+ name?: InputMaybe<Scalars['String']['input']>;
5548
+ };
5549
+
5219
5550
  export type UpdateOnboardingProfileInput = {
5220
5551
  /**
5221
5552
  * When `true`, marks the profile step complete and advances
@@ -5336,6 +5667,17 @@ export type UpdateSellerInput = {
5336
5667
  name?: InputMaybe<Scalars['String']['input']>;
5337
5668
  };
5338
5669
 
5670
+ export type UpdateShippingGatewayRoutingRuleInput = {
5671
+ countryCodes?: InputMaybe<Array<Scalars['String']['input']>>;
5672
+ enabled?: InputMaybe<Scalars['Boolean']['input']>;
5673
+ flatRates?: InputMaybe<Array<ShippingRoutingFlatRateInput>>;
5674
+ fulfillmentType?: InputMaybe<ShippingRoutingFulfillmentType>;
5675
+ id: Scalars['ID']['input'];
5676
+ priority?: InputMaybe<Scalars['Int']['input']>;
5677
+ providerCode?: InputMaybe<Scalars['String']['input']>;
5678
+ scopeType?: InputMaybe<ShippingRoutingScopeType>;
5679
+ };
5680
+
5339
5681
  export type UpdateShippingLabelInput = {
5340
5682
  carrier?: InputMaybe<Scalars['String']['input']>;
5341
5683
  labelId: Scalars['ID']['input'];
@@ -5488,6 +5830,32 @@ export type WeightUnit =
5488
5830
  | 'lb'
5489
5831
  | 'oz';
5490
5832
 
5833
+ export type WorkspaceBindingStatus =
5834
+ | 'none'
5835
+ | 'ready'
5836
+ | 'warming';
5837
+
5838
+ export type WorkspacePodState =
5839
+ | 'degraded'
5840
+ | 'pending'
5841
+ | 'permanentlyFailed'
5842
+ | 'provisioning'
5843
+ | 'retrying'
5844
+ | 'running';
5845
+
5846
+ export type WorkspaceReadiness = {
5847
+ chatBindingState: WorkspaceBindingStatus;
5848
+ endpoint?: Maybe<Scalars['String']['output']>;
5849
+ podState?: Maybe<WorkspacePodState>;
5850
+ serverState?: Maybe<WorkspaceServerState>;
5851
+ workspaceId?: Maybe<Scalars['ID']['output']>;
5852
+ };
5853
+
5854
+ export type WorkspaceServerState =
5855
+ | 'SERVING'
5856
+ | 'STARTING'
5857
+ | 'UNRESPONSIVE';
5858
+
5491
5859
  export type WriteOffDamagedStockInput = {
5492
5860
  note?: InputMaybe<Scalars['String']['input']>;
5493
5861
  quantity: Scalars['Int']['input'];
@@ -7840,8 +8208,7 @@ export type UpdateChannelSettingsMutationVariables = Exact<{
7840
8208
  }>;
7841
8209
 
7842
8210
 
7843
- export type UpdateChannelSettingsMutation = { updateChannelSettings: (
7844
- Pick<
8211
+ export type UpdateChannelSettingsMutation = { updateChannelSettings: Pick<
7845
8212
  ChannelSettings,
7846
8213
  | 'id'
7847
8214
  | 'channelId'
@@ -7852,16 +8219,10 @@ export type UpdateChannelSettingsMutation = { updateChannelSettings: (
7852
8219
  | 'defaultPaymentProviderCode'
7853
8220
  | 'defaultWeightUnit'
7854
8221
  | 'defaultDimensionUnit'
7855
- >
7856
- & { manualShippingRates: Array<Pick<
7857
- ManualShippingRate,
7858
- | 'code'
7859
- | 'name'
7860
- | 'amount'
7861
- | 'currency'
7862
- | 'estimatedDays'
7863
- >> }
7864
- ) };
8222
+ | 'autoCurrencyExchange'
8223
+ | 'fxRoundingRule'
8224
+ | 'fxMarkupPercent'
8225
+ > };
7865
8226
 
7866
8227
  export type ProvisionChannelMutationVariables = Exact<{
7867
8228
  input: ProvisionChannelInput;
@@ -7890,8 +8251,7 @@ export type ProvisionChannelMutation = { provisionChannel: {
7890
8251
  | 'sellerId'
7891
8252
  | 'defaultTaxZoneId'
7892
8253
  >,
7893
- channelSettings: (
7894
- Pick<
8254
+ channelSettings: Pick<
7895
8255
  ChannelSettings,
7896
8256
  | 'id'
7897
8257
  | 'channelId'
@@ -7902,16 +8262,10 @@ export type ProvisionChannelMutation = { provisionChannel: {
7902
8262
  | 'defaultPaymentProviderCode'
7903
8263
  | 'defaultWeightUnit'
7904
8264
  | 'defaultDimensionUnit'
7905
- >
7906
- & { manualShippingRates: Array<Pick<
7907
- ManualShippingRate,
7908
- | 'code'
7909
- | 'name'
7910
- | 'amount'
7911
- | 'currency'
7912
- | 'estimatedDays'
7913
- >> }
7914
- ),
8265
+ | 'autoCurrencyExchange'
8266
+ | 'fxRoundingRule'
8267
+ | 'fxMarkupPercent'
8268
+ >,
7915
8269
  role: Pick<
7916
8270
  Role,
7917
8271
  | 'id'
@@ -7922,8 +8276,7 @@ export type ProvisionChannelMutation = { provisionChannel: {
7922
8276
  >,
7923
8277
  } };
7924
8278
 
7925
- export type ChannelSettingsFieldFragment = (
7926
- Pick<
8279
+ export type ChannelSettingsFieldFragment = Pick<
7927
8280
  ChannelSettings,
7928
8281
  | 'id'
7929
8282
  | 'channelId'
@@ -7934,22 +8287,15 @@ export type ChannelSettingsFieldFragment = (
7934
8287
  | 'defaultPaymentProviderCode'
7935
8288
  | 'defaultWeightUnit'
7936
8289
  | 'defaultDimensionUnit'
7937
- >
7938
- & { manualShippingRates: Array<Pick<
7939
- ManualShippingRate,
7940
- | 'code'
7941
- | 'name'
7942
- | 'amount'
7943
- | 'currency'
7944
- | 'estimatedDays'
7945
- >> }
7946
- );
8290
+ | 'autoCurrencyExchange'
8291
+ | 'fxRoundingRule'
8292
+ | 'fxMarkupPercent'
8293
+ >;
7947
8294
 
7948
8295
  export type ChannelSettingsQueryVariables = Exact<{ [key: string]: never; }>;
7949
8296
 
7950
8297
 
7951
- export type ChannelSettingsQuery = { channelSettings: (
7952
- Pick<
8298
+ export type ChannelSettingsQuery = { channelSettings: Pick<
7953
8299
  ChannelSettings,
7954
8300
  | 'id'
7955
8301
  | 'channelId'
@@ -7960,24 +8306,17 @@ export type ChannelSettingsQuery = { channelSettings: (
7960
8306
  | 'defaultPaymentProviderCode'
7961
8307
  | 'defaultWeightUnit'
7962
8308
  | 'defaultDimensionUnit'
7963
- >
7964
- & { manualShippingRates: Array<Pick<
7965
- ManualShippingRate,
7966
- | 'code'
7967
- | 'name'
7968
- | 'amount'
7969
- | 'currency'
7970
- | 'estimatedDays'
7971
- >> }
7972
- ) };
8309
+ | 'autoCurrencyExchange'
8310
+ | 'fxRoundingRule'
8311
+ | 'fxMarkupPercent'
8312
+ > };
7973
8313
 
7974
8314
  export type ChannelUpdateSettingsMutationVariables = Exact<{
7975
8315
  input: UpdateChannelSettingsInput;
7976
8316
  }>;
7977
8317
 
7978
8318
 
7979
- export type ChannelUpdateSettingsMutation = { updateChannelSettings: (
7980
- Pick<
8319
+ export type ChannelUpdateSettingsMutation = { updateChannelSettings: Pick<
7981
8320
  ChannelSettings,
7982
8321
  | 'id'
7983
8322
  | 'channelId'
@@ -7988,16 +8327,10 @@ export type ChannelUpdateSettingsMutation = { updateChannelSettings: (
7988
8327
  | 'defaultPaymentProviderCode'
7989
8328
  | 'defaultWeightUnit'
7990
8329
  | 'defaultDimensionUnit'
7991
- >
7992
- & { manualShippingRates: Array<Pick<
7993
- ManualShippingRate,
7994
- | 'code'
7995
- | 'name'
7996
- | 'amount'
7997
- | 'currency'
7998
- | 'estimatedDays'
7999
- >> }
8000
- ) };
8330
+ | 'autoCurrencyExchange'
8331
+ | 'fxRoundingRule'
8332
+ | 'fxMarkupPercent'
8333
+ > };
8001
8334
 
8002
8335
  export type ChatSessionFieldFragment = Pick<
8003
8336
  ChatSession,
@@ -8025,7 +8358,43 @@ export type ChatMessageFieldFragment = (
8025
8358
  }
8026
8359
  );
8027
8360
 
8028
- export type StartChatSessionMutationVariables = Exact<{ [key: string]: never; }>;
8361
+ export type ChatHistoryMessageFieldFragment = Pick<
8362
+ ChatHistoryMessage,
8363
+ | 'id'
8364
+ | 'role'
8365
+ | 'content'
8366
+ | 'toolUse'
8367
+ | 'toolResult'
8368
+ | 'seq'
8369
+ | 'eventId'
8370
+ | 'timestamp'
8371
+ >;
8372
+
8373
+ export type ChatSessionSummaryFieldFragment = Pick<
8374
+ ChatSessionSummary,
8375
+ | 'id'
8376
+ | 'agentSessionId'
8377
+ | 'title'
8378
+ | 'status'
8379
+ | 'origin'
8380
+ | 'messageCount'
8381
+ | 'lastActivityAt'
8382
+ | 'createdAt'
8383
+ | 'workspaceId'
8384
+ >;
8385
+
8386
+ export type WorkspaceReadinessFieldFragment = Pick<
8387
+ WorkspaceReadiness,
8388
+ | 'workspaceId'
8389
+ | 'podState'
8390
+ | 'serverState'
8391
+ | 'chatBindingState'
8392
+ | 'endpoint'
8393
+ >;
8394
+
8395
+ export type StartChatSessionMutationVariables = Exact<{
8396
+ input?: InputMaybe<StartChatSessionInput>;
8397
+ }>;
8029
8398
 
8030
8399
 
8031
8400
  export type StartChatSessionMutation = { startChatSession: Pick<
@@ -8127,6 +8496,63 @@ export type ChatQueueQueryVariables = Exact<{
8127
8496
 
8128
8497
  export type ChatQueueQuery = { chatQueue: Array<Pick<ChatQueueItem, 'id' | 'kind' | 'content'>> };
8129
8498
 
8499
+ export type ChatHistoryQueryVariables = Exact<{
8500
+ input: ChatHistoryInput;
8501
+ }>;
8502
+
8503
+
8504
+ export type ChatHistoryQuery = { chatHistory: Array<Pick<
8505
+ ChatHistoryMessage,
8506
+ | 'id'
8507
+ | 'role'
8508
+ | 'content'
8509
+ | 'toolUse'
8510
+ | 'toolResult'
8511
+ | 'seq'
8512
+ | 'eventId'
8513
+ | 'timestamp'
8514
+ >> };
8515
+
8516
+ export type ChatSessionsQueryVariables = Exact<{
8517
+ input?: InputMaybe<ChatSessionsInput>;
8518
+ }>;
8519
+
8520
+
8521
+ export type ChatSessionsQuery = { chatSessions: (
8522
+ Pick<ChatSessionSummaryList, 'totalItems'>
8523
+ & { items: Array<Pick<
8524
+ ChatSessionSummary,
8525
+ | 'id'
8526
+ | 'agentSessionId'
8527
+ | 'title'
8528
+ | 'status'
8529
+ | 'origin'
8530
+ | 'messageCount'
8531
+ | 'lastActivityAt'
8532
+ | 'createdAt'
8533
+ | 'workspaceId'
8534
+ >> }
8535
+ ) };
8536
+
8537
+ export type ArchiveChatSessionMutationVariables = Exact<{
8538
+ sessionId: Scalars['ID']['input'];
8539
+ }>;
8540
+
8541
+
8542
+ export type ArchiveChatSessionMutation = Pick<Mutation, 'archiveChatSession'>;
8543
+
8544
+ export type WorkspaceReadinessSubscriptionVariables = Exact<{ [key: string]: never; }>;
8545
+
8546
+
8547
+ export type WorkspaceReadinessSubscription = { workspaceReadiness: Pick<
8548
+ WorkspaceReadiness,
8549
+ | 'workspaceId'
8550
+ | 'podState'
8551
+ | 'serverState'
8552
+ | 'chatBindingState'
8553
+ | 'endpoint'
8554
+ > };
8555
+
8130
8556
  export type CollectionTranslationFieldFragment = Pick<
8131
8557
  CollectionTranslation,
8132
8558
  | 'id'
@@ -10152,32 +10578,141 @@ export type AdminRespondToHookDispatchMutationVariables = Exact<{
10152
10578
 
10153
10579
  export type AdminRespondToHookDispatchMutation = Pick<Mutation, 'respondToHookDispatch'>;
10154
10580
 
10155
- export type HookListenSubscriptionVariables = Exact<{
10156
- hookPoints: Array<Scalars['String']['input']> | Scalars['String']['input'];
10581
+ export type HookListenSubscriptionVariables = Exact<{
10582
+ hookPoints: Array<Scalars['String']['input']> | Scalars['String']['input'];
10583
+ }>;
10584
+
10585
+
10586
+ export type HookListenSubscription = { hookDispatched: Pick<
10587
+ HookDispatchEvent,
10588
+ | 'id'
10589
+ | 'hookPoint'
10590
+ | 'transactionToken'
10591
+ | 'args'
10592
+ > };
10593
+
10594
+ export type HookRespondMutationVariables = Exact<{
10595
+ input: RespondToHookDispatchInput;
10596
+ }>;
10597
+
10598
+
10599
+ export type HookRespondMutation = Pick<Mutation, 'respondToHookDispatch'>;
10600
+
10601
+ export type EmitMutationVariables = Exact<{
10602
+ input: EmitCustomEventInput;
10603
+ }>;
10604
+
10605
+
10606
+ export type EmitMutation = Pick<Mutation, 'emit'>;
10607
+
10608
+ export type MarketFieldFragment = (
10609
+ Pick<
10610
+ Market,
10611
+ | 'id'
10612
+ | 'createdAt'
10613
+ | 'updatedAt'
10614
+ | 'name'
10615
+ | 'enabled'
10616
+ | 'currencyCode'
10617
+ | 'languageCode'
10618
+ | 'channelId'
10619
+ >
10620
+ & { countries: Array<Pick<
10621
+ Country,
10622
+ | 'id'
10623
+ | 'code'
10624
+ | 'name'
10625
+ | 'enabled'
10626
+ >> }
10627
+ );
10628
+
10629
+ export type MarketsQueryVariables = Exact<{
10630
+ options?: InputMaybe<ListQueryOptions>;
10631
+ }>;
10632
+
10633
+
10634
+ export type MarketsQuery = { markets: (
10635
+ Pick<MarketList, 'totalItems'>
10636
+ & { items: Array<(
10637
+ Pick<
10638
+ Market,
10639
+ | 'id'
10640
+ | 'createdAt'
10641
+ | 'updatedAt'
10642
+ | 'name'
10643
+ | 'enabled'
10644
+ | 'currencyCode'
10645
+ | 'languageCode'
10646
+ | 'channelId'
10647
+ >
10648
+ & { countries: Array<Pick<
10649
+ Country,
10650
+ | 'id'
10651
+ | 'code'
10652
+ | 'name'
10653
+ | 'enabled'
10654
+ >> }
10655
+ )> }
10656
+ ) };
10657
+
10658
+ export type CreateMarketMutationVariables = Exact<{
10659
+ input: CreateMarketInput;
10660
+ }>;
10661
+
10662
+
10663
+ export type CreateMarketMutation = { createMarket: (
10664
+ Pick<
10665
+ Market,
10666
+ | 'id'
10667
+ | 'createdAt'
10668
+ | 'updatedAt'
10669
+ | 'name'
10670
+ | 'enabled'
10671
+ | 'currencyCode'
10672
+ | 'languageCode'
10673
+ | 'channelId'
10674
+ >
10675
+ & { countries: Array<Pick<
10676
+ Country,
10677
+ | 'id'
10678
+ | 'code'
10679
+ | 'name'
10680
+ | 'enabled'
10681
+ >> }
10682
+ ) };
10683
+
10684
+ export type UpdateMarketMutationVariables = Exact<{
10685
+ input: UpdateMarketInput;
10157
10686
  }>;
10158
10687
 
10159
10688
 
10160
- export type HookListenSubscription = { hookDispatched: Pick<
10161
- HookDispatchEvent,
10689
+ export type UpdateMarketMutation = { updateMarket: (
10690
+ Pick<
10691
+ Market,
10162
10692
  | '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'>;
10693
+ | 'createdAt'
10694
+ | 'updatedAt'
10695
+ | 'name'
10696
+ | 'enabled'
10697
+ | 'currencyCode'
10698
+ | 'languageCode'
10699
+ | 'channelId'
10700
+ >
10701
+ & { countries: Array<Pick<
10702
+ Country,
10703
+ | 'id'
10704
+ | 'code'
10705
+ | 'name'
10706
+ | 'enabled'
10707
+ >> }
10708
+ ) };
10174
10709
 
10175
- export type EmitMutationVariables = Exact<{
10176
- input: EmitCustomEventInput;
10710
+ export type DeleteMarketMutationVariables = Exact<{
10711
+ id: Scalars['ID']['input'];
10177
10712
  }>;
10178
10713
 
10179
10714
 
10180
- export type EmitMutation = Pick<Mutation, 'emit'>;
10715
+ export type DeleteMarketMutation = { deleteMarket: Pick<DeletionResponse, 'result' | 'message'> };
10181
10716
 
10182
10717
  export type AdminAttributionByOrderQueryVariables = Exact<{
10183
10718
  input: AttributionByOrderInput;
@@ -10418,6 +10953,181 @@ export type AdminMarketingIdentityByCustomerQuery = { marketingIdentityByCustome
10418
10953
  >> }
10419
10954
  )> };
10420
10955
 
10956
+ export type MissionRepoRefFieldFragment = Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>;
10957
+
10958
+ export type MissionFieldFragment = (
10959
+ Pick<
10960
+ Mission,
10961
+ | 'id'
10962
+ | 'status'
10963
+ | 'title'
10964
+ | 'model'
10965
+ | 'branch'
10966
+ | 'prUrl'
10967
+ | 'podRef'
10968
+ | 'costCents'
10969
+ | 'channelId'
10970
+ | 'administratorId'
10971
+ | 'workspaceId'
10972
+ | 'createdAt'
10973
+ | 'updatedAt'
10974
+ >
10975
+ & { repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>> }
10976
+ );
10977
+
10978
+ export type AdminMissionsQueryVariables = Exact<{
10979
+ options?: InputMaybe<MissionListOptions>;
10980
+ }>;
10981
+
10982
+
10983
+ export type AdminMissionsQuery = { missions: (
10984
+ Pick<MissionList, 'totalItems'>
10985
+ & { items: Array<(
10986
+ Pick<
10987
+ Mission,
10988
+ | 'id'
10989
+ | 'status'
10990
+ | 'title'
10991
+ | 'model'
10992
+ | 'branch'
10993
+ | 'prUrl'
10994
+ | 'podRef'
10995
+ | 'costCents'
10996
+ | 'channelId'
10997
+ | 'administratorId'
10998
+ | 'workspaceId'
10999
+ | 'createdAt'
11000
+ | 'updatedAt'
11001
+ >
11002
+ & { repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>> }
11003
+ )> }
11004
+ ) };
11005
+
11006
+ export type AdminMissionQueryVariables = Exact<{
11007
+ id: Scalars['ID']['input'];
11008
+ }>;
11009
+
11010
+
11011
+ export type AdminMissionQuery = { mission?: Maybe<(
11012
+ Pick<
11013
+ Mission,
11014
+ | 'id'
11015
+ | 'status'
11016
+ | 'title'
11017
+ | 'model'
11018
+ | 'branch'
11019
+ | 'prUrl'
11020
+ | 'podRef'
11021
+ | 'costCents'
11022
+ | 'channelId'
11023
+ | 'administratorId'
11024
+ | 'workspaceId'
11025
+ | 'createdAt'
11026
+ | 'updatedAt'
11027
+ >
11028
+ & { repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>> }
11029
+ )> };
11030
+
11031
+ export type AdminCreateMissionMutationVariables = Exact<{
11032
+ input: CreateMissionInput;
11033
+ }>;
11034
+
11035
+
11036
+ export type AdminCreateMissionMutation = { createMission: (
11037
+ Pick<
11038
+ Mission,
11039
+ | 'id'
11040
+ | 'status'
11041
+ | 'title'
11042
+ | 'model'
11043
+ | 'branch'
11044
+ | 'prUrl'
11045
+ | 'podRef'
11046
+ | 'costCents'
11047
+ | 'channelId'
11048
+ | 'administratorId'
11049
+ | 'workspaceId'
11050
+ | 'createdAt'
11051
+ | 'updatedAt'
11052
+ >
11053
+ & { repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>> }
11054
+ ) };
11055
+
11056
+ export type AdminCancelMissionMutationVariables = Exact<{
11057
+ id: Scalars['ID']['input'];
11058
+ }>;
11059
+
11060
+
11061
+ export type AdminCancelMissionMutation = { cancelMission: (
11062
+ Pick<
11063
+ Mission,
11064
+ | 'id'
11065
+ | 'status'
11066
+ | 'title'
11067
+ | 'model'
11068
+ | 'branch'
11069
+ | 'prUrl'
11070
+ | 'podRef'
11071
+ | 'costCents'
11072
+ | 'channelId'
11073
+ | 'administratorId'
11074
+ | 'workspaceId'
11075
+ | 'createdAt'
11076
+ | 'updatedAt'
11077
+ >
11078
+ & { repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>> }
11079
+ ) };
11080
+
11081
+ export type AdminDeleteMissionMutationVariables = Exact<{
11082
+ id: Scalars['ID']['input'];
11083
+ }>;
11084
+
11085
+
11086
+ export type AdminDeleteMissionMutation = { deleteMission: (
11087
+ Pick<
11088
+ Mission,
11089
+ | 'id'
11090
+ | 'status'
11091
+ | 'title'
11092
+ | 'model'
11093
+ | 'branch'
11094
+ | 'prUrl'
11095
+ | 'podRef'
11096
+ | 'costCents'
11097
+ | 'channelId'
11098
+ | 'administratorId'
11099
+ | 'workspaceId'
11100
+ | 'createdAt'
11101
+ | 'updatedAt'
11102
+ >
11103
+ & { repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>> }
11104
+ ) };
11105
+
11106
+ export type AdminSendMissionMessageMutationVariables = Exact<{
11107
+ input: SendMissionMessageInput;
11108
+ }>;
11109
+
11110
+
11111
+ export type AdminSendMissionMessageMutation = { sendMissionMessage: (
11112
+ Pick<
11113
+ Mission,
11114
+ | 'id'
11115
+ | 'status'
11116
+ | 'title'
11117
+ | 'model'
11118
+ | 'branch'
11119
+ | 'prUrl'
11120
+ | 'podRef'
11121
+ | 'costCents'
11122
+ | 'channelId'
11123
+ | 'administratorId'
11124
+ | 'workspaceId'
11125
+ | 'createdAt'
11126
+ | 'updatedAt'
11127
+ >
11128
+ & { repos: Array<Pick<MissionRepoRef, 'owner' | 'name' | 'branch'>> }
11129
+ ) };
11130
+
10421
11131
  export type ActiveOnboardingQueryVariables = Exact<{ [key: string]: never; }>;
10422
11132
 
10423
11133
 
@@ -23456,6 +24166,16 @@ export type ProductVariantFieldFragment = (
23456
24166
  }
23457
24167
  );
23458
24168
 
24169
+ export type ProductVariantPriceFieldFragment = Pick<
24170
+ ProductVariantPrice,
24171
+ | 'id'
24172
+ | 'createdAt'
24173
+ | 'updatedAt'
24174
+ | 'price'
24175
+ | 'currencyCode'
24176
+ | 'variantId'
24177
+ >;
24178
+
23459
24179
  export type AdminProductVariantQueryVariables = Exact<{
23460
24180
  id: Scalars['ID']['input'];
23461
24181
  }>;
@@ -23767,6 +24487,21 @@ export type DeleteProductVariantsMutationVariables = Exact<{
23767
24487
 
23768
24488
  export type DeleteProductVariantsMutation = { deleteProductVariants: Pick<DeletionResponse, 'result' | 'message'> };
23769
24489
 
24490
+ export type SetProductVariantPriceMutationVariables = Exact<{
24491
+ input: SetPriceInput;
24492
+ }>;
24493
+
24494
+
24495
+ export type SetProductVariantPriceMutation = { setProductVariantPrice: Pick<
24496
+ ProductVariantPrice,
24497
+ | 'id'
24498
+ | 'createdAt'
24499
+ | 'updatedAt'
24500
+ | 'price'
24501
+ | 'currencyCode'
24502
+ | 'variantId'
24503
+ > };
24504
+
23770
24505
  export type ProductTranslationFieldFragment = Pick<
23771
24506
  ProductTranslation,
23772
24507
  | 'id'
@@ -25938,6 +26673,31 @@ export type ShippingCarrierFieldFragment = Pick<
25938
26673
  | 'enabled'
25939
26674
  >;
25940
26675
 
26676
+ export type ShippingGatewayRoutingRuleFieldFragment = (
26677
+ Pick<
26678
+ ShippingGatewayRoutingRule,
26679
+ | 'id'
26680
+ | 'stockLocationId'
26681
+ | 'scopeType'
26682
+ | 'fulfillmentType'
26683
+ | 'providerCode'
26684
+ | 'priority'
26685
+ | 'enabled'
26686
+ >
26687
+ & {
26688
+ countries: Array<Pick<Country, 'id' | 'code' | 'name'>>,
26689
+ flatRates: Array<Pick<
26690
+ ShippingGatewayRoutingFlatRate,
26691
+ | 'id'
26692
+ | 'code'
26693
+ | 'name'
26694
+ | 'amount'
26695
+ | 'currencyCode'
26696
+ | 'estimatedDays'
26697
+ >>,
26698
+ }
26699
+ );
26700
+
25941
26701
  export type ShippingLabelsQueryVariables = Exact<{
25942
26702
  orderId: Scalars['ID']['input'];
25943
26703
  }>;
@@ -26935,6 +27695,133 @@ export type AvailableShippingProvidersQueryVariables = Exact<{ [key: string]: ne
26935
27695
 
26936
27696
  export type AvailableShippingProvidersQuery = { availableShippingProviders: Array<Pick<ShippingProvider, 'code' | 'name' | 'pluginBacked'>> };
26937
27697
 
27698
+ export type ShippingGatewayRoutingRulesQueryVariables = Exact<{
27699
+ stockLocationId: Scalars['ID']['input'];
27700
+ }>;
27701
+
27702
+
27703
+ export type ShippingGatewayRoutingRulesQuery = { shippingGatewayRoutingRules: Array<(
27704
+ Pick<
27705
+ ShippingGatewayRoutingRule,
27706
+ | 'id'
27707
+ | 'stockLocationId'
27708
+ | 'scopeType'
27709
+ | 'fulfillmentType'
27710
+ | 'providerCode'
27711
+ | 'priority'
27712
+ | 'enabled'
27713
+ >
27714
+ & {
27715
+ countries: Array<Pick<Country, 'id' | 'code' | 'name'>>,
27716
+ flatRates: Array<Pick<
27717
+ ShippingGatewayRoutingFlatRate,
27718
+ | 'id'
27719
+ | 'code'
27720
+ | 'name'
27721
+ | 'amount'
27722
+ | 'currencyCode'
27723
+ | 'estimatedDays'
27724
+ >>,
27725
+ }
27726
+ )> };
27727
+
27728
+ export type CreateShippingGatewayRoutingRuleMutationVariables = Exact<{
27729
+ input: CreateShippingGatewayRoutingRuleInput;
27730
+ }>;
27731
+
27732
+
27733
+ export type CreateShippingGatewayRoutingRuleMutation = { createShippingGatewayRoutingRule: (
27734
+ Pick<
27735
+ ShippingGatewayRoutingRule,
27736
+ | 'id'
27737
+ | 'stockLocationId'
27738
+ | 'scopeType'
27739
+ | 'fulfillmentType'
27740
+ | 'providerCode'
27741
+ | 'priority'
27742
+ | 'enabled'
27743
+ >
27744
+ & {
27745
+ countries: Array<Pick<Country, 'id' | 'code' | 'name'>>,
27746
+ flatRates: Array<Pick<
27747
+ ShippingGatewayRoutingFlatRate,
27748
+ | 'id'
27749
+ | 'code'
27750
+ | 'name'
27751
+ | 'amount'
27752
+ | 'currencyCode'
27753
+ | 'estimatedDays'
27754
+ >>,
27755
+ }
27756
+ ) };
27757
+
27758
+ export type UpdateShippingGatewayRoutingRuleMutationVariables = Exact<{
27759
+ input: UpdateShippingGatewayRoutingRuleInput;
27760
+ }>;
27761
+
27762
+
27763
+ export type UpdateShippingGatewayRoutingRuleMutation = { updateShippingGatewayRoutingRule: (
27764
+ Pick<
27765
+ ShippingGatewayRoutingRule,
27766
+ | 'id'
27767
+ | 'stockLocationId'
27768
+ | 'scopeType'
27769
+ | 'fulfillmentType'
27770
+ | 'providerCode'
27771
+ | 'priority'
27772
+ | 'enabled'
27773
+ >
27774
+ & {
27775
+ countries: Array<Pick<Country, 'id' | 'code' | 'name'>>,
27776
+ flatRates: Array<Pick<
27777
+ ShippingGatewayRoutingFlatRate,
27778
+ | 'id'
27779
+ | 'code'
27780
+ | 'name'
27781
+ | 'amount'
27782
+ | 'currencyCode'
27783
+ | 'estimatedDays'
27784
+ >>,
27785
+ }
27786
+ ) };
27787
+
27788
+ export type DeleteShippingGatewayRoutingRuleMutationVariables = Exact<{
27789
+ id: Scalars['ID']['input'];
27790
+ }>;
27791
+
27792
+
27793
+ export type DeleteShippingGatewayRoutingRuleMutation = Pick<Mutation, 'deleteShippingGatewayRoutingRule'>;
27794
+
27795
+ export type ReorderShippingGatewayRoutingRulesMutationVariables = Exact<{
27796
+ input: ReorderShippingGatewayRoutingRulesInput;
27797
+ }>;
27798
+
27799
+
27800
+ export type ReorderShippingGatewayRoutingRulesMutation = { reorderShippingGatewayRoutingRules: Array<(
27801
+ Pick<
27802
+ ShippingGatewayRoutingRule,
27803
+ | 'id'
27804
+ | 'stockLocationId'
27805
+ | 'scopeType'
27806
+ | 'fulfillmentType'
27807
+ | 'providerCode'
27808
+ | 'priority'
27809
+ | 'enabled'
27810
+ >
27811
+ & {
27812
+ countries: Array<Pick<Country, 'id' | 'code' | 'name'>>,
27813
+ flatRates: Array<Pick<
27814
+ ShippingGatewayRoutingFlatRate,
27815
+ | 'id'
27816
+ | 'code'
27817
+ | 'name'
27818
+ | 'amount'
27819
+ | 'currencyCode'
27820
+ | 'estimatedDays'
27821
+ >>,
27822
+ }
27823
+ )> };
27824
+
26938
27825
  export type StockLocationFieldFragment = (
26939
27826
  Pick<
26940
27827
  StockLocation,