@baravak/risloo-profile-cli 3.1.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.
Files changed (200) hide show
  1. package/.github/workflows/push.yml +14 -0
  2. package/.prettierrc +16 -0
  3. package/.yarn/releases/yarn-1.22.19.cjs +147529 -0
  4. package/.yarnrc.yml +1 -0
  5. package/README.md +98 -0
  6. package/bin/risloo.js +9 -0
  7. package/package.json +44 -0
  8. package/src/Gift.js +29 -0
  9. package/src/Profile.js +405 -0
  10. package/src/cli-commands/Executor.js +118 -0
  11. package/src/cli-commands/ExtractExecutor.js +194 -0
  12. package/src/cli-commands/GiftExecutor.js +56 -0
  13. package/src/cli-commands/utilities/BaseOps.js +71 -0
  14. package/src/cli-commands/utilities/Benchmarker.js +88 -0
  15. package/src/cli-commands/utilities/CustomErrors.js +14 -0
  16. package/src/cli-commands/utilities/Response.js +59 -0
  17. package/src/cli-commands/utilities/STATUSES.js +16 -0
  18. package/src/cli-commands/utilities/Status.js +9 -0
  19. package/src/cli.js +125 -0
  20. package/src/handlebars/helpers/abs.js +8 -0
  21. package/src/handlebars/helpers/addCommas.js +8 -0
  22. package/src/handlebars/helpers/array.js +8 -0
  23. package/src/handlebars/helpers/assignGlobal.js +9 -0
  24. package/src/handlebars/helpers/boolean.js +19 -0
  25. package/src/handlebars/helpers/ceil.js +8 -0
  26. package/src/handlebars/helpers/concat.js +8 -0
  27. package/src/handlebars/helpers/cos.js +8 -0
  28. package/src/handlebars/helpers/displacePoint.js +11 -0
  29. package/src/handlebars/helpers/ellipsisChars.js +10 -0
  30. package/src/handlebars/helpers/ellipsisLines.js +11 -0
  31. package/src/handlebars/helpers/first.js +11 -0
  32. package/src/handlebars/helpers/floor.js +8 -0
  33. package/src/handlebars/helpers/forLoop.js +15 -0
  34. package/src/handlebars/helpers/getArrOfProp.js +8 -0
  35. package/src/handlebars/helpers/isArray.js +8 -0
  36. package/src/handlebars/helpers/join.js +10 -0
  37. package/src/handlebars/helpers/last.js +11 -0
  38. package/src/handlebars/helpers/lineWrap.js +28 -0
  39. package/src/handlebars/helpers/math.js +24 -0
  40. package/src/handlebars/helpers/modulo.js +8 -0
  41. package/src/handlebars/helpers/normalizeAngle.js +7 -0
  42. package/src/handlebars/helpers/object.js +8 -0
  43. package/src/handlebars/helpers/objectEntries.js +8 -0
  44. package/src/handlebars/helpers/polarToCartesian.js +14 -0
  45. package/src/handlebars/helpers/prepend.js +10 -0
  46. package/src/handlebars/helpers/profiles/bar.js +45 -0
  47. package/src/handlebars/helpers/profiles/calcGaugeSidePoints.js +34 -0
  48. package/src/handlebars/helpers/profiles/gauge.js +61 -0
  49. package/src/handlebars/helpers/profiles/polygon.js +40 -0
  50. package/src/handlebars/helpers/reverse.js +9 -0
  51. package/src/handlebars/helpers/roundToTwo.js +8 -0
  52. package/src/handlebars/helpers/setVar.js +8 -0
  53. package/src/handlebars/helpers/sin.js +8 -0
  54. package/src/handlebars/helpers/split.js +8 -0
  55. package/src/handlebars/helpers/tan.js +8 -0
  56. package/src/handlebars/helpers/ternary.js +9 -0
  57. package/src/handlebars/helpers/toDeg.js +8 -0
  58. package/src/handlebars/helpers/toRad.js +8 -0
  59. package/src/handlebars/helpers/withGroup.js +20 -0
  60. package/src/handlebars/helpers/wrapOnNewline.js +11 -0
  61. package/src/handlebars/helpers.js +86 -0
  62. package/src/handlebars/importPartials.js +40 -0
  63. package/src/handlebars/init.js +15 -0
  64. package/src/publish/bot.js +91 -0
  65. package/src/publish/json/gift/gift.json +16 -0
  66. package/src/publish/json/profiles/16PF93.json +201 -0
  67. package/src/publish/json/profiles/AEQ93.json +96 -0
  68. package/src/publish/json/profiles/AMS93.json +102 -0
  69. package/src/publish/json/profiles/AMS9A.json +102 -0
  70. package/src/publish/json/profiles/BAOMEIS93.json +99 -0
  71. package/src/publish/json/profiles/BEQI93.json +1589 -0
  72. package/src/publish/json/profiles/CAATS93.json +11355 -0
  73. package/src/publish/json/profiles/CADS93.json +351 -0
  74. package/src/publish/json/profiles/CARSP93.json +96 -0
  75. package/src/publish/json/profiles/CERQ93.json +106 -0
  76. package/src/publish/json/profiles/CRAAS93.json +98 -0
  77. package/src/publish/json/profiles/CSI93.json +143 -0
  78. package/src/publish/json/profiles/DSWLS93.json +93 -0
  79. package/src/publish/json/profiles/EMSS93.json +116 -0
  80. package/src/publish/json/profiles/FACES93.json +106 -0
  81. package/src/publish/json/profiles/FTEPT93.json +102 -0
  82. package/src/publish/json/profiles/GMIT93.json +98 -0
  83. package/src/publish/json/profiles/HPL93.json +102 -0
  84. package/src/publish/json/profiles/IBT93.json +106 -0
  85. package/src/publish/json/profiles/IUS93.json +93 -0
  86. package/src/publish/json/profiles/JCSI93.json +102 -0
  87. package/src/publish/json/profiles/JPFQ93.json +1 -0
  88. package/src/publish/json/profiles/KJGI93.json +100 -0
  89. package/src/publish/json/profiles/LMIQ93.json +109 -0
  90. package/src/publish/json/profiles/MMFAD93.json +103 -0
  91. package/src/publish/json/profiles/MMFAD9A.json +103 -0
  92. package/src/publish/json/profiles/MOCI93.json +100 -0
  93. package/src/publish/json/profiles/OBQ4493.json +96 -0
  94. package/src/publish/json/profiles/PIES93.json +104 -0
  95. package/src/publish/json/profiles/PIES9A.json +104 -0
  96. package/src/publish/json/profiles/PMCIEF93.json +1 -0
  97. package/src/publish/json/profiles/PSWQ93.json +97 -0
  98. package/src/publish/json/profiles/RIASEC93.json +2511 -0
  99. package/src/publish/json/profiles/SAFE93.json +110 -0
  100. package/src/publish/json/profiles/SASQ93.json +92 -0
  101. package/src/publish/json/profiles/SCASP93.json +611 -0
  102. package/src/publish/json/profiles/SDCAQ93.json +96 -0
  103. package/src/publish/json/profiles/STAIY93.json +98 -0
  104. package/src/publish/json/profiles/WAQ93.json +100 -0
  105. package/src/publish/json/profiles/YBOCS93.json +1322 -0
  106. package/src/publish/json/profiles/empty.json +139 -0
  107. package/src/publish/new-version.hbs +11 -0
  108. package/src/publish/test.js +109 -0
  109. package/src/qrcode/qrCodeGenerator.js +14 -0
  110. package/src/qrcode/qrRender.js +229 -0
  111. package/src/samples/16PF93.js +158 -0
  112. package/src/samples/AEQ93.js +121 -0
  113. package/src/samples/AMS93.js +139 -0
  114. package/src/samples/AMS9A.js +9 -0
  115. package/src/samples/BAOMEIS93.js +146 -0
  116. package/src/samples/BEQI93.js +255 -0
  117. package/src/samples/CAATS93.js +218 -0
  118. package/src/samples/CADS93.js +161 -0
  119. package/src/samples/CARSP93.js +134 -0
  120. package/src/samples/CERQ93.js +195 -0
  121. package/src/samples/CRAAS93.js +141 -0
  122. package/src/samples/CSI93.js +315 -0
  123. package/src/samples/DSWLS93.js +112 -0
  124. package/src/samples/EMSS93.js +178 -0
  125. package/src/samples/FACES93.js +225 -0
  126. package/src/samples/FTEPT93.js +167 -0
  127. package/src/samples/GMIT93.js +142 -0
  128. package/src/samples/HPL93.js +132 -0
  129. package/src/samples/IBT93.js +99 -0
  130. package/src/samples/IUS93.js +204 -0
  131. package/src/samples/JCSI93.js +174 -0
  132. package/src/samples/JPFQ93.js +74 -0
  133. package/src/samples/KJGI93.js +136 -0
  134. package/src/samples/LMIQ93.js +188 -0
  135. package/src/samples/MMFAD93.js +135 -0
  136. package/src/samples/MMFAD9A.js +31 -0
  137. package/src/samples/MOCI93.js +128 -0
  138. package/src/samples/OBQ4493.js +132 -0
  139. package/src/samples/PIES93.js +228 -0
  140. package/src/samples/PIES9A.js +32 -0
  141. package/src/samples/PMCIEF93.js +64 -0
  142. package/src/samples/PSWQ93.js +126 -0
  143. package/src/samples/RIASEC93.js +144 -0
  144. package/src/samples/SAFE93.js +64 -0
  145. package/src/samples/SASQ93.js +130 -0
  146. package/src/samples/SCASP93.js +207 -0
  147. package/src/samples/SDCAQ93.js +174 -0
  148. package/src/samples/STAIY93.js +159 -0
  149. package/src/samples/WAQ93.js +208 -0
  150. package/src/samples/YBOCS93.js +583 -0
  151. package/src/samples/empty.js +53 -0
  152. package/views/gift.hbs +160 -0
  153. package/views/profiles/fonts.css +18 -0
  154. package/views/profiles/layout.hbs +27 -0
  155. package/views/profiles/samples/16PF93.hbs +54 -0
  156. package/views/profiles/samples/AEQ93.hbs +31 -0
  157. package/views/profiles/samples/AMS93.hbs +97 -0
  158. package/views/profiles/samples/AMS9A.hbs +1 -0
  159. package/views/profiles/samples/BAOMEIS93.hbs +48 -0
  160. package/views/profiles/samples/BEQI93.hbs +118 -0
  161. package/views/profiles/samples/CAATS93.hbs +251 -0
  162. package/views/profiles/samples/CADS93.hbs +104 -0
  163. package/views/profiles/samples/CARSP93.hbs +26 -0
  164. package/views/profiles/samples/CERQ93.hbs +115 -0
  165. package/views/profiles/samples/CRAAS93.hbs +88 -0
  166. package/views/profiles/samples/CSI93_1.hbs +110 -0
  167. package/views/profiles/samples/CSI93_2.hbs +76 -0
  168. package/views/profiles/samples/DSWLS93.hbs +26 -0
  169. package/views/profiles/samples/EMSS93.hbs +101 -0
  170. package/views/profiles/samples/FACES93_1.hbs +107 -0
  171. package/views/profiles/samples/FACES93_2.hbs +51 -0
  172. package/views/profiles/samples/FTEPT93.hbs +67 -0
  173. package/views/profiles/samples/GMIT93.hbs +45 -0
  174. package/views/profiles/samples/HPL93.hbs +36 -0
  175. package/views/profiles/samples/IBT93.hbs +67 -0
  176. package/views/profiles/samples/IUS93.hbs +123 -0
  177. package/views/profiles/samples/JCSI93.hbs +65 -0
  178. package/views/profiles/samples/JPFQ93.hbs +44 -0
  179. package/views/profiles/samples/KJGI93.hbs +57 -0
  180. package/views/profiles/samples/LMIQ93.hbs +82 -0
  181. package/views/profiles/samples/MMFAD93.hbs +35 -0
  182. package/views/profiles/samples/MMFAD9A.hbs +1 -0
  183. package/views/profiles/samples/MOCI93.hbs +60 -0
  184. package/views/profiles/samples/OBQ4493.hbs +61 -0
  185. package/views/profiles/samples/PIES93.hbs +67 -0
  186. package/views/profiles/samples/PIES9A.hbs +1 -0
  187. package/views/profiles/samples/PMCIEF93.hbs +8 -0
  188. package/views/profiles/samples/PSWQ93.hbs +32 -0
  189. package/views/profiles/samples/RIASEC93.hbs +38 -0
  190. package/views/profiles/samples/SAFE93.hbs +118 -0
  191. package/views/profiles/samples/SASQ93.hbs +45 -0
  192. package/views/profiles/samples/SCASP93.hbs +94 -0
  193. package/views/profiles/samples/SDCAQ93.hbs +68 -0
  194. package/views/profiles/samples/STAIY93.hbs +67 -0
  195. package/views/profiles/samples/WAQ93.hbs +74 -0
  196. package/views/profiles/samples/YBOCS93_1.hbs +96 -0
  197. package/views/profiles/samples/YBOCS93_2.hbs +115 -0
  198. package/views/profiles/samples/YBOCS93_3.hbs +93 -0
  199. package/views/profiles/samples/empty.hbs +10 -0
  200. package/views/profiles/sidebar.hbs +193 -0
