@forgecart/sdk 1.2.7 → 1.202607061936.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/admin-types.generated.d.ts +481 -33
- package/dist/admin.d.ts +2 -0
- package/dist/admin.generated.d.ts +67 -27
- package/dist/admin.generated.js +88 -4
- package/dist/admin.js +35 -31
- package/dist/client.generated.d.ts +40 -1
- package/dist/client.generated.js +152 -6
- package/dist/documents.generated.d.ts +28 -6
- package/dist/documents.generated.js +517 -41
- package/dist/index.d.ts +1 -0
- package/dist/shop-types.generated.d.ts +205 -13
- package/dist/shop.d.ts +1 -0
- package/dist/shop.generated.d.ts +13 -4
- package/dist/shop.generated.js +19 -1
- package/dist/shop.js +17 -15
- package/package.json +8 -4
- package/src/admin-types.generated.d.ts +10013 -0
- package/src/admin-types.generated.ts +1019 -96
- package/src/admin.generated.d.ts +806 -0
- package/src/admin.generated.ts +117 -29
- package/src/admin.ts +2 -0
- package/src/client.generated.d.ts +249 -0
- package/src/client.generated.ts +185 -5
- package/src/documents.generated.d.ts +473 -0
- package/src/documents.generated.ts +530 -32
- package/src/error-utils.d.ts +25 -0
- package/src/hook-event-map.generated.d.ts +243 -0
- package/src/index.d.ts +22 -0
- package/src/index.ts +1 -0
- package/src/sdk-hook-subscription.generated.d.ts +29 -0
- package/src/sdk-plugin.generated.d.ts +38 -0
- package/src/sdk-types.generated.d.ts +56 -0
- package/src/shop-types.generated.d.ts +4786 -0
- package/src/shop-types.generated.ts +275 -13
- package/src/shop.generated.d.ts +213 -0
- package/src/shop.generated.ts +22 -5
- package/src/shop.ts +1 -0
- package/src/upload.d.ts +14 -0
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { ForgeCartAdminClient } from './client.generated';
|
|
|
2
2
|
export { ForgeCartShopClient } from './client.generated';
|
|
3
3
|
export { ForgeCartClient, ClientError, QueryObservable } from './client.generated';
|
|
4
4
|
export type { GraphQLErrorResponse } from './client.generated';
|
|
5
|
+
export type { ErrorHandler, LoginSession, LoginSessionChannel, AdminExternalAuthResult, AdminLoginAdministrator } from './client.generated';
|
|
5
6
|
export type { ForgeCartAdminClientConfig } from './client.generated';
|
|
6
7
|
export type { ForgeCartShopClientConfig } from './client.generated';
|
|
7
8
|
export type { ForgeCartClientConfig } from './client.generated';
|
|
@@ -570,6 +570,7 @@ export type ChannelPlugin = {
|
|
|
570
570
|
updatedAt: Scalars['DateTime']['output'];
|
|
571
571
|
};
|
|
572
572
|
export type ChannelSettings = {
|
|
573
|
+
autoCurrencyExchange: Scalars['Boolean']['output'];
|
|
573
574
|
channelId: Scalars['ID']['output'];
|
|
574
575
|
chargeTaxOnShipping: Scalars['Boolean']['output'];
|
|
575
576
|
companyAddress?: Maybe<CompanyAddress>;
|
|
@@ -578,13 +579,24 @@ export type ChannelSettings = {
|
|
|
578
579
|
defaultFulfillmentHandlerCode?: Maybe<Scalars['String']['output']>;
|
|
579
580
|
defaultPaymentProviderCode?: Maybe<Scalars['String']['output']>;
|
|
580
581
|
defaultWeightUnit?: Maybe<WeightUnit>;
|
|
582
|
+
fxMarkupPercent: Scalars['Float']['output'];
|
|
583
|
+
fxRoundingRule: Scalars['String']['output'];
|
|
581
584
|
id: Scalars['ID']['output'];
|
|
582
|
-
manualShippingRates: Array<ManualShippingRate>;
|
|
583
585
|
requireCustomerForCheckout: Scalars['Boolean']['output'];
|
|
584
586
|
requiresShippingAddressValidation: Scalars['Boolean']['output'];
|
|
585
587
|
shopName?: Maybe<Scalars['String']['output']>;
|
|
586
588
|
taxOriginScope: Scalars['String']['output'];
|
|
587
589
|
};
|
|
590
|
+
export type ChatHistoryInput = {
|
|
591
|
+
sessionId: Scalars['String']['input'];
|
|
592
|
+
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
593
|
+
take?: InputMaybe<Scalars['Int']['input']>;
|
|
594
|
+
};
|
|
595
|
+
export type ChatSessionsInput = {
|
|
596
|
+
includeArchived?: InputMaybe<Scalars['Boolean']['input']>;
|
|
597
|
+
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
598
|
+
take?: InputMaybe<Scalars['Int']['input']>;
|
|
599
|
+
};
|
|
588
600
|
export type Collection = {
|
|
589
601
|
createdAt: Scalars['DateTime']['output'];
|
|
590
602
|
description?: Maybe<Scalars['String']['output']>;
|
|
@@ -714,6 +726,7 @@ export type CreateCarrierInput = {
|
|
|
714
726
|
providerCode: Scalars['String']['input'];
|
|
715
727
|
};
|
|
716
728
|
export type CreateChannelInput = {
|
|
729
|
+
availableCurrencyCodes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
717
730
|
availableLanguageCodes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
718
731
|
code: Scalars['String']['input'];
|
|
719
732
|
defaultCurrencyCode: Scalars['String']['input'];
|
|
@@ -824,6 +837,20 @@ export type CreateManageablePluginInput = {
|
|
|
824
837
|
tags?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
825
838
|
toggable?: InputMaybe<Scalars['Boolean']['input']>;
|
|
826
839
|
};
|
|
840
|
+
export type CreateMarketInput = {
|
|
841
|
+
countryCodes: Array<Scalars['String']['input']>;
|
|
842
|
+
currencyCode: Scalars['String']['input'];
|
|
843
|
+
enabled?: InputMaybe<Scalars['Boolean']['input']>;
|
|
844
|
+
languageCode?: InputMaybe<Scalars['String']['input']>;
|
|
845
|
+
name: Scalars['String']['input'];
|
|
846
|
+
};
|
|
847
|
+
export type CreateMissionInput = {
|
|
848
|
+
model: Scalars['String']['input'];
|
|
849
|
+
prompt: Scalars['String']['input'];
|
|
850
|
+
repos?: InputMaybe<Array<MissionRepoInput>>;
|
|
851
|
+
title?: InputMaybe<Scalars['String']['input']>;
|
|
852
|
+
workspaceId: Scalars['ID']['input'];
|
|
853
|
+
};
|
|
827
854
|
export type CreateProductInput = {
|
|
828
855
|
assetIds?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
829
856
|
enabled?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -923,6 +950,16 @@ export type CreateSessionInput = {
|
|
|
923
950
|
providerCode?: InputMaybe<Scalars['String']['input']>;
|
|
924
951
|
tokenId?: InputMaybe<Scalars['ID']['input']>;
|
|
925
952
|
};
|
|
953
|
+
export type CreateShippingGatewayRoutingRuleInput = {
|
|
954
|
+
countryCodes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
955
|
+
enabled?: InputMaybe<Scalars['Boolean']['input']>;
|
|
956
|
+
flatRates?: InputMaybe<Array<ShippingRoutingFlatRateInput>>;
|
|
957
|
+
fulfillmentType: ShippingRoutingFulfillmentType;
|
|
958
|
+
priority?: InputMaybe<Scalars['Int']['input']>;
|
|
959
|
+
providerCode?: InputMaybe<Scalars['String']['input']>;
|
|
960
|
+
scopeType: ShippingRoutingScopeType;
|
|
961
|
+
stockLocationId: Scalars['ID']['input'];
|
|
962
|
+
};
|
|
926
963
|
export type CreateShopSubscriptionInput = {
|
|
927
964
|
defaultTokenId?: InputMaybe<Scalars['ID']['input']>;
|
|
928
965
|
items: Array<CreateSubscriptionItemInput>;
|
|
@@ -1040,6 +1077,20 @@ export type DeleteAssetsInput = {
|
|
|
1040
1077
|
force?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1041
1078
|
ids: Array<Scalars['ID']['input']>;
|
|
1042
1079
|
};
|
|
1080
|
+
export type DeleteChannelInput = {
|
|
1081
|
+
collections?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1082
|
+
customers?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1083
|
+
facets?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1084
|
+
id: Scalars['ID']['input'];
|
|
1085
|
+
orders?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1086
|
+
products?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1087
|
+
promotions?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1088
|
+
sellers?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1089
|
+
stockLocations?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1090
|
+
subscriptions?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1091
|
+
taxRates?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1092
|
+
usageMetrics?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1093
|
+
};
|
|
1043
1094
|
export type DeleteFacetInput = {
|
|
1044
1095
|
force?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1045
1096
|
id: Scalars['ID']['input'];
|
|
@@ -1474,19 +1525,20 @@ export type ManageablePluginConfigItemTranslation = {
|
|
|
1474
1525
|
languageCode: Scalars['String']['output'];
|
|
1475
1526
|
name: Scalars['String']['output'];
|
|
1476
1527
|
};
|
|
1477
|
-
export type
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1528
|
+
export type Market = {
|
|
1529
|
+
channelId: Scalars['ID']['output'];
|
|
1530
|
+
countries: Array<Country>;
|
|
1531
|
+
createdAt: Scalars['DateTime']['output'];
|
|
1532
|
+
currencyCode: Scalars['String']['output'];
|
|
1533
|
+
enabled: Scalars['Boolean']['output'];
|
|
1534
|
+
id: Scalars['ID']['output'];
|
|
1535
|
+
languageCode?: Maybe<Scalars['String']['output']>;
|
|
1482
1536
|
name: Scalars['String']['output'];
|
|
1537
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
1483
1538
|
};
|
|
1484
|
-
export type
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
currency: Scalars['String']['input'];
|
|
1488
|
-
estimatedDays?: InputMaybe<Scalars['Int']['input']>;
|
|
1489
|
-
name: Scalars['String']['input'];
|
|
1539
|
+
export type MarketList = {
|
|
1540
|
+
items: Array<Market>;
|
|
1541
|
+
totalItems: Scalars['Int']['output'];
|
|
1490
1542
|
};
|
|
1491
1543
|
export type MarketingAttribution = {
|
|
1492
1544
|
computedAt: Scalars['DateTime']['output'];
|
|
@@ -1578,6 +1630,46 @@ export type MergeFulfillmentRequestInput = {
|
|
|
1578
1630
|
requestIdA: Scalars['ID']['input'];
|
|
1579
1631
|
requestIdB: Scalars['ID']['input'];
|
|
1580
1632
|
};
|
|
1633
|
+
export type Mission = {
|
|
1634
|
+
administratorId: Scalars['ID']['output'];
|
|
1635
|
+
branch?: Maybe<Scalars['String']['output']>;
|
|
1636
|
+
channelId: Scalars['ID']['output'];
|
|
1637
|
+
costCents?: Maybe<Scalars['Int']['output']>;
|
|
1638
|
+
createdAt: Scalars['DateTime']['output'];
|
|
1639
|
+
id: Scalars['ID']['output'];
|
|
1640
|
+
model: Scalars['String']['output'];
|
|
1641
|
+
podRef?: Maybe<Scalars['String']['output']>;
|
|
1642
|
+
prUrl?: Maybe<Scalars['String']['output']>;
|
|
1643
|
+
repos: Array<MissionRepoRef>;
|
|
1644
|
+
status: MissionStatus;
|
|
1645
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
1646
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
1647
|
+
workspaceId: Scalars['ID']['output'];
|
|
1648
|
+
};
|
|
1649
|
+
export type MissionList = {
|
|
1650
|
+
items: Array<Mission>;
|
|
1651
|
+
totalItems: Scalars['Int']['output'];
|
|
1652
|
+
};
|
|
1653
|
+
export type MissionListOptions = {
|
|
1654
|
+
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
1655
|
+
sort?: InputMaybe<MissionSortParameter>;
|
|
1656
|
+
take?: InputMaybe<Scalars['Int']['input']>;
|
|
1657
|
+
};
|
|
1658
|
+
export type MissionRepoInput = {
|
|
1659
|
+
branch: Scalars['String']['input'];
|
|
1660
|
+
name: Scalars['String']['input'];
|
|
1661
|
+
owner: Scalars['String']['input'];
|
|
1662
|
+
};
|
|
1663
|
+
export type MissionRepoRef = {
|
|
1664
|
+
branch: Scalars['String']['output'];
|
|
1665
|
+
name: Scalars['String']['output'];
|
|
1666
|
+
owner: Scalars['String']['output'];
|
|
1667
|
+
};
|
|
1668
|
+
export type MissionSortParameter = {
|
|
1669
|
+
createdAt?: InputMaybe<SortOrder>;
|
|
1670
|
+
updatedAt?: InputMaybe<SortOrder>;
|
|
1671
|
+
};
|
|
1672
|
+
export type MissionStatus = 'AWAITING_USER' | 'COMPLETED' | 'FAILED' | 'INTERRUPTED' | 'PENDING' | 'RUNNING';
|
|
1581
1673
|
export type ModifyOrderAddItemInput = {
|
|
1582
1674
|
productVariantId: Scalars['ID']['input'];
|
|
1583
1675
|
quantity: Scalars['Int']['input'];
|
|
@@ -1643,8 +1735,10 @@ export type Mutation = {
|
|
|
1643
1735
|
resumeSubscription: BillingSubscription;
|
|
1644
1736
|
saveToken: PaymentGatewayToken;
|
|
1645
1737
|
selectShippingRate: Order;
|
|
1738
|
+
setCurrency: Channel;
|
|
1646
1739
|
setCustomerForOrder: Order;
|
|
1647
1740
|
setDefaultToken: PaymentGatewayToken;
|
|
1741
|
+
setLanguage: Channel;
|
|
1648
1742
|
setMarketingIdentifiers: SetMarketingIdentifiersResult;
|
|
1649
1743
|
setOrderBillingAddress: Order;
|
|
1650
1744
|
setOrderShippingAddress: Order;
|
|
@@ -1752,12 +1846,18 @@ export type MutationsaveTokenArgs = {
|
|
|
1752
1846
|
export type MutationselectShippingRateArgs = {
|
|
1753
1847
|
input: SelectRateInput;
|
|
1754
1848
|
};
|
|
1849
|
+
export type MutationsetCurrencyArgs = {
|
|
1850
|
+
currencyCode: Scalars['String']['input'];
|
|
1851
|
+
};
|
|
1755
1852
|
export type MutationsetCustomerForOrderArgs = {
|
|
1756
1853
|
input: SetCustomerInput;
|
|
1757
1854
|
};
|
|
1758
1855
|
export type MutationsetDefaultTokenArgs = {
|
|
1759
1856
|
tokenId: Scalars['ID']['input'];
|
|
1760
1857
|
};
|
|
1858
|
+
export type MutationsetLanguageArgs = {
|
|
1859
|
+
languageCode: Scalars['String']['input'];
|
|
1860
|
+
};
|
|
1761
1861
|
export type MutationsetMarketingIdentifiersArgs = {
|
|
1762
1862
|
input: SetMarketingIdentifiersInput;
|
|
1763
1863
|
};
|
|
@@ -2113,6 +2213,14 @@ export type ProductVariantDimensions = {
|
|
|
2113
2213
|
unit: DimensionUnit;
|
|
2114
2214
|
width?: Maybe<Scalars['Float']['output']>;
|
|
2115
2215
|
};
|
|
2216
|
+
export type ProductVariantPrice = {
|
|
2217
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2218
|
+
currencyCode: Scalars['String']['output'];
|
|
2219
|
+
id: Scalars['ID']['output'];
|
|
2220
|
+
price: Scalars['Int']['output'];
|
|
2221
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2222
|
+
variantId: Scalars['ID']['output'];
|
|
2223
|
+
};
|
|
2116
2224
|
export type ProductVariantSnapshot = {
|
|
2117
2225
|
createdAt: Scalars['DateTime']['output'];
|
|
2118
2226
|
id: Scalars['ID']['output'];
|
|
@@ -2165,6 +2273,7 @@ export type ProvisionChannelInput = {
|
|
|
2165
2273
|
defaultCurrencyCode?: InputMaybe<Scalars['String']['input']>;
|
|
2166
2274
|
defaultLanguageCode?: InputMaybe<Scalars['String']['input']>;
|
|
2167
2275
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
2276
|
+
provisionWorkspace?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2168
2277
|
userId: Scalars['ID']['input'];
|
|
2169
2278
|
};
|
|
2170
2279
|
export type ProvisionChannelResult = {
|
|
@@ -2389,6 +2498,10 @@ export type RemoveStockLocationFromChannelInput = {
|
|
|
2389
2498
|
channelId: Scalars['ID']['input'];
|
|
2390
2499
|
stockLocationId: Scalars['ID']['input'];
|
|
2391
2500
|
};
|
|
2501
|
+
export type ReorderShippingGatewayRoutingRulesInput = {
|
|
2502
|
+
ruleIds: Array<Scalars['ID']['input']>;
|
|
2503
|
+
stockLocationId: Scalars['ID']['input'];
|
|
2504
|
+
};
|
|
2392
2505
|
export type ReportDamagedStockInput = {
|
|
2393
2506
|
note?: InputMaybe<Scalars['String']['input']>;
|
|
2394
2507
|
quantity: Scalars['Int']['input'];
|
|
@@ -2592,6 +2705,10 @@ export type SendChatMessageInput = {
|
|
|
2592
2705
|
message: Scalars['String']['input'];
|
|
2593
2706
|
sessionId: Scalars['String']['input'];
|
|
2594
2707
|
};
|
|
2708
|
+
export type SendMissionMessageInput = {
|
|
2709
|
+
message: Scalars['String']['input'];
|
|
2710
|
+
missionId: Scalars['ID']['input'];
|
|
2711
|
+
};
|
|
2595
2712
|
export type SetBillingAddressInput = {
|
|
2596
2713
|
address: CreateAddressInput;
|
|
2597
2714
|
orderId: Scalars['ID']['input'];
|
|
@@ -2639,6 +2756,11 @@ export type SetMarketingIdentifiersResult = {
|
|
|
2639
2756
|
identityId: Scalars['ID']['output'];
|
|
2640
2757
|
rejected: Array<Scalars['String']['output']>;
|
|
2641
2758
|
};
|
|
2759
|
+
export type SetPriceInput = {
|
|
2760
|
+
currencyCode: Scalars['String']['input'];
|
|
2761
|
+
price: Scalars['Int']['input'];
|
|
2762
|
+
variantId: Scalars['ID']['input'];
|
|
2763
|
+
};
|
|
2642
2764
|
export type SetSafetyStockInput = {
|
|
2643
2765
|
safetyStock: Scalars['Int']['input'];
|
|
2644
2766
|
stockLocationId: Scalars['ID']['input'];
|
|
@@ -2702,6 +2824,29 @@ export type ShippingGatewayRateGroupLine = {
|
|
|
2702
2824
|
weightUnit?: Maybe<Scalars['String']['output']>;
|
|
2703
2825
|
width?: Maybe<Scalars['Float']['output']>;
|
|
2704
2826
|
};
|
|
2827
|
+
export type ShippingGatewayRoutingFlatRate = {
|
|
2828
|
+
amount: Scalars['Int']['output'];
|
|
2829
|
+
code: Scalars['String']['output'];
|
|
2830
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2831
|
+
currencyCode: Scalars['String']['output'];
|
|
2832
|
+
estimatedDays?: Maybe<Scalars['Int']['output']>;
|
|
2833
|
+
id: Scalars['ID']['output'];
|
|
2834
|
+
name: Scalars['String']['output'];
|
|
2835
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2836
|
+
};
|
|
2837
|
+
export type ShippingGatewayRoutingRule = {
|
|
2838
|
+
countries: Array<Country>;
|
|
2839
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2840
|
+
enabled: Scalars['Boolean']['output'];
|
|
2841
|
+
flatRates: Array<ShippingGatewayRoutingFlatRate>;
|
|
2842
|
+
fulfillmentType: ShippingRoutingFulfillmentType;
|
|
2843
|
+
id: Scalars['ID']['output'];
|
|
2844
|
+
priority: Scalars['Int']['output'];
|
|
2845
|
+
providerCode?: Maybe<Scalars['String']['output']>;
|
|
2846
|
+
scopeType: ShippingRoutingScopeType;
|
|
2847
|
+
stockLocationId: Scalars['ID']['output'];
|
|
2848
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2849
|
+
};
|
|
2705
2850
|
export type ShippingLine = {
|
|
2706
2851
|
adjustments: Array<Adjustment>;
|
|
2707
2852
|
createdAt: Scalars['DateTime']['output'];
|
|
@@ -2717,6 +2862,15 @@ export type ShippingProvider = {
|
|
|
2717
2862
|
name: Scalars['String']['output'];
|
|
2718
2863
|
pluginBacked: Scalars['Boolean']['output'];
|
|
2719
2864
|
};
|
|
2865
|
+
export type ShippingRoutingFlatRateInput = {
|
|
2866
|
+
amount: Scalars['Int']['input'];
|
|
2867
|
+
code: Scalars['String']['input'];
|
|
2868
|
+
currencyCode: Scalars['String']['input'];
|
|
2869
|
+
estimatedDays?: InputMaybe<Scalars['Int']['input']>;
|
|
2870
|
+
name: Scalars['String']['input'];
|
|
2871
|
+
};
|
|
2872
|
+
export type ShippingRoutingFulfillmentType = 'MANUAL' | 'PROVIDER';
|
|
2873
|
+
export type ShippingRoutingScopeType = 'COUNTRIES' | 'DOMESTIC' | 'INTERNATIONAL';
|
|
2720
2874
|
export type ShopAddItemToOrderInput = {
|
|
2721
2875
|
quantity: Scalars['Int']['input'];
|
|
2722
2876
|
variantId: Scalars['ID']['input'];
|
|
@@ -2734,6 +2888,10 @@ export type SplitFulfillmentRequestLineInput = {
|
|
|
2734
2888
|
orderLineId: Scalars['ID']['input'];
|
|
2735
2889
|
quantity: Scalars['Int']['input'];
|
|
2736
2890
|
};
|
|
2891
|
+
export type StartChatSessionInput = {
|
|
2892
|
+
origin?: InputMaybe<Scalars['String']['input']>;
|
|
2893
|
+
title?: InputMaybe<Scalars['String']['input']>;
|
|
2894
|
+
};
|
|
2737
2895
|
export type StockLevel = {
|
|
2738
2896
|
id: Scalars['ID']['output'];
|
|
2739
2897
|
safetyStock: Scalars['Int']['output'];
|
|
@@ -2984,6 +3142,7 @@ export type UpdateCarrierInput = {
|
|
|
2984
3142
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
2985
3143
|
};
|
|
2986
3144
|
export type UpdateChannelInput = {
|
|
3145
|
+
availableCurrencyCodes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
2987
3146
|
availableLanguageCodes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
2988
3147
|
code?: InputMaybe<Scalars['String']['input']>;
|
|
2989
3148
|
defaultCurrencyCode?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -3002,6 +3161,7 @@ export type UpdateChannelPluginConfigInput = {
|
|
|
3002
3161
|
id: Scalars['ID']['input'];
|
|
3003
3162
|
};
|
|
3004
3163
|
export type UpdateChannelSettingsInput = {
|
|
3164
|
+
autoCurrencyExchange?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3005
3165
|
chargeTaxOnShipping?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3006
3166
|
companyAddress?: InputMaybe<CompanyAddressInput>;
|
|
3007
3167
|
defaultDeploymentProviderCode?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -3009,7 +3169,8 @@ export type UpdateChannelSettingsInput = {
|
|
|
3009
3169
|
defaultFulfillmentHandlerCode?: InputMaybe<Scalars['String']['input']>;
|
|
3010
3170
|
defaultPaymentProviderCode?: InputMaybe<Scalars['String']['input']>;
|
|
3011
3171
|
defaultWeightUnit?: InputMaybe<WeightUnit>;
|
|
3012
|
-
|
|
3172
|
+
fxMarkupPercent?: InputMaybe<Scalars['Float']['input']>;
|
|
3173
|
+
fxRoundingRule?: InputMaybe<Scalars['String']['input']>;
|
|
3013
3174
|
requireCustomerForCheckout?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3014
3175
|
requiresShippingAddressValidation?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3015
3176
|
shopName?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -3105,6 +3266,14 @@ export type UpdateManageablePluginInput = {
|
|
|
3105
3266
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
3106
3267
|
toggable?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3107
3268
|
};
|
|
3269
|
+
export type UpdateMarketInput = {
|
|
3270
|
+
countryCodes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
3271
|
+
currencyCode?: InputMaybe<Scalars['String']['input']>;
|
|
3272
|
+
enabled?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3273
|
+
id: Scalars['ID']['input'];
|
|
3274
|
+
languageCode?: InputMaybe<Scalars['String']['input']>;
|
|
3275
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
3276
|
+
};
|
|
3108
3277
|
export type UpdateOnboardingProfileInput = {
|
|
3109
3278
|
/**
|
|
3110
3279
|
* When `true`, marks the profile step complete and advances
|
|
@@ -3211,6 +3380,16 @@ export type UpdateSellerInput = {
|
|
|
3211
3380
|
id: Scalars['ID']['input'];
|
|
3212
3381
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
3213
3382
|
};
|
|
3383
|
+
export type UpdateShippingGatewayRoutingRuleInput = {
|
|
3384
|
+
countryCodes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
3385
|
+
enabled?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3386
|
+
flatRates?: InputMaybe<Array<ShippingRoutingFlatRateInput>>;
|
|
3387
|
+
fulfillmentType?: InputMaybe<ShippingRoutingFulfillmentType>;
|
|
3388
|
+
id: Scalars['ID']['input'];
|
|
3389
|
+
priority?: InputMaybe<Scalars['Int']['input']>;
|
|
3390
|
+
providerCode?: InputMaybe<Scalars['String']['input']>;
|
|
3391
|
+
scopeType?: InputMaybe<ShippingRoutingScopeType>;
|
|
3392
|
+
};
|
|
3214
3393
|
export type UpdateShippingLabelInput = {
|
|
3215
3394
|
carrier?: InputMaybe<Scalars['String']['input']>;
|
|
3216
3395
|
labelId: Scalars['ID']['input'];
|
|
@@ -4040,6 +4219,19 @@ export type RemoveItemsFromOrderMutation = {
|
|
|
4040
4219
|
errors: Array<Pick<BatchOrderLineError, 'index' | 'errorCode' | 'variables'>>;
|
|
4041
4220
|
};
|
|
4042
4221
|
};
|
|
4222
|
+
export type ShopChannelFieldFragment = Pick<Channel, 'id' | 'code' | 'defaultLanguageCode' | 'defaultCurrencyCode' | 'availableLanguageCodes' | 'availableCurrencyCodes' | 'pricesIncludeTax'>;
|
|
4223
|
+
export type SetCurrencyMutationVariables = Exact<{
|
|
4224
|
+
currencyCode: Scalars['String']['input'];
|
|
4225
|
+
}>;
|
|
4226
|
+
export type SetCurrencyMutation = {
|
|
4227
|
+
setCurrency: Pick<Channel, 'id' | 'code' | 'defaultLanguageCode' | 'defaultCurrencyCode' | 'availableLanguageCodes' | 'availableCurrencyCodes' | 'pricesIncludeTax'>;
|
|
4228
|
+
};
|
|
4229
|
+
export type SetLanguageMutationVariables = Exact<{
|
|
4230
|
+
languageCode: Scalars['String']['input'];
|
|
4231
|
+
}>;
|
|
4232
|
+
export type SetLanguageMutation = {
|
|
4233
|
+
setLanguage: Pick<Channel, 'id' | 'code' | 'defaultLanguageCode' | 'defaultCurrencyCode' | 'availableLanguageCodes' | 'availableCurrencyCodes' | 'pricesIncludeTax'>;
|
|
4234
|
+
};
|
|
4043
4235
|
export type SetOrderShippingAddressMutationVariables = Exact<{
|
|
4044
4236
|
input: CreateAddressInput;
|
|
4045
4237
|
}>;
|
package/dist/shop.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { ShopNamespace } from './shop.generated';
|
|
|
2
2
|
export { AcfCategory } from './shop.generated';
|
|
3
3
|
export { AuthCategory } from './shop.generated';
|
|
4
4
|
export { CartCategory } from './shop.generated';
|
|
5
|
+
export { ChannelCategory } from './shop.generated';
|
|
5
6
|
export { CheckoutCategory } from './shop.generated';
|
|
6
7
|
export { CollectionCategory } from './shop.generated';
|
|
7
8
|
export { CustomerCategory } from './shop.generated';
|
package/dist/shop.generated.d.ts
CHANGED
|
@@ -39,6 +39,12 @@ export declare class CartCategory {
|
|
|
39
39
|
adjustOrderLines(variables: Types.AdjustOrderLinesMutationVariables): QueryObservable<Types.AdjustOrderLinesMutation>;
|
|
40
40
|
removeItemsFromOrder(variables: Types.RemoveItemsFromOrderMutationVariables): QueryObservable<Types.RemoveItemsFromOrderMutation>;
|
|
41
41
|
}
|
|
42
|
+
export declare class ChannelCategory {
|
|
43
|
+
private readonly client;
|
|
44
|
+
constructor(client: BaseGraphQLClient);
|
|
45
|
+
setCurrency(variables: Types.SetCurrencyMutationVariables): QueryObservable<Types.SetCurrencyMutation>;
|
|
46
|
+
setLanguage(variables: Types.SetLanguageMutationVariables): QueryObservable<Types.SetLanguageMutation>;
|
|
47
|
+
}
|
|
42
48
|
export declare class CheckoutCategory {
|
|
43
49
|
private readonly client;
|
|
44
50
|
constructor(client: BaseGraphQLClient);
|
|
@@ -50,7 +56,7 @@ export declare class CollectionCategory {
|
|
|
50
56
|
private readonly client;
|
|
51
57
|
constructor(client: BaseGraphQLClient);
|
|
52
58
|
shopCollection(variables: Types.ShopCollectionQueryVariables): QueryObservable<Types.ShopCollectionQuery>;
|
|
53
|
-
shopCollections(variables
|
|
59
|
+
shopCollections(variables?: Types.ShopCollectionsQueryVariables): QueryObservable<Types.ShopCollectionsQuery>;
|
|
54
60
|
}
|
|
55
61
|
export declare class CustomerCategory {
|
|
56
62
|
private readonly client;
|
|
@@ -75,7 +81,7 @@ export declare class FacetCategory {
|
|
|
75
81
|
private readonly client;
|
|
76
82
|
constructor(client: BaseGraphQLClient);
|
|
77
83
|
shopFacet(variables: Types.ShopFacetQueryVariables): QueryObservable<Types.ShopFacetQuery>;
|
|
78
|
-
shopFacets(variables
|
|
84
|
+
shopFacets(variables?: Types.ShopFacetsQueryVariables): QueryObservable<Types.ShopFacetsQuery>;
|
|
79
85
|
}
|
|
80
86
|
export declare class HookDispatchCategory {
|
|
81
87
|
private readonly client;
|
|
@@ -128,8 +134,8 @@ export declare class PaymentCategory {
|
|
|
128
134
|
export declare class ProductCategory {
|
|
129
135
|
private readonly client;
|
|
130
136
|
constructor(client: BaseGraphQLClient);
|
|
131
|
-
shopProduct(variables
|
|
132
|
-
shopProducts(variables
|
|
137
|
+
shopProduct(variables?: Types.ShopProductQueryVariables): QueryObservable<Types.ShopProductQuery>;
|
|
138
|
+
shopProducts(variables?: Types.ShopProductsQueryVariables): QueryObservable<Types.ShopProductsQuery>;
|
|
133
139
|
shopProductOptionGroups(variables: Types.ShopProductOptionGroupsQueryVariables): QueryObservable<Types.ShopProductOptionGroupsQuery>;
|
|
134
140
|
}
|
|
135
141
|
export declare class SearchCategory {
|
|
@@ -162,6 +168,7 @@ export declare class ShopNamespace {
|
|
|
162
168
|
private readonly _acf;
|
|
163
169
|
private readonly _auth;
|
|
164
170
|
private readonly _cart;
|
|
171
|
+
private readonly _channel;
|
|
165
172
|
private readonly _checkout;
|
|
166
173
|
private readonly _collection;
|
|
167
174
|
private readonly _customer;
|
|
@@ -180,6 +187,7 @@ export declare class ShopNamespace {
|
|
|
180
187
|
get acf(): AcfCategory;
|
|
181
188
|
get auth(): AuthCategory;
|
|
182
189
|
get cart(): CartCategory;
|
|
190
|
+
get channel(): ChannelCategory;
|
|
183
191
|
get checkout(): CheckoutCategory;
|
|
184
192
|
get collection(): CollectionCategory;
|
|
185
193
|
get customer(): CustomerCategory;
|
|
@@ -198,6 +206,7 @@ export declare class ShopNamespace {
|
|
|
198
206
|
export type Address = Types.ShopCustomerAddressFieldFragment;
|
|
199
207
|
export type Adjustment = Types.ShopAdjustmentFieldFragment;
|
|
200
208
|
export type BillingSubscription = Types.ShopBillingSubscriptionFieldsFragment;
|
|
209
|
+
export type Channel = Types.ShopChannelFieldFragment;
|
|
201
210
|
export type Collection = Types.ShopCollectionFieldsFragment;
|
|
202
211
|
export type Customer = Types.ShopCustomerFieldFragment;
|
|
203
212
|
export type Facet = Types.ShopFacetFieldsFragment;
|
package/dist/shop.generated.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Any manual changes will be overwritten on the next generation run.
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ShopNamespace = exports.SubscriptionCategory = exports.ShippingCategory = exports.SearchCategory = exports.ProductCategory = exports.PaymentCategory = exports.OrderCategory = exports.MarketingIdentityCategory = exports.MarketingEventCategory = exports.HookCategory = exports.HookDispatchCategory = exports.FacetCategory = exports.CustomerCategory = exports.CollectionCategory = exports.CheckoutCategory = exports.CartCategory = exports.AuthCategory = exports.AcfCategory = void 0;
|
|
10
|
+
exports.ShopNamespace = exports.SubscriptionCategory = exports.ShippingCategory = exports.SearchCategory = exports.ProductCategory = exports.PaymentCategory = exports.OrderCategory = exports.MarketingIdentityCategory = exports.MarketingEventCategory = exports.HookCategory = exports.HookDispatchCategory = exports.FacetCategory = exports.CustomerCategory = exports.CollectionCategory = exports.CheckoutCategory = exports.ChannelCategory = exports.CartCategory = exports.AuthCategory = exports.AcfCategory = void 0;
|
|
11
11
|
const documents_generated_1 = require("./documents.generated");
|
|
12
12
|
class AcfCategory {
|
|
13
13
|
client;
|
|
@@ -87,6 +87,19 @@ class CartCategory {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
exports.CartCategory = CartCategory;
|
|
90
|
+
class ChannelCategory {
|
|
91
|
+
client;
|
|
92
|
+
constructor(client) {
|
|
93
|
+
this.client = client;
|
|
94
|
+
}
|
|
95
|
+
setCurrency(variables) {
|
|
96
|
+
return this.client.mutate(documents_generated_1.shopSetCurrencyDocument, variables);
|
|
97
|
+
}
|
|
98
|
+
setLanguage(variables) {
|
|
99
|
+
return this.client.mutate(documents_generated_1.shopSetLanguageDocument, variables);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.ChannelCategory = ChannelCategory;
|
|
90
103
|
class CheckoutCategory {
|
|
91
104
|
client;
|
|
92
105
|
constructor(client) {
|
|
@@ -376,6 +389,7 @@ class ShopNamespace {
|
|
|
376
389
|
_acf;
|
|
377
390
|
_auth;
|
|
378
391
|
_cart;
|
|
392
|
+
_channel;
|
|
379
393
|
_checkout;
|
|
380
394
|
_collection;
|
|
381
395
|
_customer;
|
|
@@ -395,6 +409,7 @@ class ShopNamespace {
|
|
|
395
409
|
this._acf = new AcfCategory(client);
|
|
396
410
|
this._auth = new AuthCategory(client);
|
|
397
411
|
this._cart = new CartCategory(client);
|
|
412
|
+
this._channel = new ChannelCategory(client);
|
|
398
413
|
this._checkout = new CheckoutCategory(client);
|
|
399
414
|
this._collection = new CollectionCategory(client);
|
|
400
415
|
this._customer = new CustomerCategory(client);
|
|
@@ -419,6 +434,9 @@ class ShopNamespace {
|
|
|
419
434
|
get cart() {
|
|
420
435
|
return this._cart;
|
|
421
436
|
}
|
|
437
|
+
get channel() {
|
|
438
|
+
return this._channel;
|
|
439
|
+
}
|
|
422
440
|
get checkout() {
|
|
423
441
|
return this._checkout;
|
|
424
442
|
}
|
package/dist/shop.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SubscriptionCategory = exports.ShippingCategory = exports.SearchCategory = exports.ProductCategory = exports.PaymentCategory = exports.OrderCategory = exports.MarketingIdentityCategory = exports.MarketingEventCategory = exports.HookCategory = exports.HookDispatchCategory = exports.FacetCategory = exports.CustomerCategory = exports.CollectionCategory = exports.CheckoutCategory = exports.CartCategory = exports.AuthCategory = exports.AcfCategory = exports.ShopNamespace = void 0;
|
|
3
|
+
exports.SubscriptionCategory = exports.ShippingCategory = exports.SearchCategory = exports.ProductCategory = exports.PaymentCategory = exports.OrderCategory = exports.MarketingIdentityCategory = exports.MarketingEventCategory = exports.HookCategory = exports.HookDispatchCategory = exports.FacetCategory = exports.CustomerCategory = exports.CollectionCategory = exports.CheckoutCategory = exports.ChannelCategory = exports.CartCategory = exports.AuthCategory = exports.AcfCategory = exports.ShopNamespace = void 0;
|
|
4
4
|
var shop_generated_1 = require("./shop.generated");
|
|
5
5
|
Object.defineProperty(exports, "ShopNamespace", { enumerable: true, get: function () { return shop_generated_1.ShopNamespace; } });
|
|
6
6
|
var shop_generated_2 = require("./shop.generated");
|
|
@@ -10,30 +10,32 @@ Object.defineProperty(exports, "AuthCategory", { enumerable: true, get: function
|
|
|
10
10
|
var shop_generated_4 = require("./shop.generated");
|
|
11
11
|
Object.defineProperty(exports, "CartCategory", { enumerable: true, get: function () { return shop_generated_4.CartCategory; } });
|
|
12
12
|
var shop_generated_5 = require("./shop.generated");
|
|
13
|
-
Object.defineProperty(exports, "
|
|
13
|
+
Object.defineProperty(exports, "ChannelCategory", { enumerable: true, get: function () { return shop_generated_5.ChannelCategory; } });
|
|
14
14
|
var shop_generated_6 = require("./shop.generated");
|
|
15
|
-
Object.defineProperty(exports, "
|
|
15
|
+
Object.defineProperty(exports, "CheckoutCategory", { enumerable: true, get: function () { return shop_generated_6.CheckoutCategory; } });
|
|
16
16
|
var shop_generated_7 = require("./shop.generated");
|
|
17
|
-
Object.defineProperty(exports, "
|
|
17
|
+
Object.defineProperty(exports, "CollectionCategory", { enumerable: true, get: function () { return shop_generated_7.CollectionCategory; } });
|
|
18
18
|
var shop_generated_8 = require("./shop.generated");
|
|
19
|
-
Object.defineProperty(exports, "
|
|
19
|
+
Object.defineProperty(exports, "CustomerCategory", { enumerable: true, get: function () { return shop_generated_8.CustomerCategory; } });
|
|
20
20
|
var shop_generated_9 = require("./shop.generated");
|
|
21
|
-
Object.defineProperty(exports, "
|
|
21
|
+
Object.defineProperty(exports, "FacetCategory", { enumerable: true, get: function () { return shop_generated_9.FacetCategory; } });
|
|
22
22
|
var shop_generated_10 = require("./shop.generated");
|
|
23
|
-
Object.defineProperty(exports, "
|
|
23
|
+
Object.defineProperty(exports, "HookDispatchCategory", { enumerable: true, get: function () { return shop_generated_10.HookDispatchCategory; } });
|
|
24
24
|
var shop_generated_11 = require("./shop.generated");
|
|
25
|
-
Object.defineProperty(exports, "
|
|
25
|
+
Object.defineProperty(exports, "HookCategory", { enumerable: true, get: function () { return shop_generated_11.HookCategory; } });
|
|
26
26
|
var shop_generated_12 = require("./shop.generated");
|
|
27
|
-
Object.defineProperty(exports, "
|
|
27
|
+
Object.defineProperty(exports, "MarketingEventCategory", { enumerable: true, get: function () { return shop_generated_12.MarketingEventCategory; } });
|
|
28
28
|
var shop_generated_13 = require("./shop.generated");
|
|
29
|
-
Object.defineProperty(exports, "
|
|
29
|
+
Object.defineProperty(exports, "MarketingIdentityCategory", { enumerable: true, get: function () { return shop_generated_13.MarketingIdentityCategory; } });
|
|
30
30
|
var shop_generated_14 = require("./shop.generated");
|
|
31
|
-
Object.defineProperty(exports, "
|
|
31
|
+
Object.defineProperty(exports, "OrderCategory", { enumerable: true, get: function () { return shop_generated_14.OrderCategory; } });
|
|
32
32
|
var shop_generated_15 = require("./shop.generated");
|
|
33
|
-
Object.defineProperty(exports, "
|
|
33
|
+
Object.defineProperty(exports, "PaymentCategory", { enumerable: true, get: function () { return shop_generated_15.PaymentCategory; } });
|
|
34
34
|
var shop_generated_16 = require("./shop.generated");
|
|
35
|
-
Object.defineProperty(exports, "
|
|
35
|
+
Object.defineProperty(exports, "ProductCategory", { enumerable: true, get: function () { return shop_generated_16.ProductCategory; } });
|
|
36
36
|
var shop_generated_17 = require("./shop.generated");
|
|
37
|
-
Object.defineProperty(exports, "
|
|
37
|
+
Object.defineProperty(exports, "SearchCategory", { enumerable: true, get: function () { return shop_generated_17.SearchCategory; } });
|
|
38
38
|
var shop_generated_18 = require("./shop.generated");
|
|
39
|
-
Object.defineProperty(exports, "
|
|
39
|
+
Object.defineProperty(exports, "ShippingCategory", { enumerable: true, get: function () { return shop_generated_18.ShippingCategory; } });
|
|
40
|
+
var shop_generated_19 = require("./shop.generated");
|
|
41
|
+
Object.defineProperty(exports, "SubscriptionCategory", { enumerable: true, get: function () { return shop_generated_19.SubscriptionCategory; } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forgecart/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.202607061936.0",
|
|
4
4
|
"description": "ForgeCart Client SDK",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -31,6 +31,10 @@
|
|
|
31
31
|
"src",
|
|
32
32
|
"README.md"
|
|
33
33
|
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "tsc",
|
|
36
|
+
"prepublishOnly": "pnpm run build"
|
|
37
|
+
},
|
|
34
38
|
"dependencies": {
|
|
35
39
|
"graphql": "^16.0.0",
|
|
36
40
|
"graphql-ws": "^5.16.0",
|
|
@@ -49,7 +53,7 @@
|
|
|
49
53
|
"typescript": "^5.3.3"
|
|
50
54
|
},
|
|
51
55
|
"license": "MIT",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
56
|
+
"publishConfig": {
|
|
57
|
+
"registry": "https://registry.npmjs.org"
|
|
54
58
|
}
|
|
55
|
-
}
|
|
59
|
+
}
|