gooddata-edge 0.6.27.edge

Sign up to get free protection for your applications and to get access to all the features.
Files changed (364) hide show
  1. checksums.yaml +7 -0
  2. data/.document +5 -0
  3. data/.gitignore +36 -0
  4. data/.rspec +3 -0
  5. data/.rubocop.yml +89 -0
  6. data/.yardopts +22 -0
  7. data/CHANGELOG.md +196 -0
  8. data/CLI.md +439 -0
  9. data/DEPENDENCIES.md +817 -0
  10. data/Gemfile +4 -0
  11. data/Guardfile +5 -0
  12. data/LICENSE +22 -0
  13. data/LICENSE.rb +5 -0
  14. data/README.md +75 -0
  15. data/Rakefile +179 -0
  16. data/TODO.md +32 -0
  17. data/authors.sh +4 -0
  18. data/bin/gooddata +7 -0
  19. data/dependency_decisions.yml +104 -0
  20. data/gooddata +9 -0
  21. data/gooddata.gemspec +63 -0
  22. data/lib/gooddata.rb +31 -0
  23. data/lib/gooddata/app/app.rb +16 -0
  24. data/lib/gooddata/bricks/base_downloader.rb +86 -0
  25. data/lib/gooddata/bricks/brick.rb +38 -0
  26. data/lib/gooddata/bricks/bricks.rb +15 -0
  27. data/lib/gooddata/bricks/middleware/aws_middleware.rb +29 -0
  28. data/lib/gooddata/bricks/middleware/base_middleware.rb +56 -0
  29. data/lib/gooddata/bricks/middleware/bench_middleware.rb +24 -0
  30. data/lib/gooddata/bricks/middleware/bulk_salesforce_middleware.rb +37 -0
  31. data/lib/gooddata/bricks/middleware/decode_params_middleware.rb +20 -0
  32. data/lib/gooddata/bricks/middleware/fs_download_middleware.rb +48 -0
  33. data/lib/gooddata/bricks/middleware/fs_upload_middleware.rb +36 -0
  34. data/lib/gooddata/bricks/middleware/gooddata_middleware.rb +39 -0
  35. data/lib/gooddata/bricks/middleware/logger_middleware.rb +29 -0
  36. data/lib/gooddata/bricks/middleware/middleware.rb +12 -0
  37. data/lib/gooddata/bricks/middleware/restforce_middleware.rb +61 -0
  38. data/lib/gooddata/bricks/middleware/stdout_middleware.rb +23 -0
  39. data/lib/gooddata/bricks/middleware/twitter_middleware.rb +29 -0
  40. data/lib/gooddata/bricks/middleware/undot_params_middleware.rb +37 -0
  41. data/lib/gooddata/bricks/pipeline.rb +32 -0
  42. data/lib/gooddata/bricks/utils.rb +18 -0
  43. data/lib/gooddata/cli/cli.rb +27 -0
  44. data/lib/gooddata/cli/commands/auth_cmd.rb +29 -0
  45. data/lib/gooddata/cli/commands/domain_cmd.rb +28 -0
  46. data/lib/gooddata/cli/commands/project_cmd.rb +45 -0
  47. data/lib/gooddata/cli/hooks.rb +57 -0
  48. data/lib/gooddata/cli/shared.rb +61 -0
  49. data/lib/gooddata/cli/terminal.rb +20 -0
  50. data/lib/gooddata/client.rb +67 -0
  51. data/lib/gooddata/commands/api.rb +64 -0
  52. data/lib/gooddata/commands/auth.rb +107 -0
  53. data/lib/gooddata/commands/base.rb +12 -0
  54. data/lib/gooddata/commands/commands.rb +12 -0
  55. data/lib/gooddata/commands/datasets.rb +148 -0
  56. data/lib/gooddata/commands/datawarehouse.rb +20 -0
  57. data/lib/gooddata/commands/domain.rb +40 -0
  58. data/lib/gooddata/commands/process.rb +67 -0
  59. data/lib/gooddata/commands/project.rb +175 -0
  60. data/lib/gooddata/commands/projects.rb +20 -0
  61. data/lib/gooddata/commands/role.rb +36 -0
  62. data/lib/gooddata/commands/runners.rb +47 -0
  63. data/lib/gooddata/commands/scaffold.rb +69 -0
  64. data/lib/gooddata/commands/user.rb +39 -0
  65. data/lib/gooddata/connection.rb +127 -0
  66. data/lib/gooddata/core/core.rb +12 -0
  67. data/lib/gooddata/core/logging.rb +105 -0
  68. data/lib/gooddata/core/nil_logger.rb +23 -0
  69. data/lib/gooddata/core/project.rb +74 -0
  70. data/lib/gooddata/core/rest.rb +149 -0
  71. data/lib/gooddata/core/user.rb +20 -0
  72. data/lib/gooddata/data/data.rb +12 -0
  73. data/lib/gooddata/data/guesser.rb +122 -0
  74. data/lib/gooddata/exceptions/attr_element_not_found.rb +16 -0
  75. data/lib/gooddata/exceptions/command_failed.rb +11 -0
  76. data/lib/gooddata/exceptions/exceptions.rb +12 -0
  77. data/lib/gooddata/exceptions/execution_limit_exceeded.rb +13 -0
  78. data/lib/gooddata/exceptions/filter_maqlization.rb +16 -0
  79. data/lib/gooddata/exceptions/malformed_user.rb +15 -0
  80. data/lib/gooddata/exceptions/no_project_error.rb +15 -0
  81. data/lib/gooddata/exceptions/object_migration.rb +32 -0
  82. data/lib/gooddata/exceptions/project_not_found.rb +13 -0
  83. data/lib/gooddata/exceptions/segment_not_empty.rb +18 -0
  84. data/lib/gooddata/exceptions/uncomputable_report.rb +13 -0
  85. data/lib/gooddata/exceptions/user_in_different_domain.rb +15 -0
  86. data/lib/gooddata/exceptions/validation_error.rb +16 -0
  87. data/lib/gooddata/extensions/big_decimal.rb +17 -0
  88. data/lib/gooddata/extensions/enumerable.rb +39 -0
  89. data/lib/gooddata/extensions/extensions.rb +10 -0
  90. data/lib/gooddata/extensions/false.rb +15 -0
  91. data/lib/gooddata/extensions/hash.rb +38 -0
  92. data/lib/gooddata/extensions/nil.rb +15 -0
  93. data/lib/gooddata/extensions/numeric.rb +15 -0
  94. data/lib/gooddata/extensions/object.rb +27 -0
  95. data/lib/gooddata/extensions/symbol.rb +15 -0
  96. data/lib/gooddata/extensions/true.rb +15 -0
  97. data/lib/gooddata/extract.rb +21 -0
  98. data/lib/gooddata/goodzilla/goodzilla.rb +159 -0
  99. data/lib/gooddata/helpers/auth_helpers.rb +75 -0
  100. data/lib/gooddata/helpers/csv_helper.rb +61 -0
  101. data/lib/gooddata/helpers/data_helper.rb +116 -0
  102. data/lib/gooddata/helpers/global_helpers.rb +331 -0
  103. data/lib/gooddata/helpers/global_helpers_params.rb +172 -0
  104. data/lib/gooddata/helpers/helpers.rb +10 -0
  105. data/lib/gooddata/mixins/author.rb +26 -0
  106. data/lib/gooddata/mixins/content_getter.rb +15 -0
  107. data/lib/gooddata/mixins/content_property_reader.rb +17 -0
  108. data/lib/gooddata/mixins/content_property_writer.rb +17 -0
  109. data/lib/gooddata/mixins/contributor.rb +20 -0
  110. data/lib/gooddata/mixins/data_getter.rb +15 -0
  111. data/lib/gooddata/mixins/data_property_reader.rb +19 -0
  112. data/lib/gooddata/mixins/data_property_writer.rb +19 -0
  113. data/lib/gooddata/mixins/inspector.rb +53 -0
  114. data/lib/gooddata/mixins/is_attribute.rb +17 -0
  115. data/lib/gooddata/mixins/is_dimension.rb +17 -0
  116. data/lib/gooddata/mixins/is_fact.rb +17 -0
  117. data/lib/gooddata/mixins/is_label.rb +19 -0
  118. data/lib/gooddata/mixins/links.rb +15 -0
  119. data/lib/gooddata/mixins/md_finders.rb +77 -0
  120. data/lib/gooddata/mixins/md_grantees.rb +42 -0
  121. data/lib/gooddata/mixins/md_id_to_uri.rb +34 -0
  122. data/lib/gooddata/mixins/md_json.rb +15 -0
  123. data/lib/gooddata/mixins/md_lock.rb +87 -0
  124. data/lib/gooddata/mixins/md_object_id.rb +15 -0
  125. data/lib/gooddata/mixins/md_object_indexer.rb +64 -0
  126. data/lib/gooddata/mixins/md_object_query.rb +128 -0
  127. data/lib/gooddata/mixins/md_relations.rb +43 -0
  128. data/lib/gooddata/mixins/meta_getter.rb +17 -0
  129. data/lib/gooddata/mixins/meta_property_reader.rb +19 -0
  130. data/lib/gooddata/mixins/meta_property_writer.rb +19 -0
  131. data/lib/gooddata/mixins/mixins.rb +19 -0
  132. data/lib/gooddata/mixins/not_attribute.rb +17 -0
  133. data/lib/gooddata/mixins/not_exportable.rb +15 -0
  134. data/lib/gooddata/mixins/not_fact.rb +17 -0
  135. data/lib/gooddata/mixins/not_group.rb +17 -0
  136. data/lib/gooddata/mixins/not_label.rb +19 -0
  137. data/lib/gooddata/mixins/not_metric.rb +19 -0
  138. data/lib/gooddata/mixins/obj_id.rb +15 -0
  139. data/lib/gooddata/mixins/rest_getters.rb +17 -0
  140. data/lib/gooddata/mixins/rest_resource.rb +47 -0
  141. data/lib/gooddata/mixins/root_key_getter.rb +15 -0
  142. data/lib/gooddata/mixins/root_key_setter.rb +15 -0
  143. data/lib/gooddata/mixins/timestamps.rb +19 -0
  144. data/lib/gooddata/mixins/to_json.rb +11 -0
  145. data/lib/gooddata/mixins/uri_getter.rb +9 -0
  146. data/lib/gooddata/models/blueprint/anchor_field.rb +64 -0
  147. data/lib/gooddata/models/blueprint/attribute_field.rb +29 -0
  148. data/lib/gooddata/models/blueprint/blueprint.rb +11 -0
  149. data/lib/gooddata/models/blueprint/blueprint_field.rb +70 -0
  150. data/lib/gooddata/models/blueprint/dashboard_builder.rb +30 -0
  151. data/lib/gooddata/models/blueprint/dataset_blueprint.rb +449 -0
  152. data/lib/gooddata/models/blueprint/date_dimension.rb +14 -0
  153. data/lib/gooddata/models/blueprint/fact_field.rb +20 -0
  154. data/lib/gooddata/models/blueprint/label_field.rb +43 -0
  155. data/lib/gooddata/models/blueprint/project_blueprint.rb +746 -0
  156. data/lib/gooddata/models/blueprint/project_builder.rb +83 -0
  157. data/lib/gooddata/models/blueprint/reference_field.rb +43 -0
  158. data/lib/gooddata/models/blueprint/schema_blueprint.rb +160 -0
  159. data/lib/gooddata/models/blueprint/schema_builder.rb +89 -0
  160. data/lib/gooddata/models/blueprint/to_manifest.rb +181 -0
  161. data/lib/gooddata/models/blueprint/to_wire.rb +154 -0
  162. data/lib/gooddata/models/client.rb +182 -0
  163. data/lib/gooddata/models/client_synchronization_result.rb +31 -0
  164. data/lib/gooddata/models/client_synchronization_result_details.rb +41 -0
  165. data/lib/gooddata/models/datawarehouse.rb +92 -0
  166. data/lib/gooddata/models/domain.rb +479 -0
  167. data/lib/gooddata/models/execution.rb +115 -0
  168. data/lib/gooddata/models/execution_detail.rb +81 -0
  169. data/lib/gooddata/models/from_wire.rb +160 -0
  170. data/lib/gooddata/models/invitation.rb +75 -0
  171. data/lib/gooddata/models/links.rb +50 -0
  172. data/lib/gooddata/models/membership.rb +441 -0
  173. data/lib/gooddata/models/metadata.rb +272 -0
  174. data/lib/gooddata/models/metadata/attribute.rb +134 -0
  175. data/lib/gooddata/models/metadata/dashboard.rb +108 -0
  176. data/lib/gooddata/models/metadata/dashboard/dashboard_item.rb +76 -0
  177. data/lib/gooddata/models/metadata/dashboard/filter_apply_item.rb +37 -0
  178. data/lib/gooddata/models/metadata/dashboard/filter_item.rb +64 -0
  179. data/lib/gooddata/models/metadata/dashboard/geo_chart_item.rb +56 -0
  180. data/lib/gooddata/models/metadata/dashboard/headline_item.rb +56 -0
  181. data/lib/gooddata/models/metadata/dashboard/iframe_item.rb +46 -0
  182. data/lib/gooddata/models/metadata/dashboard/report_item.rb +92 -0
  183. data/lib/gooddata/models/metadata/dashboard/text_item.rb +55 -0
  184. data/lib/gooddata/models/metadata/dashboard_tab.rb +141 -0
  185. data/lib/gooddata/models/metadata/dataset.rb +64 -0
  186. data/lib/gooddata/models/metadata/dimension.rb +54 -0
  187. data/lib/gooddata/models/metadata/fact.rb +44 -0
  188. data/lib/gooddata/models/metadata/label.rb +128 -0
  189. data/lib/gooddata/models/metadata/metadata.rb +12 -0
  190. data/lib/gooddata/models/metadata/metric.rb +198 -0
  191. data/lib/gooddata/models/metadata/report.rb +247 -0
  192. data/lib/gooddata/models/metadata/report_definition.rb +264 -0
  193. data/lib/gooddata/models/metadata/scheduled_mail.rb +274 -0
  194. data/lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb +62 -0
  195. data/lib/gooddata/models/metadata/scheduled_mail/report_attachment.rb +64 -0
  196. data/lib/gooddata/models/metadata/variable.rb +91 -0
  197. data/lib/gooddata/models/model.rb +282 -0
  198. data/lib/gooddata/models/models.rb +12 -0
  199. data/lib/gooddata/models/module_constants.rb +31 -0
  200. data/lib/gooddata/models/process.rb +316 -0
  201. data/lib/gooddata/models/profile.rb +426 -0
  202. data/lib/gooddata/models/project.rb +1514 -0
  203. data/lib/gooddata/models/project_creator.rb +126 -0
  204. data/lib/gooddata/models/project_metadata.rb +67 -0
  205. data/lib/gooddata/models/project_role.rb +79 -0
  206. data/lib/gooddata/models/report_data_result.rb +266 -0
  207. data/lib/gooddata/models/schedule.rb +518 -0
  208. data/lib/gooddata/models/segment.rb +201 -0
  209. data/lib/gooddata/models/tab_builder.rb +27 -0
  210. data/lib/gooddata/models/user_filters/mandatory_user_filter.rb +76 -0
  211. data/lib/gooddata/models/user_filters/user_filter.rb +100 -0
  212. data/lib/gooddata/models/user_filters/user_filter_builder.rb +512 -0
  213. data/lib/gooddata/models/user_filters/user_filters.rb +13 -0
  214. data/lib/gooddata/models/user_filters/variable_user_filter.rb +31 -0
  215. data/lib/gooddata/models/user_group.rb +241 -0
  216. data/lib/gooddata/rest/README.md +37 -0
  217. data/lib/gooddata/rest/client.rb +389 -0
  218. data/lib/gooddata/rest/connection.rb +765 -0
  219. data/lib/gooddata/rest/object.rb +69 -0
  220. data/lib/gooddata/rest/object_factory.rb +76 -0
  221. data/lib/gooddata/rest/resource.rb +27 -0
  222. data/lib/gooddata/rest/rest.rb +24 -0
  223. data/lib/gooddata/version.rb +23 -0
  224. data/lib/templates/bricks/brick.rb.erb +7 -0
  225. data/lib/templates/bricks/main.rb.erb +5 -0
  226. data/lib/templates/project/Goodfile.erb +4 -0
  227. data/lib/templates/project/data/commits.csv +4 -0
  228. data/lib/templates/project/data/devs.csv +4 -0
  229. data/lib/templates/project/data/repos.csv +3 -0
  230. data/lib/templates/project/model/model.rb.erb +20 -0
  231. data/spec/bricks/bricks_spec.rb +112 -0
  232. data/spec/bricks/default-config.json +8 -0
  233. data/spec/data/.gooddata +4 -0
  234. data/spec/data/blueprints/additional_dataset_module.json +32 -0
  235. data/spec/data/blueprints/big_blueprint_not_pruned.json +2079 -0
  236. data/spec/data/blueprints/invalid_blueprint.json +103 -0
  237. data/spec/data/blueprints/m_n_model.json +104 -0
  238. data/spec/data/blueprints/model_module.json +25 -0
  239. data/spec/data/blueprints/test_blueprint.json +38 -0
  240. data/spec/data/blueprints/test_project_model_spec.json +106 -0
  241. data/spec/data/cc/data/source/commits.csv +4 -0
  242. data/spec/data/cc/data/source/devs.csv +4 -0
  243. data/spec/data/cc/data/source/repos.csv +3 -0
  244. data/spec/data/cc/devel.prm +0 -0
  245. data/spec/data/cc/graph/graph.grf +11 -0
  246. data/spec/data/cc/workspace.prm +19 -0
  247. data/spec/data/column_based_permissions.csv +7 -0
  248. data/spec/data/column_based_permissions2.csv +6 -0
  249. data/spec/data/gd_gse_data_blueprint.json +1371 -0
  250. data/spec/data/gd_gse_data_manifest.json +1424 -0
  251. data/spec/data/gd_gse_data_model.json +1772 -0
  252. data/spec/data/gooddata_version_process/gooddata_version.rb +9 -0
  253. data/spec/data/gooddata_version_process/gooddata_version.zip +0 -0
  254. data/spec/data/hello_world_process/hello_world.rb +9 -0
  255. data/spec/data/hello_world_process/hello_world.zip +0 -0
  256. data/spec/data/line_based_permissions.csv +3 -0
  257. data/spec/data/manifests/test_blueprint.json +32 -0
  258. data/spec/data/manifests/test_project.json +107 -0
  259. data/spec/data/reports/left_attr_report.json +108 -0
  260. data/spec/data/reports/metric_only_one_line.json +83 -0
  261. data/spec/data/reports/report_1.json +197 -0
  262. data/spec/data/reports/top_attr_report.json +108 -0
  263. data/spec/data/ruby_params_process/ruby_params.rb +9 -0
  264. data/spec/data/ruby_process/deep_files/deep_stuff.txt +1 -0
  265. data/spec/data/ruby_process/process.rb +8 -0
  266. data/spec/data/ruby_process/stuff.txt +1 -0
  267. data/spec/data/superfluous_titles_view.json +81 -0
  268. data/spec/data/test-ci-data.csv +2 -0
  269. data/spec/data/users.csv +12 -0
  270. data/spec/data/wire_models/model_view.json +1775 -0
  271. data/spec/data/wire_models/nu_model.json +3046 -0
  272. data/spec/data/wire_models/test_blueprint.json +63 -0
  273. data/spec/data/wire_test_project.json +150 -0
  274. data/spec/environment/default.rb +41 -0
  275. data/spec/environment/develop.rb +31 -0
  276. data/spec/environment/environment.rb +18 -0
  277. data/spec/environment/hotfix.rb +21 -0
  278. data/spec/environment/production.rb +35 -0
  279. data/spec/environment/release.rb +21 -0
  280. data/spec/environment/staging.rb +30 -0
  281. data/spec/environment/staging_3.rb +36 -0
  282. data/spec/helpers/blueprint_helper.rb +26 -0
  283. data/spec/helpers/cli_helper.rb +36 -0
  284. data/spec/helpers/connection_helper.rb +41 -0
  285. data/spec/helpers/crypto_helper.rb +17 -0
  286. data/spec/helpers/csv_helper.rb +18 -0
  287. data/spec/helpers/process_helper.rb +33 -0
  288. data/spec/helpers/project_helper.rb +59 -0
  289. data/spec/helpers/schedule_helper.rb +31 -0
  290. data/spec/helpers/spec_helper.rb +15 -0
  291. data/spec/integration/blueprint_updates_spec.rb +101 -0
  292. data/spec/integration/blueprint_with_grain_spec.rb +72 -0
  293. data/spec/integration/clients_spec.rb +134 -0
  294. data/spec/integration/command_datawarehouse_spec.rb +39 -0
  295. data/spec/integration/command_projects_spec.rb +32 -0
  296. data/spec/integration/create_from_template_spec.rb +22 -0
  297. data/spec/integration/create_project_spec.rb +24 -0
  298. data/spec/integration/date_dim_switch_spec.rb +142 -0
  299. data/spec/integration/deprecated_load_spec.rb +58 -0
  300. data/spec/integration/full_process_schedule_spec.rb +298 -0
  301. data/spec/integration/full_project_spec.rb +569 -0
  302. data/spec/integration/over_to_user_filters_spec.rb +94 -0
  303. data/spec/integration/partial_md_export_import_spec.rb +42 -0
  304. data/spec/integration/project_spec.rb +264 -0
  305. data/spec/integration/rest_spec.rb +213 -0
  306. data/spec/integration/schedule_spec.rb +626 -0
  307. data/spec/integration/segments_spec.rb +141 -0
  308. data/spec/integration/user_filters_spec.rb +290 -0
  309. data/spec/integration/user_group_spec.rb +127 -0
  310. data/spec/integration/variables_spec.rb +188 -0
  311. data/spec/logging_in_logging_out_spec.rb +93 -0
  312. data/spec/spec_helper.rb +95 -0
  313. data/spec/unit/bricks/bricks_spec.rb +35 -0
  314. data/spec/unit/bricks/middleware/aws_middelware_spec.rb +51 -0
  315. data/spec/unit/bricks/middleware/bench_middleware_spec.rb +15 -0
  316. data/spec/unit/bricks/middleware/bulk_salesforce_middleware_spec.rb +15 -0
  317. data/spec/unit/bricks/middleware/gooddata_middleware_spec.rb +15 -0
  318. data/spec/unit/bricks/middleware/logger_middleware_spec.rb +15 -0
  319. data/spec/unit/bricks/middleware/restforce_middleware_spec.rb +15 -0
  320. data/spec/unit/bricks/middleware/stdout_middleware_spec.rb +15 -0
  321. data/spec/unit/bricks/middleware/twitter_middleware_spec.rb +15 -0
  322. data/spec/unit/cli/cli_spec.rb +17 -0
  323. data/spec/unit/cli/commands/cmd_auth_spec.rb +17 -0
  324. data/spec/unit/commands/command_projects_spec.rb +22 -0
  325. data/spec/unit/core/connection_spec.rb +57 -0
  326. data/spec/unit/core/logging_spec.rb +133 -0
  327. data/spec/unit/core/nil_logger_spec.rb +13 -0
  328. data/spec/unit/core/project_spec.rb +54 -0
  329. data/spec/unit/extensions/hash_spec.rb +23 -0
  330. data/spec/unit/godzilla/goodzilla_spec.rb +78 -0
  331. data/spec/unit/helpers/csv_helper_spec.rb +22 -0
  332. data/spec/unit/helpers/data_helper_spec.rb +61 -0
  333. data/spec/unit/helpers/global_helpers_spec.rb +111 -0
  334. data/spec/unit/helpers_spec.rb +86 -0
  335. data/spec/unit/models/blueprint/attributes_spec.rb +29 -0
  336. data/spec/unit/models/blueprint/dataset_spec.rb +121 -0
  337. data/spec/unit/models/blueprint/labels_spec.rb +44 -0
  338. data/spec/unit/models/blueprint/project_blueprint_spec.rb +648 -0
  339. data/spec/unit/models/blueprint/reference_spec.rb +29 -0
  340. data/spec/unit/models/blueprint/schema_builder_spec.rb +38 -0
  341. data/spec/unit/models/blueprint/to_wire_spec.rb +174 -0
  342. data/spec/unit/models/domain_spec.rb +144 -0
  343. data/spec/unit/models/execution_spec.rb +108 -0
  344. data/spec/unit/models/from_wire_spec.rb +296 -0
  345. data/spec/unit/models/invitation_spec.rb +17 -0
  346. data/spec/unit/models/membership_spec.rb +132 -0
  347. data/spec/unit/models/metadata_spec.rb +104 -0
  348. data/spec/unit/models/metric_spec.rb +117 -0
  349. data/spec/unit/models/model_spec.rb +82 -0
  350. data/spec/unit/models/params_spec.rb +118 -0
  351. data/spec/unit/models/profile_spec.rb +215 -0
  352. data/spec/unit/models/project_creator_spec.rb +127 -0
  353. data/spec/unit/models/project_role_spec.rb +94 -0
  354. data/spec/unit/models/project_spec.rb +162 -0
  355. data/spec/unit/models/report_result_data_spec.rb +199 -0
  356. data/spec/unit/models/schedule_spec.rb +418 -0
  357. data/spec/unit/models/to_manifest_spec.rb +63 -0
  358. data/spec/unit/models/unit_project_spec.rb +125 -0
  359. data/spec/unit/models/user_filters_spec.rb +95 -0
  360. data/spec/unit/models/variable_spec.rb +265 -0
  361. data/spec/unit/rest/polling_spec.rb +89 -0
  362. data/spec/unit/rest/resource_spec.rb +10 -0
  363. data/yard-server.sh +3 -0
  364. metadata +1125 -0