@@ -0,0 +1,40 @@
1
+ const fs = require("fs");
2
+ const { readdir } = require("fs/promises");
3
+ const path = require("path");
4
+
5
+ // These are the profiles that might be used completely in other profiles
6
+ const baseProfiles = ["AMS93", "MMFAD93", "PIES93"];
7
+
8
+ async function importPartials(hbs) {
9
+ const partialsDir = path.join(__dirname, "..", "..", "views", "profiles");
10
+
11
+ let baseProfilePromises = baseProfiles.map((profileName) => {
12
+ new Promise(function (resolve, reject) {
13
+ fs.readFile(path.join(partialsDir, "samples", `${profileName}.hbs`), "utf-8", (err, template) => {
14
+ if (err) reject(err);
15
+ hbs.registerPartial(profileName, template);
16
+ resolve(true);
17
+ });
18
+ });
19
+ });
20
+
21
+ return readdir(partialsDir).then((partialFiles) => {
22
+ let generalPartialsPromises = partialFiles.map(
23
+ (partialFile) =>
24
+ new Promise(function (resolve, reject) {
25
+ const matches = /^([^.]+).(hbs|css|js)$/.exec(partialFile);
26
+ if (!matches) return resolve(true);
27
+ const name = matches[1];
28
+ fs.readFile(path.join(partialsDir, partialFile), "utf-8", (err, template) => {
29
+ if (err) reject(err);
30
+ hbs.registerPartial(name, template);
31
+ resolve(true);
32
+ });
33
+ })
34
+ );
35
+
36
+ return Promise.all(generalPartialsPromises, baseProfilePromises);
37
+ });
38
+ }
39
+
40
+ module.exports = importPartials;
@@ -0,0 +1,15 @@
1
+ const Handlebars = require("handlebars");
2
+ const helpers = require("./helpers");
3
+ const importPartials = require("./importPartials");
4
+
5
+ // Add Custom Helpers to Handlebars
6
+ for (let helper in helpers) Handlebars.registerHelper(helper, helpers[helper]);
7
+
8
+ module.exports = new Promise(function (resolve, reject) {
9
+ // Add Partials to Handlebars
10
+ importPartials(Handlebars)
11
+ .then(() => resolve(Handlebars))
12
+ .catch((err) => {
13
+ reject(err);
14
+ });
15
+ });
@@ -0,0 +1,91 @@
1
+ const fs = require("fs/promises");
2
+ const FormData = require("form-data");
3
+ const path = require("path");
4
+ const sharp = require("sharp");
5
+ const Handlebars = require("handlebars");
6
+ const readline = require("readline");
7
+ const https = require("https");
8
+ require("dotenv").config();
9
+
10
+ // New version image hbs directory
11
+ const templateDir = path.join(__dirname, "new-version.hbs");
12
+
13
+ // Version to be Released
14
+ // Remember you should run this script using 'npm ...' command to have npm environment variables
15
+ const version = process.env.npm_package_version;
16
+
17
+ // Telegram Bot Info (Bot Token Should Be Manually Provided Using dotenv)
18
+ const token = process.env.TELEGRAM_BOT_TOKEN;
19
+ const chatId = "-651191778";
20
+
21
+ const rl = readline.createInterface({
22
+ input: process.stdin,
23
+ output: process.stdout,
24
+ });
25
+
26
+ const releaseNotes = [];
27
+
28
+ rl.setPrompt("Release Notes:\n");
29
+
30
+ rl.prompt();
31
+
32
+ rl.on("line", function (ln) {
33
+ releaseNotes.push(ln);
34
+ });
35
+
36
+ // Press Ctrl+C to Just Exit
37
+ rl.on("SIGINT", () => process.exit(0));
38
+
39
+ // Press Ctrl+D to Emit 'close' Event and Send Release Notes
40
+ rl.on("close", sendReleaseNotes);
41
+
42
+ // Returns Buffer of New Version Image
43
+ async function createReleaseImage() {
44
+ return fs
45
+ .readFile(templateDir)
46
+ .then((templateBuffer) => {
47
+ const template = Handlebars.compile(templateBuffer.toString(), "utf-8");
48
+ let ctx = {
49
+ version,
50
+ };
51
+ const xml = template(ctx);
52
+
53
+ const buf = Buffer.from(xml, "utf8");
54
+ return sharp(buf).resize({ width: 350 }).jpeg({ quality: 100 }).toBuffer();
55
+ })
56
+ .catch((err) => {
57
+ throw err;
58
+ });
59
+ }
60
+
61
+ async function sendReleaseNotes() {
62
+ // Text to be Sent
63
+ const caption = `Version *${version}* Released!\n\n_Release Notes:_\n${releaseNotes.join("\n")}`;
64
+ const photoBuf = await createReleaseImage();
65
+
66
+ let form = new FormData();
67
+
68
+ form.append("chat_id", chatId);
69
+ form.append("photo", photoBuf, { filename: "image.jpeg" });
70
+ form.append("caption", caption);
71
+ form.append("parse_mode", "Markdown");
72
+
73
+ // HTTP Request Options (URL & Headers & Method)
74
+ const options = {
75
+ hostname: "api.telegram.org",
76
+ path: `/bot${token}/sendPhoto`,
77
+ protocol: "https:",
78
+ };
79
+
80
+ form.submit(options, (err, res) => {
81
+ console.log(`statusCode: ${res.statusCode}`);
82
+
83
+ res.on("data", (d) => {
84
+ process.stdout.write(d);
85
+ });
86
+
87
+ if (err) console.log(err);
88
+
89
+ res.emit("end");
90
+ });
91
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "id": "GF966666H",
3
+ "title": "عید سعید غدیر خم",
4
+ "code": "RS966667Q-96654TD3NH",
5
+ "type": "numeral",
6
+ "value": "25000",
7
+ "started_at": 1638011202,
8
+ "expires_at": 1638014444,
9
+ "region": {
10
+ "id": "1638011202",
11
+ "type": "counseling_center",
12
+ "detail": {
13
+ "title": "مرکز خدمات روان‌شناسی و مشاوره طلیعه سلامت"
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,201 @@
1
+ {
2
+ "id": "$X1HHBDG96",
3
+ "scale": {
4
+ "id": "$CAATS-93",
5
+ "title": "پرسشنامه شخصیت کتل (16pf)"
6
+ },
7
+ "chain": null,
8
+ "version": "1",
9
+ "edition": "",
10
+ "edition_version": null,
11
+ "client": {
12
+ "id": "GH96664HU",
13
+ "name": "رضوانه رضایی",
14
+ "user_id": "IR963X89"
15
+ },
16
+ "room": {
17
+ "id": "RS9666663",
18
+ "manager": {
19
+ "id": "GH9666663",
20
+ "name": "محمد رضا سالاری فر",
21
+ "user_id": "IR963U3H",
22
+ "avatar": null
23
+ },
24
+ "center": {
25
+ "id": "RS966666D",
26
+ "acceptation": null,
27
+ "status": "active",
28
+ "type": "counseling_center",
29
+ "detail": {
30
+ "title": "مرکز تحقیقات، آموزش و مشاوره خانواده",
31
+ "avatar": [
32
+ {
33
+ "id": "F96DKWM",
34
+ "file_name": "P9666AGE_large.png",
35
+ "slug": "storage/public/Files_1000/P9666AGE_large.png",
36
+ "mode": "large",
37
+ "url": "https://api.risloo.ir/storage/public/Files_1000/P9666AGE_large.png",
38
+ "type": "image",
39
+ "mime": "image/png",
40
+ "exec": "png"
41
+ },
42
+ {
43
+ "id": "F96DKWH",
44
+ "file_name": "P9666AGE_medium.png",
45
+ "slug": "storage/public/Files_1000/P9666AGE_medium.png",
46
+ "mode": "medium",
47
+ "url": "https://api.risloo.ir/storage/public/Files_1000/P9666AGE_medium.png",
48
+ "type": "image",
49
+ "mime": "image/png",
50
+ "exec": "png"
51
+ },
52
+ {
53
+ "id": "F96DKWQ",
54
+ "file_name": "P9666AGE_original.png",
55
+ "slug": "storage/public/Files_1000/P9666AGE_original.png",
56
+ "mode": "original",
57
+ "url": "https://api.risloo.ir/storage/public/Files_1000/P9666AGE_original.png",
58
+ "type": "image",
59
+ "mime": "image/png",
60
+ "exec": "png"
61
+ },
62
+ {
63
+ "id": "F96DKWV",
64
+ "file_name": "P9666AGE_small.png",
65
+ "slug": "storage/public/Files_1000/P9666AGE_small.png",
66
+ "mode": "small",
67
+ "url": "https://api.risloo.ir/storage/public/Files_1000/P9666AGE_small.png",
68
+ "type": "image",
69
+ "mime": "image/png",
70
+ "exec": "png"
71
+ }
72
+ ]
73
+ }
74
+ },
75
+ "acceptation": null,
76
+ "status": "active",
77
+ "type": "room"
78
+ },
79
+ "prerequisites": [
80
+ {
81
+ "type": "text",
82
+ "label": "gender",
83
+ "text": "جنسیت",
84
+ "answer": {
85
+ "type": "select",
86
+ "options": ["زن", "مرد"]
87
+ },
88
+ "alias": "gender",
89
+ "force": true,
90
+ "user_answered": "2"
91
+ },
92
+ {
93
+ "type": "text",
94
+ "label": "marital_status",
95
+ "text": "وضعیت تأهل",
96
+ "answer": {
97
+ "type": "select",
98
+ "options": ["مجرد", "متأهل"]
99
+ },
100
+ "alias": "marital_status",
101
+ "force": true,
102
+ "user_answered": "2"
103
+ },
104
+ {
105
+ "type": "text",
106
+ "label": "age",
107
+ "text": "سن",
108
+ "answer": {
109
+ "type": "number"
110
+ },
111
+ "alias": "age",
112
+ "force": true,
113
+ "user_answered": "23"
114
+ },
115
+ {
116
+ "type": "text",
117
+ "label": "education",
118
+ "text": "تحصیلات",
119
+ "answer": {
120
+ "type": "select",
121
+ "options": [
122
+ "ابتدایی اول",
123
+ "ابتدایی دوم",
124
+ "متوسطه اول",
125
+ "متوسطه دوم",
126
+ "دیپلم",
127
+ "کارشناسی",
128
+ "کارشناسی ارشد",
129
+ "پزشکی عمومی",
130
+ "متخصص",
131
+ "دکتری تخصصی",
132
+ "حوزوی مقدمات",
133
+ "حوزوی سطح۱",
134
+ "حوزوی سطح۲",
135
+ "حوزوی سطح۳",
136
+ "حوزوی سطح۴"
137
+ ]
138
+ },
139
+ "alias": "education",
140
+ "force": true,
141
+ "user_answered": "6"
142
+ }
143
+ ],
144
+ "case": null,
145
+ "code": null,
146
+ "created_at": 1671777735,
147
+ "started_at": 1671777778,
148
+ "scored_at": 1671779582,
149
+ "closed_at": 1671777778,
150
+ "total_amount": null,
151
+ "prepayment": false,
152
+ "purchased": true,
153
+ "amount": null,
154
+ "billing": null,
155
+ "description": "## دستور اجرای آزمون\n\nجهت تکمیل روند جلسه استعدادسنجی فرم زیر را با دقت تکمیل نمایید. این بخش برای افزایش بینش مراجع و مشاور است و نقش بسزایی در نتیجه دقیق استعدادسنجی دارد. از اینکه با حوصله و صادقانه فرم را پر می‌کنید، سپاس‌گزاریم.",
156
+ "psychologist_description": null,
157
+ "cornometer": 0,
158
+ "score": {
159
+ "a": 7,
160
+ "b": 1,
161
+ "c": 2,
162
+ "e": 7,
163
+ "f": 6,
164
+ "g": 2,
165
+ "h": 6,
166
+ "i": 5,
167
+ "l": 5,
168
+ "m": 5,
169
+ "n": 8,
170
+ "o": 5,
171
+ "q1": 4,
172
+ "q2": 7,
173
+ "q3": 1,
174
+ "q4": 5,
175
+ "raw_a": 9,
176
+ "raw_b": 4,
177
+ "raw_c": 8,
178
+ "raw_e": 14,
179
+ "raw_f": 13,
180
+ "raw_g": 7,
181
+ "raw_h": 13,
182
+ "raw_i": 8,
183
+ "raw_l": 11,
184
+ "raw_m": 11,
185
+ "raw_n": 14,
186
+ "raw_o": 9,
187
+ "raw_q1": 8,
188
+ "raw_q2": 12,
189
+ "raw_q3": 5,
190
+ "raw_q4": 10,
191
+ "extraversion": 5.8,
192
+ "anxiety": 6.6,
193
+ "flexibility": 6.5,
194
+ "independence": 6.2,
195
+ "selfcontrol": 0.8,
196
+ "adjustment": 3.6,
197
+ "leadership": 4,
198
+ "creativity": 3.4,
199
+ "status": "invalid"
200
+ }
201
+ }
@@ -0,0 +1,96 @@
1
+ {
2
+ "id": "$X1HQ2G3J3",
3
+ "scale": {
4
+ "id": "$PIES-93",
5
+ "title": "پرسشنامه ارزیابی سطح کلی اضطراب"
6
+ },
7
+ "version": "1",
8
+ "edition": "",
9
+ "edition_version": null,
10
+ "client": {
11
+ "id": "GH96666D7",
12
+ "name": "مهدی امیرآبادی"
13
+ },
14
+ "filler": "client",
15
+ "description": "## دستور اجرای آزمون\n\nعبارات زیر جملاتی هستند که ممکن است افراد از آن‌ها برای توصیف خود استفاده کنند. خواهشمند است هر عبارت را به دقت بخوانید و تعیین کنید تا چه میزانی آن عبارت می‌تواند شما را توصیف کند. سپس میزان درست بودن آن عبارت را بر اساس درجه‌بندی در ستون مقابل علامت بزنید.",
16
+ "room": {
17
+ "manager": {
18
+ "name": "دکتر مسعود جان‌بزرگی"
19
+ }
20
+ },
21
+ "center": {
22
+ "detail": {
23
+ "title": "کلینیک شخصی"
24
+ }
25
+ },
26
+ "started_at": 1630907666,
27
+ "cornometer": 1,
28
+ "prerequisites": [
29
+ {
30
+ "type": "text",
31
+ "label": "gender",
32
+ "text": "جنسیت",
33
+ "answer": {
34
+ "type": "select",
35
+ "options": ["زن", "مرد"]
36
+ },
37
+ "alias": "gender",
38
+ "force": true,
39
+ "user_answered": "2"
40
+ },
41
+ {
42
+ "type": "text",
43
+ "label": "marital_status",
44
+ "text": "وضعیت تأهل",
45
+ "answer": {
46
+ "type": "select",
47
+ "options": ["مجرد", "متأهل"]
48
+ },
49
+ "alias": "marital_status",
50
+ "force": true,
51
+ "user_answered": "2"
52
+ },
53
+ {
54
+ "type": "text",
55
+ "label": "age",
56
+ "text": "سن",
57
+ "answer": {
58
+ "type": "number"
59
+ },
60
+ "alias": "age",
61
+ "force": true,
62
+ "user_answered": "23"
63
+ },
64
+ {
65
+ "type": "text",
66
+ "label": "education",
67
+ "text": "تحصیلات",
68
+ "answer": {
69
+ "type": "select",
70
+ "options": [
71
+ "ابتدایی اول",
72
+ "ابتدایی دوم",
73
+ "متوسطه اول",
74
+ "متوسطه دوم",
75
+ "دیپلم",
76
+ "کارشناسی",
77
+ "کارشناسی ارشد",
78
+ "پزشکی عمومی",
79
+ "متخصص",
80
+ "دکتری تخصصی",
81
+ "حوزوی مقدمات",
82
+ "حوزوی سطح۱",
83
+ "حوزوی سطح۲",
84
+ "حوزوی سطح۳",
85
+ "حوزوی سطح۴"
86
+ ]
87
+ },
88
+ "alias": "education",
89
+ "force": true,
90
+ "user_answered": "6"
91
+ }
92
+ ],
93
+ "score": {
94
+ "raw": 117
95
+ }
96
+ }
@@ -0,0 +1,102 @@
1
+ {
2
+ "id": "$X1HQ2G3J3",
3
+ "scale": {
4
+ "id": "$PIES-93",
5
+ "title": "پرسشنامه انگیزش تحصیلی والراند"
6
+ },
7
+ "version": "1",
8
+ "edition": "",
9
+ "edition_version": null,
10
+ "client": {
11
+ "id": "GH96666D7",
12
+ "name": "مهدی امیرآبادی"
13
+ },
14
+ "filler": "client",
15
+ "description": "## دستور اجرای آزمون\n\nعبارات زیر جملاتی هستند که ممکن است افراد از آن‌ها برای توصیف خود استفاده کنند. خواهشمند است هر عبارت را به دقت بخوانید و تعیین کنید تا چه میزانی آن عبارت می‌تواند شما را توصیف کند. سپس میزان درست بودن آن عبارت را بر اساس درجه‌بندی در ستون مقابل علامت بزنید.",
16
+ "room": {
17
+ "manager": {
18
+ "name": "دکتر مسعود جان‌بزرگی"
19
+ }
20
+ },
21
+ "center": {
22
+ "detail": {
23
+ "title": "کلینیک شخصی"
24
+ }
25
+ },
26
+ "started_at": 1630907666,
27
+ "cornometer": 1,
28
+ "prerequisites": [
29
+ {
30
+ "type": "text",
31
+ "label": "gender",
32
+ "text": "جنسیت",
33
+ "answer": {
34
+ "type": "select",
35
+ "options": ["زن", "مرد"]
36
+ },
37
+ "alias": "gender",
38
+ "force": true,
39
+ "user_answered": "2"
40
+ },
41
+ {
42
+ "type": "text",
43
+ "label": "marital_status",
44
+ "text": "وضعیت تأهل",
45
+ "answer": {
46
+ "type": "select",
47
+ "options": ["مجرد", "متأهل"]
48
+ },
49
+ "alias": "marital_status",
50
+ "force": true,
51
+ "user_answered": "2"
52
+ },
53
+ {
54
+ "type": "text",
55
+ "label": "age",
56
+ "text": "سن",
57
+ "answer": {
58
+ "type": "number"
59
+ },
60
+ "alias": "age",
61
+ "force": true,
62
+ "user_answered": "23"
63
+ },
64
+ {
65
+ "type": "text",
66
+ "label": "education",
67
+ "text": "تحصیلات",
68
+ "answer": {
69
+ "type": "select",
70
+ "options": [
71
+ "ابتدایی اول",
72
+ "ابتدایی دوم",
73
+ "متوسطه اول",
74
+ "متوسطه دوم",
75
+ "دیپلم",
76
+ "کارشناسی",
77
+ "کارشناسی ارشد",
78
+ "پزشکی عمومی",
79
+ "متخصص",
80
+ "دکتری تخصصی",
81
+ "حوزوی مقدمات",
82
+ "حوزوی سطح۱",
83
+ "حوزوی سطح۲",
84
+ "حوزوی سطح۳",
85
+ "حوزوی سطح۴"
86
+ ]
87
+ },
88
+ "alias": "education",
89
+ "force": true,
90
+ "user_answered": "6"
91
+ }
92
+ ],
93
+ "score": {
94
+ "intrinsic_motivation_to_know": 4,
95
+ "intrinsic_motivation_toward_accomplishment": 15,
96
+ "intrinsic_motivation_to_experience_stimulation": 24,
97
+ "extrinsic_motivation_identified": 11,
98
+ "extrinsic_motivation_introjected": 28,
99
+ "extrinsic_motivation_external_regulation": 6,
100
+ "unmotivation": 21
101
+ }
102
+ }
@@ -0,0 +1,102 @@
1
+ {
2
+ "id": "$X1HQ2G3J3",
3
+ "scale": {
4
+ "id": "$PIES-93",
5
+ "title": "پرسشنامه انگیزش تحصیلی والراند"
6
+ },
7
+ "version": "1",
8
+ "edition": "",
9
+ "edition_version": null,
10
+ "client": {
11
+ "id": "GH96666D7",
12
+ "name": "مهدی امیرآبادی"
13
+ },
14
+ "filler": "client",
15
+ "description": "## دستور اجرای آزمون\n\nعبارات زیر جملاتی هستند که ممکن است افراد از آن‌ها برای توصیف خود استفاده کنند. خواهشمند است هر عبارت را به دقت بخوانید و تعیین کنید تا چه میزانی آن عبارت می‌تواند شما را توصیف کند. سپس میزان درست بودن آن عبارت را بر اساس درجه‌بندی در ستون مقابل علامت بزنید.",
16
+ "room": {
17
+ "manager": {
18
+ "name": "دکتر مسعود جان‌بزرگی"
19
+ }
20
+ },
21
+ "center": {
22
+ "detail": {
23
+ "title": "کلینیک شخصی"
24
+ }
25
+ },
26
+ "started_at": 1630907666,
27
+ "cornometer": 1,
28
+ "prerequisites": [
29
+ {
30
+ "type": "text",
31
+ "label": "gender",
32
+ "text": "جنسیت",
33
+ "answer": {
34
+ "type": "select",
35
+ "options": ["زن", "مرد"]
36
+ },
37
+ "alias": "gender",
38
+ "force": true,
39
+ "user_answered": "2"
40
+ },
41
+ {
42
+ "type": "text",
43
+ "label": "marital_status",
44
+ "text": "وضعیت تأهل",
45
+ "answer": {
46
+ "type": "select",
47
+ "options": ["مجرد", "متأهل"]
48
+ },
49
+ "alias": "marital_status",
50
+ "force": true,
51
+ "user_answered": "2"
52
+ },
53
+ {
54
+ "type": "text",
55
+ "label": "age",
56
+ "text": "سن",
57
+ "answer": {
58
+ "type": "number"
59
+ },
60
+ "alias": "age",
61
+ "force": true,
62
+ "user_answered": "23"
63
+ },
64
+ {
65
+ "type": "text",
66
+ "label": "education",
67
+ "text": "تحصیلات",
68
+ "answer": {
69
+ "type": "select",
70
+ "options": [
71
+ "ابتدایی اول",
72
+ "ابتدایی دوم",
73
+ "متوسطه اول",
74
+ "متوسطه دوم",
75
+ "دیپلم",
76
+ "کارشناسی",
77
+ "کارشناسی ارشد",
78
+ "پزشکی عمومی",
79
+ "متخصص",
80
+ "دکتری تخصصی",
81
+ "حوزوی مقدمات",
82
+ "حوزوی سطح۱",
83
+ "حوزوی سطح۲",
84
+ "حوزوی سطح۳",
85
+ "حوزوی سطح۴"
86
+ ]
87
+ },
88
+ "alias": "education",
89
+ "force": true,
90
+ "user_answered": "6"
91
+ }
92
+ ],
93
+ "score": {
94
+ "intrinsic_motivation_to_know": 4,
95
+ "intrinsic_motivation_toward_accomplishment": 23,
96
+ "intrinsic_motivation_to_experience_stimulation": 16,
97
+ "extrinsic_motivation_identified": 7,
98
+ "extrinsic_motivation_introjected": 28,
99
+ "extrinsic_motivation_external_regulation": 25,
100
+ "unmotivation": 20
101
+ }
102
+ }