-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathschema.graphql
4533 lines (4106 loc) · 111 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# This file was generated based on ".graphqlconfig". Do not edit manually.
schema {
query: Query
mutation: Mutation
}
interface CustomField {
description: [LocalizedString!]
internal: Boolean
label: [LocalizedString!]
list: Boolean!
name: String!
nullable: Boolean
readonly: Boolean
type: String!
ui: JSON
}
interface ErrorResult {
errorCode: ErrorCode!
message: String!
}
interface Node {
id: ID!
}
interface PaginatedList {
items: [Node!]!
totalItems: Int!
}
interface StockMovement {
createdAt: DateTime!
id: ID!
productVariant: ProductVariant!
quantity: Int!
type: StockMovementType!
updatedAt: DateTime!
}
union AddFulfillmentToOrderResult = CreateFulfillmentError | EmptyOrderLineSelectionError | Fulfillment | FulfillmentStateTransitionError | InsufficientStockOnHandError | InvalidFulfillmentHandlerError | ItemsAlreadyFulfilledError
union AddManualPaymentToOrderResult = ManualPaymentStateError | Order
union ApplyCouponCodeResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | Order
union AuthenticationResult = CurrentUser | InvalidCredentialsError
union CancelOrderResult = CancelActiveOrderError | EmptyOrderLineSelectionError | MultipleOrderError | Order | OrderStateTransitionError | QuantityTooGreatError
union CancelPaymentResult = CancelPaymentError | Payment | PaymentStateTransitionError
union CreateAssetResult = Asset | MimeTypeError
union CreateChannelResult = Channel | LanguageNotAvailableError
union CreateCustomerResult = Customer | EmailAddressConflictError
union CreatePromotionResult = MissingConditionsError | Promotion
union CustomFieldConfig = BooleanCustomFieldConfig | DateTimeCustomFieldConfig | FloatCustomFieldConfig | IntCustomFieldConfig | LocaleStringCustomFieldConfig | RelationCustomFieldConfig | StringCustomFieldConfig | TextCustomFieldConfig
union ModifyOrderResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | InsufficientStockError | NegativeQuantityError | NoChangesSpecifiedError | Order | OrderLimitError | OrderModificationStateError | PaymentMethodMissingError | RefundPaymentIdMissingError
union NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError
union RefundOrderResult = AlreadyRefundedError | MultipleOrderError | NothingToRefundError | OrderStateTransitionError | PaymentOrderMismatchError | QuantityTooGreatError | Refund | RefundOrderStateError | RefundStateTransitionError
union RemoveFacetFromChannelResult = Facet | FacetInUseError
union RemoveOptionGroupFromProductResult = Product | ProductOptionInUseError
union RemoveOrderItemsResult = Order | OrderModificationError
"The price of a search result product, either as a range or as a single price"
union SearchResultPrice = PriceRange | SinglePrice
union SetCustomerForDraftOrderResult = EmailAddressConflictError | Order
union SetOrderShippingMethodResult = IneligibleShippingMethodError | NoActiveOrderError | Order | OrderModificationError
union SettlePaymentResult = OrderStateTransitionError | Payment | PaymentStateTransitionError | SettlePaymentError
union SettleRefundResult = Refund | RefundStateTransitionError
union StockMovementItem = Allocation | Cancellation | Release | Return | Sale | StockAdjustment
union TransitionFulfillmentToStateResult = Fulfillment | FulfillmentStateTransitionError
union TransitionOrderToStateResult = Order | OrderStateTransitionError
union TransitionPaymentToStateResult = Payment | PaymentStateTransitionError
union UpdateChannelResult = Channel | LanguageNotAvailableError
union UpdateCustomerResult = Customer | EmailAddressConflictError
union UpdateGlobalSettingsResult = ChannelDefaultLanguageError | GlobalSettings
union UpdateOrderItemsResult = InsufficientStockError | NegativeQuantityError | Order | OrderLimitError | OrderModificationError
union UpdatePromotionResult = MissingConditionsError | Promotion
type Address implements Node {
city: String
company: String
country: Country!
createdAt: DateTime!
customFields: JSON
defaultBillingAddress: Boolean
defaultShippingAddress: Boolean
fullName: String
id: ID!
phoneNumber: String
postalCode: String
province: String
streetLine1: String!
streetLine2: String
updatedAt: DateTime!
}
type Adjustment {
adjustmentSource: String!
amount: Int!
description: String!
type: AdjustmentType!
}
type Administrator implements Node {
createdAt: DateTime!
customFields: JSON
emailAddress: String!
firstName: String!
id: ID!
lastName: String!
updatedAt: DateTime!
user: User!
}
type AdministratorList implements PaginatedList {
items: [Administrator!]!
totalItems: Int!
}
type Allocation implements Node & StockMovement {
createdAt: DateTime!
id: ID!
orderLine: OrderLine!
productVariant: ProductVariant!
quantity: Int!
type: StockMovementType!
updatedAt: DateTime!
}
"Returned if an attempting to refund an OrderItem which has already been refunded"
type AlreadyRefundedError implements ErrorResult {
errorCode: ErrorCode!
message: String!
refundId: ID!
}
type Asset implements Node {
createdAt: DateTime!
customFields: JSON
fileSize: Int!
focalPoint: Coordinate
height: Int!
id: ID!
mimeType: String!
name: String!
preview: String!
source: String!
tags: [Tag!]!
type: AssetType!
updatedAt: DateTime!
width: Int!
}
type AssetList implements PaginatedList {
items: [Asset!]!
totalItems: Int!
}
type AuthenticationMethod implements Node {
createdAt: DateTime!
id: ID!
strategy: String!
updatedAt: DateTime!
}
type BooleanCustomFieldConfig implements CustomField {
description: [LocalizedString!]
internal: Boolean
label: [LocalizedString!]
list: Boolean!
name: String!
nullable: Boolean
readonly: Boolean
type: String!
ui: JSON
}
"Returned if an attempting to cancel lines from an Order which is still active"
type CancelActiveOrderError implements ErrorResult {
errorCode: ErrorCode!
message: String!
orderState: String!
}
"Returned if the Payment cancellation fails"
type CancelPaymentError implements ErrorResult {
errorCode: ErrorCode!
message: String!
paymentErrorMessage: String!
}
type Cancellation implements Node & StockMovement {
createdAt: DateTime!
id: ID!
orderLine: OrderLine!
productVariant: ProductVariant!
quantity: Int!
type: StockMovementType!
updatedAt: DateTime!
}
type Channel implements Node {
code: String!
createdAt: DateTime!
currencyCode: CurrencyCode!
customFields: JSON
defaultLanguageCode: LanguageCode!
defaultShippingZone: Zone
defaultTaxZone: Zone
id: ID!
pricesIncludeTax: Boolean!
token: String!
updatedAt: DateTime!
}
"""
Returned when the default LanguageCode of a Channel is no longer found in the `availableLanguages`
of the GlobalSettings
"""
type ChannelDefaultLanguageError implements ErrorResult {
channelCode: String!
errorCode: ErrorCode!
language: String!
message: String!
}
type Collection implements Node {
assets: [Asset!]!
breadcrumbs: [CollectionBreadcrumb!]!
children: [Collection!]
createdAt: DateTime!
customFields: JSON
description: String!
featuredAsset: Asset
filters: [ConfigurableOperation!]!
id: ID!
isPrivate: Boolean!
languageCode: LanguageCode
name: String!
parent: Collection
position: Int!
productVariants(options: ProductVariantListOptions): ProductVariantList!
slug: String!
translations: [CollectionTranslation!]!
updatedAt: DateTime!
}
type CollectionBreadcrumb {
id: ID!
name: String!
slug: String!
}
type CollectionList implements PaginatedList {
items: [Collection!]!
totalItems: Int!
}
"""
Which Collections are present in the products returned
by the search, and in what quantity.
"""
type CollectionResult {
collection: Collection!
count: Int!
}
type CollectionTranslation {
createdAt: DateTime!
description: String!
id: ID!
languageCode: LanguageCode!
name: String!
slug: String!
updatedAt: DateTime!
}
type ConfigArg {
name: String!
value: String!
}
type ConfigArgDefinition {
defaultValue: JSON
description: String
label: String
list: Boolean!
name: String!
required: Boolean!
type: String!
ui: JSON
}
type ConfigurableOperation {
args: [ConfigArg!]!
code: String!
}
type ConfigurableOperationDefinition {
args: [ConfigArgDefinition!]!
code: String!
description: String!
}
type Coordinate {
x: Float!
y: Float!
}
type Country implements Node {
code: String!
createdAt: DateTime!
customFields: JSON
enabled: Boolean!
id: ID!
languageCode: LanguageCode!
name: String!
translations: [CountryTranslation!]!
updatedAt: DateTime!
}
type CountryList implements PaginatedList {
items: [Country!]!
totalItems: Int!
}
type CountryTranslation {
createdAt: DateTime!
id: ID!
languageCode: LanguageCode!
name: String!
updatedAt: DateTime!
}
"Returned if the provided coupon code is invalid"
type CouponCodeExpiredError implements ErrorResult {
couponCode: String!
errorCode: ErrorCode!
message: String!
}
"Returned if the provided coupon code is invalid"
type CouponCodeInvalidError implements ErrorResult {
couponCode: String!
errorCode: ErrorCode!
message: String!
}
"Returned if the provided coupon code is invalid"
type CouponCodeLimitError implements ErrorResult {
couponCode: String!
errorCode: ErrorCode!
limit: Int!
message: String!
}
"Returned if an error is thrown in a FulfillmentHandler's createFulfillment method"
type CreateFulfillmentError implements ErrorResult {
errorCode: ErrorCode!
fulfillmentHandlerError: String!
message: String!
}
type CurrentUser {
channels: [CurrentUserChannel!]!
id: ID!
identifier: String!
}
type CurrentUserChannel {
code: String!
id: ID!
permissions: [Permission!]!
token: String!
}
type CustomFields {
Address: [CustomFieldConfig!]!
Administrator: [CustomFieldConfig!]!
Asset: [CustomFieldConfig!]!
Channel: [CustomFieldConfig!]!
Collection: [CustomFieldConfig!]!
Country: [CustomFieldConfig!]!
Customer: [CustomFieldConfig!]!
CustomerGroup: [CustomFieldConfig!]!
Facet: [CustomFieldConfig!]!
FacetValue: [CustomFieldConfig!]!
Fulfillment: [CustomFieldConfig!]!
GlobalSettings: [CustomFieldConfig!]!
Order: [CustomFieldConfig!]!
OrderLine: [CustomFieldConfig!]!
PaymentMethod: [CustomFieldConfig!]!
Product: [CustomFieldConfig!]!
ProductOption: [CustomFieldConfig!]!
ProductOptionGroup: [CustomFieldConfig!]!
ProductVariant: [CustomFieldConfig!]!
Promotion: [CustomFieldConfig!]!
ShippingMethod: [CustomFieldConfig!]!
TaxCategory: [CustomFieldConfig!]!
TaxRate: [CustomFieldConfig!]!
User: [CustomFieldConfig!]!
Zone: [CustomFieldConfig!]!
}
type Customer implements Node {
addresses: [Address!]
createdAt: DateTime!
customFields: JSON
emailAddress: String!
firstName: String!
groups: [CustomerGroup!]!
history(options: HistoryEntryListOptions): HistoryEntryList!
id: ID!
lastName: String!
orders(options: OrderListOptions): OrderList!
phoneNumber: String
title: String
updatedAt: DateTime!
user: User
}
type CustomerGroup implements Node {
createdAt: DateTime!
customFields: JSON
customers(options: CustomerListOptions): CustomerList!
id: ID!
name: String!
updatedAt: DateTime!
}
type CustomerGroupList implements PaginatedList {
items: [CustomerGroup!]!
totalItems: Int!
}
type CustomerList implements PaginatedList {
items: [Customer!]!
totalItems: Int!
}
"""
Expects the same validation formats as the `<input type="datetime-local">` HTML element.
See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes
"""
type DateTimeCustomFieldConfig implements CustomField {
description: [LocalizedString!]
internal: Boolean
label: [LocalizedString!]
list: Boolean!
max: String
min: String
name: String!
nullable: Boolean
readonly: Boolean
step: Int
type: String!
ui: JSON
}
type DeletionResponse {
message: String
result: DeletionResult!
}
type Discount {
adjustmentSource: String!
amount: Int!
amountWithTax: Int!
description: String!
type: AdjustmentType!
}
"Returned when attempting to create a Customer with an email address already registered to an existing User."
type EmailAddressConflictError implements ErrorResult {
errorCode: ErrorCode!
message: String!
}
"Returned if no OrderLines have been specified for the operation"
type EmptyOrderLineSelectionError implements ErrorResult {
errorCode: ErrorCode!
message: String!
}
type Facet implements Node {
code: String!
createdAt: DateTime!
customFields: JSON
id: ID!
isPrivate: Boolean!
languageCode: LanguageCode!
name: String!
translations: [FacetTranslation!]!
updatedAt: DateTime!
values: [FacetValue!]!
}
type FacetInUseError implements ErrorResult {
errorCode: ErrorCode!
facetCode: String!
message: String!
productCount: Int!
variantCount: Int!
}
type FacetList implements PaginatedList {
items: [Facet!]!
totalItems: Int!
}
type FacetTranslation {
createdAt: DateTime!
id: ID!
languageCode: LanguageCode!
name: String!
updatedAt: DateTime!
}
type FacetValue implements Node {
code: String!
createdAt: DateTime!
customFields: JSON
facet: Facet!
id: ID!
languageCode: LanguageCode!
name: String!
translations: [FacetValueTranslation!]!
updatedAt: DateTime!
}
type FacetValueList implements PaginatedList {
items: [FacetValue!]!
totalItems: Int!
}
"""
Which FacetValues are present in the products returned
by the search, and in what quantity.
"""
type FacetValueResult {
count: Int!
facetValue: FacetValue!
}
type FacetValueTranslation {
createdAt: DateTime!
id: ID!
languageCode: LanguageCode!
name: String!
updatedAt: DateTime!
}
type FloatCustomFieldConfig implements CustomField {
description: [LocalizedString!]
internal: Boolean
label: [LocalizedString!]
list: Boolean!
max: Float
min: Float
name: String!
nullable: Boolean
readonly: Boolean
step: Float
type: String!
ui: JSON
}
type Fulfillment implements Node {
createdAt: DateTime!
customFields: JSON
id: ID!
method: String!
nextStates: [String!]!
orderItems: [OrderItem!]!
state: String!
summary: [FulfillmentLineSummary!]!
trackingCode: String
updatedAt: DateTime!
}
type FulfillmentLineSummary {
orderLine: OrderLine!
quantity: Int!
}
"Returned when there is an error in transitioning the Fulfillment state"
type FulfillmentStateTransitionError implements ErrorResult {
errorCode: ErrorCode!
fromState: String!
message: String!
toState: String!
transitionError: String!
}
type GlobalSettings {
availableLanguages: [LanguageCode!]!
createdAt: DateTime!
customFields: JSON
id: ID!
outOfStockThreshold: Int!
serverConfig: ServerConfig!
trackInventory: Boolean!
updatedAt: DateTime!
}
type HistoryEntry implements Node {
administrator: Administrator
createdAt: DateTime!
data: JSON!
id: ID!
isPublic: Boolean!
type: HistoryEntryType!
updatedAt: DateTime!
}
type HistoryEntryList implements PaginatedList {
items: [HistoryEntry!]!
totalItems: Int!
}
type ImportInfo {
errors: [String!]
imported: Int!
processed: Int!
}
"Returned when attempting to set a ShippingMethod for which the Order is not eligible"
type IneligibleShippingMethodError implements ErrorResult {
errorCode: ErrorCode!
message: String!
}
"Returned when attempting to add more items to the Order than are available"
type InsufficientStockError implements ErrorResult {
errorCode: ErrorCode!
message: String!
order: Order!
quantityAvailable: Int!
}
"""
Returned if attempting to create a Fulfillment when there is insufficient
stockOnHand of a ProductVariant to satisfy the requested quantity.
"""
type InsufficientStockOnHandError implements ErrorResult {
errorCode: ErrorCode!
message: String!
productVariantId: ID!
productVariantName: String!
stockOnHand: Int!
}
type IntCustomFieldConfig implements CustomField {
description: [LocalizedString!]
internal: Boolean
label: [LocalizedString!]
list: Boolean!
max: Int
min: Int
name: String!
nullable: Boolean
readonly: Boolean
step: Int
type: String!
ui: JSON
}
"Returned if the user authentication credentials are not valid"
type InvalidCredentialsError implements ErrorResult {
authenticationError: String!
errorCode: ErrorCode!
message: String!
}
"Returned if the specified FulfillmentHandler code is not valid"
type InvalidFulfillmentHandlerError implements ErrorResult {
errorCode: ErrorCode!
message: String!
}
"Returned if the specified items are already part of a Fulfillment"
type ItemsAlreadyFulfilledError implements ErrorResult {
errorCode: ErrorCode!
message: String!
}
type Job implements Node {
attempts: Int!
createdAt: DateTime!
data: JSON
duration: Int!
error: JSON
id: ID!
isSettled: Boolean!
progress: Float!
queueName: String!
result: JSON
retries: Int!
settledAt: DateTime
startedAt: DateTime
state: JobState!
}
type JobBufferSize {
bufferId: String!
size: Int!
}
type JobList implements PaginatedList {
items: [Job!]!
totalItems: Int!
}
type JobQueue {
name: String!
running: Boolean!
}
"Returned if attempting to set a Channel's defaultLanguageCode to a language which is not enabled in GlobalSettings"
type LanguageNotAvailableError implements ErrorResult {
errorCode: ErrorCode!
languageCode: String!
message: String!
}
type LocaleStringCustomFieldConfig implements CustomField {
description: [LocalizedString!]
internal: Boolean
label: [LocalizedString!]
length: Int
list: Boolean!
name: String!
nullable: Boolean
pattern: String
readonly: Boolean
type: String!
ui: JSON
}
type LocalizedString {
languageCode: LanguageCode!
value: String!
}
"""
Returned when a call to addManualPaymentToOrder is made but the Order
is not in the required state.
"""
type ManualPaymentStateError implements ErrorResult {
errorCode: ErrorCode!
message: String!
}
type MimeTypeError implements ErrorResult {
errorCode: ErrorCode!
fileName: String!
message: String!
mimeType: String!
}
"Returned if a PromotionCondition has neither a couponCode nor any conditions set"
type MissingConditionsError implements ErrorResult {
errorCode: ErrorCode!
message: String!
}
"Returned if an operation has specified OrderLines from multiple Orders"
type MultipleOrderError implements ErrorResult {
errorCode: ErrorCode!
message: String!
}
type Mutation {
"Add Customers to a CustomerGroup"
addCustomersToGroup(customerGroupId: ID!, customerIds: [ID!]!): CustomerGroup!
addFulfillmentToOrder(input: FulfillOrderInput!): AddFulfillmentToOrderResult!
"Adds an item to the draft Order."
addItemToDraftOrder(input: AddItemToDraftOrderInput!, orderId: ID!): UpdateOrderItemsResult!
"""
Used to manually create a new Payment against an Order.
This can be used by an Administrator when an Order is in the ArrangingPayment state.
It is also used when a completed Order
has been modified (using `modifyOrder`) and the price has increased. The extra payment
can then be manually arranged by the administrator, and the details used to create a new
Payment.
"""
addManualPaymentToOrder(input: ManualPaymentInput!): AddManualPaymentToOrderResult!
"Add members to a Zone"
addMembersToZone(memberIds: [ID!]!, zoneId: ID!): Zone!
addNoteToCustomer(input: AddNoteToCustomerInput!): Customer!
addNoteToOrder(input: AddNoteToOrderInput!): Order!
"Add an OptionGroup to a Product"
addOptionGroupToProduct(optionGroupId: ID!, productId: ID!): Product!
"Adjusts a draft OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available."
adjustDraftOrderLine(input: AdjustDraftOrderLineInput!, orderId: ID!): UpdateOrderItemsResult!
"Applies the given coupon code to the draft Order"
applyCouponCodeToDraftOrder(couponCode: String!, orderId: ID!): ApplyCouponCodeResult!
"Assign assets to channel"
assignAssetsToChannel(input: AssignAssetsToChannelInput!): [Asset!]!
"Assigns Collections to the specified Channel"
assignCollectionsToChannel(input: AssignCollectionsToChannelInput!): [Collection!]!
"Assigns Facets to the specified Channel"
assignFacetsToChannel(input: AssignFacetsToChannelInput!): [Facet!]!
"Assigns ProductVariants to the specified Channel"
assignProductVariantsToChannel(input: AssignProductVariantsToChannelInput!): [ProductVariant!]!
"Assigns all ProductVariants of Product to the specified Channel"
assignProductsToChannel(input: AssignProductsToChannelInput!): [Product!]!
"Assigns Promotions to the specified Channel"
assignPromotionsToChannel(input: AssignPromotionsToChannelInput!): [Promotion!]!
"Assign a Role to an Administrator"
assignRoleToAdministrator(administratorId: ID!, roleId: ID!): Administrator!
"Authenticates the user using a named authentication strategy"
authenticate(input: AuthenticationInput!, rememberMe: Boolean): AuthenticationResult!
cancelJob(jobId: ID!): Job!
cancelOrder(input: CancelOrderInput!): CancelOrderResult!
cancelPayment(id: ID!): CancelPaymentResult!
"Create a new Administrator"
createAdministrator(input: CreateAdministratorInput!): Administrator!
"Create a new Asset"
createAssets(input: [CreateAssetInput!]!): [CreateAssetResult!]!
"Create a new Channel"
createChannel(input: CreateChannelInput!): CreateChannelResult!
"Create a new Collection"
createCollection(input: CreateCollectionInput!): Collection!
"Create a new Country"
createCountry(input: CreateCountryInput!): Country!
"Create a new Customer. If a password is provided, a new User will also be created an linked to the Customer."
createCustomer(input: CreateCustomerInput!, password: String): CreateCustomerResult!
"Create a new Address and associate it with the Customer specified by customerId"
createCustomerAddress(customerId: ID!, input: CreateAddressInput!): Address!
"Create a new CustomerGroup"
createCustomerGroup(input: CreateCustomerGroupInput!): CustomerGroup!
"Creates a draft Order"
createDraftOrder: Order!
"Create a new Facet"
createFacet(input: CreateFacetInput!): Facet!
"Create one or more FacetValues"
createFacetValues(input: [CreateFacetValueInput!]!): [FacetValue!]!
"Create existing PaymentMethod"
createPaymentMethod(input: CreatePaymentMethodInput!): PaymentMethod!
"Create a new Product"
createProduct(input: CreateProductInput!): Product!
"Create a new ProductOption within a ProductOptionGroup"
createProductOption(input: CreateProductOptionInput!): ProductOption!
"Create a new ProductOptionGroup"
createProductOptionGroup(input: CreateProductOptionGroupInput!): ProductOptionGroup!
"Create a set of ProductVariants based on the OptionGroups assigned to the given Product"
createProductVariants(input: [CreateProductVariantInput!]!): [ProductVariant]!
createPromotion(input: CreatePromotionInput!): CreatePromotionResult!
"Create a new Role"
createRole(input: CreateRoleInput!): Role!
"Create a new ShippingMethod"
createShippingMethod(input: CreateShippingMethodInput!): ShippingMethod!
"Create a new Tag"
createTag(input: CreateTagInput!): Tag!
"Create a new TaxCategory"
createTaxCategory(input: CreateTaxCategoryInput!): TaxCategory!
"Create a new TaxRate"
createTaxRate(input: CreateTaxRateInput!): TaxRate!
"Create a new Zone"
createZone(input: CreateZoneInput!): Zone!
"Delete an Administrator"
deleteAdministrator(id: ID!): DeletionResponse!
"Delete an Asset"
deleteAsset(input: DeleteAssetInput!): DeletionResponse!
"Delete multiple Assets"
deleteAssets(input: DeleteAssetsInput!): DeletionResponse!
"Delete a Channel"
deleteChannel(id: ID!): DeletionResponse!
"Delete a Collection and all of its descendants"
deleteCollection(id: ID!): DeletionResponse!
"Delete multiple Collections and all of their descendants"
deleteCollections(ids: [ID!]!): [DeletionResponse!]!
"Delete a Country"
deleteCountry(id: ID!): DeletionResponse!
"Delete a Customer"
deleteCustomer(id: ID!): DeletionResponse!
"Update an existing Address"
deleteCustomerAddress(id: ID!): Success!
"Delete a CustomerGroup"
deleteCustomerGroup(id: ID!): DeletionResponse!
deleteCustomerNote(id: ID!): DeletionResponse!
"Deletes a draft Order"
deleteDraftOrder(orderId: ID!): DeletionResponse!
"Delete an existing Facet"
deleteFacet(force: Boolean, id: ID!): DeletionResponse!
"Delete one or more FacetValues"
deleteFacetValues(force: Boolean, ids: [ID!]!): [DeletionResponse!]!
"Delete multiple existing Facets"
deleteFacets(force: Boolean, ids: [ID!]!): [DeletionResponse!]!
deleteOrderNote(id: ID!): DeletionResponse!
"Delete a PaymentMethod"
deletePaymentMethod(force: Boolean, id: ID!): DeletionResponse!
"Delete a Product"
deleteProduct(id: ID!): DeletionResponse!
"Delete a ProductOption"
deleteProductOption(id: ID!): DeletionResponse!
"Delete a ProductVariant"
deleteProductVariant(id: ID!): DeletionResponse!
"Delete multiple ProductVariants"
deleteProductVariants(ids: [ID!]!): [DeletionResponse!]!
"Delete multiple Products"
deleteProducts(ids: [ID!]!): [DeletionResponse!]!
deletePromotion(id: ID!): DeletionResponse!
"Delete an existing Role"
deleteRole(id: ID!): DeletionResponse!
"Delete a ShippingMethod"
deleteShippingMethod(id: ID!): DeletionResponse!
"Delete an existing Tag"
deleteTag(id: ID!): DeletionResponse!
"Deletes a TaxCategory"
deleteTaxCategory(id: ID!): DeletionResponse!
"Delete a TaxRate"
deleteTaxRate(id: ID!): DeletionResponse!
"Delete a Zone"
deleteZone(id: ID!): DeletionResponse!
flushBufferedJobs(bufferIds: [String!]): Success!
importProducts(csvFile: Upload!): ImportInfo
"Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})`"
login(password: String!, rememberMe: Boolean, username: String!): NativeAuthenticationResult!
logout: Success!
"""
Allows an Order to be modified after it has been completed by the Customer. The Order must first
be in the `Modifying` state.
"""
modifyOrder(input: ModifyOrderInput!): ModifyOrderResult!
"Move a Collection to a different parent or index"
moveCollection(input: MoveCollectionInput!): Collection!
refundOrder(input: RefundOrderInput!): RefundOrderResult!
reindex: Job!
"Removes Collections from the specified Channel"
removeCollectionsFromChannel(input: RemoveCollectionsFromChannelInput!): [Collection!]!
"Removes the given coupon code from the draft Order"
removeCouponCodeFromDraftOrder(couponCode: String!, orderId: ID!): Order
"Remove Customers from a CustomerGroup"
removeCustomersFromGroup(customerGroupId: ID!, customerIds: [ID!]!): CustomerGroup!
"Remove an OrderLine from the draft Order"
removeDraftOrderLine(orderId: ID!, orderLineId: ID!): RemoveOrderItemsResult!
"Removes Facets from the specified Channel"
removeFacetsFromChannel(input: RemoveFacetsFromChannelInput!): [RemoveFacetFromChannelResult!]!
"Remove members from a Zone"
removeMembersFromZone(memberIds: [ID!]!, zoneId: ID!): Zone!
"Remove an OptionGroup from a Product"
removeOptionGroupFromProduct(optionGroupId: ID!, productId: ID!): RemoveOptionGroupFromProductResult!
"Removes ProductVariants from the specified Channel"
removeProductVariantsFromChannel(input: RemoveProductVariantsFromChannelInput!): [ProductVariant!]!
"Removes all ProductVariants of Product from the specified Channel"
removeProductsFromChannel(input: RemoveProductsFromChannelInput!): [Product!]!
"Removes Promotions from the specified Channel"
removePromotionsFromChannel(input: RemovePromotionsFromChannelInput!): [Promotion!]!
"Remove all settled jobs in the given queues older than the given date. Returns the number of jobs deleted."
removeSettledJobs(olderThan: DateTime, queueNames: [String!]): Int!
runPendingSearchIndexUpdates: Success!
setCustomerForDraftOrder(customerId: ID, input: CreateCustomerInput, orderId: ID!): SetCustomerForDraftOrderResult!
"Sets the billing address for a draft Order"
setDraftOrderBillingAddress(input: CreateAddressInput!, orderId: ID!): Order!
"Allows any custom fields to be set for the active order"
setDraftOrderCustomFields(input: UpdateOrderInput!, orderId: ID!): Order!
"Sets the shipping address for a draft Order"
setDraftOrderShippingAddress(input: CreateAddressInput!, orderId: ID!): Order!
"Sets the shipping method by id, which can be obtained with the `eligibleShippingMethodsForDraftOrder` query"
setDraftOrderShippingMethod(orderId: ID!, shippingMethodId: ID!): SetOrderShippingMethodResult!
setOrderCustomFields(input: UpdateOrderInput!): Order
settlePayment(id: ID!): SettlePaymentResult!