@forgecart/sdk 1.2.6 → 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 (43) hide show
  1. package/README.md +84 -1
  2. package/dist/admin-types.generated.d.ts +593 -33
  3. package/dist/admin.d.ts +4 -0
  4. package/dist/admin.generated.d.ts +82 -26
  5. package/dist/admin.generated.js +122 -2
  6. package/dist/admin.js +49 -43
  7. package/dist/client.generated.d.ts +40 -7
  8. package/dist/client.generated.js +162 -87
  9. package/dist/documents.generated.d.ts +38 -8
  10. package/dist/documents.generated.js +594 -36
  11. package/dist/index.d.ts +1 -1
  12. package/dist/index.js +1 -3
  13. package/dist/nest.generated.d.ts +13 -0
  14. package/dist/nest.generated.js +92 -0
  15. package/dist/shop-types.generated.d.ts +200 -13
  16. package/dist/shop.d.ts +2 -0
  17. package/dist/shop.generated.d.ts +13 -4
  18. package/dist/shop.generated.js +19 -1
  19. package/dist/shop.js +17 -15
  20. package/package.json +21 -4
  21. package/src/admin-types.generated.d.ts +10013 -0
  22. package/src/admin-types.generated.ts +1210 -88
  23. package/src/admin.generated.d.ts +806 -0
  24. package/src/admin.generated.ts +151 -27
  25. package/src/admin.ts +5 -1
  26. package/src/client.generated.d.ts +249 -0
  27. package/src/client.generated.ts +188 -39
  28. package/src/documents.generated.d.ts +473 -0
  29. package/src/documents.generated.ts +615 -27
  30. package/src/error-utils.d.ts +25 -0
  31. package/src/hook-event-map.generated.d.ts +243 -0
  32. package/src/index.d.ts +22 -0
  33. package/src/index.ts +1 -1
  34. package/src/nest.generated.ts +45 -0
  35. package/src/sdk-hook-subscription.generated.d.ts +29 -0
  36. package/src/sdk-plugin.generated.d.ts +38 -0
  37. package/src/sdk-types.generated.d.ts +56 -0
  38. package/src/shop-types.generated.d.ts +4786 -0
  39. package/src/shop-types.generated.ts +271 -13
  40. package/src/shop.generated.d.ts +213 -0
  41. package/src/shop.generated.ts +22 -5
  42. package/src/shop.ts +3 -1
  43. package/src/upload.d.ts +14 -0
