@uidu/client 3.12.0 → 3.13.0

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.
@@ -7,7 +7,7 @@ export { normalizeFieldValueContent, normalizeFieldValuesAttributes, } from "./u
7
7
  export { ListApplicationsDocument, ListBookingsDocument, ListCalendarsDocument, ListCalendarEventsDocument, ListCallsDocument, ListCampaignsDocument, ListEmailCampaignsDocument, ListCoursesDocument, ListDealsDocument, ListDonationCampaignsDocument, ListEmployeesDocument, ListEnrollmentsDocument, ListEventsDocument, ListFormsDocument, ListGoalsDocument, ListKbArticlesDocument, ListKbCollectionsDocument, ListLecturesDocument, ListPagesDocument, ListStoriesDocument, ListTimeframesDocument, } from "./generated/index.js";
8
8
  export { getPage, listPages, getTemplate, createProject, createPage, createPageBlock, createFieldValue, listProjects, } from "./cms.js";
9
9
  export type { Page, Template } from "./cms.js";
10
- export { getSiteByDomain, getSite, getPageBySlug, listSitePages, getSingletonBlock, } from "./sites.js";
10
+ export { getSiteByDomain, getSite, getPageBySlug, listSitePages, getSingletonBlock, createSite, } from "./sites.js";
11
11
  export type { Site, SiteModel, SiteFields, SiteBlock, SitePage, SitePageSummary, } from "./sites.js";
12
12
  export { createWorkspace, generateWorkspaceApiCredentials } from "./system.js";
13
13
  export { createSpace } from "./spaces.js";
@@ -16,7 +16,7 @@ export { createNote } from "./notes.js";
16
16
  export { executeAction } from "./actions.js";
17
17
  export { createBenefit } from "./benefits.js";
18
18
  export { createBenefitEnrollment } from "./benefit-enrollments.js";
19
- export { createCourse, updateCourse, deleteCourse, createForm, updateForm, deleteForm, createContact, deleteContact, createDeal, updateDeal, createKbCollection, updateKbCollection, deleteKbCollection, createKbArticle, updateKbArticle, deleteKbArticle, createChannel, updateChannel, deleteChannel, updateEvent, updateStory, updateDonationCampaign, deleteDonationCampaign, updateTask, deleteTask, updateNote, deleteNote, updateSpace, deleteSpace, createEmployee, updateEmployee, createEmployment, updateEmployment, deleteEmployment, terminateEmployment, createCompensation, updateCompensation, deleteCompensation, } from "./mutations.js";
19
+ export { createCourse, updateCourse, deleteCourse, createForm, updateForm, deleteForm, createContact, deleteContact, createDeal, updateDeal, createKbCollection, updateKbCollection, deleteKbCollection, createKbArticle, updateKbArticle, deleteKbArticle, createChannel, updateChannel, deleteChannel, updateEvent, updateStory, updateDonationCampaign, deleteDonationCampaign, updateTask, deleteTask, updateNote, deleteNote, updateSpace, deleteSpace, createEmployee, updateEmployee, createEmployment, updateEmployment, deleteEmployment, terminateEmployment, createCompensation, updateCompensation, deleteCompensation, createTimeClock, } from "./mutations.js";
20
20
  export { getForm, listForms, createFormResponse, updateFormResponse, } from "./forms.js";
21
21
  export type { Form } from "./forms.js";
22
22
  export { getChannel, listChannels } from "./help-center.js";
@@ -29,7 +29,7 @@ export { getCall, listCalls } from "./calls.js";
29
29
  export type { Call } from "./calls.js";
30
30
  export { getJob, listJobs } from "./jobs.js";
31
31
  export type { Job } from "./jobs.js";
32
- export { listApplications, createApplication } from "./applications.js";
32
+ export { listApplications, createApplication, updateApplication, completeApplication, } from "./applications.js";
33
33
  export type { Application } from "./applications.js";
34
34
  export { getDonationCampaign, listDonationCampaigns, createDonation, createDonationCampaign, } from "./donations.js";
35
35
  export type { DonationCampaign } from "./donations.js";
@@ -1,5 +1,5 @@
1
1
  import type { UiduClient } from "./client.js";
