@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
|
@@ -1607,13 +1607,9 @@ fragment ChannelSettingsField on ChannelSettings {
|
|
|
1607
1607
|
defaultPaymentProviderCode
|
|
1608
1608
|
defaultWeightUnit
|
|
1609
1609
|
defaultDimensionUnit
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
amount
|
|
1614
|
-
currency
|
|
1615
|
-
estimatedDays
|
|
1616
|
-
}
|
|
1610
|
+
autoCurrencyExchange
|
|
1611
|
+
fxRoundingRule
|
|
1612
|
+
fxMarkupPercent
|
|
1617
1613
|
}`;
|
|
1618
1614
|
|
|
1619
1615
|
export const adminChannelUpdateSettingsDocument = `mutation ChannelUpdateSettings($input: UpdateChannelSettingsInput!) {
|
|
@@ -1632,13 +1628,9 @@ fragment ChannelSettingsField on ChannelSettings {
|
|
|
1632
1628
|
defaultPaymentProviderCode
|
|
1633
1629
|
defaultWeightUnit
|
|
1634
1630
|
defaultDimensionUnit
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
amount
|
|
1639
|
-
currency
|
|
1640
|
-
estimatedDays
|
|
1641
|
-
}
|
|
1631
|
+
autoCurrencyExchange
|
|
1632
|
+
fxRoundingRule
|
|
1633
|
+
fxMarkupPercent
|
|
1642
1634
|
}`;
|
|
1643
1635
|
|
|
1644
1636
|
export const adminChannelDocument = `query Channel($id: ID!) {
|
|
@@ -1772,13 +1764,9 @@ fragment ChannelSettingsField on ChannelSettings {
|
|
|
1772
1764
|
defaultPaymentProviderCode
|
|
1773
1765
|
defaultWeightUnit
|
|
1774
1766
|
defaultDimensionUnit
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
amount
|
|
1779
|
-
currency
|
|
1780
|
-
estimatedDays
|
|
1781
|
-
}
|
|
1767
|
+
autoCurrencyExchange
|
|
1768
|
+
fxRoundingRule
|
|
1769
|
+
fxMarkupPercent
|
|
1782
1770
|
}`;
|
|
1783
1771
|
|
|
1784
1772
|
export const adminProvisionChannelDocument = `mutation ProvisionChannel($input: ProvisionChannelInput!) {
|
|
@@ -1830,17 +1818,13 @@ fragment ChannelSettingsField on ChannelSettings {
|
|
|
1830
1818
|
defaultPaymentProviderCode
|
|
1831
1819
|
defaultWeightUnit
|
|
1832
1820
|
defaultDimensionUnit
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
amount
|
|
1837
|
-
currency
|
|
1838
|
-
estimatedDays
|
|
1839
|
-
}
|
|
1821
|
+
autoCurrencyExchange
|
|
1822
|
+
fxRoundingRule
|
|
1823
|
+
fxMarkupPercent
|
|
1840
1824
|
}`;
|
|
1841
1825
|
|
|
1842
|
-
export const adminStartChatSessionDocument = `mutation StartChatSession {
|
|
1843
|
-
startChatSession {
|
|
1826
|
+
export const adminStartChatSessionDocument = `mutation StartChatSession($input: StartChatSessionInput) {
|
|
1827
|
+
startChatSession(input: $input) {
|
|
1844
1828
|
...ChatSessionField
|
|
1845
1829
|
}
|
|
1846
1830
|
}
|
|
@@ -1947,6 +1931,62 @@ export const adminChatQueueDocument = `query ChatQueue($sessionId: ID!) {
|
|
|
1947
1931
|
}
|
|
1948
1932
|
}`;
|
|
1949
1933
|
|
|
1934
|
+
export const adminChatHistoryDocument = `query ChatHistory($input: ChatHistoryInput!) {
|
|
1935
|
+
chatHistory(input: $input) {
|
|
1936
|
+
...ChatHistoryMessageField
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
fragment ChatHistoryMessageField on ChatHistoryMessage {
|
|
1941
|
+
id
|
|
1942
|
+
role
|
|
1943
|
+
content
|
|
1944
|
+
toolUse
|
|
1945
|
+
toolResult
|
|
1946
|
+
seq
|
|
1947
|
+
eventId
|
|
1948
|
+
timestamp
|
|
1949
|
+
}`;
|
|
1950
|
+
|
|
1951
|
+
export const adminChatSessionsDocument = `query ChatSessions($input: ChatSessionsInput) {
|
|
1952
|
+
chatSessions(input: $input) {
|
|
1953
|
+
items {
|
|
1954
|
+
...ChatSessionSummaryField
|
|
1955
|
+
}
|
|
1956
|
+
totalItems
|
|
1957
|
+
}
|
|
1958
|
+
}
|
|
1959
|
+
|
|
1960
|
+
fragment ChatSessionSummaryField on ChatSessionSummary {
|
|
1961
|
+
id
|
|
1962
|
+
agentSessionId
|
|
1963
|
+
title
|
|
1964
|
+
status
|
|
1965
|
+
origin
|
|
1966
|
+
messageCount
|
|
1967
|
+
lastActivityAt
|
|
1968
|
+
createdAt
|
|
1969
|
+
workspaceId
|
|
1970
|
+
}`;
|
|
1971
|
+
|
|
1972
|
+
export const adminArchiveChatSessionDocument = `mutation ArchiveChatSession($sessionId: ID!) {
|
|
1973
|
+
archiveChatSession(sessionId: $sessionId)
|
|
1974
|
+
}`;
|
|
1975
|
+
|
|
1976
|
+
export const adminWorkspaceReadinessDocument = `subscription WorkspaceReadiness {
|
|
1977
|
+
workspaceReadiness {
|
|
1978
|
+
...WorkspaceReadinessField
|
|
1979
|
+
}
|
|
1980
|
+
}
|
|
1981
|
+
|
|
1982
|
+
fragment WorkspaceReadinessField on WorkspaceReadiness {
|
|
1983
|
+
workspaceId
|
|
1984
|
+
podState
|
|
1985
|
+
serverState
|
|
1986
|
+
chatBindingState
|
|
1987
|
+
endpoint
|
|
1988
|
+
}`;
|
|
1989
|
+
|
|
1950
1990
|
export const adminAdminCollectionDocument = `query AdminCollection($id: ID!) {
|
|
1951
1991
|
collection(id: $id) {
|
|
1952
1992
|
...CollectionField
|
|
@@ -3949,6 +3989,85 @@ export const adminEmitDocument = `mutation Emit($input: EmitCustomEventInput!) {
|
|
|
3949
3989
|
emit(input: $input)
|
|
3950
3990
|
}`;
|
|
3951
3991
|
|
|
3992
|
+
export const adminMarketsDocument = `query Markets($options: ListQueryOptions) {
|
|
3993
|
+
markets(options: $options) {
|
|
3994
|
+
items {
|
|
3995
|
+
...MarketField
|
|
3996
|
+
}
|
|
3997
|
+
totalItems
|
|
3998
|
+
}
|
|
3999
|
+
}
|
|
4000
|
+
|
|
4001
|
+
fragment MarketField on Market {
|
|
4002
|
+
id
|
|
4003
|
+
createdAt
|
|
4004
|
+
updatedAt
|
|
4005
|
+
name
|
|
4006
|
+
enabled
|
|
4007
|
+
currencyCode
|
|
4008
|
+
languageCode
|
|
4009
|
+
channelId
|
|
4010
|
+
countries {
|
|
4011
|
+
id
|
|
4012
|
+
code
|
|
4013
|
+
name
|
|
4014
|
+
enabled
|
|
4015
|
+
}
|
|
4016
|
+
}`;
|
|
4017
|
+
|
|
4018
|
+
export const adminCreateMarketDocument = `mutation CreateMarket($input: CreateMarketInput!) {
|
|
4019
|
+
createMarket(input: $input) {
|
|
4020
|
+
...MarketField
|
|
4021
|
+
}
|
|
4022
|
+
}
|
|
4023
|
+
|
|
4024
|
+
fragment MarketField on Market {
|
|
4025
|
+
id
|
|
4026
|
+
createdAt
|
|
4027
|
+
updatedAt
|
|
4028
|
+
name
|
|
4029
|
+
enabled
|
|
4030
|
+
currencyCode
|
|
4031
|
+
languageCode
|
|
4032
|
+
channelId
|
|
4033
|
+
countries {
|
|
4034
|
+
id
|
|
4035
|
+
code
|
|
4036
|
+
name
|
|
4037
|
+
enabled
|
|
4038
|
+
}
|
|
4039
|
+
}`;
|
|
4040
|
+
|
|
4041
|
+
export const adminUpdateMarketDocument = `mutation UpdateMarket($input: UpdateMarketInput!) {
|
|
4042
|
+
updateMarket(input: $input) {
|
|
4043
|
+
...MarketField
|
|
4044
|
+
}
|
|
4045
|
+
}
|
|
4046
|
+
|
|
4047
|
+
fragment MarketField on Market {
|
|
4048
|
+
id
|
|
4049
|
+
createdAt
|
|
4050
|
+
updatedAt
|
|
4051
|
+
name
|
|
4052
|
+
enabled
|
|
4053
|
+
currencyCode
|
|
4054
|
+
languageCode
|
|
4055
|
+
channelId
|
|
4056
|
+
countries {
|
|
4057
|
+
id
|
|
4058
|
+
code
|
|
4059
|
+
name
|
|
4060
|
+
enabled
|
|
4061
|
+
}
|
|
4062
|
+
}`;
|
|
4063
|
+
|
|
4064
|
+
export const adminDeleteMarketDocument = `mutation DeleteMarket($id: ID!) {
|
|
4065
|
+
deleteMarket(id: $id) {
|
|
4066
|
+
result
|
|
4067
|
+
message
|
|
4068
|
+
}
|
|
4069
|
+
}`;
|
|
4070
|
+
|
|
3952
4071
|
export const adminAdminAttributionByOrderDocument = `query AdminAttributionByOrder($input: AttributionByOrderInput!) {
|
|
3953
4072
|
attributionByOrder(input: $input) {
|
|
3954
4073
|
id
|
|
@@ -4128,6 +4247,195 @@ fragment AdminMarketingIdentityIdentifierFields on MarketingIdentityIdentifier {
|
|
|
4128
4247
|
position
|
|
4129
4248
|
}`;
|
|
4130
4249
|
|
|
4250
|
+
export const adminAdminMissionsDocument = `query AdminMissions($options: MissionListOptions) {
|
|
4251
|
+
missions(options: $options) {
|
|
4252
|
+
items {
|
|
4253
|
+
...MissionField
|
|
4254
|
+
}
|
|
4255
|
+
totalItems
|
|
4256
|
+
}
|
|
4257
|
+
}
|
|
4258
|
+
|
|
4259
|
+
fragment MissionField on Mission {
|
|
4260
|
+
id
|
|
4261
|
+
status
|
|
4262
|
+
title
|
|
4263
|
+
model
|
|
4264
|
+
repos {
|
|
4265
|
+
...MissionRepoRefField
|
|
4266
|
+
}
|
|
4267
|
+
branch
|
|
4268
|
+
prUrl
|
|
4269
|
+
podRef
|
|
4270
|
+
costCents
|
|
4271
|
+
channelId
|
|
4272
|
+
administratorId
|
|
4273
|
+
workspaceId
|
|
4274
|
+
createdAt
|
|
4275
|
+
updatedAt
|
|
4276
|
+
}
|
|
4277
|
+
|
|
4278
|
+
fragment MissionRepoRefField on MissionRepoRef {
|
|
4279
|
+
owner
|
|
4280
|
+
name
|
|
4281
|
+
branch
|
|
4282
|
+
}`;
|
|
4283
|
+
|
|
4284
|
+
export const adminAdminMissionDocument = `query AdminMission($id: ID!) {
|
|
4285
|
+
mission(id: $id) {
|
|
4286
|
+
...MissionField
|
|
4287
|
+
}
|
|
4288
|
+
}
|
|
4289
|
+
|
|
4290
|
+
fragment MissionField on Mission {
|
|
4291
|
+
id
|
|
4292
|
+
status
|
|
4293
|
+
title
|
|
4294
|
+
model
|
|
4295
|
+
repos {
|
|
4296
|
+
...MissionRepoRefField
|
|
4297
|
+
}
|
|
4298
|
+
branch
|
|
4299
|
+
prUrl
|
|
4300
|
+
podRef
|
|
4301
|
+
costCents
|
|
4302
|
+
channelId
|
|
4303
|
+
administratorId
|
|
4304
|
+
workspaceId
|
|
4305
|
+
createdAt
|
|
4306
|
+
updatedAt
|
|
4307
|
+
}
|
|
4308
|
+
|
|
4309
|
+
fragment MissionRepoRefField on MissionRepoRef {
|
|
4310
|
+
owner
|
|
4311
|
+
name
|
|
4312
|
+
branch
|
|
4313
|
+
}`;
|
|
4314
|
+
|
|
4315
|
+
export const adminAdminCreateMissionDocument = `mutation AdminCreateMission($input: CreateMissionInput!) {
|
|
4316
|
+
createMission(input: $input) {
|
|
4317
|
+
...MissionField
|
|
4318
|
+
}
|
|
4319
|
+
}
|
|
4320
|
+
|
|
4321
|
+
fragment MissionField on Mission {
|
|
4322
|
+
id
|
|
4323
|
+
status
|
|
4324
|
+
title
|
|
4325
|
+
model
|
|
4326
|
+
repos {
|
|
4327
|
+
...MissionRepoRefField
|
|
4328
|
+
}
|
|
4329
|
+
branch
|
|
4330
|
+
prUrl
|
|
4331
|
+
podRef
|
|
4332
|
+
costCents
|
|
4333
|
+
channelId
|
|
4334
|
+
administratorId
|
|
4335
|
+
workspaceId
|
|
4336
|
+
createdAt
|
|
4337
|
+
updatedAt
|
|
4338
|
+
}
|
|
4339
|
+
|
|
4340
|
+
fragment MissionRepoRefField on MissionRepoRef {
|
|
4341
|
+
owner
|
|
4342
|
+
name
|
|
4343
|
+
branch
|
|
4344
|
+
}`;
|
|
4345
|
+
|
|
4346
|
+
export const adminAdminCancelMissionDocument = `mutation AdminCancelMission($id: ID!) {
|
|
4347
|
+
cancelMission(id: $id) {
|
|
4348
|
+
...MissionField
|
|
4349
|
+
}
|
|
4350
|
+
}
|
|
4351
|
+
|
|
4352
|
+
fragment MissionField on Mission {
|
|
4353
|
+
id
|
|
4354
|
+
status
|
|
4355
|
+
title
|
|
4356
|
+
model
|
|
4357
|
+
repos {
|
|
4358
|
+
...MissionRepoRefField
|
|
4359
|
+
}
|
|
4360
|
+
branch
|
|
4361
|
+
prUrl
|
|
4362
|
+
podRef
|
|
4363
|
+
costCents
|
|
4364
|
+
channelId
|
|
4365
|
+
administratorId
|
|
4366
|
+
workspaceId
|
|
4367
|
+
createdAt
|
|
4368
|
+
updatedAt
|
|
4369
|
+
}
|
|
4370
|
+
|
|
4371
|
+
fragment MissionRepoRefField on MissionRepoRef {
|
|
4372
|
+
owner
|
|
4373
|
+
name
|
|
4374
|
+
branch
|
|
4375
|
+
}`;
|
|
4376
|
+
|
|
4377
|
+
export const adminAdminDeleteMissionDocument = `mutation AdminDeleteMission($id: ID!) {
|
|
4378
|
+
deleteMission(id: $id) {
|
|
4379
|
+
...MissionField
|
|
4380
|
+
}
|
|
4381
|
+
}
|
|
4382
|
+
|
|
4383
|
+
fragment MissionField on Mission {
|
|
4384
|
+
id
|
|
4385
|
+
status
|
|
4386
|
+
title
|
|
4387
|
+
model
|
|
4388
|
+
repos {
|
|
4389
|
+
...MissionRepoRefField
|
|
4390
|
+
}
|
|
4391
|
+
branch
|
|
4392
|
+
prUrl
|
|
4393
|
+
podRef
|
|
4394
|
+
costCents
|
|
4395
|
+
channelId
|
|
4396
|
+
administratorId
|
|
4397
|
+
workspaceId
|
|
4398
|
+
createdAt
|
|
4399
|
+
updatedAt
|
|
4400
|
+
}
|
|
4401
|
+
|
|
4402
|
+
fragment MissionRepoRefField on MissionRepoRef {
|
|
4403
|
+
owner
|
|
4404
|
+
name
|
|
4405
|
+
branch
|
|
4406
|
+
}`;
|
|
4407
|
+
|
|
4408
|
+
export const adminAdminSendMissionMessageDocument = `mutation AdminSendMissionMessage($input: SendMissionMessageInput!) {
|
|
4409
|
+
sendMissionMessage(input: $input) {
|
|
4410
|
+
...MissionField
|
|
4411
|
+
}
|
|
4412
|
+
}
|
|
4413
|
+
|
|
4414
|
+
fragment MissionField on Mission {
|
|
4415
|
+
id
|
|
4416
|
+
status
|
|
4417
|
+
title
|
|
4418
|
+
model
|
|
4419
|
+
repos {
|
|
4420
|
+
...MissionRepoRefField
|
|
4421
|
+
}
|
|
4422
|
+
branch
|
|
4423
|
+
prUrl
|
|
4424
|
+
podRef
|
|
4425
|
+
costCents
|
|
4426
|
+
channelId
|
|
4427
|
+
administratorId
|
|
4428
|
+
workspaceId
|
|
4429
|
+
createdAt
|
|
4430
|
+
updatedAt
|
|
4431
|
+
}
|
|
4432
|
+
|
|
4433
|
+
fragment MissionRepoRefField on MissionRepoRef {
|
|
4434
|
+
owner
|
|
4435
|
+
name
|
|
4436
|
+
branch
|
|
4437
|
+
}`;
|
|
4438
|
+
|
|
4131
4439
|
export const adminActiveOnboardingDocument = `query ActiveOnboarding {
|
|
4132
4440
|
activeOnboarding {
|
|
4133
4441
|
onboarding {
|
|
@@ -15373,6 +15681,21 @@ export const adminDeleteProductVariantsDocument = `mutation DeleteProductVariant
|
|
|
15373
15681
|
}
|
|
15374
15682
|
}`;
|
|
15375
15683
|
|
|
15684
|
+
export const adminSetProductVariantPriceDocument = `mutation SetProductVariantPrice($input: SetPriceInput!) {
|
|
15685
|
+
setProductVariantPrice(input: $input) {
|
|
15686
|
+
...ProductVariantPriceField
|
|
15687
|
+
}
|
|
15688
|
+
}
|
|
15689
|
+
|
|
15690
|
+
fragment ProductVariantPriceField on ProductVariantPrice {
|
|
15691
|
+
id
|
|
15692
|
+
createdAt
|
|
15693
|
+
updatedAt
|
|
15694
|
+
price
|
|
15695
|
+
currencyCode
|
|
15696
|
+
variantId
|
|
15697
|
+
}`;
|
|
15698
|
+
|
|
15376
15699
|
export const adminAdminProductDocument = `query AdminProduct($id: ID!) {
|
|
15377
15700
|
product(id: $id) {
|
|
15378
15701
|
...ProductField
|
|
@@ -17704,6 +18027,126 @@ export const adminAvailableShippingProvidersDocument = `query AvailableShippingP
|
|
|
17704
18027
|
}
|
|
17705
18028
|
}`;
|
|
17706
18029
|
|
|
18030
|
+
export const adminShippingGatewayRoutingRulesDocument = `query ShippingGatewayRoutingRules($stockLocationId: ID!) {
|
|
18031
|
+
shippingGatewayRoutingRules(stockLocationId: $stockLocationId) {
|
|
18032
|
+
...ShippingGatewayRoutingRuleField
|
|
18033
|
+
}
|
|
18034
|
+
}
|
|
18035
|
+
|
|
18036
|
+
fragment ShippingGatewayRoutingRuleField on ShippingGatewayRoutingRule {
|
|
18037
|
+
id
|
|
18038
|
+
stockLocationId
|
|
18039
|
+
scopeType
|
|
18040
|
+
fulfillmentType
|
|
18041
|
+
providerCode
|
|
18042
|
+
priority
|
|
18043
|
+
enabled
|
|
18044
|
+
countries {
|
|
18045
|
+
id
|
|
18046
|
+
code
|
|
18047
|
+
name
|
|
18048
|
+
}
|
|
18049
|
+
flatRates {
|
|
18050
|
+
id
|
|
18051
|
+
code
|
|
18052
|
+
name
|
|
18053
|
+
amount
|
|
18054
|
+
currencyCode
|
|
18055
|
+
estimatedDays
|
|
18056
|
+
}
|
|
18057
|
+
}`;
|
|
18058
|
+
|
|
18059
|
+
export const adminCreateShippingGatewayRoutingRuleDocument = `mutation CreateShippingGatewayRoutingRule($input: CreateShippingGatewayRoutingRuleInput!) {
|
|
18060
|
+
createShippingGatewayRoutingRule(input: $input) {
|
|
18061
|
+
...ShippingGatewayRoutingRuleField
|
|
18062
|
+
}
|
|
18063
|
+
}
|
|
18064
|
+
|
|
18065
|
+
fragment ShippingGatewayRoutingRuleField on ShippingGatewayRoutingRule {
|
|
18066
|
+
id
|
|
18067
|
+
stockLocationId
|
|
18068
|
+
scopeType
|
|
18069
|
+
fulfillmentType
|
|
18070
|
+
providerCode
|
|
18071
|
+
priority
|
|
18072
|
+
enabled
|
|
18073
|
+
countries {
|
|
18074
|
+
id
|
|
18075
|
+
code
|
|
18076
|
+
name
|
|
18077
|
+
}
|
|
18078
|
+
flatRates {
|
|
18079
|
+
id
|
|
18080
|
+
code
|
|
18081
|
+
name
|
|
18082
|
+
amount
|
|
18083
|
+
currencyCode
|
|
18084
|
+
estimatedDays
|
|
18085
|
+
}
|
|
18086
|
+
}`;
|
|
18087
|
+
|
|
18088
|
+
export const adminUpdateShippingGatewayRoutingRuleDocument = `mutation UpdateShippingGatewayRoutingRule($input: UpdateShippingGatewayRoutingRuleInput!) {
|
|
18089
|
+
updateShippingGatewayRoutingRule(input: $input) {
|
|
18090
|
+
...ShippingGatewayRoutingRuleField
|
|
18091
|
+
}
|
|
18092
|
+
}
|
|
18093
|
+
|
|
18094
|
+
fragment ShippingGatewayRoutingRuleField on ShippingGatewayRoutingRule {
|
|
18095
|
+
id
|
|
18096
|
+
stockLocationId
|
|
18097
|
+
scopeType
|
|
18098
|
+
fulfillmentType
|
|
18099
|
+
providerCode
|
|
18100
|
+
priority
|
|
18101
|
+
enabled
|
|
18102
|
+
countries {
|
|
18103
|
+
id
|
|
18104
|
+
code
|
|
18105
|
+
name
|
|
18106
|
+
}
|
|
18107
|
+
flatRates {
|
|
18108
|
+
id
|
|
18109
|
+
code
|
|
18110
|
+
name
|
|
18111
|
+
amount
|
|
18112
|
+
currencyCode
|
|
18113
|
+
estimatedDays
|
|
18114
|
+
}
|
|
18115
|
+
}`;
|
|
18116
|
+
|
|
18117
|
+
export const adminDeleteShippingGatewayRoutingRuleDocument = `mutation DeleteShippingGatewayRoutingRule($id: ID!) {
|
|
18118
|
+
deleteShippingGatewayRoutingRule(id: $id)
|
|
18119
|
+
}`;
|
|
18120
|
+
|
|
18121
|
+
export const adminReorderShippingGatewayRoutingRulesDocument = `mutation ReorderShippingGatewayRoutingRules($input: ReorderShippingGatewayRoutingRulesInput!) {
|
|
18122
|
+
reorderShippingGatewayRoutingRules(input: $input) {
|
|
18123
|
+
...ShippingGatewayRoutingRuleField
|
|
18124
|
+
}
|
|
18125
|
+
}
|
|
18126
|
+
|
|
18127
|
+
fragment ShippingGatewayRoutingRuleField on ShippingGatewayRoutingRule {
|
|
18128
|
+
id
|
|
18129
|
+
stockLocationId
|
|
18130
|
+
scopeType
|
|
18131
|
+
fulfillmentType
|
|
18132
|
+
providerCode
|
|
18133
|
+
priority
|
|
18134
|
+
enabled
|
|
18135
|
+
countries {
|
|
18136
|
+
id
|
|
18137
|
+
code
|
|
18138
|
+
name
|
|
18139
|
+
}
|
|
18140
|
+
flatRates {
|
|
18141
|
+
id
|
|
18142
|
+
code
|
|
18143
|
+
name
|
|
18144
|
+
amount
|
|
18145
|
+
currencyCode
|
|
18146
|
+
estimatedDays
|
|
18147
|
+
}
|
|
18148
|
+
}`;
|
|
18149
|
+
|
|
17707
18150
|
export const adminStockLocationDocument = `query StockLocation($id: ID!) {
|
|
17708
18151
|
stockLocation(id: $id) {
|
|
17709
18152
|
...StockLocationField
|
|
@@ -21998,6 +22441,38 @@ fragment ShopPaymentTokenField on PaymentGatewayToken {
|
|
|
21998
22441
|
updatedAt
|
|
21999
22442
|
}`;
|
|
22000
22443
|
|
|
22444
|
+
export const shopSetCurrencyDocument = `mutation SetCurrency($currencyCode: String!) {
|
|
22445
|
+
setCurrency(currencyCode: $currencyCode) {
|
|
22446
|
+
...ShopChannelField
|
|
22447
|
+
}
|
|
22448
|
+
}
|
|
22449
|
+
|
|
22450
|
+
fragment ShopChannelField on Channel {
|
|
22451
|
+
id
|
|
22452
|
+
code
|
|
22453
|
+
defaultLanguageCode
|
|
22454
|
+
defaultCurrencyCode
|
|
22455
|
+
availableLanguageCodes
|
|
22456
|
+
availableCurrencyCodes
|
|
22457
|
+
pricesIncludeTax
|
|
22458
|
+
}`;
|
|
22459
|
+
|
|
22460
|
+
export const shopSetLanguageDocument = `mutation SetLanguage($languageCode: String!) {
|
|
22461
|
+
setLanguage(languageCode: $languageCode) {
|
|
22462
|
+
...ShopChannelField
|
|
22463
|
+
}
|
|
22464
|
+
}
|
|
22465
|
+
|
|
22466
|
+
fragment ShopChannelField on Channel {
|
|
22467
|
+
id
|
|
22468
|
+
code
|
|
22469
|
+
defaultLanguageCode
|
|
22470
|
+
defaultCurrencyCode
|
|
22471
|
+
availableLanguageCodes
|
|
22472
|
+
availableCurrencyCodes
|
|
22473
|
+
pricesIncludeTax
|
|
22474
|
+
}`;
|
|
22475
|
+
|
|
22001
22476
|
export const shopSetOrderShippingAddressDocument = `mutation SetOrderShippingAddress($input: CreateAddressInput!) {
|
|
22002
22477
|
setOrderShippingAddress(input: $input) {
|
|
22003
22478
|
...ShopOrderField
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface ExtractedError {
|
|
2
|
+
code: string;
|
|
3
|
+
variables: Record<string, string>;
|
|
4
|
+
classification: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Extract the structured error code from a ClientError.
|
|
9
|
+
* Returns null if the error has no GraphQL error code.
|
|
10
|
+
*/
|
|
11
|
+
export declare function extractErrorCode(error: unknown): string | null;
|
|
12
|
+
/**
|
|
13
|
+
* Extract full structured error info from a ClientError.
|
|
14
|
+
* Returns null if the error has no GraphQL extensions.
|
|
15
|
+
*/
|
|
16
|
+
export declare function extractError(error: unknown): ExtractedError | null;
|
|
17
|
+
/**
|
|
18
|
+
* Extract the localized error message from a ClientError.
|
|
19
|
+
* Returns null if the error has no localized message.
|
|
20
|
+
*/
|
|
21
|
+
export declare function extractErrorMessage(error: unknown): string | null;
|
|
22
|
+
/**
|
|
23
|
+
* Check if an error has a specific error code.
|
|
24
|
+
*/
|
|
25
|
+
export declare function isErrorCode(error: unknown, code: string): boolean;
|