picked 0.0.101 → 0.0.102-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.
- package/docs/reference/dashboard/workflow-test-runs.md +40 -17
- package/docs/reference/management-api/schema/action.md +67 -79
- package/docs/reference/management-api/schema/analytics-session.md +77 -94
- package/docs/reference/management-api/schema/analytics.md +16 -14
- package/docs/reference/management-api/schema/api-key.md +43 -51
- package/docs/reference/management-api/schema/auth.md +271 -404
- package/docs/reference/management-api/schema/cms-fields.md +348 -245
- package/docs/reference/management-api/schema/cms-models.md +369 -378
- package/docs/reference/management-api/schema/common.md +69 -130
- package/docs/reference/management-api/schema/condition.md +63 -74
- package/docs/reference/management-api/schema/design-system.md +59 -51
- package/docs/reference/management-api/schema/experience.md +388 -364
- package/docs/reference/management-api/schema/external-api.md +153 -171
- package/docs/reference/management-api/schema/feature.md +85 -103
- package/docs/reference/management-api/schema/feedback.md +27 -31
- package/docs/reference/management-api/schema/field.md +117 -135
- package/docs/reference/management-api/schema/index.md +184 -184
- package/docs/reference/management-api/schema/integration.md +72 -78
- package/docs/reference/management-api/schema/label.md +81 -137
- package/docs/reference/management-api/schema/lead.md +80 -119
- package/docs/reference/management-api/schema/mcp-server.md +73 -71
- package/docs/reference/management-api/schema/metric.md +6 -9
- package/docs/reference/management-api/schema/operation.md +17 -26
- package/docs/reference/management-api/schema/organization.md +198 -220
- package/docs/reference/management-api/schema/project.md +177 -186
- package/docs/reference/management-api/schema/report.md +69 -65
- package/docs/reference/management-api/schema/saved-view.md +71 -71
- package/docs/reference/management-api/schema/shopify.md +331 -204
- package/docs/reference/management-api/schema/step.md +72 -80
- package/docs/reference/management-api/schema/tenant-branding.md +48 -70
- package/docs/reference/management-api/schema/workbench.md +54 -66
- package/docs/reference/management-api/schema/workflow-run.md +66 -79
- package/docs/reference/management-api/schema/workflow.md +310 -353
- package/docs/reference/management-api/schema/workspace-version.md +212 -261
- package/docs/reference/management-api/schema/workspace.md +275 -328
- package/package.json +4 -4
|
@@ -6,13 +6,14 @@ generated: true
|
|
|
6
6
|
|
|
7
7
|
# Lead schema
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
See [Management API schema](/reference/management-api/schema) for every domain, the endpoint and authentication.
|
|
10
10
|
|
|
11
11
|
## Queries
|
|
12
12
|
|
|
13
13
|
### `lead`
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Reads a lead.
|
|
16
|
+
Scope: `ORGANIZATION_LEADS_READ`.
|
|
16
17
|
|
|
17
18
|
```graphql
|
|
18
19
|
lead(input: LeadInput!): Lead @auth
|
|
@@ -22,7 +23,8 @@ lead(input: LeadInput!): Lead @auth
|
|
|
22
23
|
|
|
23
24
|
### `leadDelete`
|
|
24
25
|
|
|
25
|
-
|
|
26
|
+
Deletes a lead and its labels. This cannot be undone.
|
|
27
|
+
Scope: `ORGANIZATION_LEADS_DELETE`.
|
|
26
28
|
|
|
27
29
|
```graphql
|
|
28
30
|
leadDelete(input: LeadDeleteInput!): LeadDeletePayload! @auth
|
|
@@ -34,68 +36,56 @@ leadDelete(input: LeadDeleteInput!): LeadDeletePayload! @auth
|
|
|
34
36
|
|
|
35
37
|
```graphql
|
|
36
38
|
"""
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
`responses` is resolved against the field schema of `workspaceVersion`, so each
|
|
41
|
-
one carries the label and type an author gave the field. When a workspace
|
|
42
|
-
preview captured the lead there is no version to resolve against, and the
|
|
43
|
-
responses fall back to their raw keys.
|
|
39
|
+
One set of answers that a visitor gave to a flow. It belongs to the project and stays after a new
|
|
40
|
+
version is published.
|
|
44
41
|
"""
|
|
45
42
|
type Lead {
|
|
46
|
-
"""
|
|
43
|
+
"""The ID of the lead."""
|
|
47
44
|
id: ID!
|
|
48
|
-
"""ID of the project that captured
|
|
45
|
+
"""The ID of the project that captured the lead."""
|
|
49
46
|
projectId: ID!
|
|
50
|
-
"""
|
|
51
|
-
The visitor the SDK identified. Anonymous: a capture is not an account.
|
|
52
|
-
"""
|
|
47
|
+
"""The ID the SDK gave the visitor."""
|
|
53
48
|
userId: String!
|
|
54
49
|
"""
|
|
55
|
-
The
|
|
50
|
+
The ID of the version that captured the lead. Null when a workspace preview captured it.
|
|
56
51
|
"""
|
|
57
52
|
workspaceVersionId: ID
|
|
58
53
|
"""
|
|
59
|
-
The version
|
|
54
|
+
The version that captured the lead. Null when a workspace preview captured it.
|
|
60
55
|
"""
|
|
61
56
|
workspaceVersion: WorkspaceVersion
|
|
62
57
|
"""
|
|
63
|
-
The
|
|
58
|
+
The answers, each with the label and type of its field in the capturing version. For a preview
|
|
59
|
+
capture, each label is the key and each type is `TEXT`.
|
|
64
60
|
"""
|
|
65
61
|
responses: [LeadResponse!]!
|
|
66
|
-
"""
|
|
62
|
+
"""The labels on the lead, ordered by namespace, then key."""
|
|
67
63
|
labels: [Label!]!
|
|
68
64
|
"""
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
person or an integration made it.
|
|
72
|
-
Pass `reverse: false` for the capture first. Requires scope: `ORGANIZATION_LEADS_READ`.
|
|
65
|
+
The changes to the lead, newest first: its capture, and each later change, its labels included.
|
|
66
|
+
Scope: `ORGANIZATION_LEADS_READ`.
|
|
73
67
|
"""
|
|
74
68
|
operations(first: Int, after: String, sortKey: OperationSortKeys = OCCURRED_AT, reverse: Boolean = true): LeadOperationConnection! @auth
|
|
75
69
|
"""
|
|
76
|
-
The workflow runs that created or changed
|
|
77
|
-
|
|
78
|
-
`ORGANIZATION_LEADS_READ` and `ORGANIZATION_PROJECTS_READ`.
|
|
70
|
+
The workflow runs that created or changed the lead, each once, newest first.
|
|
71
|
+
Scope: `ORGANIZATION_LEADS_READ` and `ORGANIZATION_PROJECTS_READ`.
|
|
79
72
|
"""
|
|
80
73
|
workflowRuns(first: Int, after: String, last: Int, before: String, reverse: Boolean = true): WorkflowRunConnection! @auth
|
|
81
74
|
"""
|
|
82
|
-
Every lead
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
`Project.leads(collapse: SESSION)` stands for reaches the others.
|
|
86
|
-
`matchCount` counts them, and `metrics` counts over them. Requires scope:
|
|
87
|
-
`ORGANIZATION_LEADS_READ`.
|
|
75
|
+
Every lead with the same `userId`, this lead included, newest first. A visitor who passes
|
|
76
|
+
several capture points in one flow leaves a lead at each.
|
|
77
|
+
Scope: `ORGANIZATION_LEADS_READ`.
|
|
88
78
|
"""
|
|
89
79
|
sessionLeads(first: Int, after: String, last: Int, before: String, reverse: Boolean = true): LeadConnection! @auth
|
|
90
80
|
"""
|
|
91
|
-
The
|
|
92
|
-
|
|
93
|
-
|
|
81
|
+
The visit in which the visitor gave the lead. Null when the lead has no capture event, or when
|
|
82
|
+
analytics holds no event for it yet or the capture happened outside production.
|
|
83
|
+
Scope: `ORGANIZATION_LEADS_READ`.
|
|
94
84
|
"""
|
|
95
85
|
session: AnalyticsSession @auth
|
|
96
|
-
"""When
|
|
86
|
+
"""When the lead was captured."""
|
|
97
87
|
createdAt: DateTime!
|
|
98
|
-
"""When
|
|
88
|
+
"""When the lead last changed."""
|
|
99
89
|
updatedAt: DateTime!
|
|
100
90
|
}
|
|
101
91
|
```
|
|
@@ -104,23 +94,22 @@ type Lead {
|
|
|
104
94
|
|
|
105
95
|
```graphql
|
|
106
96
|
"""
|
|
107
|
-
|
|
108
|
-
a person or an integration. `lead` is null once the lead has been deleted.
|
|
97
|
+
A change to a lead, made by a workflow run task, a person or an integration.
|
|
109
98
|
"""
|
|
110
99
|
type LeadOperation implements Operation {
|
|
111
|
-
"""
|
|
100
|
+
"""The ID of the operation."""
|
|
112
101
|
id: ID!
|
|
113
|
-
"""What
|
|
102
|
+
"""What the operation did to the lead."""
|
|
114
103
|
type: OperationType!
|
|
115
104
|
"""When the operation happened."""
|
|
116
105
|
occurredAt: DateTime!
|
|
117
106
|
"""
|
|
118
|
-
The workflow run task that
|
|
107
|
+
The workflow run task that made the change. Null when a workflow did not make it.
|
|
119
108
|
"""
|
|
120
109
|
task: WorkflowTask
|
|
121
|
-
"""ID of the lead,
|
|
110
|
+
"""The ID of the lead, which stays after the lead is deleted."""
|
|
122
111
|
leadId: ID!
|
|
123
|
-
"""The lead
|
|
112
|
+
"""The lead. Null when the lead was deleted."""
|
|
124
113
|
lead: Lead
|
|
125
114
|
}
|
|
126
115
|
```
|
|
@@ -128,17 +117,15 @@ type LeadOperation implements Operation {
|
|
|
128
117
|
### `LeadOperationConnection`
|
|
129
118
|
|
|
130
119
|
```graphql
|
|
131
|
-
"""
|
|
120
|
+
"""A page of lead operations."""
|
|
132
121
|
type LeadOperationConnection {
|
|
133
|
-
"""
|
|
122
|
+
"""The edges in this page."""
|
|
134
123
|
edges: [LeadOperationEdge!]!
|
|
135
|
-
"""
|
|
136
|
-
Flat list of operations, equivalent to `edges[].node`. Convenience accessor.
|
|
137
|
-
"""
|
|
124
|
+
"""The operations in this page."""
|
|
138
125
|
nodes: [LeadOperation!]!
|
|
139
|
-
"""
|
|
126
|
+
"""Where this page sits in the list."""
|
|
140
127
|
pageInfo: PageInfo!
|
|
141
|
-
"""
|
|
128
|
+
"""The total number of operations on the lead."""
|
|
142
129
|
totalCount: Int!
|
|
143
130
|
}
|
|
144
131
|
```
|
|
@@ -146,9 +133,9 @@ type LeadOperationConnection {
|
|
|
146
133
|
### `LeadOperationEdge`
|
|
147
134
|
|
|
148
135
|
```graphql
|
|
149
|
-
"""
|
|
136
|
+
"""A lead operation in a page of results."""
|
|
150
137
|
type LeadOperationEdge {
|
|
151
|
-
"""
|
|
138
|
+
"""The cursor of this edge."""
|
|
152
139
|
cursor: String!
|
|
153
140
|
"""The operation."""
|
|
154
141
|
node: LeadOperation!
|
|
@@ -159,20 +146,16 @@ type LeadOperationEdge {
|
|
|
159
146
|
|
|
160
147
|
```graphql
|
|
161
148
|
"""
|
|
162
|
-
One answer a
|
|
163
|
-
|
|
164
|
-
`label` and `type` come from the capturing version's field schema. For a
|
|
165
|
-
preview capture, `label` repeats `key` and `type` is `TEXT`, because there is no
|
|
166
|
-
schema to resolve against.
|
|
149
|
+
One answer in a lead, held under the key of the field that asked for it.
|
|
167
150
|
"""
|
|
168
151
|
type LeadResponse {
|
|
169
|
-
"""The
|
|
152
|
+
"""The key of the field."""
|
|
170
153
|
key: String!
|
|
171
|
-
"""The
|
|
154
|
+
"""The label of the field. For a preview capture, the key."""
|
|
172
155
|
label: String!
|
|
173
|
-
"""The
|
|
156
|
+
"""The type of the field. For a preview capture, `TEXT`."""
|
|
174
157
|
type: FieldType!
|
|
175
|
-
"""The answer
|
|
158
|
+
"""The answer, shaped by `type`."""
|
|
176
159
|
value: JSON
|
|
177
160
|
}
|
|
178
161
|
```
|
|
@@ -180,30 +163,24 @@ type LeadResponse {
|
|
|
180
163
|
### `LeadConnection`
|
|
181
164
|
|
|
182
165
|
```graphql
|
|
183
|
-
"""
|
|
184
|
-
Relay-style connection of leads, with both an `edges` list and a flat `nodes` accessor.
|
|
185
|
-
"""
|
|
166
|
+
"""A page of leads."""
|
|
186
167
|
type LeadConnection {
|
|
187
|
-
"""
|
|
168
|
+
"""The edges in this page."""
|
|
188
169
|
edges: [LeadEdge!]!
|
|
189
|
-
"""
|
|
190
|
-
Flat list of leads, equivalent to `edges[].node`. Convenience accessor.
|
|
191
|
-
"""
|
|
170
|
+
"""The leads in this page."""
|
|
192
171
|
nodes: [Lead!]!
|
|
193
|
-
"""
|
|
172
|
+
"""Where this page sits in the list."""
|
|
194
173
|
pageInfo: PageInfo!
|
|
195
174
|
"""
|
|
196
|
-
|
|
197
|
-
has no total, and this field fails for one.
|
|
175
|
+
The total number of leads the query matches. Fails for a query with a `session.` clause.
|
|
198
176
|
"""
|
|
199
177
|
totalCount: Int! @deprecated(reason: "Use matchCount, which is null for a query with a session. clause.")
|
|
200
178
|
"""
|
|
201
|
-
The number of leads the query matches across
|
|
179
|
+
The number of leads the query matches across all pages. Null when the query has a `session.`
|
|
180
|
+
clause.
|
|
202
181
|
"""
|
|
203
182
|
matchCount: Int
|
|
204
|
-
"""
|
|
205
|
-
Metrics over every lead the connection's `query` matches, across all pages.
|
|
206
|
-
"""
|
|
183
|
+
"""Metrics over every lead the query matches, across all pages."""
|
|
207
184
|
metrics: LeadMetrics!
|
|
208
185
|
}
|
|
209
186
|
```
|
|
@@ -212,20 +189,17 @@ type LeadConnection {
|
|
|
212
189
|
|
|
213
190
|
```graphql
|
|
214
191
|
"""
|
|
215
|
-
Metrics over the leads a `LeadConnection` matches.
|
|
216
|
-
|
|
217
|
-
`first: 0` on `Project.leads` to read metrics without fetching a page.
|
|
192
|
+
Metrics over the leads a `LeadConnection` matches. They ignore the page window and `sort`, so
|
|
193
|
+
`first: 0` reads them without a page.
|
|
218
194
|
"""
|
|
219
195
|
type LeadMetrics {
|
|
220
196
|
"""
|
|
221
|
-
|
|
197
|
+
The number of matching leads by capture time.
|
|
222
198
|
|
|
223
|
-
`groupBy` splits the count by a path in the lead query
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
Under a `session.` clause the count reads the session of each capture event
|
|
228
|
-
of the leads created in the window.
|
|
199
|
+
`groupBy` splits the count by a path in the lead query language: a label (`labels.aia.status`
|
|
200
|
+
or `aia.status`) or a response (`responses.state` or `state`). Leads with no value at the path
|
|
201
|
+
group under an empty key. Under a `session.` clause, the count reads the visit of each capture
|
|
202
|
+
event.
|
|
229
203
|
"""
|
|
230
204
|
count(groupBy: String): CountMetric!
|
|
231
205
|
}
|
|
@@ -234,22 +208,13 @@ type LeadMetrics {
|
|
|
234
208
|
### `LeadCollapse`
|
|
235
209
|
|
|
236
210
|
```graphql
|
|
237
|
-
"""
|
|
238
|
-
How `Project.leads` reads the leads captured under one SDK session id
|
|
239
|
-
(`Lead.userId`).
|
|
240
|
-
|
|
241
|
-
A visitor who passes several capture points in one flow, such as a short form and
|
|
242
|
-
then a longer one, leaves one lead at each. `SESSION` reads each session as its
|
|
243
|
-
newest lead the query matches, and `Lead.sessionLeads` on that lead reaches the
|
|
244
|
-
rest.
|
|
245
|
-
"""
|
|
211
|
+
"""How `Project.leads` treats several leads with the same `Lead.userId`."""
|
|
246
212
|
enum LeadCollapse {
|
|
247
213
|
"""Every lead the query matches."""
|
|
248
214
|
NONE
|
|
249
215
|
"""
|
|
250
|
-
One lead per
|
|
251
|
-
|
|
252
|
-
the measured window. A query with a `session.` clause takes no collapse.
|
|
216
|
+
One lead per `userId`: the newest the query matches, which `matchCount` and `metrics` count once.
|
|
217
|
+
Not allowed with a `session.` clause.
|
|
253
218
|
"""
|
|
254
219
|
SESSION
|
|
255
220
|
}
|
|
@@ -258,9 +223,9 @@ enum LeadCollapse {
|
|
|
258
223
|
### `LeadEdge`
|
|
259
224
|
|
|
260
225
|
```graphql
|
|
261
|
-
"""
|
|
226
|
+
"""A lead in a page of results."""
|
|
262
227
|
type LeadEdge {
|
|
263
|
-
"""
|
|
228
|
+
"""The cursor of this edge."""
|
|
264
229
|
cursor: String!
|
|
265
230
|
"""The lead."""
|
|
266
231
|
node: Lead!
|
|
@@ -270,9 +235,9 @@ type LeadEdge {
|
|
|
270
235
|
### `LeadInput`
|
|
271
236
|
|
|
272
237
|
```graphql
|
|
273
|
-
"""
|
|
238
|
+
"""The input of `lead`."""
|
|
274
239
|
input LeadInput {
|
|
275
|
-
"""ID of the lead
|
|
240
|
+
"""The ID of the lead."""
|
|
276
241
|
id: ID!
|
|
277
242
|
}
|
|
278
243
|
```
|
|
@@ -280,9 +245,9 @@ input LeadInput {
|
|
|
280
245
|
### `LeadDeleteInput`
|
|
281
246
|
|
|
282
247
|
```graphql
|
|
283
|
-
"""
|
|
248
|
+
"""The input of `leadDelete`."""
|
|
284
249
|
input LeadDeleteInput {
|
|
285
|
-
"""ID of the lead
|
|
250
|
+
"""The ID of the lead."""
|
|
286
251
|
id: ID!
|
|
287
252
|
}
|
|
288
253
|
```
|
|
@@ -290,12 +255,9 @@ input LeadDeleteInput {
|
|
|
290
255
|
### `LeadDeletePayload`
|
|
291
256
|
|
|
292
257
|
```graphql
|
|
293
|
-
"""
|
|
294
|
-
Payload returned by `leadDelete`. The delete is permanent and takes the lead's
|
|
295
|
-
labels with it, because deleting the row is how an erasure request is honoured.
|
|
296
|
-
"""
|
|
258
|
+
"""The result of `leadDelete`."""
|
|
297
259
|
type LeadDeletePayload {
|
|
298
|
-
"""ID of the deleted lead."""
|
|
260
|
+
"""The ID of the deleted lead."""
|
|
299
261
|
deletedLeadId: ID
|
|
300
262
|
}
|
|
301
263
|
```
|
|
@@ -304,16 +266,15 @@ type LeadDeletePayload {
|
|
|
304
266
|
|
|
305
267
|
```graphql
|
|
306
268
|
"""
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
editable filter inside the embed.
|
|
269
|
+
An embedded analytics report on the leads of one project. Its date range is a filter inside the
|
|
270
|
+
embed.
|
|
310
271
|
"""
|
|
311
272
|
type LeadReport {
|
|
312
|
-
"""
|
|
273
|
+
"""The kind of report."""
|
|
313
274
|
kind: LeadReportKind!
|
|
314
275
|
"""
|
|
315
|
-
URL of a signed embed of the report, for an iframe. The
|
|
316
|
-
|
|
276
|
+
The URL of a signed embed of the report, for an iframe. The signature expires 3 hours after the
|
|
277
|
+
field is read.
|
|
317
278
|
"""
|
|
318
279
|
embedUrl: String!
|
|
319
280
|
}
|
|
@@ -322,18 +283,18 @@ type LeadReport {
|
|
|
322
283
|
### `LeadReportKind`
|
|
323
284
|
|
|
324
285
|
```graphql
|
|
325
|
-
"""The
|
|
286
|
+
"""The kinds of lead report."""
|
|
326
287
|
enum LeadReportKind {
|
|
327
288
|
"""
|
|
328
|
-
How leads
|
|
289
|
+
How leads arrive: volume, channel, referrer, campaign, landing page, device, place and time.
|
|
329
290
|
"""
|
|
330
291
|
ACQUISITION
|
|
331
292
|
"""
|
|
332
|
-
The paths
|
|
293
|
+
The paths to leads: first touch, step sequences, visits and time to capture.
|
|
333
294
|
"""
|
|
334
295
|
JOURNEYS
|
|
335
296
|
"""
|
|
336
|
-
How visits convert to leads: the funnel, the lead rate by week and
|
|
297
|
+
How visits convert to leads: the funnel, the lead rate by week and segment, and what leads did.
|
|
337
298
|
"""
|
|
338
299
|
CONVERSION
|
|
339
300
|
}
|