picked 0.0.103-next.3 → 0.0.104-next.1

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.
@@ -119,6 +119,22 @@ enum AnalyticsSessionsReportKind {
119
119
  }
120
120
  ```
121
121
 
122
+ ### `AnalyticsSessionSearchSuggestion`
123
+
124
+ ```graphql
125
+ """
126
+ A session search suggested for what was typed into a sessions search box.
127
+ """
128
+ type AnalyticsSessionSearchSuggestion {
129
+ """The session search query."""
130
+ query: String!
131
+ """What the query finds, in plain English."""
132
+ description: String!
133
+ """How many sessions the query keeps within the window."""
134
+ count: Int!
135
+ }
136
+ ```
137
+
122
138
  ### `AnalyticsSessionConnection`
123
139
 
124
140
  ```graphql
@@ -160,6 +160,23 @@ type LeadResponse {
160
160
  }
161
161
  ```
162
162
 
163
+ ### `LeadSearchSuggestion`
164
+
165
+ ```graphql
166
+ """A leads search suggested for what was typed into a leads search box."""
167
+ type LeadSearchSuggestion {
168
+ """The leads search query."""
169
+ query: String!
170
+ """What the query finds, in plain English."""
171
+ description: String!
172
+ """
173
+ How many leads the query matches within the window. Null when a `session.` clause leaves the
174
+ query without a total.
175
+ """
176
+ count: Int
177
+ }
178
+ ```
179
+
163
180
  ### `LeadConnection`
164
181
 
165
182
  ```graphql
@@ -252,6 +252,23 @@ type Project {
252
252
  """
253
253
  leadReports: [LeadReport!]! @auth
254
254
  """
255
+ Suggests up to four leads searches for what was typed into a leads search box, each counted within
256
+ the window. Requires the `lead-search-suggestions` feature flag.
257
+ Scope: `ORGANIZATION_LEADS_READ`.
258
+ """
259
+ leadSearchSuggestions(
260
+ """What was typed, at most 200 characters."""
261
+ text: String!
262
+ """
263
+ The window, in the project's time zone, each suggestion is counted within.
264
+ """
265
+ window: MetricWindowInput
266
+ """
267
+ How a session's leads count. `SESSION` counts each session's newest matching lead once.
268
+ """
269
+ collapse: LeadCollapse = NONE
270
+ ): [LeadSearchSuggestion!]! @auth
271
+ """
255
272
  The Sessions reports on the project, in order: how its sessions arrive, the journeys they take,
256
273
  and which of them convert. Each is a signed embed URL locked to the project, with an editable
257
274
  date range.
@@ -298,14 +315,27 @@ type Project {
298
315
  so, never both; at most ten.
299
316
  """
300
317
  query: String
318
+ """Whether to include bots."""
319
+ includeBots: Boolean = false
320
+ ): AnalyticsSessionConnection! @auth
321
+ """
322
+ Suggests up to four session searches for what was typed into a sessions search box, each with
323
+ how many sessions it keeps within the window. Requires the `lead-search-suggestions` feature flag.
324
+ Scope: `ORGANIZATION_LEADS_READ`.
325
+ """
326
+ analyticsSessionSearchSuggestions(
327
+ """What was typed, at most 200 characters."""
328
+ text: String!
301
329
  """
302
- Whether to keep the sessions of bots. A session is a bot's when one of its events
303
- inside the window ran on a device the user agent names as a crawler, scanner or
304
- scripted browser: a robot, hacker or spy device class, or a headless Chrome or
305
- Lighthouse agent. Left out by default, from the page and from `metrics` alike.
330
+ The window, in the project's time zone, each suggestion is counted within. Defaults to today
331
+ and the six days before it.
332
+ """
333
+ window: MetricWindowInput
334
+ """
335
+ Whether each count keeps the sessions of bots, as `analyticsSessions` does.
306
336
  """
307
337
  includeBots: Boolean = false
308
- ): AnalyticsSessionConnection! @auth
338
+ ): [AnalyticsSessionSearchSuggestion!]! @auth
309
339
  """
310
340
  The saved views of one of the project's lists, oldest first.
311
341
  Scope: `ORGANIZATION_PROJECTS_READ`.
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.103-next.3",
4
+ "version": "0.0.104-next.1",
5
5
  "bin": {
6
6
  "picked": "dist/esm/bin.js"
7
7
  },
8
8
  "dependencies": {
9
- "@picked/cli": "0.0.103-next.3",
10
- "@picked/config": "0.0.103-next.3"
9
+ "@picked/cli": "0.0.104-next.1",
10
+ "@picked/config": "0.0.104-next.1"
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.103-next.3"
67
+ "@picked/client": "0.0.104-next.1"
68
68
  },
69
69
  "private": false,
70
70
  "publishConfig": {