@uidu/client 3.13.0 → 3.13.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.
Files changed (60) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/declarations/src/actions.d.ts +10 -0
  3. package/dist/declarations/src/benefit-enrollments.d.ts +5 -0
  4. package/dist/declarations/src/benefits.d.ts +5 -0
  5. package/dist/declarations/src/bookings.d.ts +22 -0
  6. package/dist/declarations/src/calls.d.ts +8 -0
  7. package/dist/declarations/src/campaigns.d.ts +12 -0
  8. package/dist/declarations/src/client.d.ts +13 -1
  9. package/dist/declarations/src/cms.d.ts +32 -0
  10. package/dist/declarations/src/contacts.d.ts +16 -0
  11. package/dist/declarations/src/courses.d.ts +23 -0
  12. package/dist/declarations/src/donations.d.ts +19 -0
  13. package/dist/declarations/src/events.d.ts +19 -0
  14. package/dist/declarations/src/forms.d.ts +19 -0
  15. package/dist/declarations/src/generated/index.d.ts +10 -10
  16. package/dist/declarations/src/goals.d.ts +4 -0
  17. package/dist/declarations/src/help-center.d.ts +4 -0
  18. package/dist/declarations/src/kb.d.ts +15 -0
  19. package/dist/declarations/src/models.d.ts +54 -0
  20. package/dist/declarations/src/mutations.d.ts +155 -0
  21. package/dist/declarations/src/notes.d.ts +4 -0
  22. package/dist/declarations/src/people.d.ts +8 -0
  23. package/dist/declarations/src/search.d.ts +7 -0
  24. package/dist/declarations/src/spaces.d.ts +4 -0
  25. package/dist/declarations/src/stories.d.ts +11 -0
  26. package/dist/declarations/src/system.d.ts +4 -0
  27. package/dist/declarations/src/tasks.d.ts +4 -0
  28. package/dist/declarations/src/types.d.ts +4 -0
  29. package/dist/uidu-client.cjs.dev.js +532 -8
  30. package/dist/uidu-client.cjs.prod.js +532 -8
  31. package/dist/uidu-client.esm.js +532 -8
  32. package/package.json +1 -1
  33. package/src/actions.ts +10 -6
  34. package/src/benefit-enrollments.ts +5 -0
  35. package/src/benefits.ts +5 -0
  36. package/src/bookings.ts +22 -0
  37. package/src/calls.ts +8 -0
  38. package/src/campaigns.ts +12 -0
  39. package/src/client.ts +13 -1
  40. package/src/cms.ts +32 -0
  41. package/src/contacts.ts +16 -0
  42. package/src/courses.ts +23 -0
  43. package/src/donations.ts +19 -0
  44. package/src/events.ts +19 -0
  45. package/src/forms.ts +19 -0
  46. package/src/generated/index.ts +2 -2
  47. package/src/goals.ts +4 -0
  48. package/src/help-center.ts +4 -0
  49. package/src/kb.ts +15 -0
  50. package/src/models.ts +54 -0
  51. package/src/mutations.ts +155 -0
  52. package/src/notes.ts +4 -0
  53. package/src/people.ts +8 -0
  54. package/src/queries/cms/GetPage.graphql +1 -0
  55. package/src/search.ts +7 -0
  56. package/src/spaces.ts +4 -0
  57. package/src/stories.ts +11 -0
  58. package/src/system.ts +4 -0
  59. package/src/tasks.ts +4 -0
  60. package/src/types.ts +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uidu/client",
3
- "version": "3.13.0",
3
+ "version": "3.13.1",
4
4
  "description": "Typed GraphQL client for the uidu platform. Server-first, framework-agnostic.",
5
5
  "license": "MIT",
6
6
  "author": "uidu",
package/src/actions.ts CHANGED
@@ -4,12 +4,16 @@ import {
4
4
  type ExecuteActionMutationVariables,
5
5
  } from './generated';
6
6
 
