@uidu/client 3.7.1 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uidu/client",
3
- "version": "3.7.1",
3
+ "version": "3.9.0",
4
4
  "description": "Typed GraphQL client for the uidu platform. Server-first, framework-agnostic.",
5
5
  "license": "MIT",
6
6
  "author": "uidu",
@@ -0,0 +1,15 @@
1
+ import type { UiduClient } from './client';
2
+ import {
3
+ CreateBenefitEnrollmentDocument,
4
+ type CreateBenefitEnrollmentMutationVariables,
5
+ } from './generated';
6
+
7
+ // Authoring (Bearer / doorkeeper token). Returns the payload, incl. `errors`.
8
+
9
+ export async function createBenefitEnrollment(
10
+ client: UiduClient,
11
+ variables: CreateBenefitEnrollmentMutationVariables,
12
+ ) {
13
+ const result = await client.mutate(CreateBenefitEnrollmentDocument, variables);
14
+ return result.createBenefitEnrollment ?? null;
15
+ }
@@ -0,0 +1,15 @@
1
+ import type { UiduClient } from './client';
2
+ import {
3
+ CreateBenefitDocument,
4
+ type CreateBenefitMutationVariables,
5
+ } from './generated';
6
+
7
+ // Authoring (Bearer / doorkeeper token). Returns the payload, incl. `errors`.
8
+
9
+ export async function createBenefit(
10
+ client: UiduClient,
11
+ variables: CreateBenefitMutationVariables,
12
+ ) {
13
+ const result = await client.mutate(CreateBenefitDocument, variables);
14
+ return result.createBenefit ?? null;
15
+ }
@@ -407,11 +407,6 @@ export type AccrualBalance = {
407
407
  export type ActionKey = ActiveRecordTimestamp & Node & WithFields & {
408
408
  __typename?: 'ActionKey';
409
409
  actionContext?: Maybe<App>;
410
- /**
411
- * JSON Schema of the arguments `executeAction` accepts for this key — camelCase
412
- * names, associations as GlobalIDs. Null when the action declares no form.
413
- */
414
- argumentsSchema?: Maybe<Scalars['JSON']['output']>;
415
410
  category?: Maybe<Scalars['String']['output']>;
416
411
  contextKind: Scalars['String']['output'];
417
412
  createdAt: Scalars['ISO8601DateTime']['output'];
@@ -1363,6 +1358,7 @@ export type AiChatMessageConnection = {
1363
1358
  export type AiChatMessageCreatedPayload = {
1364
1359
  __typename?: 'AiChatMessageCreatedPayload';
1365
1360
  aiChatMessage?: Maybe<AiChatMessageEdge>;
1361
+ workspaceAgentAiChat?: Maybe<WorkspaceAgentAiChat>;
1366
1362
  };
1367
1363
 
1368
1364
  /** An edge in a connection. */
@@ -4846,7 +4842,6 @@ export type Call = ActiveRecordTimestamp & ActsAsDiscardable & ActsAsFormable &
4846
4842
  visits: Array<Visit>;
4847
4843
  /** @deprecated Use `owner` instead. */
4848
4844
  workspace?: Maybe<Workspace>;
4849
- workspaceApp?: Maybe<WorkspaceApp>;
4850
4845
  };
4851
4846
 
4852
4847
 
@@ -5049,8 +5044,6 @@ export type CallAttributes = {
5049
5044
  salaryMin?: InputMaybe<Scalars['Int']['input']>;
5050
5045
  /** Type of the call */
5051
5046
  type?: InputMaybe<Scalars['String']['input']>;
5052
- /** The app instance this call belongs to (e.g. a Space Jobs instance) */
5053
- workspaceAppId?: InputMaybe<Scalars['ID']['input']>;
5054
5047
  };
5055
5048
 
5056
5049
  /** The connection type for Call. */
@@ -6618,6 +6611,26 @@ export type ConfirmTimeEntriesPayload = {
6618
6611
  timeEntries?: Maybe<Array<TimeEntry>>;
6619
6612
  };
6620
6613
 
6614
+ /** Autogenerated input type of ConfirmWorkflowProposal */
6615
+ export type ConfirmWorkflowProposalInput = {
6616
+ /** Flag to mark the object for destruction */
6617
+ _destroy?: InputMaybe<Scalars['Boolean']['input']>;
6618
+ /** A unique identifier for the client performing the mutation. */
6619
+ clientMutationId?: InputMaybe<Scalars['String']['input']>;
6620
+ /** The work item the comparison is waiting on */
6621
+ id: Scalars['ID']['input'];
6622
+ };
6623
+
6624
+ /** Autogenerated return type of ConfirmWorkflowProposal. */
6625
+ export type ConfirmWorkflowProposalPayload = {
6626
+ __typename?: 'ConfirmWorkflowProposalPayload';
6627
+ /** A unique identifier for the client performing the mutation. */
6628
+ clientMutationId?: Maybe<Scalars['String']['output']>;
6629
+ errors: Array<Error>;
6630
+ workflowRun?: Maybe<WorkflowRun>;
6631
+ workflowStepItemRun?: Maybe<WorkflowStepItemRun>;
6632
+ };
6633
+
6621
6634
  /** Autogenerated input type of ConnectAcubeCredential */
6622
6635
  export type ConnectAcubeCredentialInput = {
6623
6636
  /** Flag to mark the object for destruction */
@@ -15612,7 +15625,9 @@ export type Decision = ActiveRecordTimestamp & ActsAsCommentable & ActsAsDiscard
15612
15625
  logs: EventStoreEventConnection;
15613
15626
  memberList: Array<User>;
15614
15627
  members: UserConnection;
15628
+ multiSelect: Scalars['Boolean']['output'];
15615
15629
  myResponse?: Maybe<DecisionResponse>;
15630
+ myResponses: Array<DecisionResponse>;
15616
15631
  name: Scalars['String']['output'];
15617
15632
  outcomeContact?: Maybe<Contact>;
15618
15633
  outcomeData?: Maybe<Scalars['JSON']['output']>;
@@ -15754,6 +15769,8 @@ export type DecisionAttributes = {
15754
15769
  closesAt?: InputMaybe<Scalars['ISO8601DateTime']['input']>;
15755
15770
  /** Type-specific configuration (threshold, max_selections, total_points) */
15756
15771
  config?: InputMaybe<Scalars['JSON']['input']>;
15772
+ /** The options to choose between. A check takes none */
15773
+ decisionOptionsAttributes?: InputMaybe<Array<DecisionOptionAttributes>>;
15757
15774
  /** Rich text description (TipTap JSON) */
15758
15775
  descriptionData?: InputMaybe<Scalars['JSON']['input']>;
15759
15776
  /** Global ID of the object */
@@ -20228,6 +20245,8 @@ export type DocumentAttributes = {
20228
20245
  attachments?: InputMaybe<Array<Scalars['JSON']['input']>>;
20229
20246
  /** The blob attributes of the document */
20230
20247
  blobAttributes?: InputMaybe<BlobAttributes>;
20248
+ /** An existing file of the drive to type with this document */
20249
+ blobId?: InputMaybe<Scalars['ID']['input']>;
20231
20250
  /** The contact attributes of the document */
20232
20251
  contactAttributes?: InputMaybe<ContactAttributes>;
20233
20252
  /** The contact of the document */
@@ -21998,6 +22017,7 @@ export type Employee = ActiveRecordTimestamp & ActsAsDiscardable & Node & WithEv
21998
22017
  fieldValuesByGid?: Maybe<Scalars['JSON']['output']>;
21999
22018
  fieldValuesByShortname?: Maybe<Scalars['JSON']['output']>;
22000
22019
  folders: FolderConnection;
22020
+ forceGps: Scalars['Boolean']['output'];
22001
22021
  hasAccrual: Scalars['Boolean']['output'];
22002
22022
  humanName: Scalars['String']['output'];
22003
22023
  id: Scalars['ID']['output'];
@@ -22394,6 +22414,8 @@ export type EmployeeAttributes = {
22394
22414
  employeeCode?: InputMaybe<Scalars['String']['input']>;
22395
22415
  /** Map of field GlobalID => value */
22396
22416
  fieldValues?: InputMaybe<Scalars['JSON']['input']>;
22417
+ /** Whether this employee must have GPS enabled to clock in or out */
22418
+ forceGps?: InputMaybe<Scalars['Boolean']['input']>;
22397
22419
  /** Global ID of the object */
22398
22420
  id?: InputMaybe<Scalars['ID']['input']>;
22399
22421
  /** A new 4-digit PIN for the kiosk. Write-only. */
@@ -24586,6 +24608,8 @@ export type FinishImportPayload = {
24586
24608
 
24587
24609
  export type Folder = ActiveRecordTimestamp & ActsAsDiscardable & Node & WithFolders & WithStatuses & {
24588
24610
  __typename?: 'Folder';
24611
+ /** The folders above this one, root first */
24612
+ ancestors: Array<Folder>;
24589
24613
  children?: Maybe<FolderConnection>;
24590
24614
  childrenCount: Scalars['Int']['output'];
24591
24615
  context?: Maybe<Scalars['String']['output']>;
@@ -26003,6 +26027,7 @@ export type GraphqlSubscription = Node & {
26003
26027
  proposalCreated: ProposalCreatedPayload;
26004
26028
  proposalUpdated: ProposalUpdatedPayload;
26005
26029
  recordDiscarded: RecordDiscardedPayload;
26030
+ userHaveConversationMessagesToRead: UserHaveConversationMessagesToReadPayload;
26006
26031
  userHaveSpaceMessagesToRead: UserHaveSpaceMessagesToReadPayload;
26007
26032
  };
26008
26033
 
@@ -29614,6 +29639,8 @@ export type Mutation = Node & {
29614
29639
  commitImport?: Maybe<CommitImportPayload>;
29615
29640
  completeWorkflowStepItemRun?: Maybe<CompleteWorkflowStepItemRunPayload>;
29616
29641
  confirmTimeEntries?: Maybe<ConfirmTimeEntriesPayload>;
29642
+ /** Closes a multi-select comparison activity with everything the current viewer has chosen so far */
29643
+ confirmWorkflowProposal?: Maybe<ConfirmWorkflowProposalPayload>;
29617
29644
  connectAcubeCredential?: Maybe<ConnectAcubeCredentialPayload>;
29618
29645
  convertToHtml?: Maybe<ConvertToHtmlPayload>;
29619
29646
  copyShifts?: Maybe<CopyShiftsPayload>;
@@ -30170,6 +30197,7 @@ export type Mutation = Node & {
30170
30197
  /** Sends the signature request a signature activity is waiting on */
30171
30198
  sendWorkflowSignatureRequest?: Maybe<SendWorkflowSignatureRequestPayload>;
30172
30199
  setEmployeeKioskPin?: Maybe<SetEmployeeKioskPinPayload>;
30200
+ setFavoriteWorkspaceApp?: Maybe<SetFavoriteWorkspaceAppPayload>;
30173
30201
  signSignatureRequestPlacement?: Maybe<SignSignatureRequestPlacementPayload>;
30174
30202
  skipImportRow?: Maybe<SkipImportRowPayload>;
30175
30203
  startWorkflowRun?: Maybe<StartWorkflowRunPayload>;
@@ -30642,6 +30670,11 @@ export type MutationConfirmTimeEntriesArgs = {
30642
30670
  };
30643
30671
 
30644
30672
 
30673
+ export type MutationConfirmWorkflowProposalArgs = {
30674
+ input: ConfirmWorkflowProposalInput;
30675
+ };
30676
+
30677
+
30645
30678
  export type MutationConnectAcubeCredentialArgs = {
30646
30679
  input: ConnectAcubeCredentialInput;
30647
30680
  };
@@ -33347,6 +33380,11 @@ export type MutationSetEmployeeKioskPinArgs = {
33347
33380
  };
33348
33381
 
33349
33382
 
33383
+ export type MutationSetFavoriteWorkspaceAppArgs = {
33384
+ input: SetFavoriteWorkspaceAppInput;
33385
+ };
33386
+
33387
+
33350
33388
  export type MutationSignSignatureRequestPlacementArgs = {
33351
33389
  input: SignSignatureRequestPlacementInput;
33352
33390
  };
@@ -41780,6 +41818,28 @@ export type SetEmployeeKioskPinPayload = {
41780
41818
  errors: Array<Error>;
41781
41819
  };
41782
41820
 
41821
+ /** Autogenerated input type of SetFavoriteWorkspaceApp */
41822
+ export type SetFavoriteWorkspaceAppInput = {
41823
+ /** Flag to mark the object for destruction */
41824
+ _destroy?: InputMaybe<Scalars['Boolean']['input']>;
41825
+ /** A unique identifier for the client performing the mutation. */
41826
+ clientMutationId?: InputMaybe<Scalars['String']['input']>;
41827
+ favorite: Scalars['Boolean']['input'];
41828
+ /** Global ID of the object */
41829
+ id?: InputMaybe<Scalars['ID']['input']>;
41830
+ userId: Scalars['ID']['input'];
41831
+ workspaceAppId: Scalars['ID']['input'];
41832
+ };
41833
+
41834
+ /** Autogenerated return type of SetFavoriteWorkspaceApp. */
41835
+ export type SetFavoriteWorkspaceAppPayload = {
41836
+ __typename?: 'SetFavoriteWorkspaceAppPayload';
41837
+ /** A unique identifier for the client performing the mutation. */
41838
+ clientMutationId?: Maybe<Scalars['String']['output']>;
41839
+ errors: Array<Error>;
41840
+ user?: Maybe<User>;
41841
+ };
41842
+
41783
41843
  export type Setting = ActiveRecordTimestamp & Node & {
41784
41844
  __typename?: 'Setting';
41785
41845
  createdAt: Scalars['ISO8601DateTime']['output'];
@@ -42869,6 +42929,14 @@ export type Space = ActiveRecordTimestamp & ActsAsArchivable & ActsAsDiscardable
42869
42929
  circles?: Maybe<CircleConnection>;
42870
42930
  color?: Maybe<Scalars['String']['output']>;
42871
42931
  createdAt: Scalars['ISO8601DateTime']['output'];
42932
+ /**
42933
+ * Whether the requesting user may grant, change and revoke roles here. NOT the
42934
+ * same as holding a role: an owner/admin of the workspace, an admin of the Teams
42935
+ * app, or an admin of an app owned by this Space manages it without appearing in
42936
+ * its member list. Gate the member-management UI on this, never on
42937
+ * currentUserRoleName.
42938
+ */
42939
+ currentUserCanManage: Scalars['Boolean']['output'];
42872
42940
  /**
42873
42941
  * Highest-priority role the requesting user holds on this resource (owner >
42874
42942
  * admin > member > guest), or null if no kept WorkspaceRole exists. Resolved via
@@ -42894,6 +42962,12 @@ export type Space = ActiveRecordTimestamp & ActsAsArchivable & ActsAsDiscardable
42894
42962
  forms: FormConnection;
42895
42963
  goalList: Array<Goal>;
42896
42964
  goals: GoalConnection;
42965
+ /**
42966
+ * Subset of availableRoleNames this particular user may actually grant.
42967
+ * Populates the role dropdown so the client doesn't restate the rules (an admin
42968
+ * cannot promote to owner, but a workspace owner can).
42969
+ */
42970
+ grantableRoleNames: Array<Scalars['String']['output']>;
42897
42971
  humanName: Scalars['String']['output'];
42898
42972
  icon?: Maybe<Scalars['String']['output']>;
42899
42973
  id: Scalars['ID']['output'];
@@ -42901,8 +42975,6 @@ export type Space = ActiveRecordTimestamp & ActsAsArchivable & ActsAsDiscardable
42901
42975
  isLocked: Scalars['Boolean']['output'];
42902
42976
  isPrivate: Scalars['Boolean']['output'];
42903
42977
  isRead: Scalars['Boolean']['output'];
42904
- jobList: Array<Call>;
42905
- jobs: CallConnection;
42906
42978
  kind?: Maybe<Scalars['String']['output']>;
42907
42979
  lastLogAt?: Maybe<Scalars['ISO8601DateTime']['output']>;
42908
42980
  lastMessage?: Maybe<Message>;
@@ -43085,20 +43157,6 @@ export type SpaceGoalsArgs = {
43085
43157
  };
43086
43158
 
43087
43159
 
43088
- export type SpaceJobListArgs = {
43089
- params?: InputMaybe<SearchParams>;
43090
- };
43091
-
43092
-
43093
- export type SpaceJobsArgs = {
43094
- after?: InputMaybe<Scalars['String']['input']>;
43095
- before?: InputMaybe<Scalars['String']['input']>;
43096
- first?: InputMaybe<Scalars['Int']['input']>;
43097
- last?: InputMaybe<Scalars['Int']['input']>;
43098
- params?: InputMaybe<SearchParams>;
43099
- };
43100
-
43101
-
43102
43160
  export type SpaceLinkListArgs = {
43103
43161
  params?: InputMaybe<SearchParams>;
43104
43162
  };
@@ -44253,6 +44311,14 @@ export type Task = ActiveRecordTimestamp & ActsAsCommentable & ActsAsDiscardable
44253
44311
  communityUrl?: Maybe<Scalars['String']['output']>;
44254
44312
  createdAt: Scalars['ISO8601DateTime']['output'];
44255
44313
  createdBy?: Maybe<CreatedBy>;
44314
+ /**
44315
+ * Whether the requesting user may grant, change and revoke roles here. NOT the
44316
+ * same as holding a role: an owner/admin of the workspace, an admin of the Teams
44317
+ * app, or an admin of an app owned by this Space manages it without appearing in
44318
+ * its member list. Gate the member-management UI on this, never on
44319
+ * currentUserRoleName.
44320
+ */
44321
+ currentUserCanManage: Scalars['Boolean']['output'];
44256
44322
  /**
44257
44323
  * Highest-priority role the requesting user holds on this resource (owner >
44258
44324
  * admin > member > guest), or null if no kept WorkspaceRole exists. Resolved via
@@ -44270,6 +44336,12 @@ export type Task = ActiveRecordTimestamp & ActsAsCommentable & ActsAsDiscardable
44270
44336
  fieldValuesByGid?: Maybe<Scalars['JSON']['output']>;
44271
44337
  fieldValuesByShortname?: Maybe<Scalars['JSON']['output']>;
44272
44338
  goal?: Maybe<Goal>;
44339
+ /**
44340
+ * Subset of availableRoleNames this particular user may actually grant.
44341
+ * Populates the role dropdown so the client doesn't restate the rules (an admin
44342
+ * cannot promote to owner, but a workspace owner can).
44343
+ */
44344
+ grantableRoleNames: Array<Scalars['String']['output']>;
44273
44345
  humanName: Scalars['String']['output'];
44274
44346
  id: Scalars['ID']['output'];
44275
44347
  initiative?: Maybe<Initiative>;
@@ -51396,6 +51468,7 @@ export type User = ActiveRecordTimestamp & ActsAsCommentable & ActsAsDeduplicabl
51396
51468
  gender?: Maybe<Scalars['String']['output']>;
51397
51469
  goalList: Array<Goal>;
51398
51470
  goals: GoalConnection;
51471
+ haveConversationMessagesToRead?: Maybe<Scalars['Boolean']['output']>;
51399
51472
  haveSpaceMessagesToRead?: Maybe<Scalars['Boolean']['output']>;
51400
51473
  headline?: Maybe<Scalars['String']['output']>;
51401
51474
  humanName: Scalars['String']['output'];
@@ -51792,6 +51865,12 @@ export type UserEdge = {
51792
51865
  node?: Maybe<User>;
51793
51866
  };
51794
51867
 
51868
+ /** Autogenerated return type of UserHaveConversationMessagesToRead. */
51869
+ export type UserHaveConversationMessagesToReadPayload = {
51870
+ __typename?: 'UserHaveConversationMessagesToReadPayload';
51871
+ user: User;
51872
+ };
51873
+
51795
51874
  /** Autogenerated return type of UserHaveSpaceMessagesToRead. */
51796
51875
  export type UserHaveSpaceMessagesToReadPayload = {
51797
51876
  __typename?: 'UserHaveSpaceMessagesToReadPayload';
@@ -54084,12 +54163,26 @@ export type WithWorkspaceRoles = {
54084
54163
  * WorkspaceRole::HIDDEN_ROLE_NAMES_BY_RESOURCE_TYPE.
54085
54164
  */
54086
54165
  availableRoleNames: Array<Scalars['String']['output']>;
54166
+ /**
54167
+ * Whether the requesting user may grant, change and revoke roles here. NOT the
54168
+ * same as holding a role: an owner/admin of the workspace, an admin of the Teams
54169
+ * app, or an admin of an app owned by this Space manages it without appearing in
54170
+ * its member list. Gate the member-management UI on this, never on
54171
+ * currentUserRoleName.
54172
+ */
54173
+ currentUserCanManage: Scalars['Boolean']['output'];
54087
54174
  /**
54088
54175
  * Highest-priority role the requesting user holds on this resource (owner >
54089
54176
  * admin > member > guest), or null if no kept WorkspaceRole exists. Resolved via
54090
54177
  * `Permissions.role` so multi-grant audit history doesn't confuse the answer.
54091
54178
  */
54092
54179
  currentUserRoleName?: Maybe<Scalars['String']['output']>;
54180
+ /**
54181
+ * Subset of availableRoleNames this particular user may actually grant.
54182
+ * Populates the role dropdown so the client doesn't restate the rules (an admin
54183
+ * cannot promote to owner, but a workspace owner can).
54184
+ */
54185
+ grantableRoleNames: Array<Scalars['String']['output']>;
54093
54186
  id: Scalars['ID']['output'];
54094
54187
  workspaceRoles: Array<WorkspaceRole>;
54095
54188
  };
@@ -54590,6 +54683,8 @@ export type WorkflowGateBlocker = {
54590
54683
  /** A case — one journey of one thing through one workflow */
54591
54684
  export type WorkflowRun = ActiveRecordTimestamp & Node & WithEventStream & WithWorkspace & {
54592
54685
  __typename?: 'WorkflowRun';
54686
+ /** An agent turn is in flight on this case right now */
54687
+ agentWorking: Scalars['Boolean']['output'];
54593
54688
  /** The human ID of the case, e.g. EA-2026-014 */
54594
54689
  code?: Maybe<Scalars['String']['output']>;
54595
54690
  createdAt: Scalars['ISO8601DateTime']['output'];
@@ -55651,7 +55746,7 @@ export type WorkspaceAnalyticAccountsArgs = {
55651
55746
 
55652
55747
 
55653
55748
  export type WorkspaceAppInstancesArgs = {
55654
- slug: Scalars['String']['input'];
55749
+ slug?: InputMaybe<Scalars['String']['input']>;
55655
55750
  };
55656
55751
 
55657
55752
 
@@ -59078,6 +59173,20 @@ export type ListApplicationsQueryVariables = Exact<{
59078
59173
 
59079
59174
  export type ListApplicationsQuery = { __typename?: 'Query', currentWorkspace?: { __typename?: 'Workspace', applications: { __typename?: 'ApplicationConnection', pageInfo: { __typename?: 'PageInfo', hasNextPage: boolean, endCursor?: string | null }, edges?: Array<{ __typename?: 'ApplicationEdge', node?: { __typename?: 'Application', id: string, aasmState?: string | null, summary?: string | null, completedAt?: any | null, createdAt: any, status?: { __typename?: 'Status', id: string, name?: string | null, color?: string | null } | null, contact?: { __typename?: 'Contact', id: string, humanName: string, email?: string | null } | null, applicable: { __typename: 'Call', id: string, name?: string | null, kind: CallKind } | { __typename: 'Grant' }, formResponse?: { __typename?: 'FormResponse', id: string } | null } | null } | null> | null } } | null };
59080
59175
 
59176
+ export type CreateBenefitEnrollmentMutationVariables = Exact<{
59177
+ input: CreateBenefitEnrollmentInput;
59178
+ }>;
59179
+
59180
+
59181
+ export type CreateBenefitEnrollmentMutation = { __typename?: 'Mutation', createBenefitEnrollment?: { __typename?: 'CreateBenefitEnrollmentPayload', benefitEnrollment?: { __typename?: 'BenefitEnrollmentEdge', node?: { __typename?: 'BenefitEnrollment', id: string, humanName: string, enrolledAt: any } | null } | null, errors: Array<{ __typename?: 'Error', key: string, name: string, type: string }> } | null };
59182
+
59183
+ export type CreateBenefitMutationVariables = Exact<{
59184
+ input: CreateBenefitInput;
59185
+ }>;
59186
+
59187
+
59188
+ export type CreateBenefitMutation = { __typename?: 'Mutation', createBenefit?: { __typename?: 'CreateBenefitPayload', benefit?: { __typename?: 'BenefitEdge', node?: { __typename?: 'Benefit', id: string, name: string, category: string } | null } | null, errors: Array<{ __typename?: 'Error', key: string, name: string, type: string }> } | null };
59189
+
59081
59190
  export type GetBookingQueryVariables = Exact<{
59082
59191
  id: Scalars['ID']['input'];
59083
59192
  }>;
@@ -59648,6 +59757,13 @@ export type DeleteCompensationMutationVariables = Exact<{
59648
59757
 
59649
59758
  export type DeleteCompensationMutation = { __typename?: 'Mutation', deleteCompensation?: { __typename?: 'DeleteCompensationPayload', compensation?: { __typename?: 'Compensation', id: string } | null, errors: Array<{ __typename?: 'Error', key: string, name: string, type: string }> } | null };
59650
59759
 
59760
+ export type CreateCcnlMutationVariables = Exact<{
59761
+ input: CreateCcnlInput;
59762
+ }>;
59763
+
59764
+
59765
+ export type CreateCcnlMutation = { __typename?: 'Mutation', createCcnl?: { __typename?: 'CreateCcnlPayload', ccnl?: { __typename?: 'CcnlEdge', node?: { __typename?: 'Ccnl', id: string, name?: string | null, shortname?: string | null } | null } | null, errors: Array<{ __typename?: 'Error', key: string, name: string, type: string }> } | null };
59766
+
59651
59767
  export type GetEmployeeQueryVariables = Exact<{
59652
59768
  id: Scalars['ID']['input'];
59653
59769
  weekStartingAt: Scalars['ISO8601Date']['input'];
@@ -59837,6 +59953,8 @@ export const FormFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"
59837
59953
  export const FormResponseFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FormResponseFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FormResponse"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValues"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"linkedRecordId"}},{"kind":"Field","name":{"kind":"Name","value":"field"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"contact"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<FormResponseFieldsFragment, unknown>;
59838
59954
  export const CreateApplicationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateApplication"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateApplicationInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createApplication"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"errors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"application"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"aasmState"}},{"kind":"Field","name":{"kind":"Name","value":"summary"}},{"kind":"Field","name":{"kind":"Name","value":"completedAt"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"contact"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"humanName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}}]}},{"kind":"Field","name":{"kind":"Name","value":"applicable"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Call"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"formResponse"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]}}]} as unknown as DocumentNode<CreateApplicationMutation, CreateApplicationMutationVariables>;
59839
59955
  export const ListApplicationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListApplications"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"first"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"after"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"applications"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"Variable","name":{"kind":"Name","value":"first"}}},{"kind":"Argument","name":{"kind":"Name","value":"after"},"value":{"kind":"Variable","name":{"kind":"Name","value":"after"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}}]}},{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"aasmState"}},{"kind":"Field","name":{"kind":"Name","value":"summary"}},{"kind":"Field","name":{"kind":"Name","value":"completedAt"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"status"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"color"}}]}},{"kind":"Field","name":{"kind":"Name","value":"contact"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"humanName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}}]}},{"kind":"Field","name":{"kind":"Name","value":"applicable"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Call"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"formResponse"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<ListApplicationsQuery, ListApplicationsQueryVariables>;
59956
+ export const CreateBenefitEnrollmentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateBenefitEnrollment"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateBenefitEnrollmentInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createBenefitEnrollment"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"benefitEnrollment"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"humanName"}},{"kind":"Field","name":{"kind":"Name","value":"enrolledAt"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"errors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}}]}}]} as unknown as DocumentNode<CreateBenefitEnrollmentMutation, CreateBenefitEnrollmentMutationVariables>;
59957
+ export const CreateBenefitDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateBenefit"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateBenefitInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createBenefit"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"benefit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"category"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"errors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}}]}}]} as unknown as DocumentNode<CreateBenefitMutation, CreateBenefitMutationVariables>;
59840
59958
  export const GetBookingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetBooking"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"booking"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"number"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"itemsCount"}},{"kind":"Field","name":{"kind":"Name","value":"itemsTotal"}},{"kind":"Field","name":{"kind":"Name","value":"paymentIntentId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"paidAt"}},{"kind":"Field","name":{"kind":"Name","value":"refundedAt"}},{"kind":"Field","name":{"kind":"Name","value":"expiredAt"}},{"kind":"Field","name":{"kind":"Name","value":"willExpireAt"}},{"kind":"Field","name":{"kind":"Name","value":"fieldValuesByShortname"}},{"kind":"Field","name":{"kind":"Name","value":"contact"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"email"}}]}}]}}]}}]}}]} as unknown as DocumentNode<GetBookingQuery, GetBookingQueryVariables>;
