@uidu/client 3.17.0 → 3.19.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 +46 -0
- package/dist/declarations/src/calls.d.ts +9 -1
- package/dist/declarations/src/candidates.d.ts +102 -0
- package/dist/declarations/src/contacts.d.ts +22 -1
- package/dist/declarations/src/contracts.d.ts +8 -0
- package/dist/declarations/src/expenses.d.ts +169 -0
- package/dist/declarations/src/field-values.d.ts +34 -0
- package/dist/declarations/src/generated/index.d.ts +13283 -4414
- package/dist/declarations/src/index.d.ts +24 -8
- package/dist/declarations/src/meetings.d.ts +41 -0
- package/dist/declarations/src/mutations.d.ts +168 -131
- package/dist/declarations/src/people.d.ts +13 -1
- package/dist/declarations/src/reviews.d.ts +195 -0
- package/dist/declarations/src/skills.d.ts +34 -0
- package/dist/declarations/src/work-sites.d.ts +9 -0
- package/dist/uidu-client.cjs.dev.js +570 -31
- package/dist/uidu-client.cjs.prod.js +570 -31
- package/dist/uidu-client.esm.js +523 -32
- package/package.json +1 -1
- package/src/calls.ts +37 -0
- package/src/candidates.ts +105 -0
- package/src/contacts.ts +33 -0
- package/src/contracts.ts +44 -0
- package/src/expenses.test.ts +155 -0
- package/src/expenses.ts +155 -0
- package/src/field-values.ts +95 -0
- package/src/generated/index.ts +3461 -2268
- package/src/index.ts +83 -4
- package/src/meetings.ts +37 -0
- package/src/mutations.test.ts +40 -1
- package/src/mutations.ts +170 -60
- package/src/people.ts +33 -0
- package/src/queries/calls/ListCallStatuses.graphql +26 -0
- package/src/queries/candidates/CandidateFields.graphql +28 -0
- package/src/queries/candidates/CandidateMutations.graphql +35 -0
- package/src/queries/candidates/CandidateQueries.graphql +94 -0
- package/src/queries/contacts/ContactMutations.graphql +0 -13
- package/src/queries/contacts/GetOrganization.graphql +17 -0
- package/src/queries/contacts/ListOrganizations.graphql +21 -0
- package/src/queries/contacts/OrganizationMutations.graphql +17 -0
- package/src/queries/contracts/ContractQueries.graphql +67 -0
- package/src/queries/courses/CourseMutations.graphql +0 -13
- package/src/queries/discardable/DiscardableMutations.graphql +32 -0
- package/src/queries/expenses/ExpenseFields.graphql +29 -0
- package/src/queries/expenses/ExpenseMutations.graphql +81 -0
- package/src/queries/expenses/GetExpenseReport.graphql +14 -0
- package/src/queries/expenses/ListAnalyticAccounts.graphql +20 -0
- package/src/queries/expenses/ListExpenseReports.graphql +22 -0
- package/src/queries/field-values/FieldValueFields.graphql +18 -0
- package/src/queries/field-values/FieldValueQueries.graphql +43 -0
- package/src/queries/forms/FormMutations.graphql +0 -13
- package/src/queries/help-center/ChannelMutations.graphql +0 -13
- package/src/queries/kb/KbMutations.graphql +0 -26
- package/src/queries/meetings/MeetingQueries.graphql +48 -0
- package/src/queries/notes/NoteMutations.graphql +0 -13
- package/src/queries/people/EmploymentVariationKindMutations.graphql +51 -0
- package/src/queries/people/ListEmploymentVariationKinds.graphql +23 -0
- package/src/queries/people/PeopleMutations.graphql +0 -13
- package/src/queries/reviews/ReviewFields.graphql +35 -0
- package/src/queries/reviews/ReviewMutations.graphql +32 -0
- package/src/queries/reviews/ReviewQueries.graphql +86 -0
- package/src/queries/skills/SkillQueries.graphql +53 -0
- package/src/queries/spaces/SpaceMutations.graphql +0 -13
- package/src/queries/tasks/TaskMutations.graphql +0 -13
- package/src/queries/work-sites/ListWorkSites.graphql +32 -0
- package/src/recruiting.test.ts +196 -0
- package/src/reviews.ts +114 -0
- package/src/skills.ts +47 -0
- package/src/work-sites.ts +28 -0
|
@@ -0,0 +1,195 @@
|
|
|
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";
|
|
3
|
+
export type Review = ReviewSummaryFragment;
|
|
4
|
+
export type ReviewTemplate = NonNullable<NonNullable<NonNullable<NonNullable<ListReviewTemplatesQuery['currentWorkspace']>['reviewTemplates']['edges']>[number]>['node']>;
|
|
5
|
+
/**
|
|
6
|
+
* The reviews of one person or cycle — `ownerId` is the GlobalID of an
|
|
7
|
+
* Employee, a User or a ReviewCycle — as a flat array; page with
|
|
8
|
+
* `first`/`after`.
|
|
9
|
+
*/
|
|
10
|
+
export declare function listReviews(client: UiduClient, variables: ListReviewsQueryVariables): Promise<Review[]>;
|
|
11
|
+
/** One review by id, or null. */
|
|
12
|
+
export declare function getReview(client: UiduClient, variables: GetReviewQueryVariables): Promise<Review | null>;
|
|
13
|
+
/**
|
|
14
|
+
* Create one review. Without a cycle pass `reviewTemplateId` (and optionally
|
|
15
|
+
* `dueOn`) with the `userId`; with one pass `reviewCycleId`. Returns the
|
|
16
|
+
* `createReviews` payload as-is (including any `errors`).
|
|
17
|
+
*/
|
|
18
|
+
export declare function createReview(client: UiduClient, attributes: ReviewAttributes): Promise<{
|
|
19
|
+
__typename?: "CreateReviewsPayload";
|
|
20
|
+
reviews?: Array<{
|
|
21
|
+
__typename?: "ReviewEdge";
|
|
22
|
+
node?: {
|
|
23
|
+
__typename?: "Review";
|
|
24
|
+
id: string;
|
|
25
|
+
name?: string | null;
|
|
26
|
+
aasmState?: string | null;
|
|
27
|
+
completed?: boolean | null;
|
|
28
|
+
completedAt?: any | null;
|
|
29
|
+
dispatchedAt?: any | null;
|
|
30
|
+
dueOn?: any | null;
|
|
31
|
+
createdAt: any;
|
|
32
|
+
updatedAt: any;
|
|
33
|
+
user: {
|
|
34
|
+
__typename?: "User";
|
|
35
|
+
id: string;
|
|
36
|
+
name?: string | null;
|
|
37
|
+
email?: string | null;
|
|
38
|
+
};
|
|
39
|
+
role?: {
|
|
40
|
+
__typename?: "Circle";
|
|
41
|
+
id: string;
|
|
42
|
+
name?: string | null;
|
|
43
|
+
} | null;
|
|
44
|
+
reviewTemplate: {
|
|
45
|
+
__typename?: "ReviewTemplate";
|
|
46
|
+
id: string;
|
|
47
|
+
name?: string | null;
|
|
48
|
+
kind?: string | null;
|
|
49
|
+
};
|
|
50
|
+
reviewCycle?: {
|
|
51
|
+
__typename?: "ReviewCycle";
|
|
52
|
+
id: string;
|
|
53
|
+
name?: string | null;
|
|
54
|
+
} | null;
|
|
55
|
+
parent?: {
|
|
56
|
+
__typename?: "Review";
|
|
57
|
+
id: string;
|
|
58
|
+
} | null;
|
|
59
|
+
formResponse?: {
|
|
60
|
+
__typename?: "FormResponse";
|
|
61
|
+
id: string;
|
|
62
|
+
} | null;
|
|
63
|
+
} | null;
|
|
64
|
+
}> | null;
|
|
65
|
+
reviewCycle?: {
|
|
66
|
+
__typename?: "ReviewCycle";
|
|
67
|
+
id: string;
|
|
68
|
+
} | null;
|
|
69
|
+
errors: Array<{
|
|
70
|
+
__typename?: "Error";
|
|
71
|
+
key: string;
|
|
72
|
+
name: string;
|
|
73
|
+
type: string;
|
|
74
|
+
}>;
|
|
75
|
+
} | null>;
|
|
76
|
+
/**
|
|
77
|
+
* Create several reviews in one call (`input.attributes` is a list). Returns
|
|
78
|
+
* the mutation payload as-is (including any `errors`).
|
|
79
|
+
*/
|
|
80
|
+
export declare function createReviews(client: UiduClient, variables: CreateReviewsMutationVariables): Promise<{
|
|
81
|
+
__typename?: "CreateReviewsPayload";
|
|
82
|
+
reviews?: Array<{
|
|
83
|
+
__typename?: "ReviewEdge";
|
|
84
|
+
node?: {
|
|
85
|
+
__typename?: "Review";
|
|
86
|
+
id: string;
|
|
87
|
+
name?: string | null;
|
|
88
|
+
aasmState?: string | null;
|
|
89
|
+
completed?: boolean | null;
|
|
90
|
+
completedAt?: any | null;
|
|
91
|
+
dispatchedAt?: any | null;
|
|
92
|
+
dueOn?: any | null;
|
|
93
|
+
createdAt: any;
|
|
94
|
+
updatedAt: any;
|
|
95
|
+
user: {
|
|
96
|
+
__typename?: "User";
|
|
97
|
+
id: string;
|
|
98
|
+
name?: string | null;
|
|
99
|
+
email?: string | null;
|
|
100
|
+
};
|
|
101
|
+
role?: {
|
|
102
|
+
__typename?: "Circle";
|
|
103
|
+
id: string;
|
|
104
|
+
name?: string | null;
|
|
105
|
+
} | null;
|
|
106
|
+
reviewTemplate: {
|
|
107
|
+
__typename?: "ReviewTemplate";
|
|
108
|
+
id: string;
|
|
109
|
+
name?: string | null;
|
|
110
|
+
kind?: string | null;
|
|
111
|
+
};
|
|
112
|
+
reviewCycle?: {
|
|
113
|
+
__typename?: "ReviewCycle";
|
|
114
|
+
id: string;
|
|
115
|
+
name?: string | null;
|
|
116
|
+
} | null;
|
|
117
|
+
parent?: {
|
|
118
|
+
__typename?: "Review";
|
|
119
|
+
id: string;
|
|
120
|
+
} | null;
|
|
121
|
+
formResponse?: {
|
|
122
|
+
__typename?: "FormResponse";
|
|
123
|
+
id: string;
|
|
124
|
+
} | null;
|
|
125
|
+
} | null;
|
|
126
|
+
}> | null;
|
|
127
|
+
reviewCycle?: {
|
|
128
|
+
__typename?: "ReviewCycle";
|
|
129
|
+
id: string;
|
|
130
|
+
} | null;
|
|
131
|
+
errors: Array<{
|
|
132
|
+
__typename?: "Error";
|
|
133
|
+
key: string;
|
|
134
|
+
name: string;
|
|
135
|
+
type: string;
|
|
136
|
+
}>;
|
|
137
|
+
} | null>;
|
|
138
|
+
/**
|
|
139
|
+
* Update a review — its `dueOn`, its answers (`formResponseAttributes`) or its
|
|
140
|
+
* skill scores (`skillsAttributes`). Returns the mutation payload as-is
|
|
141
|
+
* (including any `errors`).
|
|
142
|
+
*/
|
|
143
|
+
export declare function updateReview(client: UiduClient, variables: UpdateReviewMutationVariables): Promise<{
|
|
144
|
+
__typename?: "UpdateReviewPayload";
|
|
145
|
+
review?: {
|
|
146
|
+
__typename?: "Review";
|
|
147
|
+
id: string;
|
|
148
|
+
name?: string | null;
|
|
149
|
+
aasmState?: string | null;
|
|
150
|
+
completed?: boolean | null;
|
|
151
|
+
completedAt?: any | null;
|
|
152
|
+
dispatchedAt?: any | null;
|
|
153
|
+
dueOn?: any | null;
|
|
154
|
+
createdAt: any;
|
|
155
|
+
updatedAt: any;
|
|
156
|
+
user: {
|
|
157
|
+
__typename?: "User";
|
|
158
|
+
id: string;
|
|
159
|
+
name?: string | null;
|
|
160
|
+
email?: string | null;
|
|
161
|
+
};
|
|
162
|
+
role?: {
|
|
163
|
+
__typename?: "Circle";
|
|
164
|
+
id: string;
|
|
165
|
+
name?: string | null;
|
|
166
|
+
} | null;
|
|
167
|
+
reviewTemplate: {
|
|
168
|
+
__typename?: "ReviewTemplate";
|
|
169
|
+
id: string;
|
|
170
|
+
name?: string | null;
|
|
171
|
+
kind?: string | null;
|
|
172
|
+
};
|
|
173
|
+
reviewCycle?: {
|
|
174
|
+
__typename?: "ReviewCycle";
|
|
175
|
+
id: string;
|
|
176
|
+
name?: string | null;
|
|
177
|
+
} | null;
|
|
178
|
+
parent?: {
|
|
179
|
+
__typename?: "Review";
|
|
180
|
+
id: string;
|
|
181
|
+
} | null;
|
|
182
|
+
formResponse?: {
|
|
183
|
+
__typename?: "FormResponse";
|
|
184
|
+
id: string;
|
|
185
|
+
} | null;
|
|
186
|
+
} | null;
|
|
187
|
+
errors: Array<{
|
|
188
|
+
__typename?: "Error";
|
|
189
|
+
key: string;
|
|
190
|
+
name: string;
|
|
191
|
+
type: string;
|
|
192
|
+
}>;
|
|
193
|
+
} | null>;
|
|
194
|
+
/** The workspace's review templates; page with `first`/`after`. */
|
|
195
|
+
export declare function listReviewTemplates(client: UiduClient, variables?: ListReviewTemplatesQueryVariables): Promise<ReviewTemplate[]>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { UiduClient } from "./client.js";
|
|
2
|
+
import { type CreateSkillMutationVariables, type ListSkillsQuery, type ListSkillsQueryVariables } from "./generated/index.js";
|
|
3
|
+
export type WorkspaceSkill = NonNullable<NonNullable<NonNullable<NonNullable<ListSkillsQuery['currentWorkspace']>['workspaceSkills']['edges']>[number]>['node']>;
|
|
4
|
+
/** The workspace's skill catalog; page with `first`/`after`. */
|
|
5
|
+
export declare function listSkills(client: UiduClient, variables?: ListSkillsQueryVariables): Promise<WorkspaceSkill[]>;
|
|
6
|
+
/**
|
|
7
|
+
* Give someone a skill: `attributes: { skillableId, workspaceSkillId, score? }`
|
|
8
|
+
* (`skillableId` is e.g. a User's GlobalID; `sourceId` a Review, when the
|
|
9
|
+
* skill was assessed in one). Returns the mutation payload as-is (including
|
|
10
|
+
* any `errors`).
|
|
11
|
+
*/
|
|
12
|
+
export declare function createSkill(client: UiduClient, variables: CreateSkillMutationVariables): Promise<{
|
|
13
|
+
__typename?: "CreateSkillPayload";
|
|
14
|
+
skill?: {
|
|
15
|
+
__typename?: "SkillEdge";
|
|
16
|
+
node?: {
|
|
17
|
+
__typename?: "Skill";
|
|
18
|
+
id: string;
|
|
19
|
+
score?: number | null;
|
|
20
|
+
body?: any | null;
|
|
21
|
+
workspaceSkill: {
|
|
22
|
+
__typename?: "WorkspaceSkill";
|
|
23
|
+
id: string;
|
|
24
|
+
name?: string | null;
|
|
25
|
+
};
|
|
26
|
+
} | null;
|
|
27
|
+
} | null;
|
|
28
|
+
errors: Array<{
|
|
29
|
+
__typename?: "Error";
|
|
30
|
+
key: string;
|
|
31
|
+
name: string;
|
|
32
|
+
type: string;
|
|
33
|
+
}>;
|
|
34
|
+
} | null>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { UiduClient } from "./client.js";
|
|
2
|
+
import { type ListWorkSitesQuery, type ListWorkSitesQueryVariables } from "./generated/index.js";
|
|
3
|
+
export type WorkSite = NonNullable<NonNullable<NonNullable<NonNullable<ListWorkSitesQuery['currentWorkspace']>['workSites']['edges']>[number]>['node']>;
|
|
4
|
+
/**
|
|
5
|
+
* The workspace's work sites — where people are placed, each with its
|
|
6
|
+
* analytic account, address and custom fields (`fieldValuesByShortname`) — as
|
|
7
|
+
* a flat array; page with `first`/`after`. Requires a Bearer token (`apiKey`).
|
|
8
|
+
*/
|
|
9
|
+
export declare function listWorkSites(client: UiduClient, variables?: ListWorkSitesQueryVariables): Promise<WorkSite[]>;
|