7
- // Authoring (Bearer / doorkeeper token). Generic dispatcher for any
8
- // `ActionKey` flagged `of_kind_tool_key` on the backend — invokes the same
9
- // Concept a dedicated mutation would, by key instead of a hand-written
10
- // GraphQL field. `attributes` uses the entity's own camelCase vocabulary;
11
- // associations must be GlobalIDs (the id a prior `list`/`get` returned) —
12
- // there is no by-name lookup here. See uidu/app/graphql/mutations/execute_action.rb.
7
+ /**
8
+ * Run any backend action by `key` (an `ActionKey` flagged `of_kind_tool_key`),
9
+ * with optional `id` and `attributes`; returns `{ result, errors }` or null.
10
+ *
11
+ * Authoring (Bearer / doorkeeper token). A generic dispatcher: it invokes the
12
+ * same Concept a dedicated mutation would, by key instead of a hand-written
13
+ * GraphQL field. `attributes` uses the entity's own camelCase vocabulary;
14
+ * associations must be GlobalIDs (the id a prior `list`/`get` returned) —
15
+ * there is no by-name lookup here. See uidu/app/graphql/mutations/execute_action.rb.
16
+ */
13
17
  export async function executeAction(
14
18
  client: UiduClient,
15
19
  variables: ExecuteActionMutationVariables,
@@ -6,6 +6,11 @@ import {
6
6
 
7
7
  // Authoring (Bearer / doorkeeper token). Returns the payload, incl. `errors`.
8
8
 
9
+ /**
10
+ * Enroll an employment in a benefit (`benefitId`, `employmentId`,
11
+ * `enrolledAt`). Returns the payload (with `errors`) or null; it is at
12
+ * `benefitEnrollment.node`.
13
+ */
9
14
  export async function createBenefitEnrollment(
10
15
  client: UiduClient,
11
16
  variables: CreateBenefitEnrollmentMutationVariables,
package/src/benefits.ts CHANGED
@@ -6,6 +6,11 @@ import {
6
6
 
7
7
  // Authoring (Bearer / doorkeeper token). Returns the payload, incl. `errors`.
8
8
 
9
+ /**
10
+ * Create a benefit in the workspace's catalog (name, category, provider,
11
+ * employer/employee costs). Returns the payload (with `errors`) or null; it is
12
+ * at `benefit.node`.
13
+ */
9
14
  export async function createBenefit(
10
15
  client: UiduClient,
11
16
  variables: CreateBenefitMutationVariables,
package/src/bookings.ts CHANGED
@@ -28,6 +28,10 @@ export type CalendarEvent = NonNullable<
28
28
  NonNullable<GetCalendarEventQuery['currentWorkspace']>['calendarEvent']
29
29
  >;
30
30
 
31
+ /**
32
+ * One booking with its contact, totals in cents and custom fields
33
+ * (`fieldValuesByShortname`), or null; a public token sees none.
34
+ */
31
35
  export async function getBooking(
32
36
  client: UiduClient,
33
37
  variables: GetBookingQueryVariables,
@@ -36,6 +40,10 @@ export async function getBooking(
36
40
  return result.currentWorkspace?.booking ?? null;
37
41
  }
38
42
 
43
+ /**
44
+ * The workspace's bookings as a flat array; page with `first`/`after` (or
45
+ * `last`/`before`); a public token gets an empty list.
46
+ */
39
47
  export async function listBookings(
40
48
  client: UiduClient,
41
49
  variables: ListBookingsQueryVariables = {},
@@ -44,6 +52,9 @@ export async function listBookings(
44
52
  return nodes(result.currentWorkspace?.bookings);
45
53
  }
46
54
 
55
+ /**
56
+ * One calendar (name, color, time zone), or null.
57
+ */
47
58
  export async function getCalendar(
48
59
  client: UiduClient,
49
60
  variables: GetCalendarQueryVariables,
@@ -52,6 +63,10 @@ export async function getCalendar(
52
63
  return result.currentWorkspace?.calendar ?? null;
53
64
  }
54
65
 
66
+ /**
67
+ * The workspace's calendars as a flat array; page with `first`/`after` (or
68
+ * `last`/`before`).
69
+ */
55
70
  export async function listCalendars(
56
71
  client: UiduClient,
57
72
  variables: ListCalendarsQueryVariables = {},
@@ -60,6 +75,9 @@ export async function listCalendars(
60
75
  return nodes(result.currentWorkspace?.calendars);
61
76
  }
62
77
 
78
+ /**
79
+ * One calendar event with its rich-text `body` and its calendar, or null.
80
+ */
63
81
  export async function getCalendarEvent(
64
82
  client: UiduClient,
65
83
  variables: GetCalendarEventQueryVariables,
@@ -68,6 +86,10 @@ export async function getCalendarEvent(
68
86
  return result.currentWorkspace?.calendarEvent ?? null;
69
87
  }
70
88
 
89
+ /**
90
+ * Calendar events as a flat array, optionally narrowed by `calendarIds` and
91
+ * named `scopes` (e.g. `upcoming`); page with `first`/`after`.
92
+ */
71
93
  export async function listCalendarEvents(
72
94
  client: UiduClient,
73
95
  variables: ListCalendarEventsQueryVariables = {},
package/src/calls.ts CHANGED
@@ -12,6 +12,10 @@ export type Call = NonNullable<
12
12
  NonNullable<GetCallQuery['currentWorkspace']>['call']
13
13
  >;
14
14
 
15
+ /**
16
+ * One call (a job opening or open call) with its application `form`, same
17
+ * shape as `getForm`, or null.
18
+ */
15
19
  export async function getCall(
16
20
  client: UiduClient,
17
21
  variables: GetCallQueryVariables,
@@ -20,6 +24,10 @@ export async function getCall(
20
24
  return result.currentWorkspace?.call ?? null;
21
25
  }
22
26
 
27
+ /**
28
+ * The workspace's calls as a flat array of summaries, without their forms;
29
+ * page with `first`/`after`.
30
+ */
23
31
  export async function listCalls(
24
32
  client: UiduClient,
25
33
  variables: ListCallsQueryVariables = {},
package/src/campaigns.ts CHANGED
@@ -14,6 +14,10 @@ export type Campaign = NonNullable<
14
14
  NonNullable<GetCampaignQuery['currentWorkspace']>['campaign']
15
15
  >;
16
16
 
17
+ /**
18
+ * One campaign with its `preferences` and target `list`, or null; a public
19
+ * token sees none.
20
+ */
17
21
  export async function getCampaign(
18
22
  client: UiduClient,
19
23
  variables: GetCampaignQueryVariables,
@@ -22,6 +26,10 @@ export async function getCampaign(
22
26
  return result.currentWorkspace?.campaign ?? null;
23
27
  }
24
28
 
29
+ /**
30
+ * The workspace's campaigns as a flat array, optionally filtered by `kind` and
31
+ * `status`; page with `first`/`after`.
32
+ */
25
33
  export async function listCampaigns(
26
34
  client: UiduClient,
27
35
  variables: ListCampaignsQueryVariables = {},
@@ -30,6 +38,10 @@ export async function listCampaigns(
30
38
  return nodes(result.currentWorkspace?.campaigns);
31
39
  }
32
40
 
41
+ /**
42
+ * The email blasts of the workspace's campaigns with their delivery metrics
43
+ * (sent, opened, clicked), as a flat array; page with `first`/`after`.
44
+ */
33
45
  export async function listEmailCampaigns(
34
46
  client: UiduClient,
35
47
  variables: ListEmailCampaignsQueryVariables = {},
package/src/client.ts CHANGED
@@ -3,6 +3,13 @@ import { ClientError, GraphQLClient } from 'graphql-request';
3
3
  import { UiduError, type UiduClientConfig } from './types';
4
4
  import { normalizeMutationVariables } from './utils/fieldValues';
5
5
 
6
+ /**
7
+ * Sends GraphQL documents to one uidu endpoint with the configured
8
+ * credentials, and throws a `UiduError` when a request fails.
9
+ *
10
+ * `mutate` also wraps a bare `fieldValuesAttributes[].content` into
11
+ * `{ value }`, which the API would otherwise silently discard.
12
+ */
6
13
  export class UiduClient {
7
14
  readonly endpoint: string;
8
15
  private readonly client: GraphQLClient;
@@ -67,12 +74,17 @@ export class UiduClient {
67
74
  }
68
75
  }
69
76
 
77
+ /**
78
+ * Build a `UiduClient`; it needs a `workspace` or an `endpoint`, and
79
+ * authenticates with `publicToken`, `apiKey` or `getToken`.
80
+ */
70
81
  export function createClient(config: UiduClientConfig): UiduClient {
71
82
  return new UiduClient(config);
72
83
  }
73
84
 
74
85
  /**
75
- * Client config for a custom app, from a connected `@uidu/app-bridge`:
86
+ * Client config for a custom app, from a connected `@uidu/app-bridge`: the
87
+ * bridge's GraphQL endpoint, with its session token asked for per request.
76
88
  *
77
89
  * ```ts
78
90
  * const client = createClient(fromBridge(await connect()));
package/src/cms.ts CHANGED
@@ -31,6 +31,12 @@ export type Template = NonNullable<
31
31
  >['template']
32
32
  >;
33
33
 
34
+ /**
35
+ * A legacy CMS page by project and `slug`, with its metadata and ordered
36
+ * `pageBlocks` (and any linked form's questions), or null.
37
+ *
38
+ * For sites on the new CMS use `getPageBySlug` in `sites.ts`.
39
+ */
34
40
  export async function getPage(
35
41
  client: UiduClient,
36
42
  variables: GetPageQueryVariables,
@@ -39,6 +45,10 @@ export async function getPage(
39
45
  return result.currentWorkspace?.project?.page ?? null;
40
46
  }
41
47
 
48
+ /**
49
+ * The pages of a legacy CMS project (`id` and `slug`), one Relay page at a
50
+ * time; use `paginate` with `ListPagesDocument` for all of them.
51
+ */
42
52
  export async function listPages(
43
53
  client: UiduClient,
44
54
  variables: ListPagesQueryVariables,
@@ -47,6 +57,10 @@ export async function listPages(
47
57
  return nodes(result.currentWorkspace?.project?.pages);
48
58
  }
49
59
 
60
+ /**
61
+ * A legacy CMS template by id, with every page it holds and their blocks, or
62
+ * null.
63
+ */
50
64
  export async function getTemplate(
51
65
  client: UiduClient,
52
66
  variables: GetTemplateQueryVariables,
@@ -58,6 +72,10 @@ export async function getTemplate(
58
72
  // --- Authoring (Bearer / doorkeeper token) ------------------------------------
59
73
  // Each returns the mutation payload, including `errors` — always check it.
60
74
 
75
+ /**
76
+ * Create a legacy CMS project (`name`, `slug`, `domain`). Returns the payload
77
+ * (with `errors`) or null; the new project is at `project.node`.
78
+ */
61
79
  export async function createProject(
62
80
  client: UiduClient,
63
81
  variables: CreateProjectMutationVariables,
@@ -66,6 +84,11 @@ export async function createProject(
66
84
  return result.createProject ?? null;
67
85
  }
68
86
 
87
+ /**
88
+ * Create a legacy CMS page from a `templateId`, with `slug` and optional
89
+ * `metadataAttributes` (there is no `projectId` attribute). Returns the payload
90
+ * (with `errors`) or null.
91
+ */
69
92
  export async function createPage(
70
93
  client: UiduClient,
71
94
  variables: CreatePageMutationVariables,
@@ -74,6 +97,10 @@ export async function createPage(
74
97
  return result.createPage ?? null;
75
98
  }
76
99
 
100
+ /**
101
+ * Place a template block on a page (`pageId`, `templateBlockId`, both
102
+ * numeric). Returns the payload (with `errors`) or null.
103
+ */
77
104
  export async function createPageBlock(
78
105
  client: UiduClient,
79
106
  variables: CreatePageBlockMutationVariables,
@@ -82,6 +109,11 @@ export async function createPageBlock(
82
109
  return result.createPageBlock ?? null;
83
110
  }
84
111
 
112
+ /**
113
+ * Create a field value, e.g. set a page block's field (`fieldId`, `content`).
114
+ * Returns the payload (with `errors`) or null; the new value is at
115
+ * `fieldValue.node`.
116
+ */
85
117
  export async function createFieldValue(
86
118
  client: UiduClient,
87
119
  variables: CreateFieldValueMutationVariables,
package/src/contacts.ts CHANGED
@@ -19,6 +19,10 @@ export type Deal = NonNullable<
19
19
  NonNullable<GetDealQuery['currentWorkspace']>['deal']
20
20
  >;
21
21
 
22
+ /**
23
+ * One contact with its address and custom fields (`fieldValuesByShortname`),
24
+ * or null; a public token sees none.
25
+ */
22
26
  export async function getContact(
23
27
  client: UiduClient,
24
28
  variables: GetContactQueryVariables,
@@ -27,11 +31,19 @@ export async function getContact(
27
31
  return result.currentWorkspace?.contact ?? null;
28
32
  }
29
33
 
34
+ /**
35
+ * Every contact the client may see, as an array: the field is not a
36
+ * connection, so there is no pagination.
37
+ */
30
38
  export async function listContacts(client: UiduClient) {
31
39
  const result = await client.query(ListContactsDocument);
32
40
  return result.currentWorkspace?.contacts ?? [];
33
41
  }
34
42
 
43
+ /**
44
+ * One deal with its pipeline, status and owner (`user`), or null; `amount` is
45
+ * in cents.
46
+ */
35
47
  export async function getDeal(
36
48
  client: UiduClient,
37
49
  variables: GetDealQueryVariables,
@@ -40,6 +52,10 @@ export async function getDeal(
40
52
  return result.currentWorkspace?.deal ?? null;
41
53
  }
42
54
 
55
+ /**
56
+ * The workspace's deals as a flat array, optionally filtered with search
57
+ * `params`; page with `first`/`after`.
58
+ */
43
59
  export async function listDeals(
44
60
  client: UiduClient,
45
61
  variables: ListDealsQueryVariables = {},
package/src/courses.ts CHANGED
@@ -28,6 +28,9 @@ export type Lecture = NonNullable<
28
28
  NonNullable<GetLectureQuery['currentWorkspace']>['lecture']
29
29
  >;
30
30
 
31
+ /**
32
+ * One course with its rich-text `body`, or null.
33
+ */
31
34
  export async function getCourse(
32
35
  client: UiduClient,
33
36
  variables: GetCourseQueryVariables,
@@ -36,6 +39,10 @@ export async function getCourse(
36
39
  return result.currentWorkspace?.course ?? null;
37
40
  }
38
41
 
42
+ /**
43
+ * The workspace's courses as a flat array, optionally filtered with search
44
+ * `params`; page with `first`/`after`.
45
+ */
39
46
  export async function listCourses(
40
47
  client: UiduClient,
41
48
  variables: ListCoursesQueryVariables = {},
@@ -44,6 +51,10 @@ export async function listCourses(
44
51
  return nodes(result.currentWorkspace?.courses);
45
52
  }
46
53
 
54
+ /**
55
+ * One enrollment with its course, contact and custom fields
56
+ * (`fieldValuesByShortname`), or null.
57
+ */
47
58
  export async function getEnrollment(
48
59
  client: UiduClient,
49
60
  variables: GetEnrollmentQueryVariables,
@@ -52,6 +63,10 @@ export async function getEnrollment(
52
63
  return result.currentWorkspace?.enrollment ?? null;
53
64
  }
54
65
 
66
+ /**
67
+ * Course enrollments as a flat array, optionally filtered with search
68
+ * `params`; page with `first`/`after`.
69
+ */
55
70
  export async function listEnrollments(
56
71
  client: UiduClient,
57
72
  variables: ListEnrollmentsQueryVariables = {},
@@ -60,6 +75,10 @@ export async function listEnrollments(
60
75
  return nodes(result.currentWorkspace?.enrollments);
61
76
  }
62
77
 
78
+ /**
79
+ * One lecture with its `body`, its course and its `nextLecture` /
80
+ * `previousLecture` for navigation, or null.
81
+ */
63
82
  export async function getLecture(
64
83
  client: UiduClient,
65
84
  variables: GetLectureQueryVariables,
@@ -68,6 +87,10 @@ export async function getLecture(
68
87
  return result.currentWorkspace?.lecture ?? null;
69
88
  }
70
89
 
90
+ /**
91
+ * Lectures across every course as a flat array (filter by `course.id`
92
+ * yourself), with `scopes`, `orderBy`, `from`/`to`; page with `first`/`after`.
93
+ */
71
94
  export async function listLectures(
72
95
  client: UiduClient,
73
96
  variables: ListLecturesQueryVariables = {},
package/src/donations.ts CHANGED
@@ -16,6 +16,10 @@ export type DonationCampaign = NonNullable<
16
16
  NonNullable<GetDonationCampaignQuery['currentWorkspace']>['donationCampaign']
17
17
  >;
18
18
 
19
+ /**
20
+ * One donation campaign with its body, its totals (`goal`, `donationsAmount`,
21
+ * in cents) and its donor `form`, or null.
22
+ */
19
23
  export async function getDonationCampaign(
20
24
  client: UiduClient,
21
25
  variables: GetDonationCampaignQueryVariables,
@@ -24,6 +28,10 @@ export async function getDonationCampaign(
24
28
  return result.currentWorkspace?.donationCampaign ?? null;
25
29
  }
26
30
 
31
+ /**
32
+ * The workspace's donation campaigns as a flat array of summaries with their
33
+ * totals in cents; page with `first`/`after`.
34
+ */
27
35
  export async function listDonationCampaigns(
28
36
  client: UiduClient,
29
37
  variables: ListDonationCampaignsQueryVariables = {},
@@ -32,6 +40,13 @@ export async function listDonationCampaigns(
32
40
  return nodes(result.currentWorkspace?.donationCampaigns);
33
41
  }
34
42
 
43
+ /**
44
+ * Record a donation (amount in cents) to a campaign, creating the donor's
45
+ * contact inline; returns `{ errors, donation }` as-is.
46
+ *
47
+ * It records the gift only: charging a card is a separate step with your
48
+ * payment processor.
49
+ */
35
50
  export async function createDonation(
36
51
  client: UiduClient,
37
52
  variables: CreateDonationMutationVariables,
@@ -40,6 +55,10 @@ export async function createDonation(
40
55
  return result.createDonation ?? null;
41
56
  }
42
57
 
58
+ /**
59
+ * Create a donation campaign (`goal` in cents); returns the payload as-is,
60
+ * `{ errors, donationCampaign }`.
61
+ */
43
62
  export async function createDonationCampaign(
44
63
  client: UiduClient,
45
64
  variables: CreateDonationCampaignMutationVariables,
package/src/events.ts CHANGED
@@ -16,6 +16,10 @@ export type Event = NonNullable<
16
16
  NonNullable<GetEventQuery['currentWorkspace']>['event']
17
17
  >;
18
18
 
19
+ /**
20
+ * One event with its primary address, its next or current `instance` and all
21
+ * its `instances`, or null.
22
+ */
19
23
  export async function getEvent(
20
24
  client: UiduClient,
21
25
  variables: GetEventQueryVariables,
@@ -24,6 +28,10 @@ export async function getEvent(
24
28
  return result.currentWorkspace?.event ?? null;
25
29
  }
26
30
 
31
+ /**
32
+ * The workspace's events as a flat array of summaries, each with its next or
33
+ * current `instance`; page with `first`/`after`.
34
+ */
27
35
  export async function listEvents(
28
36
  client: UiduClient,
29
37
  variables: ListEventsQueryVariables = {},
@@ -32,6 +40,13 @@ export async function listEvents(
32
40
  return nodes(result.currentWorkspace?.events);
33
41
  }
34
42
 
43
+ /**
44
+ * RSVP a contact to an event: `attendableId` is an event *instance* id, never
45
+ * the event id.
46
+ *
47
+ * Returns the payload as-is, `{ errors, attendance }`; validation failures
48
+ * come back in `errors`, not as a throw.
49
+ */
35
50
  export async function createAttendance(
36
51
  client: UiduClient,
37
52
  variables: CreateAttendanceMutationVariables,
@@ -40,6 +55,10 @@ export async function createAttendance(
40
55
  return result.createAttendance ?? null;
41
56
  }
42
57
 
58
+ /**
59
+ * Create an event; returns the payload as-is, `{ errors, event }`, validation
60
+ * failures included.
61
+ */
43
62
  export async function createEvent(
44
63
  client: UiduClient,
45
64
  variables: CreateEventMutationVariables,
package/src/forms.ts CHANGED
@@ -16,6 +16,10 @@ export type Form = NonNullable<
16
16
  NonNullable<GetFormQuery['currentWorkspace']>['form']
17
17
  >;
18
18
 
19
+ /**
20
+ * One form with its questions (`inputs`, a connection of `FormQuestion` nodes
21
+ * with field metadata) ready to render, or null.
22
+ */
19
23
  export async function getForm(
20
24
  client: UiduClient,
21
25
  variables: GetFormQueryVariables,
@@ -24,6 +28,10 @@ export async function getForm(
24
28
  return result.currentWorkspace?.form ?? null;
25
29
  }
26
30
 
31
+ /**
32
+ * The workspace's forms as a flat array of summaries, without their questions
33
+ * (use `getForm` for those); page with `first`/`after`.
34
+ */
27
35
  export async function listForms(
28
36
  client: UiduClient,
29
37
  variables: ListFormsQueryVariables = {},
@@ -32,6 +40,13 @@ export async function listForms(
32
40
  return nodes(result.currentWorkspace?.forms);
33
41
  }
34
42
 
43
+ /**
44
+ * Submit a new response to a form; returns the payload as-is,
45
+ * `{ errors, formResponse }`, validation failures included.
46
+ *
47
+ * Each `fieldValuesAttributes[].content` must be `{ value }`; `client.mutate`
48
+ * wraps a bare value for you.
49
+ */
35
50
  export async function createFormResponse(
36
51
  client: UiduClient,
37
52
  variables: CreateFormResponseMutationVariables,
@@ -40,6 +55,10 @@ export async function createFormResponse(
40
55
  return result.createFormResponse ?? null;
41
56
  }
42
57
 
58
+ /**
59
+ * Update a form response (answers by field value `id`, or a state `event` like
60
+ * `'complete!'`); returns `{ errors, formResponse }` as-is.
61
+ */
43
62
  export async function updateFormResponse(
44
63
  client: UiduClient,
45
64
  variables: UpdateFormResponseMutationVariables,
@@ -65575,7 +65575,7 @@ export type GetPageQueryVariables = Exact<{
65575
65575
  }>;
65576
65576
 
65577
65577
 
65578
- export type GetPageQuery = { __typename?: 'Query', currentWorkspace?: { __typename?: 'Workspace', name?: string | null, project?: { __typename?: 'Project', id: string, name?: string | null, page?: { __typename?: 'Page', id: string, name?: string | null, slug?: string | null, metadata?: { __typename?: 'Metadata', metaTitle?: string | null, metaDescription?: string | null, metaKeywords?: string | null, metaImage?: string | null } | null, pageBlocks?: Array<{ __typename?: 'PageBlock', id: string, shortname?: string | null, templateBlock: { __typename?: 'TemplateBlock', id: string, name?: string | null, shortname?: string | null, block: { __typename?: 'Block', id: string, shortname?: string | null, name?: string | null } }, fieldValues?: Array<{ __typename?: 'FieldValue', id: string, content?: any | null, field: { __typename?: 'Field', id: string, name?: string | null, shortname?: string | null, kind?: FieldKind | null }, linkedRecord?: { __typename?: 'Attachment' } | { __typename?: 'Call' } | { __typename?: 'Contact' } | { __typename?: 'Event' } | { __typename?: 'FieldOption' } | { __typename?: 'Form', id: string, inputs: { __typename?: 'FormQuestionConnection', edges?: Array<{ __typename?: 'FormQuestionEdge', node?: { __typename?: 'FormQuestion', id: string, position: number, label?: any | null, required?: boolean | null, hidden?: boolean | null, placeholder?: string | null, hint?: string | null, fieldKind?: string | null, rules?: any | null, preferences?: any | null, field: { __typename?: 'Field', id: string, kind?: FieldKind | null, name?: string | null, accessor?: string | null, type?: string | null, shortname?: string | null, uploadPresignedUrl?: any | null, uploadUrl?: string | null, uploadParams?: any | null, options?: Array<{ __typename?: 'FieldOption', id: string, name?: string | null }> | null } } | null } | null> | null } } | { __typename?: 'ModelItem' } | { __typename?: 'Organization' } | { __typename?: 'Story' } | { __typename?: 'User' } | null }> | null }> | null } | null } | null } | null };
65578
+ export type GetPageQuery = { __typename?: 'Query', currentWorkspace?: { __typename?: 'Workspace', name?: string | null, project?: { __typename?: 'Project', id: string, name?: string | null, page?: { __typename?: 'Page', id: string, name?: string | null, slug?: string | null, metadata?: { __typename?: 'Metadata', metaTitle?: string | null, metaDescription?: string | null, metaKeywords?: string | null, metaImage?: string | null } | null, pageBlocks?: Array<{ __typename?: 'PageBlock', id: string, shortname?: string | null, templateBlock: { __typename?: 'TemplateBlock', id: string, name?: string | null, shortname?: string | null, block: { __typename?: 'Block', id: string, shortname?: string | null, name?: string | null } }, fieldValues?: Array<{ __typename?: 'FieldValue', id: string, content?: any | null, field: { __typename?: 'Field', id: string, name?: string | null, shortname?: string | null, kind?: FieldKind | null }, linkedRecord?: { __typename: 'Attachment' } | { __typename: 'Call' } | { __typename: 'Contact' } | { __typename: 'Event' } | { __typename: 'FieldOption' } | { __typename: 'Form', id: string, inputs: { __typename?: 'FormQuestionConnection', edges?: Array<{ __typename?: 'FormQuestionEdge', node?: { __typename?: 'FormQuestion', id: string, position: number, label?: any | null, required?: boolean | null, hidden?: boolean | null, placeholder?: string | null, hint?: string | null, fieldKind?: string | null, rules?: any | null, preferences?: any | null, field: { __typename?: 'Field', id: string, kind?: FieldKind | null, name?: string | null, accessor?: string | null, type?: string | null, shortname?: string | null, uploadPresignedUrl?: any | null, uploadUrl?: string | null, uploadParams?: any | null, options?: Array<{ __typename?: 'FieldOption', id: string, name?: string | null }> | null } } | null } | null> | null } } | { __typename: 'ModelItem' } | { __typename: 'Organization' } | { __typename: 'Story' } | { __typename: 'User' } | null }> | null }> | null } | null } | null } | null };
65579
65579
 
65580
65580
  export type GetTemplateQueryVariables = Exact<{
65581
65581
  projectId: Scalars['ID']['input'];
@@ -66464,7 +66464,7 @@ export const CreateFieldValueDocument = {"kind":"Document","definitions":[{"kind
66464
66464
  export const CreatePageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreatePage"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreatePageInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPage"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"page"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}},{"kind":"Field","name":{"kind":"Name","value":"errors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}}]}}]} as unknown as DocumentNode<CreatePageMutation, CreatePageMutationVariables>;
66465
66465
  export const CreatePageBlockDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreatePageBlock"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreatePageBlockInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createPageBlock"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"pageBlock"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"shortname"}}]}},{"kind":"Field","name":{"kind":"Name","value":"errors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}}]}}]} as unknown as DocumentNode<CreatePageBlockMutation, CreatePageBlockMutationVariables>;
66466
66466
  export const CreateProjectDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateProject"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateProjectInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createProject"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"project"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"errors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}}]}}]} as unknown as DocumentNode<CreateProjectMutation, CreateProjectMutationVariables>;
66467
- export const GetPageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetPage"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"projectId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"slug"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"project"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"projectId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"page"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"slug"},"value":{"kind":"Variable","name":{"kind":"Name","value":"slug"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"metaTitle"}},{"kind":"Field","name":{"kind":"Name","value":"metaDescription"}},{"kind":"Field","name":{"kind":"Name","value":"metaKeywords"}},{"kind":"Field","name":{"kind":"Name","value":"metaImage"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageBlocks"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"shortname"}},{"kind":"Field","name":{"kind":"Name","value":"templateBlock"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"shortname"}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"shortname"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldValues"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"field"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"shortname"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}}]}},{"kind":"Field","name":{"kind":"Name","value":"linkedRecord"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Form"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","alias":{"kind":"Name","value":"inputs"},"name":{"kind":"Name","value":"formQuestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"required"}},{"kind":"Field","name":{"kind":"Name","value":"hidden"}},{"kind":"Field","name":{"kind":"Name","value":"placeholder"}},{"kind":"Field","name":{"kind":"Name","value":"hint"}},{"kind":"Field","name":{"kind":"Name","value":"fieldKind"}},{"kind":"Field","name":{"kind":"Name","value":"rules"}},{"kind":"Field","name":{"kind":"Name","value":"preferences"}},{"kind":"Field","name":{"kind":"Name","value":"field"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"accessor"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"shortname"}},{"kind":"Field","name":{"kind":"Name","value":"uploadPresignedUrl"}},{"kind":"Field","name":{"kind":"Name","value":"uploadUrl"}},{"kind":"Field","name":{"kind":"Name","value":"uploadParams"}},{"kind":"Field","alias":{"kind":"Name","value":"options"},"name":{"kind":"Name","value":"optionList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<GetPageQuery, GetPageQueryVariables>;
66467
+ export const GetPageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetPage"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"projectId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"slug"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"project"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"projectId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"page"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"slug"},"value":{"kind":"Variable","name":{"kind":"Name","value":"slug"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"metaTitle"}},{"kind":"Field","name":{"kind":"Name","value":"metaDescription"}},{"kind":"Field","name":{"kind":"Name","value":"metaKeywords"}},{"kind":"Field","name":{"kind":"Name","value":"metaImage"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageBlocks"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"shortname"}},{"kind":"Field","name":{"kind":"Name","value":"templateBlock"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"shortname"}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"shortname"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldValues"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"field"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"shortname"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}}]}},{"kind":"Field","name":{"kind":"Name","value":"linkedRecord"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Form"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","alias":{"kind":"Name","value":"inputs"},"name":{"kind":"Name","value":"formQuestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"required"}},{"kind":"Field","name":{"kind":"Name","value":"hidden"}},{"kind":"Field","name":{"kind":"Name","value":"placeholder"}},{"kind":"Field","name":{"kind":"Name","value":"hint"}},{"kind":"Field","name":{"kind":"Name","value":"fieldKind"}},{"kind":"Field","name":{"kind":"Name","value":"rules"}},{"kind":"Field","name":{"kind":"Name","value":"preferences"}},{"kind":"Field","name":{"kind":"Name","value":"field"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"accessor"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"shortname"}},{"kind":"Field","name":{"kind":"Name","value":"uploadPresignedUrl"}},{"kind":"Field","name":{"kind":"Name","value":"uploadUrl"}},{"kind":"Field","name":{"kind":"Name","value":"uploadParams"}},{"kind":"Field","alias":{"kind":"Name","value":"options"},"name":{"kind":"Name","value":"optionList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<GetPageQuery, GetPageQueryVariables>;
66468
66468
  export const GetTemplateDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetTemplate"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"projectId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"templateId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"project"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"projectId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"template"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"templateId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"pages"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"pageBlocks"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"shortname"}},{"kind":"Field","name":{"kind":"Name","value":"templateBlock"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"shortname"}},{"kind":"Field","name":{"kind":"Name","value":"block"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"shortname"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldValues"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"field"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"shortname"}}]}}]}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<GetTemplateQuery, GetTemplateQueryVariables>;
66469
66469
  export const ListPagesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListPages"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"projectId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"first"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"after"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"project"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"projectId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"pages"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"Variable","name":{"kind":"Name","value":"first"}}},{"kind":"Argument","name":{"kind":"Name","value":"after"},"value":{"kind":"Variable","name":{"kind":"Name","value":"after"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}}]}},{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<ListPagesQuery, ListPagesQueryVariables>;
66470
66470
  export const ListProjectsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListProjects"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"first"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"after"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"projects"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"Variable","name":{"kind":"Name","value":"first"}}},{"kind":"Argument","name":{"kind":"Name","value":"after"},"value":{"kind":"Variable","name":{"kind":"Name","value":"after"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}}]}},{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<ListProjectsQuery, ListProjectsQueryVariables>;