picked 0.0.101-next.2 → 0.0.101
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/README.md +27 -12
- package/docs/explanation/conditions-and-the-logic-engine.md +94 -0
- package/docs/explanation/content-references.md +99 -0
- package/docs/explanation/feature-flag-allocation.md +218 -0
- package/docs/explanation/how-picked-works.md +124 -0
- package/docs/explanation/how-pickedql-works.md +76 -0
- package/docs/explanation/pages-and-flows.md +64 -0
- package/docs/explanation/the-content-model.md +87 -0
- package/docs/explanation/the-two-apis.md +68 -0
- package/docs/explanation/why-server-side-rendering.md +76 -0
- package/docs/explanation/workspaces-and-versions.md +71 -0
- package/docs/how-to/add-a-step-field-or-action.md +56 -0
- package/docs/how-to/analytics/index.md +324 -0
- package/docs/how-to/archive-or-delete-a-workspace.md +59 -0
- package/docs/how-to/authenticate-the-cli.md +101 -0
- package/docs/how-to/authenticate-with-a-magic-link.md +56 -0
- package/docs/how-to/authenticate-with-a-password.md +68 -0
- package/docs/how-to/authenticate-with-an-api-key.md +60 -0
- package/docs/how-to/authenticate-with-oauth.md +49 -0
- package/docs/how-to/build-a-flow.md +106 -0
- package/docs/how-to/call-an-external-api-from-a-workflow.md +116 -0
- package/docs/how-to/connect-the-mcp-server.md +46 -0
- package/docs/how-to/create-a-content-entry.md +58 -0
- package/docs/how-to/create-a-project.md +40 -0
- package/docs/how-to/create-an-experience.md +51 -0
- package/docs/how-to/create-and-revoke-an-api-key.md +54 -0
- package/docs/how-to/debug-with-the-chrome-extension.md +57 -0
- package/docs/how-to/define-a-page-layout.md +54 -0
- package/docs/how-to/fill-and-publish-a-page.md +82 -0
- package/docs/how-to/install-the-gtm-template.md +84 -0
- package/docs/how-to/install-the-sdk.md +93 -0
- package/docs/how-to/install-the-vite-plugin.md +69 -0
- package/docs/how-to/invite-and-remove-members.md +45 -0
- package/docs/how-to/point-one-entry-at-another.md +75 -0
- package/docs/how-to/preview-a-workspace.md +39 -0
- package/docs/how-to/publish-a-workspace.md +42 -0
- package/docs/how-to/read-a-feature-flag.md +113 -0
- package/docs/how-to/read-a-referenced-entry.md +109 -0
- package/docs/how-to/register-a-component.md +55 -0
- package/docs/how-to/register-an-action-handler.md +85 -0
- package/docs/how-to/register-an-api-that-uses-oauth2.md +107 -0
- package/docs/how-to/render-a-step-form.md +131 -0
- package/docs/how-to/render-an-unpublished-preview.md +41 -0
- package/docs/how-to/retry-a-failed-call-with-a-loop.md +81 -0
- package/docs/how-to/reuse-a-section.md +64 -0
- package/docs/how-to/reuse-a-step-field-or-action.md +39 -0
- package/docs/how-to/roll-back-a-published-version.md +39 -0
- package/docs/how-to/run-an-ab-test.md +59 -0
- package/docs/how-to/run-code-on-a-form-submission.md +125 -0
- package/docs/how-to/server-render-a-page.md +81 -0
- package/docs/how-to/set-a-content-security-policy.md +32 -0
- package/docs/how-to/set-up-mfa.md +126 -0
- package/docs/how-to/switch-workspaces.md +122 -0
- package/docs/how-to/upload-and-use-an-asset.mdx +87 -0
- package/docs/how-to/validate-a-field.md +52 -0
- package/docs/how-to/wait-for-an-action-response.md +182 -0
- package/docs/how-to/write-a-condition.md +57 -0
- package/docs/how-to/write-a-predicate.md +60 -0
- package/docs/index.md +59 -0
- package/docs/reference/dashboard/actions.mdx +65 -0
- package/docs/reference/dashboard/api-keys.mdx +47 -0
- package/docs/reference/dashboard/conditions.mdx +51 -0
- package/docs/reference/dashboard/content/asset-library.mdx +74 -0
- package/docs/reference/dashboard/content/blocks.mdx +66 -0
- package/docs/reference/dashboard/content/content-entries.mdx +109 -0
- package/docs/reference/dashboard/content/models.mdx +119 -0
- package/docs/reference/dashboard/content/pages.mdx +72 -0
- package/docs/reference/dashboard/experiences.mdx +61 -0
- package/docs/reference/dashboard/external-apis.md +182 -0
- package/docs/reference/dashboard/features.mdx +165 -0
- package/docs/reference/dashboard/fields.mdx +120 -0
- package/docs/reference/dashboard/flow-builder/canvas.mdx +58 -0
- package/docs/reference/dashboard/flow-builder/condition-builder.md +69 -0
- package/docs/reference/dashboard/flow-builder/keyboard-shortcuts.md +72 -0
- package/docs/reference/dashboard/flow-builder/nodes.md +74 -0
- package/docs/reference/dashboard/labels.md +321 -0
- package/docs/reference/dashboard/lead-search.md +235 -0
- package/docs/reference/dashboard/projects.mdx +53 -0
- package/docs/reference/dashboard/reports.mdx +53 -0
- package/docs/reference/dashboard/steps.mdx +47 -0
- package/docs/reference/dashboard/team-management.md +38 -0
- package/docs/reference/dashboard/workflow-runs.md +157 -0
- package/docs/reference/dashboard/workflow-templates.md +182 -0
- package/docs/reference/dashboard/workflow-test-runs.md +85 -0
- package/docs/reference/dashboard/workspace-versioning.mdx +42 -0
- package/docs/reference/dashboard/workspaces.mdx +91 -0
- package/docs/reference/delivery-api/experience-content.md +152 -0
- package/docs/reference/delivery-api/index.md +45 -0
- package/docs/reference/delivery-api/preview-caching-crawling.md +79 -0
- package/docs/reference/delivery-api/project-config.md +65 -0
- package/docs/reference/delivery-api/workspace-schema.md +107 -0
- package/docs/reference/glossary.md +201 -0
- package/docs/reference/management-api/authentication.md +87 -0
- package/docs/reference/management-api/authorization-and-scopes.md +291 -0
- package/docs/reference/management-api/error-handling.md +232 -0
- package/docs/reference/management-api/pagination.md +192 -0
- package/docs/reference/management-api/schema/action.md +261 -0
- package/docs/reference/management-api/schema/analytics-session.md +363 -0
- package/docs/reference/management-api/schema/analytics.md +73 -0
- package/docs/reference/management-api/schema/api-key.md +170 -0
- package/docs/reference/management-api/schema/auth.md +1177 -0
- package/docs/reference/management-api/schema/cms-fields.md +954 -0
- package/docs/reference/management-api/schema/cms-models.md +1155 -0
- package/docs/reference/management-api/schema/common.md +362 -0
- package/docs/reference/management-api/schema/condition.md +254 -0
- package/docs/reference/management-api/schema/design-system.md +199 -0
- package/docs/reference/management-api/schema/experience.md +1098 -0
- package/docs/reference/management-api/schema/external-api.md +637 -0
- package/docs/reference/management-api/schema/feature.md +350 -0
- package/docs/reference/management-api/schema/feedback.md +103 -0
- package/docs/reference/management-api/schema/field.md +400 -0
- package/docs/reference/management-api/schema/index.md +243 -0
- package/docs/reference/management-api/schema/integration.md +272 -0
- package/docs/reference/management-api/schema/label.md +349 -0
- package/docs/reference/management-api/schema/lead.md +340 -0
- package/docs/reference/management-api/schema/mcp-server.md +299 -0
- package/docs/reference/management-api/schema/metric.md +223 -0
- package/docs/reference/management-api/schema/operation.md +96 -0
- package/docs/reference/management-api/schema/organization.md +749 -0
- package/docs/reference/management-api/schema/project.md +607 -0
- package/docs/reference/management-api/schema/report.md +243 -0
- package/docs/reference/management-api/schema/saved-view.md +288 -0
- package/docs/reference/management-api/schema/shopify.md +795 -0
- package/docs/reference/management-api/schema/step.md +273 -0
- package/docs/reference/management-api/schema/tenant-branding.md +185 -0
- package/docs/reference/management-api/schema/workbench.md +246 -0
- package/docs/reference/management-api/schema/workflow-run.md +263 -0
- package/docs/reference/management-api/schema/workflow.md +1110 -0
- package/docs/reference/management-api/schema/workspace-version.md +823 -0
- package/docs/reference/management-api/schema/workspace.md +917 -0
- package/docs/reference/pickedql/data-sources.md +174 -0
- package/docs/reference/pickedql/dimensions.md +103 -0
- package/docs/reference/pickedql/filtering.md +64 -0
- package/docs/reference/pickedql/index.md +18 -0
- package/docs/reference/pickedql/schema.md +172 -0
- package/docs/reference/pickedql/virtual-functions.md +248 -0
- package/docs/reference/sdk/actions.md +154 -0
- package/docs/reference/sdk/analytics-events.md +453 -0
- package/docs/reference/sdk/conditions.md +147 -0
- package/docs/reference/sdk/content-security-policy.md +21 -0
- package/docs/reference/sdk/content.md +253 -0
- package/docs/reference/sdk/experiences.md +51 -0
- package/docs/reference/sdk/features.md +256 -0
- package/docs/reference/sdk/fields.md +255 -0
- package/docs/reference/sdk/index.md +68 -0
- package/docs/reference/sdk/plugins/create-experience.md +123 -0
- package/docs/reference/sdk/plugins/dynamic-experiences.md +74 -0
- package/docs/reference/sdk/plugins/fingerprintjs.md +39 -0
- package/docs/reference/sdk/plugins/hotjar.md +60 -0
- package/docs/reference/sdk/plugins/index.md +33 -0
- package/docs/reference/sdk/plugins/sentry.md +51 -0
- package/docs/reference/sdk/plugins/shopify.md +109 -0
- package/docs/reference/sdk/plugins/window-object.md +25 -0
- package/docs/reference/sdk/predicates.md +43 -0
- package/docs/reference/sdk/react.md +61 -0
- package/docs/reference/sdk/ssr/index.md +33 -0
- package/docs/reference/sdk/ssr/rendering-and-hydration.md +103 -0
- package/docs/reference/sdk/ssr/serialize.md +80 -0
- package/docs/reference/sdk/ssr/slots-and-placements.md +113 -0
- package/docs/reference/sdk/steps.md +86 -0
- package/docs/reference/sdk/svelte.md +74 -0
- package/docs/reference/sdk/type-generation.md +265 -0
- package/docs/reference/tools/admin-api-client.md +89 -0
- package/docs/reference/tools/chrome-extension.md +16 -0
- package/docs/reference/tools/cli.md +319 -0
- package/docs/reference/tools/delivery-api-client.md +60 -0
- package/docs/reference/tools/image-optimisation-service.md +104 -0
- package/docs/reference/tools/mcp-run.md +121 -0
- package/docs/reference/tools/mcp.md +391 -0
- package/docs/reference/tools/vite-plugin.md +163 -0
- package/docs/tutorials/first-api-call.md +253 -0
- package/docs/tutorials/first-experience-in-the-dashboard.mdx +160 -0
- package/docs/tutorials/first-experience.mdx +254 -0
- package/docs/tutorials/first-server-rendered-page.mdx +186 -0
- package/package.json +8 -7
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: reference
|
|
3
|
+
layout: docs
|
|
4
|
+
generated: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Report schema
|
|
8
|
+
|
|
9
|
+
The operations and types that `report.graphql` adds to the Management API. See [Management API schema](/reference/management-api/schema) for every domain, the endpoint and authentication.
|
|
10
|
+
|
|
11
|
+
## Queries
|
|
12
|
+
|
|
13
|
+
### `report`
|
|
14
|
+
|
|
15
|
+
Fetch a single report by id. Requires authentication.
|
|
16
|
+
|
|
17
|
+
```graphql
|
|
18
|
+
report(id: ID!): ProjectReport @auth
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Mutations
|
|
22
|
+
|
|
23
|
+
### `reportCreate`
|
|
24
|
+
|
|
25
|
+
Create a new report. Requires scope: `ORGANIZATION_REPORTS_CREATE`.
|
|
26
|
+
|
|
27
|
+
```graphql
|
|
28
|
+
reportCreate(input: ReportCreateInput!): ReportCreatePayload! @auth
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### `reportUpdate`
|
|
32
|
+
|
|
33
|
+
Update a report. Requires scope: `ORGANIZATION_REPORTS_UPDATE`.
|
|
34
|
+
|
|
35
|
+
```graphql
|
|
36
|
+
reportUpdate(input: ReportUpdateInput!): ReportUpdatePayload! @auth
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### `reportDelete`
|
|
40
|
+
|
|
41
|
+
Delete a report. Requires scope: `ORGANIZATION_REPORTS_DELETE`.
|
|
42
|
+
|
|
43
|
+
```graphql
|
|
44
|
+
reportDelete(input: ReportDeleteInput!): ReportDeletePayload! @auth
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Types
|
|
48
|
+
|
|
49
|
+
### `ReportSortKeys`
|
|
50
|
+
|
|
51
|
+
```graphql
|
|
52
|
+
"""
|
|
53
|
+
Sort keys accepted by `Project.reports(...)`. Pair with `reverse: true` to flip the order.
|
|
54
|
+
"""
|
|
55
|
+
enum ReportSortKeys {
|
|
56
|
+
"""Sort by report `name` (alphabetical)."""
|
|
57
|
+
NAME
|
|
58
|
+
"""Sort by display order (the manual order the user assigned)."""
|
|
59
|
+
DISPLAY_ORDER
|
|
60
|
+
"""Sort by `createdAt`."""
|
|
61
|
+
CREATED_AT
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### `ReportType`
|
|
66
|
+
|
|
67
|
+
```graphql
|
|
68
|
+
"""Type of report (one chart vs. a dashboard of charts)."""
|
|
69
|
+
enum ReportType {
|
|
70
|
+
"""A single question / chart report."""
|
|
71
|
+
QUESTION
|
|
72
|
+
"""A multi-chart dashboard report."""
|
|
73
|
+
DASHBOARD
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### `Report`
|
|
78
|
+
|
|
79
|
+
```graphql
|
|
80
|
+
"""
|
|
81
|
+
Picked-side report definition — a pointer to a Metabase report
|
|
82
|
+
(question or dashboard) plus the display-only metadata (name,
|
|
83
|
+
description).
|
|
84
|
+
"""
|
|
85
|
+
type Report {
|
|
86
|
+
"""Unique identifier for the report."""
|
|
87
|
+
id: ID!
|
|
88
|
+
"""Metabase report id."""
|
|
89
|
+
metabaseReportId: Int!
|
|
90
|
+
"""Display name of the report."""
|
|
91
|
+
name: String!
|
|
92
|
+
"""Description of the report."""
|
|
93
|
+
description: String
|
|
94
|
+
"""Type of the Metabase report."""
|
|
95
|
+
metabaseReportType: ReportType!
|
|
96
|
+
"""When this report was created."""
|
|
97
|
+
createdAt: DateTime!
|
|
98
|
+
"""When this report was last updated."""
|
|
99
|
+
updatedAt: DateTime!
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### `ProjectReport`
|
|
104
|
+
|
|
105
|
+
```graphql
|
|
106
|
+
"""
|
|
107
|
+
A report assigned to a project with embed configuration. The
|
|
108
|
+
`lockedParameters` blob is forwarded to Metabase when generating the
|
|
109
|
+
embed URL — typically used to lock the report to the project's id.
|
|
110
|
+
"""
|
|
111
|
+
type ProjectReport {
|
|
112
|
+
"""Unique identifier for the project report."""
|
|
113
|
+
id: ID!
|
|
114
|
+
"""The underlying report definition."""
|
|
115
|
+
report: Report!
|
|
116
|
+
"""Parameters locked for the embedded report (forwarded to Metabase)."""
|
|
117
|
+
lockedParameters: JSON
|
|
118
|
+
"""Display order in the project's report list. Null orders last."""
|
|
119
|
+
displayOrder: Int
|
|
120
|
+
"""When this project report was created."""
|
|
121
|
+
createdAt: DateTime!
|
|
122
|
+
"""Email of the user who created this project report."""
|
|
123
|
+
createdBy: String
|
|
124
|
+
"""Embeddable URL for the report — sign and time-limited."""
|
|
125
|
+
embedUrl: String!
|
|
126
|
+
}
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### `ProjectReportEdge`
|
|
130
|
+
|
|
131
|
+
```graphql
|
|
132
|
+
"""Edge type for `ProjectReportConnection`."""
|
|
133
|
+
type ProjectReportEdge {
|
|
134
|
+
"""Pagination cursor for this edge."""
|
|
135
|
+
cursor: String!
|
|
136
|
+
"""The project report."""
|
|
137
|
+
node: ProjectReport!
|
|
138
|
+
}
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### `ProjectReportConnection`
|
|
142
|
+
|
|
143
|
+
```graphql
|
|
144
|
+
"""Relay-style connection of project reports."""
|
|
145
|
+
type ProjectReportConnection {
|
|
146
|
+
"""List of project-report edges."""
|
|
147
|
+
edges: [ProjectReportEdge!]!
|
|
148
|
+
"""Pagination metadata."""
|
|
149
|
+
pageInfo: PageInfo!
|
|
150
|
+
"""Total number of project reports."""
|
|
151
|
+
totalCount: Int!
|
|
152
|
+
}
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### `ReportCreateInput`
|
|
156
|
+
|
|
157
|
+
```graphql
|
|
158
|
+
"""Input for `reportCreate`."""
|
|
159
|
+
input ReportCreateInput {
|
|
160
|
+
"""ID of the project to add the report to."""
|
|
161
|
+
projectId: ID!
|
|
162
|
+
"""ID of the organisation."""
|
|
163
|
+
organizationId: ID!
|
|
164
|
+
"""Display name for the report."""
|
|
165
|
+
name: String!
|
|
166
|
+
"""Description of the report."""
|
|
167
|
+
description: String
|
|
168
|
+
"""Metabase report id to embed."""
|
|
169
|
+
metabaseReportId: Int!
|
|
170
|
+
"""Type of the Metabase report."""
|
|
171
|
+
metabaseReportType: ReportType!
|
|
172
|
+
"""Parameters to lock for the embedded report."""
|
|
173
|
+
lockedParameters: JSON
|
|
174
|
+
"""Display order in the project's report list."""
|
|
175
|
+
displayOrder: Int
|
|
176
|
+
}
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### `ReportCreatePayload`
|
|
180
|
+
|
|
181
|
+
```graphql
|
|
182
|
+
"""Payload returned by `reportCreate`."""
|
|
183
|
+
type ReportCreatePayload {
|
|
184
|
+
"""The created project report."""
|
|
185
|
+
projectReport: ProjectReport
|
|
186
|
+
}
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
### `ReportUpdateInput`
|
|
190
|
+
|
|
191
|
+
```graphql
|
|
192
|
+
"""
|
|
193
|
+
Input for `reportUpdate`. Omit a field to leave it unchanged (except `metabaseReportType`, which is required).
|
|
194
|
+
"""
|
|
195
|
+
input ReportUpdateInput {
|
|
196
|
+
"""ID of the project report to update."""
|
|
197
|
+
projectReportId: ID!
|
|
198
|
+
"""New display name."""
|
|
199
|
+
name: String
|
|
200
|
+
"""New description."""
|
|
201
|
+
description: String
|
|
202
|
+
"""New Metabase report id."""
|
|
203
|
+
metabaseReportId: Int
|
|
204
|
+
"""
|
|
205
|
+
Type of the Metabase report. Required to disambiguate `metabaseReportId`.
|
|
206
|
+
"""
|
|
207
|
+
metabaseReportType: ReportType!
|
|
208
|
+
"""New locked parameters."""
|
|
209
|
+
lockedParameters: JSON
|
|
210
|
+
"""New display order."""
|
|
211
|
+
displayOrder: Int
|
|
212
|
+
}
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### `ReportUpdatePayload`
|
|
216
|
+
|
|
217
|
+
```graphql
|
|
218
|
+
"""Payload returned by `reportUpdate`."""
|
|
219
|
+
type ReportUpdatePayload {
|
|
220
|
+
"""The updated project report."""
|
|
221
|
+
projectReport: ProjectReport
|
|
222
|
+
}
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
### `ReportDeleteInput`
|
|
226
|
+
|
|
227
|
+
```graphql
|
|
228
|
+
"""Input for `reportDelete`."""
|
|
229
|
+
input ReportDeleteInput {
|
|
230
|
+
"""ID of the project report to delete."""
|
|
231
|
+
projectReportId: ID!
|
|
232
|
+
}
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
### `ReportDeletePayload`
|
|
236
|
+
|
|
237
|
+
```graphql
|
|
238
|
+
"""Payload returned by `reportDelete`."""
|
|
239
|
+
type ReportDeletePayload {
|
|
240
|
+
"""Whether the report was deleted successfully."""
|
|
241
|
+
success: Boolean!
|
|
242
|
+
}
|
|
243
|
+
```
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: reference
|
|
3
|
+
layout: docs
|
|
4
|
+
generated: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Saved view schema
|
|
8
|
+
|
|
9
|
+
The operations and types that `saved-view.graphql` adds to the Management API. See [Management API schema](/reference/management-api/schema) for every domain, the endpoint and authentication.
|
|
10
|
+
|
|
11
|
+
## Queries
|
|
12
|
+
|
|
13
|
+
### `savedView`
|
|
14
|
+
|
|
15
|
+
Get a saved view by ID. Requires scope: `ORGANIZATION_PROJECTS_READ`.
|
|
16
|
+
|
|
17
|
+
```graphql
|
|
18
|
+
savedView(input: SavedViewInput!): SavedView @auth
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Mutations
|
|
22
|
+
|
|
23
|
+
### `savedViewCreate`
|
|
24
|
+
|
|
25
|
+
Save a view of a project's list. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`.
|
|
26
|
+
|
|
27
|
+
```graphql
|
|
28
|
+
savedViewCreate(input: SavedViewCreateInput!): SavedViewCreatePayload! @auth
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### `savedViewUpdate`
|
|
32
|
+
|
|
33
|
+
Rename a saved view, change what it restores, or move the default. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`.
|
|
34
|
+
|
|
35
|
+
```graphql
|
|
36
|
+
savedViewUpdate(input: SavedViewUpdateInput!): SavedViewUpdatePayload! @auth
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### `savedViewDelete`
|
|
40
|
+
|
|
41
|
+
Delete a saved view. Requires scope: `ORGANIZATION_PROJECTS_UPDATE`.
|
|
42
|
+
|
|
43
|
+
```graphql
|
|
44
|
+
savedViewDelete(input: SavedViewDeleteInput!): SavedViewDeletePayload! @auth
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Types
|
|
48
|
+
|
|
49
|
+
### `SavedView`
|
|
50
|
+
|
|
51
|
+
```graphql
|
|
52
|
+
"""A named set of list controls, restoring what a list page looked like."""
|
|
53
|
+
type SavedView {
|
|
54
|
+
"""Unique saved view identifier."""
|
|
55
|
+
id: ID!
|
|
56
|
+
"""ID of the project this view belongs to."""
|
|
57
|
+
projectId: ID!
|
|
58
|
+
"""Which list this view applies to."""
|
|
59
|
+
resource: SavedViewResource!
|
|
60
|
+
"""What the viewer called it."""
|
|
61
|
+
name: String!
|
|
62
|
+
"""
|
|
63
|
+
The `q` query-string value: the list's own search language, uninterpreted.
|
|
64
|
+
"""
|
|
65
|
+
query: String
|
|
66
|
+
"""
|
|
67
|
+
The `cols` query-string value: comma-separated column paths, in display order.
|
|
68
|
+
"""
|
|
69
|
+
columnPaths: String
|
|
70
|
+
"""The `sort` query-string value, as `<key>:<direction>`."""
|
|
71
|
+
sort: String
|
|
72
|
+
"""
|
|
73
|
+
The `from` query-string value: the first day of a fixed capture window, as `YYYY-MM-DD`.
|
|
74
|
+
"""
|
|
75
|
+
windowFrom: String
|
|
76
|
+
"""
|
|
77
|
+
The `to` query-string value: the last day of a fixed capture window, as `YYYY-MM-DD`.
|
|
78
|
+
"""
|
|
79
|
+
windowTo: String
|
|
80
|
+
"""
|
|
81
|
+
The `last` query-string value: how many units a relative capture window spans.
|
|
82
|
+
"""
|
|
83
|
+
windowLast: String
|
|
84
|
+
"""
|
|
85
|
+
The `unit` query-string value: the unit a relative capture window counts in.
|
|
86
|
+
"""
|
|
87
|
+
windowUnit: String
|
|
88
|
+
"""The `chart` query-string value: how the chart above the list is drawn."""
|
|
89
|
+
chart: String
|
|
90
|
+
"""
|
|
91
|
+
The `interval` query-string value: the bucket width of the chart above the list.
|
|
92
|
+
"""
|
|
93
|
+
chartInterval: String
|
|
94
|
+
"""
|
|
95
|
+
The `chartBy` query-string value: the path the chart above the list splits its series by.
|
|
96
|
+
"""
|
|
97
|
+
chartBy: String
|
|
98
|
+
"""
|
|
99
|
+
The `compare` query-string value: `previous` when the chart above the list outlines the period before its window.
|
|
100
|
+
"""
|
|
101
|
+
chartCompare: String
|
|
102
|
+
"""
|
|
103
|
+
Whether entering the list with nothing in its URL opens this view. At most one per project and resource.
|
|
104
|
+
"""
|
|
105
|
+
isDefault: Boolean!
|
|
106
|
+
"""When this view was saved."""
|
|
107
|
+
createdAt: DateTime!
|
|
108
|
+
"""When this view was last changed."""
|
|
109
|
+
updatedAt: DateTime!
|
|
110
|
+
}
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### `SavedViewResource`
|
|
114
|
+
|
|
115
|
+
```graphql
|
|
116
|
+
"""The list a saved view applies to."""
|
|
117
|
+
enum SavedViewResource {
|
|
118
|
+
"""The project's captured leads."""
|
|
119
|
+
LEADS
|
|
120
|
+
"""The project's visitor sessions, read from its analytics warehouse."""
|
|
121
|
+
SESSIONS
|
|
122
|
+
}
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### `SavedViewConnection`
|
|
126
|
+
|
|
127
|
+
```graphql
|
|
128
|
+
"""Relay-style connection of saved views."""
|
|
129
|
+
type SavedViewConnection {
|
|
130
|
+
"""List of saved view edges."""
|
|
131
|
+
edges: [SavedViewEdge!]!
|
|
132
|
+
"""
|
|
133
|
+
Flat list of saved views, equivalent to `edges[].node`. Convenience accessor.
|
|
134
|
+
"""
|
|
135
|
+
nodes: [SavedView!]!
|
|
136
|
+
"""Pagination metadata."""
|
|
137
|
+
pageInfo: PageInfo!
|
|
138
|
+
"""Total number of saved views matching the query."""
|
|
139
|
+
totalCount: Int!
|
|
140
|
+
}
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### `SavedViewEdge`
|
|
144
|
+
|
|
145
|
+
```graphql
|
|
146
|
+
"""Edge type for `SavedViewConnection`."""
|
|
147
|
+
type SavedViewEdge {
|
|
148
|
+
"""Pagination cursor for this edge."""
|
|
149
|
+
cursor: String!
|
|
150
|
+
"""The saved view."""
|
|
151
|
+
node: SavedView!
|
|
152
|
+
}
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### `SavedViewInput`
|
|
156
|
+
|
|
157
|
+
```graphql
|
|
158
|
+
"""Input for the top-level `savedView` query."""
|
|
159
|
+
input SavedViewInput {
|
|
160
|
+
"""ID of the saved view to fetch."""
|
|
161
|
+
id: ID!
|
|
162
|
+
}
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### `SavedViewCreateInput`
|
|
166
|
+
|
|
167
|
+
```graphql
|
|
168
|
+
"""Input for `savedViewCreate`."""
|
|
169
|
+
input SavedViewCreateInput {
|
|
170
|
+
"""ID of the project the view belongs to."""
|
|
171
|
+
projectId: ID!
|
|
172
|
+
"""Which list this view applies to."""
|
|
173
|
+
resource: SavedViewResource!
|
|
174
|
+
"""What to call it. One to 120 characters once trimmed."""
|
|
175
|
+
name: String!
|
|
176
|
+
"""The `q` query-string value."""
|
|
177
|
+
query: String
|
|
178
|
+
"""The `cols` query-string value."""
|
|
179
|
+
columnPaths: String
|
|
180
|
+
"""The `sort` query-string value."""
|
|
181
|
+
sort: String
|
|
182
|
+
"""The `from` query-string value."""
|
|
183
|
+
windowFrom: String
|
|
184
|
+
"""The `to` query-string value."""
|
|
185
|
+
windowTo: String
|
|
186
|
+
"""The `last` query-string value."""
|
|
187
|
+
windowLast: String
|
|
188
|
+
"""The `unit` query-string value."""
|
|
189
|
+
windowUnit: String
|
|
190
|
+
"""The `chart` query-string value."""
|
|
191
|
+
chart: String
|
|
192
|
+
"""The `interval` query-string value."""
|
|
193
|
+
chartInterval: String
|
|
194
|
+
"""The `chartBy` query-string value."""
|
|
195
|
+
chartBy: String
|
|
196
|
+
"""The `compare` query-string value."""
|
|
197
|
+
chartCompare: String
|
|
198
|
+
"""
|
|
199
|
+
Make this the view the list opens with. Takes the default from whichever view held it.
|
|
200
|
+
"""
|
|
201
|
+
isDefault: Boolean
|
|
202
|
+
}
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### `SavedViewUpdateInput`
|
|
206
|
+
|
|
207
|
+
```graphql
|
|
208
|
+
"""
|
|
209
|
+
Input for `savedViewUpdate`. An omitted field is left as it is, so renaming a
|
|
210
|
+
view does not disturb the URL it restores.
|
|
211
|
+
"""
|
|
212
|
+
input SavedViewUpdateInput {
|
|
213
|
+
"""ID of the saved view to update."""
|
|
214
|
+
id: ID!
|
|
215
|
+
"""A new name."""
|
|
216
|
+
name: String
|
|
217
|
+
"""A new `q` query-string value."""
|
|
218
|
+
query: String
|
|
219
|
+
"""A new `cols` query-string value."""
|
|
220
|
+
columnPaths: String
|
|
221
|
+
"""A new `sort` query-string value."""
|
|
222
|
+
sort: String
|
|
223
|
+
"""A new `from` query-string value."""
|
|
224
|
+
windowFrom: String
|
|
225
|
+
"""A new `to` query-string value."""
|
|
226
|
+
windowTo: String
|
|
227
|
+
"""A new `last` query-string value."""
|
|
228
|
+
windowLast: String
|
|
229
|
+
"""A new `unit` query-string value."""
|
|
230
|
+
windowUnit: String
|
|
231
|
+
"""A new `chart` query-string value."""
|
|
232
|
+
chart: String
|
|
233
|
+
"""A new `interval` query-string value."""
|
|
234
|
+
chartInterval: String
|
|
235
|
+
"""A new `chartBy` query-string value."""
|
|
236
|
+
chartBy: String
|
|
237
|
+
"""A new `compare` query-string value."""
|
|
238
|
+
chartCompare: String
|
|
239
|
+
"""Take or give up the default."""
|
|
240
|
+
isDefault: Boolean
|
|
241
|
+
}
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### `SavedViewDeleteInput`
|
|
245
|
+
|
|
246
|
+
```graphql
|
|
247
|
+
"""Input for `savedViewDelete`."""
|
|
248
|
+
input SavedViewDeleteInput {
|
|
249
|
+
"""ID of the saved view to delete."""
|
|
250
|
+
id: ID!
|
|
251
|
+
}
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
### `SavedViewCreatePayload`
|
|
255
|
+
|
|
256
|
+
```graphql
|
|
257
|
+
"""Payload returned by `savedViewCreate`."""
|
|
258
|
+
type SavedViewCreatePayload {
|
|
259
|
+
"""The saved view, or null when `userErrors` is non-empty."""
|
|
260
|
+
savedView: SavedView
|
|
261
|
+
"""Validation failures, keyed by input field."""
|
|
262
|
+
userErrors: [UserError!]!
|
|
263
|
+
}
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
### `SavedViewUpdatePayload`
|
|
267
|
+
|
|
268
|
+
```graphql
|
|
269
|
+
"""Payload returned by `savedViewUpdate`."""
|
|
270
|
+
type SavedViewUpdatePayload {
|
|
271
|
+
"""The updated saved view, or null when `userErrors` is non-empty."""
|
|
272
|
+
savedView: SavedView
|
|
273
|
+
"""Validation failures, keyed by input field."""
|
|
274
|
+
userErrors: [UserError!]!
|
|
275
|
+
}
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
### `SavedViewDeletePayload`
|
|
279
|
+
|
|
280
|
+
```graphql
|
|
281
|
+
"""Payload returned by `savedViewDelete`."""
|
|
282
|
+
type SavedViewDeletePayload {
|
|
283
|
+
"""ID of the deleted saved view."""
|
|
284
|
+
deletedSavedViewId: ID
|
|
285
|
+
"""Validation failures, keyed by input field."""
|
|
286
|
+
userErrors: [UserError!]!
|
|
287
|
+
}
|
|
288
|
+
```
|