@uidu/client 3.3.0 → 3.4.1
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 +36 -0
- package/dist/declarations/src/applications.d.ts +57 -0
- package/dist/declarations/src/calls.d.ts +1 -0
- package/dist/declarations/src/generated/index.d.ts +193 -1
- package/dist/declarations/src/index.d.ts +7 -3
- package/dist/declarations/src/jobs.d.ts +15 -0
- package/dist/declarations/src/mutations.d.ts +53 -1
- package/dist/declarations/src/people.d.ts +18 -0
- package/dist/uidu-client.cjs.dev.js +86 -2
- package/dist/uidu-client.cjs.prod.js +86 -2
- package/dist/uidu-client.esm.js +79 -3
- package/package.json +1 -1
- package/src/applications.ts +51 -0
- package/src/generated/index.ts +48 -5
- package/src/index.ts +11 -0
- package/src/jobs.ts +32 -0
- package/src/mutations.ts +17 -0
- package/src/people.test.ts +6 -0
- package/src/people.ts +29 -0
- package/src/queries/applications/CreateApplication.graphql +32 -0
- package/src/queries/applications/ListApplications.graphql +40 -0
- package/src/queries/calls/ListCalls.graphql +1 -0
- package/src/queries/people/CompensationMutations.graphql +50 -0
- package/src/queries/people/ListEmploymentHistory.graphql +16 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @uidu/client
|
|
2
2
|
|
|
3
|
+
## 3.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 689299a: Select `publicUrl` in the `ListCalls` query so `listCalls` — and the derived `listJobs` — expose `publicUrl` on every record. Previously it was only selected in `GetCall`, so list results carried `publicPath` but not the absolute `publicUrl`, despite the `Call` type advertising it.
|
|
8
|
+
|
|
9
|
+
## 3.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 5a31264: Add compensation writes and surface CCNL + pay on employment history.
|
|
14
|
+
|
|
15
|
+
New `createCompensation`, `updateCompensation` and `deleteCompensation` cover an
|
|
16
|
+
employment's pay items (amount, currency, `frequency` — hourly/monthly/annual,
|
|
17
|
+
`componentType` — base/allowance/recurring_bonus, `reason`, `effectiveFrom`).
|
|
18
|
+
`listEmploymentHistory` now also returns each contract's `ccnl` and its
|
|
19
|
+
`compensations` (most-recent effective date first), and `EmploymentRecord`
|
|
20
|
+
gains `ccnl` and `compensations`, with a new exported `CompensationRecord` type.
|
|
21
|
+
|
|
22
|
+
Together with the existing `ccnlId` on employment attributes and `listCcnls`,
|
|
23
|
+
this makes CCNL and compensation first-class in the SDK.
|
|
24
|
+
|
|
25
|
+
- 2a53025: Add `jobs` (announcements) and `applications` API integrations.
|
|
26
|
+
|
|
27
|
+
`jobs` is a derived view over `calls`: `listJobs`/`getJob` return calls whose
|
|
28
|
+
`kind` is `job`, with the exported `Job` type. `applications` is a first-class
|
|
29
|
+
domain backed by new `ListApplications` / `CreateApplication` operations —
|
|
30
|
+
`listApplications` (Bearer, private candidate data), `createApplication`
|
|
31
|
+
(the public apply path, links a contact + form response to a job via
|
|
32
|
+
`applicableId`), plus the `Application` type and `ListApplicationsDocument`.
|
|
33
|
+
|
|
34
|
+
`@uidu/react` gains the pure `formatSalaryRange(job)` helper. These were added
|
|
35
|
+
end-to-end (client → CLI → react → demo) as the reference implementation of the
|
|
36
|
+
new [`docs/adding-an-api-integration.md`](../docs/adding-an-api-integration.md)
|
|
37
|
+
process.
|
|
38
|
+
|
|
3
39
|
## 3.3.0
|
|
4
40
|
|
|
5
41
|
### Minor Changes
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { UiduClient } from "./client.js";
|
|
2
|
+
import { type CreateApplicationMutationVariables, type ListApplicationsQuery, type ListApplicationsQueryVariables } from "./generated/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* An application submitted to a job posting (a {@link Job}).
|
|
5
|
+
*
|
|
6
|
+
* Unlike `jobs`, applications are a *first-class* GraphQL type with their own
|
|
7
|
+
* operations (`ListApplications`, `CreateApplication`). The `*Document`s below
|
|
8
|
+
* are produced by codegen from `src/queries/applications/*.graphql` — run
|
|
9
|
+
* `yarn workspace @uidu/client codegen` after editing those files.
|
|
10
|
+
*
|
|
11
|
+
* Reads (`listApplications`) require a Bearer token (`apiKey`): applications
|
|
12
|
+
* hold private candidate data. Writes (`createApplication`) are the public
|
|
13
|
+
* "apply to this job" path.
|
|
14
|
+
*/
|
|
15
|
+
export type Application = NonNullable<NonNullable<NonNullable<NonNullable<ListApplicationsQuery['currentWorkspace']>['applications']['edges']>[number]>['node']>;
|
|
16
|
+
/** List applications across the workspace (requires a Bearer token). */
|
|
17
|
+
export declare function listApplications(client: UiduClient, variables?: ListApplicationsQueryVariables): Promise<Application[]>;
|
|
18
|
+
/**
|
|
19
|
+
* Submit an application to a job. Pass `attributes.applicableId` (the job's id)
|
|
20
|
+
* plus `contactAttributes` and/or `formResponseAttributes`. Returns the
|
|
21
|
+
* mutation payload as-is (including any `errors`) rather than throwing.
|
|
22
|
+
*/
|
|
23
|
+
export declare function createApplication(client: UiduClient, variables: CreateApplicationMutationVariables): Promise<{
|
|
24
|
+
__typename?: "CreateApplicationPayload";
|
|
25
|
+
errors: Array<{
|
|
26
|
+
__typename?: "Error";
|
|
27
|
+
key: string;
|
|
28
|
+
name: string;
|
|
29
|
+
type: string;
|
|
30
|
+
}>;
|
|
31
|
+
application?: {
|
|
32
|
+
__typename?: "Application";
|
|
33
|
+
id: string;
|
|
34
|
+
aasmState?: string | null;
|
|
35
|
+
summary?: string | null;
|
|
36
|
+
completedAt?: any | null;
|
|
37
|
+
createdAt: any;
|
|
38
|
+
contact?: {
|
|
39
|
+
__typename?: "Contact";
|
|
40
|
+
id: string;
|
|
41
|
+
humanName: string;
|
|
42
|
+
email?: string | null;
|
|
43
|
+
} | null;
|
|
44
|
+
applicable: {
|
|
45
|
+
__typename: "Call";
|
|
46
|
+
id: string;
|
|
47
|
+
name?: string | null;
|
|
48
|
+
kind: import("./generated/index.js").CallKind;
|
|
49
|
+
} | {
|
|
50
|
+
__typename: "Grant";
|
|
51
|
+
};
|
|
52
|
+
formResponse?: {
|
|
53
|
+
__typename?: "FormResponse";
|
|
54
|
+
id: string;
|
|
55
|
+
} | null;
|
|
56
|
+
} | null;
|
|
57
|
+
} | null>;
|
|
@@ -15,6 +15,7 @@ export declare function listCalls(client: UiduClient, variables?: ListCallsQuery
|
|
|
15
15
|
salaryMax?: number | null;
|
|
16
16
|
publishedAt?: any | null;
|
|
17
17
|
expiresAt?: any | null;
|
|
18
|
+
publicUrl?: string | null;
|
|
18
19
|
publicPath?: string | null;
|
|
19
20
|
published?: boolean | null;
|
|
20
21
|
primaryAddress?: {
|
|
@@ -25534,6 +25534,8 @@ export type NoteAttributes = {
|
|
|
25534
25534
|
relatedAttributes?: InputMaybe<Array<RelationshipAttributes>>;
|
|
25535
25535
|
/** Relationships */
|
|
25536
25536
|
relationshipsAttributes?: InputMaybe<Array<RelationshipAttributes>>;
|
|
25537
|
+
/** The app instance this note lives in */
|
|
25538
|
+
workspaceAppId?: InputMaybe<Scalars['ID']['input']>;
|
|
25537
25539
|
};
|
|
25538
25540
|
/** The connection type for Note. */
|
|
25539
25541
|
export type NoteConnection = {
|
|
@@ -25623,7 +25625,7 @@ export type NoteTemplateEdge = {
|
|
|
25623
25625
|
node?: Maybe<NoteTemplate>;
|
|
25624
25626
|
};
|
|
25625
25627
|
/** Objects can be applied to */
|
|
25626
|
-
export type Notifiable = Application | Blob | Comment | Contact | Donation | EventStoreEvent | Export | FormResponse | Import | Mention | Order | Task | Ticket;
|
|
25628
|
+
export type Notifiable = Application | Blob | Comment | Contact | Donation | EventStoreEvent | Export | FormResponse | Import | Mention | Order | Space | Task | Ticket | Workspace;
|
|
25627
25629
|
export type Notification = ActiveRecordTimestamp & Node & {
|
|
25628
25630
|
__typename?: 'Notification';
|
|
25629
25631
|
createdAt: Scalars['ISO8601DateTime']['output'];
|
|
@@ -42295,6 +42297,100 @@ export type WorkspaceTaggingEdge = {
|
|
|
42295
42297
|
/** The item at the end of the edge. */
|
|
42296
42298
|
node?: Maybe<WorkspaceTagging>;
|
|
42297
42299
|
};
|
|
42300
|
+
export type CreateApplicationMutationVariables = Exact<{
|
|
42301
|
+
input: CreateApplicationInput;
|
|
42302
|
+
}>;
|
|
42303
|
+
export type CreateApplicationMutation = {
|
|
42304
|
+
__typename?: 'Mutation';
|
|
42305
|
+
createApplication?: {
|
|
42306
|
+
__typename?: 'CreateApplicationPayload';
|
|
42307
|
+
errors: Array<{
|
|
42308
|
+
__typename?: 'Error';
|
|
42309
|
+
key: string;
|
|
42310
|
+
name: string;
|
|
42311
|
+
type: string;
|
|
42312
|
+
}>;
|
|
42313
|
+
application?: {
|
|
42314
|
+
__typename?: 'Application';
|
|
42315
|
+
id: string;
|
|
42316
|
+
aasmState?: string | null;
|
|
42317
|
+
summary?: string | null;
|
|
42318
|
+
completedAt?: any | null;
|
|
42319
|
+
createdAt: any;
|
|
42320
|
+
contact?: {
|
|
42321
|
+
__typename?: 'Contact';
|
|
42322
|
+
id: string;
|
|
42323
|
+
humanName: string;
|
|
42324
|
+
email?: string | null;
|
|
42325
|
+
} | null;
|
|
42326
|
+
applicable: {
|
|
42327
|
+
__typename: 'Call';
|
|
42328
|
+
id: string;
|
|
42329
|
+
name?: string | null;
|
|
42330
|
+
kind: CallKind;
|
|
42331
|
+
} | {
|
|
42332
|
+
__typename: 'Grant';
|
|
42333
|
+
};
|
|
42334
|
+
formResponse?: {
|
|
42335
|
+
__typename?: 'FormResponse';
|
|
42336
|
+
id: string;
|
|
42337
|
+
} | null;
|
|
42338
|
+
} | null;
|
|
42339
|
+
} | null;
|
|
42340
|
+
};
|
|
42341
|
+
export type ListApplicationsQueryVariables = Exact<{
|
|
42342
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
42343
|
+
after?: InputMaybe<Scalars['String']['input']>;
|
|
42344
|
+
}>;
|
|
42345
|
+
export type ListApplicationsQuery = {
|
|
42346
|
+
__typename?: 'Query';
|
|
42347
|
+
currentWorkspace?: {
|
|
42348
|
+
__typename?: 'Workspace';
|
|
42349
|
+
applications: {
|
|
42350
|
+
__typename?: 'ApplicationConnection';
|
|
42351
|
+
pageInfo: {
|
|
42352
|
+
__typename?: 'PageInfo';
|
|
42353
|
+
hasNextPage: boolean;
|
|
42354
|
+
endCursor?: string | null;
|
|
42355
|
+
};
|
|
42356
|
+
edges?: Array<{
|
|
42357
|
+
__typename?: 'ApplicationEdge';
|
|
42358
|
+
node?: {
|
|
42359
|
+
__typename?: 'Application';
|
|
42360
|
+
id: string;
|
|
42361
|
+
aasmState?: string | null;
|
|
42362
|
+
summary?: string | null;
|
|
42363
|
+
completedAt?: any | null;
|
|
42364
|
+
createdAt: any;
|
|
42365
|
+
status?: {
|
|
42366
|
+
__typename?: 'Status';
|
|
42367
|
+
id: string;
|
|
42368
|
+
name?: string | null;
|
|
42369
|
+
color?: string | null;
|
|
42370
|
+
} | null;
|
|
42371
|
+
contact?: {
|
|
42372
|
+
__typename?: 'Contact';
|
|
42373
|
+
id: string;
|
|
42374
|
+
humanName: string;
|
|
42375
|
+
email?: string | null;
|
|
42376
|
+
} | null;
|
|
42377
|
+
applicable: {
|
|
42378
|
+
__typename: 'Call';
|
|
42379
|
+
id: string;
|
|
42380
|
+
name?: string | null;
|
|
42381
|
+
kind: CallKind;
|
|
42382
|
+
} | {
|
|
42383
|
+
__typename: 'Grant';
|
|
42384
|
+
};
|
|
42385
|
+
formResponse?: {
|
|
42386
|
+
__typename?: 'FormResponse';
|
|
42387
|
+
id: string;
|
|
42388
|
+
} | null;
|
|
42389
|
+
} | null;
|
|
42390
|
+
} | null> | null;
|
|
42391
|
+
};
|
|
42392
|
+
} | null;
|
|
42393
|
+
};
|
|
42298
42394
|
export type GetBookingQueryVariables = Exact<{
|
|
42299
42395
|
id: Scalars['ID']['input'];
|
|
42300
42396
|
}>;
|
|
@@ -42611,6 +42707,7 @@ export type ListCallsQuery = {
|
|
|
42611
42707
|
salaryMax?: number | null;
|
|
42612
42708
|
publishedAt?: any | null;
|
|
42613
42709
|
expiresAt?: any | null;
|
|
42710
|
+
publicUrl?: string | null;
|
|
42614
42711
|
publicPath?: string | null;
|
|
42615
42712
|
published?: boolean | null;
|
|
42616
42713
|
primaryAddress?: {
|
|
@@ -44563,6 +44660,76 @@ export type DeleteNoteMutation = {
|
|
|
44563
44660
|
}>;
|
|
44564
44661
|
} | null;
|
|
44565
44662
|
};
|
|
44663
|
+
export type CreateCompensationMutationVariables = Exact<{
|
|
44664
|
+
input: CreateCompensationInput;
|
|
44665
|
+
}>;
|
|
44666
|
+
export type CreateCompensationMutation = {
|
|
44667
|
+
__typename?: 'Mutation';
|
|
44668
|
+
createCompensation?: {
|
|
44669
|
+
__typename?: 'CreateCompensationPayload';
|
|
44670
|
+
compensation?: {
|
|
44671
|
+
__typename?: 'CompensationEdge';
|
|
44672
|
+
node?: {
|
|
44673
|
+
__typename?: 'Compensation';
|
|
44674
|
+
id: string;
|
|
44675
|
+
amount: number;
|
|
44676
|
+
currency: string;
|
|
44677
|
+
frequency: string;
|
|
44678
|
+
componentType: string;
|
|
44679
|
+
effectiveFrom: any;
|
|
44680
|
+
} | null;
|
|
44681
|
+
} | null;
|
|
44682
|
+
errors: Array<{
|
|
44683
|
+
__typename?: 'Error';
|
|
44684
|
+
key: string;
|
|
44685
|
+
name: string;
|
|
44686
|
+
type: string;
|
|
44687
|
+
}>;
|
|
44688
|
+
} | null;
|
|
44689
|
+
};
|
|
44690
|
+
export type UpdateCompensationMutationVariables = Exact<{
|
|
44691
|
+
input: UpdateCompensationInput;
|
|
44692
|
+
}>;
|
|
44693
|
+
export type UpdateCompensationMutation = {
|
|
44694
|
+
__typename?: 'Mutation';
|
|
44695
|
+
updateCompensation?: {
|
|
44696
|
+
__typename?: 'UpdateCompensationPayload';
|
|
44697
|
+
compensation?: {
|
|
44698
|
+
__typename?: 'Compensation';
|
|
44699
|
+
id: string;
|
|
44700
|
+
amount: number;
|
|
44701
|
+
currency: string;
|
|
44702
|
+
frequency: string;
|
|
44703
|
+
componentType: string;
|
|
44704
|
+
effectiveFrom: any;
|
|
44705
|
+
} | null;
|
|
44706
|
+
errors: Array<{
|
|
44707
|
+
__typename?: 'Error';
|
|
44708
|
+
key: string;
|
|
44709
|
+
name: string;
|
|
44710
|
+
type: string;
|
|
44711
|
+
}>;
|
|
44712
|
+
} | null;
|
|
44713
|
+
};
|
|
44714
|
+
export type DeleteCompensationMutationVariables = Exact<{
|
|
44715
|
+
input: DeleteCompensationInput;
|
|
44716
|
+
}>;
|
|
44717
|
+
export type DeleteCompensationMutation = {
|
|
44718
|
+
__typename?: 'Mutation';
|
|
44719
|
+
deleteCompensation?: {
|
|
44720
|
+
__typename?: 'DeleteCompensationPayload';
|
|
44721
|
+
compensation?: {
|
|
44722
|
+
__typename?: 'Compensation';
|
|
44723
|
+
id: string;
|
|
44724
|
+
} | null;
|
|
44725
|
+
errors: Array<{
|
|
44726
|
+
__typename?: 'Error';
|
|
44727
|
+
key: string;
|
|
44728
|
+
name: string;
|
|
44729
|
+
type: string;
|
|
44730
|
+
}>;
|
|
44731
|
+
} | null;
|
|
44732
|
+
};
|
|
44566
44733
|
export type GetEmployeeQueryVariables = Exact<{
|
|
44567
44734
|
id: Scalars['ID']['input'];
|
|
44568
44735
|
weekStartingAt: Scalars['ISO8601Date']['input'];
|
|
@@ -44732,6 +44899,26 @@ export type ListEmploymentHistoryQuery = {
|
|
|
44732
44899
|
endReason?: string | null;
|
|
44733
44900
|
jobTitle?: string | null;
|
|
44734
44901
|
contractType?: string | null;
|
|
44902
|
+
ccnl?: {
|
|
44903
|
+
__typename?: 'Kind';
|
|
44904
|
+
id: string;
|
|
44905
|
+
name?: string | null;
|
|
44906
|
+
} | null;
|
|
44907
|
+
compensations: {
|
|
44908
|
+
__typename?: 'CompensationConnection';
|
|
44909
|
+
edges?: Array<{
|
|
44910
|
+
__typename?: 'CompensationEdge';
|
|
44911
|
+
node?: {
|
|
44912
|
+
__typename?: 'Compensation';
|
|
44913
|
+
id: string;
|
|
44914
|
+
amount: number;
|
|
44915
|
+
currency: string;
|
|
44916
|
+
frequency: string;
|
|
44917
|
+
componentType: string;
|
|
44918
|
+
effectiveFrom: any;
|
|
44919
|
+
} | null;
|
|
44920
|
+
} | null> | null;
|
|
44921
|
+
};
|
|
44735
44922
|
} | null;
|
|
44736
44923
|
} | null> | null;
|
|
44737
44924
|
};
|
|
@@ -45305,6 +45492,8 @@ export type DeleteTaskMutation = {
|
|
|
45305
45492
|
};
|
|
45306
45493
|
export declare const FormFieldsFragmentDoc: DocumentNode<FormFieldsFragment, unknown>;
|
|
45307
45494
|
export declare const FormResponseFieldsFragmentDoc: DocumentNode<FormResponseFieldsFragment, unknown>;
|
|
45495
|
+
export declare const CreateApplicationDocument: DocumentNode<CreateApplicationMutation, CreateApplicationMutationVariables>;
|
|
45496
|
+
export declare const ListApplicationsDocument: DocumentNode<ListApplicationsQuery, ListApplicationsQueryVariables>;
|
|
45308
45497
|
export declare const GetBookingDocument: DocumentNode<GetBookingQuery, GetBookingQueryVariables>;
|
|
45309
45498
|
export declare const GetCalendarDocument: DocumentNode<GetCalendarQuery, GetCalendarQueryVariables>;
|
|
45310
45499
|
export declare const GetCalendarEventDocument: DocumentNode<GetCalendarEventQuery, GetCalendarEventQueryVariables>;
|
|
@@ -45375,6 +45564,9 @@ export declare const ListKbCollectionsDocument: DocumentNode<ListKbCollectionsQu
|
|
|
45375
45564
|
export declare const CreateNoteDocument: DocumentNode<CreateNoteMutation, CreateNoteMutationVariables>;
|
|
45376
45565
|
export declare const UpdateNoteDocument: DocumentNode<UpdateNoteMutation, UpdateNoteMutationVariables>;
|
|
45377
45566
|
export declare const DeleteNoteDocument: DocumentNode<DeleteNoteMutation, DeleteNoteMutationVariables>;
|
|
45567
|
+
export declare const CreateCompensationDocument: DocumentNode<CreateCompensationMutation, CreateCompensationMutationVariables>;
|
|
45568
|
+
export declare const UpdateCompensationDocument: DocumentNode<UpdateCompensationMutation, UpdateCompensationMutationVariables>;
|
|
45569
|
+
export declare const DeleteCompensationDocument: DocumentNode<DeleteCompensationMutation, DeleteCompensationMutationVariables>;
|
|
45378
45570
|
export declare const GetEmployeeDocument: DocumentNode<GetEmployeeQuery, GetEmployeeQueryVariables>;
|
|
45379
45571
|
export declare const ListCirclesDocument: DocumentNode<ListCirclesQuery, ListCirclesQueryVariables>;
|
|
45380
45572
|
export declare const ListEmployeesDocument: DocumentNode<ListEmployeesQuery, ListEmployeesQueryVariables>;
|
|
@@ -3,14 +3,14 @@ export { UiduError } from "./types.js";
|
|
|
3
3
|
export type { UiduClientConfig, UiduErrorOptions } from "./types.js";
|
|
4
4
|
export { paginate } from "./utils/paginate.js";
|
|
5
5
|
export type { PaginateOptions } from "./utils/paginate.js";
|
|
6
|
-
export { ListBookingsDocument, ListCalendarsDocument, ListCalendarEventsDocument, ListCallsDocument, ListCampaignsDocument, ListEmailCampaignsDocument, ListCoursesDocument, ListDealsDocument, ListDonationCampaignsDocument, ListEmployeesDocument, ListEnrollmentsDocument, ListEventsDocument, ListFormsDocument, ListKbArticlesDocument, ListKbCollectionsDocument, ListLecturesDocument, ListPagesDocument, ListStoriesDocument, } from "./generated/index.js";
|
|
6
|
+
export { ListApplicationsDocument, ListBookingsDocument, ListCalendarsDocument, ListCalendarEventsDocument, ListCallsDocument, ListCampaignsDocument, ListEmailCampaignsDocument, ListCoursesDocument, ListDealsDocument, ListDonationCampaignsDocument, ListEmployeesDocument, ListEnrollmentsDocument, ListEventsDocument, ListFormsDocument, ListKbArticlesDocument, ListKbCollectionsDocument, ListLecturesDocument, ListPagesDocument, ListStoriesDocument, } from "./generated/index.js";
|
|
7
7
|
export { getPage, listPages, getTemplate, createProject, createPage, createPageBlock, createFieldValue, } from "./cms.js";
|
|
8
8
|
export type { Page, Template } from "./cms.js";
|
|
9
9
|
export { createWorkspace, generateWorkspaceApiCredentials, } from "./system.js";
|
|
10
10
|
export { createSpace } from "./spaces.js";
|
|
11
11
|
export { createTask } from "./tasks.js";
|
|
12
12
|
export { createNote } from "./notes.js";
|
|
13
|
-
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, } from "./mutations.js";
|
|
13
|
+
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";
|
|
14
14
|
export { getForm, listForms, createFormResponse, updateFormResponse, } from "./forms.js";
|
|
15
15
|
export type { Form } from "./forms.js";
|
|
16
16
|
export { getChannel } from "./help-center.js";
|
|
@@ -21,12 +21,16 @@ export { getEvent, listEvents, createAttendance, createEvent } from "./events.js
|
|
|
21
21
|
export type { Event } from "./events.js";
|
|
22
22
|
export { getCall, listCalls } from "./calls.js";
|
|
23
23
|
export type { Call } from "./calls.js";
|
|
24
|
+
export { getJob, listJobs } from "./jobs.js";
|
|
25
|
+
export type { Job } from "./jobs.js";
|
|
26
|
+
export { listApplications, createApplication } from "./applications.js";
|
|
27
|
+
export type { Application } from "./applications.js";
|
|
24
28
|
export { getDonationCampaign, listDonationCampaigns, createDonation, createDonationCampaign, } from "./donations.js";
|
|
25
29
|
export type { DonationCampaign } from "./donations.js";
|
|
26
30
|
export { getStory, listStories, createStory } from "./stories.js";
|
|
27
31
|
export type { Story } from "./stories.js";
|
|
28
32
|
export { listEmployees, getEmployee, weekStartFor, listOffices, listCircles, listRoles, listKinds, listCcnls, listEmploymentHistory, contractEvents, } from "./people.js";
|
|
29
|
-
export type { Employee, Office, Circle, Kind, EmploymentRecord, EmployeeContracts, ContractEvent, ContractEventType, } from "./people.js";
|
|
33
|
+
export type { Employee, Office, Circle, Kind, EmploymentRecord, CompensationRecord, EmployeeContracts, ContractEvent, ContractEventType, } from "./people.js";
|
|
30
34
|
export { getBooking, listBookings, getCalendar, listCalendars, getCalendarEvent, listCalendarEvents, } from "./bookings.js";
|
|
31
35
|
export type { Booking, Calendar, CalendarEvent } from "./bookings.js";
|
|
32
36
|
export { getCourse, listCourses, getEnrollment, listEnrollments, getLecture, listLectures, } from "./courses.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { UiduClient } from "./client.js";
|
|
2
|
+
import { getCall, listCalls, type Call } from "./calls.js";
|
|
3
|
+
/**
|
|
4
|
+
* A job posting — a {@link Call} whose `kind` is `job`.
|
|
5
|
+
*
|
|
6
|
+
* Jobs are a *derived view* over the `calls` domain: there is no separate
|
|
7
|
+
* `jobs` field in the GraphQL schema, so `listJobs`/`getJob` reuse the calls
|
|
8
|
+
* queries and constrain the result to `kind: job`. No codegen is required for
|
|
9
|
+
* this integration (contrast with `applications`, which is a first-class type).
|
|
10
|
+
*/
|
|
11
|
+
export type Job = Call;
|
|
12
|
+
/** List job postings (calls of kind `job`). */
|
|
13
|
+
export declare function listJobs(client: UiduClient, variables?: Parameters<typeof listCalls>[1]): Promise<Awaited<ReturnType<typeof listCalls>>>;
|
|
14
|
+
/** Fetch a single job posting; returns `null` if the call is not a job. */
|
|
15
|
+
export declare function getJob(client: UiduClient, variables: Parameters<typeof getCall>[1]): Promise<Job | null>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { UiduClient } from "./client.js";
|
|
2
|
-
import { type CreateChannelMutationVariables, type CreateContactMutationVariables, type CreateCourseMutationVariables, type CreateDealMutationVariables, type CreateEmployeeMutationVariables, type CreateEmploymentMutationVariables, type CreateFormMutationVariables, type CreateKbArticleMutationVariables, type CreateKbCollectionMutationVariables, type DeleteChannelMutationVariables, type DeleteContactMutationVariables, type DeleteCourseMutationVariables, type DeleteDonationCampaignMutationVariables, type DeleteEmploymentMutationVariables, type DeleteFormMutationVariables, type DeleteKbArticleMutationVariables, type DeleteKbCollectionMutationVariables, type DeleteNoteMutationVariables, type DeleteSpaceMutationVariables, type DeleteTaskMutationVariables, type UpdateChannelMutationVariables, 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 CreateContactMutationVariables, type CreateCourseMutationVariables, type CreateCompensationMutationVariables, type CreateDealMutationVariables, type CreateEmployeeMutationVariables, type CreateEmploymentMutationVariables, type CreateFormMutationVariables, type CreateKbArticleMutationVariables, type CreateKbCollectionMutationVariables, 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";
|
|
3
3
|
export declare function createCourse(c: UiduClient, v: CreateCourseMutationVariables): Promise<{
|
|
4
4
|
__typename?: "CreateCoursePayload";
|
|
5
5
|
course?: {
|
|
@@ -257,6 +257,58 @@ export declare function terminateEmployment(c: UiduClient, args: {
|
|
|
257
257
|
type: string;
|
|
258
258
|
}>;
|
|
259
259
|
} | null>;
|
|
260
|
+
export declare function createCompensation(c: UiduClient, v: CreateCompensationMutationVariables): Promise<{
|
|
261
|
+
__typename?: "CreateCompensationPayload";
|
|
262
|
+
compensation?: {
|
|
263
|
+
__typename?: "CompensationEdge";
|
|
264
|
+
node?: {
|
|
265
|
+
__typename?: "Compensation";
|
|
266
|
+
id: string;
|
|
267
|
+
amount: number;
|
|
268
|
+
currency: string;
|
|
269
|
+
frequency: string;
|
|
270
|
+
componentType: string;
|
|
271
|
+
effectiveFrom: any;
|
|
272
|
+
} | null;
|
|
273
|
+
} | null;
|
|
274
|
+
errors: Array<{
|
|
275
|
+
__typename?: "Error";
|
|
276
|
+
key: string;
|
|
277
|
+
name: string;
|
|
278
|
+
type: string;
|
|
279
|
+
}>;
|
|
280
|
+
} | null>;
|
|
281
|
+
export declare function updateCompensation(c: UiduClient, v: UpdateCompensationMutationVariables): Promise<{
|
|
282
|
+
__typename?: "UpdateCompensationPayload";
|
|
283
|
+
compensation?: {
|
|
284
|
+
__typename?: "Compensation";
|
|
285
|
+
id: string;
|
|
286
|
+
amount: number;
|
|
287
|
+
currency: string;
|
|
288
|
+
frequency: string;
|
|
289
|
+
componentType: string;
|
|
290
|
+
effectiveFrom: any;
|
|
291
|
+
} | null;
|
|
292
|
+
errors: Array<{
|
|
293
|
+
__typename?: "Error";
|
|
294
|
+
key: string;
|
|
295
|
+
name: string;
|
|
296
|
+
type: string;
|
|
297
|
+
}>;
|
|
298
|
+
} | null>;
|
|
299
|
+
export declare function deleteCompensation(c: UiduClient, v: DeleteCompensationMutationVariables): Promise<{
|
|
300
|
+
__typename?: "DeleteCompensationPayload";
|
|
301
|
+
compensation?: {
|
|
302
|
+
__typename?: "Compensation";
|
|
303
|
+
id: string;
|
|
304
|
+
} | null;
|
|
305
|
+
errors: Array<{
|
|
306
|
+
__typename?: "Error";
|
|
307
|
+
key: string;
|
|
308
|
+
name: string;
|
|
309
|
+
type: string;
|
|
310
|
+
}>;
|
|
311
|
+
} | null>;
|
|
260
312
|
export declare function createKbCollection(c: UiduClient, v: CreateKbCollectionMutationVariables): Promise<{
|
|
261
313
|
__typename?: "CreateKbCollectionPayload";
|
|
262
314
|
kbCollection?: {
|
|
@@ -51,6 +51,17 @@ export declare function listKinds(client: UiduClient, variables: ListKindsQueryV
|
|
|
51
51
|
* workspace — used for an employment's `ccnlId`.
|
|
52
52
|
*/
|
|
53
53
|
export declare function listCcnls(client: UiduClient, variables?: Omit<ListKindsQueryVariables, 'models'>): Promise<Kind[]>;
|
|
54
|
+
/** A pay item attached to a contract. */
|
|
55
|
+
export type CompensationRecord = {
|
|
56
|
+
id: string;
|
|
57
|
+
amount: number | null;
|
|
58
|
+
currency: string | null;
|
|
59
|
+
/** e.g. monthly, yearly, hourly. */
|
|
60
|
+
frequency: string | null;
|
|
61
|
+
/** e.g. base, bonus. */
|
|
62
|
+
componentType: string | null;
|
|
63
|
+
effectiveFrom: string | null;
|
|
64
|
+
};
|
|
54
65
|
/** A single contract (employment) reduced to the fields that describe its span. */
|
|
55
66
|
export type EmploymentRecord = {
|
|
56
67
|
id: string;
|
|
@@ -59,6 +70,13 @@ export type EmploymentRecord = {
|
|
|
59
70
|
endReason: string | null;
|
|
60
71
|
jobTitle: string | null;
|
|
61
72
|
contractType: string | null;
|
|
73
|
+
/** The CCNL (national collective labor contract) that applies, if any. */
|
|
74
|
+
ccnl: {
|
|
75
|
+
id: string;
|
|
76
|
+
name: string | null;
|
|
77
|
+
} | null;
|
|
78
|
+
/** Pay items on this contract, most recent effective date first. */
|
|
79
|
+
compensations: CompensationRecord[];
|
|
62
80
|
};
|
|
63
81
|
/** An employee together with their full list of contracts. */
|
|
64
82
|
export type EmployeeContracts = {
|