-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema-admin.graphql
More file actions
2778 lines (2442 loc) · 49.4 KB
/
schema-admin.graphql
File metadata and controls
2778 lines (2442 loc) · 49.4 KB
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
directive @defer(label: String, if: Boolean! = true) on FRAGMENT_SPREAD | INLINE_FRAGMENT
union Actor = User | ApiKey
input AddCategoryProductsInput {
categoryId: ID!
productContainerIds: [ID!]!
}
input AddCommentInput {
id: ID!
comment: String!
}
type Address {
id: ID!
address1: String
address2: String
city: String
countryCode: String
email: String
firstName: String
lastName: String
latitude: Int
longitude: Int
middleName: String
phone: String
provinceCode: String
postalCode: String
meta: String
}
input AddressInput {
id: ID
address1: String
address2: String
city: String
countryCode: String
email: String
firstName: String
lastName: String
latitude: Int
longitude: Int
middleName: String
phone: String
provinceCode: String
postalCode: String
meta: String
}
input AddressWhereInput {
And: [AddressWhereInput!]
Or: [AddressWhereInput!]
id: FilterV2
address1: FilterV2
address2: FilterV2
city: FilterV2
countryCode: FilterV2
email: FilterV2
firstName: FilterV2
lastName: FilterV2
latitude: FilterV2
longitude: FilterV2
middleName: FilterV2
phoneNumber: FilterV2
provinceCode: FilterV2
postalCode: FilterV2
}
scalar Any
type ApiKey {
id: ID!
name: String!
createdAt: Timestamp!
createdBy: User!
dueDate: Timestamp
lastUsedAt: Timestamp
isBanned: Boolean!
}
type App {
code: String!
name: String!
meta: JSON
}
input ApproveReviewInput {
id: ID!
}
type AppsMutation {
"""Установить приложение"""
install(code: String!): Boolean!
"""Удалить приложение"""
uninstall(code: String!): Boolean!
"""Опубликовать событие (для тестирования)"""
publishEvent: Boolean!
}
type AppsQuery {
"""Получить список доступных приложений для установки"""
apps: [App!]!
"""Получить список установленных приложений"""
installedApps: [InstalledApp!]!
}
input BulkDeleteInput {
ids: [ID!]!
entity: EntityType!
}
type BulkMutation {
delete(input: BulkDeleteInput!): Boolean!
update(input: BulkUpdateInput!): Boolean!
clear: Boolean!
checkSlug(input: BulkUniqueSlugInput!): Boolean!
}
input BulkUniqueSlugInput {
entity: EntityType!
slug: String!
}
input BulkUpdateInput {
ids: [ID!]!
entity: EntityType!
status: String!
}
input BulkUpdateStatusInput {
ids: [ID!]!
status: String!
}
input CancelOrderInput {
id: ID!
comment: String!
reason: CancelReasonEnum!
}
enum CancelReasonEnum {
CUSTOMER
FRAUD
INVENTORY
STAFF
OTHER
}
type Cart {
id: ID!
createdAt: Timestamp
updatedAt: Timestamp
baseCurrencyCode: String
displayCurrencyCode: String
displayExchangeRate: Float
subtotalAmount: Int
discountTotalAmount: Int
taxTotalAmount: Int
shippingTotalAmount: Int
grandTotalAmount: Int
totalQuantity: Int
items: [CartItem!]!
}
type CartItem {
id: ID!
purchasableId: ID!
purchasableType: String!
purchasableSnapshot: ProductSnapshot!
unitPrice: Int!
compareAtUnitPrice: Int
quantity: Int!
subtotalAmount: Int!
discountAmount: Int!
taxAmount: Int!
totalAmount: Int!
createdAt: Timestamp!
updatedAt: Timestamp!
children: [CartItem!]!
}
type CartMutation {
delete(id: ID!): Boolean!
}
type CartQuery {
findMany(input: CartsInput): CartsOutput!
findOne(id: ID!): Cart
}
input CartsInput {
where: CartWhereInput
order: String
page: Int
pageSize: Int
}
type CartsOutput {
data: [Cart!]!
meta: CollectionMeta!
}
input CartWhereInput {
And: [CartWhereInput!]
Or: [CartWhereInput!]
id: FilterV2
customerId: FilterV2
clientToken: FilterV2
}
input CategoriesInput {
where: CategoriesWhereInput
order: String
page: Int
pageSize: Int
}
type CategoriesOutput {
data: [Category!]!
meta: CollectionMeta!
}
input CategoriesWhereInput {
And: [CategoriesWhereInput!]
Or: [CategoriesWhereInput!]
children: CategoriesWhereInput
createdAt: FilterV2
id: FilterV2
listingOrder: FilterV2
listingType: FilterV2
locale: FilterV2
parent: CategoriesWhereInput
products: ProductWhereInput
slug: FilterV2
status: FilterV2
title: FilterV2
translationField: FilterV2
updatedAt: FilterV2
}
type Category {
children(input: CategoriesInput): [Category]!
cover: File
createdAt: Timestamp!
description: String
excerpt: String
gallery: [File!]!
id: ID!
includeChildrenProducts: Boolean!
listingFilters: [CategoryListingFilter!]!
labels: [Label!]!
tags: [Tag!]!
listingOrderBy: ListingSort!
listingOrderByStatus: Boolean!
listingPlacement: Int
listingType: ListingType!
parent: Category
products: [Variant!]!
seoDescription: String
seoTitle: String
slug: String!
status: String!
sublistingStep: Int!
title: String!
updatedAt: Timestamp!
}
input CategoryFilterInput {
slug: String
parent: CategoryFilterInput
}
type CategoryListingFilter {
createdAt: Timestamp!
id: ID!
path: String!
operator: String!
type: FilterType!
updatedAt: Timestamp!
value: String!
entry: ListingFilterEntry
}
type CategoryMutation {
create(input: CreateCategoryInput!): ID!
createMany(input: [CreateCategoryInput!]!): [Category!]!
update(input: UpdateCategoryInput!): Boolean!
addProducts(input: AddCategoryProductsInput!): Boolean!
deleteProduct(input: DeleteCategoryProductInput!): Boolean!
updateProductRank(input: UpdateCategoryProductInput!): Boolean!
delete(id: ID!): Boolean!
archive(id: ID!): Boolean!
deleteMany(ids: [ID!]!): Boolean!
archiveMany(ids: [ID!]!): Boolean!
}
type CategoryQuery {
findMany(input: CategoriesInput): CategoriesOutput!
findOne(id: ID!): Category
}
type ClientInfo {
ip: String
language: String
userAgent: String
meta: String
}
input ClientInfoInput {
language: String
userAgent: String
meta: String
}
type CollectionMeta {
page: Int!
pageSize: Int!
count: Int!
total: Int!
pageCount: Int!
}
type CoreShippingMethod {
code: String!
name: String!
service: ShippingService!
}
input CreateApiKeyInput {
name: String!
dueDate: Timestamp
}
input CreateCategoryInput {
children: [ID]
coverId: ID
description: DescriptionFieldsInput
excerpt: String
gallery: [ID!]
includeChildrenProducts: Boolean!
listingFilters: [CreateListingFilterInput!]
listingOrderBy: ListingSort
listingOrderByStatus: Boolean!
listingType: ListingType!
parentId: ID
products: [ID!]
seo: SeoFieldsInput
slug: String!
status: String!
title: String!
labels: [ID!]
}
input CreateCustomerInput {
email: String!
firstName: String!
lastName: String!
language: String!
phone: String
password: String
isVerified: Boolean!
}
input CreateEmailProfilesInput {
host: String!
port: Int!
username: String!
password: String!
sortIndex: Int!
}
input CreateEmailSettingsInput {
from: String!
replyTo: String!
}
input CreateEmailTemplateInput {
template: String!
subject: String!
type: EmailTypeEnum!
}
input CreateFilterInput {
title: String!
isActive: Boolean!
sortIndex: Int!
type: FilterType!
}
input CreateLabelInput {
name: String!
slug: String!
colorHex: String
}
input CreateLinkInput {
title: String!
slug: String
type: MenuNodeType!
entryId: ID
parentId: ID
sortIndex: Int!
menuId: ID!
}
input CreateListingFilterInput {
operator: String!
type: FilterType!
value: String!
entryID: ID
path: String!
}
input CreateLocaleInput {
isActive: Boolean!
code: String!
}
input CreateMenuInput {
title: String!
items: [CreateLinkInput!]!
slug: String!
status: EntityStatus!
}
input CreateOrderInput {
currency: OrderCurrencyInput
payment: OrderPaymentInfoInput
shipping: OrderShippingInfoInput
customerId: ID
items: [CreateOrderItemInput!]
clientInfo: ClientInfoInput!
tags: [ID!]
externalSystemId: String
}
input CreateOrderItemInput {
productId: ID!
orderId: ID!
quantity: Int = 1
}
input CreatePageInput {
coverId: ID
description: DescriptionFieldsInput
excerpt: String
gallery: [ID!]
seo: SeoFieldsInput
slug: String!
status: String!
title: String!
labels: [ID!]
}
input CreatePaymentMethodInput {
name: String!
code: String!
serviceId: String!
}
input CreatePaymentServiceInput {
name: String!
code: String!
coverId: ID
}
input CreateProductGroupInput {
title: String!
items: [CreateProductGroupItemInput!]!
isMultiple: Boolean!
isRequired: Boolean!
sortIndex: Int!
}
input CreateProductGroupItemInput {
variantId: ID!
sortIndex: Int!
priceType: ProductGroupPriceType
priceAmountValue: Int
pricePercentageValue: Float
maxQuantity: Int
}
input CreateProductInput {
requiresShipping: Boolean!
title: String!
description: DescriptionFieldsInput
seo: SeoFieldsInput
excerpt: String
slug: String
tags: [ID!]!
labels: [ID!]
variants: ProductVariantsInput!
groups: [CreateProductGroupInput!]!
status: EntityStatus!
primaryCategory: ID
}
input CreateProductVariantInput {
barcode: String
categories: [ID!]!
title: String!
costPrice: Int
coverId: ID
features: [ProductFeatureInput!]
gallery: [ID!]
oldPrice: Int
price: Int!
sku: String
slug: String
inListing: Boolean!
variantSortIndex: Int!
stockStatus: String!
weight: Float!
weightUnit: WeightUnit!
width: Float!
length: Float!
height: Float!
dimensionUnit: DimensionUnit!
}
input CreateProfileInput {
firstName: String!
lastName: String!
language: String!
timezone: String!
}
input CreateProjectInput {
name: String!
locales: [String!]!
currency: String!
country: String!
status: ProjectStatus!
timezone: String!
phoneNumber: String
email: String
}
input CreateReviewInput {
productId: ID
rating: Float!
title: String!
message: String
displayName: String!
pros: String
cons: String
images: [ID!]
locale: String
customerId: ID
status: ReviewStatus
}
input CreateShippingItemInput {
estimatedDeliveryAt: Timestamp
fulfillmentId: ID!
notificationsEnabled: Boolean
shippingMethodId: String
shippingPrice: Int
trackingCode: String
trackingEnabled: Boolean
trackingUrl: String
}
input CreateShippingMethodInput {
name: String!
code: String!
serviceId: String!
}
input CreateShippingServiceInput {
name: String!
code: String!
coverId: ID
}
input CreateStockStatusInput {
code: String!
title: String!
isAvailable: Boolean!
}
input CreateTagInput {
title: String!
slug: String!
color: String
}
input CreateTranslationInput {
sourceId: ID!
sourceType: EntityType!
locale: String!
fieldValue: String!
fieldName: TranslationField!
}
input CrmAppendTicketInput {
columnId: ID!
orderID: ID!
}
type CrmColumn {
ID: ID!
title: String!
slug: String!
sortIndex: Int!
tickets: [Order!]!
}
input CrmCreateColumnInput {
title: String!
slug: String!
sortIndex: Int!
}
input CrmMoveTicketInput {
columnId: ID!
orderId: ID!
afterOrderId: ID!
}
type CrmMutation {
columnCreateOne(input: CrmCreateColumnInput!): Boolean!
columnUpdateOne(input: CrmUpdateColumnInput!): Boolean!
columnUpdateMany(input: [CrmUpdateColumnInput!]!): Boolean!
columnDeleteOne(id: ID!): Boolean!
ticketAppend(input: CrmAppendTicketInput!): Boolean!
ticketMove(input: CrmMoveTicketInput!): Boolean!
}
type CrmQuery {
getColumns: [CrmColumn!]!
getTickets(input: CrmTicketsQueryInput!): [CrmTicketsQueryColumnOutput!]!
}
type CrmTicketsQueryColumnOutput {
hasNextPage: Boolean!
data: CrmColumn!
}
input CrmTicketsQueryInput {
offset: Int
limit: Int!
columns: [ID!]!
where: OrderWhereInput
}
input CrmUpdateColumnInput {
id: ID!
slug: String
title: String
sortIndex: Int
}
type Currency {
title: String!
code: String!
isActive: Boolean!
decimalPlaces: Int!
exchangeRate: Float!
symbolLeft: String!
symbolRight: String!
decimalSeparator: String!
thousandsSeparator: String!
}
type Customer {
createdAt: Timestamp!
email: String!
firstName: String!
id: ID!
isBlocked: Boolean
isVerified: Boolean!
lastName: String!
language: String
phone: String
updatedAt: Timestamp!
orders: [Order!]!
}
type CustomerMutation {
create(input: CreateCustomerInput!): ID!
update(input: UpdateCustomerInput!): Boolean!
delete(id: ID!): Boolean!
archive(id: ID!): Boolean!
deleteMany(ids: [ID!]!): [Boolean!]!
archiveMany(ids: [ID!]!): [Boolean!]!
}
type CustomerQuery {
findOne(id: ID!): Customer
findMany(input: CustomersInput): CustomersOutput!
}
input CustomersInput {
page: Int!
pageSize: Int!
sortField: String
sortOrder: String
search: String
}
type CustomersOutput {
data: [Customer!]!
meta: CollectionMeta!
}
input DeleteCategoryProductInput {
categoryId: ID!
productId: ID!
}
input DescriptionFieldsInput {
json: String!
text: String!
html: String!
}
enum DimensionUnit {
MM
CM
M
IN
}
type EmailProfiles {
host: String!
port: Int!
username: String!
createdAt: Timestamp!
updatedAt: Timestamp!
sortIndex: Int!
id: ID!
}
type EmailProfilesMutation {
create(input: CreateEmailProfilesInput!): EmailProfiles!
update(input: UpdateEmailProfilesInput!): EmailProfiles!
}
type EmailProfilesQuery {
findOne: EmailProfiles
}
type EmailSettings {
from: String!
replyTo: String!
createdAt: Timestamp!
updatedAt: Timestamp!
id: ID!
}
type EmailSettingsMutation {
create(input: CreateEmailSettingsInput!): EmailSettings!
update(input: UpdateEmailSettingsInput!): EmailSettings!
}
type EmailSettingsQuery {
findOne: EmailSettings
}
type EmailTemplate {
template: String!
subject: String!
type: EmailTypeEnum!
id: ID!
createdAt: Timestamp!
updatedAt: Timestamp!
}
type EmailTemplateMutation {
create(input: CreateEmailTemplateInput!): EmailTemplate!
update(input: UpdateEmailTemplateInput!): EmailTemplate!
sendTestEmail(input: SendTestEmailInput!): Boolean!
}
type EmailTemplateQuery {
findOne(input: EmailTemplatesInput!): EmailTemplate
findMany(input: EmailTemplatesInput!): [EmailTemplate!]!
}
input EmailTemplatesInput {
where: EmailTemplatesWhereInput
}
input EmailTemplatesWhereInput {
And: [EmailTemplatesWhereInput!]
Or: [EmailTemplatesWhereInput!]
id: FilterV2
type: FilterV2
}
enum EmailTypeEnum {
TENANT_SIGN_UP
TENANT_INVITATION
TENANT_RESET_PASSWORD
CUSTOMER_SIGN_UP
CUSTOMER_INVITATION
CUSTOMER_RESET_PASSWORD
CUSTOMER_ORDER_CREATED
CUSTOMER_ORDER_SHIPPED
CUSTOMER_ORDER_DELIVERED
CUSTOMER_ORDER_CANCELLED
}
enum EntityStatus {
PUBLISHED
DRAFT
ARCHIVED
}
enum EntityType {
BOARD
BOARD_COL
BUNDLE
CATEGORY
CUSTOMER
EMAIL_TPL
PROD_FEAT
PROD_FEAT_GROUP
FILE
FILTER
FULFILLMENT
LINK
MENU
ORDER
ORDER_ITEM
PAGE
PAY_ITEM
PAY_METHOD
PROD_CONTAINER
PROD_GROUP
PROD_VARIANT
REVIEW
SHIP_ITEM
SHIP_METHOD
SHIP_SERVICE
STOCK_STATUS
TAG
}
enum FeatureStyleType {
RADIO
DROPDOWN
VARIANT_COVER
SWATCH
APPAREL_SIZE
}
type FeatureSwatch {
id: ID!
color1: String
color2: String
image: File
type: FeatureSwatchType!
}
input FeatureSwatchInput {
id: ID
color1: String
color2: String
imageId: ID
type: FeatureSwatchType!
}
enum FeatureSwatchType {
COLOR
COLOR_DUO
IMAGE
}
type File {
id: ID!
driver: FileDriver!
name: String!
url: String!
size: Int!
ext: String!
key: String!
createdAt: Timestamp!
updatedAt: Timestamp!
}
enum FileDriver {
LOCAL
S3
YTB
URL
}
type FileMutation {
updateOne(input: UpdateFileInput!): File!
updateMany(input: [UpdateFileInput!]!): [File!]!
deleteOne(id: ID!): Boolean!
deleteMany(ids: [ID!]!): Boolean!
archiveOne(id: ID!): Boolean!
archiveMany(ids: [ID!]!): Boolean!
}
type FileQuery {
findOne(id: ID!): File
findMany(input: FilesInput): FilesOutput!
}
input FilesInput {
where: FilesWhereInput
order: String
page: Int
pageSize: Int
}
type FilesOutput {
data: [File!]!
meta: CollectionMeta!
}
input FilesWhereInput {
And: [FilesWhereInput!]
Or: [FilesWhereInput!]
id: FilterV2
name: FilterV2
url: FilterV2
size: FilterV2
ext: FilterV2
createdAt: FilterV2
updatedAt: FilterV2
product: FilterV2
category: FilterV2
post: FilterV2
page: FilterV2
}
type Filter {
title: String!
createdAt: Timestamp!
isActive: Boolean!
id: ID!
sortIndex: Int!
type: FilterType!
updatedAt: Timestamp!
}
input FilterInput {
Eq: Any
NotEq: Any
Gt: Any
Gte: Any
Is: Any
IsNot: Any
Lt: Any
Lte: Any
In: Any
NotIn: Any
Like: Any
NotLike: Any
ILike: Any
NotILike: Any
}
type FilterMutation {
create(input: CreateFilterInput!): Filter!
createMany(input: [CreateFilterInput!]!): Boolean!
update(input: UpdateFilterInput!): Filter!
updateMany(input: [UpdateFilterInput!]!): Boolean!
}
type FilterQuery {
findMany(input: ProductFilterV2): [Filter!]!
findOne(id: ID!): Filter
}
input FiltersWhereInput {
And: [FiltersWhereInput!]
Or: [FiltersWhereInput!]
id: FilterV2
}
enum FilterType {
PRICE
CATEGORY
AVAILABILITY
FEATURE
TAG
}
scalar FilterV2
input ForgotPasswordInput {
email: String!
}
type Fulfillment {
id: ID!
createdAt: Timestamp!
parentId: ID
shippingItem: ShippingItem