59841
59959
  export const GetCalendarDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetCalendar"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"calendar"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]}}]} as unknown as DocumentNode<GetCalendarQuery, GetCalendarQueryVariables>;
59842
59960
  export const GetCalendarEventDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetCalendarEvent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"calendarEvent"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"body"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"endTime"}},{"kind":"Field","name":{"kind":"Name","value":"allDay"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"calendar"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}}]}},{"kind":"Field","name":{"kind":"Name","value":"primaryAddress"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"formattedAddress"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"city"}},{"kind":"Field","name":{"kind":"Name","value":"countryCode"}}]}}]}}]}}]}}]} as unknown as DocumentNode<GetCalendarEventQuery, GetCalendarEventQueryVariables>;
@@ -59912,6 +60030,7 @@ export const DeleteNoteDocument = {"kind":"Document","definitions":[{"kind":"Ope
59912
60030
  export const CreateCompensationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCompensation"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateCompensationInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createCompensation"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"compensation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"frequency"}},{"kind":"Field","name":{"kind":"Name","value":"componentType"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveFrom"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"errors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}}]}}]} as unknown as DocumentNode<CreateCompensationMutation, CreateCompensationMutationVariables>;
59913
60031
  export const UpdateCompensationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCompensation"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateCompensationInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateCompensation"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"compensation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"frequency"}},{"kind":"Field","name":{"kind":"Name","value":"componentType"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveFrom"}}]}},{"kind":"Field","name":{"kind":"Name","value":"errors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}}]}}]} as unknown as DocumentNode<UpdateCompensationMutation, UpdateCompensationMutationVariables>;
59914
60032
  export const DeleteCompensationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteCompensation"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DeleteCompensationInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteCompensation"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"compensation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"errors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}}]}}]} as unknown as DocumentNode<DeleteCompensationMutation, DeleteCompensationMutationVariables>;
