@uidu/client 3.7.0 → 3.9.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 +35 -0
- package/codegen.ts +5 -1
- package/dist/declarations/src/benefit-enrollments.d.ts +20 -0
- package/dist/declarations/src/benefits.d.ts +20 -0
- package/dist/declarations/src/generated/index.d.ts +186 -21
- package/dist/declarations/src/index.d.ts +3 -1
- package/dist/declarations/src/people.d.ts +25 -1
- package/dist/uidu-client.cjs.dev.js +29 -1
- package/dist/uidu-client.cjs.prod.js +29 -1
- package/dist/uidu-client.esm.js +27 -2
- package/package.json +1 -1
- package/src/benefit-enrollments.ts +15 -0
- package/src/benefits.ts +15 -0
- package/src/generated/index.ts +144 -25
- package/src/index.ts +3 -0
- package/src/people.ts +16 -0
- package/src/queries/benefit-enrollments/CreateBenefitEnrollment.graphql +16 -0
- package/src/queries/benefits/CreateBenefit.graphql +16 -0
- package/src/queries/people/CreateCcnl.graphql +16 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# @uidu/client
|
|
2
2
|
|
|
3
|
+
## 3.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 454f652: Add `createBenefit` — provisions a benefit plan (`name`, `category`,
|
|
8
|
+
`currency`, `activeFrom`, plus employer/employee cost and eligibility
|
|
9
|
+
attributes). First-class operation backed by a new `CreateBenefit` document;
|
|
10
|
+
requires a Bearer token (`apiKey`), like the other HR writes.
|
|
11
|
+
|
|
12
|
+
## 3.8.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- 6d16ea2: Add `createBenefitEnrollment` — enrolls an employment in a benefit plan
|
|
17
|
+
(`benefitId`, `employmentId`, `enrolledAt`, plus optional `coverage` and cost
|
|
18
|
+
overrides). First-class operation backed by a new `CreateBenefitEnrollment`
|
|
19
|
+
document; requires a Bearer token (`apiKey`), like the other HR writes.
|
|
20
|
+
- df6e473: Add `createCcnl`, provisioning the first-class `Ccnl` record (a national
|
|
21
|
+
collective labor contract — code, sector, contract levels). This is distinct
|
|
22
|
+
from the `Kind`-tagged rows `listCcnls` already returned for populating an
|
|
23
|
+
employment's `ccnlId`; `Employment.ccnl`/`ccnlId` in fact point at this
|
|
24
|
+
first-class type. Requires a Bearer token (`apiKey`).
|
|
25
|
+
|
|
26
|
+
`@uidu/cli`: adds `create` to the existing `ccnls` resource, alongside its
|
|
27
|
+
`list`.
|
|
28
|
+
|
|
29
|
+
## 3.7.1
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- 1149d0b: `codegen.ts` builds its endpoint from `UIDU_HOST` (default `uidu.org`) instead
|
|
34
|
+
of hardcoding the domain, so a workspace that only exists on staging can be
|
|
35
|
+
introspected — and `UIDU_WORKSPACE=demo` no longer silently resolves to
|
|
36
|
+
`demo.uidu.org`, which 404s.
|
|
37
|
+
|
|
3
38
|
## 3.7.0
|
|
4
39
|
|
|
5
40
|
### Minor Changes
|
package/codegen.ts
CHANGED
|
@@ -19,8 +19,12 @@ loadEnvFile('.env');
|
|
|
19
19
|
|
|
20
20
|
const workspace = process.env.UIDU_WORKSPACE ?? 'uidu';
|
|
21
21
|
const publicToken = process.env.UIDU_PUBLIC_TOKEN ?? '';
|
|
22
|
+
// `.uidu.org` used to be baked in here, which meant a workspace that only
|
|
23
|
+
// exists on staging could not be introspected at all — and, worse, that
|
|
24
|
+
// `UIDU_WORKSPACE=demo` silently resolved to `demo.uidu.org`, which 404s.
|
|
25
|
+
const host = process.env.UIDU_HOST ?? 'uidu.org';
|
|
22
26
|
const endpoint =
|
|
23
|
-
process.env.UIDU_GRAPHQL_ENDPOINT ?? `https://${workspace}
|
|
27
|
+
process.env.UIDU_GRAPHQL_ENDPOINT ?? `https://${workspace}.${host}/graphql`;
|
|
24
28
|
|
|
25
29
|
/**
|
|
26
30
|
* The SDL from a `uidu` checkout beside this one, when there is one.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { UiduClient } from "./client.js";
|
|
2
|
+
import { type CreateBenefitEnrollmentMutationVariables } from "./generated/index.js";
|
|
3
|
+
export declare function createBenefitEnrollment(client: UiduClient, variables: CreateBenefitEnrollmentMutationVariables): Promise<{
|
|
4
|
+
__typename?: "CreateBenefitEnrollmentPayload";
|
|
5
|
+
benefitEnrollment?: {
|
|
6
|
+
__typename?: "BenefitEnrollmentEdge";
|
|
7
|
+
node?: {
|
|
8
|
+
__typename?: "BenefitEnrollment";
|
|
9
|
+
id: string;
|
|
10
|
+
humanName: string;
|
|
11
|
+
enrolledAt: any;
|
|
12
|
+
} | null;
|
|
13
|
+
} | null;
|
|
14
|
+
errors: Array<{
|
|
15
|
+
__typename?: "Error";
|
|
16
|
+
key: string;
|
|
17
|
+
name: string;
|
|
18
|
+
type: string;
|
|
19
|
+
}>;
|
|
20
|
+
} | null>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { UiduClient } from "./client.js";
|
|
2
|
+
import { type CreateBenefitMutationVariables } from "./generated/index.js";
|
|
3
|
+
export declare function createBenefit(client: UiduClient, variables: CreateBenefitMutationVariables): Promise<{
|
|
4
|
+
__typename?: "CreateBenefitPayload";
|
|
5
|
+
benefit?: {
|
|
6
|
+
__typename?: "BenefitEdge";
|
|
7
|
+
node?: {
|
|
8
|
+
__typename?: "Benefit";
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
category: string;
|
|
12
|
+
} | null;
|
|
13
|
+
} | null;
|
|
14
|
+
errors: Array<{
|
|
15
|
+
__typename?: "Error";
|
|
16
|
+
key: string;
|
|
17
|
+
name: string;
|
|
18
|
+
type: string;
|
|
19
|
+
}>;
|
|
20
|
+
} | null>;
|
|
@@ -384,11 +384,6 @@ export type AccrualBalance = {
|
|
|
384
384
|
export type ActionKey = ActiveRecordTimestamp & Node & WithFields & {
|
|
385
385
|
__typename?: 'ActionKey';
|
|
386
386
|
actionContext?: Maybe<App>;
|
|
387
|
-
/**
|
|
388
|
-
* JSON Schema of the arguments `executeAction` accepts for this key — camelCase
|
|
389
|
-
* names, associations as GlobalIDs. Null when the action declares no form.
|
|
390
|
-
*/
|
|
391
|
-
argumentsSchema?: Maybe<Scalars['JSON']['output']>;
|
|
392
387
|
category?: Maybe<Scalars['String']['output']>;
|
|
393
388
|
contextKind: Scalars['String']['output'];
|
|
394
389
|
createdAt: Scalars['ISO8601DateTime']['output'];
|
|
@@ -1225,6 +1220,7 @@ export type AiChatMessageConnection = {
|
|
|
1225
1220
|
export type AiChatMessageCreatedPayload = {
|
|
1226
1221
|
__typename?: 'AiChatMessageCreatedPayload';
|
|
1227
1222
|
aiChatMessage?: Maybe<AiChatMessageEdge>;
|
|
1223
|
+
workspaceAgentAiChat?: Maybe<WorkspaceAgentAiChat>;
|
|
1228
1224
|
};
|
|
1229
1225
|
/** An edge in a connection. */
|
|
1230
1226
|
export type AiChatMessageEdge = {
|
|
@@ -4351,7 +4347,6 @@ export type Call = ActiveRecordTimestamp & ActsAsDiscardable & ActsAsFormable &
|
|
|
4351
4347
|
visits: Array<Visit>;
|
|
4352
4348
|
/** @deprecated Use `owner` instead. */
|
|
4353
4349
|
workspace?: Maybe<Workspace>;
|
|
4354
|
-
workspaceApp?: Maybe<WorkspaceApp>;
|
|
4355
4350
|
};
|
|
4356
4351
|
export type CallAddressListArgs = {
|
|
4357
4352
|
kind?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -4509,8 +4504,6 @@ export type CallAttributes = {
|
|
|
4509
4504
|
salaryMin?: InputMaybe<Scalars['Int']['input']>;
|
|
4510
4505
|
/** Type of the call */
|
|
4511
4506
|
type?: InputMaybe<Scalars['String']['input']>;
|
|
4512
|
-
/** The app instance this call belongs to (e.g. a Space Jobs instance) */
|
|
4513
|
-
workspaceAppId?: InputMaybe<Scalars['ID']['input']>;
|
|
4514
4507
|
};
|
|
4515
4508
|
/** The connection type for Call. */
|
|
4516
4509
|
export type CallConnection = {
|
|
@@ -5888,6 +5881,24 @@ export type ConfirmTimeEntriesPayload = {
|
|
|
5888
5881
|
errors: Array<Error>;
|
|
5889
5882
|
timeEntries?: Maybe<Array<TimeEntry>>;
|
|
5890
5883
|
};
|
|
5884
|
+
/** Autogenerated input type of ConfirmWorkflowProposal */
|
|
5885
|
+
export type ConfirmWorkflowProposalInput = {
|
|
5886
|
+
/** Flag to mark the object for destruction */
|
|
5887
|
+
_destroy?: InputMaybe<Scalars['Boolean']['input']>;
|
|
5888
|
+
/** A unique identifier for the client performing the mutation. */
|
|
5889
|
+
clientMutationId?: InputMaybe<Scalars['String']['input']>;
|
|
5890
|
+
/** The work item the comparison is waiting on */
|
|
5891
|
+
id: Scalars['ID']['input'];
|
|
5892
|
+
};
|
|
5893
|
+
/** Autogenerated return type of ConfirmWorkflowProposal. */
|
|
5894
|
+
export type ConfirmWorkflowProposalPayload = {
|
|
5895
|
+
__typename?: 'ConfirmWorkflowProposalPayload';
|
|
5896
|
+
/** A unique identifier for the client performing the mutation. */
|
|
5897
|
+
clientMutationId?: Maybe<Scalars['String']['output']>;
|
|
5898
|
+
errors: Array<Error>;
|
|
5899
|
+
workflowRun?: Maybe<WorkflowRun>;
|
|
5900
|
+
workflowStepItemRun?: Maybe<WorkflowStepItemRun>;
|
|
5901
|
+
};
|
|
5891
5902
|
/** Autogenerated input type of ConnectAcubeCredential */
|
|
5892
5903
|
export type ConnectAcubeCredentialInput = {
|
|
5893
5904
|
/** Flag to mark the object for destruction */
|
|
@@ -13784,7 +13795,9 @@ export type Decision = ActiveRecordTimestamp & ActsAsCommentable & ActsAsDiscard
|
|
|
13784
13795
|
logs: EventStoreEventConnection;
|
|
13785
13796
|
memberList: Array<User>;
|
|
13786
13797
|
members: UserConnection;
|
|
13798
|
+
multiSelect: Scalars['Boolean']['output'];
|
|
13787
13799
|
myResponse?: Maybe<DecisionResponse>;
|
|
13800
|
+
myResponses: Array<DecisionResponse>;
|
|
13788
13801
|
name: Scalars['String']['output'];
|
|
13789
13802
|
outcomeContact?: Maybe<Contact>;
|
|
13790
13803
|
outcomeData?: Maybe<Scalars['JSON']['output']>;
|
|
@@ -13897,6 +13910,8 @@ export type DecisionAttributes = {
|
|
|
13897
13910
|
closesAt?: InputMaybe<Scalars['ISO8601DateTime']['input']>;
|
|
13898
13911
|
/** Type-specific configuration (threshold, max_selections, total_points) */
|
|
13899
13912
|
config?: InputMaybe<Scalars['JSON']['input']>;
|
|
13913
|
+
/** The options to choose between. A check takes none */
|
|
13914
|
+
decisionOptionsAttributes?: InputMaybe<Array<DecisionOptionAttributes>>;
|
|
13900
13915
|
/** Rich text description (TipTap JSON) */
|
|
13901
13916
|
descriptionData?: InputMaybe<Scalars['JSON']['input']>;
|
|
13902
13917
|
/** Global ID of the object */
|
|
@@ -17885,6 +17900,8 @@ export type DocumentAttributes = {
|
|
|
17885
17900
|
attachments?: InputMaybe<Array<Scalars['JSON']['input']>>;
|
|
17886
17901
|
/** The blob attributes of the document */
|
|
17887
17902
|
blobAttributes?: InputMaybe<BlobAttributes>;
|
|
17903
|
+
/** An existing file of the drive to type with this document */
|
|
17904
|
+
blobId?: InputMaybe<Scalars['ID']['input']>;
|
|
17888
17905
|
/** The contact attributes of the document */
|
|
17889
17906
|
contactAttributes?: InputMaybe<ContactAttributes>;
|
|
17890
17907
|
/** The contact of the document */
|
|
@@ -19471,6 +19488,7 @@ export type Employee = ActiveRecordTimestamp & ActsAsDiscardable & Node & WithEv
|
|
|
19471
19488
|
fieldValuesByGid?: Maybe<Scalars['JSON']['output']>;
|
|
19472
19489
|
fieldValuesByShortname?: Maybe<Scalars['JSON']['output']>;
|
|
19473
19490
|
folders: FolderConnection;
|
|
19491
|
+
forceGps: Scalars['Boolean']['output'];
|
|
19474
19492
|
hasAccrual: Scalars['Boolean']['output'];
|
|
19475
19493
|
humanName: Scalars['String']['output'];
|
|
19476
19494
|
id: Scalars['ID']['output'];
|
|
@@ -19791,6 +19809,8 @@ export type EmployeeAttributes = {
|
|
|
19791
19809
|
employeeCode?: InputMaybe<Scalars['String']['input']>;
|
|
19792
19810
|
/** Map of field GlobalID => value */
|
|
19793
19811
|
fieldValues?: InputMaybe<Scalars['JSON']['input']>;
|
|
19812
|
+
/** Whether this employee must have GPS enabled to clock in or out */
|
|
19813
|
+
forceGps?: InputMaybe<Scalars['Boolean']['input']>;
|
|
19794
19814
|
/** Global ID of the object */
|
|
19795
19815
|
id?: InputMaybe<Scalars['ID']['input']>;
|
|
19796
19816
|
/** A new 4-digit PIN for the kiosk. Write-only. */
|
|
@@ -21749,6 +21769,8 @@ export type FinishImportPayload = {
|
|
|
21749
21769
|
};
|
|
21750
21770
|
export type Folder = ActiveRecordTimestamp & ActsAsDiscardable & Node & WithFolders & WithStatuses & {
|
|
21751
21771
|
__typename?: 'Folder';
|
|
21772
|
+
/** The folders above this one, root first */
|
|
21773
|
+
ancestors: Array<Folder>;
|
|
21752
21774
|
children?: Maybe<FolderConnection>;
|
|
21753
21775
|
childrenCount: Scalars['Int']['output'];
|
|
21754
21776
|
context?: Maybe<Scalars['String']['output']>;
|
|
@@ -23017,6 +23039,7 @@ export type GraphqlSubscription = Node & {
|
|
|
23017
23039
|
proposalCreated: ProposalCreatedPayload;
|
|
23018
23040
|
proposalUpdated: ProposalUpdatedPayload;
|
|
23019
23041
|
recordDiscarded: RecordDiscardedPayload;
|
|
23042
|
+
userHaveConversationMessagesToRead: UserHaveConversationMessagesToReadPayload;
|
|
23020
23043
|
userHaveSpaceMessagesToRead: UserHaveSpaceMessagesToReadPayload;
|
|
23021
23044
|
};
|
|
23022
23045
|
export type GraphqlSubscriptionAiChatMessageChunkReceivedArgs = {
|
|
@@ -26234,6 +26257,8 @@ export type Mutation = Node & {
|
|
|
26234
26257
|
commitImport?: Maybe<CommitImportPayload>;
|
|
26235
26258
|
completeWorkflowStepItemRun?: Maybe<CompleteWorkflowStepItemRunPayload>;
|
|
26236
26259
|
confirmTimeEntries?: Maybe<ConfirmTimeEntriesPayload>;
|
|
26260
|
+
/** Closes a multi-select comparison activity with everything the current viewer has chosen so far */
|
|
26261
|
+
confirmWorkflowProposal?: Maybe<ConfirmWorkflowProposalPayload>;
|
|
26237
26262
|
connectAcubeCredential?: Maybe<ConnectAcubeCredentialPayload>;
|
|
26238
26263
|
convertToHtml?: Maybe<ConvertToHtmlPayload>;
|
|
26239
26264
|
copyShifts?: Maybe<CopyShiftsPayload>;
|
|
@@ -26790,6 +26815,7 @@ export type Mutation = Node & {
|
|
|
26790
26815
|
/** Sends the signature request a signature activity is waiting on */
|
|
26791
26816
|
sendWorkflowSignatureRequest?: Maybe<SendWorkflowSignatureRequestPayload>;
|
|
26792
26817
|
setEmployeeKioskPin?: Maybe<SetEmployeeKioskPinPayload>;
|
|
26818
|
+
setFavoriteWorkspaceApp?: Maybe<SetFavoriteWorkspaceAppPayload>;
|
|
26793
26819
|
signSignatureRequestPlacement?: Maybe<SignSignatureRequestPlacementPayload>;
|
|
26794
26820
|
skipImportRow?: Maybe<SkipImportRowPayload>;
|
|
26795
26821
|
startWorkflowRun?: Maybe<StartWorkflowRunPayload>;
|
|
@@ -27182,6 +27208,9 @@ export type MutationCompleteWorkflowStepItemRunArgs = {
|
|
|
27182
27208
|
export type MutationConfirmTimeEntriesArgs = {
|
|
27183
27209
|
input: ConfirmTimeEntriesInput;
|
|
27184
27210
|
};
|
|
27211
|
+
export type MutationConfirmWorkflowProposalArgs = {
|
|
27212
|
+
input: ConfirmWorkflowProposalInput;
|
|
27213
|
+
};
|
|
27185
27214
|
export type MutationConnectAcubeCredentialArgs = {
|
|
27186
27215
|
input: ConnectAcubeCredentialInput;
|
|
27187
27216
|
};
|
|
@@ -28805,6 +28834,9 @@ export type MutationSendWorkflowSignatureRequestArgs = {
|
|
|
28805
28834
|
export type MutationSetEmployeeKioskPinArgs = {
|
|
28806
28835
|
input: SetEmployeeKioskPinInput;
|
|
28807
28836
|
};
|
|
28837
|
+
export type MutationSetFavoriteWorkspaceAppArgs = {
|
|
28838
|
+
input: SetFavoriteWorkspaceAppInput;
|
|
28839
|
+
};
|
|
28808
28840
|
export type MutationSignSignatureRequestPlacementArgs = {
|
|
28809
28841
|
input: SignSignatureRequestPlacementInput;
|
|
28810
28842
|
};
|
|
@@ -35888,6 +35920,26 @@ export type SetEmployeeKioskPinPayload = {
|
|
|
35888
35920
|
employee?: Maybe<Employee>;
|
|
35889
35921
|
errors: Array<Error>;
|
|
35890
35922
|
};
|
|
35923
|
+
/** Autogenerated input type of SetFavoriteWorkspaceApp */
|
|
35924
|
+
export type SetFavoriteWorkspaceAppInput = {
|
|
35925
|
+
/** Flag to mark the object for destruction */
|
|
35926
|
+
_destroy?: InputMaybe<Scalars['Boolean']['input']>;
|
|
35927
|
+
/** A unique identifier for the client performing the mutation. */
|
|
35928
|
+
clientMutationId?: InputMaybe<Scalars['String']['input']>;
|
|
35929
|
+
favorite: Scalars['Boolean']['input'];
|
|
35930
|
+
/** Global ID of the object */
|
|
35931
|
+
id?: InputMaybe<Scalars['ID']['input']>;
|
|
35932
|
+
userId: Scalars['ID']['input'];
|
|
35933
|
+
workspaceAppId: Scalars['ID']['input'];
|
|
35934
|
+
};
|
|
35935
|
+
/** Autogenerated return type of SetFavoriteWorkspaceApp. */
|
|
35936
|
+
export type SetFavoriteWorkspaceAppPayload = {
|
|
35937
|
+
__typename?: 'SetFavoriteWorkspaceAppPayload';
|
|
35938
|
+
/** A unique identifier for the client performing the mutation. */
|
|
35939
|
+
clientMutationId?: Maybe<Scalars['String']['output']>;
|
|
35940
|
+
errors: Array<Error>;
|
|
35941
|
+
user?: Maybe<User>;
|
|
35942
|
+
};
|
|
35891
35943
|
export type Setting = ActiveRecordTimestamp & Node & {
|
|
35892
35944
|
__typename?: 'Setting';
|
|
35893
35945
|
createdAt: Scalars['ISO8601DateTime']['output'];
|
|
@@ -36867,6 +36919,14 @@ export type Space = ActiveRecordTimestamp & ActsAsArchivable & ActsAsDiscardable
|
|
|
36867
36919
|
circles?: Maybe<CircleConnection>;
|
|
36868
36920
|
color?: Maybe<Scalars['String']['output']>;
|
|
36869
36921
|
createdAt: Scalars['ISO8601DateTime']['output'];
|
|
36922
|
+
/**
|
|
36923
|
+
* Whether the requesting user may grant, change and revoke roles here. NOT the
|
|
36924
|
+
* same as holding a role: an owner/admin of the workspace, an admin of the Teams
|
|
36925
|
+
* app, or an admin of an app owned by this Space manages it without appearing in
|
|
36926
|
+
* its member list. Gate the member-management UI on this, never on
|
|
36927
|
+
* currentUserRoleName.
|
|
36928
|
+
*/
|
|
36929
|
+
currentUserCanManage: Scalars['Boolean']['output'];
|
|
36870
36930
|
/**
|
|
36871
36931
|
* Highest-priority role the requesting user holds on this resource (owner >
|
|
36872
36932
|
* admin > member > guest), or null if no kept WorkspaceRole exists. Resolved via
|
|
@@ -36892,6 +36952,12 @@ export type Space = ActiveRecordTimestamp & ActsAsArchivable & ActsAsDiscardable
|
|
|
36892
36952
|
forms: FormConnection;
|
|
36893
36953
|
goalList: Array<Goal>;
|
|
36894
36954
|
goals: GoalConnection;
|
|
36955
|
+
/**
|
|
36956
|
+
* Subset of availableRoleNames this particular user may actually grant.
|
|
36957
|
+
* Populates the role dropdown so the client doesn't restate the rules (an admin
|
|
36958
|
+
* cannot promote to owner, but a workspace owner can).
|
|
36959
|
+
*/
|
|
36960
|
+
grantableRoleNames: Array<Scalars['String']['output']>;
|
|
36895
36961
|
humanName: Scalars['String']['output'];
|
|
36896
36962
|
icon?: Maybe<Scalars['String']['output']>;
|
|
36897
36963
|
id: Scalars['ID']['output'];
|
|
@@ -36899,8 +36965,6 @@ export type Space = ActiveRecordTimestamp & ActsAsArchivable & ActsAsDiscardable
|
|
|
36899
36965
|
isLocked: Scalars['Boolean']['output'];
|
|
36900
36966
|
isPrivate: Scalars['Boolean']['output'];
|
|
36901
36967
|
isRead: Scalars['Boolean']['output'];
|
|
36902
|
-
jobList: Array<Call>;
|
|
36903
|
-
jobs: CallConnection;
|
|
36904
36968
|
kind?: Maybe<Scalars['String']['output']>;
|
|
36905
36969
|
lastLogAt?: Maybe<Scalars['ISO8601DateTime']['output']>;
|
|
36906
36970
|
lastMessage?: Maybe<Message>;
|
|
@@ -37041,16 +37105,6 @@ export type SpaceGoalsArgs = {
|
|
|
37041
37105
|
last?: InputMaybe<Scalars['Int']['input']>;
|
|
37042
37106
|
params?: InputMaybe<SearchParams>;
|
|
37043
37107
|
};
|
|
37044
|
-
export type SpaceJobListArgs = {
|
|
37045
|
-
params?: InputMaybe<SearchParams>;
|
|
37046
|
-
};
|
|
37047
|
-
export type SpaceJobsArgs = {
|
|
37048
|
-
after?: InputMaybe<Scalars['String']['input']>;
|
|
37049
|
-
before?: InputMaybe<Scalars['String']['input']>;
|
|
37050
|
-
first?: InputMaybe<Scalars['Int']['input']>;
|
|
37051
|
-
last?: InputMaybe<Scalars['Int']['input']>;
|
|
37052
|
-
params?: InputMaybe<SearchParams>;
|
|
37053
|
-
};
|
|
37054
37108
|
export type SpaceLinkListArgs = {
|
|
37055
37109
|
params?: InputMaybe<SearchParams>;
|
|
37056
37110
|
};
|
|
@@ -38065,6 +38119,14 @@ export type Task = ActiveRecordTimestamp & ActsAsCommentable & ActsAsDiscardable
|
|
|
38065
38119
|
communityUrl?: Maybe<Scalars['String']['output']>;
|
|
38066
38120
|
createdAt: Scalars['ISO8601DateTime']['output'];
|
|
38067
38121
|
createdBy?: Maybe<CreatedBy>;
|
|
38122
|
+
/**
|
|
38123
|
+
* Whether the requesting user may grant, change and revoke roles here. NOT the
|
|
38124
|
+
* same as holding a role: an owner/admin of the workspace, an admin of the Teams
|
|
38125
|
+
* app, or an admin of an app owned by this Space manages it without appearing in
|
|
38126
|
+
* its member list. Gate the member-management UI on this, never on
|
|
38127
|
+
* currentUserRoleName.
|
|
38128
|
+
*/
|
|
38129
|
+
currentUserCanManage: Scalars['Boolean']['output'];
|
|
38068
38130
|
/**
|
|
38069
38131
|
* Highest-priority role the requesting user holds on this resource (owner >
|
|
38070
38132
|
* admin > member > guest), or null if no kept WorkspaceRole exists. Resolved via
|
|
@@ -38082,6 +38144,12 @@ export type Task = ActiveRecordTimestamp & ActsAsCommentable & ActsAsDiscardable
|
|
|
38082
38144
|
fieldValuesByGid?: Maybe<Scalars['JSON']['output']>;
|
|
38083
38145
|
fieldValuesByShortname?: Maybe<Scalars['JSON']['output']>;
|
|
38084
38146
|
goal?: Maybe<Goal>;
|
|
38147
|
+
/**
|
|
38148
|
+
* Subset of availableRoleNames this particular user may actually grant.
|
|
38149
|
+
* Populates the role dropdown so the client doesn't restate the rules (an admin
|
|
38150
|
+
* cannot promote to owner, but a workspace owner can).
|
|
38151
|
+
*/
|
|
38152
|
+
grantableRoleNames: Array<Scalars['String']['output']>;
|
|
38085
38153
|
humanName: Scalars['String']['output'];
|
|
38086
38154
|
id: Scalars['ID']['output'];
|
|
38087
38155
|
initiative?: Maybe<Initiative>;
|
|
@@ -44482,6 +44550,7 @@ export type User = ActiveRecordTimestamp & ActsAsCommentable & ActsAsDeduplicabl
|
|
|
44482
44550
|
gender?: Maybe<Scalars['String']['output']>;
|
|
44483
44551
|
goalList: Array<Goal>;
|
|
44484
44552
|
goals: GoalConnection;
|
|
44553
|
+
haveConversationMessagesToRead?: Maybe<Scalars['Boolean']['output']>;
|
|
44485
44554
|
haveSpaceMessagesToRead?: Maybe<Scalars['Boolean']['output']>;
|
|
44486
44555
|
headline?: Maybe<Scalars['String']['output']>;
|
|
44487
44556
|
humanName: Scalars['String']['output'];
|
|
@@ -44803,6 +44872,11 @@ export type UserEdge = {
|
|
|
44803
44872
|
/** The item at the end of the edge. */
|
|
44804
44873
|
node?: Maybe<User>;
|
|
44805
44874
|
};
|
|
44875
|
+
/** Autogenerated return type of UserHaveConversationMessagesToRead. */
|
|
44876
|
+
export type UserHaveConversationMessagesToReadPayload = {
|
|
44877
|
+
__typename?: 'UserHaveConversationMessagesToReadPayload';
|
|
44878
|
+
user: User;
|
|
44879
|
+
};
|
|
44806
44880
|
/** Autogenerated return type of UserHaveSpaceMessagesToRead. */
|
|
44807
44881
|
export type UserHaveSpaceMessagesToReadPayload = {
|
|
44808
44882
|
__typename?: 'UserHaveSpaceMessagesToReadPayload';
|
|
@@ -46811,12 +46885,26 @@ export type WithWorkspaceRoles = {
|
|
|
46811
46885
|
* WorkspaceRole::HIDDEN_ROLE_NAMES_BY_RESOURCE_TYPE.
|
|
46812
46886
|
*/
|
|
46813
46887
|
availableRoleNames: Array<Scalars['String']['output']>;
|
|
46888
|
+
/**
|
|
46889
|
+
* Whether the requesting user may grant, change and revoke roles here. NOT the
|
|
46890
|
+
* same as holding a role: an owner/admin of the workspace, an admin of the Teams
|
|
46891
|
+
* app, or an admin of an app owned by this Space manages it without appearing in
|
|
46892
|
+
* its member list. Gate the member-management UI on this, never on
|
|
46893
|
+
* currentUserRoleName.
|
|
46894
|
+
*/
|
|
46895
|
+
currentUserCanManage: Scalars['Boolean']['output'];
|
|
46814
46896
|
/**
|
|
46815
46897
|
* Highest-priority role the requesting user holds on this resource (owner >
|
|
46816
46898
|
* admin > member > guest), or null if no kept WorkspaceRole exists. Resolved via
|
|
46817
46899
|
* `Permissions.role` so multi-grant audit history doesn't confuse the answer.
|
|
46818
46900
|
*/
|
|
46819
46901
|
currentUserRoleName?: Maybe<Scalars['String']['output']>;
|
|
46902
|
+
/**
|
|
46903
|
+
* Subset of availableRoleNames this particular user may actually grant.
|
|
46904
|
+
* Populates the role dropdown so the client doesn't restate the rules (an admin
|
|
46905
|
+
* cannot promote to owner, but a workspace owner can).
|
|
46906
|
+
*/
|
|
46907
|
+
grantableRoleNames: Array<Scalars['String']['output']>;
|
|
46820
46908
|
id: Scalars['ID']['output'];
|
|
46821
46909
|
workspaceRoles: Array<WorkspaceRole>;
|
|
46822
46910
|
};
|
|
@@ -47265,6 +47353,8 @@ export type WorkflowGateBlocker = {
|
|
|
47265
47353
|
/** A case — one journey of one thing through one workflow */
|
|
47266
47354
|
export type WorkflowRun = ActiveRecordTimestamp & Node & WithEventStream & WithWorkspace & {
|
|
47267
47355
|
__typename?: 'WorkflowRun';
|
|
47356
|
+
/** An agent turn is in flight on this case right now */
|
|
47357
|
+
agentWorking: Scalars['Boolean']['output'];
|
|
47268
47358
|
/** The human ID of the case, e.g. EA-2026-014 */
|
|
47269
47359
|
code?: Maybe<Scalars['String']['output']>;
|
|
47270
47360
|
createdAt: Scalars['ISO8601DateTime']['output'];
|
|
@@ -48261,7 +48351,7 @@ export type WorkspaceAnalyticAccountsArgs = {
|
|
|
48261
48351
|
parentId?: InputMaybe<Scalars['ID']['input']>;
|
|
48262
48352
|
};
|
|
48263
48353
|
export type WorkspaceAppInstancesArgs = {
|
|
48264
|
-
slug
|
|
48354
|
+
slug?: InputMaybe<Scalars['String']['input']>;
|
|
48265
48355
|
};
|
|
48266
48356
|
export type WorkspaceApplicationArgs = {
|
|
48267
48357
|
id: Scalars['ID']['input'];
|
|
@@ -50931,6 +51021,54 @@ export type ListApplicationsQuery = {
|
|
|
50931
51021
|
};
|
|
50932
51022
|
} | null;
|
|
50933
51023
|
};
|
|
51024
|
+
export type CreateBenefitEnrollmentMutationVariables = Exact<{
|
|
51025
|
+
input: CreateBenefitEnrollmentInput;
|
|
51026
|
+
}>;
|
|
51027
|
+
export type CreateBenefitEnrollmentMutation = {
|
|
51028
|
+
__typename?: 'Mutation';
|
|
51029
|
+
createBenefitEnrollment?: {
|
|
51030
|
+
__typename?: 'CreateBenefitEnrollmentPayload';
|
|
51031
|
+
benefitEnrollment?: {
|
|
51032
|
+
__typename?: 'BenefitEnrollmentEdge';
|
|
51033
|
+
node?: {
|
|
51034
|
+
__typename?: 'BenefitEnrollment';
|
|
51035
|
+
id: string;
|
|
51036
|
+
humanName: string;
|
|
51037
|
+
enrolledAt: any;
|
|
51038
|
+
} | null;
|
|
51039
|
+
} | null;
|
|
51040
|
+
errors: Array<{
|
|
51041
|
+
__typename?: 'Error';
|
|
51042
|
+
key: string;
|
|
51043
|
+
name: string;
|
|
51044
|
+
type: string;
|
|
51045
|
+
}>;
|
|
51046
|
+
} | null;
|
|
51047
|
+
};
|
|
51048
|
+
export type CreateBenefitMutationVariables = Exact<{
|
|
51049
|
+
input: CreateBenefitInput;
|
|
51050
|
+
}>;
|
|
51051
|
+
export type CreateBenefitMutation = {
|
|
51052
|
+
__typename?: 'Mutation';
|
|
51053
|
+
createBenefit?: {
|
|
51054
|
+
__typename?: 'CreateBenefitPayload';
|
|
51055
|
+
benefit?: {
|
|
51056
|
+
__typename?: 'BenefitEdge';
|
|
51057
|
+
node?: {
|
|
51058
|
+
__typename?: 'Benefit';
|
|
51059
|
+
id: string;
|
|
51060
|
+
name: string;
|
|
51061
|
+
category: string;
|
|
51062
|
+
} | null;
|
|
51063
|
+
} | null;
|
|
51064
|
+
errors: Array<{
|
|
51065
|
+
__typename?: 'Error';
|
|
51066
|
+
key: string;
|
|
51067
|
+
name: string;
|
|
51068
|
+
type: string;
|
|
51069
|
+
}>;
|
|
51070
|
+
} | null;
|
|
51071
|
+
};
|
|
50934
51072
|
export type GetBookingQueryVariables = Exact<{
|
|
50935
51073
|
id: Scalars['ID']['input'];
|
|
50936
51074
|
}>;
|
|
@@ -53326,6 +53464,30 @@ export type DeleteCompensationMutation = {
|
|
|
53326
53464
|
}>;
|
|
53327
53465
|
} | null;
|
|
53328
53466
|
};
|
|
53467
|
+
export type CreateCcnlMutationVariables = Exact<{
|
|
53468
|
+
input: CreateCcnlInput;
|
|
53469
|
+
}>;
|
|
53470
|
+
export type CreateCcnlMutation = {
|
|
53471
|
+
__typename?: 'Mutation';
|
|
53472
|
+
createCcnl?: {
|
|
53473
|
+
__typename?: 'CreateCcnlPayload';
|
|
53474
|
+
ccnl?: {
|
|
53475
|
+
__typename?: 'CcnlEdge';
|
|
53476
|
+
node?: {
|
|
53477
|
+
__typename?: 'Ccnl';
|
|
53478
|
+
id: string;
|
|
53479
|
+
name?: string | null;
|
|
53480
|
+
shortname?: string | null;
|
|
53481
|
+
} | null;
|
|
53482
|
+
} | null;
|
|
53483
|
+
errors: Array<{
|
|
53484
|
+
__typename?: 'Error';
|
|
53485
|
+
key: string;
|
|
53486
|
+
name: string;
|
|
53487
|
+
type: string;
|
|
53488
|
+
}>;
|
|
53489
|
+
} | null;
|
|
53490
|
+
};
|
|
53329
53491
|
export type GetEmployeeQueryVariables = Exact<{
|
|
53330
53492
|
id: Scalars['ID']['input'];
|
|
53331
53493
|
weekStartingAt: Scalars['ISO8601Date']['input'];
|
|
@@ -54134,6 +54296,8 @@ export declare const FormFieldsFragmentDoc: DocumentNode<FormFieldsFragment, unk
|
|
|
54134
54296
|
export declare const FormResponseFieldsFragmentDoc: DocumentNode<FormResponseFieldsFragment, unknown>;
|
|
54135
54297
|
export declare const CreateApplicationDocument: DocumentNode<CreateApplicationMutation, CreateApplicationMutationVariables>;
|
|
54136
54298
|
export declare const ListApplicationsDocument: DocumentNode<ListApplicationsQuery, ListApplicationsQueryVariables>;
|
|
54299
|
+
export declare const CreateBenefitEnrollmentDocument: DocumentNode<CreateBenefitEnrollmentMutation, CreateBenefitEnrollmentMutationVariables>;
|
|
54300
|
+
export declare const CreateBenefitDocument: DocumentNode<CreateBenefitMutation, CreateBenefitMutationVariables>;
|
|
54137
54301
|
export declare const GetBookingDocument: DocumentNode<GetBookingQuery, GetBookingQueryVariables>;
|
|
54138
54302
|
export declare const GetCalendarDocument: DocumentNode<GetCalendarQuery, GetCalendarQueryVariables>;
|
|
54139
54303
|
export declare const GetCalendarEventDocument: DocumentNode<GetCalendarEventQuery, GetCalendarEventQueryVariables>;
|
|
@@ -54209,6 +54373,7 @@ export declare const DeleteNoteDocument: DocumentNode<DeleteNoteMutation, Delete
|
|
|
54209
54373
|
export declare const CreateCompensationDocument: DocumentNode<CreateCompensationMutation, CreateCompensationMutationVariables>;
|
|
54210
54374
|
export declare const UpdateCompensationDocument: DocumentNode<UpdateCompensationMutation, UpdateCompensationMutationVariables>;
|
|
54211
54375
|
export declare const DeleteCompensationDocument: DocumentNode<DeleteCompensationMutation, DeleteCompensationMutationVariables>;
|
|
54376
|
+
export declare const CreateCcnlDocument: DocumentNode<CreateCcnlMutation, CreateCcnlMutationVariables>;
|
|
54212
54377
|
export declare const GetEmployeeDocument: DocumentNode<GetEmployeeQuery, GetEmployeeQueryVariables>;
|
|
54213
54378
|
export declare const ListCirclesDocument: DocumentNode<ListCirclesQuery, ListCirclesQueryVariables>;
|
|
54214
54379
|
export declare const ListEmployeesDocument: DocumentNode<ListEmployeesQuery, ListEmployeesQueryVariables>;
|
|
@@ -11,6 +11,8 @@ export { createWorkspace, generateWorkspaceApiCredentials } from "./system.js";
|
|
|
11
11
|
export { createSpace } from "./spaces.js";
|
|
12
12
|
export { createTask } from "./tasks.js";
|
|
13
13
|
export { createNote } from "./notes.js";
|
|
14
|
+
export { createBenefit } from "./benefits.js";
|
|
15
|
+
export { createBenefitEnrollment } from "./benefit-enrollments.js";
|
|
14
16
|
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";
|
|
15
17
|
export { getForm, listForms, createFormResponse, updateFormResponse, } from "./forms.js";
|
|
16
18
|
export type { Form } from "./forms.js";
|
|
@@ -30,7 +32,7 @@ export { getDonationCampaign, listDonationCampaigns, createDonation, createDonat
|
|
|
30
32
|
export type { DonationCampaign } from "./donations.js";
|
|
31
33
|
export { getStory, listStories, createStory } from "./stories.js";
|
|
32
34
|
export type { Story } from "./stories.js";
|
|
33
|
-
export { listEmployees, getEmployee, weekStartFor, listOffices, listCircles, listRoles, listKinds, listCcnls, listEmploymentHistory, contractEvents, } from "./people.js";
|
|
35
|
+
export { listEmployees, getEmployee, weekStartFor, listOffices, listCircles, listRoles, listKinds, listCcnls, createCcnl, listEmploymentHistory, contractEvents, } from "./people.js";
|
|
34
36
|
export type { Employee, Office, Circle, Kind, EmploymentRecord, CompensationRecord, EmployeeContracts, ContractEvent, ContractEventType, } from "./people.js";
|
|
35
37
|
export { getBooking, listBookings, getCalendar, listCalendars, getCalendarEvent, listCalendarEvents, } from "./bookings.js";
|
|
36
38
|
export type { Booking, Calendar, CalendarEvent } from "./bookings.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { UiduClient } from "./client.js";
|
|
2
|
-
import { type GetEmployeeQuery, type GetEmployeeQueryVariables, type ListCirclesQuery, type ListCirclesQueryVariables, type ListEmployeesQueryVariables, type ListEmploymentHistoryQueryVariables, type ListKindsQuery, type ListKindsQueryVariables, type ListOfficesQuery, type ListOfficesQueryVariables } from "./generated/index.js";
|
|
2
|
+
import { type CreateCcnlMutationVariables, type GetEmployeeQuery, type GetEmployeeQueryVariables, type ListCirclesQuery, type ListCirclesQueryVariables, type ListEmployeesQueryVariables, type ListEmploymentHistoryQueryVariables, type ListKindsQuery, type ListKindsQueryVariables, type ListOfficesQuery, type ListOfficesQueryVariables } from "./generated/index.js";
|
|
3
3
|
export type Employee = NonNullable<NonNullable<GetEmployeeQuery['currentWorkspace']>['employee']>;
|
|
4
4
|
export type Circle = NonNullable<NonNullable<NonNullable<NonNullable<NonNullable<ListCirclesQuery['currentWorkspace']>['circles']>['edges']>[number]>['node']>;
|
|
5
5
|
export type Office = NonNullable<NonNullable<NonNullable<NonNullable<NonNullable<ListOfficesQuery['currentWorkspace']>['offices']>['edges']>[number]>['node']>;
|
|
@@ -55,6 +55,30 @@ export declare function listKinds(client: UiduClient, variables: ListKindsQueryV
|
|
|
55
55
|
* workspace — used for an employment's `ccnlId`.
|
|
56
56
|
*/
|
|
57
57
|
export declare function listCcnls(client: UiduClient, variables?: Omit<ListKindsQueryVariables, 'models'>): Promise<Kind[]>;
|
|
58
|
+
/**
|
|
59
|
+
* Create a CCNL (national collective labor contract) — the first-class `Ccnl`
|
|
60
|
+
* record (code, sector, contract levels), distinct from the `Kind`-tagged rows
|
|
61
|
+
* {@link listCcnls} returns above. `Employment.ccnl` / `ccnlId` point at this
|
|
62
|
+
* first-class type. Requires a Bearer token (`apiKey`).
|
|
63
|
+
*/
|
|
64
|
+
export declare function createCcnl(client: UiduClient, variables: CreateCcnlMutationVariables): Promise<{
|
|
65
|
+
__typename?: "CreateCcnlPayload";
|
|
66
|
+
ccnl?: {
|
|
67
|
+
__typename?: "CcnlEdge";
|
|
68
|
+
node?: {
|
|
69
|
+
__typename?: "Ccnl";
|
|
70
|
+
id: string;
|
|
71
|
+
name?: string | null;
|
|
72
|
+
shortname?: string | null;
|
|
73
|
+
} | null;
|
|
74
|
+
} | null;
|
|
75
|
+
errors: Array<{
|
|
76
|
+
__typename?: "Error";
|
|
77
|
+
key: string;
|
|
78
|
+
name: string;
|
|
79
|
+
type: string;
|
|
80
|
+
}>;
|
|
81
|
+
} | null>;
|
|
58
82
|
/** A pay item attached to a contract. */
|
|
59
83
|
export type CompensationRecord = {
|
|
60
84
|
id: string;
|