@@ -595,6 +595,7 @@ export type Channel = {
595
595
  description: Scalars['String']['output'];
596
596
  id: Scalars['ID']['output'];
597
597
  outOfStockThreshold: Scalars['Int']['output'];
598
+ previewUrl: Scalars['String']['output'];
598
599
  pricesIncludeTax: Scalars['Boolean']['output'];
599
600
  secret?: Maybe<Scalars['String']['output']>;
600
601
  seller?: Maybe<Seller>;
@@ -630,6 +631,7 @@ export type ChannelPlugin = {
630
631
  };
631
632
 
632
633
  export type ChannelSettings = {
634
+ autoCurrencyExchange: Scalars['Boolean']['output'];
633
635
  channelId: Scalars['ID']['output'];
634
636
  chargeTaxOnShipping: Scalars['Boolean']['output'];
635
637
  companyAddress?: Maybe<CompanyAddress>;
@@ -638,14 +640,27 @@ export type ChannelSettings = {
638
640
  defaultFulfillmentHandlerCode?: Maybe<Scalars['String']['output']>;
639
641
  defaultPaymentProviderCode?: Maybe<Scalars['String']['output']>;
640
642
  defaultWeightUnit?: Maybe<WeightUnit>;
643
+ fxMarkupPercent: Scalars['Float']['output'];
644
+ fxRoundingRule: Scalars['String']['output'];
641
645
  id: Scalars['ID']['output'];
642
- manualShippingRates: Array<ManualShippingRate>;
643
646
  requireCustomerForCheckout: Scalars['Boolean']['output'];
644
647
  requiresShippingAddressValidation: Scalars['Boolean']['output'];
645
648
  shopName?: Maybe<Scalars['String']['output']>;
646
649
  taxOriginScope: Scalars['String']['output'];
647
650
  };
648
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 ChatSessionsInput = {
659
+ includeArchived?: InputMaybe<Scalars['Boolean']['input']>;
660
+ skip?: InputMaybe<Scalars['Int']['input']>;
661
+ take?: InputMaybe<Scalars['Int']['input']>;
662
+ };
663
+
649
664
  export type Collection = {
650
665
  createdAt: Scalars['DateTime']['output'];
651
666
  description?: Maybe<Scalars['String']['output']>;
@@ -794,6 +809,7 @@ export type CreateCarrierInput = {
794
809
  };
795
810
 
796
811
  export type CreateChannelInput = {
812
+ availableCurrencyCodes?: InputMaybe<Array<Scalars['String']['input']>>;
797
813
  availableLanguageCodes?: InputMaybe<Array<Scalars['String']['input']>>;
798
814
  code: Scalars['String']['input'];
799
815
  defaultCurrencyCode: Scalars['String']['input'];
@@ -923,6 +939,22 @@ export type CreateManageablePluginInput = {
923
939
  toggable?: InputMaybe<Scalars['Boolean']['input']>;
924
940
  };
925
941
 
942
+ export type CreateMarketInput = {
943
+ countryCodes: Array<Scalars['String']['input']>;
944
+ currencyCode: Scalars['String']['input'];
945
+ enabled?: InputMaybe<Scalars['Boolean']['input']>;
946
+ languageCode?: InputMaybe<Scalars['String']['input']>;
947
+ name: Scalars['String']['input'];
948
+ };
949
+
950
+ export type CreateMissionInput = {
951
+ model: Scalars['String']['input'];
952
+ prompt: Scalars['String']['input'];
953
+ repos?: InputMaybe<Array<MissionRepoInput>>;
954
+ title?: InputMaybe<Scalars['String']['input']>;
955
+ workspaceId: Scalars['ID']['input'];
956
+ };
957
+
926
958
  export type CreateProductInput = {
927
959
  assetIds?: InputMaybe<Array<Scalars['ID']['input']>>;
928
960
  enabled?: InputMaybe<Scalars['Boolean']['input']>;
@@ -1037,6 +1069,17 @@ export type CreateSessionInput = {
1037
1069
  tokenId?: InputMaybe<Scalars['ID']['input']>;
1038
1070
  };
1039
1071
 
1072
+ export type CreateShippingGatewayRoutingRuleInput = {
1073
+ countryCodes?: InputMaybe<Array<Scalars['String']['input']>>;
1074
+ enabled?: InputMaybe<Scalars['Boolean']['input']>;
1075
+ flatRates?: InputMaybe<Array<ShippingRoutingFlatRateInput>>;
1076
+ fulfillmentType: ShippingRoutingFulfillmentType;
1077
+ priority?: InputMaybe<Scalars['Int']['input']>;
1078
+ providerCode?: InputMaybe<Scalars['String']['input']>;
1079
+ scopeType: ShippingRoutingScopeType;
1080
+ stockLocationId: Scalars['ID']['input'];
1081
+ };
1082
+
1040
1083
  export type CreateShopSubscriptionInput = {
1041
1084
  defaultTokenId?: InputMaybe<Scalars['ID']['input']>;
1042
1085
  items: Array<CreateSubscriptionItemInput>;
@@ -1334,6 +1377,12 @@ export type EmitCustomEventInput = {
1334
1377
  payload?: InputMaybe<Scalars['JSON']['input']>;
1335
1378
  };
1336
1379
 
1380
+ export type EnqueueChatMessageInput = {
1381
+ interrupt: Scalars['Boolean']['input'];
1382
+ message: Scalars['String']['input'];
1383
+ sessionId: Scalars['String']['input'];
1384
+ };
1385
+
1337
1386
  export type Entry = {
1338
1387
  createdAt: Scalars['DateTime']['output'];
1339
1388
  fields: Array<AcfFieldValueUnion>;
@@ -1701,20 +1750,21 @@ export type ManageablePluginConfigItemTranslation = {
1701
1750
  name: Scalars['String']['output'];
1702
1751
  };
1703
1752
 
1704
- export type ManualShippingRate = {
1705
- amount: Scalars['Int']['output'];
1706
- code: Scalars['String']['output'];
1707
- currency: Scalars['String']['output'];
1708
- estimatedDays?: Maybe<Scalars['Int']['output']>;
1753
+ export type Market = {
1754
+ channelId: Scalars['ID']['output'];
1755
+ countries: Array<Country>;
1756
+ createdAt: Scalars['DateTime']['output'];
1757
+ currencyCode: Scalars['String']['output'];
1758
+ enabled: Scalars['Boolean']['output'];
1759
+ id: Scalars['ID']['output'];
1760
+ languageCode?: Maybe<Scalars['String']['output']>;
1709
1761
  name: Scalars['String']['output'];
1762
+ updatedAt: Scalars['DateTime']['output'];
1710
1763
  };
1711
1764
 
1712
- export type ManualShippingRateInput = {
1713
- amount: Scalars['Int']['input'];
1714
- code: Scalars['String']['input'];
1715
- currency: Scalars['String']['input'];
1716
- estimatedDays?: InputMaybe<Scalars['Int']['input']>;
1717
- name: Scalars['String']['input'];
1765
+ export type MarketList = {
1766
+ items: Array<Market>;
1767
+ totalItems: Scalars['Int']['output'];
1718
1768
  };
1719
1769
 
1720
1770
  export type MarketingAttribution = {
@@ -1816,6 +1866,59 @@ export type MergeFulfillmentRequestInput = {
1816
1866
  requestIdB: Scalars['ID']['input'];
1817
1867
  };
1818
1868
 
1869
+ export type Mission = {
1870
+ administratorId: Scalars['ID']['output'];
1871
+ branch?: Maybe<Scalars['String']['output']>;
1872
+ channelId: Scalars['ID']['output'];
1873
+ costCents?: Maybe<Scalars['Int']['output']>;
1874
+ createdAt: Scalars['DateTime']['output'];
1875
+ id: Scalars['ID']['output'];
1876
+ model: Scalars['String']['output'];
1877
+ podRef?: Maybe<Scalars['String']['output']>;
1878
+ prUrl?: Maybe<Scalars['String']['output']>;
1879
+ repos: Array<MissionRepoRef>;
1880
+ status: MissionStatus;
1881
+ title?: Maybe<Scalars['String']['output']>;
1882
+ updatedAt: Scalars['DateTime']['output'];
1883
+ workspaceId: Scalars['ID']['output'];
1884
+ };
1885
+
1886
+ export type MissionList = {
1887
+ items: Array<Mission>;
1888
+ totalItems: Scalars['Int']['output'];
1889
+ };
1890
+
1891
+ export type MissionListOptions = {
1892
+ skip?: InputMaybe<Scalars['Int']['input']>;
1893
+ sort?: InputMaybe<MissionSortParameter>;
1894
+ take?: InputMaybe<Scalars['Int']['input']>;
1895
+ };
1896
+
1897
+ export type MissionRepoInput = {
1898
+ branch: Scalars['String']['input'];
1899
+ name: Scalars['String']['input'];
1900
+ owner: Scalars['String']['input'];
1901
+ };
1902
+
1903
+ export type MissionRepoRef = {
1904
+ branch: Scalars['String']['output'];
1905
+ name: Scalars['String']['output'];
1906
+ owner: Scalars['String']['output'];
1907
+ };
1908
+
1909
+ export type MissionSortParameter = {
1910
+ createdAt?: InputMaybe<SortOrder>;
1911
+ updatedAt?: InputMaybe<SortOrder>;
1912
+ };
1913
+
1914
+ export type MissionStatus =
1915
+ | 'AWAITING_USER'
1916
+ | 'COMPLETED'
1917
+ | 'FAILED'
1918
+ | 'INTERRUPTED'
1919
+ | 'PENDING'
1920
+ | 'RUNNING';
1921
+
1819
1922
  export type ModifyOrderAddItemInput = {
1820
1923
  productVariantId: Scalars['ID']['input'];
1821
1924
  quantity: Scalars['Int']['input'];
@@ -1887,8 +1990,10 @@ export type Mutation = {
1887
1990
  resumeSubscription: BillingSubscription;
1888
1991
  saveToken: PaymentGatewayToken;
1889
1992
  selectShippingRate: Order;
1993
+ setCurrency: Channel;
1890
1994
  setCustomerForOrder: Order;
1891
1995
  setDefaultToken: PaymentGatewayToken;
1996
+ setLanguage: Channel;
1892
1997
  setMarketingIdentifiers: SetMarketingIdentifiersResult;
1893
1998
  setOrderBillingAddress: Order;
1894
1999
  setOrderShippingAddress: Order;
@@ -2060,6 +2165,11 @@ export type MutationselectShippingRateArgs = {
2060
2165
  };
2061
2166
 
2062
2167
 
2168
+ export type MutationsetCurrencyArgs = {
2169
+ currencyCode: Scalars['String']['input'];
2170
+ };
2171
+
2172
+
2063
2173
  export type MutationsetCustomerForOrderArgs = {
2064
2174
  input: SetCustomerInput;
2065
2175
  };
@@ -2070,6 +2180,11 @@ export type MutationsetDefaultTokenArgs = {
2070
2180
  };
2071
2181
 
2072
2182
 
2183
+ export type MutationsetLanguageArgs = {
2184
+ languageCode: Scalars['String']['input'];
2185
+ };
2186
+
2187
+
2073
2188
  export type MutationsetMarketingIdentifiersArgs = {
2074
2189
  input: SetMarketingIdentifiersInput;
2075
2190
  };
@@ -2494,6 +2609,15 @@ export type ProductVariantDimensions = {
2494
2609
  width?: Maybe<Scalars['Float']['output']>;
2495
2610
  };
2496
2611
 
2612
+ export type ProductVariantPrice = {
2613
+ createdAt: Scalars['DateTime']['output'];
2614
+ currencyCode: Scalars['String']['output'];
2615
+ id: Scalars['ID']['output'];
2616
+ price: Scalars['Int']['output'];
2617
+ updatedAt: Scalars['DateTime']['output'];
2618
+ variantId: Scalars['ID']['output'];
2619
+ };
2620
+
2497
2621
  export type ProductVariantSnapshot = {
2498
2622
  createdAt: Scalars['DateTime']['output'];
2499
2623
  id: Scalars['ID']['output'];
@@ -2840,6 +2964,11 @@ export type RemoveStockLocationFromChannelInput = {
2840
2964
  stockLocationId: Scalars['ID']['input'];
2841
2965
  };
2842
2966
 
2967
+ export type ReorderShippingGatewayRoutingRulesInput = {
2968
+ ruleIds: Array<Scalars['ID']['input']>;
2969
+ stockLocationId: Scalars['ID']['input'];
2970
+ };
2971
+
2843
2972
  export type ReportDamagedStockInput = {
2844
2973
  note?: InputMaybe<Scalars['String']['input']>;
2845
2974
  quantity: Scalars['Int']['input'];
@@ -2887,6 +3016,11 @@ export type RespondToHookDispatchInput = {
2887
3016
  subscriberId: Scalars['String']['input'];
2888
3017
  };
2889
3018
 
3019
+ export type ResumeChatSessionInput = {
3020
+ afterEventId: Scalars['Int']['input'];
3021
+ sessionId: Scalars['String']['input'];
3022
+ };
3023
+
2890
3024
  export type Role = {
2891
3025
  code: Scalars['String']['output'];
2892
3026
  createdAt: Scalars['DateTime']['output'];
@@ -3074,6 +3208,11 @@ export type SendChatMessageInput = {
3074
3208
  sessionId: Scalars['String']['input'];
3075
3209
  };
3076
3210
 
3211
+ export type SendMissionMessageInput = {
3212
+ message: Scalars['String']['input'];
3213
+ missionId: Scalars['ID']['input'];
3214
+ };
3215
+
3077
3216
  export type SetBillingAddressInput = {
3078
3217
  address: CreateAddressInput;
3079
3218
  orderId: Scalars['ID']['input'];
@@ -3130,6 +3269,12 @@ export type SetMarketingIdentifiersResult = {
3130
3269
  rejected: Array<Scalars['String']['output']>;
3131
3270
  };
3132
3271
 
3272
+ export type SetPriceInput = {
3273
+ currencyCode: Scalars['String']['input'];
3274
+ price: Scalars['Int']['input'];
3275
+ variantId: Scalars['ID']['input'];
3276
+ };
3277
+
3133
3278
  export type SetSafetyStockInput = {
3134
3279
  safetyStock: Scalars['Int']['input'];
3135
3280
  stockLocationId: Scalars['ID']['input'];
@@ -3201,6 +3346,31 @@ export type ShippingGatewayRateGroupLine = {
3201
3346
  width?: Maybe<Scalars['Float']['output']>;
3202
3347
  };
3203
3348
 
3349
+ export type ShippingGatewayRoutingFlatRate = {
3350
+ amount: Scalars['Int']['output'];
3351
+ code: Scalars['String']['output'];
3352
+ createdAt: Scalars['DateTime']['output'];
3353
+ currencyCode: Scalars['String']['output'];
3354
+ estimatedDays?: Maybe<Scalars['Int']['output']>;
3355
+ id: Scalars['ID']['output'];
3356
+ name: Scalars['String']['output'];
3357
+ updatedAt: Scalars['DateTime']['output'];
3358
+ };
3359
+
3360
+ export type ShippingGatewayRoutingRule = {
3361
+ countries: Array<Country>;
3362
+ createdAt: Scalars['DateTime']['output'];
3363
+ enabled: Scalars['Boolean']['output'];
3364
+ flatRates: Array<ShippingGatewayRoutingFlatRate>;
3365
+ fulfillmentType: ShippingRoutingFulfillmentType;
3366
+ id: Scalars['ID']['output'];
3367
+ priority: Scalars['Int']['output'];
3368
+ providerCode?: Maybe<Scalars['String']['output']>;
3369
+ scopeType: ShippingRoutingScopeType;
3370
+ stockLocationId: Scalars['ID']['output'];
3371
+ updatedAt: Scalars['DateTime']['output'];
3372
+ };
3373
+
3204
3374
  export type ShippingLine = {
3205
3375
  adjustments: Array<Adjustment>;
3206
3376
  createdAt: Scalars['DateTime']['output'];
@@ -3218,6 +3388,23 @@ export type ShippingProvider = {
3218
3388
  pluginBacked: Scalars['Boolean']['output'];
3219
3389
  };
3220
3390
 
3391
+ export type ShippingRoutingFlatRateInput = {
3392
+ amount: Scalars['Int']['input'];
3393
+ code: Scalars['String']['input'];
3394
+ currencyCode: Scalars['String']['input'];
3395
+ estimatedDays?: InputMaybe<Scalars['Int']['input']>;
3396
+ name: Scalars['String']['input'];
3397
+ };
3398
+
3399
+ export type ShippingRoutingFulfillmentType =
3400
+ | 'MANUAL'
3401
+ | 'PROVIDER';
3402
+
3403
+ export type ShippingRoutingScopeType =
3404
+ | 'COUNTRIES'
3405
+ | 'DOMESTIC'
3406
+ | 'INTERNATIONAL';
3407
+
3221
3408
  export type ShopAddItemToOrderInput = {
3222
3409
  quantity: Scalars['Int']['input'];
3223
3410
  variantId: Scalars['ID']['input'];
@@ -3242,6 +3429,11 @@ export type SplitFulfillmentRequestLineInput = {
3242
3429
  quantity: Scalars['Int']['input'];
3243
3430
  };
3244
3431
 
3432
+ export type StartChatSessionInput = {
3433
+ origin?: InputMaybe<Scalars['String']['input']>;
3434
+ title?: InputMaybe<Scalars['String']['input']>;
3435
+ };
3436
+
3245
3437
  export type StockLevel = {
3246
3438
  id: Scalars['ID']['output'];
3247
3439
  safetyStock: Scalars['Int']['output'];
@@ -3540,6 +3732,7 @@ export type UpdateCarrierInput = {
3540
3732
  };
3541
3733
 
3542
3734
  export type UpdateChannelInput = {
3735
+ availableCurrencyCodes?: InputMaybe<Array<Scalars['String']['input']>>;
3543
3736
  availableLanguageCodes?: InputMaybe<Array<Scalars['String']['input']>>;
3544
3737
  code?: InputMaybe<Scalars['String']['input']>;
3545
3738
  defaultCurrencyCode?: InputMaybe<Scalars['String']['input']>;
@@ -3560,6 +3753,7 @@ export type UpdateChannelPluginConfigInput = {
3560
3753
  };
3561
3754
 
3562
3755
  export type UpdateChannelSettingsInput = {
3756
+ autoCurrencyExchange?: InputMaybe<Scalars['Boolean']['input']>;
3563
3757
  chargeTaxOnShipping?: InputMaybe<Scalars['Boolean']['input']>;
3564
3758
  companyAddress?: InputMaybe<CompanyAddressInput>;
3565
3759
  defaultDeploymentProviderCode?: InputMaybe<Scalars['String']['input']>;
@@ -3567,7 +3761,8 @@ export type UpdateChannelSettingsInput = {
3567
3761
  defaultFulfillmentHandlerCode?: InputMaybe<Scalars['String']['input']>;
3568
3762
  defaultPaymentProviderCode?: InputMaybe<Scalars['String']['input']>;
3569
3763
  defaultWeightUnit?: InputMaybe<WeightUnit>;
3570
- manualShippingRates?: InputMaybe<Array<ManualShippingRateInput>>;
3764
+ fxMarkupPercent?: InputMaybe<Scalars['Float']['input']>;
3765
+ fxRoundingRule?: InputMaybe<Scalars['String']['input']>;
3571
3766
  requireCustomerForCheckout?: InputMaybe<Scalars['Boolean']['input']>;
3572
3767
  requiresShippingAddressValidation?: InputMaybe<Scalars['Boolean']['input']>;
3573
3768
  shopName?: InputMaybe<Scalars['String']['input']>;
@@ -3679,6 +3874,15 @@ export type UpdateManageablePluginInput = {
3679
3874
  toggable?: InputMaybe<Scalars['Boolean']['input']>;
3680
3875
  };
3681
3876
 
3877
+ export type UpdateMarketInput = {
3878
+ countryCodes?: InputMaybe<Array<Scalars['String']['input']>>;
3879
+ currencyCode?: InputMaybe<Scalars['String']['input']>;
3880
+ enabled?: InputMaybe<Scalars['Boolean']['input']>;
3881
+ id: Scalars['ID']['input'];
3882
+ languageCode?: InputMaybe<Scalars['String']['input']>;
3883
+ name?: InputMaybe<Scalars['String']['input']>;
3884
+ };
3885
+
3682
3886
  export type UpdateOnboardingProfileInput = {
3683
3887
  /**
3684
3888
  * When `true`, marks the profile step complete and advances
@@ -3799,6 +4003,17 @@ export type UpdateSellerInput = {
3799
4003
  name?: InputMaybe<Scalars['String']['input']>;
3800
4004
  };
3801
4005
 
4006
+ export type UpdateShippingGatewayRoutingRuleInput = {
4007
+ countryCodes?: InputMaybe<Array<Scalars['String']['input']>>;
4008
+ enabled?: InputMaybe<Scalars['Boolean']['input']>;
4009
+ flatRates?: InputMaybe<Array<ShippingRoutingFlatRateInput>>;
4010
+ fulfillmentType?: InputMaybe<ShippingRoutingFulfillmentType>;
4011
+ id: Scalars['ID']['input'];
4012
+ priority?: InputMaybe<Scalars['Int']['input']>;
4013
+ providerCode?: InputMaybe<Scalars['String']['input']>;
4014
+ scopeType?: InputMaybe<ShippingRoutingScopeType>;
4015
+ };
4016
+
3802
4017
  export type UpdateShippingLabelInput = {
3803
4018
  carrier?: InputMaybe<Scalars['String']['input']>;
3804
4019
  labelId: Scalars['ID']['input'];
@@ -7345,6 +7560,49 @@ export type RemoveItemsFromOrderMutation = { removeItemsFromOrder: {
7345
7560
  errors: Array<Pick<BatchOrderLineError, 'index' | 'errorCode' | 'variables'>>,
7346
7561
  } };
7347
7562
 
7563
+ export type ShopChannelFieldFragment = Pick<
7564
+ Channel,
7565
+ | 'id'
7566
+ | 'code'
7567
+ | 'defaultLanguageCode'
7568
+ | 'defaultCurrencyCode'
7569
+ | 'availableLanguageCodes'
7570
+ | 'availableCurrencyCodes'
7571
+ | 'pricesIncludeTax'
7572
+ >;
7573
+
7574
+ export type SetCurrencyMutationVariables = Exact<{
7575
+ currencyCode: Scalars['String']['input'];
7576
+ }>;
7577
+
7578
+
7579
+ export type SetCurrencyMutation = { setCurrency: Pick<
7580
+ Channel,
7581
+ | 'id'
7582
+ | 'code'
7583
+ | 'defaultLanguageCode'
7584
+ | 'defaultCurrencyCode'
7585
+ | 'availableLanguageCodes'
7586
+ | 'availableCurrencyCodes'
7587
+ | 'pricesIncludeTax'
7588
+ > };
7589
+
7590
+ export type SetLanguageMutationVariables = Exact<{
7591
+ languageCode: Scalars['String']['input'];
7592
+ }>;
7593
+
7594
+
7595
+ export type SetLanguageMutation = { setLanguage: Pick<
7596
+ Channel,
7597
+ | 'id'
7598
+ | 'code'
7599
+ | 'defaultLanguageCode'
7600
+ | 'defaultCurrencyCode'
7601
+ | 'availableLanguageCodes'
7602
+ | 'availableCurrencyCodes'
7603
+ | 'pricesIncludeTax'
7604
+ > };
7605
+
7348
7606
  export type SetOrderShippingAddressMutationVariables = Exact<{
7349
7607
  input: CreateAddressInput;
7350
7608
  }>;
@@ -0,0 +1,213 @@
1
+ /**
2
+ * AUTO-GENERATED FILE — DO NOT EDIT
3
+ *
4
+ * This file was generated by @forgecart/client-sdk-generators.
5
+ * Any manual changes will be overwritten on the next generation run.
6
+ */
7
+ import type { BaseGraphQLClient } from './client.generated';
8
+ import * as Types from './shop-types.generated';
9
+ import { Observable } from 'rxjs';
10
+ import { QueryObservable } from './client.generated';
11
+ export declare class AcfCategory {
12
+ private readonly client;
13
+ constructor(client: BaseGraphQLClient);
14
+ shopFieldDefinition(variables: Types.ShopFieldDefinitionQueryVariables): QueryObservable<Types.ShopFieldDefinitionQuery>;
15
+ shopEntry(variables: Types.ShopEntryQueryVariables): QueryObservable<Types.ShopEntryQuery>;
16
+ shopEntries(variables: Types.ShopEntriesQueryVariables): QueryObservable<Types.ShopEntriesQuery>;
17
+ }
18
+ export declare class AuthCategory {
19
+ private readonly client;
20
+ constructor(client: BaseGraphQLClient);
21
+ externalAuthenticationMethods(): QueryObservable<Types.ExternalAuthenticationMethodsQuery>;
22
+ login(variables: Types.LoginMutationVariables): QueryObservable<Types.LoginMutation>;
23
+ logout(): QueryObservable<Types.LogoutMutation>;
24
+ authenticateWithExternalStrategy(variables: Types.AuthenticateWithExternalStrategyMutationVariables): QueryObservable<Types.AuthenticateWithExternalStrategyMutation>;
25
+ unlinkExternalAuthenticationMethod(variables: Types.UnlinkExternalAuthenticationMethodMutationVariables): QueryObservable<Types.UnlinkExternalAuthenticationMethodMutation>;
26
+ updateUserPreferences(variables: Types.UpdateUserPreferencesMutationVariables): QueryObservable<Types.UpdateUserPreferencesMutation>;
27
+ }
28
+ export declare class CartCategory {
29
+ private readonly client;
30
+ constructor(client: BaseGraphQLClient);
31
+ addItemToOrder(variables: Types.AddItemToOrderMutationVariables): QueryObservable<Types.AddItemToOrderMutation>;
32
+ adjustOrderLine(variables: Types.AdjustOrderLineMutationVariables): QueryObservable<Types.AdjustOrderLineMutation>;
33
+ removeOrderLine(variables: Types.RemoveOrderLineMutationVariables): QueryObservable<Types.RemoveOrderLineMutation>;
34
+ removeAllOrderLines(): QueryObservable<Types.RemoveAllOrderLinesMutation>;
35
+ applyCouponCode(variables: Types.ApplyCouponCodeMutationVariables): QueryObservable<Types.ApplyCouponCodeMutation>;
36
+ removeCouponCode(variables: Types.RemoveCouponCodeMutationVariables): QueryObservable<Types.RemoveCouponCodeMutation>;
37
+ setCustomerForOrder(variables: Types.SetCustomerForOrderMutationVariables): QueryObservable<Types.SetCustomerForOrderMutation>;
38
+ addItemsToOrder(variables: Types.AddItemsToOrderMutationVariables): QueryObservable<Types.AddItemsToOrderMutation>;
39
+ adjustOrderLines(variables: Types.AdjustOrderLinesMutationVariables): QueryObservable<Types.AdjustOrderLinesMutation>;
40
+ removeItemsFromOrder(variables: Types.RemoveItemsFromOrderMutationVariables): QueryObservable<Types.RemoveItemsFromOrderMutation>;
41
+ }
42
+ export declare class CheckoutCategory {
43
+ private readonly client;
44
+ constructor(client: BaseGraphQLClient);
45
+ setOrderShippingAddress(variables: Types.SetOrderShippingAddressMutationVariables): QueryObservable<Types.SetOrderShippingAddressMutation>;
46
+ setOrderBillingAddress(variables: Types.SetOrderBillingAddressMutationVariables): QueryObservable<Types.SetOrderBillingAddressMutation>;
47
+ transitionOrderToState(variables: Types.TransitionOrderToStateMutationVariables): QueryObservable<Types.TransitionOrderToStateMutation>;
48
+ }
49
+ export declare class CollectionCategory {
50
+ private readonly client;
51
+ constructor(client: BaseGraphQLClient);
52
+ shopCollection(variables: Types.ShopCollectionQueryVariables): QueryObservable<Types.ShopCollectionQuery>;
53
+ shopCollections(variables: Types.ShopCollectionsQueryVariables): QueryObservable<Types.ShopCollectionsQuery>;
54
+ }
55
+ export declare class CustomerCategory {
56
+ private readonly client;
57
+ constructor(client: BaseGraphQLClient);
58
+ activeCustomer(): QueryObservable<Types.ActiveCustomerQuery>;
59
+ activeCustomerAddresses(): QueryObservable<Types.ActiveCustomerAddressesQuery>;
60
+ shopUpdateCustomer(variables: Types.ShopUpdateCustomerMutationVariables): QueryObservable<Types.ShopUpdateCustomerMutation>;
61
+ registerCustomerAccount(variables: Types.RegisterCustomerAccountMutationVariables): QueryObservable<Types.RegisterCustomerAccountMutation>;
62
+ verifyCustomerAccount(variables: Types.VerifyCustomerAccountMutationVariables): QueryObservable<Types.VerifyCustomerAccountMutation>;
63
+ requestPasswordReset(variables: Types.RequestPasswordResetMutationVariables): QueryObservable<Types.RequestPasswordResetMutation>;
64
+ resetPassword(variables: Types.ResetPasswordMutationVariables): QueryObservable<Types.ResetPasswordMutation>;
65
+ createCustomerAddress(variables: Types.CreateCustomerAddressMutationVariables): QueryObservable<Types.CreateCustomerAddressMutation>;
66
+ updateCustomerAddress(variables: Types.UpdateCustomerAddressMutationVariables): QueryObservable<Types.UpdateCustomerAddressMutation>;
67
+ deleteCustomerAddress(variables: Types.DeleteCustomerAddressMutationVariables): QueryObservable<Types.DeleteCustomerAddressMutation>;
68
+ updateCustomerPassword(variables: Types.UpdateCustomerPasswordMutationVariables): QueryObservable<Types.UpdateCustomerPasswordMutation>;
69
+ requestUpdateCustomerEmailAddress(variables: Types.RequestUpdateCustomerEmailAddressMutationVariables): QueryObservable<Types.RequestUpdateCustomerEmailAddressMutation>;
70
+ updateCustomerEmailAddress(variables: Types.UpdateCustomerEmailAddressMutationVariables): QueryObservable<Types.UpdateCustomerEmailAddressMutation>;
71
+ requestCustomerReVerification(): QueryObservable<Types.RequestCustomerReVerificationMutation>;
72
+ verifyCustomerAccountWithPassword(variables: Types.VerifyCustomerAccountWithPasswordMutationVariables): QueryObservable<Types.VerifyCustomerAccountWithPasswordMutation>;
73
+ }
74
+ export declare class FacetCategory {
75
+ private readonly client;
76
+ constructor(client: BaseGraphQLClient);
77
+ shopFacet(variables: Types.ShopFacetQueryVariables): QueryObservable<Types.ShopFacetQuery>;
78
+ shopFacets(variables: Types.ShopFacetsQueryVariables): QueryObservable<Types.ShopFacetsQuery>;
79
+ }
80
+ export declare class HookDispatchCategory {
81
+ private readonly client;
82
+ constructor(client: BaseGraphQLClient);
83
+ shopHookDispatched(variables: Types.ShopHookDispatchedSubscriptionVariables): Observable<Types.ShopHookDispatchedSubscription>;
84
+ respondToHookDispatch(variables: Types.RespondToHookDispatchMutationVariables): QueryObservable<Types.RespondToHookDispatchMutation>;
85
+ }
86
+ export declare class HookCategory {
87
+ private readonly client;
88
+ constructor(client: BaseGraphQLClient);
89
+ hookListen(variables: Types.HookListenSubscriptionVariables): Observable<Types.HookListenSubscription>;
90
+ hookRespond(variables: Types.HookRespondMutationVariables): QueryObservable<Types.HookRespondMutation>;
91
+ }
92
+ export declare class MarketingEventCategory {
93
+ private readonly client;
94
+ constructor(client: BaseGraphQLClient);
95
+ shopTrackEvent(variables: Types.ShopTrackEventMutationVariables): QueryObservable<Types.ShopTrackEventMutation>;
96
+ }
97
+ export declare class MarketingIdentityCategory {
98
+ private readonly client;
99
+ constructor(client: BaseGraphQLClient);
100
+ shopResolveMarketingIdentity(): QueryObservable<Types.ShopResolveMarketingIdentityMutation>;
101
+ shopSetMarketingIdentifiers(variables: Types.ShopSetMarketingIdentifiersMutationVariables): QueryObservable<Types.ShopSetMarketingIdentifiersMutation>;
102
+ shopLinkMarketingEmail(variables: Types.ShopLinkMarketingEmailMutationVariables): QueryObservable<Types.ShopLinkMarketingEmailMutation>;
103
+ }
104
+ export declare class OrderCategory {
105
+ private readonly client;
106
+ constructor(client: BaseGraphQLClient);
107
+ activeOrder(): QueryObservable<Types.ActiveOrderQuery>;
108
+ shopOrderByCode(variables: Types.ShopOrderByCodeQueryVariables): QueryObservable<Types.ShopOrderByCodeQuery>;
109
+ nextOrderStates(): QueryObservable<Types.NextOrderStatesQuery>;
110
+ shopOrderNotes(variables: Types.ShopOrderNotesQueryVariables): QueryObservable<Types.ShopOrderNotesQuery>;
111
+ shopActiveOrderUpdated(): Observable<Types.ShopActiveOrderUpdatedSubscription>;
112
+ }
113
+ export declare class PaymentCategory {
114
+ private readonly client;
115
+ constructor(client: BaseGraphQLClient);
116
+ shopEligiblePaymentProviders(variables: Types.ShopEligiblePaymentProvidersQueryVariables): QueryObservable<Types.ShopEligiblePaymentProvidersQuery>;
117
+ getTokens(): QueryObservable<Types.GetTokensQuery>;
118
+ createPaymentSession(variables: Types.CreatePaymentSessionMutationVariables): QueryObservable<Types.CreatePaymentSessionMutation>;
119
+ confirmPaymentSession(variables: Types.ConfirmPaymentSessionMutationVariables): QueryObservable<Types.ConfirmPaymentSessionMutation>;
120
+ cancelPaymentSession(variables: Types.CancelPaymentSessionMutationVariables): QueryObservable<Types.CancelPaymentSessionMutation>;
121
+ deleteToken(variables: Types.DeleteTokenMutationVariables): QueryObservable<Types.DeleteTokenMutation>;
122
+ setDefaultToken(variables: Types.SetDefaultTokenMutationVariables): QueryObservable<Types.SetDefaultTokenMutation>;
123
+ saveToken(variables: Types.SaveTokenMutationVariables): QueryObservable<Types.SaveTokenMutation>;
124
+ getTokenTemplate(): QueryObservable<Types.GetTokenTemplateQuery>;
125
+ getSessionTemplate(variables: Types.GetSessionTemplateQueryVariables): QueryObservable<Types.GetSessionTemplateQuery>;
126
+ getSessionVariables(variables: Types.GetSessionVariablesQueryVariables): QueryObservable<Types.GetSessionVariablesQuery>;
127
+ }
128
+ export declare class ProductCategory {
129
+ private readonly client;
130
+ constructor(client: BaseGraphQLClient);
131
+ shopProduct(variables: Types.ShopProductQueryVariables): QueryObservable<Types.ShopProductQuery>;
132
+ shopProducts(variables: Types.ShopProductsQueryVariables): QueryObservable<Types.ShopProductsQuery>;
133
+ shopProductOptionGroups(variables: Types.ShopProductOptionGroupsQueryVariables): QueryObservable<Types.ShopProductOptionGroupsQuery>;
134
+ }
135
+ export declare class SearchCategory {
136
+ private readonly client;
137
+ constructor(client: BaseGraphQLClient);
138
+ shopSearch(variables: Types.ShopSearchQueryVariables): QueryObservable<Types.ShopSearchQuery>;
139
+ suggest(variables: Types.SuggestQueryVariables): QueryObservable<Types.SuggestQuery>;
140
+ }
141
+ export declare class ShippingCategory {
142
+ private readonly client;
143
+ constructor(client: BaseGraphQLClient);
144
+ shippingRateGroups(): QueryObservable<Types.ShippingRateGroupsQuery>;
145
+ selectShippingRate(variables: Types.SelectShippingRateMutationVariables): QueryObservable<Types.SelectShippingRateMutation>;
146
+ }
147
+ export declare class SubscriptionCategory {
148
+ private readonly client;
149
+ constructor(client: BaseGraphQLClient);
150
+ mySubscriptions(): QueryObservable<Types.MySubscriptionsQuery>;
151
+ mySubscription(variables: Types.MySubscriptionQueryVariables): QueryObservable<Types.MySubscriptionQuery>;
152
+ shopCreateSubscription(variables: Types.ShopCreateSubscriptionMutationVariables): QueryObservable<Types.ShopCreateSubscriptionMutation>;
153
+ shopCancelSubscription(variables: Types.ShopCancelSubscriptionMutationVariables): QueryObservable<Types.ShopCancelSubscriptionMutation>;
154
+ shopPauseSubscription(variables: Types.ShopPauseSubscriptionMutationVariables): QueryObservable<Types.ShopPauseSubscriptionMutation>;
155
+ shopResumeSubscription(variables: Types.ShopResumeSubscriptionMutationVariables): QueryObservable<Types.ShopResumeSubscriptionMutation>;
156
+ shopChangeSubscriptionPlan(variables: Types.ShopChangeSubscriptionPlanMutationVariables): QueryObservable<Types.ShopChangeSubscriptionPlanMutation>;
157
+ shopChangeSubscriptionQuantity(variables: Types.ShopChangeSubscriptionQuantityMutationVariables): QueryObservable<Types.ShopChangeSubscriptionQuantityMutation>;
158
+ reportUsage(variables: Types.ReportUsageMutationVariables): QueryObservable<Types.ReportUsageMutation>;
159
+ }
160
+ export declare class ShopNamespace {
161
+ private readonly client;
162
+ private readonly _acf;
163
+ private readonly _auth;
164
+ private readonly _cart;
165
+ private readonly _checkout;
166
+ private readonly _collection;
167
+ private readonly _customer;
168
+ private readonly _facet;
169
+ private readonly _hookDispatch;
170
+ private readonly _hook;
171
+ private readonly _marketingEvent;
172
+ private readonly _marketingIdentity;
173
+ private readonly _order;
174
+ private readonly _payment;
175
+ private readonly _product;
176
+ private readonly _search;
177
+ private readonly _shipping;
178
+ private readonly _subscription;
179
+ constructor(client: BaseGraphQLClient);
180
+ get acf(): AcfCategory;
181
+ get auth(): AuthCategory;
182
+ get cart(): CartCategory;
183
+ get checkout(): CheckoutCategory;
184
+ get collection(): CollectionCategory;
185
+ get customer(): CustomerCategory;
186
+ get facet(): FacetCategory;
187
+ get hookDispatch(): HookDispatchCategory;
188
+ get hook(): HookCategory;
189
+ get marketingEvent(): MarketingEventCategory;
190
+ get marketingIdentity(): MarketingIdentityCategory;
191
+ get order(): OrderCategory;
192
+ get payment(): PaymentCategory;
193
+ get product(): ProductCategory;
194
+ get search(): SearchCategory;
195
+ get shipping(): ShippingCategory;
196
+ get subscription(): SubscriptionCategory;
197
+ }
198
+ export type Address = Types.ShopCustomerAddressFieldFragment;
199
+ export type Adjustment = Types.ShopAdjustmentFieldFragment;
200
+ export type BillingSubscription = Types.ShopBillingSubscriptionFieldsFragment;
201
+ export type Collection = Types.ShopCollectionFieldsFragment;
202
+ export type Customer = Types.ShopCustomerFieldFragment;
203
+ export type Facet = Types.ShopFacetFieldsFragment;
204
+ export type Order = Types.ShopOrderFieldFragment;
205
+ export type OrderAddress = Types.ShopOrderAddressFieldFragment;
206
+ export type OrderDiscount = Types.ShopDiscountFieldFragment;
207
+ export type OrderLine = Types.ShopOrderLineFieldFragment;
208
+ export type OrderTaxLine = Types.ShopTaxLineFieldFragment;
209
+ export type OrderTaxSummary = Types.ShopTaxSummaryFieldFragment;
210
+ export type PaymentGatewaySession = Types.ShopPaymentSessionFieldFragment;
211
+ export type PaymentGatewayToken = Types.ShopPaymentTokenFieldFragment;
212
+ export type ShippingLine = Types.ShopShippingLineFieldFragment;
213
+ export type Surcharge = Types.ShopSurchargeFieldFragment;