60033
+ export const CreateCcnlDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCcnl"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateCcnlInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createCcnl"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ccnl"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"shortname"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"errors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}}]}}]} as unknown as DocumentNode<CreateCcnlMutation, CreateCcnlMutationVariables>;
59915
60034
  export const GetEmployeeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetEmployee"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"weekStartingAt"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ISO8601Date"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"employee"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"employeeCode"}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentEmployment"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"jobTitle"}},{"kind":"Field","name":{"kind":"Name","value":"employmentKind"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"contractLevel"}},{"kind":"Field","name":{"kind":"Name","value":"classification"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"startDate"}},{"kind":"Field","name":{"kind":"Name","value":"endDate"}},{"kind":"Field","name":{"kind":"Name","value":"fteRatio"}},{"kind":"Field","name":{"kind":"Name","value":"primaryOffice"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"todayTimeClocks"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"beginsAt"}},{"kind":"Field","name":{"kind":"Name","value":"finishesAt"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}}]}},{"kind":"Field","name":{"kind":"Name","value":"weeklyShifts"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"weekStartingAt"},"value":{"kind":"Variable","name":{"kind":"Name","value":"weekStartingAt"}}},{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"20"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"beginsAt"}},{"kind":"Field","name":{"kind":"Name","value":"finishesAt"}},{"kind":"Field","name":{"kind":"Name","value":"aasmState"}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<GetEmployeeQuery, GetEmployeeQueryVariables>;
