@uidu/client 3.5.0 → 3.7.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.
@@ -1,4 +1,15 @@
1
1
  import type { UiduClient } from "./client.js";
2
- import { type GetChannelQuery, type GetChannelQueryVariables } from "./generated/index.js";
2
+ import { type GetChannelQuery, type GetChannelQueryVariables, type ListChannelsQueryVariables } from "./generated/index.js";
3
3
  export type Channel = NonNullable<NonNullable<GetChannelQuery['currentWorkspace']>['channel']>;
4
4
  export declare function getChannel(client: UiduClient, variables: GetChannelQueryVariables): Promise<Channel | null>;
5
+ /**
6
+ * The workspace's help center channels. `isDefault` marks the one the
7
+ * workspace treats as its main channel — a caller that has no channel id
8
+ * configured should prefer it over the first row.
9
+ */
10
+ export declare function listChannels(client: UiduClient, variables?: ListChannelsQueryVariables): Promise<{
11
+ __typename?: "Channel";
12
+ id: string;
13
+ name: string;
14
+ isDefault: boolean;
15
+ }[]>;
@@ -5,7 +5,7 @@ export { paginate } from "./utils/paginate.js";
5
5
  export type { PaginateOptions } from "./utils/paginate.js";
6
6
  export { normalizeFieldValueContent, normalizeFieldValuesAttributes, } from "./utils/fieldValues.js";
7
7
  export { ListApplicationsDocument, ListBookingsDocument, ListCalendarsDocument, ListCalendarEventsDocument, ListCallsDocument, ListCampaignsDocument, ListEmailCampaignsDocument, ListCoursesDocument, ListDealsDocument, ListDonationCampaignsDocument, ListEmployeesDocument, ListEnrollmentsDocument, ListEventsDocument, ListFormsDocument, ListKbArticlesDocument, ListKbCollectionsDocument, ListLecturesDocument, ListPagesDocument, ListStoriesDocument, } from "./generated/index.js";
8
- export { getPage, listPages, getTemplate, createProject, createPage, createPageBlock, createFieldValue, } from "./cms.js";
8
+ export { getPage, listPages, getTemplate, createProject, createPage, createPageBlock, createFieldValue, listProjects, } from "./cms.js";
9
9
  export type { Page, Template } from "./cms.js";
10
10
  export { createWorkspace, generateWorkspaceApiCredentials } from "./system.js";
11
11
  export { createSpace } from "./spaces.js";
@@ -14,7 +14,7 @@ export { createNote } from "./notes.js";
14
14
  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";
15
15
  export { getForm, listForms, createFormResponse, updateFormResponse, } from "./forms.js";
16
16
  export type { Form } from "./forms.js";
17
- export { getChannel } from "./help-center.js";
17
+ export { getChannel, listChannels } from "./help-center.js";
18
18
  export type { Channel } from "./help-center.js";
19
19
  export { search } from "./search.js";
20
20
  export type { SearchResult } from "./search.js";
@@ -181,11 +181,15 @@ export declare function createEmployment(c: UiduClient, v: CreateEmploymentMutat
181
181
  __typename?: "Employment";
182
182
  id: string;
183
183
  jobTitle?: string | null;
184
- contractType?: string | null;
185
184
  classification?: string | null;
186
185
  startDate: any;
187
186
  endDate?: any | null;
188
187
  isActive: boolean;
188
+ employmentKind?: {
189
+ __typename?: "EmploymentKind";
190
+ id: string;
191
+ name?: string | null;
192
+ } | null;
189
193
  } | null;
190
194
  } | null;
191
195
  errors: Array<{
@@ -201,12 +205,16 @@ export declare function updateEmployment(c: UiduClient, v: UpdateEmploymentMutat
201
205
  __typename?: "Employment";
202
206
  id: string;
203
207
  jobTitle?: string | null;
204
- contractType?: string | null;
205
208
  classification?: string | null;
206
209
  startDate: any;
207
210
  endDate?: any | null;
208
211
  endReason?: string | null;
209
212
  isActive: boolean;
213
+ employmentKind?: {
214
+ __typename?: "EmploymentKind";
215
+ id: string;
216
+ name?: string | null;
217
+ } | null;
210
218
  } | null;
211
219
  errors: Array<{
212
220
  __typename?: "Error";
@@ -243,12 +251,16 @@ export declare function terminateEmployment(c: UiduClient, args: {
243
251
  __typename?: "Employment";
244
252
  id: string;
245
253
  jobTitle?: string | null;
246
- contractType?: string | null;
247
254
  classification?: string | null;
248
255
  startDate: any;
249
256
  endDate?: any | null;
250
257
  endReason?: string | null;
251
258
  isActive: boolean;
259
+ employmentKind?: {
260
+ __typename?: "EmploymentKind";
261
+ id: string;
262
+ name?: string | null;
263
+ } | null;
252
264
  } | null;
253
265
  errors: Array<{
254
266
  __typename?: "Error";
@@ -21,9 +21,13 @@ export declare function listEmployees(client: UiduClient, variables?: ListEmploy
21
21
  __typename?: "Employment";
22
22
  id: string;
23
23
  jobTitle?: string | null;
24
- contractType?: string | null;
25
24
  isActive: boolean;
26
25
  startDate: any;
26
+ employmentKind?: {
27
+ __typename?: "EmploymentKind";
28
+ id: string;
29
+ name?: string | null;
30
+ } | null;
27
31
  } | null;
28
32
  }[]>;
29
33
  export declare function getEmployee(client: UiduClient, variables: GetEmployeeQueryVariables): Promise<Employee | null>;
@@ -69,6 +73,17 @@ export type EmploymentRecord = {
69
73
  endDate: string | null;
70
74
  endReason: string | null;
71
75
  jobTitle: string | null;
76
+ /**
77
+ * The contract type, as a record. It used to be a free string on the
78
+ * employment (`contractType`); uidu promoted it to `EmploymentKind` so a
79
+ * workspace can configure its own, which is why writes take
80
+ * `employmentKindId`.
81
+ */
82
+ employmentKind: {
83
+ id: string;
84
+ name: string | null;
85
+ } | null;
86
+ /** The contract type's name — `employmentKind.name`, kept flat for display. */
72
87
  contractType: string | null;
73
88
  /** The CCNL (national collective labor contract) that applies, if any. */
74
89
  ccnl: {