-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
schema.graphql
36952 lines (27954 loc) · 870 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
"""Groups fields and operations into named groups."""
directive @doc(
"""Name of the grouping category"""
category: String!
) on ENUM | FIELD | FIELD_DEFINITION | INPUT_OBJECT | OBJECT
"""Webhook events triggered by a specific location."""
directive @webhookEventsInfo(
"""List of asynchronous webhook events triggered by a specific location."""
asyncEvents: [WebhookEventTypeAsyncEnum!]!
"""List of synchronous webhook events triggered by a specific location."""
syncEvents: [WebhookEventTypeSyncEnum!]!
) on FIELD | FIELD_DEFINITION | INPUT_OBJECT | OBJECT
"""
Create a new address for the customer.
Requires one of following set of permissions: AUTHENTICATED_USER or AUTHENTICATED_APP + IMPERSONATE_USER.
Triggers the following webhook events:
- CUSTOMER_UPDATED (async): A customer account was updated.
- ADDRESS_CREATED (async): An address was created.
"""
type AccountAddressCreate {
accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
address: Address
errors: [AccountError!]!
"""A user instance for which the address was created."""
user: User
}
"""
Delete an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER.
Triggers the following webhook events:
- ADDRESS_DELETED (async): An address was deleted.
"""
type AccountAddressDelete {
accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
address: Address
errors: [AccountError!]!
"""A user instance for which the address was deleted."""
user: User
}
"""
Updates an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER.
Triggers the following webhook events:
- ADDRESS_UPDATED (async): An address was updated.
"""
type AccountAddressUpdate {
accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
address: Address
errors: [AccountError!]!
"""A user object for which the address was edited."""
user: User
}
"""
Event sent when account change email is requested.
Added in Saleor 3.15.
"""
type AccountChangeEmailRequested implements Event {
"""The channel data."""
channel: Channel
"""Time of the event."""
issuedAt: DateTime
"""The user or application that triggered the event."""
issuingPrincipal: IssuingPrincipal
"""The new email address the user wants to change to."""
newEmail: String
"""The application receiving the webhook."""
recipient: App
"""The URL to redirect the user after he accepts the request."""
redirectUrl: String
"""Shop data."""
shop: Shop
"""The token required to confirm request."""
token: String
"""The user the event relates to."""
user: User
"""Saleor version that triggered the event."""
version: String
}
"""
Event sent when account confirmation requested. This event is always sent. enableAccountConfirmationByEmail flag set to True is not required.
Added in Saleor 3.15.
"""
type AccountConfirmationRequested implements Event {
"""The channel data."""
channel: Channel
"""Time of the event."""
issuedAt: DateTime
"""The user or application that triggered the event."""
issuingPrincipal: IssuingPrincipal
"""The application receiving the webhook."""
recipient: App
"""The URL to redirect the user after he accepts the request."""
redirectUrl: String
"""Shop data."""
shop: Shop
"""The token required to confirm request."""
token: String
"""The user the event relates to."""
user: User
"""Saleor version that triggered the event."""
version: String
}
"""
Event sent when account is confirmed.
Added in Saleor 3.15.
"""
type AccountConfirmed implements Event {
"""The channel data."""
channel: Channel
"""Time of the event."""
issuedAt: DateTime
"""The user or application that triggered the event."""
issuingPrincipal: IssuingPrincipal
"""The application receiving the webhook."""
recipient: App
"""The URL to redirect the user after he accepts the request."""
redirectUrl: String
"""Shop data."""
shop: Shop
"""The token required to confirm request."""
token: String
"""The user the event relates to."""
user: User
"""Saleor version that triggered the event."""
version: String
}
"""
Remove user account.
Requires one of the following permissions: AUTHENTICATED_USER.
Triggers the following webhook events:
- ACCOUNT_DELETED (async): Account was deleted.
"""
type AccountDelete {
accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
errors: [AccountError!]!
user: User
}
"""
Event sent when account delete is requested.
Added in Saleor 3.15.
"""
type AccountDeleteRequested implements Event {
"""The channel data."""
channel: Channel
"""Time of the event."""
issuedAt: DateTime
"""The user or application that triggered the event."""
issuingPrincipal: IssuingPrincipal
"""The application receiving the webhook."""
recipient: App
"""The URL to redirect the user after he accepts the request."""
redirectUrl: String
"""Shop data."""
shop: Shop
"""The token required to confirm request."""
token: String
"""The user the event relates to."""
user: User
"""Saleor version that triggered the event."""
version: String
}
"""
Event sent when account is deleted.
Added in Saleor 3.15.
"""
type AccountDeleted implements Event {
"""The channel data."""
channel: Channel
"""Time of the event."""
issuedAt: DateTime
"""The user or application that triggered the event."""
issuingPrincipal: IssuingPrincipal
"""The application receiving the webhook."""
recipient: App
"""The URL to redirect the user after he accepts the request."""
redirectUrl: String
"""Shop data."""
shop: Shop
"""The token required to confirm request."""
token: String
"""The user the event relates to."""
user: User
"""Saleor version that triggered the event."""
version: String
}
"""
Event sent when account email is changed.
Added in Saleor 3.15.
"""
type AccountEmailChanged implements Event {
"""The channel data."""
channel: Channel
"""Time of the event."""
issuedAt: DateTime
"""The user or application that triggered the event."""
issuingPrincipal: IssuingPrincipal
"""The new email address."""
newEmail: String
"""The application receiving the webhook."""
recipient: App
"""The URL to redirect the user after he accepts the request."""
redirectUrl: String
"""Shop data."""
shop: Shop
"""The token required to confirm request."""
token: String
"""The user the event relates to."""
user: User
"""Saleor version that triggered the event."""
version: String
}
"""Represents errors in account mutations."""
type AccountError {
"""A type of address that causes the error."""
addressType: AddressTypeEnum
"""The error code."""
code: AccountErrorCode!
"""
Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
"""
field: String
"""The error message."""
message: String
}
"""An enumeration."""
enum AccountErrorCode {
ACCOUNT_NOT_CONFIRMED
ACTIVATE_OWN_ACCOUNT
ACTIVATE_SUPERUSER_ACCOUNT
CHANNEL_INACTIVE
DEACTIVATE_OWN_ACCOUNT
DEACTIVATE_SUPERUSER_ACCOUNT
DELETE_NON_STAFF_USER
DELETE_OWN_ACCOUNT
DELETE_STAFF_ACCOUNT
DELETE_SUPERUSER_ACCOUNT
DUPLICATED_INPUT_ITEM
GRAPHQL_ERROR
INACTIVE
INVALID
INVALID_CREDENTIALS
INVALID_PASSWORD
JWT_DECODE_ERROR
JWT_INVALID_CSRF_TOKEN
JWT_INVALID_TOKEN
JWT_MISSING_TOKEN
JWT_SIGNATURE_EXPIRED
LEFT_NOT_MANAGEABLE_PERMISSION
LOGIN_ATTEMPT_DELAYED
MISSING_CHANNEL_SLUG
NOT_FOUND
OUT_OF_SCOPE_GROUP
OUT_OF_SCOPE_PERMISSION
OUT_OF_SCOPE_USER
PASSWORD_ENTIRELY_NUMERIC
PASSWORD_RESET_ALREADY_REQUESTED
PASSWORD_TOO_COMMON
PASSWORD_TOO_SHORT
PASSWORD_TOO_SIMILAR
REQUIRED
UNIQUE
UNKNOWN_IP_ADDRESS
}
"""Fields required to update the user."""
input AccountInput {
"""Billing address of the customer."""
defaultBillingAddress: AddressInput
"""Shipping address of the customer."""
defaultShippingAddress: AddressInput
"""Given name."""
firstName: String
"""User language code."""
languageCode: LanguageCodeEnum
"""Family name."""
lastName: String
"""
Fields required to update the user metadata.
Added in Saleor 3.14.
"""
metadata: [MetadataInput!]
}
"""
Register a new user.
Triggers the following webhook events:
- CUSTOMER_CREATED (async): A new customer account was created.
- NOTIFY_USER (async): A notification for account confirmation.
- ACCOUNT_CONFIRMATION_REQUESTED (async): An user confirmation was requested. This event is always sent regardless of settings.
"""
type AccountRegister {
accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
errors: [AccountError!]!
"""Informs whether users need to confirm their email address."""
requiresConfirmation: Boolean
user: User
}
"""Fields required to create a user."""
input AccountRegisterInput {
"""
Slug of a channel which will be used to notify users. Optional when only one channel exists.
"""
channel: String
"""The email address of the user."""
email: String!
"""Given name."""
firstName: String
"""User language code."""
languageCode: LanguageCodeEnum
"""Family name."""
lastName: String
"""User public metadata."""
metadata: [MetadataInput!]
"""Password."""
password: String!
"""
Base of frontend URL that will be needed to create confirmation URL. Required when account confirmation is enabled.
"""
redirectUrl: String
}
"""
Sends an email with the account removal link for the logged-in user.
Requires one of the following permissions: AUTHENTICATED_USER.
Triggers the following webhook events:
- NOTIFY_USER (async): A notification for account delete request.
- ACCOUNT_DELETE_REQUESTED (async): An account delete requested.
"""
type AccountRequestDeletion {
accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
errors: [AccountError!]!
}
"""
Sets a default address for the authenticated user.
Requires one of the following permissions: AUTHENTICATED_USER.
Triggers the following webhook events:
- CUSTOMER_UPDATED (async): A customer's address was updated.
"""
type AccountSetDefaultAddress {
accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
errors: [AccountError!]!
"""An updated user instance."""
user: User
}
"""
Event sent when setting a new password is requested.
Added in Saleor 3.15.
"""
type AccountSetPasswordRequested implements Event {
"""The channel data."""
channel: Channel
"""Time of the event."""
issuedAt: DateTime
"""The user or application that triggered the event."""
issuingPrincipal: IssuingPrincipal
"""The application receiving the webhook."""
recipient: App
"""The URL to redirect the user after he accepts the request."""
redirectUrl: String
"""Shop data."""
shop: Shop
"""The token required to confirm request."""
token: String
"""The user the event relates to."""
user: User
"""Saleor version that triggered the event."""
version: String
}
"""
Updates the account of the logged-in user.
Requires one of following set of permissions: AUTHENTICATED_USER or AUTHENTICATED_APP + IMPERSONATE_USER.
Triggers the following webhook events:
- CUSTOMER_UPDATED (async): A customer account was updated.
- CUSTOMER_METADATA_UPDATED (async): Optionally called when customer's metadata was updated.
"""
type AccountUpdate {
accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
errors: [AccountError!]!
user: User
}
"""Represents user address data."""
type Address implements Node & ObjectWithMetadata {
"""The city of the address."""
city: String!
"""The district of the address."""
cityArea: String!
"""Company or organization name."""
companyName: String!
"""The country of the address."""
country: CountryDisplay!
"""The country area of the address."""
countryArea: String!
"""The given name of the address."""
firstName: String!
"""The ID of the address."""
id: ID!
"""Address is user's default billing address."""
isDefaultBillingAddress: Boolean
"""Address is user's default shipping address."""
isDefaultShippingAddress: Boolean
"""The family name of the address."""
lastName: String!
"""
List of public metadata items. Can be accessed without permissions.
Added in Saleor 3.10.
"""
metadata: [MetadataItem!]!
"""
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
Added in Saleor 3.10.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
Added in Saleor 3.10.
"""
metafields(keys: [String!]): Metadata
"""The phone number assigned the address."""
phone: String
"""The postal code of the address."""
postalCode: String!
"""
List of private metadata items. Requires staff permissions to access.
Added in Saleor 3.10.
"""
privateMetadata: [MetadataItem!]!
"""
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
Added in Saleor 3.10.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
Added in Saleor 3.10.
"""
privateMetafields(keys: [String!]): Metadata
"""The first line of the address."""
streetAddress1: String!
"""The second line of the address."""
streetAddress2: String!
}
"""
Creates user address.
Requires one of the following permissions: MANAGE_USERS.
Triggers the following webhook events:
- ADDRESS_CREATED (async): A new address was created.
"""
type AddressCreate {
accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
address: Address
errors: [AccountError!]!
"""A user instance for which the address was created."""
user: User
}
"""
Event sent when new address is created.
Added in Saleor 3.5.
"""
type AddressCreated implements Event {
"""The address the event relates to."""
address: Address
"""Time of the event."""
issuedAt: DateTime
"""The user or application that triggered the event."""
issuingPrincipal: IssuingPrincipal
"""The application receiving the webhook."""
recipient: App
"""Saleor version that triggered the event."""
version: String
}
"""
Deletes an address.
Requires one of the following permissions: MANAGE_USERS.
Triggers the following webhook events:
- ADDRESS_DELETED (async): An address was deleted.
"""
type AddressDelete {
accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
address: Address
errors: [AccountError!]!
"""A user instance for which the address was deleted."""
user: User
}
"""
Event sent when address is deleted.
Added in Saleor 3.5.
"""
type AddressDeleted implements Event {
"""The address the event relates to."""
address: Address
"""Time of the event."""
issuedAt: DateTime
"""The user or application that triggered the event."""
issuingPrincipal: IssuingPrincipal
"""The application receiving the webhook."""
recipient: App
"""Saleor version that triggered the event."""
version: String
}
input AddressInput {
"""City."""
city: String
"""District."""
cityArea: String
"""Company or organization."""
companyName: String
"""Country."""
country: CountryCode
"""State or province."""
countryArea: String
"""Given name."""
firstName: String
"""Family name."""
lastName: String
"""
Address public metadata.
Added in Saleor 3.15.
"""
metadata: [MetadataInput!]
"""
Phone number.
Phone numbers are validated with Google's [libphonenumber](https://github.com/google/libphonenumber) library.
"""
phone: String
"""Postal code."""
postalCode: String
"""
Determine if the address should be validated. By default, Saleor accepts only address inputs matching ruleset from [Google Address Data]{https://chromium-i18n.appspot.com/ssl-address), using [i18naddress](https://github.com/mirumee/google-i18n-address) library. Some mutations may require additional permissions to use the the field. More info about permissions can be found in relevant mutation.
Added in Saleor 3.19.
Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
skipValidation: Boolean = false
"""Address."""
streetAddress1: String
"""Address."""
streetAddress2: String
}
"""
Sets a default address for the given user.
Requires one of the following permissions: MANAGE_USERS.
Triggers the following webhook events:
- CUSTOMER_UPDATED (async): A customer was updated.
"""
type AddressSetDefault {
accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
errors: [AccountError!]!
"""An updated user instance."""
user: User
}
"""An enumeration."""
enum AddressTypeEnum {
BILLING
SHIPPING
}
"""
Updates an address.
Requires one of the following permissions: MANAGE_USERS.
Triggers the following webhook events:
- ADDRESS_UPDATED (async): An address was updated.
"""
type AddressUpdate {
accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
address: Address
errors: [AccountError!]!
"""A user object for which the address was edited."""
user: User
}
"""
Event sent when address is updated.
Added in Saleor 3.5.
"""
type AddressUpdated implements Event {
"""The address the event relates to."""
address: Address
"""Time of the event."""
issuedAt: DateTime
"""The user or application that triggered the event."""
issuingPrincipal: IssuingPrincipal
"""The application receiving the webhook."""
recipient: App
"""Saleor version that triggered the event."""
version: String
}
"""Represents address validation rules for a country."""
type AddressValidationData {
"""
The address format of the address validation rule.
Many fields in the JSON refer to address fields by one-letter abbreviations. These are defined as follows:
- `N`: Name
- `O`: Organization
- `A`: Street Address Line(s)
- `D`: Dependent locality (may be an inner-city district or a suburb)
- `C`: City or Locality
- `S`: Administrative area such as a state, province, island etc
- `Z`: Zip or postal code
- `X`: Sorting code
[Click here for more information.](https://github.com/google/libaddressinput/wiki/AddressValidationMetadata)
"""
addressFormat: String!
"""
The latin address format of the address validation rule.
Many fields in the JSON refer to address fields by one-letter abbreviations. These are defined as follows:
- `N`: Name
- `O`: Organization
- `A`: Street Address Line(s)
- `D`: Dependent locality (may be an inner-city district or a suburb)
- `C`: City or Locality
- `S`: Administrative area such as a state, province, island etc
- `Z`: Zip or postal code
- `X`: Sorting code
[Click here for more information.](https://github.com/google/libaddressinput/wiki/AddressValidationMetadata)
"""
addressLatinFormat: String!
"""The allowed fields to use in address."""
allowedFields: [String!]!
"""
The available choices for the city area of the address validation rule.
"""
cityAreaChoices: [ChoiceValue!]!
"""The formal name of the city area of the address validation rule."""
cityAreaType: String!
"""The available choices for the city of the address validation rule."""
cityChoices: [ChoiceValue!]!
"""The formal name of the city of the address validation rule."""
cityType: String!
"""
The available choices for the country area of the address validation rule.
"""
countryAreaChoices: [ChoiceValue!]!
"""The formal name of the county area of the address validation rule."""
countryAreaType: String!
"""The country code of the address validation rule."""
countryCode: String!
"""The country name of the address validation rule."""
countryName: String!
"""The example postal code of the address validation rule."""
postalCodeExamples: [String!]!
"""The regular expression for postal code validation."""
postalCodeMatchers: [String!]!
"""The postal code prefix of the address validation rule."""
postalCodePrefix: String!
"""The formal name of the postal code of the address validation rule."""
postalCodeType: String!
"""The required fields to create a valid address."""
requiredFields: [String!]!
"""
The list of fields that should be in upper case for address validation rule.
"""
upperFields: [String!]!
}
"""Represents allocation."""
type Allocation implements Node {
"""The ID of allocation."""
id: ID!
"""
Quantity allocated for orders.
Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS.
"""
quantity: Int!
"""
The warehouse were items were allocated.
Requires one of the following permissions: MANAGE_PRODUCTS, MANAGE_ORDERS.
"""
warehouse: Warehouse!
}
"""
Determine the allocation strategy for the channel.
PRIORITIZE_SORTING_ORDER - allocate stocks according to the warehouses' order
within the channel
PRIORITIZE_HIGH_STOCK - allocate stock in a warehouse with the most stock
"""
enum AllocationStrategyEnum {
PRIORITIZE_HIGH_STOCK
PRIORITIZE_SORTING_ORDER
}
"""Represents app data."""
type App implements Node & ObjectWithMetadata {
"""Description of this app."""
aboutApp: String
"""JWT token used to authenticate by third-party app."""
accessToken: String
"""URL to iframe with the app."""
appUrl: String
"""
The App's author name.
Added in Saleor 3.13.
Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
author: String
"""
App's brand data.
Added in Saleor 3.14.
Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
brand: AppBrand
"""URL to iframe with the configuration for the app."""
configurationUrl: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use `appUrl` instead.")
"""The date and time when the app was created."""
created: DateTime
"""Description of the data privacy defined for this app."""
dataPrivacy: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use `dataPrivacyUrl` instead.")
"""URL to details about the privacy policy on the app owner page."""
dataPrivacyUrl: String
"""
App's dashboard extensions.
Added in Saleor 3.1.
"""
extensions: [AppExtension!]!
"""Homepage of the app."""
homepageUrl: String
"""The ID of the app."""
id: ID!
"""
Canonical app ID from the manifest
Added in Saleor 3.19.
"""
identifier: String
"""Determine if app will be set active or not."""
isActive: Boolean
"""
URL to manifest used during app's installation.
Added in Saleor 3.5.
"""
manifestUrl: String
"""List of public metadata items. Can be accessed without permissions."""
metadata: [MetadataItem!]!
"""
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
"""Name of the app."""
name: String
"""List of the app's permissions."""
permissions: [Permission!]