59916
60035
  export const ListCirclesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListCircles"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"first"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"after"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"circles"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"Variable","name":{"kind":"Name","value":"first"}}},{"kind":"Argument","name":{"kind":"Name","value":"after"},"value":{"kind":"Variable","name":{"kind":"Name","value":"after"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}}]}},{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<ListCirclesQuery, ListCirclesQueryVariables>;
59917
60036
  export const ListEmployeesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListEmployees"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"first"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"after"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentWorkspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"employees"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"first"},"value":{"kind":"Variable","name":{"kind":"Name","value":"first"}}},{"kind":"Argument","name":{"kind":"Name","value":"after"},"value":{"kind":"Variable","name":{"kind":"Name","value":"after"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}}]}},{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"employeeCode"}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}}]}},{"kind":"Field","name":{"kind":"Name","value":"currentEmployment"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"jobTitle"}},{"kind":"Field","name":{"kind":"Name","value":"employmentKind"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"startDate"}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<ListEmployeesQuery, ListEmployeesQueryVariables>;
package/src/index.ts CHANGED
@@ -49,6 +49,8 @@ export { createWorkspace, generateWorkspaceApiCredentials } from './system';
49
49
  export { createSpace } from './spaces';
50
50
  export { createTask } from './tasks';
51
51
  export { createNote } from './notes';
