@uidu/client 3.14.0 → 3.17.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.
- package/CHANGELOG.md +49 -0
- package/dist/declarations/src/courses.d.ts +37 -1
- package/dist/declarations/src/events.d.ts +58 -1
- package/dist/declarations/src/generated/index.d.ts +1409 -8
- package/dist/declarations/src/index.d.ts +3 -3
- package/dist/declarations/src/mutations.d.ts +175 -1
- package/dist/uidu-client.cjs.dev.js +101 -1
- package/dist/uidu-client.cjs.prod.js +101 -1
- package/dist/uidu-client.esm.js +92 -2
- package/package.json +1 -1
- package/src/courses.ts +28 -0
- package/src/events.ts +42 -0
- package/src/generated/index.ts +1194 -16
- package/src/index.ts +16 -1
- package/src/mutations.ts +72 -0
- package/src/queries/courses/EnrollmentMutations.graphql +27 -0
- package/src/queries/events/EventInstanceMutations.graphql +29 -0
- package/src/queries/events/UpdateAttendance.graphql +14 -0
- package/src/queries/help-center/ChannelKbCollectionMutations.graphql +41 -0
- package/src/queries/people/EmployeeCertificationMutations.graphql +25 -0
- package/src/queries/people/EmploymentTermMutations.graphql +67 -0
|
@@ -16,14 +16,14 @@ 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, createTimeClock, } from "./mutations.js";
|
|
19
|
+
export { createCourse, updateCourse, deleteCourse, createForm, updateForm, deleteForm, createContact, deleteContact, createDeal, updateDeal, createKbCollection, updateKbCollection, deleteKbCollection, createKbArticle, updateKbArticle, deleteKbArticle, createChannel, updateChannel, deleteChannel, createChannelKbCollection, updateChannelKbCollection, updateEvent, updateStory, updateDonationCampaign, deleteDonationCampaign, updateTask, deleteTask, updateNote, deleteNote, updateSpace, deleteSpace, createEmployee, updateEmployee, createEmployeeCertification, createEmployment, updateEmployment, deleteEmployment, terminateEmployment, createEmploymentTerm, updateEmploymentTerm, 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";
|
|
23
23
|
export type { Channel } from "./help-center.js";
|
|
24
24
|
export { search } from "./search.js";
|
|
25
25
|
export type { SearchResult } from "./search.js";
|
|
26
|
-
export { getEvent, listEvents, createAttendance, createEvent } from "./events.js";
|
|
26
|
+
export { getEvent, listEvents, createAttendance, updateAttendance, createEvent, createEventInstance, updateEventInstance, } from "./events.js";
|
|
27
27
|
export type { Event } from "./events.js";
|
|
28
28
|
export { getCall, listCalls } from "./calls.js";
|
|
29
29
|
export type { Call } from "./calls.js";
|
|
@@ -39,7 +39,7 @@ export { listEmployees, getEmployee, weekStartFor, listOffices, listCircles, lis
|
|
|
39
39
|
export type { Employee, Office, Circle, Kind, EmploymentRecord, CompensationRecord, EmployeeContracts, ContractEvent, ContractEventType, } from "./people.js";
|
|
40
40
|
export { getBooking, listBookings, getCalendar, listCalendars, getCalendarEvent, listCalendarEvents, } from "./bookings.js";
|
|
41
41
|
export type { Booking, Calendar, CalendarEvent } from "./bookings.js";
|
|
42
|
-
export { getCourse, listCourses, getEnrollment, listEnrollments, getLecture, listLectures, } from "./courses.js";
|
|
42
|
+
export { getCourse, listCourses, getEnrollment, listEnrollments, createEnrollment, updateEnrollment, getLecture, listLectures, } from "./courses.js";
|
|
43
43
|
export type { Course, Enrollment, Lecture } from "./courses.js";
|
|
44
44
|
export { getCampaign, listCampaigns, listEmailCampaigns } from "./campaigns.js";
|
|
45
45
|
export type { Campaign } from "./campaigns.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 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";
|
|
2
|
+
import { type CreateChannelMutationVariables, type CreateChannelKbCollectionMutationVariables, type CreateContactMutationVariables, type CreateCourseMutationVariables, type CreateCompensationMutationVariables, type CreateDealMutationVariables, type CreateEmployeeMutationVariables, type CreateEmployeeCertificationMutationVariables, type CreateEmploymentMutationVariables, type CreateEmploymentTermMutationVariables, 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 UpdateChannelKbCollectionMutationVariables, type UpdateCompensationMutationVariables, type UpdateCourseMutationVariables, type UpdateDealMutationVariables, type UpdateDonationCampaignMutationVariables, type UpdateEmployeeMutationVariables, type UpdateEmploymentMutationVariables, type UpdateEmploymentTermMutationVariables, type UpdateEventMutationVariables, type UpdateFormMutationVariables, type UpdateKbArticleMutationVariables, type UpdateKbCollectionMutationVariables, type UpdateNoteMutationVariables, type UpdateSpaceMutationVariables, type UpdateStoryMutationVariables, type UpdateTaskMutationVariables } from "./generated/index.js";
|
|
3
3
|
/**
|
|
4
4
|
* Create a course from `{ input: { attributes } }`. Returns the payload (with
|
|
5
5
|
* `errors`) or null.
|
|
@@ -221,6 +221,41 @@ export declare function updateEmployee(c: UiduClient, v: UpdateEmployeeMutationV
|
|
|
221
221
|
type: string;
|
|
222
222
|
}>;
|
|
223
223
|
} | null>;
|
|
224
|
+
/**
|
|
225
|
+
* Issue a certification (`attributes.certificationId`) to an employee
|
|
226
|
+
* (`attributes.employeeId`), optionally with its issue date and a generated
|
|
227
|
+
* certificate (`documentId`/`blobId`). Returns the payload (with `errors`) or
|
|
228
|
+
* null. The new record is at `employeeCertification.node`.
|
|
229
|
+
*/
|
|
230
|
+
export declare function createEmployeeCertification(c: UiduClient, v: CreateEmployeeCertificationMutationVariables): Promise<{
|
|
231
|
+
__typename?: "CreateEmployeeCertificationPayload";
|
|
232
|
+
employeeCertification?: {
|
|
233
|
+
__typename?: "EmployeeCertificationEdge";
|
|
234
|
+
node?: {
|
|
235
|
+
__typename?: "EmployeeCertification";
|
|
236
|
+
id: string;
|
|
237
|
+
issuedAt: any;
|
|
238
|
+
expiresAt?: any | null;
|
|
239
|
+
validNow: boolean;
|
|
240
|
+
metadata?: any | null;
|
|
241
|
+
employee: {
|
|
242
|
+
__typename?: "Employee";
|
|
243
|
+
id: string;
|
|
244
|
+
};
|
|
245
|
+
certification: {
|
|
246
|
+
__typename?: "Certification";
|
|
247
|
+
id: string;
|
|
248
|
+
name?: string | null;
|
|
249
|
+
};
|
|
250
|
+
} | null;
|
|
251
|
+
} | null;
|
|
252
|
+
errors: Array<{
|
|
253
|
+
__typename?: "Error";
|
|
254
|
+
key: string;
|
|
255
|
+
name: string;
|
|
256
|
+
type: string;
|
|
257
|
+
}>;
|
|
258
|
+
} | null>;
|
|
224
259
|
/**
|
|
225
260
|
* Hire: open a new employment (contract) for `attributes.employeeId` with its
|
|
226
261
|
* start date, kind, role and hours. Returns the payload (with `errors`) or
|
|
@@ -333,6 +368,91 @@ export declare function terminateEmployment(c: UiduClient, args: {
|
|
|
333
368
|
type: string;
|
|
334
369
|
}>;
|
|
335
370
|
} | null>;
|
|
371
|
+
/**
|
|
372
|
+
* Open a new employment term under `attributes.employmentId` — a variation of
|
|
373
|
+
* the hours, job title, CCNL or contract kind, effective from `effectiveFrom`
|
|
374
|
+
* (the term in force until then is closed on that date). Returns the payload
|
|
375
|
+
* (with `errors`) or null. The new term is at `employmentTerm.node`.
|
|
376
|
+
*/
|
|
377
|
+
export declare function createEmploymentTerm(c: UiduClient, v: CreateEmploymentTermMutationVariables): Promise<{
|
|
378
|
+
__typename?: "CreateEmploymentTermPayload";
|
|
379
|
+
employmentTerm?: {
|
|
380
|
+
__typename?: "EmploymentTermEdge";
|
|
381
|
+
node?: {
|
|
382
|
+
__typename?: "EmploymentTerm";
|
|
383
|
+
id: string;
|
|
384
|
+
effectiveFrom: any;
|
|
385
|
+
effectiveTo?: any | null;
|
|
386
|
+
endDate?: any | null;
|
|
387
|
+
jobTitle?: string | null;
|
|
388
|
+
workingHours?: number | null;
|
|
389
|
+
workingFrequency?: string | null;
|
|
390
|
+
fteRatio?: number | null;
|
|
391
|
+
isInitial: boolean;
|
|
392
|
+
state: string;
|
|
393
|
+
employment: {
|
|
394
|
+
__typename?: "Employment";
|
|
395
|
+
id: string;
|
|
396
|
+
};
|
|
397
|
+
employmentKind?: {
|
|
398
|
+
__typename?: "EmploymentKind";
|
|
399
|
+
id: string;
|
|
400
|
+
name?: string | null;
|
|
401
|
+
} | null;
|
|
402
|
+
ccnl?: {
|
|
403
|
+
__typename?: "Ccnl";
|
|
404
|
+
id: string;
|
|
405
|
+
name?: string | null;
|
|
406
|
+
} | null;
|
|
407
|
+
} | null;
|
|
408
|
+
} | null;
|
|
409
|
+
errors: Array<{
|
|
410
|
+
__typename?: "Error";
|
|
411
|
+
key: string;
|
|
412
|
+
name: string;
|
|
413
|
+
type: string;
|
|
414
|
+
}>;
|
|
415
|
+
} | null>;
|
|
416
|
+
/**
|
|
417
|
+
* Update an employment term: `{ input: { id, attributes } }`. Returns the
|
|
418
|
+
* payload (with `errors`) or null.
|
|
419
|
+
*/
|
|
420
|
+
export declare function updateEmploymentTerm(c: UiduClient, v: UpdateEmploymentTermMutationVariables): Promise<{
|
|
421
|
+
__typename?: "UpdateEmploymentTermPayload";
|
|
422
|
+
employmentTerm?: {
|
|
423
|
+
__typename?: "EmploymentTerm";
|
|
424
|
+
id: string;
|
|
425
|
+
effectiveFrom: any;
|
|
426
|
+
effectiveTo?: any | null;
|
|
427
|
+
endDate?: any | null;
|
|
428
|
+
jobTitle?: string | null;
|
|
429
|
+
workingHours?: number | null;
|
|
430
|
+
workingFrequency?: string | null;
|
|
431
|
+
fteRatio?: number | null;
|
|
432
|
+
isInitial: boolean;
|
|
433
|
+
state: string;
|
|
434
|
+
employment: {
|
|
435
|
+
__typename?: "Employment";
|
|
436
|
+
id: string;
|
|
437
|
+
};
|
|
438
|
+
employmentKind?: {
|
|
439
|
+
__typename?: "EmploymentKind";
|
|
440
|
+
id: string;
|
|
441
|
+
name?: string | null;
|
|
442
|
+
} | null;
|
|
443
|
+
ccnl?: {
|
|
444
|
+
__typename?: "Ccnl";
|
|
445
|
+
id: string;
|
|
446
|
+
name?: string | null;
|
|
447
|
+
} | null;
|
|
448
|
+
} | null;
|
|
449
|
+
errors: Array<{
|
|
450
|
+
__typename?: "Error";
|
|
451
|
+
key: string;
|
|
452
|
+
name: string;
|
|
453
|
+
type: string;
|
|
454
|
+
}>;
|
|
455
|
+
} | null>;
|
|
336
456
|
/**
|
|
337
457
|
* Record a time-clock punch (`beginsAt`, optional `finishesAt`, `resourceId`).
|
|
338
458
|
* Returns the payload (with `errors`) or null. The new punch is at
|
|
@@ -584,6 +704,60 @@ export declare function deleteChannel(c: UiduClient, v: DeleteChannelMutationVar
|
|
|
584
704
|
type: string;
|
|
585
705
|
}>;
|
|
586
706
|
} | null>;
|
|
707
|
+
/**
|
|
708
|
+
* Publish a knowledge-base collection on a help-center channel. Returns the
|
|
709
|
+
* payload (with `errors`) or null. The new link is at `channelKbCollection`.
|
|
710
|
+
*/
|
|
711
|
+
export declare function createChannelKbCollection(c: UiduClient, v: CreateChannelKbCollectionMutationVariables): Promise<{
|
|
712
|
+
__typename?: "CreateChannelKbCollectionPayload";
|
|
713
|
+
channelKbCollection?: {
|
|
714
|
+
__typename?: "ChannelKbCollection";
|
|
715
|
+
id: string;
|
|
716
|
+
position: number;
|
|
717
|
+
channel: {
|
|
718
|
+
__typename?: "Channel";
|
|
719
|
+
id: string;
|
|
720
|
+
};
|
|
721
|
+
kbCollection: {
|
|
722
|
+
__typename?: "KbCollection";
|
|
723
|
+
id: string;
|
|
724
|
+
name?: any | null;
|
|
725
|
+
};
|
|
726
|
+
} | null;
|
|
727
|
+
errors: Array<{
|
|
728
|
+
__typename?: "Error";
|
|
729
|
+
key: string;
|
|
730
|
+
name: string;
|
|
731
|
+
type: string;
|
|
732
|
+
}>;
|
|
733
|
+
} | null>;
|
|
734
|
+
/**
|
|
735
|
+
* Update a channel/collection link, e.g. its `position`: `{ input: { id,
|
|
736
|
+
* attributes } }`. Returns the payload (with `errors`) or null.
|
|
737
|
+
*/
|
|
738
|
+
export declare function updateChannelKbCollection(c: UiduClient, v: UpdateChannelKbCollectionMutationVariables): Promise<{
|
|
739
|
+
__typename?: "UpdateChannelKbCollectionPayload";
|
|
740
|
+
channelKbCollection?: {
|
|
741
|
+
__typename?: "ChannelKbCollection";
|
|
742
|
+
id: string;
|
|
743
|
+
position: number;
|
|
744
|
+
channel: {
|
|
745
|
+
__typename?: "Channel";
|
|
746
|
+
id: string;
|
|
747
|
+
};
|
|
748
|
+
kbCollection: {
|
|
749
|
+
__typename?: "KbCollection";
|
|
750
|
+
id: string;
|
|
751
|
+
name?: any | null;
|
|
752
|
+
};
|
|
753
|
+
} | null;
|
|
754
|
+
errors: Array<{
|
|
755
|
+
__typename?: "Error";
|
|
756
|
+
key: string;
|
|
757
|
+
name: string;
|
|
758
|
+
type: string;
|
|
759
|
+
}>;
|
|
760
|
+
} | null>;
|
|
587
761
|
/**
|
|
588
762
|
* Update an event: `{ input: { id, attributes } }` (create it with
|
|
589
763
|
* `createEvent`). Returns the payload (with `errors`) or null.
|