-
Notifications
You must be signed in to change notification settings - Fork 6
/
2023-07-12_ULTRAWALTER_Schema
855 lines (740 loc) · 17.7 KB
/
2023-07-12_ULTRAWALTER_Schema
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
"""
The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
"""
scalar JSON
"""
The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
"""
scalar JSONObject
"""Date custom scalar type by huyquansu"""
scalar Date
"""Date custom scalar type by huyquansu"""
scalar DateTime
"""Date custom scalar type by huyquansu"""
scalar Time
type resultCounts {
ok: Boolean
count: Int
}
input InputEmbedded {
field: String!
"""type tìm kiếm chỉ trong những giá trị eq, in, nin , gt, gte, lt, lte"""
type: String!
value: String!
}
type resultDeletes {
ok: Boolean
deleted: Int
}
"""Input tìm kiếm Object"""
input InputSearchObject {
"""Bằng giá trị"""
in: JSONObject
"""Không bằng giá trị"""
ne: JSONObject
}
"""Input tìm kiếm Auhtor"""
input InputSearchAuthor {
embedded: InputEmbedded
}
"""Input tìm kiếm Caculate Int"""
input InputSearchCalculateInt {
eq: Int
"""Không bằng giá trị"""
ne: Int
}
"""Input tìm kiếm Caculate Float"""
input InputSearchCalculateFloat {
author: Float
}
"""Input tìm kiếm String"""
input InputSearchStringDynamic {
eq: Int
"""Không bằng giá trị"""
ne: Int
}
"""Input tìm kiếm Object dynamic"""
input InputSearchObjectsDynamic {
embeddeds: [InputEmbedded]
object: JSONObject
}
"""Input tìm kiếm Object"""
input InputSearchJSONObject {
embeddeds: [InputEmbedded]
object: JSONObject
}
"""Input tìm kiếm text"""
input InputSearchText {
search: String
"""Nếu là true thì phân biệt chữ hoa, chữ thường"""
aseSensitive: Boolean
"""Nếu là true thì Không cho phép chứa ký tự lạ"""
diacriticSensitive: Boolean
}
"""input cho field là String"""
input InputSearchString {
"""Chứa giá trị"""
regex: String
"""
Bổ trợ yêu cầu regex với giá trị i là bỏ qua chữ hoa thường x là bỏ qua dấu
"""
options: String
"""Bằng giá trị"""
eq: String
"""Không bằng giá trị"""
ne: String
"""Nằm trong những giá trị"""
in: [String]
"""Không nằm trong những giá trị"""
nin: [String]
}
"""Input cho field là Boolean"""
input InputSearchBoolean {
eq: Boolean
}
input InputSearchTemplate {
eq: Boolean
}
input InputSearchTemplates {
eq: Boolean
}
"""Input cho field là Float"""
input InputSearchFloat {
"""Bé hơn giá trị"""
lt: Float
"""Bé hơn hoặc bằng giá trị"""
lte: Float
"""Bằng giá trị"""
eq: Float
"""Không bằng giá trị"""
ne: Float
"""Nằm trong những giá trị"""
in: [Float]
"""Không nằm trong những giá trị"""
nin: [Float]
"""Lón hơn giá trị"""
gt: Float
"""Lón hơn hoặc bằng giá trị"""
gte: Float
}
input InputSearchNumber {
"""Bé hơn giá trị"""
lt: Int
"""Bé hơn hoặc bằng giá trị"""
lte: Int
"""Bằng giá trị"""
eq: Int
"""Không bằng giá trị"""
ne: Int
"""Nằm trong những giá trị"""
in: [Int]
"""Không nằm trong những giá trị"""
nin: [Int]
"""Lón hơn giá trị"""
gt: Int
"""Lón hơn hoặc bằng giá trị"""
gte: Int
}
input InputSearchInt {
"""Bé hơn giá trị"""
lt: Int
"""Bé hơn hoặc bằng giá trị"""
lte: Int
"""Bằng giá trị"""
eq: Int
"""Không bằng giá trị"""
ne: Int
"""Nằm trong những giá trị"""
in: [Int]
"""Không nằm trong những giá trị"""
nin: [Int]
"""Lón hơn giá trị"""
gt: Int
"""Lón hơn hoặc bằng giá trị"""
gte: Int
}
input InputSearchDateTime {
lt: DateTime
"""Bé hơn hoặc bằng giá trị"""
lte: DateTime
"""Bằng giá trị"""
eq: DateTime
"""Không bằng giá trị"""
ne: DateTime
"""Nằm trong những giá trị"""
in: [DateTime]
"""Không nằm trong những giá trị"""
nin: [DateTime]
"""Lón hơn giá trị"""
gt: DateTime
"""Lón hơn hoặc bằng giá trị"""
gte: Date
}
input InputSearchDate {
lt: Date
"""Bé hơn hoặc bằng giá trị"""
lte: Date
"""Bằng giá trị"""
eq: Date
"""Không bằng giá trị"""
ne: Date
"""Nằm trong những giá trị"""
in: [Date]
"""Không nằm trong những giá trị"""
nin: [Date]
"""Lón hơn giá trị"""
gt: Date
"""Lón hơn hoặc bằng giá trị"""
gte: Date
}
input SearchDateinput {
less: String
greater: String
}
type Author {
_id: String
fullName: String
email: String
username: String
avatar: String
name: String
location: String
website: String
picture: String
profile: Profile
}
type security {
sms: Boolean
whiteList: [String]
}
type User {
_id: String
username: String
email: String
profile: Profile
rules: String
portfolio: Float
status: Boolean
enableTfa: Boolean
createdAt: DateTime
updatedAt: DateTime
}
"""The `Upload` scalar type represents a file upload."""
scalar Upload
type File {
filename: String!
mimetype: String!
encoding: String!
}
type Image {
_id: String!
name: String
status: Boolean
category: String
folder: String
label: String
tags: [String]
url: String!
path: String
height: Float
width: Float
ext: String
provider: String
ImagesStorage: String
thumbnail: String
isReady: Boolean
size: Float
description: String
_author: Author
createdAt: DateTime
updatedAt: DateTime
}
input SortImageInput {
createdAt: Int
name: Int
size: Int
}
input QueryImageInput {
status: Boolean
name: String
category: String
tags: String
label: String
folder: String
assetsStorage: String
createdAt: SearchDateinput
}
input CreateImageInput {
name: String
status: Boolean
folder: String
category: String
label: String
tags: [String]
height: Int
width: Int
provider: String
assetsStorage: String
description: String
}
input UpdateImageInput {
name: String
status: Boolean
category: String
label: String
folder: String
tags: [String]
height: Int
width: Int
description: String
}
type signedS3 {
signedRequest: String
url: String
image: Image
}
type Query {
images(limit: Int, sort: SortImageInput, offset: Int, noCache: Boolean, query: QueryImageInput): [Image]!
imageInS3: [String]
existImageInS3(key: String!): Boolean
me: User
users: [User]
duLieus(query: duLieuFindInput, sort: JSONObject, limit: Float, skip: Float): [DuLieu]
duLieu(_id: String!): DuLieu
countDuLieu(query: duLieuCountInput): Float
taiKhoanAdss(query: taiKhoanAdsFindInput, sort: JSONObject, limit: Float, skip: Float): [TaiKhoanAds]
fanpages(query: fanpageFindInput, sort: JSONObject, limit: Float, skip: Float): [Fanpage]
fanpage(_id: String!): Fanpage
businessess(query: businessesFindInput, sort: JSONObject, limit: Float, skip: Float): [Businesses]
businesses(_id: String!): Businesses
}
type Mutation {
signedLinkUpload(fileName: String!, keepType: Boolean, type: String!): signedS3
imageCreate(label: String, folder: String, keepType: Boolean, file: Upload!): Image
imageUpdate(_id: String!, image: UpdateImageInput!): Image
imageDelete(_id: String!): Boolean!
imageDeletes(_id: [String]!): Boolean!
imageDeleteByUrl(url: String!): Boolean!
newPasswordResetToken(email: String!): Boolean
newVerificationToken(email: String!): ReNewVe
verifiForGot(email: String!, password: String!, token: String!): String
verifiLogin(email: String!, password: String!, token: String!): String
signupUser(email: String!, password: String!, confirmPassword: String!): User
createUser(email: String!, name: String, password: String, tfa: String): User
updateUser(_id: String, discord: String, enableTfa: Boolean, email: String, password: String, status: Boolean, tfa: String): User
updateProfileUser(tfa: String): User
removeUser(_id: String, tfa: String): Boolean
createDuLieu(duLieu: duLieuCreateInput!): DuLieu
updateDuLieu(_id: String!, duLieu: duLieuUpdateInput!): DuLieu
deletesDuLieu(query: duLieuDeletesInput, sort: JSONObject, limit: Float, skip: Float): [DuLieu]
yeucaudulieumoiDuLieu(_id: String!, duLieu: duLieuYeucaudulieumoiInput!): DuLieu
capNhatTrangThaiDuLieu(_id: String!, duLieu: duLieuCapnhattrangthaiInput!): DuLieu
createTaiKhoanAds(taiKhoanAds: taiKhoanAdsCreateInput!): TaiKhoanAds
updateTaiKhoanAds(_id: String!, taiKhoanAds: taiKhoanAdsUpdateInput!): TaiKhoanAds
deleteTaiKhoanAds(_id: String!): TaiKhoanAds
deletesTaiKhoanAds(query: taiKhoanAdsDeletesInput, sort: JSONObject, limit: Float, skip: Float): [TaiKhoanAds]
createFanpage(fanpage: fanpageCreateInput!): Fanpage
updateFanpage(_id: String!, fanpage: fanpageUpdateInput!): Fanpage
deleteFanpage(_id: String!): Fanpage
deletesFanpage(query: fanpageDeletesInput, sort: JSONObject, limit: Float, skip: Float): [Fanpage]
createBusinesses(businesses: businessesCreateInput!): Businesses
updateBusinesses(_id: String!, businesses: businessesUpdateInput!): Businesses
deleteBusinesses(_id: String!): Businesses
deletesBusinesses(query: businessesDeletesInput, sort: JSONObject, limit: Float, skip: Float): [Businesses]
}
type Profile {
name: String
location: String
website: String
picture: String
rules: String
enableTfa: Boolean
}
type ReNewVe {
tfa: Boolean
status: Boolean
}
"""Dữ liệu """
type DuLieu {
ten: String
uid: String
fa: String
cookie: String
password: String
token: String
ngayLay: DateTime
cookieGg: String
email: String
fanpage: [Fanpage]
businesses: [Businesses]
taiKhoanAds: [TaiKhoanAds]
birthday: String
location: String
step: String
cookieOutlook: String
usergmail: String
passgmail: String
useroutlook: String
passoutlook: String
ip: String
nguongHienTaiCaoNhat: String
hanhDong: String
trinhDuyet: String
ngayReset: DateTime
getnew: String
_id: String
createdAt: DateTime
updatedAt: DateTime
maquocgia: String
trangthaionline: Boolean
maMay: String
}
input duLieuFindInput {
maMay: InputSearchString
uid: InputSearchString
ip: InputSearchString
ten: InputSearchString
email: InputSearchString
ngayLay: InputSearchDateTime
ngayReset: InputSearchDateTime
step: InputSearchString
cookie: InputSearchString
password: InputSearchString
fa: InputSearchString
token: InputSearchString
cookieGg: InputSearchString
fanpage: fanpageFindInput
businesses: businessesFindInput
taiKhoanAds: taiKhoanAdsFindInput
birthday: InputSearchString
location: InputSearchString
cookieOutlook: InputSearchString
usergmail: InputSearchString
passgmail: InputSearchString
useroutlook: InputSearchString
passoutlook: InputSearchString
nguongHienTaiCaoNhat: InputSearchString
hanhDong: InputSearchString
trinhDuyet: InputSearchString
getnew: InputSearchString
maquocgia: InputSearchString
trangthaionline: InputSearchBoolean
_id: InputSearchString
searchText: InputSearchText
or: [duLieuFindInput]
}
input duLieuCountInput {
ngayLay: InputSearchDateTime
trinhDuyet: InputSearchString
ngayReset: InputSearchDateTime
getnew: InputSearchString
maquocgia: InputSearchString
trangthaionline: InputSearchBoolean
maMay: InputSearchString
searchText: InputSearchText
or: [duLieuCountInput]
}
input duLieuCreateInput {
maMay: String
uid: String
ten: String
email: String
step: String
password: String
cookie: String
fa: String
token: String
ngayLay: DateTime
cookieGg: String
fanpage: [fanpageCreateInput]
businesses: [businessesCreateInput]
taiKhoanAds: [taiKhoanAdsCreateInput]
birthday: String
location: String
cookieOutlook: String
usergmail: String
passgmail: String
useroutlook: String
passoutlook: String
ip: String
nguongHienTaiCaoNhat: String
hanhDong: String
trinhDuyet: String
ngayReset: DateTime
getnew: String
maquocgia: String
trangthaionline: Boolean
}
input duLieuUpdateInput {
ten: String
uid: String
fa: String
cookie: String
password: String
token: String
ngayLay: DateTime
cookieGg: String
email: String
fanpage: [fanpageUpdateInput]
businesses: [businessesUpdateInput]
taiKhoanAds: [taiKhoanAdsUpdateInput]
birthday: String
location: String
step: String
cookieOutlook: String
usergmail: String
passgmail: String
useroutlook: String
passoutlook: String
ip: String
nguongHienTaiCaoNhat: String
hanhDong: String
trinhDuyet: String
ngayReset: DateTime
getnew: String
maquocgia: String
trangthaionline: Boolean
maMay: String
}
input duLieuDeletesInput {
ten: InputSearchString
uid: InputSearchString
fa: InputSearchString
cookie: InputSearchString
password: InputSearchString
token: InputSearchString
ngayLay: InputSearchDateTime
cookieGg: InputSearchString
email: InputSearchString
fanpage: fanpageDeletesInput
businesses: businessesDeletesInput
taiKhoanAds: taiKhoanAdsDeletesInput
birthday: InputSearchString
location: InputSearchString
step: InputSearchString
cookieOutlook: InputSearchString
usergmail: InputSearchString
passgmail: InputSearchString
useroutlook: InputSearchString
passoutlook: InputSearchString
ip: InputSearchString
nguongHienTaiCaoNhat: InputSearchString
hanhDong: InputSearchString
trinhDuyet: InputSearchString
ngayReset: InputSearchDateTime
getnew: InputSearchString
maquocgia: InputSearchString
trangthaionline: InputSearchBoolean
maMay: InputSearchString
searchText: InputSearchText
or: [duLieuDeletesInput]
}
input duLieuYeucaudulieumoiInput {
getnew: String
ip: String!
maMay: String
}
input duLieuCapnhattrangthaiInput {
trangthaionline: Boolean!
getnew: String
maMay: String
}
type yeucaudulieumoiDataSType {
ip: String
_id: String
}
type yeucaudulieumoiSubType {
duLieu: yeucaudulieumoiDataSType
}
type Subscription {
yeucaudulieumoi(ip: String): yeucaudulieumoiSubType
}
"""Tài khoản ads """
type TaiKhoanAds {
trangThai: String
ngayTao: String
ngayLapHoaDon: String
adminAn: Int
loaiTaiKhoan: String
muiGio: String
theThanhToan: String
currency: String
id: String
gioiHanChiTieu: String
nguongHienTai: String
tongChiTieu: String
soDu: String
ten: String
ngayHetHan: String
trangThaiThe: String
radioToUsd: Float
}
input taiKhoanAdsFindInput {
trangThai: InputSearchString
ngayTao: InputSearchString
ngayLapHoaDon: InputSearchString
adminAn: InputSearchInt
loaiTaiKhoan: InputSearchString
muiGio: InputSearchString
theThanhToan: InputSearchString
id: InputSearchString
currency: InputSearchString
gioiHanChiTieu: InputSearchString
nguongHienTai: InputSearchString
tongChiTieu: InputSearchString
soDu: InputSearchString
ten: InputSearchString
radioToUsd: InputSearchFloat
ngayHetHan: InputSearchString
trangThaiThe: InputSearchString
or: [taiKhoanAdsFindInput]
}
input taiKhoanAdsCreateInput {
trangThai: String
ngayTao: String
ngayLapHoaDon: String
ten: String
adminAn: Int
loaiTaiKhoan: String
muiGio: String
theThanhToan: String
currency: String
id: String
gioiHanChiTieu: String
nguongHienTai: String
tongChiTieu: String
soDu: String
ngayHetHan: String
trangThaiThe: String
radioToUsd: Float
}
input taiKhoanAdsUpdateInput {
trangThai: String
ngayTao: String
ngayLapHoaDon: String
adminAn: Int
loaiTaiKhoan: String
muiGio: String
theThanhToan: String
currency: String
id: String
gioiHanChiTieu: String
tongChiTieu: String
soDu: String
nguongHienTai: String
ten: String
ngayHetHan: String
trangThaiThe: String
radioToUsd: Float
}
input taiKhoanAdsDeleteInput {
or: [taiKhoanAdsDeleteInput]
}
input taiKhoanAdsDeletesInput {
trangThai: InputSearchString
ngayTao: InputSearchString
ngayLapHoaDon: InputSearchString
adminAn: InputSearchInt
loaiTaiKhoan: InputSearchString
muiGio: InputSearchString
theThanhToan: InputSearchString
id: InputSearchString
ten: InputSearchString
radioToUsd: InputSearchFloat
or: [taiKhoanAdsDeletesInput]
}
"""Fanpage """
type Fanpage {
accessToken: String
id: String
name: String
verification_status: String
fan_count: String
}
input fanpageFindInput {
accessToken: InputSearchString
id: InputSearchString
name: InputSearchString
verification_status: InputSearchString
fan_count: InputSearchString
or: [fanpageFindInput]
}
input fanpageCreateInput {
accessToken: String
id: String
name: String
verification_status: String
fan_count: String
}
input fanpageUpdateInput {
accessToken: String
id: String
name: String
verification_status: String
fan_count: String
}
input fanpageDeleteInput {
or: [fanpageDeleteInput]
}
input fanpageDeletesInput {
accessToken: InputSearchString
id: InputSearchString
name: InputSearchString
or: [fanpageDeletesInput]
}
"""Businesses """
type Businesses {
ten: String
gioiHan: Int
ngayTao: String
role: String
trangThai: String
nguoi: Int
linkBm: String
id: String
}
input businessesFindInput {
ten: InputSearchString
gioiHan: InputSearchInt
ngayTao: InputSearchString
role: InputSearchString
trangThai: InputSearchString
nguoi: InputSearchInt
linkBm: InputSearchString
id: InputSearchString
or: [businessesFindInput]
}
input businessesCreateInput {
ten: String
gioiHan: Int
ngayTao: String
role: String
trangThai: String
nguoi: Int
linkBm: String
id: String
}
input businessesUpdateInput {
ten: String
gioiHan: Int
ngayTao: String
role: String
trangThai: String
nguoi: Int
linkBm: String
id: String
}
input businessesDeleteInput {
or: [businessesDeleteInput]
}
input businessesDeletesInput {
ten: InputSearchString
gioiHan: InputSearchInt
ngayTao: InputSearchString
role: InputSearchString
trangThai: InputSearchString
nguoi: InputSearchInt
linkBm: InputSearchString
id: InputSearchString
or: [businessesDeletesInput]
}