picked 0.0.111-next.1 → 0.0.111-next.2

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.
@@ -80,12 +80,27 @@ type OrganizationAnalyticsProvisioning {
80
80
  }
81
81
  ```
82
82
 
83
+ ### `OrganizationAnalyticsCollection`
84
+
85
+ ```graphql
86
+ """The organization's shared analytics collection."""
87
+ type OrganizationAnalyticsCollection {
88
+ """The collection's ID in Picked Analytics."""
89
+ id: Int!
90
+ }
91
+ ```
92
+
83
93
  ### `Organization` (extension)
84
94
 
85
95
  ```graphql
86
96
  extend type Organization {
87
97
  """How far analytics is set up for the organization."""
88
98
  analyticsProvisioning: OrganizationAnalyticsProvisioning!
99
+ """
100
+ The organization's shared analytics collection, or null until analytics is set up.
101
+ Scope: `ORGANIZATION_REPORTS_READ`.
102
+ """
103
+ analyticsCollection: OrganizationAnalyticsCollection
89
104
  }
90
105
  ```
91
106
 
@@ -466,7 +466,9 @@ query uses the names of tables and fields exactly as this tool gives them.
466
466
  #### `browse_analytics_collections`
467
467
 
468
468
  Lists the contents of a collection, or the tree of all the collections that you can
469
- see.
469
+ see. It also gives `sharedCollectionId`, the shared collection of the organization of
470
+ the project. List this collection to see the items of the organization, or give it as
471
+ the `collection_id` of an update to move an item into it.
470
472
 
471
473
  #### `get_analytics_content`
472
474
 
@@ -497,8 +499,11 @@ Gives the values that a parameter of a question or dashboard accepts.
497
499
 
498
500
  #### `create_analytics_question`
499
501
 
500
- Saves a structured query, or SQL with its `database_id`, as a question. If you do not
501
- give a `collection_id`, the question goes in your personal collection.
502
+ Saves a structured query, or SQL with its `database_id`, as a question. The question
503
+ goes in the shared collection of the organization, so that the organization can see
504
+ it. To use a different collection, give a `collection_id`. To keep the question in your
505
+ personal collection, set `personal` to `true`. When the analytics pages are available
506
+ to you, the result has a `dashboardUrl` that opens the question in the dashboard.
502
507
 
503
508
  #### `update_analytics_question`
504
509
 
@@ -508,7 +513,8 @@ archive it, or to `false` to restore it.
508
513
  #### `create_analytics_metric`
509
514
 
510
515
  Saves a metric: a structured query with one aggregation. The query can have a maximum
511
- of one date column that divides the result.
516
+ of one date column that divides the result. The metric goes in the same collection as a
517
+ question from `create_analytics_question`, and the result has the same `dashboardUrl`.
512
518
 
513
519
  #### `update_analytics_metric`
514
520
 
@@ -516,7 +522,9 @@ Changes the fields of a saved metric that you give, or archives it.
516
522
 
517
523
  #### `create_analytics_dashboard`
518
524
 
519
- Makes a dashboard from saved questions, with headings and text.
525
+ Makes a dashboard from saved questions, with headings and text. The dashboard goes in
526
+ the same collection as a question from `create_analytics_question`, and the result has
527
+ the same `dashboardUrl`.
520
528
 
521
529
  #### `update_analytics_dashboard`
522
530
 
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "picked",
3
3
  "description": "The Picked SDK front door: the client, the picked.config helpers, and the picked CLI in one install",
4
- "version": "0.0.111-next.1",
4
+ "version": "0.0.111-next.2",
5
5
  "bin": {
6
6
  "picked": "dist/esm/bin.js"
7
7
  },
8
8
  "dependencies": {
9
- "@picked/cli": "0.0.111-next.1",
10
- "@picked/config": "0.0.111-next.1"
9
+ "@picked/cli": "0.0.111-next.2",
10
+ "@picked/config": "0.0.111-next.2"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@picked/client": "workspace:*",
@@ -64,7 +64,7 @@
64
64
  "main": "./dist/cjs/index.js",
65
65
  "module": "./dist/esm/index.js",
66
66
  "peerDependencies": {
67
- "@picked/client": "0.0.111-next.1"
67
+ "@picked/client": "0.0.111-next.2"
68
68
  },
69
69
  "private": false,
70
70
  "publishConfig": {