@uidu/client 3.5.0 → 3.6.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 +10 -0
- package/dist/declarations/src/bookings.d.ts +1 -1
- package/dist/declarations/src/generated/index.d.ts +8635 -263
- package/dist/declarations/src/mutations.d.ts +15 -3
- package/dist/declarations/src/people.d.ts +16 -1
- package/dist/uidu-client.cjs.dev.js +6 -2
- package/dist/uidu-client.cjs.prod.js +6 -2
- package/dist/uidu-client.esm.js +6 -2
- package/package.json +1 -1
- package/src/generated/index.ts +9837 -297
- package/src/people.test.ts +3 -0
- package/src/people.ts +12 -1
- package/src/queries/people/GetEmployee.graphql +4 -1
- package/src/queries/people/ListEmployees.graphql +4 -1
- package/src/queries/people/ListEmploymentHistory.graphql +4 -1
- package/src/queries/people/PeopleMutations.graphql +8 -2
|
@@ -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: {
|