@uidu/client 3.20.0 → 3.22.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 +13 -0
- package/dist/declarations/src/candidates.d.ts +186 -7
- package/dist/declarations/src/generated/index.d.ts +757 -19
- package/dist/declarations/src/index.d.ts +5 -5
- package/dist/declarations/src/meetings.d.ts +42 -1
- package/dist/declarations/src/reviews.d.ts +14 -7
- package/dist/uidu-client.cjs.dev.js +107 -11
- package/dist/uidu-client.cjs.prod.js +107 -11
- package/dist/uidu-client.esm.js +101 -12
- package/package.json +1 -1
- package/src/candidates.ts +105 -5
- package/src/generated/index.ts +296 -37
- package/src/index.ts +16 -3
- package/src/meetings.ts +35 -0
- package/src/queries/candidates/CandidateFields.graphql +19 -1
- package/src/queries/candidates/CandidateMutations.graphql +41 -9
- package/src/queries/candidates/CandidateQueries.graphql +46 -3
- package/src/queries/candidates/PoolContactFields.graphql +29 -0
- package/src/queries/meetings/MeetingQueries.graphql +46 -0
- package/src/queries/reviews/ReviewQueries.graphql +22 -3
- package/src/recruiting.test.ts +143 -1
- package/src/reviews.ts +27 -6
|
@@ -31,12 +31,12 @@ export { getJob, listJobs } from "./jobs.js";
|
|
|
31
31
|
export type { Job } from "./jobs.js";
|
|
32
32
|
export { listApplications, createApplication, updateApplication, completeApplication, } from "./applications.js";
|
|
33
33
|
export type { Application } from "./applications.js";
|
|
34
|
-
export { findCandidates, getCandidate, updateCandidate, listPools, createPoolContact, } from "./candidates.js";
|
|
35
|
-
export type { Candidate, CandidateDetail, CandidateSearch, Pool, } from "./candidates.js";
|
|
34
|
+
export { findCandidates, listCandidates, getCandidate, createCandidate, updateCandidate, listPools, getPool, createPoolContact, updatePoolContact, deletePoolContact, } from "./candidates.js";
|
|
35
|
+
export type { Candidate, CandidateDetail, CandidateListItem, CandidateSearch, Pool, PoolContact, PoolDetail, } from "./candidates.js";
|
|
36
36
|
export { listReviews, getReview, createReview, createReviews, updateReview, listReviewTemplates, } from "./reviews.js";
|
|
37
|
-
export type { Review, ReviewTemplate } from "./reviews.js";
|
|
38
|
-
export { listMeetings, createMeeting } from "./meetings.js";
|
|
39
|
-
export type { Meeting } from "./meetings.js";
|
|
37
|
+
export type { Review, ReviewDetail, ReviewTemplate } from "./reviews.js";
|
|
38
|
+
export { listMeetings, getMeeting, createMeeting, updateMeeting, } from "./meetings.js";
|
|
39
|
+
export type { Meeting, MeetingDetail } from "./meetings.js";
|
|
40
40
|
export { listSkills, createSkill } from "./skills.js";
|
|
41
41
|
export type { WorkspaceSkill } from "./skills.js";
|
|
42
42
|
export { listWorkSites } from "./work-sites.js";
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import type { UiduClient } from "./client.js";
|
|
2
|
-
import { type CreateMeetingMutationVariables, type ListMeetingsQueryVariables, type MeetingSummaryFragment } from "./generated/index.js";
|
|
2
|
+
import { type CreateMeetingMutationVariables, type GetMeetingQuery, type GetMeetingQueryVariables, type ListMeetingsQueryVariables, type MeetingSummaryFragment, type UpdateMeetingMutationVariables } from "./generated/index.js";
|
|
3
3
|
export type Meeting = MeetingSummaryFragment;
|
|
4
|
+
export type MeetingDetail = NonNullable<NonNullable<GetMeetingQuery['currentWorkspace']>['meeting']>;
|
|
4
5
|
/** The workspace's meetings, filtered and sorted with `params`; page with `first`/`after`. */
|
|
5
6
|
export declare function listMeetings(client: UiduClient, variables?: ListMeetingsQueryVariables): Promise<Meeting[]>;
|
|
7
|
+
/**
|
|
8
|
+
* One meeting by GlobalID with the records it is linked to (`related`, each
|
|
9
|
+
* relationship's `relatedTo`: an Application, a Call, a Contact, an
|
|
10
|
+
* Employee…), or null.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getMeeting(client: UiduClient, variables: GetMeetingQueryVariables): Promise<MeetingDetail | null>;
|
|
6
13
|
/**
|
|
7
14
|
* Create a meeting (`name`, `startsAt`, `endsAt`, `timeZone`, and
|
|
8
15
|
* `relatedAttributes` to link it to an application or a contact). Returns the
|
|
@@ -39,3 +46,37 @@ export declare function createMeeting(client: UiduClient, variables: CreateMeeti
|
|
|
39
46
|
type: string;
|
|
40
47
|
}>;
|
|
41
48
|
} | null>;
|
|
49
|
+
/**
|
|
50
|
+
* Update a meeting — reschedule it (`startsAt`, `endsAt`, `timeZone`), rename
|
|
51
|
+
* it, attach `recordingUrl` / `transcriptUrl`, or link more records with
|
|
52
|
+
* `relatedAttributes`. Returns the mutation payload as-is (including any
|
|
53
|
+
* `errors`).
|
|
54
|
+
*/
|
|
55
|
+
export declare function updateMeeting(client: UiduClient, variables: UpdateMeetingMutationVariables): Promise<{
|
|
56
|
+
__typename?: "UpdateMeetingPayload";
|
|
57
|
+
meeting?: {
|
|
58
|
+
__typename?: "Meeting";
|
|
59
|
+
id: string;
|
|
60
|
+
name?: string | null;
|
|
61
|
+
status: import("./generated/index.js").MeetingStatusEnum;
|
|
62
|
+
source: import("./generated/index.js").MeetingSourceEnum;
|
|
63
|
+
startsAt?: any | null;
|
|
64
|
+
endsAt?: any | null;
|
|
65
|
+
timeZone?: string | null;
|
|
66
|
+
durationInSeconds?: number | null;
|
|
67
|
+
recordingUrl?: string | null;
|
|
68
|
+
transcriptUrl?: string | null;
|
|
69
|
+
createdAt: any;
|
|
70
|
+
createdByUser?: {
|
|
71
|
+
__typename?: "User";
|
|
72
|
+
id: string;
|
|
73
|
+
name?: string | null;
|
|
74
|
+
} | null;
|
|
75
|
+
} | null;
|
|
76
|
+
errors: Array<{
|
|
77
|
+
__typename?: "Error";
|
|
78
|
+
key: string;
|
|
79
|
+
name: string;
|
|
80
|
+
type: string;
|
|
81
|
+
}>;
|
|
82
|
+
} | null>;
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
import type { UiduClient } from "./client.js";
|
|
2
|
-
import { type CreateReviewsMutationVariables, type GetReviewQueryVariables, type ListReviewsQueryVariables, type ListReviewTemplatesQuery, type ListReviewTemplatesQueryVariables, type ReviewAttributes, type ReviewSummaryFragment, type UpdateReviewMutationVariables } from "./generated/index.js";
|
|
2
|
+
import { type CreateReviewsMutationVariables, type GetReviewQuery, type GetReviewQueryVariables, type ListReviewsQueryVariables, type ListWorkspaceReviewsQueryVariables, type ListReviewTemplatesQuery, type ListReviewTemplatesQueryVariables, type ReviewAttributes, type ReviewSummaryFragment, type UpdateReviewMutationVariables } from "./generated/index.js";
|
|
3
3
|
export type Review = ReviewSummaryFragment;
|
|
4
|
+
export type ReviewDetail = NonNullable<NonNullable<GetReviewQuery['currentWorkspace']>['review']>;
|
|
4
5
|
export type ReviewTemplate = NonNullable<NonNullable<NonNullable<NonNullable<ListReviewTemplatesQuery['currentWorkspace']>['reviewTemplates']['edges']>[number]>['node']>;
|
|
5
6
|
/**
|
|
6
|
-
*
|
|
7
|
-
* Employee, a User or a ReviewCycle —
|
|
8
|
-
*
|
|
7
|
+
* Reviews as a flat array; page with `first`/`after`. With `ownerId` — the
|
|
8
|
+
* GlobalID of an Employee, a User or a ReviewCycle — the reviews of that
|
|
9
|
+
* owner. Without it, every review in the workspace, with or without a cycle,
|
|
10
|
+
* earliest due first, filtered with `params.filters`: `user` and
|
|
11
|
+
* `reviewTemplate` (GlobalIDs), `dueOn` and `completedAt` (`>=`, `<=`,
|
|
12
|
+
* `between`).
|
|
9
13
|
*/
|
|
10
|
-
export declare function listReviews(client: UiduClient, variables
|
|
11
|
-
/**
|
|
12
|
-
|
|
14
|
+
export declare function listReviews(client: UiduClient, variables?: ListReviewsQueryVariables | ListWorkspaceReviewsQueryVariables): Promise<Review[]>;
|
|
15
|
+
/**
|
|
16
|
+
* One review by id with `pdfUrl` — the review, its questions and answers
|
|
17
|
+
* printed to PDF — or null.
|
|
18
|
+
*/
|
|
19
|
+
export declare function getReview(client: UiduClient, variables: GetReviewQueryVariables): Promise<ReviewDetail | null>;
|
|
13
20
|
/**
|
|
14
21
|
* Create one review. Without a cycle pass `reviewTemplateId` (and optionally
|
|
15
22
|
* `dueOn`) with the `userId`; with one pass `reviewCycleId`. Returns the
|