This repository has been archived by the owner on Sep 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cord_API_V3_TogglePinned_Project.postman_collection.json
1385 lines (1385 loc) · 285 KB
/
Cord_API_V3_TogglePinned_Project.postman_collection.json
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
{
"info": {
"_postman_id": "1a87f0a9-1c18-4535-b06a-ee51960111f5",
"name": "Cord_API_V3_TogglePinned_Project",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Pre-req ( Session + Register + Login ) for TogglePin",
"item": [
{
"name": "Session",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var response = pm.response.json();\r",
"pm.globals.set(\"token\", response.data.session.token);"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "# Write your query or mutation here\r\nquery {\r\n session(browser: false) {\r\n user {\r\n id,\r\n email\r\n {\r\n value\r\n }\r\n realFirstName\r\n {\r\n value\r\n }\r\n createdAt\r\n displayLastName\r\n {\r\n value\r\n }\r\n \r\n \r\n \r\n },\r\n token\r\n }\r\n}",
"variables": ""
}
},
"url": {
"raw": "{{env}}/graphql",
"host": [
"{{env}}"
],
"path": [
"graphql"
]
}
},
"response": []
},
{
"name": "Root Admin Login",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = pm.response.json();",
"",
"var id = jsonData.data.login.user.id;",
"pm.globals.set(\"rootAdminUserid\", id);",
"",
"var email = jsonData.data.login.user.email.value;",
"pm.globals.set(\"email\", email);",
""
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation login($input: LoginInput!) {\r\n login(input: $input) {\r\n powers\r\n user {\r\n id\r\n fullName\r\n firstName\r\n avatarLetters\r\n createdAt\r\n canDelete\r\n email {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n phone {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n about {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n status {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n roles {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n title {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n timezone {\r\n canRead\r\n canEdit\r\n value {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n name\r\n zones {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n }\r\n }\r\n }\r\n }\r\n }\r\n unavailabilities {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n #canDelete\r\n description {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n start\r\n end\r\n }\r\n }\r\n organizations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n }\r\n partners {\r\n total\r\n hasMore\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n modifiedAt\r\n types {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n financialReportingTypes {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n pmcEntityCode {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n globalInnovationsClient {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n active {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n address {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n organization {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n pointOfContact {\r\n value {\r\n id\r\n fullName\r\n firstName\r\n avatarLetters\r\n createdAt\r\n email {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n phone {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n about {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n status {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n title {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n roles {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n timezone {\r\n canRead\r\n canEdit\r\n value {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n name\r\n zones {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n }\r\n }\r\n }\r\n }\r\n }\r\n unavailabilities {\r\n total\r\n hasMore\r\n canCreate\r\n canRead\r\n items {\r\n id\r\n createdAt\r\n # canDelete\r\n start\r\n end\r\n description {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n }\r\n }\r\n organizations {\r\n total\r\n hasMore\r\n canCreate\r\n canRead\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n }\r\n education {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n degree {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n major {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n institution {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n partners {\r\n canCreate\r\n canRead\r\n hasMore\r\n total\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n modifiedAt\r\n types {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n financialReportingTypes {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n pmcEntityCode {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n globalInnovationsClient {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n active {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n address {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n organization {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n pointOfContact {\r\n canEdit\r\n canRead\r\n value {\r\n id\r\n }\r\n }\r\n }\r\n }\r\n locations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n knownLanguages {\r\n proficiency\r\n language {\r\n id\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n education {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n degree {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n major {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n institution {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n locations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n knownLanguages {\r\n proficiency\r\n language {\r\n id\r\n }\r\n }\r\n }\r\n }\r\n}\r\n",
"variables": "{\r\n \"input\": {\r\n \"email\": \"{{rootAdminLogin_email}}\",\r\n \"password\": \"{{rootAdminLogin_password}}\"\r\n }\r\n}"
}
},
"url": {
"raw": "{{env}}/graphql",
"host": [
"{{env}}"
],
"path": [
"graphql"
]
}
},
"response": []
},
{
"name": "Grant Power to RootAdmin",
"event": [
{
"listen": "test",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation grantPower($userId: ID!,$power:Power!) {\r\n grantPower(userId:$userId,power:$power){\r\n __typename\r\n }\r\n}\r\n",
"variables": "{\r\n \"userId\": \"{{rootAdminUserid}}\",\r\n \"power\": \"GrantPower\"\r\n}"
}
},
"url": {
"raw": "{{env}}/graphql",
"host": [
"{{env}}"
],
"path": [
"graphql"
]
}
},
"response": []
},
{
"name": "Root Register",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = pm.response.json();\r",
"\r",
"// This is safe check to prevent failing futher cases If the Root User is already Created\r",
"if (jsonData.errors) {\r",
" if (jsonData.errors.length) return;\r",
"}\r",
"\r",
"//Saving data for future use\r",
"var id = jsonData.data.register.user.id;\r",
"pm.globals.set(\"userid\", id);\r",
"\r",
"var user = JSON.stringify(jsonData.data.register.user);\r",
"pm.globals.set(\"user_data\", user);\r",
"\r",
"var email = jsonData.data.register.user.email.value;\r",
"pm.globals.set(\"email\", email);"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
"const moment = require('moment');\r",
"pm.globals.set(\"timestamp\", moment().format(\"DDMYYYYhhmmss\"));\r",
"\r",
"pm.globals.set(\"realFirstName\", \"FirstName\" + moment().format(\"DDMYYYYhhmmss\"));\r",
"pm.globals.set(\"realLastName\", \"LastName\" + moment().format(\"DDMYYYYhhmmss\"));\r",
"pm.globals.set(\"email\", \"email\" + moment().format(\"DDMYYYYhhmmss\") + \"@test.com\");\r",
"pm.globals.set(\"password\", moment().format(\"DDMYYYYhhmmss\"));\r",
"pm.globals.set(\"displayFirstName\", \"DisplayFirstName\" + moment().format(\"DDMYYYYhhmmss\"));\r",
"pm.globals.set(\"displayLastName\", \"DisplayLastName\" + moment().format(\"DDMYYYYhhmmss\"));\r",
"pm.globals.set(\"phone\", pm.variables.replaceIn('{{$randomPhoneNumber}}'));\r",
"\r",
"var timezoneObject = {\r",
" \"name\": \"Europe/Andorra\",\r",
" \"lat\": 42.5,\r",
" \"long\": 1.5167,\r",
" \"countries\": [\r",
" {\r",
" \"code\": \"AD\",\r",
" \"name\": \"Andorra\",\r",
" \"zones\": [\r",
" {\r",
" \"name\": \"Europe/Andorra\",\r",
" \"lat\": 42.5,\r",
" \"long\": 1.5167,\r",
" \"countries\": [\r",
" {\r",
" \"code\": \"AD\",\r",
" \"name\": \"Andorra\"\r",
" }\r",
" ]\r",
" }\r",
" ]\r",
" }\r",
" ]\r",
"};\r",
"pm.globals.set('timezoneObject', JSON.stringify(timezoneObject));\r",
"pm.globals.set(\"timezone\", timezoneObject.name);\r",
"\r",
"pm.globals.set(\"about\", \"I'm Tester\");\r",
"\r",
"pm.globals.set(\"userTitle\", \"Tester\");\r",
"\r",
"// Taking random value for the User status from pre-defined possible values\r",
"var userStatusArray = ['Active','Disabled'];\r",
"var randomNumber = Math.floor(Math.random()*userStatusArray.length);\r",
"// pm.globals.set('userStatus', userStatusArray[randomNumber]);\r",
"pm.globals.set(\"userStatus\", \"Active\");\r",
"\r",
"pm.globals.set(\"userRoles\", \"ProjectManager\");\r",
"\r",
"// var userRolesArray = ['Administrator',\r",
"// 'BibleTranslationLiaison',\r",
"// 'Consultant',\r",
"// 'ConsultantManager',\r",
"// 'Controller',\r",
"// 'FieldOperationsDirector',\r",
"// 'FieldPartner',\r",
"// 'FinancialAnalyst',\r",
"// 'Fundraising',\r",
"// 'Intern',\r",
"// 'LeadFinancialAnalyst',\r",
"// 'Leadership',\r",
"// 'Liaison',\r",
"// 'Marketing',\r",
"// 'Mentor',\r",
"// 'ProjectManager',\r",
"// 'RegionalCommunicationsCoordinator',\r",
"// 'RegionalDirector',\r",
"// 'StaffMember',\r",
"// 'Translator'\r",
"// ];\r",
"\r",
"// var randomNumber = Math.floor(Math.random()*userRolesArray.length);\r",
"// pm.globals.set('userRoles', userRolesArray[randomNumber]);\r",
""
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation register($input: RegisterInput!) {\r\n register(input: $input) {\r\n powers\r\n user {\r\n id\r\n fullName\r\n firstName\r\n avatarLetters\r\n createdAt\r\n canDelete\r\n email {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n phone {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n about {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n status {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n roles {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n title {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n timezone {\r\n canRead\r\n canEdit\r\n value {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n name\r\n zones {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n }\r\n }\r\n }\r\n }\r\n }\r\n unavailabilities {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n #canDelete\r\n description {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n start\r\n end\r\n }\r\n }\r\n organizations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n }\r\n partners {\r\n total\r\n hasMore\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n modifiedAt\r\n types {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n financialReportingTypes {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n pmcEntityCode {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n globalInnovationsClient {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n active {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n address {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n organization {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n pointOfContact {\r\n value {\r\n id\r\n fullName\r\n firstName\r\n avatarLetters\r\n createdAt\r\n email {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n phone {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n about {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n status {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n title {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n roles {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n timezone {\r\n canRead\r\n canEdit\r\n value {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n name\r\n zones {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n }\r\n }\r\n }\r\n }\r\n }\r\n unavailabilities {\r\n total\r\n hasMore\r\n canCreate\r\n canRead\r\n items {\r\n id\r\n createdAt\r\n # canDelete\r\n start\r\n end\r\n description {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n }\r\n }\r\n organizations {\r\n total\r\n hasMore\r\n canCreate\r\n canRead\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n }\r\n education {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n degree {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n major {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n institution {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n partners {\r\n canCreate\r\n canRead\r\n hasMore\r\n total\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n modifiedAt\r\n types {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n financialReportingTypes {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n pmcEntityCode {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n globalInnovationsClient {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n active {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n address {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n organization {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n pointOfContact {\r\n canEdit\r\n canRead\r\n value {\r\n id\r\n }\r\n }\r\n }\r\n }\r\n locations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n knownLanguages {\r\n proficiency\r\n language {\r\n id\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n education {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n degree {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n major {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n institution {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n locations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n knownLanguages {\r\n proficiency\r\n language {\r\n id\r\n }\r\n }\r\n }\r\n }\r\n}\r\n",
"variables": "{\r\n \"input\": {\r\n \"realFirstName\": \"Piyush\",\r\n \"realLastName\": \"Patel\",\r\n \"email\": \"{{login_email}}\",\r\n \"password\": \"{{login_password}}\",\r\n \"displayFirstName\": \"{{displayFirstName}}\",\r\n \"displayLastName\": \"{{displayLastName}}\",\r\n \"phone\": \"{{phone}}\",\r\n \"timezone\": \"{{timezone}}\",\r\n \"status\": \"{{userStatus}}\",\r\n \"title\": \"{{userTitle}}\",\r\n \"about\": \"{{about}}\",\r\n \"roles\": \"{{userRoles}}\"\r\n }\r\n}"
}
},
"url": {
"raw": "{{env}}/graphql",
"host": [
"{{env}}"
],
"path": [
"graphql"
]
}
},
"response": []
},
{
"name": "Root Login",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = pm.response.json();",
"",
"var id = jsonData.data.login.user.id;",
"pm.globals.set(\"userid\", id);",
"",
"var email = jsonData.data.login.user.email.value;",
"pm.globals.set(\"email\", email);",
"",
"var user = JSON.stringify(jsonData.data.login.user);",
"pm.globals.set(\"user_data\", user);",
""
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation login($input: LoginInput!) {\r\n login(input: $input) {\r\n powers\r\n user {\r\n id\r\n fullName\r\n firstName\r\n avatarLetters\r\n createdAt\r\n canDelete\r\n email {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n phone {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n about {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n status {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n roles {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n title {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n timezone {\r\n canRead\r\n canEdit\r\n value {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n name\r\n zones {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n }\r\n }\r\n }\r\n }\r\n }\r\n unavailabilities {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n #canDelete\r\n description {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n start\r\n end\r\n }\r\n }\r\n organizations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n }\r\n partners {\r\n total\r\n hasMore\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n modifiedAt\r\n types {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n financialReportingTypes {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n pmcEntityCode {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n globalInnovationsClient {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n active {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n address {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n organization {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n pointOfContact {\r\n value {\r\n id\r\n fullName\r\n firstName\r\n avatarLetters\r\n createdAt\r\n email {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n phone {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n about {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n status {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n title {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n roles {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n timezone {\r\n canRead\r\n canEdit\r\n value {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n name\r\n zones {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n }\r\n }\r\n }\r\n }\r\n }\r\n unavailabilities {\r\n total\r\n hasMore\r\n canCreate\r\n canRead\r\n items {\r\n id\r\n createdAt\r\n # canDelete\r\n start\r\n end\r\n description {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n }\r\n }\r\n organizations {\r\n total\r\n hasMore\r\n canCreate\r\n canRead\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n }\r\n education {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n degree {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n major {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n institution {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n partners {\r\n canCreate\r\n canRead\r\n hasMore\r\n total\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n modifiedAt\r\n types {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n financialReportingTypes {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n pmcEntityCode {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n globalInnovationsClient {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n active {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n address {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n organization {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n pointOfContact {\r\n canEdit\r\n canRead\r\n value {\r\n id\r\n }\r\n }\r\n }\r\n }\r\n locations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n knownLanguages {\r\n proficiency\r\n language {\r\n id\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n education {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n degree {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n major {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n institution {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n locations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n knownLanguages {\r\n proficiency\r\n language {\r\n id\r\n }\r\n }\r\n }\r\n }\r\n}\r\n",
"variables": "{\r\n \"input\": {\r\n \"email\": \"{{login_email}}\",\r\n \"password\": \"{{login_password}}\"\r\n }\r\n}"
}
},
"url": {
"raw": "{{env}}/graphql",
"host": [
"{{env}}"
],
"path": [
"graphql"
]
}
},
"response": []
},
{
"name": "Root Admin Login",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = pm.response.json();",
"",
"var id = jsonData.data.login.user.id;",
"pm.globals.set(\"rootAdminUserid\", id);",
"",
"var email = jsonData.data.login.user.email.value;",
"pm.globals.set(\"email\", email);",
""
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation login($input: LoginInput!) {\r\n login(input: $input) {\r\n powers\r\n user {\r\n id\r\n fullName\r\n firstName\r\n avatarLetters\r\n createdAt\r\n canDelete\r\n email {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n phone {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n about {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n status {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n roles {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n title {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n timezone {\r\n canRead\r\n canEdit\r\n value {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n name\r\n zones {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n }\r\n }\r\n }\r\n }\r\n }\r\n unavailabilities {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n #canDelete\r\n description {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n start\r\n end\r\n }\r\n }\r\n organizations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n }\r\n partners {\r\n total\r\n hasMore\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n modifiedAt\r\n types {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n financialReportingTypes {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n pmcEntityCode {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n globalInnovationsClient {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n active {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n address {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n organization {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n pointOfContact {\r\n value {\r\n id\r\n fullName\r\n firstName\r\n avatarLetters\r\n createdAt\r\n email {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n phone {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n about {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n status {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n title {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n roles {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n timezone {\r\n canRead\r\n canEdit\r\n value {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n name\r\n zones {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n }\r\n }\r\n }\r\n }\r\n }\r\n unavailabilities {\r\n total\r\n hasMore\r\n canCreate\r\n canRead\r\n items {\r\n id\r\n createdAt\r\n #canDelete\r\n start\r\n end\r\n description {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n }\r\n }\r\n organizations {\r\n total\r\n hasMore\r\n canCreate\r\n canRead\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n }\r\n education {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n degree {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n major {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n institution {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n partners {\r\n canCreate\r\n canRead\r\n hasMore\r\n total\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n modifiedAt\r\n types {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n financialReportingTypes {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n pmcEntityCode {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n globalInnovationsClient {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n active {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n address {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n organization {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n pointOfContact {\r\n canEdit\r\n canRead\r\n value {\r\n id\r\n }\r\n }\r\n }\r\n }\r\n locations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n knownLanguages {\r\n proficiency\r\n language {\r\n id\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n education {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n degree {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n major {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n institution {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n locations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n knownLanguages {\r\n proficiency\r\n language {\r\n id\r\n }\r\n }\r\n }\r\n }\r\n}\r\n",
"variables": "{\r\n \"input\": {\r\n \"email\": \"{{rootAdminLogin_email}}\",\r\n \"password\": \"{{rootAdminLogin_password}}\"\r\n }\r\n}"
}
},
"url": {
"raw": "{{env}}/graphql",
"host": [
"{{env}}"
],
"path": [
"graphql"
]
}
},
"response": []
},
{
"name": "Grant Power to Root User",
"event": [
{
"listen": "test",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation grantPower($userId: ID!,$power:Power!) {\r\n grantPower(userId:$userId,power:$power){\r\n __typename\r\n }\r\n}\r\n",
"variables": "{\r\n \"userId\": \"{{userid}}\",\r\n \"power\": \"GrantPower\"\r\n}"
}
},
"url": {
"raw": "{{env}}/graphql",
"host": [
"{{env}}"
],
"path": [
"graphql"
]
}
},
"response": []
},
{
"name": "Root Login again To Create/Update/Delete Project",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = pm.response.json();",
"",
"var id = jsonData.data.login.user.id;",
"pm.globals.set(\"userid\", id);",
"",
"var email = jsonData.data.login.user.email.value;",
"pm.globals.set(\"email\", email);",
"",
"var user = JSON.stringify(jsonData.data.login.user);",
"pm.globals.set(\"user_data\", user);",
""
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation login($input: LoginInput!) {\r\n login(input: $input) {\r\n powers\r\n user {\r\n id\r\n fullName\r\n firstName\r\n avatarLetters\r\n createdAt\r\n canDelete\r\n email {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n phone {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n about {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n status {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n roles {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n title {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n timezone {\r\n canRead\r\n canEdit\r\n value {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n name\r\n zones {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n }\r\n }\r\n }\r\n }\r\n }\r\n unavailabilities {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n #canDelete\r\n description {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n start\r\n end\r\n }\r\n }\r\n organizations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n }\r\n partners {\r\n total\r\n hasMore\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n modifiedAt\r\n types {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n financialReportingTypes {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n pmcEntityCode {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n globalInnovationsClient {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n active {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n address {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n organization {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n pointOfContact {\r\n value {\r\n id\r\n fullName\r\n firstName\r\n avatarLetters\r\n createdAt\r\n email {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n phone {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n about {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n status {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n title {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n roles {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n timezone {\r\n canRead\r\n canEdit\r\n value {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n name\r\n zones {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n }\r\n }\r\n }\r\n }\r\n }\r\n unavailabilities {\r\n total\r\n hasMore\r\n canCreate\r\n canRead\r\n items {\r\n id\r\n createdAt\r\n #canDelete\r\n start\r\n end\r\n description {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n }\r\n }\r\n organizations {\r\n total\r\n hasMore\r\n canCreate\r\n canRead\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n }\r\n education {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n degree {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n major {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n institution {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n partners {\r\n canCreate\r\n canRead\r\n hasMore\r\n total\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n modifiedAt\r\n types {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n financialReportingTypes {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n pmcEntityCode {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n globalInnovationsClient {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n active {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n address {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n organization {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n pointOfContact {\r\n canEdit\r\n canRead\r\n value {\r\n id\r\n }\r\n }\r\n }\r\n }\r\n locations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n knownLanguages {\r\n proficiency\r\n language {\r\n id\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n education {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n degree {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n major {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n institution {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n locations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n knownLanguages {\r\n proficiency\r\n language {\r\n id\r\n }\r\n }\r\n }\r\n }\r\n}\r\n",
"variables": "{\r\n \"input\": {\r\n \"email\": \"{{login_email}}\",\r\n \"password\": \"{{login_password}}\"\r\n }\r\n}"
}
},
"url": {
"raw": "{{env}}/graphql",
"host": [
"{{env}}"
],
"path": [
"graphql"
]
}
},
"response": []
},
{
"name": "Grant Power to Create Project to Root User",
"event": [
{
"listen": "test",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation grantPower($userId: ID!,$power:Power!) {\r\n grantPower(userId:$userId,power:$power){\r\n __typename\r\n }\r\n}\r\n",
"variables": "{\r\n \"userId\": \"{{userid}}\",\r\n \"power\": \"CreateProject\"\r\n}"
}
},
"url": {
"raw": "{{env}}/graphql",
"host": [
"{{env}}"
],
"path": [
"graphql"
]
}
},
"response": []
},
{
"name": "Pre-req for Create Location ( Create Funding Account )",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = pm.response.json();",
"",
"var id = jsonData.data.createFundingAccount.fundingAccount.id;",
"",
"// Saving data for future use",
"pm.globals.set(\"fundingAccountid\", id);",
"",
"// Saving whole fundingAccount Object to globals for future use",
"var fundingAccount = JSON.stringify(jsonData.data.createFundingAccount.fundingAccount);",
"pm.globals.set(\"fundingAccount_data\", fundingAccount);",
"",
""
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
"const moment = require('moment');\r",
"\r",
"pm.globals.set('fundingAccountName', \"FundingAccountName_\" + moment().format(\"DDMMYYYYhhmmss\"));\r",
"\r",
"//pm.globals.set('accountNumber', _.random(1000000000, 2147483647));\r",
"\r",
"pm.globals.set('accountNumber', _.random(0, 9));\r",
""
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation createFundingAccount($input: CreateFundingAccountInput!) {\r\n createFundingAccount(input: $input) {\r\n fundingAccount {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n}\r\n",
"variables": "{\r\n \"input\": {\r\n \"fundingAccount\": {\r\n \"name\": \"{{fundingAccountName}}\",\r\n \"accountNumber\": {{accountNumber}}\r\n }\r\n }\r\n}"
}
},
"url": {
"raw": "{{env}}/graphql",
"host": [
"{{env}}"
],
"path": [
"graphql"
]
}
},
"response": []
},
{
"name": "Pre-req for Create Project ( Create Location )",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = pm.response.json();",
"",
"var fundingAccount_data = JSON.parse(pm.globals.get('fundingAccount_data'));",
"",
"var id = jsonData.data.createLocation.location.id;",
"",
"// Saving data for future use",
"pm.globals.set(\"locationid\", id);",
"",
"// Saving whole location Object to globals for future use",
"var location = JSON.stringify(jsonData.data.createLocation.location);",
"pm.globals.set(\"location_data\", location);",
"",
"",
""
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
"const moment = require('moment');\r",
"pm.globals.set(\"timestamp\", moment().format(\"DDMMYYYYhhmmss\"));\r",
"\r",
"pm.globals.set(\"locationName\", \"LocationName\" + moment().format(\"DDMMhhmmss\"));\r",
"\r",
"// Taking random value for the locationType from pre-defined possible values\r",
"var optionsArray = ['City',\r",
" 'County',\r",
" 'State',\r",
" 'Country',\r",
" 'CrossBorderArea'];\r",
"var randomNumber = Math.floor(Math.random() * optionsArray.length);\r",
"pm.globals.set('locationType', optionsArray[randomNumber]);\r",
"\r",
"// Taking random value for the locationSensitivity from pre-defined possible values\r",
"var optionsArray = ['Low', 'Medium', 'High'];\r",
"var randomNumber = Math.floor(Math.random() * optionsArray.length);\r",
"pm.globals.set('locationSensitivity', optionsArray[randomNumber]);\r",
"\r",
"// Taking random value for the isoAlpha3 from pre-defined possible values\r",
"var optionsArray = ['ABW',\r",
" 'USA',\r",
" 'ALA',\r",
" 'IND',\r",
" 'AUS'];\r",
"var randomNumber = Math.floor(Math.random() * optionsArray.length);\r",
"pm.globals.set('isoAlpha3', optionsArray[randomNumber]);\r",
""
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation createLocation($input: CreateLocationInput!) {\r\n createLocation(input: $input) {\r\n location {\r\n id\r\n createdAt\r\n canDelete\r\n #sensitivity\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n } \r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n}\r\n",
"variables": "{\r\n \"input\": {\r\n \"location\": {\r\n \"name\": \"{{locationName}}\",\r\n \"type\": \"{{locationType}}\",\r\n \"isoAlpha3\": \"{{isoAlpha3}}\",\r\n \"fundingAccountId\": \"{{fundingAccountid}}\"\r\n }\r\n }\r\n}"
}
},
"url": {
"raw": "{{env}}/graphql",
"host": [
"{{env}}"
],
"path": [
"graphql"
]
}
},
"response": []
},
{
"name": "Pre-req for Create fieldRegion( Create fieldZone)",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = pm.response.json();\r",
"\r",
"var fieldZoneId = jsonData.data.createFieldZone.fieldZone.id;\r",
"\r",
"// Saving data for future use (create fieldRegion)\r",
"pm.globals.set(\"fieldZoneId\", fieldZoneId);\r",
"\r",
"var directorId = jsonData.data.createFieldZone.fieldZone.director.value.id;\r",
"\r",
"// Saving data for future use (create fieldRegion)\r",
"pm.globals.set(\"directorId\", directorId);\r",
"\r",
"\r",
""
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
"const moment = require('moment');\r",
"pm.globals.set(\"timestamp\", moment().format(\"DDMYYYYhhmmss\"));\r",
"\r",
"pm.globals.set(\"fieldZone\", \"FieldZone\" + moment().format(\"DDMYYYYhhmmss\"));"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation createFieldZone($input: CreateFieldZoneInput!) {\r\n createFieldZone(input: $input) {\r\n fieldZone {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n director {\r\n value {\r\n id\r\n fullName\r\n firstName\r\n avatarLetters\r\n createdAt\r\n email {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n phone {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n about {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n status {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n roles {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n title {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n timezone {\r\n canRead\r\n canEdit\r\n value {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n name\r\n zones {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n }\r\n }\r\n }\r\n }\r\n }\r\n unavailabilities {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n #canDelete\r\n description {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n start\r\n end\r\n }\r\n }\r\n organizations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n #sensitivity\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n }\r\n education {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n degree {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n major {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n institution {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n partners {\r\n total\r\n hasMore\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n modifiedAt\r\n types {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n financialReportingTypes {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n pmcEntityCode {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n globalInnovationsClient {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n active {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n address {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n organization {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n #sensitivity\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n pointOfContact {\r\n value {\r\n id\r\n fullName\r\n firstName\r\n avatarLetters\r\n createdAt\r\n email {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n phone {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n about {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n status {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n title {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n roles {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n timezone {\r\n canRead\r\n canEdit\r\n value {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n name\r\n zones {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n }\r\n }\r\n }\r\n }\r\n }\r\n unavailabilities {\r\n total\r\n hasMore\r\n canCreate\r\n canRead\r\n items {\r\n id\r\n createdAt\r\n # canDelete\r\n start\r\n end\r\n description {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n }\r\n }\r\n organizations {\r\n total\r\n hasMore\r\n canCreate\r\n canRead\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n #sensitivity\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n }\r\n education {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n degree {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n major {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n institution {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n partners {\r\n canCreate\r\n canRead\r\n hasMore\r\n total\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n modifiedAt\r\n types {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n financialReportingTypes {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n pmcEntityCode {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n globalInnovationsClient {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n active {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n address {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n organization {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n #sensitivity\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n pointOfContact {\r\n canEdit\r\n canRead\r\n value {\r\n id\r\n }\r\n }\r\n }\r\n }\r\n locations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n # sensitivity\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n knownLanguages {\r\n proficiency\r\n language {\r\n id\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n locations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n # sensitivity\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n knownLanguages {\r\n proficiency\r\n language {\r\n id\r\n }\r\n }\r\n }\r\n canRead\r\n canEdit\r\n }\r\n }\r\n }\r\n}\r\n",
"variables": "{\r\n \"input\": {\r\n \"fieldZone\": {\r\n \"name\": \"{{fieldZone}}\",\r\n \"directorId\": \"{{userid}}\"\r\n }\r\n }\r\n}"
}
},
"url": {
"raw": "{{env}}/graphql",
"host": [
"{{env}}"
],
"path": [
"graphql"
]
}
},
"response": []
},
{
"name": "Pre-req for Create Project ( Create fieldRegion)",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = pm.response.json();\r",
"var fieldRegionId = jsonData.data.createFieldRegion.fieldRegion.id;\r",
"// Saving data for future use\r",
"pm.globals.set(\"fieldRegionId\", fieldRegionId);"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
"const moment = require('moment');\r",
"pm.globals.set(\"timestamp\", moment().format(\"DDMYYYYhhmmss\"));\r",
"\r",
"pm.globals.set(\"fieldRegion\", \"FieldRegion\" + moment().format(\"DDMYYYYhhmmss\"));"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation createFieldRegion($input: CreateFieldRegionInput!) {\r\n createFieldRegion(input: $input) {\r\n fieldRegion {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n director {\r\n value {\r\n id\r\n fullName\r\n firstName\r\n avatarLetters\r\n createdAt\r\n email {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n phone {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n about {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n status {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n roles {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n title {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n timezone {\r\n canRead\r\n canEdit\r\n value {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n name\r\n zones {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n }\r\n }\r\n }\r\n }\r\n }\r\n unavailabilities {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n #canDelete\r\n description {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n start\r\n end\r\n }\r\n }\r\n organizations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n #sensitivity\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n }\r\n partners {\r\n total\r\n hasMore\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n modifiedAt\r\n types {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n financialReportingTypes {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n pmcEntityCode {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n globalInnovationsClient {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n active {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n address {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n organization {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n #sensitivity\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n pointOfContact {\r\n value {\r\n id\r\n fullName\r\n firstName\r\n avatarLetters\r\n createdAt\r\n email {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n phone {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n about {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n status {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n title {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n roles {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n timezone {\r\n canRead\r\n canEdit\r\n value {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n name\r\n zones {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n }\r\n }\r\n }\r\n }\r\n }\r\n unavailabilities {\r\n total\r\n hasMore\r\n canCreate\r\n canRead\r\n items {\r\n id\r\n createdAt\r\n # canDelete\r\n start\r\n end\r\n description {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n }\r\n }\r\n organizations {\r\n total\r\n hasMore\r\n canCreate\r\n canRead\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n #sensitivity\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n }\r\n education {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n degree {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n major {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n institution {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n partners {\r\n canCreate\r\n canRead\r\n hasMore\r\n total\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n modifiedAt\r\n types {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n financialReportingTypes {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n pmcEntityCode {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n globalInnovationsClient {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n active {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n address {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n organization {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n #sensitivity\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n pointOfContact {\r\n canEdit\r\n canRead\r\n value {\r\n id\r\n }\r\n }\r\n }\r\n }\r\n locations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n #sensitivity\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n knownLanguages {\r\n proficiency\r\n language {\r\n id\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n education {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n degree {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n major {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n institution {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n locations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n #sensitivity\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n knownLanguages {\r\n proficiency\r\n language {\r\n id\r\n }\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n fieldZone {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n director {\r\n value {\r\n id\r\n fullName\r\n firstName\r\n avatarLetters\r\n createdAt\r\n email {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n phone {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n about {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n status {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n roles {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n title {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n timezone {\r\n canRead\r\n canEdit\r\n value {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n name\r\n zones {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n }\r\n }\r\n }\r\n }\r\n }\r\n unavailabilities {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n #canDelete\r\n description {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n start\r\n end\r\n }\r\n }\r\n organizations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n #sensitivity\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n }\r\n education {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n degree {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n major {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n institution {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n partners {\r\n total\r\n hasMore\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n modifiedAt\r\n types {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n financialReportingTypes {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n pmcEntityCode {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n globalInnovationsClient {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n active {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n address {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n organization {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n #sensitivity\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n pointOfContact {\r\n value {\r\n id\r\n fullName\r\n firstName\r\n avatarLetters\r\n createdAt\r\n email {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n phone {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n about {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n status {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n title {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n roles {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n timezone {\r\n canRead\r\n canEdit\r\n value {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n name\r\n zones {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n }\r\n }\r\n }\r\n }\r\n }\r\n unavailabilities {\r\n total\r\n hasMore\r\n canCreate\r\n canRead\r\n items {\r\n id\r\n createdAt\r\n # canDelete\r\n start\r\n end\r\n description {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n }\r\n }\r\n organizations {\r\n total\r\n hasMore\r\n canCreate\r\n canRead\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n #sensitivity\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n }\r\n education {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n degree {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n major {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n institution {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n partners {\r\n canCreate\r\n canRead\r\n hasMore\r\n total\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n modifiedAt\r\n types {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n financialReportingTypes {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n pmcEntityCode {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n globalInnovationsClient {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n active {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n address {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n organization {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n avatarLetters\r\n name {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n address {\r\n value\r\n canRead\r\n canEdit\r\n }\r\n locations {\r\n total\r\n hasMore\r\n canRead\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n #sensitivity\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n }\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n pointOfContact {\r\n canEdit\r\n canRead\r\n value {\r\n id\r\n }\r\n }\r\n }\r\n }\r\n locations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n #sensitivity\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n knownLanguages {\r\n proficiency\r\n language {\r\n id\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n locations {\r\n canRead\r\n total\r\n hasMore\r\n canCreate\r\n items {\r\n id\r\n createdAt\r\n canDelete\r\n #sensitivity\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n type {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoAlpha3 {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n isoCountry {\r\n country\r\n alpha2\r\n alpha3\r\n numeric\r\n }\r\n fundingAccount {\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n accountNumber {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n }\r\n canEdit\r\n canRead\r\n }\r\n }\r\n }\r\n knownLanguages {\r\n proficiency\r\n language {\r\n id\r\n }\r\n }\r\n }\r\n canRead\r\n canEdit\r\n }\r\n }\r\n canEdit\r\n value {\r\n id\r\n createdAt\r\n canDelete\r\n name {\r\n value\r\n canEdit\r\n canRead\r\n }\r\n director {\r\n canEdit\r\n canRead\r\n value {\r\n id\r\n fullName\r\n firstName\r\n avatarLetters\r\n createdAt\r\n email {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n realLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayFirstName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n displayLastName {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n phone {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n about {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n status {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n title {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n roles {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n\r\n timezone {\r\n canRead\r\n canEdit\r\n value {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n name\r\n zones {\r\n name\r\n lat\r\n long\r\n countries {\r\n code\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n unavailabilities {\r\n canRead\r\n items {\r\n id\r\n createdAt\r\n description {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n start\r\n end\r\n }\r\n total\r\n hasMore\r\n canCreate\r\n }\r\n organizations {\r\n canRead\r\n items {\r\n id\r\n createdAt\r\n name {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n avatarLetters\r\n }\r\n total\r\n hasMore\r\n canCreate\r\n }\r\n education {\r\n canRead\r\n items {\r\n id\r\n createdAt\r\n degree {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n major {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n institution {\r\n canRead\r\n canEdit\r\n value\r\n }\r\n }\r\n total\r\n hasMore\r\n canCreate\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n}\r\n",
"variables": "{\r\n \"input\": {\r\n \"fieldRegion\": {\r\n \"name\": \"{{fieldRegion}}\",\r\n \"fieldZoneId\": \"{{fieldZoneId}}\",\r\n \"directorId\": \"{{directorId}}\"\r\n }\r\n }\r\n}"
}
},
"url": {
"raw": "{{env}}/graphql",
"host": [
"{{env}}"
],
"path": [
"graphql"
]
}
},
"response": []
},
{
"name": "Pre - req for TogglePin (Create Project )",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = pm.response.json(); ",
"var id = jsonData.data.createProject.project.id;",
"",
"// Saving data for future use",
"pm.globals.set(\"projectid\", id);",
"",
"// Saving whole Project Object to globals for future use",
"var project = JSON.stringify(jsonData.data.createProject.project);",
"pm.globals.set(\"project_data\", project);",
""
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"exec": [
"const moment = require('moment');\r",
"pm.globals.set(\"timestamp\", moment().format(\"DDMYYYYhhmmss\"));\r",
"\r",
"pm.globals.set(\"projectName\", \"ProjectName\" + moment().format(\"DDMYYYYhhmmss\"));\r",
"\r",
"pm.globals.set('projectType', \"Translation\");\r",
"\r",
"pm.globals.set(\"mouStart\", moment().format(\"YYYY-MM-DD\"))\r",
"\r",
"var mouEnd = pm.variables.replaceIn('{{$randomDateFuture}}')\r",
"pm.globals.set(\"mouEnd\", moment(mouEnd).format(\"YYYY-MM-DD\"));\r",
"\r",
"var estimatedSubmissionDate = pm.variables.replaceIn('{{$randomDateFuture}}')\r",
"pm.globals.set(\"estimatedSubmission\", moment(estimatedSubmissionDate).format(\"YYYY-MM-DD\"));\r",
"\r",
"var financialReportReceivedAt = pm.variables.replaceIn('{{$randomDateFuture}}')\r",
"pm.globals.set(\"financialReportReceivedAt\", moment(financialReportReceivedAt).format(\"YYYY-MM-DD\"));\r",
"\r",
"pm.globals.set('projectStep', \"EarlyConversations\");\r",
"\r",
"// Project Output Values to be checked from pre-defined data\r",
"var projectFinancialReportPeriodArray = [\r",
" \"Monthly\",\r",
" \"Quarterly\",\r",
"];\r",
"var randomNumber = Math.floor(Math.random() * projectFinancialReportPeriodArray.length);\r",
"pm.globals.set('financialReportPeriod', projectFinancialReportPeriodArray[randomNumber]);\r",
"\r",
"\r",
"// Project Output Values to be checked from pre-defined data\r",
"var projectStatus_array = [\r",
" \"InDevelopment\",\r",
" \"Active\",\r",
" \"Terminated\",\r",
" \"Completed\",\r",
" \"DidNotDevelop\"\r",
"];\r",
"pm.globals.set('projectStatus_array', JSON.stringify(projectStatus_array));\r",
"\r",
"\r",
"\r",
"// generate random id from characters\r",
"function genrateString(lower, caps, mix, length) {\r",
" var result = '';\r",
" var characters;\r",
" if (lower) {\r",
" characters = 'abcdefghijklmnopqrstuvwxyz';\r",
" } else if (caps) {\r",
" characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';\r",
" } else if (mix) {\r",
" characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';\r",
" } else {\r",
" characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\r",
" }\r",
" var charactersLength = characters.length;\r",
" for (var i = 0; i < length; i++) {\r",
" result += characters.charAt(Math.floor(Math.random() * charactersLength));\r",
" }\r",
" return result;\r",
"}\r",
"\r",
"// generate random string array using random strings\r",
"function generateRandomArray(length) {\r",
" var result = [];\r",
" for (var i = 0; i < length; i++) {\r",
" result.push(genrateString(true, false, false, 5))\r",
" }\r",
" return result;\r",
"}\r",
"pm.globals.set(\"projectTags\", JSON.stringify(generateRandomArray(5)));\r",
""
],
"type": "text/javascript"
}