@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,27 @@ 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 ChatSessionsInput = {
659
+ includeArchived?: InputMaybe<Scalars['Boolean']['input']>;
660
+ skip?: InputMaybe<Scalars['Int']['input']>;
661
+ take?: InputMaybe<Scalars['Int']['input']>;
662
+ };
663
+
650
664
  export type Collection = {
651
665
  createdAt: Scalars['DateTime']['output'];
652
666
  description?: Maybe<Scalars['String']['output']>;
@@ -795,6 +809,7 @@ export type CreateCarrierInput = {
795
809
  };
796
810
 
797
811
  export type CreateChannelInput = {
812
+ availableCurrencyCodes?: InputMaybe<Array<Scalars['String']['input']>>;
798
813
  availableLanguageCodes?: InputMaybe<Array<Scalars['String']['input']>>;
799
814
  code: Scalars['String']['input'];
800
815
  defaultCurrencyCode: Scalars['String']['input'];
@@ -924,6 +939,22 @@ export type CreateManageablePluginInput = {
924
939
  toggable?: InputMaybe<Scalars['Boolean']['input']>;
925
940
  };
926
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
+
927
958
  export type CreateProductInput = {
928
959
  assetIds?: InputMaybe<Array<Scalars['ID']['input']>>;
929
960
  enabled?: InputMaybe<Scalars['Boolean']['input']>;
@@ -1038,6 +1069,17 @@ export type CreateSessionInput = {
1038
1069
  tokenId?: InputMaybe<Scalars['ID']['input']>;
1039
1070
  };
1040
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
+
1041
1083
  export type CreateShopSubscriptionInput = {
1042
1084
  defaultTokenId?: InputMaybe<Scalars['ID']['input']>;
1043
1085
  items: Array<CreateSubscriptionItemInput>;
@@ -1708,20 +1750,21 @@ export type ManageablePluginConfigItemTranslation = {
1708
1750
  name: Scalars['String']['output'];
1709
1751
  };
1710
1752
 
1711
- export type ManualShippingRate = {
1712
- amount: Scalars['Int']['output'];
1713
- code: Scalars['String']['output'];
1714
- currency: Scalars['String']['output'];
1715
- 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']>;
1716
1761
  name: Scalars['String']['output'];
1762
+ updatedAt: Scalars['DateTime']['output'];
1717
1763
  };
1718
1764
 
1719
- export type ManualShippingRateInput = {
1720
- amount: Scalars['Int']['input'];
1721
- code: Scalars['String']['input'];
1722
- currency: Scalars['String']['input'];
1723
- estimatedDays?: InputMaybe<Scalars['Int']['input']>;
1724
- name: Scalars['String']['input'];
1765
+ export type MarketList = {
1766
+ items: Array<Market>;
1767
+ totalItems: Scalars['Int']['output'];
1725
1768
  };
1726
1769
 
1727
1770
  export type MarketingAttribution = {
@@ -1823,6 +1866,59 @@ export type MergeFulfillmentRequestInput = {
1823
1866
  requestIdB: Scalars['ID']['input'];
1824
1867
  };
1825
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
+
1826
1922
  export type ModifyOrderAddItemInput = {
1827
1923
  productVariantId: Scalars['ID']['input'];
1828
1924
  quantity: Scalars['Int']['input'];
@@ -1894,8 +1990,10 @@ export type Mutation = {
1894
1990
  resumeSubscription: BillingSubscription;
1895
1991
  saveToken: PaymentGatewayToken;
1896
1992
  selectShippingRate: Order;
1993
+ setCurrency: Channel;
1897
1994
  setCustomerForOrder: Order;
1898
1995
  setDefaultToken: PaymentGatewayToken;
1996
+ setLanguage: Channel;
1899
1997
  setMarketingIdentifiers: SetMarketingIdentifiersResult;
1900
1998
  setOrderBillingAddress: Order;
1901
1999
  setOrderShippingAddress: Order;
@@ -2067,6 +2165,11 @@ export type MutationselectShippingRateArgs = {
2067
2165
  };
2068
2166
 
2069
2167
 
2168
+ export type MutationsetCurrencyArgs = {
2169
+ currencyCode: Scalars['String']['input'];
2170
+ };
2171
+
2172
+
2070
2173
  export type MutationsetCustomerForOrderArgs = {
2071
2174
  input: SetCustomerInput;
2072
2175
  };
@@ -2077,6 +2180,11 @@ export type MutationsetDefaultTokenArgs = {
2077
2180
  };
2078
2181
 
2079
2182
 
2183
+ export type MutationsetLanguageArgs = {
2184
+ languageCode: Scalars['String']['input'];
2185
+ };
2186
+
2187
+
2080
2188
  export type MutationsetMarketingIdentifiersArgs = {
2081
2189
  input: SetMarketingIdentifiersInput;
2082
2190
  };
@@ -2501,6 +2609,15 @@ export type ProductVariantDimensions = {
2501
2609
  width?: Maybe<Scalars['Float']['output']>;
2502
2610
  };
2503
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
+
2504
2621
  export type ProductVariantSnapshot = {
2505
2622
  createdAt: Scalars['DateTime']['output'];
2506
2623
  id: Scalars['ID']['output'];
@@ -2847,6 +2964,11 @@ export type RemoveStockLocationFromChannelInput = {
2847
2964
  stockLocationId: Scalars['ID']['input'];
2848
2965
  };
2849
2966
 
2967
+ export type ReorderShippingGatewayRoutingRulesInput = {
2968
+ ruleIds: Array<Scalars['ID']['input']>;
2969
+ stockLocationId: Scalars['ID']['input'];
2970
+ };
2971
+
2850
2972
  export type ReportDamagedStockInput = {
2851
2973
  note?: InputMaybe<Scalars['String']['input']>;
2852
2974
  quantity: Scalars['Int']['input'];
@@ -3086,6 +3208,11 @@ export type SendChatMessageInput = {
3086
3208
  sessionId: Scalars['String']['input'];
3087
3209
  };
3088
3210
 
3211
+ export type SendMissionMessageInput = {
3212
+ message: Scalars['String']['input'];
3213
+ missionId: Scalars['ID']['input'];
3214
+ };
3215
+
3089
3216
  export type SetBillingAddressInput = {
3090
3217
  address: CreateAddressInput;
3091
3218
  orderId: Scalars['ID']['input'];
@@ -3142,6 +3269,12 @@ export type SetMarketingIdentifiersResult = {
3142
3269
  rejected: Array<Scalars['String']['output']>;
3143
3270
  };
3144
3271
 
3272
+ export type SetPriceInput = {
3273
+ currencyCode: Scalars['String']['input'];
3274
+ price: Scalars['Int']['input'];
3275
+ variantId: Scalars['ID']['input'];
3276
+ };
3277
+
3145
3278
  export type SetSafetyStockInput = {
3146
3279
  safetyStock: Scalars['Int']['input'];
3147
3280
  stockLocationId: Scalars['ID']['input'];
@@ -3213,6 +3346,31 @@ export type ShippingGatewayRateGroupLine = {
3213
3346
  width?: Maybe<Scalars['Float']['output']>;
3214
3347
  };
3215
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
+
3216
3374
  export type ShippingLine = {
3217
3375
  adjustments: Array<Adjustment>;
3218
3376
  createdAt: Scalars['DateTime']['output'];
@@ -3230,6 +3388,23 @@ export type ShippingProvider = {
3230
3388
  pluginBacked: Scalars['Boolean']['output'];
3231
3389
  };
3232
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
+
3233
3408
  export type ShopAddItemToOrderInput = {
3234
3409
  quantity: Scalars['Int']['input'];
3235
3410
  variantId: Scalars['ID']['input'];
@@ -3254,6 +3429,11 @@ export type SplitFulfillmentRequestLineInput = {
3254
3429
  quantity: Scalars['Int']['input'];
3255
3430
  };
3256
3431
 
3432
+ export type StartChatSessionInput = {
3433
+ origin?: InputMaybe<Scalars['String']['input']>;
3434
+ title?: InputMaybe<Scalars['String']['input']>;
3435
+ };
3436
+
3257
3437
  export type StockLevel = {
3258
3438
  id: Scalars['ID']['output'];
3259
3439
  safetyStock: Scalars['Int']['output'];
@@ -3552,6 +3732,7 @@ export type UpdateCarrierInput = {
3552
3732
  };
3553
3733
 
3554
3734
  export type UpdateChannelInput = {
3735
+ availableCurrencyCodes?: InputMaybe<Array<Scalars['String']['input']>>;
3555
3736
  availableLanguageCodes?: InputMaybe<Array<Scalars['String']['input']>>;
3556
3737
  code?: InputMaybe<Scalars['String']['input']>;
3557
3738
  defaultCurrencyCode?: InputMaybe<Scalars['String']['input']>;
@@ -3572,6 +3753,7 @@ export type UpdateChannelPluginConfigInput = {
3572
3753
  };
3573
3754
 
3574
3755
  export type UpdateChannelSettingsInput = {
3756
+ autoCurrencyExchange?: InputMaybe<Scalars['Boolean']['input']>;
3575
3757
  chargeTaxOnShipping?: InputMaybe<Scalars['Boolean']['input']>;
3576
3758
  companyAddress?: InputMaybe<CompanyAddressInput>;
3577
3759
  defaultDeploymentProviderCode?: InputMaybe<Scalars['String']['input']>;
@@ -3579,7 +3761,8 @@ export type UpdateChannelSettingsInput = {
3579
3761
  defaultFulfillmentHandlerCode?: InputMaybe<Scalars['String']['input']>;
3580
3762
  defaultPaymentProviderCode?: InputMaybe<Scalars['String']['input']>;
3581
3763
  defaultWeightUnit?: InputMaybe<WeightUnit>;
3582
- manualShippingRates?: InputMaybe<Array<ManualShippingRateInput>>;
3764
+ fxMarkupPercent?: InputMaybe<Scalars['Float']['input']>;
3765
+ fxRoundingRule?: InputMaybe<Scalars['String']['input']>;
3583
3766
  requireCustomerForCheckout?: InputMaybe<Scalars['Boolean']['input']>;
3584
3767
  requiresShippingAddressValidation?: InputMaybe<Scalars['Boolean']['input']>;
3585
3768
  shopName?: InputMaybe<Scalars['String']['input']>;
@@ -3691,6 +3874,15 @@ export type UpdateManageablePluginInput = {
3691
3874
  toggable?: InputMaybe<Scalars['Boolean']['input']>;
3692
3875
  };
3693
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
+
3694
3886
  export type UpdateOnboardingProfileInput = {
3695
3887
  /**
3696
3888
  * When `true`, marks the profile step complete and advances
@@ -3811,6 +4003,17 @@ export type UpdateSellerInput = {
3811
4003
  name?: InputMaybe<Scalars['String']['input']>;
3812
4004
  };
3813
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
+
3814
4017
  export type UpdateShippingLabelInput = {
3815
4018
  carrier?: InputMaybe<Scalars['String']['input']>;
3816
4019
  labelId: Scalars['ID']['input'];
@@ -7357,6 +7560,49 @@ export type RemoveItemsFromOrderMutation = { removeItemsFromOrder: {
7357
7560
  errors: Array<Pick<BatchOrderLineError, 'index' | 'errorCode' | 'variables'>>,
7358
7561
  } };
7359
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
+
7360
7606
  export type SetOrderShippingAddressMutationVariables = Exact<{
7361
7607
  input: CreateAddressInput;
7362
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;