-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
566 lines (502 loc) · 10.8 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
"""types"""
type Patient{
patient_name:String
doctor_username:String
contact_number:String
email_address:String
branch:String
date_of_appointment:String
}
type UserInformation{
username:String
employee_no:String
first_name:String
middle_name:String
last_name:String
suffix:String
contact_number:String
email_address:String
profile_id:Int
affiliate_level_id:Int
date_registered:String
is_active:Boolean
is_activated:Boolean
is_temporary_password:Boolean
}
type Branch{
branch_id:ID
branch_code:String
branch_name:String
branch_address:String
open_time:String
close_time:String
}
type Appointment{
appointment_id:ID
patient_name:String
patient_contact_no:String
email_address:String
branch_code:String
branch_name:String
appointment_date:String
start_timeslot:String
end_timeslot:String
appoint_by:String
is_cancelled:Boolean
cancelled_date:String
cancelled_by:String
reference_code:String
}
type ProductClass{
class_id:Int
class_code:String
class_name:String
}
type Product{
service_id:Int
product_code:String
product_name:String
class_id:Int
class_code:String
class_name:String
product_description:String
image_id:Int
file_type:String
file_name:String
file_size:Int
file_content_type:String
file_content:String
}
type Promotion{
promotion_id:Int
promotion_name:String
image_id:String
description:String
status:String
file_id:Int
file_type:String
file_name:String
file_size:Int
file_content_type:String
file_content:String
}
"""end of types"""
#input_data#
input CancelAppointmentInput{
reference_codes:[String!]!
cancelled_by:String!
}
input ValidatorInput{
validate:[String!]!
}
input AddAppointmentInput{
patient_name:String!
patient_contact_no:String!
email_address:String!
branch_code:String!
branch_name:String!
appointment_date:String!
start_timeslot:String!
end_timeslot:String!
appoint_by:String
}
input UpdateAppointmentInput{
reference_code:String!
patient_name:String!
patient_contact_no:String!
email_address:String!
branch_code:String!
branch_name:String!
appointment_date:String!
start_timeslot:String!
end_timeslot:String!
modified_by:String!
}
input LoginInput{
username:String!
password:String!
}
input TwoFactorInput{
username:String!
authentication:String!
}
input RegistrationInput{
username:String!
employee_no:String
first_name:String!
middle_name:String
last_name:String!
suffix:String
is_accreditation:Boolean!
affiliate_level:Int
contact_number:String
email_address:String,
password:String,
is_active:Boolean!
}
input UpdateAccountInput{
username:String
new_username:String
first_name:String
middle_name:String
last_name:String
suffix:String
contact_no:String
email_address:String
profile_id:Int
affiliate_level_id:Int
employee_no:String
new_employee_no:String
is_activated:Boolean
date_registered:String
is_active:Boolean!
}
input PatientAppointmentInput{
patient_name:String!
doctor_username:String!
contact_number:String
email_address:String
branch:String
date_of_appointment:String
}
input AppointmentListInput{
doctor_username:String!
filtered_month:Int
filtered_day:Int
filtered_year:Int
}
input PaginationInput{
page:Int
limit_page:Int
has_pagination:Boolean
}
input GetUserInfoInput{
profile_id:Int!,
affiliate_level:Int
}
input GetInfoByUsernameInput{
username:String!
}
input ChangePasswordInput{
username:String!
new_password:String!
old_password:String!
}
input ForgotPasswordInput{
email_address:String!
}
input ValidateResetKeyInput{
email_address:String!
reset_key:String!
}
input ChangePasswordViaForgotInput{
email_address:String!
reset_key:String!
new_password:String!
username:String!
}
input GetAppointmentListByUsernameInput{
username:String!
branch_code:String
}
input GetCancelleAppointmentListByUsernameInput{
username:String!
}
input GetActiveAppointmentByRangeInput{
username:String!
branch_code:String!
from_range:String!
to_range:String!
}
input GetAppointmentInformationInput{
appointment_id:Int
}
input FileInput{
file_type:String!
file_content_type:String
file_name:String!
file_size:Int
file_content:String!
}
input AddServiceInput{
product_code:String
product_name:String!
class_id:Int!
product_description:String!
image_file:FileInput!
created_by:String!
}
input AddPromotionInput{
promotion_name:String!
description:String!
status:String!
image_file:FileInput!
created_by:String!
}
input UpdateServiceInput{
service_id:Int!
upload_new_file:Boolean!
product_code:String
product_name:String!
class_id:Int!
product_description:String!
image_file:FileInput!
modified_by:String!
}
input UpdatePromotionInput{
promotion_id:Int!
promotion_name:String!
image_id:String!
upload_new_file:Boolean!
description:String!
status:String!
image_file:FileInput!
modified_by:String!
}
input DeleteServiceInput{
service_id:Int!
deleted_by:String!
}
input DeletePromotionInput{
promotion_id:Int!
deleted_by:String!
}
input GetProductByIdInput{
service_id:Int
}
input GetProductByProductCodeInput{
product_code:String!
}
input GetPromotionByIdInput{
promotion_id:Int!
}
input GetPromotionByImageIdInput{
image_id:String!
}
input AddTutorialInput{
youtube_id:String!
video_title:String!
youtube_link:String!
video_description:String
created_by:String!
}
input UpdateTutorialInput{
video_id:Int!
youtube_id:String!
video_title:String!
youtube_link:String!
video_description:String
modified_by:String!
}
input DeleteTutorialInput{
video_id:Int!
deleted_by:String
}
input GetTutorialInfoInput{
youtube_id:String!
}
input SubmitFeedbackInput{
full_name:String!
contact_no:String!
email_address:String!
message:String!
}
#end of inputs#
"""response"""
type Pagination{
current_page:Int
total_count:Int
}
type Tutorial{
video_id:Int
youtube_id:String
video_title:String
youtube_link:String
video_description:String
}
type UserInfoListResponse{
users:[UserInformation]
}
type BaseUserListResponse{
type:String!
message:String
data:UserInfoListResponse
}
type LoginResponse{
login_hash:String
username:String
}
type BaseLoginResponse{
type:String!
message:String
data:LoginResponse
}
type RegistrationResponse{
registration_date:String
username:String
}
type BaseRegistrationResponse{
type:String!
message:String
data:RegistrationResponse
}
type TwoFactorResponse{
login_date:String
token:String
}
type BaseTwoFactorResponse{
type:String!
message:String
data:TwoFactorResponse
}
type PatientAppointmentResponse{
appointment_code:String
date_process:String
}
type BasePatientAppointmentResponse{
type:String!
message:String
data:PatientAppointmentResponse
}
type AppointmentListResponse{
patients:[Patient]
token:String
}
type BaseAppointmentListResponse{
type:String!
message:String
data:AppointmentListResponse
}
type BaseValidatorResponse{
type:String!
message:String
data:String
}
type UpdateAccountResponse{
type:String!
message:String
data:LoginResponse
}
type IsEligibleResponse{
type:String!
message:String
}
type GetUserInfoResponse{
type:String!
message:String
data:UserInformation
}
type BaseResponse{
type:String!
message:String
}
type GetBranchListResponse{
type:String!
message:String
data:[Branch]
}
type GetActiveAppointmentListResponse{
type:String!
message:String
data:[Appointment]
}
type GetCancelledAppointmentListResponse{
type:String!
message:String
data:[Appointment]
}
type GetAppointmentInfoResponse{
type:String!
message:String
data:Appointment
}
type AppointmentReferenceCode{
code:String!
}
type GenerateAppointmentReferenceResponse{
type:String!
message:String
data:AppointmentReferenceCode
}
type GetProductClassListResponse{
type:String!
message:String
data:[ProductClass]
}
type GetProductListResponse{
type:String!
message:String
data:[Product]
pagination:Pagination
}
type GetProductInfoResponse{
type:String!
message:String
data:Product
}
type GetTutorialListResponse{
type:String!
message:String
data:[Tutorial],
pagination:Pagination
}
type GetTutorialInfoResponse{
type:String!
message:String
data:Tutorial
}
type GetPromotionListResponse{
type:String!
message:String
data:[Promotion]
}
type GetPromotionByIdResponse{
type:String!
message:String
data:Promotion
}
"""end of response"""
type Query{
get_validator(input:ValidatorInput!):BaseValidatorResponse
get_user_list(input:GetUserInfoInput!):BaseUserListResponse
get_user_info(input:GetInfoByUsernameInput!):GetUserInfoResponse
get_branches:GetBranchListResponse
get_active_appointment_list:GetActiveAppointmentListResponse
get_cancelled_appointment_list:GetCancelledAppointmentListResponse
get_appointment_info(input:GetAppointmentInformationInput!):GetAppointmentInfoResponse
get_active_appointment_by_username(input:GetAppointmentListByUsernameInput!):GetActiveAppointmentListResponse
get_active_appointment_by_range(input:GetActiveAppointmentByRangeInput!):GetActiveAppointmentListResponse
get_cancelled_appointment_by_username(input:GetAppointmentListByUsernameInput!):GetCancelledAppointmentListResponse
get_product_class_list:GetProductClassListResponse
get_services(pagination:PaginationInput):GetProductListResponse
get_product_by_id(input:GetProductByIdInput!):GetProductInfoResponse
get_product_by_product_code(input:GetProductByProductCodeInput!):GetProductInfoResponse
get_tutorial_list(pagination:PaginationInput):GetTutorialListResponse
get_tutorial_info(input:GetTutorialInfoInput!):GetTutorialInfoResponse
get_promotion_list:GetPromotionListResponse
get_promotion_by_id(input:GetPromotionByIdInput!):GetPromotionByIdResponse
get_promotion_by_image_id(input:GetPromotionByImageIdInput!):GetPromotionByIdResponse
}
type Mutation{
change_password_via_forgot(input:ChangePasswordViaForgotInput!):BaseResponse
is_valid_key(input:ValidateResetKeyInput!):BaseResponse
forgot_password(input:ForgotPasswordInput!):BaseResponse
login(input:LoginInput!):BaseLoginResponse
register(input:RegistrationInput!):BaseRegistrationResponse
change_password(input:ChangePasswordInput!):BaseResponse
update_account(input:UpdateAccountInput!):UpdateAccountResponse
add_appointment(input:AddAppointmentInput!):BaseResponse
generate_appointment_reference_code:GenerateAppointmentReferenceResponse
cancel_appointment(input:CancelAppointmentInput!):BaseResponse
update_appointment(input:UpdateAppointmentInput!):BaseResponse
add_service(input:AddServiceInput!):BaseResponse
delete_service(input:DeleteServiceInput!):BaseResponse
update_service(input:UpdateServiceInput!):BaseResponse
add_tutorial(input:AddTutorialInput!):BaseResponse
update_tutorial(input:UpdateTutorialInput!):BaseResponse
delete_tutorial(input:DeleteTutorialInput!):BaseResponse
submit_feedback(input:SubmitFeedbackInput!):BaseResponse
add_promotion(input:AddPromotionInput!):BaseResponse
update_promotion(input:UpdatePromotionInput!):BaseResponse
delete_promotion(input:DeletePromotionInput!):BaseResponse
}