attributes.json 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. [
  2. {
  3. "name": "login",
  4. "display": "Login",
  5. "dataType": "input",
  6. "dataOption": {
  7. "type": "text",
  8. "maxlength": 100,
  9. "null": true,
  10. "autocapitalize": false,
  11. "item_class": "formGroup--halfSize"
  12. },
  13. "__typename": "ObjectManagerFrontendAttribute"
  14. },
  15. {
  16. "name": "address",
  17. "display": "Address",
  18. "dataType": "textarea",
  19. "dataOption": {
  20. "type": "text",
  21. "maxlength": 500,
  22. "rows": 4,
  23. "null": true,
  24. "item_class": "formGroup--halfSize"
  25. },
  26. "__typename": "ObjectManagerFrontendAttribute"
  27. },
  28. {
  29. "name": "vip",
  30. "display": "VIP",
  31. "dataType": "boolean",
  32. "dataOption": {
  33. "null": true,
  34. "default": false,
  35. "item_class": "formGroup--halfSize",
  36. "options": {
  37. "false": "no",
  38. "true": "yes"
  39. },
  40. "translate": true,
  41. "permission": ["admin.user", "ticket.agent"]
  42. },
  43. "__typename": "ObjectManagerFrontendAttribute"
  44. },
  45. {
  46. "name": "hiddenBoolean",
  47. "display": "Hidden Boolean",
  48. "dataType": "boolean",
  49. "dataOption": {
  50. "null": true,
  51. "default": null,
  52. "item_class": "formGroup--halfSize",
  53. "options": {
  54. "false": "no",
  55. "true": "yes"
  56. }
  57. },
  58. "__typename": "ObjectManagerFrontendAttribute"
  59. },
  60. {
  61. "name": "note",
  62. "display": "Note",
  63. "dataType": "richtext",
  64. "dataOption": {
  65. "type": "text",
  66. "maxlength": 5000,
  67. "null": true,
  68. "note": "Notes are visible to agents only, never to customers.",
  69. "no_images": true
  70. },
  71. "__typename": "ObjectManagerFrontendAttribute"
  72. },
  73. {
  74. "name": "date_attribute",
  75. "display": "Date Attribute",
  76. "dataType": "date",
  77. "dataOption": {
  78. "diff": 232323,
  79. "default": null,
  80. "null": true,
  81. "options": {},
  82. "relation": ""
  83. },
  84. "__typename": "ObjectManagerFrontendAttribute"
  85. },
  86. {
  87. "name": "textarea_field",
  88. "display": "Textarea Field",
  89. "dataType": "textarea",
  90. "dataOption": {
  91. "default": "",
  92. "maxlength": 500,
  93. "rows": 4,
  94. "null": true,
  95. "options": {},
  96. "relation": ""
  97. },
  98. "__typename": "ObjectManagerFrontendAttribute"
  99. },
  100. {
  101. "name": "integer_field",
  102. "display": "Integer Field",
  103. "dataType": "integer",
  104. "dataOption": {
  105. "default": null,
  106. "min": 0,
  107. "max": 999999999,
  108. "null": true,
  109. "options": {},
  110. "relation": ""
  111. },
  112. "__typename": "ObjectManagerFrontendAttribute"
  113. },
  114. {
  115. "name": "date_time_field",
  116. "display": "DateTime Field",
  117. "dataType": "datetime",
  118. "dataOption": {
  119. "future": true,
  120. "past": true,
  121. "diff": null,
  122. "default": null,
  123. "null": true,
  124. "options": {},
  125. "relation": ""
  126. },
  127. "__typename": "ObjectManagerFrontendAttribute"
  128. },
  129. {
  130. "name": "single_select",
  131. "display": "Single Select Field",
  132. "dataType": "select",
  133. "dataOption": {
  134. "options": {
  135. "key1": "Display1",
  136. "key2": "Display2"
  137. },
  138. "linktemplate": "",
  139. "default": "",
  140. "null": true,
  141. "relation": "",
  142. "nulloption": true,
  143. "maxlength": 255,
  144. "historical_options": {
  145. "key1": "Display1",
  146. "key2": "Display2"
  147. }
  148. },
  149. "__typename": "ObjectManagerFrontendAttribute"
  150. },
  151. {
  152. "name": "multi_select_field",
  153. "display": "Multi Select Field",
  154. "dataType": "multiselect",
  155. "dataOption": {
  156. "options": {
  157. "key1": "Display1",
  158. "key2": "Display2"
  159. },
  160. "linktemplate": "",
  161. "default": [],
  162. "null": true,
  163. "relation": "",
  164. "nulloption": true,
  165. "maxlength": 255,
  166. "multiple": true,
  167. "historical_options": {
  168. "key1": "Display1",
  169. "key2": "Display2"
  170. }
  171. },
  172. "__typename": "ObjectManagerFrontendAttribute"
  173. },
  174. {
  175. "name": "single_tree_select",
  176. "display": "Single Tree Select Field",
  177. "dataType": "tree_select",
  178. "dataOption": {
  179. "options": [
  180. {
  181. "name": "key1",
  182. "value": "key1",
  183. "children": [
  184. {
  185. "name": "key1_child1",
  186. "value": "key1::key1_child1"
  187. },
  188. {
  189. "name": "key1_child2",
  190. "value": "key1::key1_child2"
  191. }
  192. ]
  193. },
  194. {
  195. "name": "key2",
  196. "value": "key2"
  197. }
  198. ],
  199. "default": "",
  200. "null": true,
  201. "relation": "",
  202. "nulloption": true,
  203. "maxlength": 255,
  204. "historical_options": {
  205. "key1": "key1",
  206. "key1::key1_child1": "key1_child1",
  207. "key1::key1_child2": "key1_child2",
  208. "key2": "key2"
  209. }
  210. },
  211. "__typename": "ObjectManagerFrontendAttribute"
  212. },
  213. {
  214. "name": "multi_tree_select",
  215. "display": "Multi Tree Select Field",
  216. "dataType": "multi_tree_select",
  217. "dataOption": {
  218. "options": [
  219. {
  220. "name": "key1",
  221. "value": "key1"
  222. },
  223. {
  224. "name": "key2",
  225. "value": "key2",
  226. "children": [
  227. {
  228. "name": "key2_child1",
  229. "value": "key2::key2_child1"
  230. },
  231. {
  232. "name": "key2_child2",
  233. "value": "key2::key2_child2",
  234. "children": [
  235. {
  236. "name": "key2_child2_child1",
  237. "value": "key2::key2_child2::key2_child2_child1"
  238. },
  239. {
  240. "name": "key2_child2_child2",
  241. "value": "key2::key2_child2::key2_child2_child2"
  242. }
  243. ]
  244. }
  245. ]
  246. }
  247. ],
  248. "default": null,
  249. "null": true,
  250. "relation": "",
  251. "multiple": true
  252. },
  253. "__typename": "ObjectManagerFrontendAttribute"
  254. },
  255. {
  256. "name": "active",
  257. "display": "Active",
  258. "dataType": "active",
  259. "dataOption": {
  260. "null": true,
  261. "default": true,
  262. "permission": ["admin.user", "ticket.agent"]
  263. },
  264. "__typename": "ObjectManagerFrontendAttribute"
  265. },
  266. {
  267. "name": "invisible",
  268. "display": "Invisible",
  269. "dataType": "input",
  270. "dataOption": {
  271. "null": false,
  272. "item_class": "checkbox",
  273. "permission": ["invisible.*"]
  274. },
  275. "__typename": "ObjectManagerFrontendAttribute"
  276. },
  277. {
  278. "name": "some_url",
  279. "display": "Url",
  280. "dataType": "input",
  281. "dataOption": {
  282. "default": "",
  283. "type": "url",
  284. "maxlength": 120,
  285. "linktemplate": "",
  286. "null": true,
  287. "options": {},
  288. "relation": ""
  289. },
  290. "__typename": "ObjectManagerFrontendAttribute"
  291. },
  292. {
  293. "name": "phone",
  294. "display": "Phone",
  295. "dataType": "input",
  296. "dataOption": {
  297. "default": "",
  298. "type": "tel",
  299. "maxlength": 120,
  300. "linktemplate": "",
  301. "null": true,
  302. "options": {},
  303. "relation": ""
  304. },
  305. "__typename": "ObjectManagerFrontendAttribute"
  306. },
  307. {
  308. "name": "some_email",
  309. "display": "Email",
  310. "dataType": "input",
  311. "dataOption": {
  312. "default": "",
  313. "type": "email",
  314. "maxlength": 120,
  315. "linktemplate": "",
  316. "null": true,
  317. "options": {},
  318. "relation": ""
  319. },
  320. "__typename": "ObjectManagerFrontendAttribute"
  321. },
  322. {
  323. "name": "external_attribute",
  324. "display": "External Attribute",
  325. "dataType": "autocompletion_ajax_external_data_source",
  326. "dataOption": {
  327. "search_url": "http://localhost:3000/posts/search?q=#{search.term}",
  328. "ssl_verify": true,
  329. "http_basic_auth_username": "",
  330. "http_basic_auth_password": "",
  331. "http_basic_auth_password_confirm": "",
  332. "bearer_token_auth": "",
  333. "search_result_list_key": "posts",
  334. "search_result_value_key": "id",
  335. "search_result_label_key": "title",
  336. "linktemplate": "",
  337. "default": null,
  338. "null": true,
  339. "options": {},
  340. "relation": ""
  341. },
  342. "__typename": "ObjectManagerFrontendAttribute"
  343. }
  344. ]