@@ -0,0 +1,2079 @@
1
+ {
2
+ "datasets": [
3
+ {
4
+ "type": "dataset",
5
+ "title": "stage_history",
6
+ "name": "dataset.stage_history",
7
+ "id": "dataset.stage_history",
8
+ "columns": [
9
+ {
10
+ "type": "anchor",
11
+ "id": "attr.dataset.stage_history.factsof",
12
+ "title": "Records of stage_history"
13
+ },
14
+ {
15
+ "type": "attribute",
16
+ "id": "attr.stage_history.currentstatus",
17
+ "title": "Current Stage",
18
+ "folder": null
19
+ },
20
+ {
21
+ "type": "label",
22
+ "id": "label.stage_history.currentstatus",
23
+ "reference": "attr.stage_history.currentstatus",
24
+ "title": "Current Stage",
25
+ "gd_data_type": "VARCHAR(128)",
26
+ "gd_type": "GDC.text"
27
+ },
28
+ {
29
+ "type": "fact",
30
+ "id": "fact.stage_history.stage_velocity",
31
+ "title": "Stage Velocity",
32
+ "description": "Velocity description",
33
+ "gd_data_type": "DECIMAL(12,2)"
34
+ },
35
+ {
36
+ "type": "fact",
37
+ "id": "fact.stage_history.stage_duration",
38
+ "title": "Stage Duration",
39
+ "gd_data_type": "DECIMAL(12,2)"
40
+ },
41
+ {
42
+ "type": "date_fact",
43
+ "id": "dt.stage_history.opp_created_date",
44
+ "title": "Opp. Created (Date) for Stage History",
45
+ "gd_data_type": "INT"
46
+ },
47
+ {
48
+ "type": "date_fact",
49
+ "id": "dt.stage_history.opp_close_date",
50
+ "title": "Opp. Close (Date) for Stage History",
51
+ "gd_data_type": "INT"
52
+ },
53
+ {
54
+ "type": "reference",
55
+ "dataset": "dataset.account"
56
+ },
57
+ {
58
+ "type": "reference",
59
+ "dataset": "dataset.product"
60
+ },
61
+ {
62
+ "type": "reference",
63
+ "dataset": "dataset.stage"
64
+ },
65
+ {
66
+ "type": "reference",
67
+ "dataset": "dataset.opp_owner"
68
+ },
69
+ {
70
+ "type": "reference",
71
+ "dataset": "dataset.opportunity"
72
+ },
73
+ {
74
+ "type": "reference",
75
+ "dataset": "dataset.bookingtype"
76
+ },
77
+ {
78
+ "type": "date",
79
+ "dataset": "oppclose"
80
+ },
81
+ {
82
+ "type": "date",
83
+ "dataset": "oppcreated"
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "type": "dataset",
89
+ "title": "opp_snapshot",
90
+ "name": "dataset.opp_snapshot",
91
+ "id": "dataset.opp_snapshot",
92
+ "columns": [
93
+ {
94
+ "type": "attribute",
95
+ "id": "attr.opp_snapshot.accountstagesnapshot",
96
+ "title": "Account Stage (Snapshot)",
97
+ "folder": null
98
+ },
99
+ {
100
+ "type": "label",
101
+ "id": "label.opp_snapshot.accountstagesnapshot",
102
+ "reference": "attr.opp_snapshot.accountstagesnapshot",
103
+ "title": "Account Stage (Snapshot)",
104
+ "gd_data_type": "VARCHAR(128)",
105
+ "gd_type": "GDC.text"
106
+ },
107
+ {
108
+ "type": "fact",
109
+ "id": "fact.opp_snapshot.amount",
110
+ "title": "Amount Snapshot",
111
+ "folder": "Opp. Snapshot",
112
+ "gd_data_type": "DECIMAL(12,2)"
113
+ },
114
+ {
115
+ "type": "fact",
116
+ "id": "fact.opp_snapshot.probability",
117
+ "title": "Probability Snapshot",
118
+ "folder": "Opp. Snapshot",
119
+ "gd_data_type": "DECIMAL(12,2)"
120
+ },
121
+ {
122
+ "type": "date_fact",
123
+ "id": "dt.opp_snapshot.created_date",
124
+ "title": "Opp. Created (Date) Snapshot",
125
+ "gd_data_type": "INT"
126
+ },
127
+ {
128
+ "type": "date_fact",
129
+ "id": "dt.opp_snapshot.close_date",
130
+ "title": "Opp. Close (Date) Snapshot",
131
+ "gd_data_type": "INT"
132
+ },
133
+ {
134
+ "type": "date_fact",
135
+ "id": "dt.opp_snapshot.snapshot_date",
136
+ "title": "Opp. Snapshot (Date)",
137
+ "gd_data_type": "INT"
138
+ },
139
+ {
140
+ "type": "fact",
141
+ "id": "fact.opp_snapshot.mrr",
142
+ "title": "Straight Line MRR (Snapshot)",
143
+ "gd_data_type": "DECIMAL(12,2)"
144
+ },
145
+ {
146
+ "type": "fact",
147
+ "id": "fact.opp_snapshot.distributedmrr",
148
+ "title": "Ending MRR (Snapshot)",
149
+ "gd_data_type": "DECIMAL(12,2)"
150
+ },
151
+ {
152
+ "type": "date_fact",
153
+ "id": "dt.opp_snapshot.effectivecontractstart",
154
+ "title": "Opp. Contract Start (Date) Snapshot",
155
+ "gd_data_type": "INT"
156
+ },
157
+ {
158
+ "type": "date_fact",
159
+ "id": "dt.opp_snapshot.effectivecontractend",
160
+ "title": "Opp. Contract End (Date) Snapshot",
161
+ "gd_data_type": "INT"
162
+ },
163
+ {
164
+ "type": "reference",
165
+ "dataset": "dataset.sdrowner"
166
+ },
167
+ {
168
+ "type": "reference",
169
+ "dataset": "dataset.leadsourceoriginal"
170
+ },
171
+ {
172
+ "type": "reference",
173
+ "dataset": "dataset.account"
174
+ },
175
+ {
176
+ "type": "reference",
177
+ "dataset": "dataset.amounttype"
178
+ },
179
+ {
180
+ "type": "reference",
181
+ "dataset": "dataset.product"
182
+ },
183
+ {
184
+ "type": "reference",
185
+ "dataset": "dataset.sourcingorigin"
186
+ },
187
+ {
188
+ "type": "reference",
189
+ "dataset": "dataset.leadsource"
190
+ },
191
+ {
192
+ "type": "reference",
193
+ "dataset": "dataset.productline"
194
+ },
195
+ {
196
+ "type": "reference",
197
+ "dataset": "dataset.stage"
198
+ },
199
+ {
200
+ "type": "reference",
201
+ "dataset": "dataset.opp_owner"
202
+ },
203
+ {
204
+ "type": "reference",
205
+ "dataset": "dataset.opportunity"
206
+ },
207
+ {
208
+ "type": "reference",
209
+ "dataset": "dataset.bookingtype"
210
+ },
211
+ {
212
+ "type": "reference",
213
+ "dataset": "dataset.forecast"
214
+ },
215
+ {
216
+ "type": "date",
217
+ "dataset": "leadcreate"
218
+ },
219
+ {
220
+ "type": "date",
221
+ "dataset": "snapshot"
222
+ },
223
+ {
224
+ "type": "date",
225
+ "dataset": "oppclose"
226
+ },
227
+ {
228
+ "type": "date",
229
+ "dataset": "oppcreated"
230
+ },
231
+ {
232
+ "type": "date",
233
+ "dataset": "stage1plus"
234
+ },
235
+ {
236
+ "type": "date",
237
+ "dataset": "mqldate"
238
+ },
239
+ {
240
+ "type": "date",
241
+ "dataset": "effectivecontractstart"
242
+ },
243
+ {
244
+ "type": "date",
245
+ "dataset": "effectivecontractend"
246
+ }
247
+ ]
248
+ },
249
+ {
250
+ "type": "dataset",
251
+ "title": "Opp_changes",
252
+ "name": "dataset.opp_changes",
253
+ "id": "dataset.opp_changes",
254
+ "columns": [
255
+ {
256
+ "type": "attribute",
257
+ "id": "attr.opp_changes.interval_changes",
258
+ "title": "Interval_Changes",
259
+ "folder": null
260
+ },
261
+ {
262
+ "type": "label",
263
+ "id": "label.opp_changes.interval_changes",
264
+ "reference": "attr.opp_changes.interval_changes",
265
+ "title": "Interval_Changes",
266
+ "gd_data_type": "VARCHAR(128)",
267
+ "gd_type": "GDC.text"
268
+ },
269
+ {
270
+ "type": "attribute",
271
+ "id": "attr.opp_changes.previous_stage",
272
+ "title": "Previous_Stage",
273
+ "folder": null
274
+ },
275
+ {
276
+ "type": "label",
277
+ "id": "label.opp_changes.previous_stage",
278
+ "reference": "attr.opp_changes.previous_stage",
279
+ "title": "Previous_Stage",
280
+ "gd_data_type": "VARCHAR(128)",
281
+ "gd_type": "GDC.text"
282
+ },
283
+ {
284
+ "type": "fact",
285
+ "id": "fact.opp_changes.amount_changed",
286
+ "title": "amount_changed_expected",
287
+ "gd_data_type": "DECIMAL(12,2)"
288
+ },
289
+ {
290
+ "type": "fact",
291
+ "id": "fact.opp_changes.amount_changed_current_q",
292
+ "title": "amount_changed_current_q_expected",
293
+ "gd_data_type": "DECIMAL(12,2)"
294
+ },
295
+ {
296
+ "type": "fact",
297
+ "id": "fact.opp_changes.previous_amount",
298
+ "title": "previous_amount",
299
+ "gd_data_type": "DECIMAL(12,2)"
300
+ },
301
+ {
302
+ "type": "fact",
303
+ "id": "fact.opp_changes.new_amount",
304
+ "title": "new_amount",
305
+ "gd_data_type": "DECIMAL(12,2)"
306
+ },
307
+ {
308
+ "type": "fact",
309
+ "id": "fact.opp_changes.amount_changed_potential",
310
+ "title": "amount_changed_potential",
311
+ "gd_data_type": "DECIMAL(12,2)"
312
+ },
313
+ {
314
+ "type": "fact",
315
+ "id": "fact.opp_changes.amount_changed_current_q_potential",
316
+ "title": "amount_changed_current_q_potential",
317
+ "gd_data_type": "DECIMAL(12,2)"
318
+ },
319
+ {
320
+ "type": "reference",
321
+ "dataset": "dataset.account"
322
+ },
323
+ {
324
+ "type": "reference",
325
+ "dataset": "dataset.amounttype"
326
+ },
327
+ {
328
+ "type": "reference",
329
+ "dataset": "dataset.product"
330
+ },
331
+ {
332
+ "type": "reference",
333
+ "dataset": "dataset.productline"
334
+ },
335
+ {
336
+ "type": "reference",
337
+ "dataset": "dataset.stage"
338
+ },
339
+ {
340
+ "type": "reference",
341
+ "dataset": "dataset.opp_owner"
342
+ },
343
+ {
344
+ "type": "reference",
345
+ "dataset": "dataset.opportunity"
346
+ },
347
+ {
348
+ "type": "reference",
349
+ "dataset": "dataset.bookingtype"
350
+ },
351
+ {
352
+ "type": "date",
353
+ "dataset": "oppclose"
354
+ },
355
+ {
356
+ "type": "date",
357
+ "dataset": "previous_close_date"
358
+ }
359
+ ]
360
+ },
361
+ {
362
+ "type": "dataset",
363
+ "title": "Opportunity Benchmark",
364
+ "name": "dataset.opportunityanalysis",
365
+ "id": "dataset.opportunityanalysis",
366
+ "columns": [
367
+ {
368
+ "type": "anchor",
369
+ "id": "attr.opportunityanalysis.techoppanalysis",
370
+ "title": "Tech Opp. Analysis",
371
+ "folder": "Opportunity Benchmark"
372
+ },
373
+ {
374
+ "type": "label",
375
+ "id": "label.opportunityanalysis.techoppanalysis",
376
+ "reference": "attr.opportunityanalysis.techoppanalysis",
377
+ "title": "Tech Opp. Analysis",
378
+ "gd_data_type": "VARCHAR(128)",
379
+ "gd_type": "GDC.text"
380
+ },
381
+ {
382
+ "type": "attribute",
383
+ "id": "attr.opportunityanalysis.month",
384
+ "title": "Month",
385
+ "folder": "Opportunity Benchmark"
386
+ },
387
+ {
388
+ "type": "label",
389
+ "id": "label.opportunityanalysis.month",
390
+ "reference": "attr.opportunityanalysis.month",
391
+ "title": "Month",
392
+ "gd_data_type": "VARCHAR(128)",
393
+ "gd_type": "GDC.text"
394
+ },
395
+ {
396
+ "type": "label",
397
+ "id": "label.opportunityanalysis.month.monthsortingnew",
398
+ "reference": "attr.opportunityanalysis.month",
399
+ "title": "MonthSortingNew",
400
+ "gd_data_type": "INT",
401
+ "gd_type": "GDC.text"
402
+ },
403
+ {
404
+ "type": "attribute",
405
+ "id": "attr.opportunityanalysis.cohorttype",
406
+ "title": "Cohort Type",
407
+ "folder": "Opportunity Benchmark"
408
+ },
409
+ {
410
+ "type": "label",
411
+ "id": "label.opportunityanalysis.cohorttype",
412
+ "reference": "attr.opportunityanalysis.cohorttype",
413
+ "title": "Cohort Type",
414
+ "gd_data_type": "VARCHAR(128)",
415
+ "gd_type": "GDC.text"
416
+ },
417
+ {
418
+ "type": "fact",
419
+ "id": "fact.opportunityanalysis.buckets_to_display",
420
+ "title": "buckets_to_display",
421
+ "folder": "Opportunity Benchmark",
422
+ "gd_data_type": "DECIMAL(12,2)"
423
+ },
424
+ {
425
+ "type": "fact",
426
+ "id": "fact.opportunityanalysis.month_fact",
427
+ "title": "month_fact",
428
+ "folder": "Opportunity Benchmark",
429
+ "gd_data_type": "DECIMAL(12,2)"
430
+ },
431
+ {
432
+ "type": "reference",
433
+ "dataset": "dataset.opp_records"
434
+ },
435
+ {
436
+ "type": "reference",
437
+ "dataset": "dataset.consolidatedmarketingstatus"
438
+ }
439
+ ]
440
+ },
441
+ {
442
+ "type": "dataset",
443
+ "title": "quota",
444
+ "name": "dataset.goals",
445
+ "id": "dataset.goals",
446
+ "columns": [
447
+ {
448
+ "type": "attribute",
449
+ "id": "attr.goals.quotatype",
450
+ "title": "Quota Type",
451
+ "folder": null
452
+ },
453
+ {
454
+ "type": "label",
455
+ "id": "label.goals.quotatype",
456
+ "reference": "attr.goals.quotatype",
457
+ "title": "Quota Type",
458
+ "gd_data_type": "VARCHAR(128)",
459
+ "gd_type": "GDC.text"
460
+ },
461
+ {
462
+ "type": "fact",
463
+ "id": "fact.goals.amount",
464
+ "title": "quota amount",
465
+ "gd_data_type": "DECIMAL(12,2)"
466
+ },
467
+ {
468
+ "type": "date_fact",
469
+ "id": "dt.goals.mqldate",
470
+ "title": "MQL Date (Quota)",
471
+ "gd_data_type": "INT"
472
+ },
473
+ {
474
+ "type": "date_fact",
475
+ "id": "dt.goals.stage1plus",
476
+ "title": "SAO Date (Quota)",
477
+ "gd_data_type": "INT"
478
+ },
479
+ {
480
+ "type": "date_fact",
481
+ "id": "dt.goals.oppcreated",
482
+ "title": "Opp. Create (Quota)",
483
+ "gd_data_type": "INT"
484
+ },
485
+ {
486
+ "type": "date_fact",
487
+ "id": "dt.goals.oppclose",
488
+ "title": "Opp. Close (Quota)",
489
+ "gd_data_type": "INT"
490
+ },
491
+ {
492
+ "type": "reference",
493
+ "dataset": "dataset.sdrowner"
494
+ },
495
+ {
496
+ "type": "reference",
497
+ "dataset": "dataset.amounttype"
498
+ },
499
+ {
500
+ "type": "reference",
501
+ "dataset": "dataset.product"
502
+ },
503
+ {
504
+ "type": "reference",
505
+ "dataset": "dataset.sourcingorigin"
506
+ },
507
+ {
508
+ "type": "reference",
509
+ "dataset": "dataset.activity_owner"
510
+ },
511
+ {
512
+ "type": "reference",
513
+ "dataset": "dataset.opp_owner"
514
+ },
515
+ {
516
+ "type": "reference",
517
+ "dataset": "dataset.bookingtype"
518
+ },
519
+ {
520
+ "type": "date",
521
+ "dataset": "activity"
522
+ },
523
+ {
524
+ "type": "date",
525
+ "dataset": "oppclose"
526
+ },
527
+ {
528
+ "type": "date",
529
+ "dataset": "oppcreated"
530
+ },
531
+ {
532
+ "type": "date",
533
+ "dataset": "stage1plus"
534
+ },
535
+ {
536
+ "type": "date",
537
+ "dataset": "mqldate"
538
+ },
539
+ {
540
+ "type": "date",
541
+ "dataset": "s2o"
542
+ }
543
+ ]
544
+ },
545
+ {
546
+ "type": "dataset",
547
+ "title": "timeline",
548
+ "name": "dataset.timeline",
549
+ "id": "dataset.timeline",
550
+ "columns": [
551
+ {
552
+ "type": "date_fact",
553
+ "id": "dt.timeline.timeline",
554
+ "title": "Timeline (Date)",
555
+ "gd_data_type": "INT"
556
+ },
557
+ {
558
+ "type": "date",
559
+ "dataset": "timeline"
560
+ }
561
+ ]
562
+ },
563
+ {
564
+ "type": "dataset",
565
+ "title": "activity_monitoring",
566
+ "name": "dataset.activity_monitoring",
567
+ "id": "dataset.activity_monitoring",
568
+ "columns": [
569
+ {
570
+ "type": "date_fact",
571
+ "id": "dt.activity_monitoring.opp_created_date",
572
+ "title": "Opp. Created (Date) for Activity",
573
+ "gd_data_type": "INT"
574
+ },
575
+ {
576
+ "type": "date_fact",
577
+ "id": "dt.activity_monitoring.opp_close_date",
578
+ "title": "Opp. Close (Date) for Activity",
579
+ "gd_data_type": "INT"
580
+ },
581
+ {
582
+ "type": "date_fact",
583
+ "id": "dt.activity_monitoring.activity_date",
584
+ "title": "Activity (Date)",
585
+ "gd_data_type": "INT"
586
+ },
587
+ {
588
+ "type": "reference",
589
+ "dataset": "dataset.account"
590
+ },
591
+ {
592
+ "type": "reference",
593
+ "dataset": "dataset.product"
594
+ },
595
+ {
596
+ "type": "reference",
597
+ "dataset": "dataset.activity_owner"
598
+ },
599
+ {
600
+ "type": "reference",
601
+ "dataset": "dataset.stage"
602
+ },
603
+ {
604
+ "type": "reference",
605
+ "dataset": "dataset.opp_owner"
606
+ },
607
+ {
608
+ "type": "reference",
609
+ "dataset": "dataset.activity"
610
+ },
611
+ {
612
+ "type": "reference",
613
+ "dataset": "dataset.opportunity"
614
+ },
615
+ {
616
+ "type": "reference",
617
+ "dataset": "dataset.bookingtype"
618
+ },
619
+ {
620
+ "type": "date",
621
+ "dataset": "activity"
622
+ },
623
+ {
624
+ "type": "date",
625
+ "dataset": "oppclose"
626
+ },
627
+ {
628
+ "type": "date",
629
+ "dataset": "oppcreated"
630
+ }
631
+ ]
632
+ },
633
+ {
634
+ "type": "dataset",
635
+ "title": "opp_records",
636
+ "name": "dataset.opp_records",
637
+ "id": "dataset.opp_records",
638
+ "columns": [
639
+ {
640
+ "type": "anchor",
641
+ "id": "attr.opp_records.factsof",
642
+ "title": "Records of opp_records",
643
+ "folder": null
644
+ },
645
+ {
646
+ "type": "label",
647
+ "id": "label.opp_records.opp_records_conctn_point",
648
+ "reference": "attr.opp_records.factsof",
649
+ "title": "opp_records_conctn_point",
650
+ "gd_data_type": "VARCHAR(128)",
651
+ "gd_type": "GDC.text"
652
+ },
653
+ {
654
+ "type": "label",
655
+ "id": "label.opp_records.factsof",
656
+ "reference": "attr.opp_records.factsof",
657
+ "title": "Records of opp_records",
658
+ "gd_data_type": "VARCHAR(128)",
659
+ "gd_type": "GDC.text"
660
+ },
661
+ {
662
+ "type": "fact",
663
+ "id": "fact.opp_records.amount",
664
+ "title": "Amount",
665
+ "folder": "Opp. Records",
666
+ "gd_data_type": "DECIMAL(12,2)"
667
+ },
668
+ {
669
+ "type": "fact",
670
+ "id": "fact.opp_records.probability",
671
+ "title": "Probability",
672
+ "folder": "Opp. Records",
673
+ "gd_data_type": "DECIMAL(12,2)"
674
+ },
675
+ {
676
+ "type": "date_fact",
677
+ "id": "dt.opp_records.created_date",
678
+ "title": "Opp. Created (Date)",
679
+ "gd_data_type": "INT"
680
+ },
681
+ {
682
+ "type": "date_fact",
683
+ "id": "dt.opp_records.close_date",
684
+ "title": "Opp. Close (Date)",
685
+ "gd_data_type": "INT"
686
+ },
687
+ {
688
+ "type": "date_fact",
689
+ "id": "dt.opp_records.stage1plus",
690
+ "title": "SAO (date)",
691
+ "gd_data_type": "INT"
692
+ },
693
+ {
694
+ "type": "date_fact",
695
+ "id": "dt.opp_records.leadcreate",
696
+ "title": "Lead Created (Date)",
697
+ "gd_data_type": "INT"
698
+ },
699
+ {
700
+ "type": "date_fact",
701
+ "id": "dt.opp_records.mqldate",
702
+ "title": "MQL (Date)",
703
+ "gd_data_type": "INT"
704
+ },
705
+ {
706
+ "type": "date_fact",
707
+ "id": "dt.opp_records.firstcontactdate",
708
+ "title": "Contact (Date)",
709
+ "gd_data_type": "INT"
710
+ },
711
+ {
712
+ "type": "date_fact",
713
+ "id": "dt.opp_records.laststage0plus",
714
+ "title": "Last Stage 0 Plus",
715
+ "gd_data_type": "INT"
716
+ },
717
+ {
718
+ "type": "fact",
719
+ "id": "fact.opp_records.mrr",
720
+ "title": "Straight Line MRR",
721
+ "gd_data_type": "DECIMAL(12,2)"
722
+ },
723
+ {
724
+ "type": "fact",
725
+ "id": "fact.opp_records.distributed_mrr",
726
+ "title": "Ending MRR",
727
+ "gd_data_type": "DECIMAL(12,2)"
728
+ },
729
+ {
730
+ "type": "fact",
731
+ "id": "fact.opp_records.freemonths",
732
+ "title": "Free Months",
733
+ "gd_data_type": "DECIMAL(12,2)"
734
+ },
735
+ {
736
+ "type": "date_fact",
737
+ "id": "dt.opp_records.effectivecontractstart",
738
+ "title": "Contract Start (Date)",
739
+ "gd_data_type": "INT"
740
+ },
741
+ {
742
+ "type": "date_fact",
743
+ "id": "dt.opp_records.effectivecontractend",
744
+ "title": "Contract End (Date)",
745
+ "gd_data_type": "INT"
746
+ },
747
+ {
748
+ "type": "fact",
749
+ "id": "fact.opp_records.upsellcmrr",
750
+ "title": "Upsell CMRR",
751
+ "gd_data_type": "DECIMAL(12,2)"
752
+ },
753
+ {
754
+ "type": "fact",
755
+ "id": "fact.opp_records.downsellcmrr",
756
+ "title": "Downsell CMRR",
757
+ "gd_data_type": "DECIMAL(12,2)"
758
+ },
759
+ {
760
+ "type": "fact",
761
+ "id": "fact.opp_records.upliftcmrr",
762
+ "title": "Uplift CMRR",
763
+ "gd_data_type": "DECIMAL(12,2)"
764
+ },
765
+ {
766
+ "type": "fact",
767
+ "id": "fact.opp_records.churncmrr",
768
+ "title": "Churn CMRR",
769
+ "gd_data_type": "DECIMAL(12,2)"
770
+ },
771
+ {
772
+ "type": "date_fact",
773
+ "id": "dt.opp_records.firstmeeting",
774
+ "title": "First Meeting (Date)",
775
+ "gd_data_type": "INT"
776
+ },
777
+ {
778
+ "type": "date_fact",
779
+ "id": "dt.opp_records.s2o",
780
+ "title": "S2O (Date)",
781
+ "gd_data_type": "INT"
782
+ },
783
+ {
784
+ "type": "reference",
785
+ "dataset": "dataset.sdrowner"
786
+ },
787
+ {
788
+ "type": "reference",
789
+ "dataset": "dataset.leadsourceoriginal"
790
+ },
791
+ {
792
+ "type": "reference",
793
+ "dataset": "dataset.account"
794
+ },
795
+ {
796
+ "type": "reference",
797
+ "dataset": "dataset.amounttype"
798
+ },
799
+ {
800
+ "type": "reference",
801
+ "dataset": "dataset.product"
802
+ },
803
+ {
804
+ "type": "reference",
805
+ "dataset": "dataset.renewalstatus"
806
+ },
807
+ {
808
+ "type": "reference",
809
+ "dataset": "dataset.sourcingorigin"
810
+ },
811
+ {
812
+ "type": "reference",
813
+ "dataset": "dataset.sdrperformancestatus"
814
+ },
815
+ {
816
+ "type": "reference",
817
+ "dataset": "dataset.leadsource"
818
+ },
819
+ {
820
+ "type": "reference",
821
+ "dataset": "dataset.winlossreason"
822
+ },
823
+ {
824
+ "type": "reference",
825
+ "dataset": "dataset.productline"
826
+ },
827
+ {
828
+ "type": "reference",
829
+ "dataset": "dataset.leadchannel"
830
+ },
831
+ {
832
+ "type": "reference",
833
+ "dataset": "dataset.stage"
834
+ },
835
+ {
836
+ "type": "reference",
837
+ "dataset": "dataset.opp_owner"
838
+ },
839
+ {
840
+ "type": "reference",
841
+ "dataset": "dataset.opportunity"
842
+ },
843
+ {
844
+ "type": "reference",
845
+ "dataset": "dataset.bookingtype"
846
+ },
847
+ {
848
+ "type": "reference",
849
+ "dataset": "dataset.forecast"
850
+ },
851
+ {
852
+ "type": "date",
853
+ "dataset": "leadcreate"
854
+ },
855
+ {
856
+ "type": "date",
857
+ "dataset": "oppclose"
858
+ },
859
+ {
860
+ "type": "date",
861
+ "dataset": "oppcreated"
862
+ },
863
+ {
864
+ "type": "date",
865
+ "dataset": "stage1plus"
866
+ },
867
+ {
868
+ "type": "date",
869
+ "dataset": "firstcontactdate"
870
+ },
871
+ {
872
+ "type": "date",
873
+ "dataset": "mqldate"
874
+ },
875
+ {
876
+ "type": "date",
877
+ "dataset": "s2o"
878
+ },
879
+ {
880
+ "type": "date",
881
+ "dataset": "firstmeeting"
882
+ },
883
+ {
884
+ "type": "date",
885
+ "dataset": "effectivecontractstart"
886
+ },
887
+ {
888
+ "type": "date",
889
+ "dataset": "laststage0plus"
890
+ },
891
+ {
892
+ "type": "date",
893
+ "dataset": "effectivecontractend"
894
+ }
895
+ ]
896
+ },
897
+ {
898
+ "type": "dataset",
899
+ "title": "SDR Owner",
900
+ "name": "dataset.sdrowner",
901
+ "id": "dataset.sdrowner",
902
+ "columns": [
903
+ {
904
+ "type": "anchor",
905
+ "id": "attr.sdrowner.sdrowner",
906
+ "title": "SDR Owner",
907
+ "folder": "SDR"
908
+ },
909
+ {
910
+ "type": "label",
911
+ "id": "label.sdrowner.sdrowner",
912
+ "reference": "attr.sdrowner.sdrowner",
913
+ "title": "SDR Owner",
914
+ "gd_data_type": "VARCHAR(128)",
915
+ "gd_type": "GDC.text"
916
+ },
917
+ {
918
+ "type": "label",
919
+ "id": "label.sdrowner.sdrowner.sdrownername",
920
+ "reference": "attr.sdrowner.sdrowner",
921
+ "title": "SDR Owner Name",
922
+ "gd_data_type": "VARCHAR(128)",
923
+ "gd_type": "GDC.text"
924
+ },
925
+ {
926
+ "type": "attribute",
927
+ "id": "attr.sdrowner.sdrteam",
928
+ "title": "SDR Team",
929
+ "folder": "SDR"
930
+ },
931
+ {
932
+ "type": "label",
933
+ "id": "label.sdrowner.sdrteam",
934
+ "reference": "attr.sdrowner.sdrteam",
935
+ "title": "SDR Team",
936
+ "gd_data_type": "VARCHAR(128)",
937
+ "gd_type": "GDC.text"
938
+ }
939
+ ]
940
+ },
941
+ {
942
+ "type": "dataset",
943
+ "title": "Lead Source Original",
944
+ "name": "dataset.leadsourceoriginal",
945
+ "id": "dataset.leadsourceoriginal",
946
+ "columns": [
947
+ {
948
+ "type": "anchor",
949
+ "id": "attr.leadsourceoriginal.leadsourceoriginal",
950
+ "title": "Lead Source Original",
951
+ "folder": "Lead Sources"
952
+ },
953
+ {
954
+ "type": "label",
955
+ "id": "label.leadsourceoriginal.leadsourceoriginal",
956
+ "reference": "attr.leadsourceoriginal.leadsourceoriginal",
957
+ "title": "Lead Source Original",
958
+ "gd_data_type": "VARCHAR(128)",
959
+ "gd_type": "GDC.text"
960
+ },
961
+ {
962
+ "type": "attribute",
963
+ "id": "attr.leadsourceoriginal.leadcategory",
964
+ "title": "Lead Source Original Category",
965
+ "folder": "Lead Sources"
966
+ },
967
+ {
968
+ "type": "label",
969
+ "id": "label.leadsourceoriginal.leadcategory",
970
+ "reference": "attr.leadsourceoriginal.leadcategory",
971
+ "title": "Lead Source Original Category",
972
+ "gd_data_type": "VARCHAR(128)",
973
+ "gd_type": "GDC.text"
974
+ }
975
+ ]
976
+ },
977
+ {
978
+ "type": "dataset",
979
+ "title": "account",
980
+ "name": "dataset.account",
981
+ "id": "dataset.account",
982
+ "columns": [
983
+ {
984
+ "type": "anchor",
985
+ "id": "attr.account.id",
986
+ "title": "Account",
987
+ "folder": "Account"
988
+ },
989
+ {
990
+ "type": "label",
991
+ "id": "label.account.id.name",
992
+ "reference": "attr.account.id",
993
+ "title": "Account Name",
994
+ "gd_data_type": "VARCHAR(128)",
995
+ "gd_type": "GDC.text"
996
+ },
997
+ {
998
+ "type": "label",
999
+ "id": "label.account.id",
1000
+ "reference": "attr.account.id",
1001
+ "title": "Account",
1002
+ "gd_data_type": "VARCHAR(128)",
1003
+ "gd_type": "GDC.text"
1004
+ },
1005
+ {
1006
+ "type": "label",
1007
+ "id": "label.account.id.url",
1008
+ "reference": "attr.account.id",
1009
+ "title": "Account Url",
1010
+ "gd_data_type": "VARCHAR(128)",
1011
+ "gd_type": "GDC.link"
1012
+ },
1013
+ {
1014
+ "type": "attribute",
1015
+ "id": "attr.account.region",
1016
+ "title": "Account Region",
1017
+ "folder": "Account"
1018
+ },
1019
+ {
1020
+ "type": "label",
1021
+ "id": "label.account.region",
1022
+ "reference": "attr.account.region",
1023
+ "title": "Account Region",
1024
+ "gd_data_type": "VARCHAR(128)",
1025
+ "gd_type": "GDC.text"
1026
+ },
1027
+ {
1028
+ "type": "attribute",
1029
+ "id": "attr.account.accountstage",
1030
+ "title": "Account Stage",
1031
+ "folder": "Account"
1032
+ },
1033
+ {
1034
+ "type": "label",
1035
+ "id": "label.account.accountstage",
1036
+ "reference": "attr.account.accountstage",
1037
+ "title": "Account Stage",
1038
+ "gd_data_type": "VARCHAR(128)",
1039
+ "gd_type": "GDC.text"
1040
+ },
1041
+ {
1042
+ "type": "attribute",
1043
+ "id": "attr.account.accountownername",
1044
+ "title": "Account Owner Name",
1045
+ "folder": "Account"
1046
+ },
1047
+ {
1048
+ "type": "label",
1049
+ "id": "label.account.accountownername",
1050
+ "reference": "attr.account.accountownername",
1051
+ "title": "Account Owner Name",
1052
+ "gd_data_type": "VARCHAR(128)",
1053
+ "gd_type": "GDC.text"
1054
+ },
1055
+ {
1056
+ "type": "attribute",
1057
+ "id": "attr.account.accountindustry",
1058
+ "title": "Account Industry",
1059
+ "folder": "Account"
1060
+ },
1061
+ {
1062
+ "type": "label",
1063
+ "id": "label.account.accountindustry",
1064
+ "reference": "label.account.accountindustry",
1065
+ "title": "Account Industry",
1066
+ "gd_data_type": "VARCHAR(128)",
1067
+ "gd_type": "GDC.text"
1068
+ },
1069
+ {
1070
+ "type": "attribute",
1071
+ "id": "attr.account.accountemployeecount",
1072
+ "title": "Account Employee Count",
1073
+ "folder": "Account"
1074
+ },
1075
+ {
1076
+ "type": "label",
1077
+ "id": "label.account.accountemployeecount.employeecountsort",
1078
+ "reference": "label.account.accountindustry",
1079
+ "title": "Employee Count Sort",
1080
+ "gd_data_type": "INT",
1081
+ "gd_type": "GDC.text"
1082
+ },
1083
+ {
1084
+ "type": "label",
1085
+ "id": "label.account.accountemployeecount",
1086
+ "reference": "attr.account.accountemployeecount",
1087
+ "title": "Account Employee Count",
1088
+ "gd_data_type": "VARCHAR(128)",
1089
+ "gd_type": "GDC.text"
1090
+ },
1091
+ {
1092
+ "type": "attribute",
1093
+ "id": "attr.account.accountannualrevenue",
1094
+ "title": "Account Annual Revenue",
1095
+ "folder": "Account"
1096
+ },
1097
+ {
1098
+ "type": "label",
1099
+ "id": "label.account.accountannualrevenue",
1100
+ "reference": "attr.account.accountannualrevenue",
1101
+ "title": "Account Annual Revenue",
1102
+ "gd_data_type": "VARCHAR(128)",
1103
+ "gd_type": "GDC.text"
1104
+ }
1105
+ ]
1106
+ },
1107
+ {
1108
+ "type": "dataset",
1109
+ "title": "Revenue Type",
1110
+ "name": "dataset.amounttype",
1111
+ "id": "dataset.amounttype",
1112
+ "columns": [
1113
+ {
1114
+ "type": "anchor",
1115
+ "id": "attr.amounttype.amounttype",
1116
+ "title": "Revenue Type",
1117
+ "folder": "Revenue Type"
1118
+ },
1119
+ {
1120
+ "type": "label",
1121
+ "id": "label.amounttype.amounttype",
1122
+ "reference": "attr.amounttype.amounttype",
1123
+ "title": "Revenue Type",
1124
+ "gd_data_type": "VARCHAR(128)",
1125
+ "gd_type": "GDC.text"
1126
+ }
1127
+ ]
1128
+ },
1129
+ {
1130
+ "type": "dataset",
1131
+ "title": "product",
1132
+ "name": "dataset.product",
1133
+ "id": "dataset.product",
1134
+ "columns": [
1135
+ {
1136
+ "type": "anchor",
1137
+ "id": "attr.product.id",
1138
+ "title": "Product",
1139
+ "folder": "Product"
1140
+ },
1141
+ {
1142
+ "type": "label",
1143
+ "id": "label.product.id.name",
1144
+ "reference": "attr.product.id",
1145
+ "title": "Product Name",
1146
+ "gd_data_type": "VARCHAR(128)",
1147
+ "gd_type": "GDC.text"
1148
+ },
1149
+ {
1150
+ "type": "label",
1151
+ "id": "label.product.id",
1152
+ "reference": "attr.product.id",
1153
+ "title": "Product",
1154
+ "gd_data_type": "VARCHAR(128)",
1155
+ "gd_type": "GDC.text"
1156
+ },
1157
+ {
1158
+ "type": "attribute",
1159
+ "id": "attr.product.product_type",
1160
+ "title": "Product Type",
1161
+ "folder": "Product"
1162
+ },
1163
+ {
1164
+ "type": "label",
1165
+ "id": "label.product.product_type",
1166
+ "reference": "attr.product.product_type",
1167
+ "title": "Product Type",
1168
+ "gd_data_type": "VARCHAR(128)",
1169
+ "gd_type": "GDC.text"
1170
+ }
1171
+ ]
1172
+ },
1173
+ {
1174
+ "type": "dataset",
1175
+ "title": "Renewal Status",
1176
+ "name": "dataset.renewalstatus",
1177
+ "id": "dataset.renewalstatus",
1178
+ "columns": [
1179
+ {
1180
+ "type": "anchor",
1181
+ "id": "attr.renewalstatus.renewalstatus",
1182
+ "title": "Renewal Status",
1183
+ "folder": null
1184
+ },
1185
+ {
1186
+ "type": "label",
1187
+ "id": "label.renewalstatus.renewalstatus",
1188
+ "reference": "attr.renewalstatus.renewalstatus",
1189
+ "title": "Renewal Status",
1190
+ "gd_data_type": "VARCHAR(128)",
1191
+ "gd_type": "GDC.text"
1192
+ }
1193
+ ]
1194
+ },
1195
+ {
1196
+ "type": "dataset",
1197
+ "title": "Sourcing Type",
1198
+ "name": "dataset.sourcingorigin",
1199
+ "id": "dataset.sourcingorigin",
1200
+ "columns": [
1201
+ {
1202
+ "type": "anchor",
1203
+ "id": "attr.sourcingorigin.techsourcingtype",
1204
+ "title": "_Tech Sourcing Type",
1205
+ "folder": "Lead Sources"
1206
+ },
1207
+ {
1208
+ "type": "label",
1209
+ "id": "label.sourcingorigin.techsourcingtype",
1210
+ "reference": "attr.sourcingorigin.techsourcingtype",
1211
+ "title": "_Tech Sourcing Type",
1212
+ "gd_data_type": "VARCHAR(128)",
1213
+ "gd_type": "GDC.text"
1214
+ },
1215
+ {
1216
+ "type": "attribute",
1217
+ "id": "attr.sourcingorigin.sourcingtype",
1218
+ "title": "Sourcing Type",
1219
+ "folder": "Lead Sources"
1220
+ },
1221
+ {
1222
+ "type": "label",
1223
+ "id": "label.sourcingorigin.sourcingtype",
1224
+ "reference": "attr.sourcingorigin.sourcingtype",
1225
+ "title": "Sourcing Type",
1226
+ "gd_data_type": "VARCHAR(128)",
1227
+ "gd_type": "GDC.text"
1228
+ },
1229
+ {
1230
+ "type": "attribute",
1231
+ "id": "attr.sourcingorigin.sourcingtypechannel",
1232
+ "title": "Sourcing Type Channel",
1233
+ "folder": "Lead Sources"
1234
+ },
1235
+ {
1236
+ "type": "label",
1237
+ "id": "label.sourcingorigin.sourcingtypechannel",
1238
+ "reference": "attr.sourcingorigin.sourcingtypechannel",
1239
+ "title": "Sourcing Type Channel",
1240
+ "gd_data_type": "VARCHAR(128)",
1241
+ "gd_type": "GDC.text"
1242
+ },
1243
+ {
1244
+ "type": "attribute",
1245
+ "id": "attr.sourcingorigin.sourcingtypeteam",
1246
+ "title": "Sourcing Type Team",
1247
+ "folder": "Lead Sources"
1248
+ },
1249
+ {
1250
+ "type": "label",
1251
+ "id": "label.sourcingorigin.sourcingtypeteam.sourcingtypeteamname",
1252
+ "reference": "attr.sourcingorigin.sourcingtypeteam",
1253
+ "title": "Sourcing Type Team Name",
1254
+ "gd_data_type": "VARCHAR(128)",
1255
+ "gd_type": "GDC.text"
1256
+ },
1257
+ {
1258
+ "type": "label",
1259
+ "id": "label.sourcingorigin.sourcingtypeteam",
1260
+ "reference": "attr.sourcingorigin.sourcingtypeteam",
1261
+ "title": "Sourcing Type Team",
1262
+ "gd_data_type": "VARCHAR(128)",
1263
+ "gd_type": "GDC.text"
1264
+ }
1265
+ ]
1266
+ },
1267
+ {
1268
+ "type": "dataset",
1269
+ "title": "SDR Performance Status",
1270
+ "name": "dataset.sdrperformancestatus",
1271
+ "id": "dataset.sdrperformancestatus",
1272
+ "columns": [
1273
+ {
1274
+ "type": "anchor",
1275
+ "id": "attr.sdrperformancestatus.sdrperformancestatus",
1276
+ "title": "SDR Performance Status",
1277
+ "folder": null
1278
+ },
1279
+ {
1280
+ "type": "label",
1281
+ "id": "label.sdrperformancestatus.sdrperformancestatus",
1282
+ "reference": "attr.sdrperformancestatus.sdrperformancestatus",
1283
+ "title": "SDR Performance Status",
1284
+ "gd_data_type": "VARCHAR(128)",
1285
+ "gd_type": "GDC.text"
1286
+ }
1287
+ ]
1288
+ },
1289
+ {
1290
+ "type": "dataset",
1291
+ "title": "Consolidated Marketing Status",
1292
+ "name": "dataset.consolidatedmarketingstatus",
1293
+ "id": "dataset.consolidatedmarketingstatus",
1294
+ "columns": [
1295
+ {
1296
+ "type": "anchor",
1297
+ "id": "attr.consolidatedmarketingstatus.consolidatedmarketingstatus",
1298
+ "title": "_TECH Consolidated Marketing Status (Conctn_Point)",
1299
+ "folder": "Consolidated Marketing Status"
1300
+ },
1301
+ {
1302
+ "type": "label",
1303
+ "id": "label.consolidatedmarketingstatus.consolidatedmarketingstatus",
1304
+ "reference": "attr.consolidatedmarketingstatus.consolidatedmarketingstatus",
1305
+ "title": "_TECH Consolidated Marketing Status (Conctn_Point)",
1306
+ "gd_data_type": "VARCHAR(128)",
1307
+ "gd_type": "GDC.text"
1308
+ },
1309
+ {
1310
+ "type": "label",
1311
+ "id": "label.consolidatedmarketingstatus.consolidatedmarketingstatus.mktgstatussorting",
1312
+ "reference": "attr.consolidatedmarketingstatus.consolidatedmarketingstatus",
1313
+ "title": "_Mktg Status Sorting",
1314
+ "gd_data_type": "INT",
1315
+ "gd_type": "GDC.text"
1316
+ },
1317
+ {
1318
+ "type": "attribute",
1319
+ "id": "attr.consolidatedmarketingstatus.detailedmarketingstatuslvl1",
1320
+ "title": "Detailed Marketing Status (Lvl1)",
1321
+ "folder": "Consolidated Marketing Status"
1322
+ },
1323
+ {
1324
+ "type": "label",
1325
+ "id": "label.consolidatedmarketingstatus.detailedmarketingstatuslvl1",
1326
+ "reference": "attr.consolidatedmarketingstatus.detailedmarketingstatuslvl1",
1327
+ "title": "Detailed Marketing Status (Lvl1)",
1328
+ "gd_data_type": "VARCHAR(128)",
1329
+ "gd_type": "GDC.text"
1330
+ },
1331
+ {
1332
+ "type": "label",
1333
+ "id": "label.consolidatedmarketingstatus.consolidatedmarketingstatus1.ordersort1",
1334
+ "reference": "attr.consolidatedmarketingstatus.detailedmarketingstatuslvl1",
1335
+ "title": "_Order Sort",
1336
+ "gd_data_type": "INT",
1337
+ "gd_type": "GDC.text"
1338
+ },
1339
+ {
1340
+ "type": "attribute",
1341
+ "id": "attr.consolidatedmarketingstatus.consolidatedmarketingstatus1",
1342
+ "title": "Consolidated Marketing Status",
1343
+ "folder": "Consolidated Marketing Status"
1344
+ },
1345
+ {
1346
+ "type": "label",
1347
+ "id": "label.consolidatedmarketingstatus.consolidatedmarketingstatus1",
1348
+ "reference": "attr.consolidatedmarketingstatus.consolidatedmarketingstatus1",
1349
+ "title": "Consolidated Marketing Status",
1350
+ "gd_data_type": "VARCHAR(128)",
1351
+ "gd_type": "GDC.text"
1352
+ },
1353
+ {
1354
+ "type": "label",
1355
+ "id": "label.consolidatedmarketingstatus.consolidatedmarketingstatus1.ordersort2",
1356
+ "reference": "attr.consolidatedmarketingstatus.consolidatedmarketingstatus1",
1357
+ "title": "Order Sort 2",
1358
+ "gd_data_type": "INT",
1359
+ "gd_type": "GDC.text"
1360
+ },
1361
+ {
1362
+ "type": "attribute",
1363
+ "id": "attr.consolidatedmarketingstatus.consolidatedsqltos2o",
1364
+ "title": "Consolidated Status SQL to S2O",
1365
+ "folder": "Consolidated Marketing Status"
1366
+ },
1367
+ {
1368
+ "type": "label",
1369
+ "id": "label.consolidatedmarketingstatus.consolidatedsqltos2o",
1370
+ "reference": "attr.consolidatedmarketingstatus.consolidatedsqltos2o",
1371
+ "title": "Consolidated Status SQL to S2O",
1372
+ "gd_data_type": "VARCHAR(128)",
1373
+ "gd_type": "GDC.text"
1374
+ },
1375
+ {
1376
+ "type": "label",
1377
+ "id": "label.consolidatedmarketingstatus.consolidatedsqltos2o.ordersortsqltos2o",
1378
+ "reference": "attr.consolidatedmarketingstatus.consolidatedsqltos2o",
1379
+ "title": "Order Sort SQL to S2O",
1380
+ "gd_data_type": "VARCHAR(128)",
1381
+ "gd_type": "GDC.text"
1382
+ }
1383
+ ]
1384
+ },
1385
+ {
1386
+ "type": "dataset",
1387
+ "title": "activity_owner",
1388
+ "name": "dataset.activity_owner",
1389
+ "id": "dataset.activity_owner",
1390
+ "columns": [
1391
+ {
1392
+ "type": "anchor",
1393
+ "id": "attr.activity_owner.id",
1394
+ "title": "Act. Owner",
1395
+ "folder": "Act. Owner"
1396
+ },
1397
+ {
1398
+ "type": "label",
1399
+ "id": "label.activity_owner.id.name",
1400
+ "reference": "attr.activity_owner.id",
1401
+ "title": "Act. Owner Name",
1402
+ "gd_data_type": "VARCHAR(128)",
1403
+ "gd_type": "GDC.text"
1404
+ },
1405
+ {
1406
+ "type": "label",
1407
+ "id": "label.activity_owner.id",
1408
+ "reference": "attr.activity_owner.id",
1409
+ "title": "Act. Owner",
1410
+ "gd_data_type": "VARCHAR(128)",
1411
+ "gd_type": "GDC.text"
1412
+ },
1413
+ {
1414
+ "type": "label",
1415
+ "id": "label.activity_owner.id.url",
1416
+ "reference": "attr.activity_owner.id",
1417
+ "title": "Act. Owner Url",
1418
+ "gd_data_type": "VARCHAR(128)",
1419
+ "gd_type": "GDC.link"
1420
+ },
1421
+ {
1422
+ "type": "attribute",
1423
+ "id": "attr.activity_owner.region",
1424
+ "title": "Act. Owner Region",
1425
+ "folder": "Act. Owner"
1426
+ },
1427
+ {
1428
+ "type": "label",
1429
+ "id": "label.activity_owner.region",
1430
+ "reference": "attr.activity_owner.region",
1431
+ "title": "Act. Owner Region",
1432
+ "gd_data_type": "VARCHAR(128)",
1433
+ "gd_type": "GDC.text"
1434
+ },
1435
+ {
1436
+ "type": "attribute",
1437
+ "id": "attr.activity_owner.department",
1438
+ "title": "Act. Owner Department",
1439
+ "folder": "Act. Owner"
1440
+ },
1441
+ {
1442
+ "type": "label",
1443
+ "id": "label.activity_owner.department",
1444
+ "reference": "attr.activity_owner.department",
1445
+ "title": "Act. Owner Department",
1446
+ "gd_data_type": "VARCHAR(128)",
1447
+ "gd_type": "GDC.text"
1448
+ },
1449
+ {
1450
+ "type": "attribute",
1451
+ "id": "attr.activity_owner.is_sdr",
1452
+ "title": "is_sdr",
1453
+ "folder": "Act. Owner"
1454
+ },
1455
+ {
1456
+ "type": "label",
1457
+ "id": "label.activity_owner.is_sdr",
1458
+ "reference": "attr.activity_owner.is_sdr",
1459
+ "title": "is_sdr",
1460
+ "gd_data_type": "VARCHAR(128)",
1461
+ "gd_type": "GDC.text"
1462
+ }
1463
+ ]
1464
+ },
1465
+ {
1466
+ "type": "dataset",
1467
+ "title": "Lead Source",
1468
+ "name": "dataset.leadsource",
1469
+ "id": "dataset.leadsource",
1470
+ "columns": [
1471
+ {
1472
+ "type": "anchor",
1473
+ "id": "attr.leadsource.leadsource",
1474
+ "title": "Lead Source",
1475
+ "folder": "Lead Sources"
1476
+ },
1477
+ {
1478
+ "type": "label",
1479
+ "id": "label.leadsource.leadsource",
1480
+ "attribute": "attr.leadsource.leadsource",
1481
+ "title": "Lead Source",
1482
+ "gd_data_type": "VARCHAR(128)",
1483
+ "gd_type": "GDC.text"
1484
+ }
1485
+ ]
1486
+ },
1487
+ {
1488
+ "type": "dataset",
1489
+ "title": "Win/Loss Reason",
1490
+ "name": "dataset.winlossreason",
1491
+ "id": "dataset.winlossreason",
1492
+ "columns": [
1493
+ {
1494
+ "type": "anchor",
1495
+ "id": "attr.winlossreason.winlossreason",
1496
+ "title": "_Tech Win/Loss Reason",
1497
+ "folder": "Win/Loss Reason"
1498
+ },
1499
+ {
1500
+ "type": "label",
1501
+ "id": "label.winlossreason.winlossreason",
1502
+ "reference": "attr.winlossreason.winlossreason",
1503
+ "title": "_Tech Win/Loss Reason",
1504
+ "gd_data_type": "VARCHAR(128)",
1505
+ "gd_type": "GDC.text"
1506
+ },
1507
+ {
1508
+ "type": "attribute",
1509
+ "id": "attr.winlossreason.winlossreason1",
1510
+ "title": "Win/Loss Reason",
1511
+ "folder": "Win/Loss Reason"
1512
+ },
1513
+ {
1514
+ "type": "label",
1515
+ "id": "label.winlossreason.winlossreason1",
1516
+ "reference": "attr.winlossreason.winlossreason1",
1517
+ "title": "Win/Loss Reason",
1518
+ "gd_data_type": "VARCHAR(128)",
1519
+ "gd_type": "GDC.text"
1520
+ },
1521
+ {
1522
+ "type": "attribute",
1523
+ "id": "attr.winlossreason.secondarywinlossreason",
1524
+ "title": "Secondary Win/Loss Reason",
1525
+ "folder": "Win/Loss Reason"
1526
+ },
1527
+ {
1528
+ "type": "label",
1529
+ "id": "label.winlossreason.secondarywinlossreason",
1530
+ "reference": "attr.winlossreason.secondarywinlossreason",
1531
+ "title": "Secondary Win/Loss Reason",
1532
+ "gd_data_type": "VARCHAR(128)",
1533
+ "gd_type": "GDC.text"
1534
+ }
1535
+ ]
1536
+ },
1537
+ {
1538
+ "type": "dataset",
1539
+ "title": "Product Line",
1540
+ "name": "dataset.productline",
1541
+ "id": "dataset.productline",
1542
+ "columns": [
1543
+ {
1544
+ "type": "anchor",
1545
+ "id": "attr.productline.productline",
1546
+ "title": "_Product Line (ID)",
1547
+ "folder": null
1548
+ },
1549
+ {
1550
+ "type": "label",
1551
+ "id": "label.productline.productline",
1552
+ "reference": "attr.productline.productline",
1553
+ "title": "_Product Line (ID)",
1554
+ "gd_data_type": "VARCHAR(128)",
1555
+ "gd_type": "GDC.text"
1556
+ },
1557
+ {
1558
+ "type": "attribute",
1559
+ "id": "attr.productline.productline1",
1560
+ "title": "Product Line",
1561
+ "folder": "Product"
1562
+ },
1563
+ {
1564
+ "type": "label",
1565
+ "id": "label.productline.productline1",
1566
+ "reference": "attr.productline.productline1",
1567
+ "title": "Product Line",
1568
+ "gd_data_type": "VARCHAR(128)",
1569
+ "gd_type": "GDC.text"
1570
+ },
1571
+ {
1572
+ "type": "attribute",
1573
+ "id": "attr.productline.prod",
1574
+ "title": "Primary PL Solution",
1575
+ "folder": "Product"
1576
+ },
1577
+ {
1578
+ "type": "label",
1579
+ "id": "label.productline.prod",
1580
+ "reference": "attr.productline.prod",
1581
+ "title": "Primary PL Solution",
1582
+ "gd_data_type": "VARCHAR(128)",
1583
+ "gd_type": "GDC.text"
1584
+ },
1585
+ {
1586
+ "type": "attribute",
1587
+ "id": "attr.productline.productorspecificsolution",
1588
+ "title": "Product or Specific Solution",
1589
+ "folder": "Product"
1590
+ },
1591
+ {
1592
+ "type": "label",
1593
+ "id": "label.productline.productorspecificsolution",
1594
+ "reference": "attr.productline.productorspecificsolution",
1595
+ "title": "Product or Specific Solution",
1596
+ "gd_data_type": "VARCHAR(128)",
1597
+ "gd_type": "GDC.text"
1598
+ }
1599
+ ]
1600
+ },
1601
+ {
1602
+ "type": "dataset",
1603
+ "title": "Lead Channel",
1604
+ "name": "dataset.leadchannel",
1605
+ "id": "dataset.leadchannel",
1606
+ "columns": [
1607
+ {
1608
+ "type": "anchor",
1609
+ "id": "attr.leadchannel.leadchannel",
1610
+ "title": "Lead Channel",
1611
+ "folder": null
1612
+ },
1613
+ {
1614
+ "type": "label",
1615
+ "id": "label.leadchannel.leadchannel",
1616
+ "reference": "attr.leadchannel.leadchannel",
1617
+ "title": "Lead Channel",
1618
+ "gd_data_type": "VARCHAR(128)",
1619
+ "gd_type": "GDC.text"
1620
+ }
1621
+ ]
1622
+ },
1623
+ {
1624
+ "type": "dataset",
1625
+ "title": "stage",
1626
+ "name": "dataset.stage",
1627
+ "id": "dataset.stage",
1628
+ "columns": [
1629
+ {
1630
+ "type": "anchor",
1631
+ "id": "attr.stage.id",
1632
+ "title": "Stage",
1633
+ "folder": "Stage"
1634
+ },
1635
+ {
1636
+ "type": "label",
1637
+ "id": "label.stage.id.name",
1638
+ "reference": "attr.stage.id",
1639
+ "title": "Stage Name",
1640
+ "gd_data_type": "VARCHAR(128)",
1641
+ "gd_type": "GDC.text"
1642
+ },
1643
+ {
1644
+ "type": "label",
1645
+ "id": "label.stage.id.order",
1646
+ "reference": "attr.stage.id",
1647
+ "title": "Order",
1648
+ "gd_data_type": "INT",
1649
+ "gd_type": "GDC.text"
1650
+ },
1651
+ {
1652
+ "type": "label",
1653
+ "id": "label.stage.id",
1654
+ "reference": "attr.stage.id",
1655
+ "title": "Stage",
1656
+ "gd_data_type": "VARCHAR(128)",
1657
+ "gd_type": "GDC.text"
1658
+ },
1659
+ {
1660
+ "type": "attribute",
1661
+ "id": "attr.stage.is_won",
1662
+ "title": "Is Won?",
1663
+ "folder": "Stage"
1664
+ },
1665
+ {
1666
+ "type": "label",
1667
+ "id": "label.stage.is_won",
1668
+ "reference": "attr.stage.is_won",
1669
+ "title": "Is Won?",
1670
+ "gd_data_type": "VARCHAR(128)",
1671
+ "gd_type": "GDC.text"
1672
+ },
1673
+ {
1674
+ "type": "attribute",
1675
+ "id": "attr.stage.status",
1676
+ "title": "Status",
1677
+ "folder": "Stage"
1678
+ },
1679
+ {
1680
+ "type": "label",
1681
+ "id": "label.stage.status",
1682
+ "reference": "attr.stage.status",
1683
+ "title": "Status",
1684
+ "gd_data_type": "VARCHAR(128)",
1685
+ "gd_type": "GDC.text"
1686
+ },
1687
+ {
1688
+ "type": "attribute",
1689
+ "id": "attr.stage.is_active",
1690
+ "title": "Is Active?",
1691
+ "folder": "Stage"
1692
+ },
1693
+ {
1694
+ "type": "label",
1695
+ "id": "label.stage.is_active",
1696
+ "reference": "attr.stage.is_active",
1697
+ "title": "Is Active?",
1698
+ "gd_data_type": "VARCHAR(128)",
1699
+ "gd_type": "GDC.text"
1700
+ },
1701
+ {
1702
+ "type": "attribute",
1703
+ "id": "attr.stage.is_closed",
1704
+ "title": "Is Closed?",
1705
+ "folder": "Stage"
1706
+ },
1707
+ {
1708
+ "type": "label",
1709
+ "id": "label.stage.is_closed",
1710
+ "reference": "attr.stage.is_closed",
1711
+ "title": "Is Closed?",
1712
+ "gd_data_type": "VARCHAR(128)",
1713
+ "gd_type": "GDC.text"
1714
+ },
1715
+ {
1716
+ "type": "attribute",
1717
+ "id": "attr.stage.issao",
1718
+ "title": "Is SAO?",
1719
+ "folder": "Stage",
1720
+ "id": "label.stage.issao"
1721
+ },
1722
+ {
1723
+ "type": "label",
1724
+ "id": "label.stage.issao",
1725
+ "reference": "attr.stage.issao",
1726
+ "title": "Is SAO?",
1727
+ "gd_data_type": "VARCHAR(128)",
1728
+ "gd_type": "GDC.text"
1729
+ },
1730
+ {
1731
+ "type": "attribute",
1732
+ "id": "attr.stage.amconsolidatedstage",
1733
+ "title": "AM Consolidated Stage",
1734
+ "folder": "Stage"
1735
+ },
1736
+ {
1737
+ "type": "label",
1738
+ "id": "label.stage.amconsolidatedstage",
1739
+ "reference": "attr.stage.amconsolidatedstage",
1740
+ "title": "AM Consolidated Stage",
1741
+ "gd_data_type": "VARCHAR(128)",
1742
+ "gd_type": "GDC.text"
1743
+ },
1744
+ {
1745
+ "type": "label",
1746
+ "id": "label.stage.amconsolidatedstage.amstageorder",
1747
+ "reference": "attr.stage.amconsolidatedstage",
1748
+ "title": "_AM Stage Order",
1749
+ "gd_data_type": "VARCHAR(128)",
1750
+ "gd_type": "GDC.text"
1751
+ }
1752
+ ]
1753
+ },
1754
+ {
1755
+ "type": "dataset",
1756
+ "title": "opp_owner",
1757
+ "name": "dataset.opp_owner",
1758
+ "id": "dataset.opp_owner",
1759
+ "columns": [
1760
+ {
1761
+ "type": "anchor",
1762
+ "id": "attr.opp_owner.id",
1763
+ "title": "Opp. Owner",
1764
+ "folder": "Opp. Owner"
1765
+ },
1766
+ {
1767
+ "type": "label",
1768
+ "id": "label.opp_owner.id.name",
1769
+ "reference": "attr.opp_owner.id",
1770
+ "title": "Opp. Owner Name",
1771
+ "gd_data_type": "VARCHAR(128)",
1772
+ "gd_type": "GDC.text"
1773
+ },
1774
+ {
1775
+ "type": "label",
1776
+ "id": "label.opp_owner.id",
1777
+ "reference": "attr.opp_owner.id",
1778
+ "title": "Opp. Owner",
1779
+ "gd_data_type": "VARCHAR(128)",
1780
+ "gd_type": "GDC.text"
1781
+ },
1782
+ {
1783
+ "type": "label",
1784
+ "id": "label.opp_owner.id.oppownerpicture",
1785
+ "reference": "attr.opp_owner.id",
1786
+ "title": "Opp. Owner Picture",
1787
+ "gd_data_type": "VARCHAR(128)",
1788
+ "gd_type": "GDC.text"
1789
+ },
1790
+ {
1791
+ "type": "label",
1792
+ "id": "label.opp_owner.id.url",
1793
+ "reference": "attr.opp_owner.id",
1794
+ "title": "Opp. Owner Url",
1795
+ "gd_data_type": "VARCHAR(128)",
1796
+ "gd_type": "GDC.link"
1797
+ },
1798
+ {
1799
+ "type": "attribute",
1800
+ "id": "attr.opp_owner.region",
1801
+ "title": "Opp. Owner Region",
1802
+ "folder": "Opp. Owner"
1803
+ },
1804
+ {
1805
+ "type": "label",
1806
+ "id": "label.opp_owner.region",
1807
+ "reference": "attr.opp_owner.region",
1808
+ "title": "Opp. Owner Region",
1809
+ "gd_data_type": "VARCHAR(128)",
1810
+ "gd_type": "GDC.text"
1811
+ },
1812
+ {
1813
+ "type": "attribute",
1814
+ "id": "attr.opp_owner.department",
1815
+ "title": "Opp. Owner Department",
1816
+ "folder": "Opp. Owner"
1817
+ },
1818
+ {
1819
+ "type": "label",
1820
+ "id": "label.opp_owner.department",
1821
+ "reference": "attr.opp_owner.department",
1822
+ "title": "Opp. Owner Department",
1823
+ "gd_data_type": "VARCHAR(128)",
1824
+ "gd_type": "GDC.text"
1825
+ },
1826
+ {
1827
+ "type": "date",
1828
+ "dataset": "oppownerstart"
1829
+ }
1830
+ ]
1831
+ },
1832
+ {
1833
+ "type": "dataset",
1834
+ "title": "activity",
1835
+ "name": "dataset.activity",
1836
+ "id": "dataset.activity",
1837
+ "columns": [
1838
+ {
1839
+ "type": "anchor",
1840
+ "id": "attr.activity.id",
1841
+ "title": "Activity",
1842
+ "folder": "Activity"
1843
+ },
1844
+ {
1845
+ "type": "label",
1846
+ "id": "label.activity.id.subject",
1847
+ "reference": "attr.activity.id",
1848
+ "title": "Activity Subject",
1849
+ "gd_data_type": "VARCHAR(128)",
1850
+ "gd_type": "GDC.text"
1851
+ },
1852
+ {
1853
+ "type": "label",
1854
+ "id": "label.activity.id",
1855
+ "reference": "attr.activity.id",
1856
+ "title": "Activity",
1857
+ "gd_data_type": "VARCHAR(128)",
1858
+ "gd_type": "GDC.text"
1859
+ },
1860
+ {
1861
+ "type": "label",
1862
+ "id": "label.activity.id.url",
1863
+ "reference": "attr.activity.id",
1864
+ "title": "url",
1865
+ "gd_data_type": "VARCHAR(128)",
1866
+ "gd_type": "GDC.link"
1867
+ },
1868
+ {
1869
+ "type": "attribute",
1870
+ "id": "attr.activity.status",
1871
+ "title": "Activity Status",
1872
+ "folder": "Activity"
1873
+ },
1874
+ {
1875
+ "type": "label",
1876
+ "id": "label.activity.status",
1877
+ "reference": "attr.activity.status",
1878
+ "title": "Activity Status",
1879
+ "gd_data_type": "VARCHAR(128)",
1880
+ "gd_type": "GDC.text"
1881
+ },
1882
+ {
1883
+ "type": "attribute",
1884
+ "id": "attr.activity.type",
1885
+ "title": "Activity Type",
1886
+ "folder": "Activity"
1887
+ },
1888
+ {
1889
+ "type": "label",
1890
+ "id": "label.activity.type",
1891
+ "reference": "attr.activity.type",
1892
+ "title": "Activity Type",
1893
+ "gd_data_type": "VARCHAR(128)",
1894
+ "gd_type": "GDC.text"
1895
+ }
1896
+ ]
1897
+ },
1898
+ {
1899
+ "type": "dataset",
1900
+ "title": "opportunity",
1901
+ "name": "dataset.opportunity",
1902
+ "id": "dataset.opportunity",
1903
+ "columns": [
1904
+ {
1905
+ "type": "anchor",
1906
+ "id": "attr.opportunity.id",
1907
+ "title": "Opportunity",
1908
+ "folder": "Opportunity"
1909
+ },
1910
+ {
1911
+ "type": "label",
1912
+ "id": "label.opportunity.id.name",
1913
+ "reference": "attr.opportunity.id",
1914
+ "title": "Opp. Name",
1915
+ "gd_data_type": "VARCHAR(128)",
1916
+ "gd_type": "GDC.text"
1917
+ },
1918
+ {
1919
+ "type": "label",
1920
+ "id": "label.opportunity.id",
1921
+ "reference": "attr.opportunity.id",
1922
+ "title": "Opportunity",
1923
+ "gd_data_type": "VARCHAR(128)",
1924
+ "gd_type": "GDC.text"
1925
+ },
1926
+ {
1927
+ "type": "label",
1928
+ "id": "label.opportunity.id.url",
1929
+ "reference": "attr.opportunity.id",
1930
+ "title": "Opp. Url",
1931
+ "gd_data_type": "VARCHAR(128)",
1932
+ "gd_type": "GDC.link"
1933
+ }
1934
+ ]
1935
+ },
1936
+ {
1937
+ "type": "dataset",
1938
+ "title": "Booking Type",
1939
+ "name": "dataset.bookingtype",
1940
+ "id": "dataset.bookingtype",
1941
+ "columns": [
1942
+ {
1943
+ "type": "anchor",
1944
+ "id": "attr.bookingtype.booking_type_id",
1945
+ "title": "Booking Type",
1946
+ "folder": "Booking Type"
1947
+ },
1948
+ {
1949
+ "type": "label",
1950
+ "id": "label.bookingtype.booking_type_id",
1951
+ "reference": "attr.bookingtype.booking_type_id",
1952
+ "title": "Booking Type",
1953
+ "gd_data_type": "VARCHAR(128)",
1954
+ "gd_type": "GDC.text"
1955
+ },
1956
+ {
1957
+ "type": "label",
1958
+ "id": "label.bookingtype.booking_type_id.booking_type_nm",
1959
+ "reference": "attr.bookingtype.booking_type_id",
1960
+ "title": "Booking Type Nm",
1961
+ "gd_data_type": "VARCHAR(128)",
1962
+ "gd_type": "GDC.text"
1963
+ }
1964
+ ]
1965
+ },
1966
+ {
1967
+ "type": "dataset",
1968
+ "title": "forecast",
1969
+ "name": "dataset.forecast",
1970
+ "id": "dataset.forecast",
1971
+ "columns": [
1972
+ {
1973
+ "type": "anchor",
1974
+ "id": "attr.forecast.id",
1975
+ "title": "Forecast Category",
1976
+ "folder": "forecast"
1977
+ },
1978
+ {
1979
+ "type": "label",
1980
+ "id": "label.forecast.id.forecastcategoryordered",
1981
+ "reference": "attr.forecast.id",
1982
+ "title": "Forecast Category Ordered",
1983
+ "gd_data_type": "VARCHAR(128)",
1984
+ "gd_type": "GDC.text"
1985
+ },
1986
+ {
1987
+ "type": "label",
1988
+ "id": "label.forecast.id",
1989
+ "reference": "attr.forecast.id",
1990
+ "title": "Forecast Category",
1991
+ "gd_data_type": "VARCHAR(128)",
1992
+ "gd_type": "GDC.text"
1993
+ }
1994
+ ]
1995
+ }
1996
+ ],
1997
+ "date_dimensions": [
1998
+ {
1999
+ "type": "date_dimension",
2000
+ "id": "activity",
2001
+ "title": "Activity"
2002
+ },
2003
+ {
2004
+ "type": "date_dimension",
2005
+ "id": "leadcreate",
2006
+ "title": "Lead Created"
2007
+ },
2008
+ {
2009
+ "type": "date_dimension",
2010
+ "id": "snapshot",
2011
+ "title": "Snapshot"
2012
+ },
2013
+ {
2014
+ "type": "date_dimension",
2015
+ "id": "oppownerstart",
2016
+ "title": "Opp. Owner Start"
2017
+ },
2018
+ {
2019
+ "type": "date_dimension",
2020
+ "id": "oppclose",
2021
+ "title": "Opp. Close"
2022
+ },
2023
+ {
2024
+ "type": "date_dimension",
2025
+ "id": "oppcreated",
2026
+ "title": "Opp. Created"
2027
+ },
2028
+ {
2029
+ "type": "date_dimension",
2030
+ "id": "stage1plus",
2031
+ "title": "SAO"
2032
+ },
2033
+ {
2034
+ "type": "date_dimension",
2035
+ "id": "firstcontactdate",
2036
+ "title": "Contacted Date"
2037
+ },
2038
+ {
2039
+ "type": "date_dimension",
2040
+ "id": "previous_close_date",
2041
+ "title": "Previous Opp. Close"
2042
+ },
2043
+ {
2044
+ "type": "date_dimension",
2045
+ "id": "mqldate",
2046
+ "title": "MQL"
2047
+ },
2048
+ {
2049
+ "type": "date_dimension",
2050
+ "id": "s2o",
2051
+ "title": "S2O"
2052
+ },
2053
+ {
2054
+ "type": "date_dimension",
2055
+ "id": "firstmeeting",
2056
+ "title": "First Meeting"
2057
+ },
2058
+ {
2059
+ "type": "date_dimension",
2060
+ "id": "effectivecontractstart",
2061
+ "title": "Effective Contract Start"
2062
+ },
2063
+ {
2064
+ "type": "date_dimension",
2065
+ "id": "laststage0plus",
2066
+ "title": "Last Stage0Plus"
2067
+ },
2068
+ {
2069
+ "type": "date_dimension",
2070
+ "id": "effectivecontractend",
2071
+ "title": "Effective Contract End"
2072
+ },
2073
+ {
2074
+ "type": "date_dimension",
2075
+ "id": "timeline",
2076
+ "title": "Timeline"
2077
+ }
2078
+ ]
2079
+ }