@baravak/risloo-profile-cli 4.32.2 → 4.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baravak/risloo-profile-cli",
3
- "version": "4.32.2",
3
+ "version": "4.33.0",
4
4
  "description": "**Risloo Profile CLI** is a library for creating profiles, reports and sheets for *psychological* samples.",
5
5
  "main": "bin/risloo.js",
6
6
  "publishConfig": {
@@ -0,0 +1,933 @@
1
+ {
2
+ "id": "$X1HXXXXX",
3
+ "scale": {
4
+ "id": "$JMIB-93",
5
+ "title": "پرسشنامه باورهای غیرمنطقی ازدواج"
6
+ },
7
+ "chain": null,
8
+ "version": "2",
9
+ "edition": "",
10
+ "edition_version": null,
11
+ "client": {
12
+ "id": "GH966XXXX",
13
+ "name": "مراجع"
14
+ },
15
+ "room": {
16
+ "id": "RS96XXXX",
17
+ "manager": {
18
+ "id": "GH9XXXXX",
19
+ "name": "درمانگر",
20
+ "user_id": "IR9XXXX"
21
+ },
22
+ "center": {
23
+ "id": "RS966XXXX",
24
+ "acceptation": null,
25
+ "status": "active",
26
+ "type": "personal_clinic",
27
+ "detail": {
28
+ "title": "درمانگر"
29
+ }
30
+ },
31
+ "acceptation": null,
32
+ "status": "active",
33
+ "type": "personal_clinic"
34
+ },
35
+ "case": null,
36
+ "code": null,
37
+ "created_at": 1694157079,
38
+ "started_at": 1694157198,
39
+ "scored_at": 1694242467,
40
+ "closed_at": 1694160574,
41
+ "total_amount": 100000,
42
+ "prepayment": true,
43
+ "purchased": true,
44
+ "amount": 100000,
45
+ "description": "پاسخگوی گرامی؛ \n\nدر این جدول برخی باورهای مهم درباره ازدواج مطرح شده‌است. میزان موافقت یا مخالفت خود را در مورد هر گزینه، علامت بزنید.",
46
+ "psychologist_description": null,
47
+ "items": [
48
+ {
49
+ "type": "text",
50
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
51
+ "answer": {
52
+ "type": "optional",
53
+ "options": [
54
+ "کاملاً موافق",
55
+ "تقریباً موافق",
56
+ "تا حدی",
57
+ "تقریباً مخالف",
58
+ "کاملاً مخالف"
59
+ ]
60
+ },
61
+ "user_answered": "5"
62
+ },
63
+ {
64
+ "type": "text",
65
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
66
+ "answer": {
67
+ "type": "optional",
68
+ "options": [
69
+ "کاملاً موافق",
70
+ "تقریباً موافق",
71
+ "تا حدی",
72
+ "تقریباً مخالف",
73
+ "کاملاً مخالف"
74
+ ]
75
+ },
76
+ "user_answered": "4"
77
+ },
78
+ {
79
+ "type": "text",
80
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
81
+ "answer": {
82
+ "type": "optional",
83
+ "options": [
84
+ "کاملاً موافق",
85
+ "تقریباً موافق",
86
+ "تا حدی",
87
+ "تقریباً مخالف",
88
+ "کاملاً مخالف"
89
+ ]
90
+ },
91
+ "user_answered": "2"
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
96
+ "answer": {
97
+ "type": "optional",
98
+ "options": [
99
+ "کاملاً موافق",
100
+ "تقریباً موافق",
101
+ "تا حدی",
102
+ "تقریباً مخالف",
103
+ "کاملاً مخالف"
104
+ ]
105
+ },
106
+ "user_answered": "1"
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
111
+ "answer": {
112
+ "type": "optional",
113
+ "options": [
114
+ "کاملاً موافق",
115
+ "تقریباً موافق",
116
+ "تا حدی",
117
+ "تقریباً مخالف",
118
+ "کاملاً مخالف"
119
+ ]
120
+ },
121
+ "user_answered": "4"
122
+ },
123
+ {
124
+ "type": "text",
125
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
126
+ "answer": {
127
+ "type": "optional",
128
+ "options": [
129
+ "کاملاً موافق",
130
+ "تقریباً موافق",
131
+ "تا حدی",
132
+ "تقریباً مخالف",
133
+ "کاملاً مخالف"
134
+ ]
135
+ },
136
+ "user_answered": "4"
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
141
+ "answer": {
142
+ "type": "optional",
143
+ "options": [
144
+ "کاملاً موافق",
145
+ "تقریباً موافق",
146
+ "تا حدی",
147
+ "تقریباً مخالف",
148
+ "کاملاً مخالف"
149
+ ]
150
+ },
151
+ "user_answered": "3"
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
156
+ "answer": {
157
+ "type": "optional",
158
+ "options": [
159
+ "کاملاً موافق",
160
+ "تقریباً موافق",
161
+ "تا حدی",
162
+ "تقریباً مخالف",
163
+ "کاملاً مخالف"
164
+ ]
165
+ },
166
+ "user_answered": "5"
167
+ },
168
+ {
169
+ "type": "text",
170
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
171
+ "answer": {
172
+ "type": "optional",
173
+ "options": [
174
+ "کاملاً موافق",
175
+ "تقریباً موافق",
176
+ "تا حدی",
177
+ "تقریباً مخالف",
178
+ "کاملاً مخالف"
179
+ ]
180
+ },
181
+ "user_answered": "1"
182
+ },
183
+ {
184
+ "type": "text",
185
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
186
+ "answer": {
187
+ "type": "optional",
188
+ "options": [
189
+ "کاملاً موافق",
190
+ "تقریباً موافق",
191
+ "تا حدی",
192
+ "تقریباً مخالف",
193
+ "کاملاً مخالف"
194
+ ]
195
+ },
196
+ "user_answered": "1"
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
201
+ "answer": {
202
+ "type": "optional",
203
+ "options": [
204
+ "کاملاً موافق",
205
+ "تقریباً موافق",
206
+ "تا حدی",
207
+ "تقریباً مخالف",
208
+ "کاملاً مخالف"
209
+ ]
210
+ },
211
+ "user_answered": "5"
212
+ },
213
+ {
214
+ "type": "text",
215
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
216
+ "answer": {
217
+ "type": "optional",
218
+ "options": [
219
+ "کاملاً موافق",
220
+ "تقریباً موافق",
221
+ "تا حدی",
222
+ "تقریباً مخالف",
223
+ "کاملاً مخالف"
224
+ ]
225
+ },
226
+ "user_answered": "5"
227
+ },
228
+ {
229
+ "type": "text",
230
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
231
+ "answer": {
232
+ "type": "optional",
233
+ "options": [
234
+ "کاملاً موافق",
235
+ "تقریباً موافق",
236
+ "تا حدی",
237
+ "تقریباً مخالف",
238
+ "کاملاً مخالف"
239
+ ]
240
+ },
241
+ "user_answered": "3"
242
+ },
243
+ {
244
+ "type": "text",
245
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
246
+ "answer": {
247
+ "type": "optional",
248
+ "options": [
249
+ "کاملاً موافق",
250
+ "تقریباً موافق",
251
+ "تا حدی",
252
+ "تقریباً مخالف",
253
+ "کاملاً مخالف"
254
+ ]
255
+ },
256
+ "user_answered": "5"
257
+ },
258
+ {
259
+ "type": "text",
260
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
261
+ "answer": {
262
+ "type": "optional",
263
+ "options": [
264
+ "کاملاً موافق",
265
+ "تقریباً موافق",
266
+ "تا حدی",
267
+ "تقریباً مخالف",
268
+ "کاملاً مخالف"
269
+ ]
270
+ },
271
+ "user_answered": "3"
272
+ },
273
+ {
274
+ "type": "text",
275
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
276
+ "answer": {
277
+ "type": "optional",
278
+ "options": [
279
+ "کاملاً موافق",
280
+ "تقریباً موافق",
281
+ "تا حدی",
282
+ "تقریباً مخالف",
283
+ "کاملاً مخالف"
284
+ ]
285
+ },
286
+ "user_answered": "2"
287
+ },
288
+ {
289
+ "type": "text",
290
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
291
+ "answer": {
292
+ "type": "optional",
293
+ "options": [
294
+ "کاملاً موافق",
295
+ "تقریباً موافق",
296
+ "تا حدی",
297
+ "تقریباً مخالف",
298
+ "کاملاً مخالف"
299
+ ]
300
+ },
301
+ "user_answered": "5"
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
306
+ "answer": {
307
+ "type": "optional",
308
+ "options": [
309
+ "کاملاً موافق",
310
+ "تقریباً موافق",
311
+ "تا حدی",
312
+ "تقریباً مخالف",
313
+ "کاملاً مخالف"
314
+ ]
315
+ },
316
+ "user_answered": "3"
317
+ },
318
+ {
319
+ "type": "text",
320
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
321
+ "answer": {
322
+ "type": "optional",
323
+ "options": [
324
+ "کاملاً موافق",
325
+ "تقریباً موافق",
326
+ "تا حدی",
327
+ "تقریباً مخالف",
328
+ "کاملاً مخالف"
329
+ ]
330
+ },
331
+ "user_answered": "2"
332
+ },
333
+ {
334
+ "type": "text",
335
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
336
+ "answer": {
337
+ "type": "optional",
338
+ "options": [
339
+ "کاملاً موافق",
340
+ "تقریباً موافق",
341
+ "تا حدی",
342
+ "تقریباً مخالف",
343
+ "کاملاً مخالف"
344
+ ]
345
+ },
346
+ "user_answered": "5"
347
+ },
348
+ {
349
+ "type": "text",
350
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
351
+ "answer": {
352
+ "type": "optional",
353
+ "options": [
354
+ "کاملاً موافق",
355
+ "تقریباً موافق",
356
+ "تا حدی",
357
+ "تقریباً مخالف",
358
+ "کاملاً مخالف"
359
+ ]
360
+ },
361
+ "user_answered": "5"
362
+ },
363
+ {
364
+ "type": "text",
365
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
366
+ "answer": {
367
+ "type": "optional",
368
+ "options": [
369
+ "کاملاً موافق",
370
+ "تقریباً موافق",
371
+ "تا حدی",
372
+ "تقریباً مخالف",
373
+ "کاملاً مخالف"
374
+ ]
375
+ },
376
+ "user_answered": "4"
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
381
+ "answer": {
382
+ "type": "optional",
383
+ "options": [
384
+ "کاملاً موافق",
385
+ "تقریباً موافق",
386
+ "تا حدی",
387
+ "تقریباً مخالف",
388
+ "کاملاً مخالف"
389
+ ]
390
+ },
391
+ "user_answered": "4"
392
+ },
393
+ {
394
+ "type": "text",
395
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
396
+ "answer": {
397
+ "type": "optional",
398
+ "options": [
399
+ "کاملاً موافق",
400
+ "تقریباً موافق",
401
+ "تا حدی",
402
+ "تقریباً مخالف",
403
+ "کاملاً مخالف"
404
+ ]
405
+ },
406
+ "user_answered": "1"
407
+ },
408
+ {
409
+ "type": "text",
410
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
411
+ "answer": {
412
+ "type": "optional",
413
+ "options": [
414
+ "کاملاً موافق",
415
+ "تقریباً موافق",
416
+ "تا حدی",
417
+ "تقریباً مخالف",
418
+ "کاملاً مخالف"
419
+ ]
420
+ },
421
+ "user_answered": "2"
422
+ },
423
+ {
424
+ "type": "text",
425
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
426
+ "answer": {
427
+ "type": "optional",
428
+ "options": [
429
+ "کاملاً موافق",
430
+ "تقریباً موافق",
431
+ "تا حدی",
432
+ "تقریباً مخالف",
433
+ "کاملاً مخالف"
434
+ ]
435
+ },
436
+ "user_answered": "1"
437
+ },
438
+ {
439
+ "type": "text",
440
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
441
+ "answer": {
442
+ "type": "optional",
443
+ "options": [
444
+ "کاملاً موافق",
445
+ "تقریباً موافق",
446
+ "تا حدی",
447
+ "تقریباً مخالف",
448
+ "کاملاً مخالف"
449
+ ]
450
+ },
451
+ "user_answered": "1"
452
+ },
453
+ {
454
+ "type": "text",
455
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
456
+ "answer": {
457
+ "type": "optional",
458
+ "options": [
459
+ "کاملاً موافق",
460
+ "تقریباً موافق",
461
+ "تا حدی",
462
+ "تقریباً مخالف",
463
+ "کاملاً مخالف"
464
+ ]
465
+ },
466
+ "user_answered": "5"
467
+ },
468
+ {
469
+ "type": "text",
470
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
471
+ "answer": {
472
+ "type": "optional",
473
+ "options": [
474
+ "کاملاً موافق",
475
+ "تقریباً موافق",
476
+ "تا حدی",
477
+ "تقریباً مخالف",
478
+ "کاملاً مخالف"
479
+ ]
480
+ },
481
+ "user_answered": "4"
482
+ },
483
+ {
484
+ "type": "text",
485
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
486
+ "answer": {
487
+ "type": "optional",
488
+ "options": [
489
+ "کاملاً موافق",
490
+ "تقریباً موافق",
491
+ "تا حدی",
492
+ "تقریباً مخالف",
493
+ "کاملاً مخالف"
494
+ ]
495
+ },
496
+ "user_answered": "3"
497
+ },
498
+ {
499
+ "type": "text",
500
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
501
+ "answer": {
502
+ "type": "optional",
503
+ "options": [
504
+ "کاملاً موافق",
505
+ "تقریباً موافق",
506
+ "تا حدی",
507
+ "تقریباً مخالف",
508
+ "کاملاً مخالف"
509
+ ]
510
+ },
511
+ "user_answered": "2"
512
+ },
513
+ {
514
+ "type": "text",
515
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
516
+ "answer": {
517
+ "type": "optional",
518
+ "options": [
519
+ "کاملاً موافق",
520
+ "تقریباً موافق",
521
+ "تا حدی",
522
+ "تقریباً مخالف",
523
+ "کاملاً مخالف"
524
+ ]
525
+ },
526
+ "user_answered": "1"
527
+ },
528
+ {
529
+ "type": "text",
530
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
531
+ "answer": {
532
+ "type": "optional",
533
+ "options": [
534
+ "کاملاً موافق",
535
+ "تقریباً موافق",
536
+ "تا حدی",
537
+ "تقریباً مخالف",
538
+ "کاملاً مخالف"
539
+ ]
540
+ },
541
+ "user_answered": "2"
542
+ },
543
+ {
544
+ "type": "text",
545
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
546
+ "answer": {
547
+ "type": "optional",
548
+ "options": [
549
+ "کاملاً موافق",
550
+ "تقریباً موافق",
551
+ "تا حدی",
552
+ "تقریباً مخالف",
553
+ "کاملاً مخالف"
554
+ ]
555
+ },
556
+ "user_answered": "1"
557
+ },
558
+ {
559
+ "type": "text",
560
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
561
+ "answer": {
562
+ "type": "optional",
563
+ "options": [
564
+ "کاملاً موافق",
565
+ "تقریباً موافق",
566
+ "تا حدی",
567
+ "تقریباً مخالف",
568
+ "کاملاً مخالف"
569
+ ]
570
+ },
571
+ "user_answered": "4"
572
+ },
573
+ {
574
+ "type": "text",
575
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
576
+ "answer": {
577
+ "type": "optional",
578
+ "options": [
579
+ "کاملاً موافق",
580
+ "تقریباً موافق",
581
+ "تا حدی",
582
+ "تقریباً مخالف",
583
+ "کاملاً مخالف"
584
+ ]
585
+ },
586
+ "user_answered": "4"
587
+ },
588
+ {
589
+ "type": "text",
590
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
591
+ "answer": {
592
+ "type": "optional",
593
+ "options": [
594
+ "کاملاً موافق",
595
+ "تقریباً موافق",
596
+ "تا حدی",
597
+ "تقریباً مخالف",
598
+ "کاملاً مخالف"
599
+ ]
600
+ },
601
+ "user_answered": "1"
602
+ },
603
+ {
604
+ "type": "text",
605
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
606
+ "answer": {
607
+ "type": "optional",
608
+ "options": [
609
+ "کاملاً موافق",
610
+ "تقریباً موافق",
611
+ "تا حدی",
612
+ "تقریباً مخالف",
613
+ "کاملاً مخالف"
614
+ ]
615
+ },
616
+ "user_answered": "4"
617
+ },
618
+ {
619
+ "type": "text",
620
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
621
+ "answer": {
622
+ "type": "optional",
623
+ "options": [
624
+ "کاملاً موافق",
625
+ "تقریباً موافق",
626
+ "تا حدی",
627
+ "تقریباً مخالف",
628
+ "کاملاً مخالف"
629
+ ]
630
+ },
631
+ "user_answered": "3"
632
+ },
633
+ {
634
+ "type": "text",
635
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
636
+ "answer": {
637
+ "type": "optional",
638
+ "options": [
639
+ "کاملاً موافق",
640
+ "تقریباً موافق",
641
+ "تا حدی",
642
+ "تقریباً مخالف",
643
+ "کاملاً مخالف"
644
+ ]
645
+ },
646
+ "user_answered": "3"
647
+ },
648
+ {
649
+ "type": "text",
650
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
651
+ "answer": {
652
+ "type": "optional",
653
+ "options": [
654
+ "کاملاً موافق",
655
+ "تقریباً موافق",
656
+ "تا حدی",
657
+ "تقریباً مخالف",
658
+ "کاملاً مخالف"
659
+ ]
660
+ },
661
+ "user_answered": "5"
662
+ },
663
+ {
664
+ "type": "text",
665
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
666
+ "answer": {
667
+ "type": "optional",
668
+ "options": [
669
+ "کاملاً موافق",
670
+ "تقریباً موافق",
671
+ "تا حدی",
672
+ "تقریباً مخالف",
673
+ "کاملاً مخالف"
674
+ ]
675
+ },
676
+ "user_answered": "1"
677
+ },
678
+ {
679
+ "type": "text",
680
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
681
+ "answer": {
682
+ "type": "optional",
683
+ "options": [
684
+ "کاملاً موافق",
685
+ "تقریباً موافق",
686
+ "تا حدی",
687
+ "تقریباً مخالف",
688
+ "کاملاً مخالف"
689
+ ]
690
+ },
691
+ "user_answered": "4"
692
+ },
693
+ {
694
+ "type": "text",
695
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
696
+ "answer": {
697
+ "type": "optional",
698
+ "options": [
699
+ "کاملاً موافق",
700
+ "تقریباً موافق",
701
+ "تا حدی",
702
+ "تقریباً مخالف",
703
+ "کاملاً مخالف"
704
+ ]
705
+ },
706
+ "user_answered": "5"
707
+ },
708
+ {
709
+ "type": "text",
710
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
711
+ "answer": {
712
+ "type": "optional",
713
+ "options": [
714
+ "کاملاً موافق",
715
+ "تقریباً موافق",
716
+ "تا حدی",
717
+ "تقریباً مخالف",
718
+ "کاملاً مخالف"
719
+ ]
720
+ },
721
+ "user_answered": "2"
722
+ },
723
+ {
724
+ "type": "text",
725
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
726
+ "answer": {
727
+ "type": "optional",
728
+ "options": [
729
+ "کاملاً موافق",
730
+ "تقریباً موافق",
731
+ "تا حدی",
732
+ "تقریباً مخالف",
733
+ "کاملاً مخالف"
734
+ ]
735
+ },
736
+ "user_answered": "1"
737
+ },
738
+ {
739
+ "type": "text",
740
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
741
+ "answer": {
742
+ "type": "optional",
743
+ "options": [
744
+ "کاملاً موافق",
745
+ "تقریباً موافق",
746
+ "تا حدی",
747
+ "تقریباً مخالف",
748
+ "کاملاً مخالف"
749
+ ]
750
+ },
751
+ "user_answered": "3"
752
+ },
753
+ {
754
+ "type": "text",
755
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
756
+ "answer": {
757
+ "type": "optional",
758
+ "options": [
759
+ "کاملاً موافق",
760
+ "تقریباً موافق",
761
+ "تا حدی",
762
+ "تقریباً مخالف",
763
+ "کاملاً مخالف"
764
+ ]
765
+ },
766
+ "user_answered": "4"
767
+ },
768
+ {
769
+ "type": "text",
770
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
771
+ "answer": {
772
+ "type": "optional",
773
+ "options": [
774
+ "کاملاً موافق",
775
+ "تقریباً موافق",
776
+ "تا حدی",
777
+ "تقریباً مخالف",
778
+ "کاملاً مخالف"
779
+ ]
780
+ },
781
+ "user_answered": "5"
782
+ },
783
+ {
784
+ "type": "text",
785
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
786
+ "answer": {
787
+ "type": "optional",
788
+ "options": [
789
+ "کاملاً موافق",
790
+ "تقریباً موافق",
791
+ "تا حدی",
792
+ "تقریباً مخالف",
793
+ "کاملاً مخالف"
794
+ ]
795
+ },
796
+ "user_answered": "3"
797
+ },
798
+ {
799
+ "type": "text",
800
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
801
+ "answer": {
802
+ "type": "optional",
803
+ "options": [
804
+ "کاملاً موافق",
805
+ "تقریباً موافق",
806
+ "تا حدی",
807
+ "تقریباً مخالف",
808
+ "کاملاً مخالف"
809
+ ]
810
+ },
811
+ "user_answered": "1"
812
+ },
813
+ {
814
+ "type": "text",
815
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
816
+ "answer": {
817
+ "type": "optional",
818
+ "options": [
819
+ "کاملاً موافق",
820
+ "تقریباً موافق",
821
+ "تا حدی",
822
+ "تقریباً مخالف",
823
+ "کاملاً مخالف"
824
+ ]
825
+ },
826
+ "user_answered": "5"
827
+ },
828
+ {
829
+ "type": "text",
830
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
831
+ "answer": {
832
+ "type": "optional",
833
+ "options": [
834
+ "کاملاً موافق",
835
+ "تقریباً موافق",
836
+ "تا حدی",
837
+ "تقریباً مخالف",
838
+ "کاملاً مخالف"
839
+ ]
840
+ },
841
+ "user_answered": "1"
842
+ },
843
+ {
844
+ "type": "text",
845
+ "text": "معمولاً خوبی‌های همسرم به نظرم نمی‌آید.",
846
+ "answer": {
847
+ "type": "optional",
848
+ "options": [
849
+ "کاملاً موافق",
850
+ "تقریباً موافق",
851
+ "تا حدی",
852
+ "تقریباً مخالف",
853
+ "کاملاً مخالف"
854
+ ]
855
+ },
856
+ "user_answered": "5"
857
+ }
858
+ ],
859
+ "prerequisites": [
860
+ {
861
+ "type": "text",
862
+ "label": "gender",
863
+ "text": "جنسیت",
864
+ "answer": { "type": "select", "options": ["زن", "مرد"] },
865
+ "alias": "gender",
866
+ "force": true,
867
+ "user_answered": "2"
868
+ },
869
+ {
870
+ "type": "text",
871
+ "label": "age",
872
+ "text": "سن",
873
+ "answer": { "type": "number" },
874
+ "alias": "age",
875
+ "force": true,
876
+ "user_answered": "10"
877
+ },
878
+ {
879
+ "type": "text",
880
+ "label": "education",
881
+ "text": "تحصیلات",
882
+ "answer": {
883
+ "type": "select",
884
+ "options": [
885
+ "ابتدایی اول",
886
+ "ابتدایی دوم",
887
+ "متوسطه اول",
888
+ "متوسطه دوم",
889
+ "دیپلم",
890
+ "کارشناسی",
891
+ "کارشناسی ارشد",
892
+ "پزشکی عمومی",
893
+ "متخصص",
894
+ "دکتری تخصصی",
895
+ "حوزوی مقدمات",
896
+ "حوزوی سطح۱",
897
+ "حوزوی سطح۲",
898
+ "حوزوی سطح۳",
899
+ "حوزوی سطح۴"
900
+ ]
901
+ },
902
+ "alias": "education",
903
+ "force": true,
904
+ "user_answered": "3"
905
+ },
906
+ {
907
+ "type": "text",
908
+ "label": "marital_status",
909
+ "text": "وضعیت تأهل",
910
+ "answer": { "type": "select", "options": ["مجرد", "متأهل"] },
911
+ "alias": "marital_status",
912
+ "force": true,
913
+ "user_answered": "1"
914
+ }
915
+ ],
916
+ "cornometer": 0,
917
+ "score": {
918
+ "unrealistic_expectations_raw": 38,
919
+ "unrealistic_expectations_percentage": 0.5,
920
+ "negative_thinking_raw": 17,
921
+ "negative_thinking_percentage": 0.53,
922
+ "excessive_optimism_raw": 23,
923
+ "excessive_optimism_percentage": 0.44,
924
+ "perfectionism_raw": 17,
925
+ "perfectionism_percentage": 0.47,
926
+ "negative_self_belief_raw": 7,
927
+ "negative_self_belief_percentage": 0.35,
928
+ "total_raw": 102,
929
+ "total_percentage": 0.47
930
+ },
931
+ "score_current_version": "1.0.0",
932
+ "score_last_version": "1.0.0"
933
+ }
@@ -7,7 +7,7 @@ class JGFQ93 extends Profile {
7
7
 
8
8
  // Labels of the sample
9
9
  labels = {
10
- L1_1: { eng: "forgivness_raw", max:52, title: 'رهاسازی', color: '#4338CA', secondary: '#818CF8'},
10
+ L1_1: { eng: "forgivness_raw", max:52, title: 'رهـــاسازی', color: '#4338CA', secondary: '#818CF8'},
11
11
  L1_2: { eng: "forgivness_percentage"},
12
12
  L1_3: { eng: "forgivness_report"},
13
13
 
@@ -0,0 +1,99 @@
1
+ const gauge = require("../helpers/gauge");
2
+ const { Profile } = require("../Profile");
3
+
4
+ class JMIB93 extends Profile {
5
+ // Number of pages
6
+ static pages = 1;
7
+
8
+ // Labels of the sample
9
+ labels = {
10
+ L1_1: { eng: "unrealistic_expectations_raw", max: 76, title: 'توقعات نامعقول'},
11
+ L1_2: { eng: "unrealistic_expectations_percentage"},
12
+
13
+ L2_1: { eng: "negative_thinking_raw", max: 32, title: 'منفی‌بافی'},
14
+ L2_2: { eng: "negative_thinking_percentage"},
15
+
16
+ L3_1: { eng: "excessive_optimism_raw", max: 52, title: 'خوش‌بینی افراطی'},
17
+ L3_2: { eng: "excessive_optimism_percentage"},
18
+
19
+ L4_1: { eng: "perfectionism_raw", max: 36, title: 'کامل‌خواهی'},
20
+ L4_2: { eng: "perfectionism_percentage"},
21
+
22
+ L5_1: { eng: "negative_self_belief_raw", max: 20, title: 'خودباوری منفی'},
23
+ L5_2: { eng: "negative_self_belief_percentage"},
24
+
25
+ L6_1: { eng: "total_raw", max: 216, title: 'نمره کل'},
26
+ L6_2: { eng: "total_percentage"},
27
+ };
28
+
29
+ profileSpec = {
30
+ /* "sample" determines some important info about the sample and profile */
31
+ /* Default prerequisites: 1. gender, 2. age, 3. education */
32
+ /* "prerequisites" is synonym to "fields" in our program */
33
+ sample: {
34
+ name: "پرسشنامه رها - آشکارسازی" /* Name of the sample */,
35
+ multiProfile: false /* Whether the sample has multiple profiles or not */,
36
+ questions: false /* Determines whether to get questions from inital dataset or not */,
37
+ defaultFields: true /* Determines whether to have default prerequisites in the profile or not */,
38
+ fields: [] /* In case you want to get some additional fields and show in the profile */,
39
+ },
40
+ /* "profile" determines the dimensions of the drawn profile (to be used in svg tag viewbox) */
41
+ /* calculating its dimensions carefully is of great importance */
42
+ profile: {
43
+ get dimensions() {
44
+ return {
45
+ width: 706 + 2 * this.padding.x,
46
+ height: 245 + 2 * this.padding.y,
47
+ };
48
+ },
49
+ padding: {
50
+ x: 99,
51
+ y: 235,
52
+ },
53
+ },
54
+ /* "labels" part which has to be provided for each profile */
55
+ labels: Object.values(this.labels),
56
+ };
57
+
58
+ constructor(dataset, options, config = {}) {
59
+ super();
60
+ this._init(dataset, options, config);
61
+ }
62
+
63
+ _calcContext() {
64
+ const {
65
+ dataset,
66
+ } = this;
67
+ // dataset.score[0].mark = 7
68
+ // dataset.score[1].mark = dataset.score[0].mark / dataset.score[0].label.max
69
+
70
+ // dataset.score[2].mark = 32
71
+ // dataset.score[3].mark = dataset.score[2].mark / dataset.score[2].label.max
72
+
73
+ const factors = [
74
+ packItem(dataset.score[0], dataset.score[1]),
75
+ packItem(dataset.score[2], dataset.score[3]),
76
+ packItem(dataset.score[4], dataset.score[5]),
77
+ packItem(dataset.score[6], dataset.score[7]),
78
+ packItem(dataset.score[8], dataset.score[9]),
79
+ ]
80
+ const total = packItem(dataset.score[10], dataset.score[11])
81
+ total.transform = `translate(0, ${217 - total.p * 217})`
82
+ return [{ factors, total }];
83
+ }
84
+ }
85
+
86
+ function packItem(raw, percentage){
87
+ return {
88
+ ...raw,
89
+ label: {
90
+ ...raw.label,
91
+ eng: raw.label.eng.replace('_raw', '')
92
+ },
93
+ mark: raw.mark ?? 0,
94
+ percentage: Math.round((percentage.mark ?? 0) * 100),
95
+ p: percentage.mark ?? 0
96
+ }
97
+ }
98
+
99
+ module.exports = JMIB93;
@@ -0,0 +1,101 @@
1
+ {{#> layout}}
2
+ <defs>
3
+ <linearGradient id="bg" x1="2.4" y1="112" x2="400" y2="112" gradientUnits="userSpaceOnUse">
4
+ <stop stop-color="#FDF2F8" stop-opacity="0.25"/>
5
+ <stop offset="1" stop-color="#FCE7F3" stop-opacity="0.5"/>
6
+ </linearGradient>
7
+ <linearGradient id="totalbg" x1="0%" y1="0%" x2="0%" y2="100%">
8
+ <stop stop-color="#334155"/>
9
+ <stop offset="1" stop-color="#94A3B8"/>
10
+ </linearGradient>
11
+ <linearGradient id="bgrow">
12
+ <stop stop-color="#FBCFE8"/>
13
+ <stop offset="1" stop-color="#BE185D"/>
14
+ </linearGradient>
15
+ <clipPath id="totalRow">
16
+ {{bar 400 16 (object tr=2 br=2 tl=0 bl=0) (toRad 0) fill='black'}}
17
+ </clipPath>
18
+ <filter id="vsp" x="-1.52588e-05" y="0" width="7.00002" height="230" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
19
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
20
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
21
+ <feOffset dx="1"/>
22
+ <feGaussianBlur stdDeviation="1.5"/>
23
+ <feComposite in2="hardAlpha" operator="out"/>
24
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"/>
25
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_3465_114726"/>
26
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_3465_114726" result="shape"/>
27
+ </filter>
28
+ <filter id="totalvsp" x="0" y="0.5" width="34" height="14" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
29
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
30
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
31
+ <feOffset dx="2"/>
32
+ <feGaussianBlur stdDeviation="3"/>
33
+ <feComposite in2="hardAlpha" operator="out"/>
34
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"/>
35
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_3465_114738"/>
36
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_3465_114738" result="shape"/>
37
+ </filter>
38
+ </defs>
39
+ <g transform="translate({{spec.profile.padding.x}}, {{spec.profile.padding.y}})">
40
+ <g transform="translate(98, 21)">
41
+ <rect width="400" height="224" fill="url(#bg)"/>
42
+ <g transform="translate(0, 24)">
43
+ {{#each factors as |factor index|}}
44
+ <g transform="translate(0, {{math 40 '*' index}})">
45
+ {{bar 400 16 (object tr=2 br=2 tl=0 bl=0) (toRad 0) fill='black' opacity="0.04"}}
46
+ </g>
47
+ {{/each}}
48
+ </g>
49
+ <g transform="translate(38, 0)">
50
+ <line x1="0.5" y1="0.5" x2="0.50001" y2="223.5" stroke="#E2E8F0" stroke-linecap="round" stroke-dasharray="6 6"/>
51
+ <line x1="40.5" y1="0.5" x2="40.5" y2="223.5" stroke="#E2E8F0" stroke-linecap="round" stroke-dasharray="6 6"/>
52
+ <line x1="80.5" y1="0.5" x2="80.5" y2="223.5" stroke="#E2E8F0" stroke-linecap="round" stroke-dasharray="6 6"/>
53
+ <line x1="120.5" y1="0.5" x2="120.5" y2="223.5" stroke="#E2E8F0" stroke-linecap="round" stroke-dasharray="6 6"/>
54
+ <line x1="160.5" y1="0.5" x2="160.5" y2="223.5" stroke="#E2E8F0" stroke-linecap="round" stroke-dasharray="6 6"/>
55
+ <line x1="200.5" y1="0.5" x2="200.5" y2="223.5" stroke="#E2E8F0" stroke-linecap="round" stroke-dasharray="6 6"/>
56
+ <line x1="240.5" y1="0.5" x2="240.5" y2="223.5" stroke="#E2E8F0" stroke-linecap="round" stroke-dasharray="6 6"/>
57
+ <line x1="280.5" y1="0.5" x2="280.5" y2="223.5" stroke="#E2E8F0" stroke-linecap="round" stroke-dasharray="6 6"/>
58
+ <line x1="320.5" y1="0.5" x2="320.5" y2="223.5" stroke="#E2E8F0" stroke-linecap="round" stroke-dasharray="6 6"/>
59
+ <line x1="361.5" y1="0.5" x2="361.5" y2="223.5" stroke="#E2E8F0" stroke-linecap="round" stroke-dasharray="6 6"/>
60
+ </g>
61
+ <text y="-12" text-anchor="middle" font-weight="400" font-size="12" fill="#94A3B8">0</text>
62
+ <text x="200" y="-12" text-anchor="middle" font-weight="400" font-size="12" fill="#94A3B8">50 ٪</text>
63
+ <text x="400" y="-12" text-anchor="middle" font-weight="400" font-size="12" fill="#94A3B8">100 ٪</text>
64
+ <g transform="translate(0, 24)">
65
+ {{#each factors as |factor index|}}
66
+ <g transform="translate(0, {{math 40 '*' index}})">
67
+ <text x="-9" y="8" text-anchor="start" dy="0.25em" font-weight="400" font-size="12" fill="#475569">{{factor.label.title}}</text>
68
+ {{bar (math 400 '*' factor.p) 16 (object tr=2 br=2 tl=0 bl=0) (toRad 0) fill='url(#bgrow)' clip-path="url(#totalRow)"}}
69
+ {{#if (boolean factor.percentage '<=' 10) }}
70
+ <text x="{{math (math 400 '*' factor.p) '+' 6}}" y="8" text-anchor="end" dy="0.3em" font-weight="500" font-size="13" fill="#BE185D">{{factor.percentage}} ٪</text>
71
+ {{else}}
72
+ <text x="{{math (math 400 '*' factor.p) '-' 4}}" y="8" text-anchor="start" dy="0.3em" font-weight="500" font-size="13" fill="#FFFFFF">{{factor.percentage}} ٪</text>
73
+ {{/if}}
74
+ <text x="408" y="8" text-anchor="start" dy="0.3em" direction="ltr">
75
+ <tspan font-weight="700" font-size="18" fill="#BE185D">{{factor.mark}}</tspan>
76
+ <tspan font-weight="300" font-size="12" fill="#64748B">/</tspan>
77
+ <tspan font-weight="400" font-size="13" fill="#64748B">{{factor.label.max}}</tspan>
78
+ </text>
79
+ </g>
80
+ {{/each}}
81
+ </g>
82
+ <g opacity="0.5" filter="url(#vsp)" transform="translate(-3, -3)">
83
+ <line x1="2.5" y1="3.5" x2="2.5" y2="226.5" stroke="white" stroke-linecap="round"/>
84
+ </g>
85
+ </g>
86
+ <g transform="translate(655, 26)">
87
+ {{bar 18 217 (object tr=2 tl=2 br=0 bl=0) (toRad 0) fill="#F1F5F9"}}
88
+ {{bar 18 (math 217 '*' total.p) (object tr=2 tl=2 br=0 bl=0) (toRad 0) fill="url(#totalbg)" transform=total.transform}}
89
+ <g transform="translate(-6, 210.5)" opacity="0.5" filter="url(#totalvsp)">
90
+ <path d="M5 7.5H25" stroke="white" stroke-width="2" stroke-linecap="round"/>
91
+ </g>
92
+ <text x="-5.5" y="0" text-anchor="start" dy="0.3em" font-weight="400" font-size="12" fill="#475569">{{total.label.max}}</text>
93
+ <g transform="translate(24.5, {{math 217 '-' (math 217 '*' total.p)}})">
94
+ <text text-anchor="end" dy="-0.1em" font-weight="600" font-size="18" fill="#475569">{{total.mark}}</text>
95
+ <text text-anchor="end" dy="1em" font-weight="400" font-size="12" fill="#64748B">{{total.percentage}} ٪</text>
96
+ </g>
97
+ <text font-weight="400" font-size="12" fill="#475569" transform="rotate(-90,0, 0) translate(-183,-10)">نمره کل</text>
98
+ </g>
99
+ </g>
100
+
101
+ {{/layout}}