@uidu/client 3.19.0 → 3.21.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 +118 -5
- package/dist/declarations/src/contracts.d.ts +496 -1
- package/dist/declarations/src/expenses.d.ts +5 -0
- package/dist/declarations/src/generated/index.d.ts +1720 -22
- package/dist/declarations/src/index.d.ts +6 -6
- 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 +158 -10
- package/dist/uidu-client.cjs.prod.js +158 -10
- package/dist/uidu-client.esm.js +146 -11
- package/package.json +1 -1
- package/src/candidates.ts +84 -3
- package/src/contracts.test.ts +97 -0
- package/src/contracts.ts +96 -1
- package/src/generated/index.ts +711 -49
- package/src/index.ts +26 -4
- package/src/meetings.ts +35 -0
- package/src/queries/candidates/CandidateFields.graphql +19 -1
- package/src/queries/candidates/CandidateMutations.graphql +27 -0
- package/src/queries/candidates/CandidateQueries.graphql +52 -3
- package/src/queries/contracts/ContractMutations.graphql +108 -0
- package/src/queries/contracts/ContractQueries.graphql +17 -0
- package/src/queries/expenses/ListAnalyticAccounts.graphql +4 -0
- package/src/queries/meetings/MeetingQueries.graphql +46 -0
- package/src/queries/reviews/ReviewQueries.graphql +22 -3
- package/src/recruiting.test.ts +102 -1
- package/src/reviews.ts +27 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @uidu/client
|
|
2
2
|
|
|
3
|
+
## 3.21.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 70fd345: Recruiting: `listCandidates` lists the workspace's candidates with their custom fields, filtered by pool, source and last interaction. `listReviews` without `ownerId` now lists every review in the workspace, with or without a cycle, filtered by person, template, `dueOn` and `completedAt`. `getReview` returns `pdfUrl`, the review printed to PDF.
|
|
8
|
+
- bf1e6c8: Recruiting: `createCandidate`, `getPool`, `deletePoolContact`, `getMeeting` and `updateMeeting`. A candidate's `source` is now the record they came through (an Application, Pool, Organization or User, as uidu returns it since the polymorphic source landed), with `sourceChannel` saying how — the previous string `source` no longer matches the API.
|
|
9
|
+
|
|
10
|
+
## 3.20.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- 5d944da: Write contracts: `createContract`, `updateContract`, `activateContract`, `discardContract`, `createContractItem`, `updateContractItem`, `deleteContractItem`. Contract reads now carry their lines (`contractItems`) and the sector of their analytic account (`analyticAccount.effectiveResponsibleCircle`), which `listAnalyticAccounts` returns too. The custom-app template says contracts are reachable from an app.
|
|
15
|
+
|
|
3
16
|
## 3.19.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
import type { UiduClient } from "./client.js";
|
|
2
|
-
import { type CreatePoolContactMutationVariables, type FindCandidatesQuery, type FindCandidatesQueryVariables, type GetCandidateQuery, type GetCandidateQueryVariables, type ListPoolsQuery, type ListPoolsQueryVariables, type UpdateCandidateMutationVariables } from "./generated/index.js";
|
|
2
|
+
import { type CreateCandidateMutationVariables, type CreatePoolContactMutationVariables, type DeletePoolContactMutationVariables, type FindCandidatesQuery, type FindCandidatesQueryVariables, type GetCandidateQuery, type GetCandidateQueryVariables, type GetPoolQuery, type GetPoolQueryVariables, type ListCandidatesQuery, type ListCandidatesQueryVariables, type ListPoolsQuery, type ListPoolsQueryVariables, type UpdateCandidateMutationVariables } from "./generated/index.js";
|
|
3
3
|
export type CandidateSearch = NonNullable<NonNullable<FindCandidatesQuery['currentWorkspace']>['findCandidates']>;
|
|
4
4
|
export type Candidate = CandidateSearch['candidates'][number];
|
|
5
5
|
export type CandidateDetail = Extract<NonNullable<GetCandidateQuery['node']>, {
|
|
6
6
|
__typename: 'Candidate';
|
|
7
7
|
}>;
|
|
8
8
|
export type Pool = NonNullable<NonNullable<NonNullable<NonNullable<ListPoolsQuery['currentWorkspace']>['pools']['edges']>[number]>['node']>;
|
|
9
|
+
export type CandidateListItem = NonNullable<NonNullable<NonNullable<NonNullable<ListCandidatesQuery['currentWorkspace']>['candidates']['edges']>[number]>['node']>;
|
|
10
|
+
export type PoolDetail = NonNullable<NonNullable<GetPoolQuery['currentWorkspace']>['pool']>;
|
|
11
|
+
export type PoolContact = NonNullable<NonNullable<NonNullable<PoolDetail['poolContacts']['edges']>[number]>['node']>;
|
|
12
|
+
/**
|
|
13
|
+
* The workspace's candidates with their custom fields, filtered with
|
|
14
|
+
* `params.filters` — `poolIds` (in), `source` (in, the GlobalIDs of the
|
|
15
|
+
* Application, Pool, Organization or User they came through) and
|
|
16
|
+
* `lastInteractionAt` (`>=`, `<=`, `between`); page with `first`/`after`.
|
|
17
|
+
*/
|
|
18
|
+
export declare function listCandidates(client: UiduClient, variables?: ListCandidatesQueryVariables): Promise<CandidateListItem[]>;
|
|
9
19
|
/**
|
|
10
20
|
* Rank the talent pool against a description (`term`) — and, with `callId`,
|
|
11
21
|
* that call's applications too — and return the `candidates`, `applications`
|
|
12
22
|
* and per-record `evidence`, or null when the viewer may not search.
|
|
13
23
|
*
|
|
14
|
-
*
|
|
15
|
-
* `candidates` connection. A blank `term` with a `callId` uses the call's own
|
|
24
|
+
* For a plain filtered list use {@link listCandidates}. A blank `term` with a `callId` uses the call's own
|
|
16
25
|
* words; `near` + `withinKm` keep only those living close enough, and
|
|
17
26
|
* `eligibleFor` only those of an age the contract allows.
|
|
18
27
|
*/
|
|
@@ -23,7 +32,77 @@ export declare function findCandidates(client: UiduClient, variables?: FindCandi
|
|
|
23
32
|
*/
|
|
24
33
|
export declare function getCandidate(client: UiduClient, variables: GetCandidateQueryVariables): Promise<CandidateDetail | null>;
|
|
25
34
|
/**
|
|
26
|
-
*
|
|
35
|
+
* Add someone to the talent pool as a candidate: `attributes: { userId,
|
|
36
|
+
* sourceChannel?, sourceId?, poolConsentAt?, fieldValues? }`, where `sourceId`
|
|
37
|
+
* is the GlobalID of the Application, Pool, Organization or User they came
|
|
38
|
+
* through. Returns the mutation payload as-is (including any `errors`).
|
|
39
|
+
*/
|
|
40
|
+
export declare function createCandidate(client: UiduClient, variables: CreateCandidateMutationVariables): Promise<{
|
|
41
|
+
__typename?: "CreateCandidatePayload";
|
|
42
|
+
candidates?: {
|
|
43
|
+
__typename?: "CandidateConnection";
|
|
44
|
+
edges?: Array<{
|
|
45
|
+
__typename?: "CandidateEdge";
|
|
46
|
+
node?: {
|
|
47
|
+
__typename?: "Candidate";
|
|
48
|
+
id: string;
|
|
49
|
+
name?: string | null;
|
|
50
|
+
cvHeadline?: string | null;
|
|
51
|
+
cvSummary?: string | null;
|
|
52
|
+
sourceChannel: import("./generated/index.js").CandidateSourceEnum;
|
|
53
|
+
poolConsent: boolean;
|
|
54
|
+
poolConsentAt?: any | null;
|
|
55
|
+
retainUntil?: any | null;
|
|
56
|
+
retentionMonths: number;
|
|
57
|
+
lastInteractionAt?: any | null;
|
|
58
|
+
createdAt: any;
|
|
59
|
+
updatedAt: any;
|
|
60
|
+
source?: {
|
|
61
|
+
__typename: "Application";
|
|
62
|
+
id: string;
|
|
63
|
+
} | {
|
|
64
|
+
__typename: "Organization";
|
|
65
|
+
id: string;
|
|
66
|
+
name?: string | null;
|
|
67
|
+
} | {
|
|
68
|
+
__typename: "Pool";
|
|
69
|
+
id: string;
|
|
70
|
+
name?: string | null;
|
|
71
|
+
} | {
|
|
72
|
+
__typename: "User";
|
|
73
|
+
id: string;
|
|
74
|
+
name?: string | null;
|
|
75
|
+
} | null;
|
|
76
|
+
contact?: {
|
|
77
|
+
__typename?: "Contact";
|
|
78
|
+
id: string;
|
|
79
|
+
name?: string | null;
|
|
80
|
+
email?: string | null;
|
|
81
|
+
} | null;
|
|
82
|
+
user: {
|
|
83
|
+
__typename?: "User";
|
|
84
|
+
id: string;
|
|
85
|
+
name?: string | null;
|
|
86
|
+
email?: string | null;
|
|
87
|
+
};
|
|
88
|
+
pools: Array<{
|
|
89
|
+
__typename?: "Pool";
|
|
90
|
+
id: string;
|
|
91
|
+
name?: string | null;
|
|
92
|
+
}>;
|
|
93
|
+
} | null;
|
|
94
|
+
} | null> | null;
|
|
95
|
+
} | null;
|
|
96
|
+
errors: Array<{
|
|
97
|
+
__typename?: "Error";
|
|
98
|
+
key: string;
|
|
99
|
+
name: string;
|
|
100
|
+
type: string;
|
|
101
|
+
}>;
|
|
102
|
+
} | null>;
|
|
103
|
+
/**
|
|
104
|
+
* Update a candidate: pool consent (`poolConsentAt`), where they came from
|
|
105
|
+
* (`sourceChannel` + `sourceId`), custom `fieldValues`, or
|
|
27
106
|
* `extendRetention: true` to push `retainUntil` out by another retention
|
|
28
107
|
* period. Returns the mutation payload as-is (including any `errors`).
|
|
29
108
|
*/
|
|
@@ -35,7 +114,7 @@ export declare function updateCandidate(client: UiduClient, variables: UpdateCan
|
|
|
35
114
|
name?: string | null;
|
|
36
115
|
cvHeadline?: string | null;
|
|
37
116
|
cvSummary?: string | null;
|
|
38
|
-
|
|
117
|
+
sourceChannel: import("./generated/index.js").CandidateSourceEnum;
|
|
39
118
|
poolConsent: boolean;
|
|
40
119
|
poolConsentAt?: any | null;
|
|
41
120
|
retainUntil?: any | null;
|
|
@@ -43,6 +122,22 @@ export declare function updateCandidate(client: UiduClient, variables: UpdateCan
|
|
|
43
122
|
lastInteractionAt?: any | null;
|
|
44
123
|
createdAt: any;
|
|
45
124
|
updatedAt: any;
|
|
125
|
+
source?: {
|
|
126
|
+
__typename: "Application";
|
|
127
|
+
id: string;
|
|
128
|
+
} | {
|
|
129
|
+
__typename: "Organization";
|
|
130
|
+
id: string;
|
|
131
|
+
name?: string | null;
|
|
132
|
+
} | {
|
|
133
|
+
__typename: "Pool";
|
|
134
|
+
id: string;
|
|
135
|
+
name?: string | null;
|
|
136
|
+
} | {
|
|
137
|
+
__typename: "User";
|
|
138
|
+
id: string;
|
|
139
|
+
name?: string | null;
|
|
140
|
+
} | null;
|
|
46
141
|
contact?: {
|
|
47
142
|
__typename?: "Contact";
|
|
48
143
|
id: string;
|
|
@@ -70,6 +165,11 @@ export declare function updateCandidate(client: UiduClient, variables: UpdateCan
|
|
|
70
165
|
} | null>;
|
|
71
166
|
/** The workspace's talent pools with how many contacts each holds; page with `first`/`after`. */
|
|
72
167
|
export declare function listPools(client: UiduClient, variables?: ListPoolsQueryVariables): Promise<Pool[]>;
|
|
168
|
+
/**
|
|
169
|
+
* One talent pool by GlobalID with a page of the contacts in it (`first` /
|
|
170
|
+
* `after`), or null.
|
|
171
|
+
*/
|
|
172
|
+
export declare function getPool(client: UiduClient, variables: GetPoolQueryVariables): Promise<PoolDetail | null>;
|
|
73
173
|
/**
|
|
74
174
|
* Add a contact to a pool (`attributes: { poolId, contactId }`). Returns the
|
|
75
175
|
* mutation payload as-is (including any `errors`).
|
|
@@ -100,3 +200,16 @@ export declare function createPoolContact(client: UiduClient, variables: CreateP
|
|
|
100
200
|
type: string;
|
|
101
201
|
}>;
|
|
102
202
|
} | null>;
|
|
203
|
+
/**
|
|
204
|
+
* Take a contact out of a pool, by the PoolContact's GlobalID. Returns the
|
|
205
|
+
* mutation payload as-is (including any `errors`).
|
|
206
|
+
*/
|
|
207
|
+
export declare function deletePoolContact(client: UiduClient, variables: DeletePoolContactMutationVariables): Promise<{
|
|
208
|
+
__typename?: "DeletePoolContactPayload";
|
|
209
|
+
errors: Array<{
|
|
210
|
+
__typename?: "Error";
|
|
211
|
+
key: string;
|
|
212
|
+
name: string;
|
|
213
|
+
type: string;
|
|
214
|
+
}>;
|
|
215
|
+
} | null>;
|
|
@@ -1,8 +1,503 @@
|
|
|
1
1
|
import type { UiduClient } from "./client.js";
|
|
2
|
-
import { type GetContractQuery, type GetContractQueryVariables, type ListContractsQuery, type ListContractsQueryVariables } from "./generated/index.js";
|
|
2
|
+
import { type ActivateContractMutationVariables, type CreateContractItemMutationVariables, type CreateContractMutationVariables, type DeleteContractItemMutationVariables, type DiscardContractMutationVariables, type UpdateContractItemMutationVariables, type UpdateContractMutationVariables, type GetContractQuery, type GetContractQueryVariables, type ListContractsQuery, type ListContractsQueryVariables } from "./generated/index.js";
|
|
3
3
|
export type Contract = NonNullable<NonNullable<NonNullable<NonNullable<ListContractsQuery['currentWorkspace']>['contracts']['edges']>[number]>['node']>;
|
|
4
4
|
export type ContractDetail = NonNullable<NonNullable<GetContractQuery['currentWorkspace']>['contract']>;
|
|
5
5
|
/** The workspace's contracts with their custom fields, filtered with `params`; page with `first`/`after`. */
|
|
6
6
|
export declare function listContracts(client: UiduClient, variables?: ListContractsQueryVariables): Promise<Contract[]>;
|
|
7
7
|
/** One contract with its field values and the fields that apply to it, or null. */
|
|
8
8
|
export declare function getContract(client: UiduClient, variables: GetContractQueryVariables): Promise<ContractDetail | null>;
|
|
9
|
+
/**
|
|
10
|
+
* Create a contract: `{ input: { attributes: { workspaceId, name, startsOn,
|
|
11
|
+
* endsOn, counterpartId, analyticAccountId, fieldValues } } }`. `counterpartId`
|
|
12
|
+
* is an Organization or Contact (see `createOrganization` for a new client).
|
|
13
|
+
* The new contract starts as a draft. Returns the payload (with `errors`) or
|
|
14
|
+
* null; the contract is at `contract.node`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function createContract(client: UiduClient, variables: CreateContractMutationVariables): Promise<{
|
|
17
|
+
__typename?: "CreateContractPayload";
|
|
18
|
+
contract?: {
|
|
19
|
+
__typename?: "ContractEdge";
|
|
20
|
+
node?: {
|
|
21
|
+
__typename?: "Contract";
|
|
22
|
+
fieldValuesByShortname?: any | null;
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
reference?: string | null;
|
|
26
|
+
aasmState: string;
|
|
27
|
+
direction: import("./generated/index.js").ContractDirectionEnum;
|
|
28
|
+
renewal: import("./generated/index.js").ContractRenewalEnum;
|
|
29
|
+
currency: string;
|
|
30
|
+
recurringAmount: number;
|
|
31
|
+
startsOn: any;
|
|
32
|
+
endsOn?: any | null;
|
|
33
|
+
noticePeriodDays?: number | null;
|
|
34
|
+
body?: any | null;
|
|
35
|
+
createdAt: any;
|
|
36
|
+
updatedAt: any;
|
|
37
|
+
analyticAccount?: {
|
|
38
|
+
__typename?: "AnalyticAccount";
|
|
39
|
+
id: string;
|
|
40
|
+
name: string;
|
|
41
|
+
code: string;
|
|
42
|
+
effectiveResponsibleCircle?: {
|
|
43
|
+
__typename?: "Circle";
|
|
44
|
+
id: string;
|
|
45
|
+
name?: string | null;
|
|
46
|
+
} | null;
|
|
47
|
+
} | null;
|
|
48
|
+
contractItems: {
|
|
49
|
+
__typename?: "ContractItemConnection";
|
|
50
|
+
edges?: Array<{
|
|
51
|
+
__typename?: "ContractItemEdge";
|
|
52
|
+
node?: {
|
|
53
|
+
__typename?: "ContractItem";
|
|
54
|
+
id: string;
|
|
55
|
+
description?: string | null;
|
|
56
|
+
quantity: number;
|
|
57
|
+
unitAmount: number;
|
|
58
|
+
startsAt?: any | null;
|
|
59
|
+
endsAt?: any | null;
|
|
60
|
+
} | null;
|
|
61
|
+
} | null> | null;
|
|
62
|
+
};
|
|
63
|
+
counterpart?: {
|
|
64
|
+
__typename: "Contact";
|
|
65
|
+
id: string;
|
|
66
|
+
name?: string | null;
|
|
67
|
+
} | {
|
|
68
|
+
__typename: "Organization";
|
|
69
|
+
id: string;
|
|
70
|
+
name?: string | null;
|
|
71
|
+
} | null;
|
|
72
|
+
} | null;
|
|
73
|
+
} | null;
|
|
74
|
+
errors: Array<{
|
|
75
|
+
__typename?: "Error";
|
|
76
|
+
key: string;
|
|
77
|
+
name: string;
|
|
78
|
+
type: string;
|
|
79
|
+
}>;
|
|
80
|
+
} | null>;
|
|
81
|
+
/**
|
|
82
|
+
* Update a contract's terms, client, analytic account or custom `fieldValues`:
|
|
83
|
+
* `{ input: { id, attributes } }`. Returns the payload (with `errors`) or null.
|
|
84
|
+
*/
|
|
85
|
+
export declare function updateContract(client: UiduClient, variables: UpdateContractMutationVariables): Promise<{
|
|
86
|
+
__typename?: "UpdateContractPayload";
|
|
87
|
+
contract?: {
|
|
88
|
+
__typename?: "Contract";
|
|
89
|
+
fieldValuesByShortname?: any | null;
|
|
90
|
+
id: string;
|
|
91
|
+
name: string;
|
|
92
|
+
reference?: string | null;
|
|
93
|
+
aasmState: string;
|
|
94
|
+
direction: import("./generated/index.js").ContractDirectionEnum;
|
|
95
|
+
renewal: import("./generated/index.js").ContractRenewalEnum;
|
|
96
|
+
currency: string;
|
|
97
|
+
recurringAmount: number;
|
|
98
|
+
startsOn: any;
|
|
99
|
+
endsOn?: any | null;
|
|
100
|
+
noticePeriodDays?: number | null;
|
|
101
|
+
body?: any | null;
|
|
102
|
+
createdAt: any;
|
|
103
|
+
updatedAt: any;
|
|
104
|
+
analyticAccount?: {
|
|
105
|
+
__typename?: "AnalyticAccount";
|
|
106
|
+
id: string;
|
|
107
|
+
name: string;
|
|
108
|
+
code: string;
|
|
109
|
+
effectiveResponsibleCircle?: {
|
|
110
|
+
__typename?: "Circle";
|
|
111
|
+
id: string;
|
|
112
|
+
name?: string | null;
|
|
113
|
+
} | null;
|
|
114
|
+
} | null;
|
|
115
|
+
contractItems: {
|
|
116
|
+
__typename?: "ContractItemConnection";
|
|
117
|
+
edges?: Array<{
|
|
118
|
+
__typename?: "ContractItemEdge";
|
|
119
|
+
node?: {
|
|
120
|
+
__typename?: "ContractItem";
|
|
121
|
+
id: string;
|
|
122
|
+
description?: string | null;
|
|
123
|
+
quantity: number;
|
|
124
|
+
unitAmount: number;
|
|
125
|
+
startsAt?: any | null;
|
|
126
|
+
endsAt?: any | null;
|
|
127
|
+
} | null;
|
|
128
|
+
} | null> | null;
|
|
129
|
+
};
|
|
130
|
+
counterpart?: {
|
|
131
|
+
__typename: "Contact";
|
|
132
|
+
id: string;
|
|
133
|
+
name?: string | null;
|
|
134
|
+
} | {
|
|
135
|
+
__typename: "Organization";
|
|
136
|
+
id: string;
|
|
137
|
+
name?: string | null;
|
|
138
|
+
} | null;
|
|
139
|
+
} | null;
|
|
140
|
+
errors: Array<{
|
|
141
|
+
__typename?: "Error";
|
|
142
|
+
key: string;
|
|
143
|
+
name: string;
|
|
144
|
+
type: string;
|
|
145
|
+
}>;
|
|
146
|
+
} | null>;
|
|
147
|
+
/** Sign a draft contract (draft → active): `{ input: { id } }`. Returns the payload or null. */
|
|
148
|
+
export declare function activateContract(client: UiduClient, variables: ActivateContractMutationVariables): Promise<{
|
|
149
|
+
__typename?: "ActivateContractPayload";
|
|
150
|
+
contract?: {
|
|
151
|
+
__typename?: "Contract";
|
|
152
|
+
id: string;
|
|
153
|
+
aasmState: string;
|
|
154
|
+
} | null;
|
|
155
|
+
errors: Array<{
|
|
156
|
+
__typename?: "Error";
|
|
157
|
+
key: string;
|
|
158
|
+
name: string;
|
|
159
|
+
type: string;
|
|
160
|
+
}>;
|
|
161
|
+
} | null>;
|
|
162
|
+
/** Move a contract to the trash (restorable for 30 days): `{ input: { id } }`. Returns the payload or null. */
|
|
163
|
+
export declare function discardContract(client: UiduClient, variables: DiscardContractMutationVariables): Promise<{
|
|
164
|
+
__typename?: "DiscardPayload";
|
|
165
|
+
discardable?: {
|
|
166
|
+
__typename?: "Activity";
|
|
167
|
+
} | {
|
|
168
|
+
__typename?: "Adjustment";
|
|
169
|
+
} | {
|
|
170
|
+
__typename?: "AdministrativeCompetence";
|
|
171
|
+
} | {
|
|
172
|
+
__typename?: "Allocation";
|
|
173
|
+
} | {
|
|
174
|
+
__typename?: "AnalyticAccount";
|
|
175
|
+
} | {
|
|
176
|
+
__typename?: "App";
|
|
177
|
+
} | {
|
|
178
|
+
__typename?: "Application";
|
|
179
|
+
} | {
|
|
180
|
+
__typename?: "Approval";
|
|
181
|
+
} | {
|
|
182
|
+
__typename?: "ApprovalForm";
|
|
183
|
+
} | {
|
|
184
|
+
__typename?: "Associate";
|
|
185
|
+
} | {
|
|
186
|
+
__typename?: "Attachment";
|
|
187
|
+
} | {
|
|
188
|
+
__typename?: "Attendance";
|
|
189
|
+
} | {
|
|
190
|
+
__typename?: "AttendanceRule";
|
|
191
|
+
} | {
|
|
192
|
+
__typename?: "BankAccountLink";
|
|
193
|
+
} | {
|
|
194
|
+
__typename?: "BankConsent";
|
|
195
|
+
} | {
|
|
196
|
+
__typename?: "BankTransaction";
|
|
197
|
+
} | {
|
|
198
|
+
__typename?: "Blob";
|
|
199
|
+
} | {
|
|
200
|
+
__typename?: "Budget";
|
|
201
|
+
} | {
|
|
202
|
+
__typename?: "Calendar";
|
|
203
|
+
} | {
|
|
204
|
+
__typename?: "CalendarEvent";
|
|
205
|
+
} | {
|
|
206
|
+
__typename?: "Call";
|
|
207
|
+
} | {
|
|
208
|
+
__typename?: "Campaign";
|
|
209
|
+
} | {
|
|
210
|
+
__typename?: "Carrier";
|
|
211
|
+
} | {
|
|
212
|
+
__typename?: "Ccnl";
|
|
213
|
+
} | {
|
|
214
|
+
__typename?: "CcnlLevel";
|
|
215
|
+
} | {
|
|
216
|
+
__typename?: "Certification";
|
|
217
|
+
} | {
|
|
218
|
+
__typename?: "Channel";
|
|
219
|
+
} | {
|
|
220
|
+
__typename?: "Circle";
|
|
221
|
+
} | {
|
|
222
|
+
__typename?: "Comment";
|
|
223
|
+
} | {
|
|
224
|
+
__typename?: "CommitmentSlot";
|
|
225
|
+
} | {
|
|
226
|
+
__typename?: "Contact";
|
|
227
|
+
} | {
|
|
228
|
+
__typename?: "Contract";
|
|
229
|
+
id: string;
|
|
230
|
+
} | {
|
|
231
|
+
__typename?: "Conversation";
|
|
232
|
+
} | {
|
|
233
|
+
__typename?: "Coupon";
|
|
234
|
+
} | {
|
|
235
|
+
__typename?: "Course";
|
|
236
|
+
} | {
|
|
237
|
+
__typename?: "CourseArea";
|
|
238
|
+
} | {
|
|
239
|
+
__typename?: "CourseEdition";
|
|
240
|
+
} | {
|
|
241
|
+
__typename?: "CoverageRequirement";
|
|
242
|
+
} | {
|
|
243
|
+
__typename?: "CreditLine";
|
|
244
|
+
} | {
|
|
245
|
+
__typename?: "Customer";
|
|
246
|
+
} | {
|
|
247
|
+
__typename?: "DataView";
|
|
248
|
+
} | {
|
|
249
|
+
__typename?: "Deal";
|
|
250
|
+
} | {
|
|
251
|
+
__typename?: "Delivery";
|
|
252
|
+
} | {
|
|
253
|
+
__typename?: "Document";
|
|
254
|
+
} | {
|
|
255
|
+
__typename?: "DocumentModel";
|
|
256
|
+
} | {
|
|
257
|
+
__typename?: "DocumentProject";
|
|
258
|
+
} | {
|
|
259
|
+
__typename?: "DocumentRequest";
|
|
260
|
+
} | {
|
|
261
|
+
__typename?: "DonationCampaign";
|
|
262
|
+
} | {
|
|
263
|
+
__typename?: "Employee";
|
|
264
|
+
} | {
|
|
265
|
+
__typename?: "Employment";
|
|
266
|
+
} | {
|
|
267
|
+
__typename?: "EmploymentKind";
|
|
268
|
+
} | {
|
|
269
|
+
__typename?: "EmploymentVariationKind";
|
|
270
|
+
} | {
|
|
271
|
+
__typename?: "Event";
|
|
272
|
+
} | {
|
|
273
|
+
__typename?: "EventStoreEvent";
|
|
274
|
+
} | {
|
|
275
|
+
__typename?: "Expense";
|
|
276
|
+
} | {
|
|
277
|
+
__typename?: "ExpenseReport";
|
|
278
|
+
} | {
|
|
279
|
+
__typename?: "Experience";
|
|
280
|
+
} | {
|
|
281
|
+
__typename?: "Folder";
|
|
282
|
+
} | {
|
|
283
|
+
__typename?: "Form";
|
|
284
|
+
} | {
|
|
285
|
+
__typename?: "FormPage";
|
|
286
|
+
} | {
|
|
287
|
+
__typename?: "FormQuestion";
|
|
288
|
+
} | {
|
|
289
|
+
__typename?: "FormResponse";
|
|
290
|
+
} | {
|
|
291
|
+
__typename?: "Goal";
|
|
292
|
+
} | {
|
|
293
|
+
__typename?: "IncomingWebhook";
|
|
294
|
+
} | {
|
|
295
|
+
__typename?: "KbArticle";
|
|
296
|
+
} | {
|
|
297
|
+
__typename?: "KbCollection";
|
|
298
|
+
} | {
|
|
299
|
+
__typename?: "Kind";
|
|
300
|
+
} | {
|
|
301
|
+
__typename?: "Kiosk";
|
|
302
|
+
} | {
|
|
303
|
+
__typename?: "LectureModule";
|
|
304
|
+
} | {
|
|
305
|
+
__typename?: "List";
|
|
306
|
+
} | {
|
|
307
|
+
__typename?: "ListSubscription";
|
|
308
|
+
} | {
|
|
309
|
+
__typename?: "ManagementAccount";
|
|
310
|
+
} | {
|
|
311
|
+
__typename?: "Meeting";
|
|
312
|
+
} | {
|
|
313
|
+
__typename?: "Message";
|
|
314
|
+
} | {
|
|
315
|
+
__typename?: "Model";
|
|
316
|
+
} | {
|
|
317
|
+
__typename?: "ModelItem";
|
|
318
|
+
} | {
|
|
319
|
+
__typename?: "Note";
|
|
320
|
+
} | {
|
|
321
|
+
__typename?: "Obligation";
|
|
322
|
+
} | {
|
|
323
|
+
__typename?: "ObligationAssignment";
|
|
324
|
+
} | {
|
|
325
|
+
__typename?: "ObligationKind";
|
|
326
|
+
} | {
|
|
327
|
+
__typename?: "Office";
|
|
328
|
+
} | {
|
|
329
|
+
__typename?: "Order";
|
|
330
|
+
} | {
|
|
331
|
+
__typename?: "Organization";
|
|
332
|
+
} | {
|
|
333
|
+
__typename?: "OrganizationKind";
|
|
334
|
+
} | {
|
|
335
|
+
__typename?: "Payment";
|
|
336
|
+
} | {
|
|
337
|
+
__typename?: "PaymentProfile";
|
|
338
|
+
} | {
|
|
339
|
+
__typename?: "Pipeline";
|
|
340
|
+
} | {
|
|
341
|
+
__typename?: "Pool";
|
|
342
|
+
} | {
|
|
343
|
+
__typename?: "Position";
|
|
344
|
+
} | {
|
|
345
|
+
__typename?: "Project";
|
|
346
|
+
} | {
|
|
347
|
+
__typename?: "Proposal";
|
|
348
|
+
} | {
|
|
349
|
+
__typename?: "Purchase";
|
|
350
|
+
} | {
|
|
351
|
+
__typename?: "PurchaseOrder";
|
|
352
|
+
} | {
|
|
353
|
+
__typename?: "PurchaseRequest";
|
|
354
|
+
} | {
|
|
355
|
+
__typename?: "Receipt";
|
|
356
|
+
} | {
|
|
357
|
+
__typename?: "Reminder";
|
|
358
|
+
} | {
|
|
359
|
+
__typename?: "Review";
|
|
360
|
+
} | {
|
|
361
|
+
__typename?: "ReviewCycle";
|
|
362
|
+
} | {
|
|
363
|
+
__typename?: "ReviewTemplate";
|
|
364
|
+
} | {
|
|
365
|
+
__typename?: "ScheduledMessage";
|
|
366
|
+
} | {
|
|
367
|
+
__typename?: "Service";
|
|
368
|
+
} | {
|
|
369
|
+
__typename?: "Shift";
|
|
370
|
+
} | {
|
|
371
|
+
__typename?: "Site";
|
|
372
|
+
} | {
|
|
373
|
+
__typename?: "Sku";
|
|
374
|
+
} | {
|
|
375
|
+
__typename?: "Space";
|
|
376
|
+
} | {
|
|
377
|
+
__typename?: "Status";
|
|
378
|
+
} | {
|
|
379
|
+
__typename?: "Story";
|
|
380
|
+
} | {
|
|
381
|
+
__typename?: "Supplier";
|
|
382
|
+
} | {
|
|
383
|
+
__typename?: "Task";
|
|
384
|
+
} | {
|
|
385
|
+
__typename?: "TaskUser";
|
|
386
|
+
} | {
|
|
387
|
+
__typename?: "Template";
|
|
388
|
+
} | {
|
|
389
|
+
__typename?: "TemplateBlock";
|
|
390
|
+
} | {
|
|
391
|
+
__typename?: "TimeClock";
|
|
392
|
+
} | {
|
|
393
|
+
__typename?: "TimeEntryKind";
|
|
394
|
+
} | {
|
|
395
|
+
__typename?: "TimeOff";
|
|
396
|
+
} | {
|
|
397
|
+
__typename?: "TimeOffKind";
|
|
398
|
+
} | {
|
|
399
|
+
__typename?: "Tour";
|
|
400
|
+
} | {
|
|
401
|
+
__typename?: "TourStep";
|
|
402
|
+
} | {
|
|
403
|
+
__typename?: "TrainingNeed";
|
|
404
|
+
} | {
|
|
405
|
+
__typename?: "TransactionKind";
|
|
406
|
+
} | {
|
|
407
|
+
__typename?: "Transfer";
|
|
408
|
+
} | {
|
|
409
|
+
__typename?: "TreasuryAccount";
|
|
410
|
+
} | {
|
|
411
|
+
__typename?: "User";
|
|
412
|
+
} | {
|
|
413
|
+
__typename?: "Venue";
|
|
414
|
+
} | {
|
|
415
|
+
__typename?: "VenueBooking";
|
|
416
|
+
} | {
|
|
417
|
+
__typename?: "VenueFloor";
|
|
418
|
+
} | {
|
|
419
|
+
__typename?: "VenueRow";
|
|
420
|
+
} | {
|
|
421
|
+
__typename?: "Warehouse";
|
|
422
|
+
} | {
|
|
423
|
+
__typename?: "WorkOrder";
|
|
424
|
+
} | {
|
|
425
|
+
__typename?: "WorkSite";
|
|
426
|
+
} | {
|
|
427
|
+
__typename?: "Workflow";
|
|
428
|
+
} | {
|
|
429
|
+
__typename?: "WorkspaceAgentAiChat";
|
|
430
|
+
} | {
|
|
431
|
+
__typename?: "WorkspaceAsset";
|
|
432
|
+
} | {
|
|
433
|
+
__typename?: "WorkspaceSkill";
|
|
434
|
+
} | {
|
|
435
|
+
__typename?: "WorkspaceTag";
|
|
436
|
+
} | null;
|
|
437
|
+
errors: Array<{
|
|
438
|
+
__typename?: "Error";
|
|
439
|
+
key: string;
|
|
440
|
+
name: string;
|
|
441
|
+
type: string;
|
|
442
|
+
}>;
|
|
443
|
+
} | null>;
|
|
444
|
+
/**
|
|
445
|
+
* Add an economic line to a contract: `{ input: { attributes: { contractId,
|
|
446
|
+
* description, quantity, unitAmount, startsAt, endsAt } } }`, with
|
|
447
|
+
* `unitAmount` in cents. Returns the payload (with `errors`) or null; the line
|
|
448
|
+
* is at `contractItem.node`.
|
|
449
|
+
*/
|
|
450
|
+
export declare function createContractItem(client: UiduClient, variables: CreateContractItemMutationVariables): Promise<{
|
|
451
|
+
__typename?: "CreateContractItemPayload";
|
|
452
|
+
contractItem?: {
|
|
453
|
+
__typename?: "ContractItemEdge";
|
|
454
|
+
node?: {
|
|
455
|
+
__typename?: "ContractItem";
|
|
456
|
+
id: string;
|
|
457
|
+
description?: string | null;
|
|
458
|
+
quantity: number;
|
|
459
|
+
unitAmount: number;
|
|
460
|
+
startsAt?: any | null;
|
|
461
|
+
endsAt?: any | null;
|
|
462
|
+
} | null;
|
|
463
|
+
} | null;
|
|
464
|
+
errors: Array<{
|
|
465
|
+
__typename?: "Error";
|
|
466
|
+
key: string;
|
|
467
|
+
name: string;
|
|
468
|
+
type: string;
|
|
469
|
+
}>;
|
|
470
|
+
} | null>;
|
|
471
|
+
/** Update a contract line: `{ input: { id, attributes } }`. Returns the payload (with `errors`) or null. */
|
|
472
|
+
export declare function updateContractItem(client: UiduClient, variables: UpdateContractItemMutationVariables): Promise<{
|
|
473
|
+
__typename?: "UpdateContractItemPayload";
|
|
474
|
+
contractItem?: {
|
|
475
|
+
__typename?: "ContractItem";
|
|
476
|
+
id: string;
|
|
477
|
+
description?: string | null;
|
|
478
|
+
quantity: number;
|
|
479
|
+
unitAmount: number;
|
|
480
|
+
startsAt?: any | null;
|
|
481
|
+
endsAt?: any | null;
|
|
482
|
+
} | null;
|
|
483
|
+
errors: Array<{
|
|
484
|
+
__typename?: "Error";
|
|
485
|
+
key: string;
|
|
486
|
+
name: string;
|
|
487
|
+
type: string;
|
|
488
|
+
}>;
|
|
489
|
+
} | null>;
|
|
490
|
+
/** Remove a contract line: `{ input: { id } }`. Returns the payload or null. */
|
|
491
|
+
export declare function deleteContractItem(client: UiduClient, variables: DeleteContractItemMutationVariables): Promise<{
|
|
492
|
+
__typename?: "DeleteContractItemPayload";
|
|
493
|
+
contractItem?: {
|
|
494
|
+
__typename?: "ContractItem";
|
|
495
|
+
id: string;
|
|
496
|
+
} | null;
|
|
497
|
+
errors: Array<{
|
|
498
|
+
__typename?: "Error";
|
|
499
|
+
key: string;
|
|
500
|
+
name: string;
|
|
501
|
+
type: string;
|
|
502
|
+
}>;
|
|
503
|
+
} | null>;
|