52
+ export { createBenefit } from './benefits';
53
+ export { createBenefitEnrollment } from './benefit-enrollments';
52
54
 
53
55
  export {
54
56
  createCourse,
@@ -137,6 +139,7 @@ export {
137
139
  listRoles,
138
140
  listKinds,
139
141
  listCcnls,
142
+ createCcnl,
140
143
  listEmploymentHistory,
141
144
  contractEvents,
142
145
  } from './people';
package/src/people.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import type { UiduClient } from './client';
2
2
  import {
3
+ CreateCcnlDocument,
4
+ type CreateCcnlMutationVariables,
3
5
  GetEmployeeDocument,
4
6
  type GetEmployeeQuery,
5
7
  type GetEmployeeQueryVariables,
@@ -137,6 +139,20 @@ export async function listCcnls(
137
139
  return listKinds(client, { ...variables, models: ['Ccnl'] });
138
140
  }
139
141
 
142
+ /**
143
+ * Create a CCNL (national collective labor contract) — the first-class `Ccnl`
144
+ * record (code, sector, contract levels), distinct from the `Kind`-tagged rows
145
+ * {@link listCcnls} returns above. `Employment.ccnl` / `ccnlId` point at this
146
+ * first-class type. Requires a Bearer token (`apiKey`).
147
+ */
148
+ export async function createCcnl(
149
+ client: UiduClient,
150
+ variables: CreateCcnlMutationVariables,
151
+ ) {
152
+ const result = await client.mutate(CreateCcnlDocument, variables);
153
+ return result.createCcnl ?? null;
154
+ }
155
+
140
156
  // --- Employment history & contract events ---
141
157
 
142
158
  /** A pay item attached to a contract. */
@@ -0,0 +1,16 @@
1
+ mutation CreateBenefitEnrollment($input: CreateBenefitEnrollmentInput!) {
2
+ createBenefitEnrollment(input: $input) {
3
+ benefitEnrollment {
4
+ node {
5
+ id
6
+ humanName
7
+ enrolledAt
8
+ }
9
+ }
10
+ errors {
11
+ key
12
+ name
13
+ type
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,16 @@
1
+ mutation CreateBenefit($input: CreateBenefitInput!) {
2
+ createBenefit(input: $input) {
3
+ benefit {
4
+ node {
5
+ id
6
+ name
7
+ category
8
+ }
9
+ }
10
+ errors {
11
+ key
12
+ name
13
+ type
14
+ }
15
+ }
16
+ }