@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.
- package/README.md +2 -2
- package/dist/admin-types.generated.d.ts +460 -29
- 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 +36 -1
- package/dist/client.generated.js +149 -5
- package/dist/documents.generated.d.ts +27 -5
- package/dist/documents.generated.js +492 -39
- package/dist/index.d.ts +1 -0
- package/dist/shop-types.generated.d.ts +190 -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 +979 -92
- 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 +173 -4
- package/src/documents.generated.d.ts +473 -0
- package/src/documents.generated.ts +505 -30
- 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 +259 -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
|
@@ -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>;
|
|
@@ -1474,19 +1511,20 @@ export type ManageablePluginConfigItemTranslation = {
|
|
|
1474
1511
|
languageCode: Scalars['String']['output'];
|
|
1475
1512
|
name: Scalars['String']['output'];
|
|
1476
1513
|
};
|
|
1477
|
-
export type
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1514
|
+
export type Market = {
|
|
1515
|
+
channelId: Scalars['ID']['output'];
|
|
1516
|
+
countries: Array<Country>;
|
|
1517
|
+
createdAt: Scalars['DateTime']['output'];
|
|
1518
|
+
currencyCode: Scalars['String']['output'];
|
|
1519
|
+
enabled: Scalars['Boolean']['output'];
|
|
1520
|
+
id: Scalars['ID']['output'];
|
|
1521
|
+
languageCode?: Maybe<Scalars['String']['output']>;
|
|
1482
1522
|
name: Scalars['String']['output'];
|
|
1523
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
1483
1524
|
};
|
|
1484
|
-
export type
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
currency: Scalars['String']['input'];
|
|
1488
|
-
estimatedDays?: InputMaybe<Scalars['Int']['input']>;
|
|
1489
|
-
name: Scalars['String']['input'];
|
|
1525
|
+
export type MarketList = {
|
|
1526
|
+
items: Array<Market>;
|
|
1527
|
+
totalItems: Scalars['Int']['output'];
|
|
1490
1528
|
};
|
|
1491
1529
|
export type MarketingAttribution = {
|
|
1492
1530
|
computedAt: Scalars['DateTime']['output'];
|
|
@@ -1578,6 +1616,46 @@ export type MergeFulfillmentRequestInput = {
|
|
|
1578
1616
|
requestIdA: Scalars['ID']['input'];
|
|
1579
1617
|
requestIdB: Scalars['ID']['input'];
|
|
1580
1618
|
};
|
|
1619
|
+
export type Mission = {
|
|
1620
|
+
administratorId: Scalars['ID']['output'];
|
|
1621
|
+
branch?: Maybe<Scalars['String']['output']>;
|
|
1622
|
+
channelId: Scalars['ID']['output'];
|
|
1623
|
+
costCents?: Maybe<Scalars['Int']['output']>;
|
|
1624
|
+
createdAt: Scalars['DateTime']['output'];
|
|
1625
|
+
id: Scalars['ID']['output'];
|
|
1626
|
+
model: Scalars['String']['output'];
|
|
1627
|
+
podRef?: Maybe<Scalars['String']['output']>;
|
|
1628
|
+
prUrl?: Maybe<Scalars['String']['output']>;
|
|
1629
|
+
repos: Array<MissionRepoRef>;
|
|
1630
|
+
status: MissionStatus;
|
|
1631
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
1632
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
1633
|
+
workspaceId: Scalars['ID']['output'];
|
|
1634
|
+
};
|
|
1635
|
+
export type MissionList = {
|
|
1636
|
+
items: Array<Mission>;
|
|
1637
|
+
totalItems: Scalars['Int']['output'];
|
|
1638
|
+
};
|
|
1639
|
+
export type MissionListOptions = {
|
|
1640
|
+
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
1641
|
+
sort?: InputMaybe<MissionSortParameter>;
|
|
1642
|
+
take?: InputMaybe<Scalars['Int']['input']>;
|
|
1643
|
+
};
|
|
1644
|
+
export type MissionRepoInput = {
|
|
1645
|
+
branch: Scalars['String']['input'];
|
|
1646
|
+
name: Scalars['String']['input'];
|
|
1647
|
+
owner: Scalars['String']['input'];
|
|
1648
|
+
};
|
|
1649
|
+
export type MissionRepoRef = {
|
|
1650
|
+
branch: Scalars['String']['output'];
|
|
1651
|
+
name: Scalars['String']['output'];
|
|
1652
|
+
owner: Scalars['String']['output'];
|
|
1653
|
+
};
|
|
1654
|
+
export type MissionSortParameter = {
|
|
1655
|
+
createdAt?: InputMaybe<SortOrder>;
|
|
1656
|
+
updatedAt?: InputMaybe<SortOrder>;
|
|
1657
|
+
};
|
|
1658
|
+
export type MissionStatus = 'AWAITING_USER' | 'COMPLETED' | 'FAILED' | 'INTERRUPTED' | 'PENDING' | 'RUNNING';
|
|
1581
1659
|
export type ModifyOrderAddItemInput = {
|
|
1582
1660
|
productVariantId: Scalars['ID']['input'];
|
|
1583
1661
|
quantity: Scalars['Int']['input'];
|
|
@@ -1643,8 +1721,10 @@ export type Mutation = {
|
|
|
1643
1721
|
resumeSubscription: BillingSubscription;
|
|
1644
1722
|
saveToken: PaymentGatewayToken;
|
|
1645
1723
|
selectShippingRate: Order;
|
|
1724
|
+
setCurrency: Channel;
|
|
1646
1725
|
setCustomerForOrder: Order;
|
|
1647
1726
|
setDefaultToken: PaymentGatewayToken;
|
|
1727
|
+
setLanguage: Channel;
|
|
1648
1728
|
setMarketingIdentifiers: SetMarketingIdentifiersResult;
|
|
1649
1729
|
setOrderBillingAddress: Order;
|
|
1650
1730
|
setOrderShippingAddress: Order;
|
|
@@ -1752,12 +1832,18 @@ export type MutationsaveTokenArgs = {
|
|
|
1752
1832
|
export type MutationselectShippingRateArgs = {
|
|
1753
1833
|
input: SelectRateInput;
|
|
1754
1834
|
};
|
|
1835
|
+
export type MutationsetCurrencyArgs = {
|
|
1836
|
+
currencyCode: Scalars['String']['input'];
|
|
1837
|
+
};
|
|
1755
1838
|
export type MutationsetCustomerForOrderArgs = {
|
|
1756
1839
|
input: SetCustomerInput;
|
|
1757
1840
|
};
|
|
1758
1841
|
export type MutationsetDefaultTokenArgs = {
|
|
1759
1842
|
tokenId: Scalars['ID']['input'];
|
|
1760
1843
|
};
|
|
1844
|
+
export type MutationsetLanguageArgs = {
|
|
1845
|
+
languageCode: Scalars['String']['input'];
|
|
1846
|
+
};
|
|
1761
1847
|
export type MutationsetMarketingIdentifiersArgs = {
|
|
1762
1848
|
input: SetMarketingIdentifiersInput;
|
|
1763
1849
|
};
|
|
@@ -2113,6 +2199,14 @@ export type ProductVariantDimensions = {
|
|
|
2113
2199
|
unit: DimensionUnit;
|
|
2114
2200
|
width?: Maybe<Scalars['Float']['output']>;
|
|
2115
2201
|
};
|
|
2202
|
+
export type ProductVariantPrice = {
|
|
2203
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2204
|
+
currencyCode: Scalars['String']['output'];
|
|
2205
|
+
id: Scalars['ID']['output'];
|
|
2206
|
+
price: Scalars['Int']['output'];
|
|
2207
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2208
|
+
variantId: Scalars['ID']['output'];
|
|
2209
|
+
};
|
|
2116
2210
|
export type ProductVariantSnapshot = {
|
|
2117
2211
|
createdAt: Scalars['DateTime']['output'];
|
|
2118
2212
|
id: Scalars['ID']['output'];
|
|
@@ -2389,6 +2483,10 @@ export type RemoveStockLocationFromChannelInput = {
|
|
|
2389
2483
|
channelId: Scalars['ID']['input'];
|
|
2390
2484
|
stockLocationId: Scalars['ID']['input'];
|
|
2391
2485
|
};
|
|
2486
|
+
export type ReorderShippingGatewayRoutingRulesInput = {
|
|
2487
|
+
ruleIds: Array<Scalars['ID']['input']>;
|
|
2488
|
+
stockLocationId: Scalars['ID']['input'];
|
|
2489
|
+
};
|
|
2392
2490
|
export type ReportDamagedStockInput = {
|
|
2393
2491
|
note?: InputMaybe<Scalars['String']['input']>;
|
|
2394
2492
|
quantity: Scalars['Int']['input'];
|
|
@@ -2592,6 +2690,10 @@ export type SendChatMessageInput = {
|
|
|
2592
2690
|
message: Scalars['String']['input'];
|
|
2593
2691
|
sessionId: Scalars['String']['input'];
|
|
2594
2692
|
};
|
|
2693
|
+
export type SendMissionMessageInput = {
|
|
2694
|
+
message: Scalars['String']['input'];
|
|
2695
|
+
missionId: Scalars['ID']['input'];
|
|
2696
|
+
};
|
|
2595
2697
|
export type SetBillingAddressInput = {
|
|
2596
2698
|
address: CreateAddressInput;
|
|
2597
2699
|
orderId: Scalars['ID']['input'];
|
|
@@ -2639,6 +2741,11 @@ export type SetMarketingIdentifiersResult = {
|
|
|
2639
2741
|
identityId: Scalars['ID']['output'];
|
|
2640
2742
|
rejected: Array<Scalars['String']['output']>;
|
|
2641
2743
|
};
|
|
2744
|
+
export type SetPriceInput = {
|
|
2745
|
+
currencyCode: Scalars['String']['input'];
|
|
2746
|
+
price: Scalars['Int']['input'];
|
|
2747
|
+
variantId: Scalars['ID']['input'];
|
|
2748
|
+
};
|
|
2642
2749
|
export type SetSafetyStockInput = {
|
|
2643
2750
|
safetyStock: Scalars['Int']['input'];
|
|
2644
2751
|
stockLocationId: Scalars['ID']['input'];
|
|
@@ -2702,6 +2809,29 @@ export type ShippingGatewayRateGroupLine = {
|
|
|
2702
2809
|
weightUnit?: Maybe<Scalars['String']['output']>;
|
|
2703
2810
|
width?: Maybe<Scalars['Float']['output']>;
|
|
2704
2811
|
};
|
|
2812
|
+
export type ShippingGatewayRoutingFlatRate = {
|
|
2813
|
+
amount: Scalars['Int']['output'];
|
|
2814
|
+
code: Scalars['String']['output'];
|
|
2815
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2816
|
+
currencyCode: Scalars['String']['output'];
|
|
2817
|
+
estimatedDays?: Maybe<Scalars['Int']['output']>;
|
|
2818
|
+
id: Scalars['ID']['output'];
|
|
2819
|
+
name: Scalars['String']['output'];
|
|
2820
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2821
|
+
};
|
|
2822
|
+
export type ShippingGatewayRoutingRule = {
|
|
2823
|
+
countries: Array<Country>;
|
|
2824
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2825
|
+
enabled: Scalars['Boolean']['output'];
|
|
2826
|
+
flatRates: Array<ShippingGatewayRoutingFlatRate>;
|
|
2827
|
+
fulfillmentType: ShippingRoutingFulfillmentType;
|
|
2828
|
+
id: Scalars['ID']['output'];
|
|
2829
|
+
priority: Scalars['Int']['output'];
|
|
2830
|
+
providerCode?: Maybe<Scalars['String']['output']>;
|
|
2831
|
+
scopeType: ShippingRoutingScopeType;
|
|
2832
|
+
stockLocationId: Scalars['ID']['output'];
|
|
2833
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2834
|
+
};
|
|
2705
2835
|
export type ShippingLine = {
|
|
2706
2836
|
adjustments: Array<Adjustment>;
|
|
2707
2837
|
createdAt: Scalars['DateTime']['output'];
|
|
@@ -2717,6 +2847,15 @@ export type ShippingProvider = {
|
|
|
2717
2847
|
name: Scalars['String']['output'];
|
|
2718
2848
|
pluginBacked: Scalars['Boolean']['output'];
|
|
2719
2849
|
};
|
|
2850
|
+
export type ShippingRoutingFlatRateInput = {
|
|
2851
|
+
amount: Scalars['Int']['input'];
|
|
2852
|
+
code: Scalars['String']['input'];
|
|
2853
|
+
currencyCode: Scalars['String']['input'];
|
|
2854
|
+
estimatedDays?: InputMaybe<Scalars['Int']['input']>;
|
|
2855
|
+
name: Scalars['String']['input'];
|
|
2856
|
+
};
|
|
2857
|
+
export type ShippingRoutingFulfillmentType = 'MANUAL' | 'PROVIDER';
|
|
2858
|
+
export type ShippingRoutingScopeType = 'COUNTRIES' | 'DOMESTIC' | 'INTERNATIONAL';
|
|
2720
2859
|
export type ShopAddItemToOrderInput = {
|
|
2721
2860
|
quantity: Scalars['Int']['input'];
|
|
2722
2861
|
variantId: Scalars['ID']['input'];
|
|
@@ -2734,6 +2873,10 @@ export type SplitFulfillmentRequestLineInput = {
|
|
|
2734
2873
|
orderLineId: Scalars['ID']['input'];
|
|
2735
2874
|
quantity: Scalars['Int']['input'];
|
|
2736
2875
|
};
|
|
2876
|
+
export type StartChatSessionInput = {
|
|
2877
|
+
origin?: InputMaybe<Scalars['String']['input']>;
|
|
2878
|
+
title?: InputMaybe<Scalars['String']['input']>;
|
|
2879
|
+
};
|
|
2737
2880
|
export type StockLevel = {
|
|
2738
2881
|
id: Scalars['ID']['output'];
|
|
2739
2882
|
safetyStock: Scalars['Int']['output'];
|
|
@@ -2984,6 +3127,7 @@ export type UpdateCarrierInput = {
|
|
|
2984
3127
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
2985
3128
|
};
|
|
2986
3129
|
export type UpdateChannelInput = {
|
|
3130
|
+
availableCurrencyCodes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
2987
3131
|
availableLanguageCodes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
2988
3132
|
code?: InputMaybe<Scalars['String']['input']>;
|
|
2989
3133
|
defaultCurrencyCode?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -3002,6 +3146,7 @@ export type UpdateChannelPluginConfigInput = {
|
|
|
3002
3146
|
id: Scalars['ID']['input'];
|
|
3003
3147
|
};
|
|
3004
3148
|
export type UpdateChannelSettingsInput = {
|
|
3149
|
+
autoCurrencyExchange?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3005
3150
|
chargeTaxOnShipping?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3006
3151
|
companyAddress?: InputMaybe<CompanyAddressInput>;
|
|
3007
3152
|
defaultDeploymentProviderCode?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -3009,7 +3154,8 @@ export type UpdateChannelSettingsInput = {
|
|
|
3009
3154
|
defaultFulfillmentHandlerCode?: InputMaybe<Scalars['String']['input']>;
|
|
3010
3155
|
defaultPaymentProviderCode?: InputMaybe<Scalars['String']['input']>;
|
|
3011
3156
|
defaultWeightUnit?: InputMaybe<WeightUnit>;
|
|
3012
|
-
|
|
3157
|
+
fxMarkupPercent?: InputMaybe<Scalars['Float']['input']>;
|
|
3158
|
+
fxRoundingRule?: InputMaybe<Scalars['String']['input']>;
|
|
3013
3159
|
requireCustomerForCheckout?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3014
3160
|
requiresShippingAddressValidation?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3015
3161
|
shopName?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -3105,6 +3251,14 @@ export type UpdateManageablePluginInput = {
|
|
|
3105
3251
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
3106
3252
|
toggable?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3107
3253
|
};
|
|
3254
|
+
export type UpdateMarketInput = {
|
|
3255
|
+
countryCodes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
3256
|
+
currencyCode?: InputMaybe<Scalars['String']['input']>;
|
|
3257
|
+
enabled?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3258
|
+
id: Scalars['ID']['input'];
|
|
3259
|
+
languageCode?: InputMaybe<Scalars['String']['input']>;
|
|
3260
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
3261
|
+
};
|
|
3108
3262
|
export type UpdateOnboardingProfileInput = {
|
|
3109
3263
|
/**
|
|
3110
3264
|
* When `true`, marks the profile step complete and advances
|
|
@@ -3211,6 +3365,16 @@ export type UpdateSellerInput = {
|
|
|
3211
3365
|
id: Scalars['ID']['input'];
|
|
3212
3366
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
3213
3367
|
};
|
|
3368
|
+
export type UpdateShippingGatewayRoutingRuleInput = {
|
|
3369
|
+
countryCodes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
3370
|
+
enabled?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3371
|
+
flatRates?: InputMaybe<Array<ShippingRoutingFlatRateInput>>;
|
|
3372
|
+
fulfillmentType?: InputMaybe<ShippingRoutingFulfillmentType>;
|
|
3373
|
+
id: Scalars['ID']['input'];
|
|
3374
|
+
priority?: InputMaybe<Scalars['Int']['input']>;
|
|
3375
|
+
providerCode?: InputMaybe<Scalars['String']['input']>;
|
|
3376
|
+
scopeType?: InputMaybe<ShippingRoutingScopeType>;
|
|
3377
|
+
};
|
|
3214
3378
|
export type UpdateShippingLabelInput = {
|
|
3215
3379
|
carrier?: InputMaybe<Scalars['String']['input']>;
|
|
3216
3380
|
labelId: Scalars['ID']['input'];
|
|
@@ -4040,6 +4204,19 @@ export type RemoveItemsFromOrderMutation = {
|
|
|
4040
4204
|
errors: Array<Pick<BatchOrderLineError, 'index' | 'errorCode' | 'variables'>>;
|
|
4041
4205
|
};
|
|
4042
4206
|
};
|
|
4207
|
+
export type ShopChannelFieldFragment = Pick<Channel, 'id' | 'code' | 'defaultLanguageCode' | 'defaultCurrencyCode' | 'availableLanguageCodes' | 'availableCurrencyCodes' | 'pricesIncludeTax'>;
|
|
4208
|
+
export type SetCurrencyMutationVariables = Exact<{
|
|
4209
|
+
currencyCode: Scalars['String']['input'];
|
|
4210
|
+
}>;
|
|
4211
|
+
export type SetCurrencyMutation = {
|
|
4212
|
+
setCurrency: Pick<Channel, 'id' | 'code' | 'defaultLanguageCode' | 'defaultCurrencyCode' | 'availableLanguageCodes' | 'availableCurrencyCodes' | 'pricesIncludeTax'>;
|
|
4213
|
+
};
|
|
4214
|
+
export type SetLanguageMutationVariables = Exact<{
|
|
4215
|
+
languageCode: Scalars['String']['input'];
|
|
4216
|
+
}>;
|
|
4217
|
+
export type SetLanguageMutation = {
|
|
4218
|
+
setLanguage: Pick<Channel, 'id' | 'code' | 'defaultLanguageCode' | 'defaultCurrencyCode' | 'availableLanguageCodes' | 'availableCurrencyCodes' | 'pricesIncludeTax'>;
|
|
4219
|
+
};
|
|
4043
4220
|
export type SetOrderShippingAddressMutationVariables = Exact<{
|
|
4044
4221
|
input: CreateAddressInput;
|
|
4045
4222
|
}>;
|
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.202606151453.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
|
+
}
|