2
- import { type CreateChannelMutationVariables, type CreateContactMutationVariables, type CreateCourseMutationVariables, type CreateCompensationMutationVariables, type CreateDealMutationVariables, type CreateEmployeeMutationVariables, type CreateEmploymentMutationVariables, type CreateFormMutationVariables, type CreateKbArticleMutationVariables, type CreateKbCollectionMutationVariables, type DeleteChannelMutationVariables, type DeleteContactMutationVariables, type DeleteCourseMutationVariables, type DeleteCompensationMutationVariables, type DeleteDonationCampaignMutationVariables, type DeleteEmploymentMutationVariables, type DeleteFormMutationVariables, type DeleteKbArticleMutationVariables, type DeleteKbCollectionMutationVariables, type DeleteNoteMutationVariables, type DeleteSpaceMutationVariables, type DeleteTaskMutationVariables, type UpdateChannelMutationVariables, type UpdateCompensationMutationVariables, type UpdateCourseMutationVariables, type UpdateDealMutationVariables, type UpdateDonationCampaignMutationVariables, type UpdateEmployeeMutationVariables, type UpdateEmploymentMutationVariables, type UpdateEventMutationVariables, type UpdateFormMutationVariables, type UpdateKbArticleMutationVariables, type UpdateKbCollectionMutationVariables, type UpdateNoteMutationVariables, type UpdateSpaceMutationVariables, type UpdateStoryMutationVariables, type UpdateTaskMutationVariables } from "./generated/index.js";
2
+ import { type CreateChannelMutationVariables, type CreateContactMutationVariables, type CreateCourseMutationVariables, type CreateCompensationMutationVariables, type CreateDealMutationVariables, type CreateEmployeeMutationVariables, type CreateEmploymentMutationVariables, type CreateFormMutationVariables, type CreateKbArticleMutationVariables, type CreateKbCollectionMutationVariables, type CreateTimeClockMutationVariables, type DeleteChannelMutationVariables, type DeleteContactMutationVariables, type DeleteCourseMutationVariables, type DeleteCompensationMutationVariables, type DeleteDonationCampaignMutationVariables, type DeleteEmploymentMutationVariables, type DeleteFormMutationVariables, type DeleteKbArticleMutationVariables, type DeleteKbCollectionMutationVariables, type DeleteNoteMutationVariables, type DeleteSpaceMutationVariables, type DeleteTaskMutationVariables, type UpdateChannelMutationVariables, type UpdateCompensationMutationVariables, type UpdateCourseMutationVariables, type UpdateDealMutationVariables, type UpdateDonationCampaignMutationVariables, type UpdateEmployeeMutationVariables, type UpdateEmploymentMutationVariables, type UpdateEventMutationVariables, type UpdateFormMutationVariables, type UpdateKbArticleMutationVariables, type UpdateKbCollectionMutationVariables, type UpdateNoteMutationVariables, type UpdateSpaceMutationVariables, type UpdateStoryMutationVariables, type UpdateTaskMutationVariables } from "./generated/index.js";
3
3
  export declare function createCourse(c: UiduClient, v: CreateCourseMutationVariables): Promise<{
4
4
  __typename?: "CreateCoursePayload";
5
5
  course?: {
@@ -269,6 +269,25 @@ export declare function terminateEmployment(c: UiduClient, args: {
269
269
  type: string;
270
270
  }>;
271
271
  } | null>;
272
+ export declare function createTimeClock(c: UiduClient, v: CreateTimeClockMutationVariables): Promise<{
273
+ __typename?: "CreateTimeClockPayload";
274
+ timeClock?: {
275
+ __typename?: "TimeClockEdge";
276
+ node?: {
277
+ __typename?: "TimeClock";
278
+ id: string;
279
+ beginsAt?: any | null;
280
+ finishesAt?: any | null;
281
+ kind?: number | null;
282
+ } | null;
283
+ } | null;
284
+ errors: Array<{
285
+ __typename?: "Error";
286
+ key: string;
287
+ name: string;
288
+ type: string;
289
+ }>;
290
+ } | null>;
272
291
  export declare function createCompensation(c: UiduClient, v: CreateCompensationMutationVariables): Promise<{
273
292
  __typename?: "CreateCompensationPayload";
274
293
  compensation?: {
@@ -1,5 +1,5 @@
1
1
  import type { UiduClient } from "./client.js";
2
- import { type PublishableStatus, type SiteFieldsFragment, type SiteModelFieldsFragment } from "./generated/index.js";
2
+ import { type CreateSiteMutationVariables, type PublishableStatus, type SiteFieldsFragment, type SiteModelFieldsFragment } from "./generated/index.js";
3
3
  /**
4
4
  * The new CMS: a Site, its page types (page-kind Models), its pages
5
5
  * (ModelItems of those Models) and the blocks placed on each page (block-kind
@@ -79,3 +79,25 @@ export declare function getSingletonBlock(client: UiduClient, variables: {
79
79
  siteId: string;
80
80
  shortname: string;
81
81
  }): Promise<SitePage | null>;
82
+ /**
83
+ * Provisions a new Site in the workspace/account (`tenantId`). Bearer token
84
+ * (`apiKey`) — this is workspace admin territory, never a public write.
85
+ * Returns the mutation payload as-is, including `errors`.
86
+ */
87
+ export declare function createSite(client: UiduClient, variables: CreateSiteMutationVariables): Promise<{
88
+ __typename?: "CreateSitePayload";
89
+ site?: {
90
+ __typename?: "SiteEdge";
91
+ node?: {
92
+ __typename?: "Site";
93
+ id: string;
94
+ name?: string | null;
95
+ } | null;
96
+ } | null;
97
+ errors: Array<{
98
+ __typename?: "Error";
99
+ key: string;
100
+ name: string;
101
+ type: string;
102
+ }>;
103
+ } | null>;